/* ==========================================================================
   Noostro — main stylesheet
   Fonts: Newsreader (serif), Schibsted Grotesk (sans), IBM Plex Mono (labels)
   All fonts are served from the theme (SIL Open Font License).
   ========================================================================== */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff") format("woff"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff") format("woff"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
	--paper: #F3F0E8;
	--paper-2: #EAE5D8;
	--paper-3: #FBF9F4;
	--ink: #0F1B2D;
	--ink-2: #2E3A4D;
	--ink-3: #5B6474;
	--muted: #6C6A63;
	--rule: #D6CFBF;
	--rule-2: #C4BBA8;
	--accent: #B5452B;
	--accent-2: #8F3520;
	--accent-soft: #EFD9CF;
	--night: #0C1626;

	--serif: "Newsreader", "Iowan Old Style", Georgia, serif;
	--sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 4px;
	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.25rem);
	--step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
	--step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
	--step-4: clamp(2.25rem, 1.8rem + 2.2vw, 3.75rem);
	--step-5: clamp(2.6rem, 1.9rem + 3.4vw, 4.75rem);
	--space-section: clamp(64px, 9vw, 128px);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--step-0);
	line-height: 1.6;
	font-feature-settings: "kern", "liga", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--rule-2); transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: var(--step-5); letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h3 a { text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .85em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
address { font-style: normal; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; color: var(--ink-3); }

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

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

/* Labels ---------------------------------------------------------------- */
.eyebrow, .section__num, .card__num, .panel__label, .site-footer__heading, .site-footer__label, .toc__title, .related__title, .cta-band__kicker, .legal-date {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-3);
	font-weight: 400;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }

/* Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	padding: .85em 1.35em;
	font: 500 .9375rem/1 var(--sans);
	letter-spacing: .005em;
	text-decoration: none;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
	white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--accent); }
.btn--sm { padding: .7em 1.05em; font-size: .875rem; }
.btn__arrow { transition: transform .15s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.actions br { display: none; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: .45em; transition: transform .15s; }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .2em; cursor: pointer; }
.link-button:hover { color: var(--accent); }

/* Top bar & header ------------------------------------------------------ */
.topbar { background: var(--night); color: #C9CED6; font-size: .8125rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.topbar__item { margin: 0; display: flex; gap: 18px; align-items: center; }
.topbar a { color: #EEF0F3; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__sep { color: #56627A; }
.topbar__entity { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 240, 232, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: auto; flex: none; }
.brand__word { font-family: var(--serif); font-size: 1.625rem; letter-spacing: -0.02em; line-height: 1; font-weight: 450; }
.brand--light { color: var(--paper); }
.brand--light:hover { color: #fff; }
.custom-logo { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu a { display: block; padding: 10px 12px; font-size: .9375rem; font-weight: 450; text-decoration: none; color: var(--ink-2); border-radius: 3px; }
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a, .site-nav .menu .current-menu-ancestor > a, .site-nav .menu .current-page-ancestor > a { color: var(--ink); }
.site-nav .menu > li > a { position: relative; }
.site-nav .menu > .current-menu-item > a::after, .site-nav .menu > .current-menu-ancestor > a::after, .site-nav .menu > .current-page-ancestor > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--accent); }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -8px; background: none; border: 0; color: var(--ink-3); cursor: pointer; border-radius: 3px; transition: transform .2s; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 4px); left: 0; min-width: 300px; background: var(--paper-3); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 1px 0 rgba(15,27,45,.04), 0 18px 40px -18px rgba(15,27,45,.28); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.site-nav .sub-menu a { padding: 10px 12px; font-size: .9375rem; }
.site-nav .sub-menu a:hover { background: var(--paper-2); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav li.is-open > .submenu-toggle { transform: rotate(180deg); }

.nav-toggle { display: none; align-items: center; gap: 10px; padding: 8px 0; background: none; border: 0; font: 500 .9375rem var(--sans); color: var(--ink); cursor: pointer; }
.nav-toggle__icon { display: grid; gap: 5px; width: 20px; }
.nav-toggle__icon span { display: block; height: 1.5px; background: currentColor; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1080px) {
	.topbar__hours { display: none; }
	.nav-toggle { display: inline-flex; }
	.site-nav { position: fixed; inset: var(--nav-top, 114px) 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px; overflow-y: auto; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; border-top: 1px solid var(--rule); }
	.site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
	.site-nav .menu > li > a { flex: 1; padding: 16px 0; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
	.site-nav .menu > li > a::after { display: none; }
	.submenu-toggle { width: 44px; height: 44px; margin: 0; }
	.site-nav .sub-menu { position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px; }
	.site-nav li.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: 8px 0; color: var(--ink-2); }
	.site-nav__cta { margin-top: 24px; justify-content: center; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
	.topbar__entity { display: none; }
	.topbar__inner { justify-content: center; }
	.brand__word { font-size: 1.4rem; }
}

/* Page hero ------------------------------------------------------------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { position: relative; }
.page-hero__title { max-width: 16ch; margin-bottom: .35em; }
.is-legal .page-hero__title { max-width: 22ch; font-size: var(--step-4); }
.page-hero__lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; margin: 0; line-height: 1.55; }
.page-hero--404 { padding-bottom: var(--space-section); border: 0; }
.crumbs ol { list-style: none; margin: 0 0 2.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-2); }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: var(--ink); }

/* Entry content --------------------------------------------------------- */
.entry { padding-block: clamp(48px, 7vw, 96px) var(--space-section); }
.entry--home { padding-top: 0; }
.entry > p:empty { display: none; }
.entry ul:not([class]), .entry ol:not([class]) { padding-left: 1.2em; margin: 0 0 1.25em; }
.entry li { margin-bottom: .35em; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 58ch; }
.note { font-size: .9375rem; color: var(--ink-3); max-width: 70ch; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* Home hero */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.home-hero h1 { max-width: 12ch; }
.home-hero .lede { margin-top: 1.5rem; }
.home-hero__figure .diagram { margin: 0; }
@media (max-width: 960px) { .home-hero { grid-template-columns: 1fr; } }

/* Fact strip */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.facts li { padding: 20px 24px 22px 0; margin: 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts strong { display: block; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { padding-left: 0; border-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts li, .facts li + li { padding-left: 0; border-left: 0; } .facts li + li { border-top: 1px solid var(--rule); } }

/* Sections */
.section { padding-top: var(--space-section); }
.section--first { padding-top: 0; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head > p:not(.section__num) { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }
.section__num { display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; }
.section__num::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--accent); }
.section--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.section--split .section__head { margin-bottom: 0; position: sticky; top: 120px; }
@media (max-width: 900px) { .section--split { grid-template-columns: 1fr; } .section--split .section__head { position: static; } }

/* Cards */
.cards { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px 28px 32px 0; display: flex; flex-direction: column; }
.card + .card { padding-left: 28px; border-left: 1px solid var(--rule); }
.card h3 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.card p { color: var(--ink-2); font-size: .9688rem; }
.card__num { margin: 0; color: var(--accent); }
.card__more { margin-top: auto; margin-bottom: 0; padding-top: 1rem; font-size: .9375rem; }
@media (max-width: 1080px) { .cards--4 { grid-template-columns: 1fr 1fr; } .card:nth-child(3) { padding-left: 0; border-left: 0; } .card:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 600px) { .cards--4 { grid-template-columns: 1fr; } .card, .card + .card { padding-left: 0; border-left: 0; } .card + .card { border-top: 1px solid var(--rule); } .card h3 { margin-top: 1rem; } }

/* Steps (numbered list with counters) */
.steps, .timeline, .numbered, .mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li, .timeline > li, .numbered > li { counter-increment: step; position: relative; margin: 0; }
.steps > li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 24px 0; border-top: 1px solid var(--rule); }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: .8125rem; color: var(--accent); padding-top: .45em; }
.steps h3, .timeline h3, .numbered h3 { font-size: 1.375rem; margin-bottom: .35rem; }
.steps p, .timeline p, .numbered p { margin: 0; color: var(--ink-2); }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.timeline > li { padding: 28px 28px 36px 0; border-bottom: 1px solid var(--rule); }
.timeline > li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.timeline > li::before { content: "Step " counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2rem; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline > li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .timeline > li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); } }
@media (max-width: 600px) { .timeline { grid-template-columns: 1fr; } .timeline > li:nth-child(even) { padding-left: 0; border-left: 0; } .timeline > li::before { margin-bottom: 1rem; } }

.numbered > li { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 3fr) minmax(0, 5fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.numbered > li:last-child { border-bottom: 1px solid var(--rule); }
.numbered > li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--accent); }
@media (max-width: 760px) { .numbered > li { grid-template-columns: 56px 1fr; } .numbered > li p { grid-column: 2; } .numbered > li::before { font-size: 1.75rem; } }

