/*
Theme Name: HIS Klasik
Theme URI: https://hiscapital.id
Author: HIS Capital
Description: Tema custom HIS Capital, dibangun dari desain "A Klasik" (navy & emas). Konten dari Secure Custom Fields, dua bahasa lewat Polylang. Lihat docs/TRD.md dan docs/BSD.md.
Version: 1.1.3
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: his-klasik
License: Proprietary
*/

@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(98.6% 0.004 85); --color-paper-2: oklch(95.8% 0.008 85); --color-paper-3: oklch(92.5% 0.011 85);
  --color-ink: oklch(25.5% 0.066 268); --color-ink-2: oklch(34% 0.05 266); --color-muted: oklch(47% 0.03 262);
  --color-rule: oklch(88% 0.012 262);
  --color-accent: oklch(50% 0.075 72); --color-accent-ink: oklch(98.6% 0.004 85); --color-focus: oklch(56% 0.16 62);
  --color-navy: oklch(25.5% 0.066 268); --color-navy-2: oklch(30% 0.062 266); --color-navy-3: oklch(35% 0.055 264);
  --color-gold: oklch(74% 0.068 78); --color-gold-deep: oklch(50% 0.075 72); --color-on-navy: oklch(96% 0.007 85); --color-on-navy-2: oklch(82% 0.018 262);
  --color-scrim: oklch(18% 0.05 268 / 0.62);
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif; --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif; --font-outlier: var(--font-body);
  --radius-card: 4px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: var(--color-paper-2, var(--color-paper)); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }


h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: var(--text-section); line-height: 1.08; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-navy); color: var(--color-on-navy); }
.skip:focus-visible { top: var(--space-md); }

/* controls */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-navy); border-radius: 2px; background: var(--color-navy); color: var(--color-on-navy); font: 600 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-navy-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--gold { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); }
.btn--gold:hover { background: var(--color-on-navy); border-color: var(--color-on-navy); }
.btn--line { background: transparent; color: var(--color-on-navy); border-color: var(--color-gold); }
.btn--line:hover { background: var(--color-gold); color: var(--color-navy); }

