/* ===== RankBiz public pages (everything except the home page) =====
   Consistent adaptation of the home page design system (css/home.css, ported from Figma Make Copy vtt3XwCIY4f2dtcxQd6lx3):
   same black / lime / cream palette, self-hosted Manrope + DM Mono, square lime buttons, hairline rules and mono kickers.
   Figma defines the home page only; these pages are NOT pixel matches of any frame. Loaded last, after style.css,
   hero.css and pages.css, by the service pages, FAQ, 404, blog (functions/_lib/blog-render.js) and the audit result
   status screen. The admin area never loads it. Markup and CMS hooks are unchanged; this file only restyles them. */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope/Manrope-variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dmmono/DMMono-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dmmono/DMMono-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

/* One palette for both theme values (the home page has no light theme), so a saved "light" choice cannot break it. */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --ink: #090a07; --ink-soft: #11120e; --ink-raised: #171914;
  --cream: #f2f1e9; --cream-dark: #d8d8ce; --lime: #caff35;
  --paper: #f2f1e9; --white: #f2f1e9; --green: #caff35; --green-dim: #caff35; --gray: #a6a89f;
  --surface: #090a07; --surface-alt: #11120e; --surface-card: #11120e; --art-panel: #11120e;
  --text: #f2f1e9; --muted: #a6a89f; --line: rgba(242, 241, 233, 0.2); --accent-text: #caff35;
  --border: rgba(242, 241, 233, 0.2); --border-light: rgba(242, 241, 233, 0.2);
  --font-h: "Manrope", sans-serif; --font-b: "Manrope", sans-serif; --mono: "DM Mono", monospace;
  --page: clamp(24px, 4.4vw, 76px);
  color-scheme: dark;
  background: #090a07;
}
body { background: var(--ink); color: var(--cream); font-family: var(--font-b); line-height: 1.5; }
::selection { color: var(--ink); background: var(--lime); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 600; letter-spacing: -.045em; }
.container { max-width: none; padding: 0 var(--page); }
.skip-link { background: var(--lime); color: var(--ink); font-weight: 700; }

/* ===== Buttons: square lime, as on the home page ===== */
.btn { border-radius: 0; font-family: var(--font-b); font-weight: 700; font-size: 14px; min-height: 50px; padding: 0 20px; gap: 24px; justify-content: space-between; transition: background 180ms ease, gap 180ms ease, color 180ms ease; }
.btn-primary { background: var(--lime); color: var(--ink); border: 0; }
.btn-primary:hover { background: var(--cream); color: var(--ink); gap: 32px; }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 15px; }
.btn:hover .btn-arrow { transform: none; }