.mini-steps { counter-reset: mini; }
.mini-steps li { counter-increment: mini; position: relative; padding-left: 32px; margin-bottom: .6em; font-size: .9375rem; }
.mini-steps li::before { content: counter(mini); position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: .7rem; display: grid; place-items: center; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.principle { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--rule); }
.principle:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.principle h3 { font-size: 1.375rem; }
.principle h3::before { content: ""; display: block; width: 18px; height: 1px; background: var(--accent); margin-bottom: 1.25rem; }
.principle p { color: var(--ink-2); margin: 0; font-size: .9688rem; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } .principle:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .principle:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } .principle:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience__item { background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.audience__item h3 { font-size: 1.25rem; }
.audience__item p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 960px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

/* Split (text + figure) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__text h2 { font-size: var(--step-3); max-width: 18ch; margin-bottom: 1rem; }
.split__text p { color: var(--ink-2); max-width: 60ch; }
.split__figure { position: sticky; top: 120px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__figure { position: static; } }

/* Included grid */
.included { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.included__item { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--rule); }
.included__item:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--rule); }
.included__item h3 { font-size: 1.3125rem; }
.included__item p { margin: 0; font-size: .9688rem; color: var(--ink-2); }
@media (max-width: 900px) { .included { grid-template-columns: 1fr 1fr; } .included__item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .included__item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); } }
@media (max-width: 600px) { .included { grid-template-columns: 1fr; } .included__item:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Spec sheet */
.spec { margin: 0; border-top: 1px solid var(--ink); max-width: 980px; }
.spec > div { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: .3em; }
.spec dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* Services index */
.service-index { border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 80px minmax(0, 6fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 48px); padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule); }
.service-row__num { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--accent); margin: 0; }
.service-row h2 { font-size: var(--step-3); margin-bottom: .75rem; }
.service-row h2 a { text-decoration: none; }
.service-row__body p { color: var(--ink-2); margin: 0; max-width: 62ch; }
.service-row__list { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.service-row__list li { padding: 7px 0; border-bottom: 1px dashed var(--rule); margin: 0; }
.service-row__list li:first-child { border-top: 1px dashed var(--rule); }
@media (max-width: 860px) { .service-row { grid-template-columns: 56px 1fr; } .service-row__list { grid-column: 2; } .service-row__num { font-size: 1.75rem; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9688rem; min-width: 560px; }
.table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 20px 12px 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.table td:first-child { color: var(--ink); white-space: nowrap; }

/* Payment methods */
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pay-method { background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.pay-method h3 { font-size: 1.3125rem; }
.pay-method p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 860px) { .pay-methods { grid-template-columns: 1fr; } }
.notice-box { margin-top: 24px; padding: 20px 24px; border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.notice-box p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.notice-box .notice-box__title { font-weight: 600; color: var(--ink); margin-bottom: .35em; }

.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-bottom: 1.5rem; }
.two-lists h3 { font-size: 1.375rem; }
.check-list, .dash-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.check-list li, .dash-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); margin: 0; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.dash-list li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 10px; height: 1.5px; background: var(--ink-3); }
@media (max-width: 760px) { .two-lists { grid-template-columns: 1fr; } }

/* FAQ */
.faq__group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(24px, 4vw, 64px); padding: 40px 0; border-top: 1px solid var(--ink); }
.faq__group:first-child { padding-top: 32px; }
.faq__group > h2 { font-size: var(--step-2); grid-row: span 20; position: sticky; top: 120px; align-self: start; }
.faq__item { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 0; margin-bottom: 0; }
.faq__item h3 { font-size: 1.3125rem; margin-bottom: .5rem; }
.faq__item p { margin: 0; color: var(--ink-2); max-width: 66ch; }
@media (max-width: 760px) { .faq__group { grid-template-columns: 1fr; } .faq__group > h2 { position: static; grid-row: auto; } }

/* Panels & company details */
.panel { background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: 16px; }
.panel--quiet { background: transparent; }
.panel__label { margin: 0 0 .5rem; }
.panel__label:not(:first-child) { margin-top: 1.5rem; }
.panel__big { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; margin: 0; word-break: break-word; }
.panel__big a { text-decoration: none; }
.panel__big:empty { display: none; }
.company-details { margin: 0; }
.company-details > div { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.company-details > div:first-child { padding-top: 0; }
.company-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.company-details dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: .3em; }
.company-details dd { margin: 0; }
@media (max-width: 480px) { .company-details > div { grid-template-columns: 1fr; gap: 2px; } }