/* header */
.top { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 80px; }
.logo { display: inline-flex; flex-direction: column; color: var(--color-navy); text-decoration: none; line-height: 1; }
.logo b { font: 600 1.75rem/1 var(--font-display); }
.logo span { margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-accent); font-weight: 500; }
.logo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.menu { display: flex; align-items: center; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.menu a:not(.btn) { color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.menu a:not(.btn):hover { color: var(--color-accent); }
.menu a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* hero */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: min(calc(100dvh - 81px), 52rem); text-align: center; color: var(--color-on-navy); }
.hero__img { position: absolute; inset: 0; z-index: -2; margin: 0; background: var(--color-navy); color: var(--color-on-navy); }
.hero__img::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, var(--color-scrim), var(--color-scrim)); }
.hero__in { padding-block: var(--space-3xl); }
.hero h1 { margin-inline: auto; max-width: 16ch; color: var(--color-on-navy); font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1.02; font-weight: 500; }
.hero .lead { margin: var(--space-lg) auto 0; max-width: 44ch; color: var(--color-on-navy-2); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.rule-gold { display: block; width: var(--space-3xl); height: 2px; margin: 0 auto var(--space-lg); background: var(--color-gold); }

/* intro split */
section.pad { padding-block: var(--section-gap); }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
figure.photo { margin: 0; aspect-ratio: 4 / 3; min-height: 380px; border-radius: 2px; }
.split h2 { color: var(--color-navy); font-size: var(--text-section); max-width: 16ch; }
.split .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.split .lead + .lead { margin-top: var(--space-md); }
.split .btn { margin-top: var(--space-xl); }
.split .rule-gold { margin: 0 0 var(--space-lg); }

/* services, alternating */
.svc-head { text-align: center; margin-bottom: var(--space-3xl); }
.svc-head h2 { margin-inline: auto; color: var(--color-navy); }
.svc-head .lead { margin: var(--space-md) auto 0; color: var(--color-muted); }
.svc { display: grid; gap: var(--space-3xl); }
.svc > article { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.svc > article:nth-child(even) figure.photo { order: 2; }
.svc h3 { font-size: var(--text-2xl); color: var(--color-navy); }
.svc .tag { margin-top: var(--space-2xs); color: var(--color-accent); font-weight: 600; font-size: var(--text-sm); }
.svc p.body { margin-top: var(--space-md); color: var(--color-ink-2); }
.svc ul { display: grid; gap: var(--space-xs); margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.svc li { padding-left: var(--space-lg); position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: var(--space-sm); height: 1px; background: var(--color-gold); }
.svc__more { display: flex; justify-content: center; margin-top: var(--space-3xl); }

/* principles band */
.band { background: var(--color-navy); color: var(--color-on-navy); padding-block: var(--section-gap-s); }
.band h2 { color: var(--color-on-navy); text-align: center; margin-inline: auto; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.trio li { padding: var(--space-xl); border-top: 2px solid var(--color-gold); background: var(--color-navy-2); }
.trio h3 { color: var(--color-on-navy); font-size: var(--text-xl); }
.trio p { margin-top: var(--space-sm); color: var(--color-on-navy-2); }
.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm) var(--space-xl); margin: var(--space-2xl) 0 0; padding: var(--space-lg) 0 0; list-style: none; border-top: var(--rule-hair) solid var(--color-navy-3); color: var(--color-gold); font-weight: 500; }

/* articles */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.cards li { padding: var(--space-xl); background: var(--color-paper-2); border-bottom: 2px solid var(--color-gold); min-height: 220px; display: flex; flex-direction: column; }
.cards h3 { font-size: var(--text-xl); color: var(--color-navy); }
.cards h3 + p { margin-top: var(--space-xs); color: var(--color-ink-2); padding-top: 0; font-size: var(--text-md); }
.cards p.when { margin-top: auto; padding-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* contact band */
.contact { background: var(--color-navy); color: var(--color-on-navy); padding-block: var(--section-gap-s); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.contact h2 { color: var(--color-on-navy); font-size: var(--text-section); }
.contact .lead { margin-top: var(--space-md); color: var(--color-on-navy-2); }
.contact dl { display: grid; gap: var(--space-md); margin: var(--space-xl) 0 0; }
.contact dt { color: var(--color-gold); font-size: var(--text-sm); font-weight: 600; }
.contact dd { margin: var(--space-3xs) 0 0; }
.form { display: grid; gap: var(--space-md); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-on-navy-2); }
.field input, .field textarea { min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-on-navy-2); border-radius: 2px; background: var(--color-navy-2); color: var(--color-on-navy); font: inherit; outline: 2px solid transparent; outline-offset: -3px; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-gold); }
.field [aria-invalid] { border-color: var(--color-gold); border-style: dashed; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.form__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-on-navy-2); }

/* footer */
.foot { background: var(--color-navy-2); color: var(--color-on-navy-2); padding-block: var(--space-xl); font-size: var(--text-sm); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); align-items: center; }
.foot ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--color-on-navy); white-space: nowrap; }
.foot a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }

[data-slot]:not(:has(img)) { background: var(--color-navy-2); }

