/* Size Facts Hub 2.0: measurement-hub design system. System fonts, no external requests. */

:root {
	--navy: #0b2239;
	--navy-2: #12324f;
	--blue: #0b5cad;
	--blue-dark: #084782;
	--amber: #f5c518;
	--bg: #f4f7fa;
	--white: #fff;
	--ink: #10202f;
	--muted: #44566a;
	--line: #d9e2ea;
	--soft: #e8f0f7;
	--radius: 12px;
	--radius-sm: 8px;
	--wrap: 1200px;
	--shadow: 0 8px 24px rgba(11, 34, 57, 0.1);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 1rem/1.6 var(--font); overflow-wrap: break-word;
	font-variant-numeric: tabular-nums;
}

img, video, svg { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed !important; top: 0.5rem; left: 0.5rem; width: auto; height: auto; margin: 0;
	padding: 0.75rem 1rem; clip: auto; clip-path: none; z-index: 1000;
	background: var(--white); color: var(--ink); box-shadow: 0 0 0 3px var(--blue);
}

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }

/* Signature detail: a measuring-tape edge. */
.ruler {
	height: 12px;
	background:
		repeating-linear-gradient(90deg, var(--amber) 0 2px, transparent 2px 40px) bottom / 100% 12px no-repeat,
		repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) bottom / 100% 6px no-repeat;
	color: rgba(143, 180, 217, 0.7);
}
.page-hero .ruler { color: rgba(11, 34, 57, 0.35); }

/* ---------- Buttons ---------- */
.button, .search-submit, .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; padding: 0 1.25rem; font: inherit; font-weight: 700;
	color: var(--white); background: var(--blue); border: 1px solid var(--blue);
	border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
}
.button:hover, .search-submit:hover, .comment-form .submit:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.text-link { font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--blue); }
.brand-mark { display: inline-flex; padding: 6px; background: var(--navy); color: var(--amber); border-radius: 8px; }
.site-branding .custom-logo { max-height: 44px; width: auto; display: block; }

.menu-toggle {
	display: none; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.9rem;
	background: var(--white); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-sm);
	font: inherit; font-weight: 700; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; position: relative; }
.menu-toggle-bars::before { position: absolute; top: -6px; }
.menu-toggle-bars::after { position: absolute; top: 6px; }