.hours { margin: 0; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; font-weight: 500; }
.hours__tz { margin: .75rem 0 0; font-size: .8125rem; color: var(--ink-3); }
.support-status { display: flex; align-items: center; gap: 10px; margin: 1rem 0 0; font-size: .875rem; color: var(--ink-2); }
.support-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-2); flex: none; }
.support-status.is-open .support-status__dot { background: #2F7D55; box-shadow: 0 0 0 4px rgba(47,125,85,.15); }
.support-status.is-closed .support-status__dot { background: var(--ink-3); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__form h2 { font-size: var(--step-3); margin-bottom: .35rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Form */
.inquiry-form { margin-top: 2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink); }
.req { color: var(--accent); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--paper-3); border: 1px solid var(--rule-2); border-radius: var(--radius);
	padding: 12px 14px; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%230F1B2D' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 27, 45, .08); }
.field ::placeholder { color: #9A968C; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.field--check label { font-weight: 400; color: var(--ink-2); font-size: .9375rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 8px 0 0; }
.form-actions__note { font-size: .8125rem; color: var(--ink-3); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 20px 24px; border-radius: var(--radius); margin: 1.5rem 0; }
.form-notice p { margin: 0; }
.form-notice--success { background: #E4EEE6; border-left: 2px solid #2F7D55; }
.form-notice__title { font-family: var(--serif); font-size: 1.375rem; margin-bottom: .35em !important; }
.form-notice--error { background: var(--accent-soft); border-left: 2px solid var(--accent); }

/* CTA band */
.cta-band { margin-top: var(--space-section); background: var(--ink); color: var(--paper); border-radius: 6px; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(243,240,232,.14); pointer-events: none; }
.cta-band::before { right: -120px; top: -140px; width: 420px; height: 420px; }
.cta-band::after { right: -60px; top: -80px; width: 300px; height: 300px; border-color: rgba(181,69,43,.55); }
.cta-band__inner { position: relative; padding: clamp(36px, 6vw, 80px); max-width: 860px; }
.cta-band__kicker { color: #9EA7B6; margin-bottom: 1.25rem; }
.cta-band__title { font-size: var(--step-4); color: var(--paper); margin-bottom: .5em; }
.cta-band__text { color: #C9CED6; font-size: var(--step-1); max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 2rem 0 0; }
.cta-band__or { color: #9EA7B6; font-size: .9375rem; }
.cta-band__or a { color: var(--paper); text-decoration-color: rgba(243,240,232,.4); }
.cta-band__or a:hover { color: #fff; }

/* Related services */
.related { border-top: 1px solid var(--rule); padding: 40px 0 0; margin-bottom: calc(var(--space-section) * -0.25); }
.entry + .related { margin-top: calc(var(--space-section) * -0.5); }
.related__list { list-style: none; margin: 1rem 0 var(--space-section); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related__list a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--paper-3); height: 100%; }
.related__list a:hover { border-color: var(--ink); color: var(--ink); }
.related__num { font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.related__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.related__arrow { transition: transform .15s; }
.related__list a:hover .related__arrow { transform: translateX(3px); }
@media (max-width: 860px) { .related__list { grid-template-columns: 1fr; } }

/* Legal ------------------------------------------------------------------ */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: clamp(32px, 5vw, 80px); }
.legal__aside { padding-top: clamp(48px, 7vw, 96px); }
.legal__aside .toc { position: sticky; top: 110px; }
.legal__meta { position: static; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--ink-3); }
.legal__meta p { margin: 0 0 .75em; }
.toc__title { margin-bottom: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; font-size: .9063rem; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 12px; text-decoration: none; color: var(--ink-3); border-left: 1px solid var(--rule); line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
.entry--legal { max-width: 74ch; font-size: 1rem; }
.entry--legal h2 { font-size: 1.625rem; margin: 2.5em 0 .6em; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.entry--legal > h2:first-of-type { margin-top: 1.5em; }
.entry--legal p, .entry--legal li { color: var(--ink-2); }
.entry--legal a { text-decoration-color: var(--rule-2); }
.legal-date { margin-bottom: 2rem; }
.entry--legal .address { margin: 0 0 1em; padding: 16px 20px; background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--radius); display: inline-block; color: var(--ink); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal__aside { padding-top: 40px; } .legal__aside .toc { position: static; } .legal__aside .toc ol { columns: 2; column-gap: 24px; } .entry--legal { padding-top: 24px; } }
@media (max-width: 520px) { .legal__aside .toc ol { columns: 1; } }

/* Diagrams (inline SVG, styled here so they match the site) ------------- */
.diagram { margin: 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-3); }
.diagram text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; fill: var(--ink-2); }
.diagram .d-text { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; fill: var(--ink); }
.diagram .d-label { font-size: 10.5px; fill: var(--ink); }
.diagram .d-muted { fill: var(--ink-3); }
.diagram .d-serif { font-family: var(--serif); font-size: 17px; letter-spacing: -0.01em; fill: var(--ink); }
.diagram .d-serif--sm { font-size: 14px; font-style: italic; fill: var(--ink-3); }
.diagram .d-serif--inv { fill: var(--paper); font-size: 15px; }
.diagram .d-accent-text { fill: var(--accent); }
.d-frame { fill: var(--paper-3); stroke: var(--rule); }
.d-rule { stroke: var(--rule); stroke-width: 1; fill: none; }
.d-dot { fill: var(--rule-2); }
.d-line { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.d-line--bold { stroke-width: 1.75; stroke-linejoin: round; }
.d-thin { fill: none; stroke: var(--ink-3); stroke-width: .9; }
.d-dash { stroke-dasharray: 3 3; }
.d-box { fill: var(--paper-3); stroke: var(--ink); stroke-width: 1; }
.d-ring { fill: none; stroke: var(--rule-2); stroke-width: 1; stroke-dasharray: 2 3; }
.d-ring-accent { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.d-ink { fill: var(--ink); }
.d-mid { fill: #6D7688; }
.d-mid-soft { fill: #DCD6C8; }
.d-soft { fill: var(--paper-2); }
.d-quiet { fill: var(--paper-3); }
.d-paper { fill: var(--paper-3); }
.d-accent { fill: var(--accent); }
.d-accent-stroke { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.d-area { fill: var(--paper-2); }
.d-dotfill { fill: var(--paper-3); stroke: var(--ink); stroke-width: 1.25; }
.d-draft { fill: none; stroke: var(--ink); stroke-width: 1; }
.d-hatch { stroke: var(--ink); stroke-width: 1; }
.d-hatchline { stroke: var(--ink-3); stroke-width: 1.4; }

/* Blog fallback --------------------------------------------------------- */
.post-list { padding-block: 48px var(--space-section); display: grid; gap: 0; border-top: 1px solid var(--ink); margin-top: 48px; }
.post-card { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.post-card__date, .entry__date { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; }
.post-card__title { font-size: var(--step-2); }
.post-card__title a { text-decoration: none; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--night); color: #AEB6C2; font-size: .9375rem; padding-top: clamp(56px, 7vw, 96px); }
.site-footer a { color: #E6E9EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .55em; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; }
.site-footer__about { margin-top: 1.25rem; max-width: 34ch; color: #C9CED6; }
.site-footer__entity { font-size: .8125rem; color: #8792A3; max-width: 38ch; }
.site-footer__heading, .site-footer__label { color: #7F8A9C; margin: 0 0 1rem; }
.site-footer__heading--gap { margin-top: 2rem; }
.site-footer__label { margin: 1.5rem 0 .5rem; }
.site-footer__contact p { margin: 0; }
.site-footer__contact .site-footer__label { margin: 1.5rem 0 .5rem; }
.site-footer__hours span { display: block; }
.site-footer__hours .site-footer__day { color: #7F8A9C; font-size: .8125rem; margin-top: .4em; }
.site-footer__hours br { display: none; }
.site-footer__tz { color: #7F8A9C; font-size: .8125rem; margin-top: .6em; }
.site-footer__payments { display: grid; grid-template-columns: auto auto 1fr; gap: 12px 32px; align-items: center; padding: 24px 0; border-top: 1px solid #22304A; }
.site-footer__payments .site-footer__label { margin: 0; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-list li { margin: 0; padding: 5px 10px; border: 1px solid #2C3B57; border-radius: 3px; font-size: .8125rem; color: #D7DCE3; }
.site-footer__paynote { margin: 0; font-size: .8125rem; color: #7F8A9C; justify-self: end; max-width: 52ch; text-align: right; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid #22304A; font-size: .8125rem; color: #7F8A9C; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 1080px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__payments { grid-template-columns: 1fr; } .site-footer__paynote { justify-self: start; text-align: left; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } .site-footer__bottom { flex-direction: column; } }

/* WordPress core classes ------------------------------------------------ */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .8125rem; color: var(--ink-3); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.sticky, .bypostauthor { outline: 0; }

/* Tables stack on small screens */
@media (max-width: 600px) {
	.table { min-width: 0; }
	.table thead { display: none; }
	.table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); }
	.table tbody tr:first-child { border-top: 1px solid var(--ink); }
	.table td { display: block; padding: 2px 0; border: 0; }
	.table td:first-child { white-space: normal; margin-bottom: 4px; }
}
