/* Content pages built by build.js (size hubs, landing pages, blog) plus the home page buyer's guide.
   Builds on index.css: same tokens, header, footer, cards and FAQ styles. */

/* ---------- Home: shop-by-size links and buyer's guide ---------- */

.size-hub-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.size-hub-label {
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.size-hub-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.size-hub-nav a,
.chip-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	color: var(--brand-text);
	background: var(--surface);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease;
}

.size-hub-nav a:hover,
.chip-link:hover {
	border-color: var(--orange);
	color: var(--orange);
}

.guide-section {
	padding: 10px 6.5% 80px;
}

.guide-heading {
	max-width: 760px;
	margin: 29px 0 30px;
}

.guide-heading .eyebrow {
	margin-bottom: 8px;
}

.guide-heading h2 {
	margin-bottom: 14px;
	font-family: var(--display);
	font-size: clamp(27px, 3vw, 39px);
	font-weight: 600;
	line-height: 1.1;
}

.guide-heading p:last-child {
	margin: 0;
	color: var(--soft-text);
	font-size: 15px;
	line-height: 1.7;
}

.guide-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: guide;
}

.guide-grid li {
	padding: 24px 22px;
	border: 1px solid var(--line);
	background: var(--surface);
	counter-increment: guide;
}

.guide-grid h3 {
	margin: 0 0 10px;
	font-family: var(--display);
	font-size: 19px;
}

.guide-grid h3::before {
	display: block;
	margin-bottom: 10px;
	color: var(--orange);
	content: "0" counter(guide);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
}

.guide-grid p {
	margin: 0;
	color: var(--soft-text);
	font-size: 13px;
	line-height: 1.7;
}

.guide-grid a,
.faq-list details a {
	color: var(--brand-text);
	font-weight: 700;
	text-decoration-color: var(--orange);
	text-underline-offset: 3px;
}

.guide-grid a:hover,
.faq-list details a:hover {
	color: var(--orange);
}

/* ---------- Page shell ---------- */

.content-page {
	padding: 26px 6.5% 0;
}

.page-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(24px, 5vw, 64px);
	padding: 12px 0 40px;
	border-bottom: 1px solid var(--line);
}

.page-hero.no-media {
	grid-template-columns: minmax(0, 1fr);
}

.page-hero .eyebrow {
	margin-bottom: 12px;
}

.page-hero h1,
.article-hero h1 {
	max-width: 820px;
	margin: 0;
	font-family: var(--display);
	font-size: clamp(34px, 4.4vw, 58px);
	font-weight: 600;
	line-height: 1.03;
}

.page-lede {
	max-width: 640px;
	margin: 18px 0 24px;
	color: var(--soft-text);
	font-size: 16px;
	line-height: 1.7;
}

.page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.page-actions .search-button {
	min-height: 52px;
	padding: 0 22px;
	font-size: 13px;
	text-decoration: none;
}

.page-hero-media {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--forest-light);
}

.page-hero-media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.page-section {
	padding: 64px 0 0;
}

.page-section > .catalog-heading {
	margin-top: 0;
}

/* ---------- Long-form copy ---------- */

.prose {
	max-width: 760px;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.75;
}