.site-menu { display: flex; align-items: center; gap: 1.25rem; flex: 1 1 auto; justify-content: flex-end; }
.primary-nav .menu, .footer-list, .chip-list, .menu ul, .stats-list, .breadcrumbs ol { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.primary-nav a { display: inline-block; padding: 0.5rem 0.1rem; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current-cat > a { color: var(--blue); border-bottom-color: var(--amber); }
.primary-nav .menu-item { position: relative; }
.primary-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 13rem; padding: 0.4rem 0.9rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.primary-nav .menu-item:hover > .sub-menu, .primary-nav .menu-item:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; white-space: nowrap; }

/* ---------- Search ---------- */
.search-form { position: relative; display: flex; gap: 0.5rem; width: 100%; }
.search-icon { position: absolute; left: 0.9rem; top: 0; bottom: 0; display: flex; align-items: center; color: var(--muted); pointer-events: none; }
.search-field {
	flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 0.9rem 0 2.7rem; font: inherit; color: var(--ink);
	background: var(--white); border: 1px solid #7b8d9e; border-radius: var(--radius-sm);
}
.search-form--compact { max-width: 17rem; }
.search-form--compact .search-submit { display: none; }
.search-form--wide { max-width: 40rem; }
.search-form--hero { max-width: 40rem; padding: 0.4rem; background: var(--white); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
.search-form--hero .search-icon { left: 1.3rem; }
.search-form--hero .search-field { min-height: 56px; border: 0; font-size: 1.05rem; padding-left: 2.8rem; }
.search-form--hero .search-field:focus-visible { outline-offset: 0; }
.search-form--hero .search-submit { min-height: 56px; padding-inline: 1.6rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(143, 180, 217, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 180, 217, 0.1) 1px, transparent 1px);
	background-size: 32px 32px;
}
.hero-grid { position: relative; display: grid; gap: 2rem; align-items: center; padding-block: 3rem 3.25rem; }
.hero-title { font-size: clamp(2rem, 6.5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 0.5em; max-width: 16em; }
.hero-lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: #cbdaea; max-width: 34rem; margin-bottom: 1.75rem; }
.hero-chips { margin-top: 1.5rem; }
.hero-art { display: none; }
.hero-art-svg { width: 100%; max-width: 420px; margin-inline: auto; display: block; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-list { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; padding-block: 0.9rem; color: var(--muted); }
.stats-list strong { color: var(--ink); font-size: 1.2rem; margin-right: 0.25rem; }

/* ---------- Sections ---------- */
.section { padding-block: 2.75rem; }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section-tight { padding-block: 2rem 3rem; }
.section-head { margin-bottom: 1.5rem; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.section-title { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.6rem; }
.section-head--row .section-title { margin-bottom: 0; }
.section-sub { color: var(--muted); margin: 0; }
.title-icon { display: inline-flex; padding: 6px; background: var(--soft); color: var(--blue); border-radius: 8px; }
.small-heading { font-size: 1.05rem; margin: 1.75rem 0 0.6rem; }

/* ---------- Chips ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-list a {
	display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 0.95rem;
	background: var(--white); border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.chip-list a:hover { border-color: var(--blue); color: var(--blue); }
.chip-count { padding: 0 0.45rem; background: var(--soft); border-radius: 999px; font-size: 0.8rem; color: var(--muted); }
.chip-list--dark a { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.chip-list--dark a:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.chip-list--small a { min-height: 32px; padding: 0 0.7rem; font-size: 0.85rem; }
.chip-list--light a { background: var(--white); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
.cat-card {
	position: relative; display: flex; flex-direction: column; padding: 1rem;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-card:hover, .cat-card:focus-within { border-color: var(--blue); box-shadow: var(--shadow); }
.cat-icon { display: inline-flex; align-self: flex-start; padding: 10px; margin-bottom: 0.8rem; background: var(--navy); color: var(--amber); border-radius: 10px; }
.cat-title { font-size: 1.1rem; margin-bottom: 0.3rem; }
.cat-title a { color: var(--ink); text-decoration: none; }
.cat-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.cat-title a:focus-visible { outline: none; }
.cat-card:has(.cat-title a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.cat-blurb { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.cat-cta { display: flex; align-items: center; gap: 0.25rem; margin: auto 0 0; color: var(--blue); font-weight: 700; font-size: 0.9rem; }

/* ---------- Guide cards ---------- */
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { box-shadow: var(--shadow); }
.card-thumb { display: block; aspect-ratio: 16 / 9; background: var(--soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb--icon { display: flex; align-items: center; justify-content: center; color: var(--blue); background: linear-gradient(0deg, var(--soft), var(--soft)); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.2rem; }
.card-cat { margin: 0 0 0.4rem; font-size: 0.85rem; font-weight: 700; }
.card-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); text-decoration: underline; }
.card-excerpt { color: var(--muted); font-size: 0.95rem; }
.card-excerpt p { margin: 0; }

/* ---------- Basics panels, callout ---------- */
.info-grid { display: grid; gap: 1.25rem; }
.panel { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { font-size: 1.15rem; }
.defs { margin: 0; display: grid; gap: 0.75rem; }
.defs dt { font-weight: 800; }
.defs dd { margin: 0; color: var(--muted); }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: 1.25rem; background: var(--navy); color: var(--white); border-radius: var(--radius); }
.callout h3 { margin-bottom: 0.2rem; }
.callout p { margin: 0; color: #cbdaea; }
.callout .button { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.callout .button:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* ---------- Archive header band ---------- */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: 1.5rem 1.75rem; }
.page-hero-main { display: flex; gap: 1rem; align-items: center; }
.page-hero-icon { display: inline-flex; flex: none; padding: 14px; background: var(--navy); color: var(--amber); border-radius: 14px; }
.page-hero img.avatar { border-radius: 50%; flex: none; }
.page-title { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: 0.25em; }
.archive-description { color: var(--muted); max-width: 42rem; }
.archive-description > :last-child { margin-bottom: 0; }
.page-hero-meta { margin: 0.25rem 0 0; font-weight: 700; color: var(--blue-dark); }
.page-hero .chip-list { margin-top: 1rem; }
.search-again { margin-bottom: 1.75rem; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 2.25rem; }
.not-found-actions .search-form { flex: 1 1 22rem; }

/* ---------- Layout ---------- */
.site-main { padding-block: 0; }
.site-main:focus { outline: none; }
.site-main > .container:not(.section-tight) { padding-block: 1.5rem 3rem; }
.layout { display: block; }
.content-area { max-width: 48rem; margin-inline: auto; min-width: 0; }
.content-area--wide { max-width: none; }
.has-sidebar .content-area { margin-inline: 0; max-width: none; }
.has-sidebar .entry { max-width: 48rem; }
.sidebar { margin-top: 2.5rem; }
.widget { margin-bottom: 1.5rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.widget-title { font-size: 1.05rem; }
.widget ul, .widget ol { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.4; }
.widget li:first-child { padding-top: 0; }
.widget li:last-child { padding-bottom: 0; border-bottom: 0; }
.widget a { font-weight: 600; text-decoration: none; }
.widget a:hover { text-decoration: underline; }
.widget .post-date, .widget .wp-block-latest-posts__post-date { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--muted); }
.widget .search-form { max-width: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: 1rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #7b8d9e; }
.breadcrumbs a { color: var(--blue-dark); }

/* ---------- Article ---------- */
.entry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.entry-header { margin-bottom: 1.25rem; }
.entry-header .chip-list { margin-bottom: 0.9rem; }
.entry-title { font-size: clamp(1.9rem, 6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 0.4em; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin-bottom: 1rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; font-size: 0.875rem; color: var(--muted); }
.entry-meta a { color: var(--muted); }
.entry-media { margin: 0 0 1.5rem; }
.entry-media img { width: 100%; display: block; border-radius: var(--radius-sm); }
.entry-media figcaption, .wp-caption-text { font-size: 0.875rem; color: var(--muted); margin-top: 0.4rem; }
.entry-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.entry-footer .small-heading { margin-top: 0; }

/* Key measurements */
.facts { margin: 0 0 1.75rem; padding: 1rem; background: var(--navy); color: var(--white); border-radius: var(--radius); }
.facts-title { font-size: 1rem; margin-bottom: 0.75rem; color: var(--amber); }
.facts-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: 0; }
.fact { padding: 0.7rem 0.85rem; background: var(--navy-2); border-radius: var(--radius-sm); border-left: 4px solid var(--amber); }
.fact--wide { grid-column: 1 / -1; }
.fact dt { font-size: 0.85rem; color: #cbdaea; }
.fact dd { margin: 0; font-size: 1.4rem; font-weight: 800; line-height: 1.25; }

/* Article body */
.entry-content { font-size: 1.0625rem; line-height: 1.75; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.6rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content blockquote { margin: 1.5em 0; padding: 0.2em 1.25em; border-left: 4px solid var(--amber); color: var(--muted); }
.entry-content figure { margin: 1.5em 0; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); font-size: 0.9rem; }
.alignleft { float: left; margin: 0.25em 1.25em 1em 0; }
.alignright { float: right; margin: 0.25em 0 1em 1.25em; }
.aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.page-links { margin-top: 1rem; }

/* Tables: scroll container keeps the page from overflowing on mobile. */
.table-scroll {
	overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background:
		linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left center / 2rem 100% no-repeat local,
		linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right center / 2rem 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(16, 32, 47, 0.22), rgba(16, 32, 47, 0)) left center / 0.6rem 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(16, 32, 47, 0.22), rgba(16, 32, 47, 0)) right center / 0.6rem 100% no-repeat scroll;
}
.table-scroll:focus-visible { outline-offset: 0; }
.table-scroll table, .entry-content table, .unit-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.97rem; }
.entry-content figure.wp-block-table { margin: 0; }
.entry-content th, .entry-content td, .unit-table th, .unit-table td { padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.entry-content thead th, .unit-table thead th { background: var(--navy); color: var(--white); white-space: nowrap; border-bottom: 0; }
.entry-content tbody tr:nth-child(even) td, .entry-content tbody tr:nth-child(even) th, .unit-table tbody tr:nth-child(even) > * { background: rgba(232, 240, 247, 0.6); }
.entry-content tbody th, .unit-table tbody th { font-weight: 700; }
.entry-content tr:last-child td, .entry-content tr:last-child th, .unit-table tr:last-child > * { border-bottom: 0; }

.more-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.more-in p { margin: 0; font-weight: 800; }

.author-box { display: flex; gap: 1rem; margin-top: 1.25rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0 0 0.3rem; }
.author-name { font-weight: 800; }

.post-navigation .nav-links { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.post-navigation a { display: block; height: 100%; padding: 0.9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.post-navigation a:hover { border-color: var(--blue); }
.nav-sub { display: block; font-size: 0.85rem; color: var(--muted); }
.nav-title { display: block; font-weight: 800; }
.nav-next { text-align: right; }

.related { margin-top: 3rem; }
.related > h2 { font-size: 1.6rem; }

/* ---------- Pagination, empty ---------- */
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 700; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination .dots { border-color: transparent; background: transparent; }
.no-results { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.no-results h2 { font-size: 1.5rem; }
.no-results .search-form { margin: 1rem 0 1.25rem; }
.home-content { max-width: 48rem; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 1.5rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.comments-title { font-size: 1.4rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 0.5rem; }
.comment-metadata { font-size: 0.85rem; }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 0.6rem 0.75rem; font: inherit; border: 1px solid #7b8d9e; border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #dbe6f0; margin-top: 2rem; }
.site-footer .ruler { color: rgba(143, 180, 217, 0.7); }
.site-footer a { color: #dbe6f0; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.25rem 1.25rem; }
.footer-brand { font-size: 1.35rem; font-weight: 800; color: var(--white); margin: 0 0 0.4rem; }
.footer-note { color: #b9c9d8; max-width: 26rem; }
.footer-heading { font-weight: 800; color: var(--white); margin: 0 0 0.6rem; }
.footer-list { display: grid; gap: 0.4rem; }
.footer-bottom { padding-block: 1rem 2rem; font-size: 0.875rem; color: #b9c9d8; border-top: 1px solid #25405b; }
.footer-bottom p { margin: 1rem 0 0; }
.footer-list--cols { gap: 0.4rem 1.5rem; }
.site-footer .search-form--compact { max-width: 20rem; }
.site-footer .search-field { border-color: transparent; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
	.container { padding-inline: 1.5rem; }
	.entry { padding: 2rem; }
	.cat-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
	.cat-card { padding: 1.25rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1.4fr 1.6fr 1fr; }
	.footer-list--cols { grid-template-columns: 1fr 1fr; }
	.info-grid { grid-template-columns: 1fr 1fr; }
	.section { padding-block: 3.5rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
	.hero-grid { grid-template-columns: 1.25fr 0.75fr; padding-block: 4.5rem 5rem; }
	.hero-art { display: block; }
	.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.card--lead { grid-column: span 2; }
	.card--lead .card-title { font-size: 1.5rem; }
	.has-sidebar .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.has-sidebar .card--lead { grid-column: auto; }
	.layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; align-items: start; }
	.sidebar { margin-top: 0; }
	.entry-content { font-size: 1.125rem; }
}

/* ---------- Mobile menu: hidden only after JS is ready, so it works without JS ---------- */
@media (max-width: 859px) {
	.js .menu-toggle { display: inline-flex; }
	.site-menu { flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 1rem; padding-top: 0.5rem; }
	.js .site-menu { display: none; }
	.js .site-menu.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
	.primary-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
	.primary-nav .sub-menu a { white-space: normal; }
	.search-form--compact { max-width: none; }
	.search-form--compact .search-submit { display: inline-flex; }
}
@media (min-width: 860px) {
	.menu-toggle { display: none !important; }
	.site-menu { display: flex !important; }
}
@media (max-width: 480px) {
	.search-form--hero .search-submit { padding-inline: 1rem; }
	.search-form--wide .search-submit { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