/* ===== Header ===== */
body .header, body .header.scrolled {
  height: 88px; padding: 0; display: flex; align-items: center;
  background: rgba(9, 10, 7, .88); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); box-shadow: none;
}
.header .header-inner { width: 100%; gap: 24px; }
.header .logo, .footer .logo { gap: 12px; color: var(--cream); font-family: var(--font-b); font-size: 25px; font-weight: 700; letter-spacing: -.065em; }
.header .logo span:last-child, .footer .logo span:last-child { color: var(--cream); }
.header .logo-symbol { width: 40px; height: 40px; }
.header .nav { gap: clamp(16px, 1.8vw, 30px); }
.header .nav a { position: relative; padding: 12px 0; color: var(--cream-dark); opacity: 1; font-size: 14px; font-weight: 400; }
.header .nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--lime); transition: right 180ms ease; }
.header .nav a:hover { color: var(--cream); }
.header .nav a:hover::after, .header .nav a[aria-current="page"]::after { right: 0; }
.header .nav a[aria-current="page"] { color: var(--cream); }
.header .nav-toggle span { background: var(--cream); }
/* Header drop-down (Navigation: header links sharing a Group; js/main.js opens it, hover/focus opens it without JS). */
.header .nav { align-items: center; }
.header .nav-group { position: relative; }
.header .nav-group-toggle {
  padding: 12px 0; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer;
  color: var(--cream-dark); font: inherit; font-size: 14px;
}
.header .nav-group-toggle::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 180ms ease; }
.header .nav-group-toggle[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
.header .nav-group-toggle:hover, .header .nav-group-toggle[aria-expanded="true"] { color: var(--cream); }
.header .nav-group-menu {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: -18px; min-width: 230px; padding: 10px;
  display: none; flex-direction: column; background: var(--ink-soft, #11120e); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.header .nav-group-menu a { padding: 10px 12px; }
.header .nav-group-menu a::after { display: none; }
.header .nav-group-menu a:hover { color: var(--lime); }
.header .nav-group.is-open .nav-group-menu { display: flex; }
/* Without JavaScript a drop-down cannot open, so on wider screens its links are listed in the header row instead. */
@media (min-width: 721px) {
  html:not(.nav-groups-js) .header .nav-group-toggle { display: none; }
  html:not(.nav-groups-js) .header .nav-group-menu {
    position: static; display: flex; flex-direction: row; gap: clamp(16px, 1.8vw, 30px); min-width: 0; padding: 0;
    border: 0; background: none; box-shadow: none;
  }
  html:not(.nav-groups-js) .header .nav-group-menu a { padding: 12px 0; }
}
/* The home page has one dark design and no theme switch; the button stays in the markup (theme.js) but is not shown. */
.theme-toggle { display: none !important; }

/* ===== Page hero and sections ===== */
.page-hero { position: relative; padding: 168px 0 72px; background: var(--ink); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 88px 0 0; opacity: .3; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 10vw 10vw;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%); mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.page-hero .container { position: relative; }
.page-kicker, .kicker, .post-date { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--cream-dark); }
.page-kicker > span { width: 8px; height: 8px; border-radius: 0; background: var(--lime); }
.page-hero h1 { font-size: clamp(44px, 6vw, 92px); line-height: .92; letter-spacing: -.065em; font-weight: 600; max-width: 1080px; color: var(--cream); }
.page-hero h1 em { color: var(--lime); }
.page-lede { color: var(--cream-dark); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; max-width: 760px; margin-top: 30px; }

.page-section { padding: clamp(64px, 7vw, 112px) 0; border-top: 1px solid var(--line); background: var(--ink); }
.page-section:nth-of-type(odd) { background: var(--ink-soft); }
.page-section h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1; letter-spacing: -.055em; margin-bottom: 24px; max-width: 900px; color: var(--cream); }
.page-section p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.page-grid { gap: 0; margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.page-card { background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: clamp(24px, 2.6vw, 40px); transition: background 180ms ease; }
.page-card:hover { background: var(--ink-raised); }
.page-card h3 { font-family: var(--font-h); font-weight: 600; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.035em; color: var(--cream); }
.page-card p { color: var(--muted); }
.page-list li { color: var(--cream); }
.page-list li::before { color: var(--lime); }
.page-note { border-left: 3px solid var(--lime); background: var(--ink-raised); border-radius: 0; }
.page-note p { color: var(--cream-dark); }
.page-links a { color: var(--cream); border: 1px solid var(--line); border-radius: 0; min-height: 46px; padding: 0 18px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; transition: border-color 180ms ease, color 180ms ease; }
.page-links a:hover { border-color: var(--lime); color: var(--lime); }

/* Closing call to action: the home page's lime band with ink type and an ink button. */
.page-cta { background: var(--lime); color: var(--ink); padding: clamp(64px, 8vw, 120px) 0; }
.page-cta h2 { color: var(--ink); font-size: clamp(32px, 4.4vw, 68px); line-height: .95; letter-spacing: -.06em; max-width: 960px; margin-bottom: 20px; }
.page-cta p { color: var(--ink); opacity: .82; font-size: 17px; line-height: 1.6; max-width: 660px; }
.page-cta .btn-primary { background: var(--ink); color: var(--cream); margin-top: 28px; }
.page-cta .btn-primary:hover { background: var(--ink-raised); color: var(--lime); }
.page-cta :focus-visible { outline-color: var(--ink); }

/* FAQ */
.faq-list { gap: 0; border-top: 1px solid var(--line); max-width: 960px; }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
.faq-item summary { font-family: var(--font-h); font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.03em; padding: 24px 0; color: var(--cream); }
.faq-item summary:hover { color: var(--lime); }
.faq-item summary::after { color: var(--lime); }
.faq-item p { color: var(--muted); }

/* Blog index and articles (shared with the admin preview, which loads the same files) */
.post-date { margin-top: 18px; }
.post-body a, .post-body h3 { color: var(--cream); }
.post-body a { text-decoration-color: var(--lime); }
.post-body a:hover { color: var(--lime); }
.post-body ul, .post-body ol { color: var(--muted); }
.blog-list { border-top: 1px solid var(--line); max-width: 960px; }
.blog-list li, .blog-list li:first-child { padding: 28px 0; border-bottom: 1px solid var(--line); }
.blog-list h2 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.045em; }
.blog-list h2 a:hover, .blog-list h2 a:focus-visible { color: var(--lime); }
.blog-list .post-featured { margin: 0 0 8px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--lime); }
.blog-filter label { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--lime); }
.blog-filter input, .blog-filter select { color: var(--cream); background: var(--ink); border-color: var(--muted); }
.blog-filter input:hover, .blog-filter select:hover { border-color: var(--lime); }
.blog-filter-clear { color: var(--cream); }
.blog-filter-clear:hover { color: var(--lime); }
.blog-filter-error { color: var(--cream); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--cream); border-top: 1px solid var(--line); padding: clamp(64px, 7vw, 104px) 0 32px; }
.footer .logo-symbol { width: 44px; height: 44px; }
.footer-brand p { color: var(--cream-dark); font-size: 15px; max-width: 340px; }
.footer-contact { color: var(--cream-dark); }
.footer-col h5, .footer-col h2 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .07em; color: var(--lime); }
.footer-col a { color: var(--cream-dark); opacity: 1; font-size: 15px; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
/* Legal links (Privacy Policy, Website Terms) in the footer bar, after its note; wraps on narrow screens. */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { color: var(--cream-dark); padding: 4px 0; }
.footer-legal a:hover { color: var(--cream); }

/* ===== Not-found page ===== */
.notfound-wrap { background: var(--ink); color: var(--cream); }
.notfound-code { font-family: var(--font-h); font-weight: 600; color: var(--lime); letter-spacing: -.07em; font-size: clamp(96px, 18vw, 220px); line-height: .85; }
.notfound-title { font-family: var(--font-h); letter-spacing: -.04em; color: var(--cream); }
.notfound-text { color: var(--cream-dark); }
.notfound-links a.btn-outline { color: var(--cream); border: 1px solid var(--line); background: transparent; }
.notfound-links a.btn-outline:hover { border-color: var(--lime); color: var(--lime); }

/* ===== Website check result status screen (audit-result.html: noindex, token in the fragment, text-only output) ===== */
body > main > #status, body > main > #report { color: var(--cream-dark); }
body:has(> main > #report) { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 64px; }
body:has(> main > #report) h1 { font-size: clamp(36px, 5vw, 64px); line-height: .95; letter-spacing: -.06em; margin-bottom: 24px; color: var(--cream); }
body:has(> main > #report) #status { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--lime); }
.finding { border: 1px solid var(--line); border-radius: 0; background: var(--ink-soft); padding: 20px 24px; }
.finding h2 { font-size: 20px; letter-spacing: -.03em; line-height: 1.2; margin: 6px 0 12px; color: var(--cream); }
.finding ul { padding-left: 1.2em; color: var(--muted); overflow-wrap: anywhere; }
.severity { font-family: var(--mono); font-weight: 500; letter-spacing: .07em; color: var(--lime); }

/* ===== Mobile ===== */
@media (max-width: 720px) {
  body .header, body .header.scrolled { height: 72px; }
  .header .logo { font-size: 21px; }
  .header .logo-symbol { width: 34px; height: 34px; }
  .header .nav.open { background: var(--ink); border-bottom: 1px solid var(--line); }
  .header .nav.open a { color: var(--cream); }
  /* In the phone menu a drop-down's links are always listed under its name. */
  .header .nav .nav-group { width: 100%; }
  .header .nav .nav-group-toggle { padding: 0; pointer-events: none; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
  .header .nav .nav-group-toggle::after { display: none; }
  .header .nav .nav-group-menu { position: static; display: flex; min-width: 0; padding: 6px 0 0 14px; gap: 12px; border: 0; background: none; box-shadow: none; }
  .header .nav .nav-group-menu a { padding: 0; }
  .page-hero { padding: 132px 0 52px; }
  .page-hero::before { inset: 72px 0 0; background-size: 25vw 25vw; }
  .page-hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .btn { max-width: 100%; }
}

/* ===== 13 Nov 2026 redesign: inner pages in the home page's design =====
   Header: logo lockup with tagline, menu centred, rounded lime button. Drop-downs are panels of icon + label + line.
   Hero: copy left, an illustration card right. Sections: heading (and intro) left, cards/list/links/note right.
   Rounded cards and buttons, lime accents, and the closing call to action as a dark rounded panel. */
.btn { border-radius: 12px; }
.header .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header .logo-lockup { width: max-content; display: flex; align-items: center; gap: 13px; color: var(--cream); text-decoration: none; }
.header .logo-lockup .logo-symbol { width: 44px; height: 44px; flex: none; }
.header .logo-copy { display: flex; flex-direction: column; align-items: flex-start; }
.header .logo-copy strong { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.header .logo-copy > span { margin-top: 7px; color: var(--cream-dark); font-size: 11px; line-height: 1; }
.header .nav { justify-self: center; }
.header .header-actions { justify-self: end; margin-left: 0; }
.header .header-cta { min-height: 44px; padding: 0 18px; border-radius: 12px; gap: 16px; }
.header .nav-group-toggle { font-size: 14px; color: var(--cream-dark); }
.header .nav-group-menu {
  left: 50%; transform: translateX(-50%); top: calc(100% + 16px); min-width: 360px; padding: 10px; gap: 2px;
  border: 1px solid rgba(242, 241, 233, .26); border-radius: 18px; background: var(--ink-soft, #11120e);
}
/* Drop-down items: icon, bold label, grey line (shared markup with the home page) */
.header .nav a.nav-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--cream); text-decoration: none; transition: background 160ms ease; }
.header .nav a.nav-item::after { display: none; }
.header .nav a.nav-item:hover, .header .nav a.nav-item:focus-visible { background: var(--ink-raised); }
.nav-icon { width: 36px; height: 36px; flex: none; padding: 8px; border: 1px solid rgba(242, 241, 233, .2); border-radius: 10px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; background: rgba(202, 255, 53, .06); }
.nav-item-text { display: grid; gap: 3px; }
.nav-item-text strong { font-size: 14.5px; font-weight: 700; line-height: 1.25; color: var(--cream); }
.nav-item-text small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.nav-item:hover .nav-item-text strong { color: var(--lime); }

/* Hero: copy left, illustration right */
.page-hero { padding: 150px 0 clamp(64px, 7vw, 104px); }
.page-hero::before { background-image: radial-gradient(rgba(242, 241, 233, .2) 1px, transparent 1.5px); background-size: 28px 28px; opacity: .45; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.page-hero h1 { font-size: clamp(42px, 5.2vw, 80px); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.page-kicker { display: inline-flex; gap: 10px; color: var(--lime); font-size: 12px; letter-spacing: .12em; margin-bottom: 22px; }
.page-kicker > span { width: 22px; height: 1.5px; background: currentColor; }
.page-lede { max-width: 620px; }
.page-hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.page-hero-actions .btn { min-height: 52px; }
.page-hero-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0 8px; border-bottom: 1px solid currentColor; color: var(--cream); font-size: 14px; font-weight: 700; text-decoration: none; }
.page-hero-link::after { content: "→"; transition: transform 200ms ease; }
.page-hero-link:hover { color: var(--lime); }
.page-hero-link:hover::after { transform: translateX(4px); }
.page-visual {
  display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(242, 241, 233, .26); border-radius: 24px;
  background: linear-gradient(160deg, var(--ink-raised), var(--ink-soft)); box-shadow: 0 40px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.page-visual-label { justify-self: end; color: var(--muted); font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.page-visual-row { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 10, 7, .55); }
.page-visual-row.is-on { border-color: rgba(202, 255, 53, .55); box-shadow: 0 0 0 4px rgba(202, 255, 53, .06); }
.page-visual-tag { color: var(--lime); font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.page-visual-row b { font-size: 15.5px; line-height: 1.35; color: var(--cream); }
.page-visual-meta { color: var(--muted); font-size: 13px; }

/* Sections: heading (and intro) left, content right */
.page-section { padding: clamp(72px, 8vw, 128px) 0; }
.page-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.page-section .page-split > h2 { grid-column: 1; margin-bottom: 20px; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -.05em; font-weight: 700; }
.page-section .page-split > p { grid-column: 1; max-width: 520px; color: var(--cream-dark); font-size: 17px; }
.page-split-body { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 24px; }
.page-split--statement { align-items: end; }
.page-section .page-split--statement > p { grid-column: 2; grid-row: 1; max-width: 680px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--cream-dark); }
.page-section .page-grid { margin-top: 0; gap: 14px; border: 0; counter-reset: card; }
.page-section .page-card {
  position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink); counter-increment: card;
  transition: border-color 200ms ease, transform 220ms ease, background 200ms ease;
}
.page-section:nth-of-type(odd) .page-card { background: var(--ink-soft); }
.page-section .page-card::before { content: counter(card, decimal-leading-zero); display: block; margin-bottom: 18px; color: var(--lime); font: 500 12px var(--mono); letter-spacing: .1em; }
.page-section .page-card:hover { border-color: rgba(202, 255, 53, .45); transform: translateY(-3px); background: var(--ink-raised); }
.page-section .page-card h3 { margin-bottom: 10px; font-size: clamp(19px, 1.5vw, 22px); font-weight: 700; letter-spacing: -.03em; }
.page-section .page-card p { font-size: 15px; line-height: 1.65; }
.page-section .page-list { margin: 0; gap: 0; max-width: none; border-top: 1px solid var(--line); }
.page-section .page-list li { gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.page-section .page-list li::before {
  content: "✓"; width: 26px; height: 26px; flex: none; display: grid; place-items: center; margin-top: -1px;
  border-radius: 50%; background: rgba(202, 255, 53, .12); color: var(--lime); font-size: 13px;
}
.page-section .page-links { margin: 0; gap: 10px; }
.page-section .page-links a {
  min-height: 48px; padding: 0 18px; gap: 14px; border: 1px solid rgba(242, 241, 233, .26); border-radius: 12px; color: var(--cream);
  font-family: var(--font-b); font-size: 14px; font-weight: 700; letter-spacing: -.01em; text-transform: none; text-decoration: none;
}
.page-section .page-links a::after { content: "→"; color: var(--lime); transition: transform 200ms ease; }
.page-section .page-links a:hover { border-color: var(--lime); color: var(--lime); }
.page-section .page-links a:hover::after { transform: translateX(4px); }
.page-section .page-note { margin: 0; max-width: none; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 16px; background: var(--ink-raised); }
.page-section .page-note p { font-size: 14.5px; line-height: 1.65; }

/* FAQ: a sticky panel left, the questions right */
.page-split--faq { grid-template-columns: minmax(260px, .6fr) minmax(0, 1.4fr); }
.page-split--faq .faq-list { max-width: none; }
.faq-aside { position: sticky; top: 120px; display: grid; gap: 18px; justify-items: start; padding: 26px; border: 1px solid rgba(242, 241, 233, .26); border-radius: 22px; background: linear-gradient(160deg, var(--ink-raised), var(--ink-soft)); }
.faq-aside-tag { color: var(--lime); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.faq-aside strong { font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.page-split--faq .faq-list { margin-top: 0; max-width: none; }

/* Closing call to action: a dark rounded panel with a lime glow, like the home page's contact section */
.page-cta { padding: clamp(48px, 6vw, 96px) 0; background: var(--ink); color: var(--cream); }
.page-cta .container { position: relative; overflow: hidden; margin: 0 var(--page); padding: clamp(40px, 6vw, 88px); border: 1px solid rgba(202, 255, 53, .35); border-radius: 28px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(202, 255, 53, .16), transparent 55%), var(--ink-soft); }
.page-cta h2 { color: var(--cream); font-size: clamp(32px, 4vw, 60px); line-height: 1.02; letter-spacing: -.05em; font-weight: 700; max-width: 900px; }
.page-cta p { color: var(--cream-dark); opacity: 1; }
.page-cta .btn-primary { background: var(--lime); color: var(--ink); }
.page-cta .btn-primary:hover { background: var(--cream); color: var(--ink); }
.page-cta :focus-visible { outline-color: var(--lime); }

/* Footer columns: the brand block, then as many link columns as there are groups in Admin > Navigation (they wrap) */
.footer .footer-inner { display: flex; flex-wrap: wrap; gap: 32px clamp(24px, 3vw, 48px); }
.footer .footer-inner > .footer-brand { flex: 1.4 1 280px; }
.footer .footer-inner > .footer-col { flex: 1 1 150px; }
/* Newsletter sign-up box (footer): a plain form; the honeypot row is never shown */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-newsletter { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-soft); max-width: 460px; }
.footer-newsletter h2 { margin: 0 0 6px; color: var(--lime); font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-newsletter > p { margin: 0 0 14px; color: var(--cream-dark); font-size: 14px; line-height: 1.55; }
.footer-newsletter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-newsletter-row input { flex: 1 1 200px; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--cream); font: inherit; font-size: 15px; }
.footer-newsletter-row input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.footer-newsletter-btn { min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--lime); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.footer-newsletter-btn:hover { background: var(--cream); }
.footer-newsletter-btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.footer-newsletter-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--cream-dark); font-size: 13px; line-height: 1.5; cursor: pointer; }
.footer-newsletter-consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--lime); }
.footer-newsletter-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.footer-newsletter-note a { color: var(--cream-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-newsletter-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Subscribe: black bold text on lime on every page (the home page's own button rule must not turn it pale). The
   consent checkbox is a dark box with a lime border and a lime tick, so it sits in the dark design and stays visible. */
.footer-newsletter .footer-newsletter-btn { color: var(--ink); font-weight: 700; font-size: 15px; }
.footer-newsletter .footer-newsletter-btn:hover { color: var(--ink); }
.footer-newsletter .footer-newsletter-consent input { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 0; border: 2px solid var(--lime); border-radius: 5px; background: var(--ink); cursor: pointer; }
.footer-newsletter .footer-newsletter-consent input::before { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.footer-newsletter .footer-newsletter-consent input:checked { background: var(--lime); }
.footer-newsletter .footer-newsletter-consent input:checked::before { opacity: 1; }
.footer-newsletter .footer-newsletter-consent input:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.footer-newsletter .footer-newsletter-note { font-size: 12px; }
/* Social profiles: icon links, shown only when their address is set in Admin */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--cream-dark); background: var(--ink-soft); transition: color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.footer-social a:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

@media (max-width: 1180px) {
  .header .header-inner { grid-template-columns: auto 1fr auto; }
  .header .nav { gap: 18px; }
  .header .logo-copy > span { display: none; }
}
@media (max-width: 980px) {
  .page-hero-grid, .page-split, .page-split--faq { grid-template-columns: 1fr; }
  .page-section .page-split > p, .page-split-body, .page-section .page-split--statement > p { grid-column: 1; grid-row: auto; }
  .page-split-body { margin-top: 12px; }
  .page-visual { max-width: 560px; }
  .faq-aside { position: static; margin-bottom: 28px; }
}
@media (max-width: 720px) {
  .header .header-inner { display: flex; }
  .header .logo-lockup .logo-symbol { width: 36px; height: 36px; }
  .header .logo-copy strong { font-size: 21px; }
  .header .nav-group-menu { transform: none; min-width: 0; }
  .header .nav a.nav-item { padding: 10px 0; }
  .nav-icon { width: 32px; height: 32px; padding: 7px; }
  .page-hero { padding: 120px 0 56px; }
  .page-section .page-grid { grid-template-columns: 1fr; }
  .page-cta .container { margin: 0 16px; padding: 32px 22px; border-radius: 22px; }
  .footer .footer-inner > .footer-col { flex-basis: 40%; }
}

/* Knowledge base index: article cards in two columns (the whole card opens the article) */
.page-section .blog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: none; border: 0; counter-reset: post; }
.page-section .blog-list li, .page-section .blog-list li:first-child {
  position: relative; display: flex; flex-direction: column; padding: 28px 28px 26px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--ink-soft); counter-increment: post; transition: border-color 200ms ease, transform 220ms ease, background 200ms ease;
}
.page-section .blog-list li::before { content: "Guide " counter(post, decimal-leading-zero); margin-bottom: 18px; color: var(--lime); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.page-section .blog-list li:hover { border-color: rgba(202, 255, 53, .45); transform: translateY(-3px); background: var(--ink-raised); }
.page-section .blog-list h2 { margin-bottom: 10px; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.15; letter-spacing: -.04em; }
.page-section .blog-list h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.page-section .blog-list li > p:last-child { margin-top: auto; padding-top: 6px; }
.page-section .blog-filter { max-width: none; }
.page-section .blog-pagination { max-width: none; }

/* Articles: below 900px the text and the contents list use the full width (no empty column on the right) */
@media (max-width: 899.98px) {
  .post-body .container > * { max-width: none; }
}
/* Articles: the contents list in a sticky column beside the text from tablet landscape up */
@media (min-width: 900px) {
  /* The heading, text and contents line up with the menu's left and right edges (the site width), so laptop and
     desktop screens have no empty band on either side. Only very wide monitors (over about 1830px) get a centred
     block, to keep the lines of text readable. */
  .post-hero .container, .post-body .container { max-width: calc(1680px + 2 * var(--page)); margin-left: auto; margin-right: auto; }
  .post-hero h1 { max-width: 1100px; font-size: clamp(44px, 4.6vw, 72px); line-height: .98; }
  .post-hero .page-lede { max-width: 900px; }
  .post-body .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); column-gap: clamp(40px, 5vw, 96px); }
  .post-body .container > * { grid-column: 1; max-width: none; }
  .post-body .container > .post-toc { grid-column: 2; grid-row: 1 / span 40; align-self: start; position: sticky; top: 120px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-soft); }
  .post-body .post-toc h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
  .post-body .post-toc ol { font-size: 15px; }
}
/* Articles on laptop and desktop: a slightly larger text size for the wider reading column */
@media (min-width: 1200px) {
  .post-body p, .post-body ul, .post-body ol:not(.post-toc ol) { font-size: 18px; line-height: 1.75; }
  .post-body .container > p, .post-body .container > ul, .post-body .container > ol, .post-body .container > blockquote { max-width: 80ch; }
}
@media (min-width: 1600px) {
  .post-body p, .post-body ul, .post-body ol:not(.post-toc ol) { font-size: 20px; }
}

/* Text-only sections (a heading and paragraphs, such as the Privacy Policy and Website Terms): from laptop width the
   heading sits on the left and the text on the right, so the page uses the full width like the other pages instead
   of one narrow column with an empty right side. These sections are spaced more closely than the designed sections. */
@media (min-width: 1024px) {
  .page-section > .container:not(.page-split):has(> h2:first-child):not(:has(> :not(h2, h3, p, ul, ol))) {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 112px); align-items: start;
  }
  .page-section > .container:not(.page-split):has(> h2:first-child):not(:has(> :not(h2, h3, p, ul, ol))) > h2 { grid-column: 1; grid-row: 1 / span 30; margin: 0; max-width: none; }
  .page-section > .container:not(.page-split):has(> h2:first-child):not(:has(> :not(h2, h3, p, ul, ol))) > :not(h2) { grid-column: 2; max-width: 860px; }
  .page-section:has(> .container:not(.page-split) > h2:first-child):not(:has(> .container > :not(h2, h3, p, ul, ol))) + .page-section:has(> .container:not(.page-split) > h2:first-child):not(:has(> .container > :not(h2, h3, p, ul, ol))) { padding-top: clamp(48px, 5vw, 72px); }
  .page-section:has(> .container:not(.page-split) > h2:first-child):not(:has(> .container > :not(h2, h3, p, ul, ol))) { padding-bottom: clamp(48px, 5vw, 72px); }
}

/* Phone menu: every link left-aligned, plain links as rows */
@media (max-width: 720px) {
  .header .nav.open { align-items: stretch; text-align: left; gap: 0; padding: 12px var(--page) 24px; }
  .header .nav.open > a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header .nav.open .nav-group { padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
  .page-section .blog-list { grid-template-columns: 1fr; }
}

/* Phone menu: every link fits on one small screen, so the drop-down items drop their grey line and tighten up. */
@media (max-width: 720px) {
  .header .nav .nav-item-text small { display: none; }
  .header .nav a.nav-item { align-items: center; gap: 12px; padding: 7px 0; }
  .header .nav .nav-icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }
  .header .nav.open { max-height: calc(100svh - 72px); overflow-y: auto; }
  .header .nav.open > a { padding: 12px 0; }
  .header .nav.open .nav-group { padding: 10px 0 6px; }
}
@media (max-width: 720px) {
  /* stretch: the desktop rule centres the menu (justify-self), which would also shrink this fixed panel */
  .header .nav.open { position: fixed; top: 72px; left: 0; right: 0; width: auto; justify-self: stretch; }
}
