/**
 * PhysicalTherapist.com — Blog / Articles archive
 * Editorial listing for /category/articles/ and related archives.
 *
 * @package X_Child
 */

/* --------------------------------------------------------------------------
   Landmark
   -------------------------------------------------------------------------- */
body.pt-blog-page .x-header-landmark,
body.pt-blog-posts-page .x-header-landmark,
body.pt-blog-page .pt-blog-landmark {
	position: relative;
	overflow: hidden;
	background: linear-gradient(115deg, #0b3d5c 0%, #0066a1 52%, #0a7ab8 100%) !important;
	padding: 2.75rem 1.5rem 2.5rem !important;
	text-align: center;
	max-width: none !important;
	width: 100% !important;
	margin: 0 0 0 !important;
	border: 0 !important;
}

body.pt-blog-page .x-header-landmark::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--pt-orange), transparent);
}

body.pt-blog-page .x-header-landmark .h-landmark,
body.pt-blog-page .x-header-landmark .h-landmark span {
	color: #fff !important;
	font-family: var(--pt-font) !important;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.03em !important;
	margin: 0 !important;
}

body.pt-blog-page .pt-blog-landmark__sub {
	margin: 0.65rem auto 0;
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.05rem;
	line-height: 1.45;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
body.pt-blog-page .x-container.main {
	padding-top: 2rem !important;
	padding-bottom: 3.5rem !important;
}

body.pt-blog-page .x-main {
	float: none !important;
	width: 100% !important;
}

@media (min-width: 980px) {
	body.pt-blog-page.x-content-sidebar-active .x-main,
	body.pt-blog-page .x-main.left,
	body.pt-blog-page .x-main.right,
	body.pt-blog-page .x-main.full {
		width: 68% !important;
		float: left !important;
	}

	body.pt-blog-page .x-sidebar {
		width: 28% !important;
		float: right !important;
		margin-top: 0 !important;
	}
}

/* Hide Ethos featured slider — most articles lack thumbnails */
body.pt-blog-page .x-post-slider,
body.pt-blog-page .x-flexslider.x-post-slider {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Article list — editorial rows (not stacked “cards”)
   -------------------------------------------------------------------------- */
body.pt-blog-page .x-main > article.post,
body.pt-blog-page .x-main article.hentry {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--pt-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 1.65rem 0 1.75rem !important;
	overflow: visible;
	transition: background 0.2s var(--pt-ease);
}

body.pt-blog-page .x-main > article.post:first-of-type {
	padding-top: 0.35rem !important;
}

body.pt-blog-page .x-main > article.post:last-of-type {
	border-bottom: 0 !important;
}

body.pt-blog-page article.post .entry-wrap {
	padding: 0 !important;
	display: grid;
	gap: 0.55rem;
}

body.pt-blog-page article.post .entry-featured {
	margin: 0 0 0.85rem !important;
	border-radius: var(--pt-radius);
	overflow: hidden;
}

body.pt-blog-page article.post .entry-featured img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body.pt-blog-page article.post .entry-header {
	margin: 0 !important;
}

body.pt-blog-page article.post .entry-title {
	margin: 0 0 0.35rem !important;
	font-family: var(--pt-font) !important;
	font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.3 !important;
}

body.pt-blog-page article.post .entry-title a {
	color: var(--pt-ink) !important;
	text-decoration: none !important;
	transition: color 0.18s var(--pt-ease);
}

body.pt-blog-page article.post .entry-title a:hover,
body.pt-blog-page article.post .entry-title a:focus-visible {
	color: var(--pt-blue) !important;
}

body.pt-blog-page article.post .p-meta,
body.pt-blog-page article.post .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
	margin: 0 0 0.45rem !important;
	font-size: 0.8125rem !important;
	color: var(--pt-ink-3) !important;
	line-height: 1.4;
}

body.pt-blog-page article.post .p-meta > span {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

body.pt-blog-page article.post .p-meta a {
	color: var(--pt-blue) !important;
	font-weight: 500;
	text-decoration: none !important;
}

body.pt-blog-page article.post .p-meta a:hover {
	color: var(--pt-blue-hover) !important;
	text-decoration: underline !important;
}

body.pt-blog-page article.post .p-meta .meta-comments {
	display: none !important; /* quieter archive */
}

body.pt-blog-page article.post .entry-content.excerpt,
body.pt-blog-page article.post .entry-content {
	margin: 0 !important;
	color: var(--pt-ink-2);
	font-size: 0.975rem;
	line-height: 1.6;
}

body.pt-blog-page article.post .entry-content.excerpt p {
	margin: 0 !important;
}

body.pt-blog-page article.post .pt-blog-read {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.55rem;
	font-size: 0.9rem;
	font-weight: 650;
	color: var(--pt-orange) !important;
	text-decoration: none !important;
	transition: gap 0.18s var(--pt-ease), color 0.18s var(--pt-ease);
}

body.pt-blog-page article.post .pt-blog-read:hover {
	color: var(--pt-orange-hover) !important;
	gap: 0.55rem;
}

body.pt-blog-page article.post .pt-blog-read::after {
	content: "→";
	font-weight: 700;
}

/* First article emphasis */
body.pt-blog-page .x-main > article.post:first-of-type .entry-title {
	font-size: clamp(1.4rem, 2.6vw, 1.85rem) !important;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
body.pt-blog-page .x-sidebar .widget {
	background: var(--pt-surface);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
	box-shadow: none;
	padding: 1.25rem 1.3rem;
}

body.pt-blog-page .x-sidebar .widget a {
	color: var(--pt-ink-2) !important;
	text-decoration: none !important;
}

body.pt-blog-page .x-sidebar .widget a:hover {
	color: var(--pt-blue) !important;
}

body.pt-blog-page .x-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.pt-blog-page .x-sidebar li {
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--pt-border);
	font-size: 0.9rem;
	line-height: 1.4;
}

body.pt-blog-page .x-sidebar li:last-child {
	border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
body.pt-blog-page .x-pagination,
body.pt-blog-page .paging {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 2.25rem 0 0.5rem !important;
	padding: 0 !important;
	border: 0 !important;
}

body.pt-blog-page .x-pagination a,
body.pt-blog-page .x-pagination span,
body.pt-blog-page .paging a,
body.pt-blog-page .paging span {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem !important;
	margin: 0 !important;
	border: 1px solid var(--pt-border) !important;
	border-radius: var(--pt-radius-pill) !important;
	background: var(--pt-surface) !important;
	color: var(--pt-ink) !important;
	font-family: var(--pt-font) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background 0.18s var(--pt-ease), border-color 0.18s var(--pt-ease), color 0.18s var(--pt-ease);
}

body.pt-blog-page .x-pagination a:hover,
body.pt-blog-page .paging a:hover {
	border-color: var(--pt-blue) !important;
	color: var(--pt-blue) !important;
}

body.pt-blog-page .x-pagination .current,
body.pt-blog-page .paging .current {
	background: var(--pt-blue) !important;
	border-color: var(--pt-blue) !important;
	color: #fff !important;
}

/* --------------------------------------------------------------------------
   Articles page — The Grid (Panama)
   -------------------------------------------------------------------------- */
body.page-id-38213,
body.pt-blog-page.page {
	background: var(--pt-bg) !important;
}

body.page-id-38213 .x-header-landmark {
	background: linear-gradient(115deg, #0b3d5c 0%, #0066a1 52%, #0a7ab8 100%) !important;
	text-align: center;
	padding: 2.75rem 1.5rem !important;
}

body.page-id-38213 .Panama-grid,
body.page-id-38213 .main-content,
body.page-id-38213 .x-main {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding: 2rem 1.25rem 3rem;
}

body.page-id-38213 .tg-item {
	border-radius: var(--pt-radius-lg) !important;
	border: 1px solid var(--pt-border) !important;
	box-shadow: var(--pt-shadow-sm) !important;
	background: #fff !important;
	overflow: hidden;
}

body.page-id-38213 .tg-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--pt-shadow) !important;
}

body.page-id-38213 .tg-item-title,
body.page-id-38213 .tg-item-title a {
	font-family: var(--pt-font) !important;
	color: var(--pt-ink) !important;
}

body.page-id-38213 .tg-item-title a:hover {
	color: var(--pt-blue) !important;
}

/* --------------------------------------------------------------------------
   Single post polish (when arriving from articles)
   -------------------------------------------------------------------------- */
body.single-post .x-header-landmark {
	background: linear-gradient(115deg, #0b3d5c 0%, #0066a1 55%, #0a7ab8 100%) !important;
}

body.single-post article.post {
	background: var(--pt-surface);
	border: 1px solid var(--pt-border);
	border-radius: var(--pt-radius-lg);
	box-shadow: var(--pt-shadow-sm);
	padding: 1.75rem 1.5rem 2rem !important;
	margin-bottom: 1.5rem;
}

body.single-post .entry-title {
	font-family: var(--pt-font) !important;
	font-weight: 700 !important;
	letter-spacing: -0.03em !important;
	color: var(--pt-ink) !important;
	line-height: 1.25 !important;
}

body.single-post .entry-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--pt-ink-2);
}

@media (max-width: 979px) {
	body.pt-blog-page .x-main,
	body.pt-blog-page .x-sidebar {
		width: 100% !important;
		float: none !important;
	}

	body.pt-blog-page .x-sidebar {
		margin-top: 2rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.pt-blog-page * {
		transition: none !important;
	}
}