@media (max-width: 60rem) {
  .split, .svc > article, .contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .svc > article:nth-child(even) figure.photo { order: 0; }
  .trio, .cards { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
}
@media (max-width: 40rem) { .form__row { grid-template-columns: minmax(0, 1fr); } figure.photo { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

:root { --lang-edge: var(--color-rule); --lang-ink: var(--color-ink); --lang-on: var(--color-navy); --lang-on-ink: var(--color-on-navy); }
.lang { display: inline-flex; border: 1px solid var(--lang-edge); }
.lang a, .lang span { min-width: 44px; min-height: 36px; padding: 0 var(--space-xs); border: 0; background: none; color: var(--lang-ink); font: 600 var(--text-xs)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.lang [aria-current="true"] { background: var(--lang-on); color: var(--lang-on-ink); }
.lang a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lang a:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .lang a, .lang span { transition: none; } }
@media (max-width: 40rem) { .logo b { font-size: 1.375rem; } }

:root { --figs-rule: var(--color-navy-3); --figs-num: var(--color-gold); --figs-text: var(--color-on-navy-2); }
/* motion: every reveal replays when its section returns to view (asked for by the user); still under reduced motion */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.figs li { padding: 0 var(--space-lg); border-left: var(--rule-hair) solid var(--figs-rule); }
.figs li:first-child { padding-left: 0; border-left: 0; }
.figs b { display: block; font: 400 clamp(3rem, 6vw, 5rem)/1 var(--font-display); color: var(--figs-num); font-variant-numeric: tabular-nums; }
.figs span { display: block; margin-top: var(--space-sm); color: var(--figs-text); max-width: 26ch; }
@media (max-width: 40rem) { .figs { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } .figs li { padding: var(--space-md) 0 0; border-left: 0; border-top: var(--rule-hair) solid var(--figs-rule); } }

/* resting state is fully visible; entering the view plays a keyframe from hidden, so nothing waits on an observer */
.js [data-anim="rise"].is-in { animation: a-rise 900ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 110ms); }
.js [data-anim="line"].is-in { animation: a-line 1000ms var(--ease-out) backwards; }
.js [data-anim="draw"].is-in { transform-origin: left center; animation: a-draw 1200ms var(--ease-out) 200ms backwards; }
.js .hero [data-anim="draw"].is-in { transform-origin: center; }
.js [data-anim="wipe"].is-in { animation: a-wipe 1300ms var(--ease-in-out) backwards; }
.js [data-anim="wipe"].is-in img { animation: a-zoom 1800ms var(--ease-out) backwards; }
.js [data-anim="settle"].is-in img { animation: a-settle 7000ms var(--ease-out) backwards; }
.js [data-anim="words"].is-in .w { display: inline-block; animation: a-words 900ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 120ms + 150ms); }
@keyframes a-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes a-line { from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { clip-path: inset(0 0 -0.2em 0); transform: none; } }
@keyframes a-draw { from { transform: scaleX(0); } }
@keyframes a-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes a-zoom { from { transform: scale(1.12); } }
@keyframes a-settle { from { transform: scale(1.14); } }
@keyframes a-words { from { opacity: 0; filter: blur(10px); transform: translateY(0.4em); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-anim], .js [data-anim] img, .js [data-anim] .w { animation: none !important; }
}

/* ---------- WordPress additions (not in the static design) ---------- */
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.lang span[aria-current="true"] { cursor: default; }

/* contact links (replaces dashed placeholders) */
.contact dd a { color: var(--color-on-navy); text-decoration-color: var(--color-gold); }
.contact__person { color: var(--color-on-navy-2); }
.contact__direct { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.contact__grid--solo { grid-template-columns: minmax(0, 1fr); }
.contact__grid--solo .lead { max-width: 60ch; }
.contact__grid--solo dl { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-lg); }
.contact__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-on-navy-2); }

/* Fluent Forms inside the navy contact band */
.contact .fluentform .ff-el-group { margin-bottom: var(--space-md); }
.contact .fluentform .ff-el-input--label label, .contact .fluentform .ff-el-form-check-label { color: var(--color-on-navy-2); font-size: var(--text-sm); font-weight: 500; }
.contact .fluentform .ff-el-form-control { min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-on-navy-2); border-radius: 2px; background: var(--color-navy-2); color: var(--color-on-navy); font: inherit; }
.contact .fluentform .ff-el-form-control:focus { outline: 2px solid var(--color-gold); outline-offset: -3px; border-color: var(--color-gold); box-shadow: none; }
.contact .fluentform select.ff-el-form-control option { color: var(--color-ink); }
.contact .fluentform .ff-el-form-check-label a { color: var(--color-on-navy); }
.contact .fluentform .ff-btn-submit { min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-gold) !important; border-radius: 2px; background: var(--color-gold) !important; color: var(--color-navy) !important; font: 600 var(--text-sm)/1 var(--font-body); }
.contact .fluentform .ff-btn-submit:hover { background: var(--color-on-navy) !important; border-color: var(--color-on-navy) !important; }
.contact .fluentform .error, .contact .fluentform .text-danger { color: var(--color-gold); font-size: var(--text-sm); }
.contact .ff-message-success { border: 1px solid var(--color-gold); background: var(--color-navy-2); color: var(--color-on-navy); padding: var(--space-lg); box-shadow: none; }

