/*
Theme Name: Gelombang Kabin
Theme URI: https://caraudiomedia.com/
Author: Car Audio Media
Author URI: https://caraudiomedia.com/tentang-kami/
Description: Tema editorial audio mobil yang ringan, aksesibel, mobile-first, dan berfokus pada diagnosis aman.
Version: 1.0.11
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: gelombang-kabin
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--plum: #213555;
	--plum-deep: #14233a;
	--plum-soft: #466283;
	--rose: #e8eef6;
	--rose-deep: #b7c6da;
	--saffron: #d97706;
	--cream: #f8fafc;
	--paper: #eef3f8;
	--white: #ffffff;
	--ink: #172033;
	--muted: #556176;
	--sage: #e5f0eb;
	--line: #ccd6e3;
	--shadow: 0 18px 52px rgba(20, 35, 58, 0.13);
	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 18px;
	--wrap: 1180px;
	--narrow: 800px;
	--wide: 1360px;
	--display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
	--body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	max-width: 100%;
	overflow-x: clip;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.72;
	text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--plum); text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { color: var(--plum-soft); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; }
::selection { background: var(--saffron); color: var(--plum-deep); }
h1, h2, h3, h4 {
	margin: 0 0 0.65em;
	color: var(--plum-deep);
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.08;
}
h1 { font-size: clamp(2.65rem, 7vw, 5.6rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.7rem); }
p, ul, ol, blockquote { margin-top: 0; margin-bottom: 1.25em; }
.wrap, .wrap-wide, .wrap-narrow { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.wrap-wide { max-width: var(--wide); }
.wrap-narrow { max-width: var(--narrow); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus, .skip-link:focus {
	top: 14px; left: 14px; z-index: 100000; display: block; width: auto; height: auto;
	padding: 12px 18px; clip: auto !important; border-radius: 8px; background: var(--white);
	color: var(--plum-deep); font-weight: 800;
}

/* Header and navigation */
.site-header { position: relative; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.13); background: var(--plum-deep); color: var(--white); }
.header-inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding, .brand-link, .brand-copy, .primary-navigation { min-width: 0; }
.brand-link, .footer-brand { text-decoration: none; }
.brand-link { display: inline-flex; align-items: center; gap: 13px; color: var(--white); }
.brand-link:hover { color: var(--white); }
.brand-mark { display: block; width: 54px; height: 54px; overflow: hidden; flex: 0 0 auto; border: 2px solid var(--saffron); border-radius: 8px; background: var(--cream); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { overflow-wrap: anywhere; font-family: var(--display); font-size: 1.28rem; letter-spacing: -0.025em; }
.brand-copy small { max-width: 290px; color: #d6e0ec; font-size: .8rem; line-height: 1.25; }
.custom-logo { width: auto; max-height: 62px; }
.primary-navigation .menu, .footer-menu { display: flex; align-items: center; gap: 23px; padding: 0; margin: 0; list-style: none; }
.primary-navigation .menu a { position: relative; color: #f7f9fc; font-size: .84rem; font-weight: 750; text-decoration: none; }
.primary-navigation .menu a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 3px; border-radius: 99px; background: var(--saffron); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.primary-navigation .menu a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current-menu-ancestor > a { color: var(--saffron); }
.primary-navigation .menu a:hover::after, .primary-navigation .current-menu-item > a::after { transform: scaleX(1); }
.menu-toggle { display: none; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; background: transparent; color: var(--white); font-size: .86rem; font-weight: 800; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; }
.menu-toggle-lines::before { transform: translateY(-6px); }
.menu-toggle-lines::after { transform: translateY(4px); }

.breadcrumbs { padding-block: 18px; font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 8px; color: var(--rose-deep); content: "›"; }
.breadcrumbs a { color: var(--muted); }
.eyebrow, .article-kicker, .card-kicker { color: var(--plum-soft); font-size: .8rem; font-weight: 850; letter-spacing: .13em; line-height: 1.35; text-transform: uppercase; }

/* Buttons */
.button, .entry-content .button, button[type="submit"], input[type="submit"] {
	display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 21px;
	border: 2px solid var(--plum); border-radius: 99px; background: var(--plum); color: var(--white);
	max-width: 100%; overflow-wrap: anywhere; font-size: .9rem; font-weight: 850; line-height: 1.2; text-align: center; text-decoration: none; white-space: normal;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover, .entry-content .button:hover, button[type="submit"]:hover, input[type="submit"]:hover { border-color: var(--saffron); background: var(--saffron); color: var(--plum-deep); transform: translateY(-2px); }
.button-secondary { border-color: rgba(255,255,255,.5); background: transparent; color: var(--white); }
.button-secondary:hover { border-color: var(--white); background: var(--white); }
.button-light { border-color: var(--cream); background: var(--cream); color: var(--plum-deep); white-space: nowrap; }
.text-link { font-size: .9rem; font-weight: 850; text-decoration: none; }
.text-link span { display: inline-block; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }

/* Front page */
.work-hero { position: relative; overflow: hidden; padding-block: clamp(65px, 9vw, 120px); background: linear-gradient(135deg, var(--plum-deep), var(--plum)); color: var(--white); }
.work-hero::before, .work-hero::after { position: absolute; background: rgba(232,238,246,.08); content: ""; transform: rotate(-8deg); }
.work-hero::before { width: 420px; height: 150px; right: -70px; top: 65px; border-left: 12px solid rgba(217,119,6,.65); }
.work-hero::after { width: 280px; height: 90px; right: 12%; bottom: -28px; transform: rotate(12deg); }
.work-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr); gap: clamp(42px, 7vw, 90px); align-items: center; }
.work-hero-copy h1 { max-width: 780px; color: var(--white); }
.work-hero-copy > p:not(.eyebrow) { max-width: 700px; color: #e5edf6; font-size: clamp(1.05rem, 2vw, 1.26rem); }
.work-hero .eyebrow { color: var(--saffron); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-principles { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 30px 0 0; list-style: none; color: #dbe5f0; font-size: .8rem; font-weight: 700; }
.hero-principles li::before { margin-right: 8px; color: var(--saffron); content: "✓"; }
.hero-story { position: relative; display: block; overflow: hidden; border: 7px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); background: var(--cream); box-shadow: 0 28px 70px rgba(8,18,34,.35); color: var(--plum-deep); text-decoration: none; transform: translateY(9px); }
.hero-story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-story-label { position: absolute; top: 20px; left: 20px; padding: 7px 12px; border-radius: 99px; background: var(--saffron); color: var(--plum-deep); font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero-story strong { display: block; padding: 23px 27px 28px; font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.2; }
.hero-dossier { position: relative; min-height: 420px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-lg); background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(232,238,246,.05)); }
.hero-dossier::before { position: absolute; inset: 54px 42px; border-top: 10px solid var(--saffron); border-bottom: 1px solid rgba(255,255,255,.28); content: ""; }
.hero-dossier i { position: absolute; right: 42px; left: 42px; height: 1px; background: rgba(255,255,255,.32); }
.hero-dossier i:first-child { top: 145px; }
.hero-dossier i:nth-child(2) { top: 215px; }
.hero-dossier span { position: absolute; right: 42px; bottom: 55px; width: 42%; height: 82px; border-left: 12px solid var(--saffron); background: rgba(255,255,255,.12); }

.topic-paths { padding-block: clamp(75px, 10vw, 125px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 40px; }
.section-heading h2 { max-width: 760px; margin-bottom: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.topic-grid a { display: flex; min-height: 245px; flex-direction: column; justify-content: space-between; padding: 27px; border: 1px solid var(--line); border-top: 5px solid var(--saffron); border-radius: var(--radius); background: var(--white); color: var(--plum-deep); text-decoration: none; box-shadow: 0 10px 26px rgba(20,53,85,.06); transition: transform 180ms ease, background 180ms ease; }
.topic-grid a:nth-child(2n) { background: var(--rose); }
.topic-grid a:hover { background: var(--saffron); transform: translateY(-5px); }
.topic-grid span { color: var(--plum-soft); font-size: .8rem; font-weight: 850; }
.topic-grid strong { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; }
.topic-grid small { color: var(--muted); line-height: 1.45; }

.latest-guides, .related-guides { padding-block: clamp(75px, 10vw, 125px); background: var(--paper); }
.latest-guides { border-block: 1px solid var(--line); }
.latest-guides .eyebrow, .related-guides .eyebrow { color: var(--plum-soft); }
.light-link { color: var(--plum); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 11px 30px rgba(20,53,85,.08); transition: transform 220ms ease, box-shadow 220ms ease; }
.guide-card:nth-child(3n+2) { border-top: 4px solid var(--saffron); }
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.card-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--rose); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.guide-card:hover .card-image img { transform: scale(1.035); }
.image-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--plum); }
.image-placeholder::before { width: 84px; height: 62px; border: 2px solid currentColor; border-top: 10px solid currentColor; border-radius: 7px; background: transparent; content: ""; }
.image-placeholder i { display: none; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .8rem; }
.card-kicker { display: inline-block; max-width: 68%; text-decoration: none; }
.card-title { margin-bottom: 12px; font-size: clamp(1.25rem, 2vw, 1.63rem); }
.card-title a { color: var(--plum-deep); text-decoration: none; }
.card-body > p { color: var(--muted); font-size: .91rem; }
.card-body .text-link { margin-top: auto; }

.editorial-promise { padding-block: 55px; background: var(--plum); color: var(--white); }
.promise-grid { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 40px; }
.promise-grid h2 { color: var(--white); font-size: clamp(1.75rem, 4vw, 3rem); }
.promise-grid p:last-child { max-width: 760px; margin-bottom: 0; color: #dbe5f0; }
.promise-grid .eyebrow { color: var(--saffron); }
.promise-mark { position: relative; width: 125px; height: 100px; margin: auto; }
.promise-mark span { position: absolute; inset: 8px 16px; border: 3px solid var(--rose); border-radius: 8px; background: transparent; }
.promise-mark i { position: absolute; left: 34px; width: 54px; height: 6px; border-radius: 99px; background: var(--saffron); }
.promise-mark i:nth-child(2) { top: 36px; }
.promise-mark i:nth-child(3) { top: 59px; width: 38px; }

/* Listings */
.listing-page { padding-block: 38px 110px; }
.archive-header { max-width: 850px; padding: clamp(50px, 8vw, 90px) 0; }
.archive-header h1 { font-size: clamp(2.65rem, 7vw, 5.15rem); }
.archive-header > p, .archive-description { max-width: 720px; color: var(--muted); font-size: 1.1rem; }
.listing-grid { row-gap: 42px; }
.navigation.pagination { margin-top: 60px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--plum); font-weight: 800; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { border-color: var(--saffron); background: var(--saffron); color: var(--plum-deep); }
.empty-state { padding: 50px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--rose); }

/* Article and page content */
.single-guide { padding-bottom: 0; }
.article-header { padding-block: clamp(60px, 9vw, 105px) 48px; }
.article-header h1 { margin-top: 16px; font-size: clamp(2.55rem, 7vw, 5.15rem); }
.article-kicker { text-decoration: none; }
.article-deck { max-width: 760px; color: var(--muted); font-size: clamp(1.12rem, 2.3vw, 1.4rem); line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 25px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.article-hero { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--rose); box-shadow: var(--shadow); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { padding: 11px 18px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.article-hero figcaption { background: var(--white); }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(220px, 290px); gap: clamp(45px, 7vw, 90px); align-items: start; padding-block: clamp(65px, 9vw, 110px); }
.entry-content { min-width: 0; }
.entry-content > * { max-width: 100%; }
.entry-content p, .entry-content li { color: #433840; }
.entry-content h2 { padding-top: 40px; scroll-margin-top: 30px; }
.entry-content h3 { padding-top: 18px; scroll-margin-top: 30px; }
.entry-content > p:first-of-type { font-size: 1.12rem; line-height: 1.78; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { padding-left: .3em; margin-bottom: .55em; }
.entry-content blockquote, .editorial-note { display: block; padding: 24px 28px; border-left: 7px solid var(--saffron); border-radius: 0 var(--radius) var(--radius) 0; background: var(--rose); font-size: 1rem; }
.entry-content code, .entry-content pre { border-radius: 5px; background: var(--paper); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.entry-content code { padding: .15em .35em; }
.entry-content pre { overflow-x: auto; padding: 20px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; background: var(--white); }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--plum); color: var(--white); }
.gelombang-secondary-figure { margin: 38px 0 48px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 35px rgba(68,33,58,.09); }
.gelombang-secondary-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-toc { padding: 24px 27px; margin-bottom: 40px; border: 1px solid var(--rose-deep); border-radius: var(--radius); background: #fff1f5; }
.article-toc .toc-title { margin-bottom: 11px; color: var(--plum-deep); font-family: var(--display); font-size: 1.08rem; font-weight: 700; }
.article-toc ol { columns: 2; column-gap: 35px; padding-left: 1.25em; margin: 0; }
.article-toc li { break-inside: avoid; margin-bottom: 6px; font-size: .86rem; }
.article-aside { position: sticky; top: 28px; }
.editorial-card { padding: 28px; border-top: 7px solid var(--saffron); border-radius: var(--radius); background: var(--plum); color: #dbe5f0; }
.editorial-card h2 { color: var(--white); font-size: 1.35rem; }
.editorial-card p { font-size: .85rem; }
.editorial-card a { color: var(--saffron); }
.decision-dots { display: flex; gap: 6px; margin-bottom: 22px; }
.decision-dots i { width: 25px; height: 6px; border-radius: 99px; background: var(--saffron); }
.decision-dots i:nth-child(2), .decision-dots i:nth-child(4) { background: var(--rose); }
.article-footer { padding-bottom: clamp(75px, 10vw, 120px); }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 30px; border-top: 1px solid var(--line); }
.tag-list a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: .8rem; text-decoration: none; }
.author-note, .guide-note { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 32px; margin-top: 42px; border-radius: var(--radius); background: var(--sage); }
.author-avatar, .guide-avatar { display: flex; width: 70px; height: 70px; align-items: center; justify-content: center; border-radius: 10px; background: var(--plum); color: var(--white); font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.author-note h2, .guide-note h2 { margin-bottom: 8px; font-size: 1.45rem; }
.author-note p, .guide-note p { margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.page-main { padding-block: clamp(55px, 8vw, 100px) 120px; }
.page-article { padding: clamp(26px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 12px 38px rgba(68,33,58,.06); }
.page-content h1 { font-size: clamp(2.5rem, 6vw, 4.65rem); }

/* Forms, search, and errors */
.search-form label { display: block; margin-bottom: 8px; color: var(--plum-deep); font-size: .82rem; font-weight: 800; }
.search-fields { display: flex; gap: 8px; }
.search-fields .search-field { flex: 1 1 auto; min-width: 0; }
.search-fields button { flex: 0 0 auto; white-space: nowrap; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], select, textarea {
	width: 100%; padding: 13px 15px; border: 1px solid #bfaeb7; border-radius: 10px; background: var(--white); color: var(--ink);
}
textarea { min-height: 170px; resize: vertical; }
.wpcf7-form label { display: block; margin-bottom: 18px; color: var(--plum-deep); font-weight: 750; }
.wpcf7-form-control-wrap { display: block; margin-top: 7px; }
.wpcf7-not-valid-tip { color: #9c1c32; font-size: .84rem; }
.wpcf7-response-output { padding: 14px !important; margin: 20px 0 !important; border-radius: 10px; }
.contact-unavailable { padding: 20px; border: 1px solid var(--rose-deep); border-radius: var(--radius-sm); background: var(--rose); }
.legal-facts dd,
.legal-facts [data-gelombang-fact] { overflow-wrap: anywhere; word-break: break-word; }
.error-page { padding-block: clamp(65px, 10vw, 120px); text-align: center; }
.error-page .search-form { max-width: 620px; margin: 35px auto; text-align: left; }
.error-signal { position: relative; width: 130px; height: 105px; margin: 0 auto 25px; border: 2px solid var(--rose-deep); border-radius: var(--radius); background: var(--rose); }
.error-signal i { display: none; }
.error-signal::before, .error-signal::after { position: absolute; left: 24px; height: 7px; border-radius: 99px; background: var(--plum); content: ""; }
.error-signal::before { top: 35px; width: 80px; }
.error-signal::after { top: 59px; width: 52px; }

/* Footer */
.site-footer { background: var(--plum-deep); color: #d9e3ef; }
.footer-trail { display: flex; height: 23px; align-items: center; justify-content: center; gap: 28px; background: var(--saffron); }
.footer-trail span { width: 11px; height: 11px; border-radius: 50%; background: var(--plum); }
.footer-trail span:nth-child(3) { width: 18px; height: 13px; border-radius: 50%; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr .8fr; gap: clamp(35px, 7vw, 90px); padding-block: 70px; }
.footer-brand { color: var(--white); font-family: var(--display); font-size: 1.55rem; font-weight: 700; }
.footer-about > p { max-width: 440px; }
.footer-note { color: #bfcddd; font-size: .86rem; }
.footer-heading { color: var(--saffron); font-size: .8rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.footer-menu { display: grid; gap: 7px; align-items: start; }
.site-footer a { color: #fff7fb; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-utility-links { display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: flex-end; }

/* Essential-only first-party cookie consent fallback */
.cookie-consent {
	position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 10000;
	width: min(calc(100% - 40px), 980px); max-height: calc(100vh - 40px); padding: 24px; margin-inline: auto;
	overflow-y: auto; border: 2px solid var(--saffron); border-radius: var(--radius); background: var(--white);
	box-shadow: 0 20px 70px rgba(20,8,17,.35); color: var(--ink);
}
.cookie-consent[hidden], .cookie-consent-settings[hidden] { display: none; }
.cookie-consent-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.cookie-consent-copy > :last-child { margin-bottom: 0; }
.cookie-consent-copy h2 { margin-bottom: 10px; font-size: clamp(1.45rem, 3vw, 2rem); }
.cookie-consent-copy p { margin-bottom: 9px; font-size: .9rem; line-height: 1.55; }
.cookie-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 9px; }
.cookie-consent-choice, .cookie-consent-settings-toggle {
	min-height: 46px; padding: 9px 17px; border: 2px solid var(--plum); border-radius: 99px;
	font-size: .86rem; font-weight: 850;
}
.cookie-consent-choice { background: var(--plum); color: var(--white); }
.cookie-consent-choice:hover { border-color: var(--saffron); background: var(--saffron); color: var(--plum-deep); }
.cookie-consent-settings-toggle { grid-column: 1 / -1; background: var(--white); color: var(--plum); }
.cookie-consent-settings-toggle:hover { background: var(--paper); }
.cookie-consent-settings { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.cookie-consent-settings h3 { margin-bottom: 12px; font-size: 1.15rem; }
.cookie-essential-choice { display: flex; gap: 12px; align-items: flex-start; }
.cookie-essential-choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--plum); }
.cookie-essential-choice span { display: grid; gap: 3px; }
.cookie-essential-choice small { color: var(--muted); line-height: 1.45; }

@media (max-width: 1180px) {
	.brand-copy small { display: none; }
	.menu-toggle { display: inline-flex; }
	.primary-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; max-width: 100vw; max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px); padding: 18px 20px 26px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--plum-deep); box-shadow: 0 18px 32px rgba(20,8,17,.25); }
	.primary-navigation.is-open { display: block; }
	.primary-navigation .menu { width: min(100%, var(--wrap)); align-items: stretch; flex-direction: column; gap: 0; margin-inline: auto; }
	.primary-navigation .menu li { min-width: 0; }
	.primary-navigation .menu a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.13); overflow-wrap: anywhere; font-size: 1rem; }
	.primary-navigation .menu a::after { display: none; }
	.work-hero-grid { grid-template-columns: 1fr 390px; gap: 38px; }
	.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topic-grid { grid-template-columns: repeat(2, 1fr); }
	.article-layout { grid-template-columns: minmax(0, 1fr); }
	.article-aside { position: static; }
	.editorial-card { max-width: 620px; }
	.promise-grid { grid-template-columns: 110px 1fr; }
	.promise-grid .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.wrap, .wrap-wide, .wrap-narrow { width: min(calc(100% - 28px), var(--wrap)); }
	.header-inner { min-height: 78px; }
	.brand-mark { width: 47px; height: 47px; border-radius: 7px; }
	.brand-copy strong { font-size: 1.05rem; }
	.work-hero-grid { grid-template-columns: 1fr; }
	.hero-story { max-width: 540px; border-radius: var(--radius); transform: none; }
	.work-hero::before, .work-hero::after { opacity: .55; }
	.section-heading { align-items: start; flex-direction: column; }
	.guide-grid { grid-template-columns: 1fr; }
	.topic-grid { grid-template-columns: 1fr; }
	.topic-grid a, .topic-grid a:nth-child(2n) { min-height: 190px; border-radius: var(--radius); }
	.promise-grid { grid-template-columns: 1fr; }
	.promise-mark { margin: 0; }
	.promise-grid .button { grid-column: 1; }
	.article-hero { border-radius: var(--radius); }
	.article-toc ol { columns: 1; }
	.author-note, .guide-note { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { align-items: flex-start; flex-direction: column; }
	.footer-utility-links { justify-content: flex-start; }
	.cookie-consent { right: 14px; bottom: 14px; left: 14px; width: calc(100% - 28px); padding: 20px; }
	.cookie-consent-main { grid-template-columns: 1fr; gap: 18px; }
	.search-fields { align-items: stretch; flex-direction: column; }
	.entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
	.header-inner { gap: 12px; }
	.site-branding { flex: 1 1 auto; }
	.brand-link { max-width: 100%; }
	.brand-copy strong { font-size: .98rem; }
	.menu-toggle { flex: 0 0 auto; padding: 10px 12px; }
	.hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
	.hero-actions .button, .promise-grid .button { width: 100%; }
	.cookie-consent-actions { grid-template-columns: minmax(0, 1fr); }
	.cookie-consent-settings-toggle { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
	.site-header, .site-footer, .article-aside, .article-toc, .related-guides, .breadcrumbs { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.article-layout { display: block; padding: 0; }
	a { color: #000; }
}

/* v1.0.7: owner facts read as a flat list on every width (no default <dd> indent). */
.legal-facts dl { margin: 0; }
.legal-facts dt { margin-top: 14px; font-weight: 750; }
.legal-facts dd { margin: 4px 0 0; }

/* v1.0.10: minimum text size .8rem (audit CA-P3-4); long words in headings
   never widen a 320 px viewport; compact essential-cookie banner on phones
   (at most about a third of the screen until the visitor opens the settings). */
h1, h2, h3, .article-deck { overflow-wrap: anywhere; hyphens: auto; }
.entry-content h2, .entry-content h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) {
	.cookie-consent { right: 8px; bottom: 8px; left: 8px; width: calc(100% - 16px); padding: 14px; max-height: 34vh; overflow-y: auto; }
	.cookie-consent:has(.cookie-consent-settings:not([hidden])) { max-height: 80vh; }
	.cookie-consent .eyebrow { display: none; }
	.cookie-consent-main { gap: 10px; }
	.cookie-consent-copy h2 { margin-bottom: 4px; font-size: 1.05rem; }
	.cookie-consent-copy p { margin-bottom: 4px; font-size: .85rem; line-height: 1.4; }
	.cookie-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.cookie-consent-settings-toggle { grid-column: 1 / -1; }
	.cookie-consent-choice, .cookie-consent-settings-toggle { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
}