.prose > :first-child {
	margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose .table-wrap {
	margin: 0 0 20px;
}

.prose p,
.prose li {
	color: var(--soft-text);
}

.prose strong {
	color: var(--ink);
}

.prose h2 {
	margin: 48px 0 16px;
	font-family: var(--display);
	font-size: clamp(25px, 2.6vw, 32px);
	font-weight: 600;
	line-height: 1.15;
	scroll-margin-top: 20px;
}

.prose h3 {
	margin: 32px 0 10px;
	font-family: var(--display);
	font-size: 20px;
	line-height: 1.25;
	scroll-margin-top: 20px;
}

.prose h4 {
	margin: 24px 0 8px;
	font-size: 15px;
}

.prose a {
	color: var(--brand-text);
	font-weight: 600;
	text-decoration-color: var(--orange);
	text-underline-offset: 3px;
}

.prose a:hover {
	color: var(--orange);
}

.prose ul,
.prose ol {
	padding-left: 22px;
}

.prose li + li {
	margin-top: 6px;
}

.prose li::marker {
	color: var(--orange);
	font-weight: 700;
}

.prose ul.checklist {
	padding-left: 0;
	list-style: none;
}

.prose ul.checklist li {
	position: relative;
	padding-left: 30px;
}

.prose ul.checklist li::before {
	width: 16px;
	height: 16px;
	position: absolute;
	top: 5px;
	left: 0;
	border: 2px solid var(--brand-text);
	content: "";
}

.prose blockquote {
	padding: 16px 20px;
	border-left: 3px solid var(--orange);
	background: var(--forest-light);
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose hr {
	margin: 40px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.prose code {
	padding: 1px 5px;
	background: var(--forest-light);
	font-size: .9em;
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	background: var(--surface);
}

.prose table,
.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}

.prose th,
.prose td,
.data-table th,
.data-table td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose thead th,
.data-table thead th {
	color: var(--ink);
	background: var(--forest-light);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
}

.prose tbody tr:last-child td,
.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
	border-bottom: 0;
}

.prose td,
.data-table td {
	color: var(--soft-text);
}

.data-table tbody th {
	color: var(--ink);
	font-weight: 700;
}

.data-table a {
	color: var(--brand-text);
	font-weight: 700;
	text-decoration-color: var(--orange);
	text-underline-offset: 3px;
}

.price-cell {
	color: var(--ink);
	font-family: var(--display);
	font-weight: 700;
	white-space: nowrap;
}

.price-cell.is-quote {
	color: var(--brand-text);
}

.price-cell.is-missing {
	color: var(--muted);
	font-family: var(--body);
	font-weight: 600;
}

.table-note {
	max-width: 760px;
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.6;
}

/* ---------- Product page additions ---------- */

.price-line {
	margin: 4px 0 18px;
	padding: 14px 16px;
	border-left: 3px solid var(--orange);
	background: var(--forest-light);
	color: var(--soft-text);
	font-size: 13px;
	line-height: 1.6;
}

.price-line strong {
	color: var(--ink);
	font-family: var(--display);
	font-size: 18px;
}

.best-for {
	margin-top: 30px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.best-for h3 {
	margin: 0 0 10px;
	font-family: var(--display);
	font-size: 19px;
}

.best-for p {
	margin: 0 0 12px;
	color: var(--soft-text);
	font-size: 14px;
	line-height: 1.75;
}

.best-for p:last-child {
	margin-bottom: 0;
}

.best-for a {
	color: var(--brand-text);
	font-weight: 700;
	text-decoration-color: var(--orange);
	text-underline-offset: 3px;
}

.condition-link {
	display: inline-flex;
	gap: 6px;
	margin-top: 14px;
	color: var(--brand-text);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.condition-link:hover {
	color: var(--orange);
}

.noindex-note {
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 1px dashed var(--line);
	color: var(--muted);
	font-size: 12px;
	line-height: 1.6;
}

/* ---------- FAQ on content pages (reuses home FAQ styles) ---------- */

.content-page .faq-section {
	padding: 72px 0 0;
}

.content-page .faq-list summary {
	font-size: 14px;
}

.content-page .faq-list details p {
	font-size: 13px;
}

/* ---------- Buyer guides and blog cards ---------- */

.guides-section {
	padding: 72px 0 0;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 22px 20px 18px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.post-card h3 {
	margin: 0 0 10px;
	font-family: var(--display);
	font-size: 18px;
	line-height: 1.2;
}

.post-card h3 a {
	text-decoration: none;
}

.post-card h3 a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.post-card:hover h3 a,
.post-card h3 a:focus-visible {
	color: var(--orange);
}

.post-card p {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.post-meta {
	margin-top: auto;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
}

.draft-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	color: var(--on-yellow);
	background: var(--yellow);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.blog-filters {
	margin: 0 0 22px;
}

/* ---------- Blog post ---------- */

.draft-banner {
	margin: 0 0 26px;
	padding: 18px 20px;
	border: 2px solid var(--yellow);
	background: var(--surface);
	font-size: 13px;
	line-height: 1.6;
}

.draft-banner strong {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
}

.draft-banner ul {
	margin: 8px 0 0;
	padding-left: 20px;
	color: var(--soft-text);
}

.article-hero {
	max-width: 880px;
	padding: 6px 0 30px;
}

.article-hero .eyebrow {
	margin-bottom: 12px;
}

.article-dek {
	max-width: 700px;
	margin: 18px 0 18px;
	color: var(--soft-text);
	font-size: 17px;
	line-height: 1.65;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.article-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 760px);
	gap: clamp(28px, 5vw, 72px);
	align-items: start;
	padding-top: 34px;
	border-top: 1px solid var(--line);
}

.article-layout.no-toc {
	grid-template-columns: minmax(0, 760px);
}

.toc {
	position: sticky;
	top: 20px;
	font-size: 13px;
}

.toc p {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--line);
}

.toc li a {
	display: block;
	padding: 6px 0 6px 14px;
	color: var(--soft-text);
	line-height: 1.4;
	text-decoration: none;
}

.toc li a:hover {
	color: var(--orange);
}

.cta-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 30px;
	max-width: 1040px;
	margin: 56px 0 0;
	padding: 28px 30px;
	color: var(--white);
	background: var(--forest);
}

.cta-box h2 {
	margin: 0 0 6px;
	font-family: var(--display);
	font-size: 24px;
	font-weight: 600;
}

.cta-box p {
	max-width: 560px;
	margin: 0;
	color: rgba(255, 255, 255, .78);
	font-size: 14px;
	line-height: 1.6;
}

.cta-box .page-actions a {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	padding: 0 18px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.cta-primary {
	color: var(--on-yellow);
	background: var(--yellow);
}

.cta-secondary {
	border: 1px solid rgba(255, 255, 255, .5);
	color: var(--white);
}

.cta-primary:hover,
.cta-secondary:hover {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}

/* ---------- 404 ---------- */

.not-found {
	max-width: 640px;
	margin: 70px auto 90px;
	padding: 0 16px;
	text-align: center;
}

.not-found h1 {
	margin: 0 0 12px;
	font-family: var(--display);
	font-size: clamp(30px, 4vw, 44px);
}

.not-found p {
	color: var(--soft-text);
	line-height: 1.7;
}

.not-found .page-actions {
	justify-content: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.guide-grid,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.page-hero,
	.article-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.toc {
		position: static;
	}
}

@media (max-width: 850px) {
	.content-page {
		padding-right: 5%;
		padding-left: 5%;
	}
}

@media (max-width: 620px) {
	.content-page {
		padding: 18px 16px 0;
	}

	.guide-section {
		padding: 0 16px 56px;
	}

	.guide-grid,
	.post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.prose {
		font-size: 15px;
	}

	.page-section,
	.guides-section,
	.content-page .faq-section {
		padding-top: 52px;
	}

	.cta-box {
		padding: 24px 20px;
	}

	.page-actions .search-button,
	.page-actions .product-call {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* ---------- Content page body: prose with full-width tables and card grids between ---------- */

.page-body {
	padding-top: 44px;
}

.page-body > .prose:first-child > h2:first-child,
.page-body > .prose > :first-child {
	margin-top: 0;
}

.page-component {
	margin: 4px 0 40px;
}

.page-component + .prose > h2:first-child {
	margin-top: 8px;
}

.page-component .table-wrap {
	max-width: 1100px;
}

/* ---------- Legal pages: details the owner still has to fill in ---------- */

mark.placeholder {
	padding: 0 3px;
	color: var(--on-yellow);
	background: var(--yellow);
	font-weight: 700;
}