/* inner pages: articles, archive, legal pages, 404 */
.page-head { padding-block: var(--space-3xl) var(--space-2xl); background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }
.page-head .rule-gold { margin: 0 0 var(--space-lg); }
.page-head h1 { color: var(--color-navy); font-size: var(--text-display-s); line-height: 1.05; max-width: 22ch; }
.page-head .lead { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
.meta a { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.post-hero { margin: 0; aspect-ratio: 1200 / 630; max-height: 560px; width: 100%; }
.prose { max-width: 68ch; margin-inline: auto; padding-block: var(--space-3xl); font-size: 1.0625rem; line-height: 1.7; color: var(--color-ink-2); }
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { margin-top: var(--space-2xl); font-size: var(--text-2xl); color: var(--color-navy); }
.prose h3 { margin-top: var(--space-xl); font-size: var(--text-xl); color: var(--color-navy); }
.prose a { color: var(--color-accent); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose blockquote { margin-inline: 0; padding-left: var(--space-lg); border-left: 2px solid var(--color-gold); font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-navy); }
.prose img { margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--color-rule); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--color-rule); margin-block: var(--space-xl); }
.post-cta { margin: 0 auto var(--section-gap); max-width: 68ch; padding: var(--space-xl); background: var(--color-navy); color: var(--color-on-navy); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.post-cta p { font-family: var(--font-display); font-size: var(--text-xl); max-width: 32ch; }
.cards a { text-decoration: none; }
.cards a:hover h3 { color: var(--color-accent); }
.cards .card-img { margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg); aspect-ratio: 1200 / 630; }
.cards .cat { color: var(--color-accent); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-xs); }
.cats-filter { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: 0 0 var(--space-2xl); padding: 0; list-style: none; }
.cats-filter a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 var(--space-md); border: 1px solid var(--color-rule); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.cats-filter a[aria-current="page"] { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-on-navy); }
.pagination { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-2xl); }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--color-rule); text-decoration: none; }
.pagination .current { background: var(--color-navy); color: var(--color-on-navy); border-color: var(--color-navy); }
.empty { padding-block: var(--space-2xl); color: var(--color-muted); }
.notfound { padding-block: var(--section-gap); text-align: center; }
.notfound .rule-gold { margin-inline: auto; }
.notfound h1 { color: var(--color-navy); font-size: var(--text-display-s); }
.notfound p { margin: var(--space-md) auto 0; color: var(--color-ink-2); }
.notfound .hero__actions .btn--line { color: var(--color-navy); }
.foot__legal { flex-basis: 100%; color: var(--color-on-navy-2); font-size: var(--text-xs); }
.alignwide, .alignfull { max-width: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Header layout + mobile menu (added 13 Nov 2026, approved by Terry; DBD §5) ---------- */
.top__end { display: flex; align-items: center; gap: var(--space-xl); }
.nav { display: contents; }
.menu__cta, .menu-toggle { display: none; }
.menu-toggle { align-items: center; gap: var(--space-xs); min-width: 48px; min-height: 44px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-navy); font: 600 var(--text-xs)/1 var(--font-body); cursor: pointer; }
.menu-toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 60rem) {
  .top__end { gap: var(--space-sm); }
  /* Without JavaScript the links stay hidden (as in the design) and the footer carries them. */
  .menu { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .menu.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: var(--space-xs) var(--gutter) var(--space-lg);
    background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule);
    box-shadow: 0 12px 24px -16px rgb(0 0 0 / 0.25);
    max-height: calc(100dvh - 80px); overflow-y: auto;
  }
  .js .menu.is-open a:not(.btn) { display: flex; align-items: center; min-height: 52px; border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-md, 1rem); }
}
@media (max-width: 40rem) {
  .top__cta { display: none; }
  .js .menu.is-open .menu__cta { display: block; margin-top: var(--space-lg); }
  .js .menu.is-open .menu__cta .btn { width: 100%; justify-content: center; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { transition: none; } }
