/* ==========================================================================
   Scof Iabarrk — scofiabarrk.com
   Stylesheet: design tokens, layout, components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink-900: #0b1524;
  --ink-800: #12233a;
  --ink-700: #1c3352;
  --ink-600: #2d4569;
  --ink-500: #4a5f7c;
  --ink-400: #6d7f97;
  --ink-300: #93a2b5;

  --brass-700: #7d5c26;
  --brass-600: #a2793a;
  --brass-500: #bd934f;
  --brass-100: #f4ece0;

  --line: #dde3ea;
  --line-soft: #eaeef3;
  --surface: #f5f7fa;
  --surface-2: #edf1f6;
  --white: #ffffff;

  --ok-700: #1f5f4b;
  --ok-100: #e6f2ee;
  --warn-700: #8a5a10;
  --warn-100: #fbf1de;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --container-narrow: 800px;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(11, 21, 36, .06), 0 1px 3px rgba(11, 21, 36, .05);
  --shadow: 0 2px 6px rgba(11, 21, 36, .06), 0 10px 24px rgba(11, 21, 36, .07);
  --shadow-lg: 0 4px 12px rgba(11, 21, 36, .08), 0 24px 48px rgba(11, 21, 36, .10);

  --step: 1.25rem;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--ink-900);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.05rem, 1.5rem + 2.3vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .5vw, 1.42rem); }
h4 { font-size: 1.08rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: .002em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--brass-500); }
a:hover { color: var(--brass-700); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

strong { color: var(--ink-900); font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

blockquote {
  margin: 1.8rem 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: 3px solid var(--brass-500);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--ink-600);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--surface-2);
  padding: .12em .38em;
  border-radius: var(--radius-sm);
}

:focus-visible {
  outline: 3px solid var(--brass-600);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--brass-100); color: var(--ink-900); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.2rem, 4vw, 3.5rem) 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--dark { background: var(--ink-900); color: #c9d4e2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #fff; text-decoration-color: var(--brass-500); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink-900); color: #fff; padding: 12px 20px;
  text-decoration: none; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }

.stack > * + * { margin-top: 1.1rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Typography utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin: 0 0 .9rem;
}
.section--dark .eyebrow { color: var(--brass-500); }

.lede { font-size: 1.12rem; color: var(--ink-600); line-height: 1.68; }
.small { font-size: .9rem; }
.muted { color: var(--ink-400); }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans);
  font-size: .95rem; font-weight: 600; line-height: 1;
  padding: .92em 1.6em;
  border: 1px solid var(--ink-900);
  border-radius: var(--radius);
  background: var(--ink-900); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--ink-700); border-color: var(--ink-700); color: #fff; transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn--outline:hover { background: var(--surface); color: var(--ink-900); border-color: var(--ink-300); }

.btn--brass { background: var(--brass-600); border-color: var(--brass-600); }
.btn--brass:hover { background: var(--brass-700); border-color: var(--brass-700); }

.btn--light { background: #fff; color: var(--ink-900); border-color: #fff; }
.btn--light:hover { background: var(--surface-2); color: var(--ink-900); border-color: var(--surface-2); }

.btn--sm { padding: .68em 1.15em; font-size: .88rem; }
.btn--block { width: 100%; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .94rem; text-decoration: none;
  color: var(--ink-800);
  border-bottom: 1px solid var(--brass-500);
  padding-bottom: 2px;
}
.arrow-link:hover { color: var(--brass-700); border-color: var(--brass-700); }
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; }

.topbar {
  background: var(--ink-900);
  color: #a9b8ca;
  font-size: .8rem;
  letter-spacing: .01em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__links li { margin: 0; }
.topbar a { color: #dde5ee; text-decoration: none; }
.topbar a:hover { color: var(--brass-500); }

.nav-wrap { border-bottom: 1px solid var(--line); background: #fff; }
.site-header.is-stuck .nav-wrap { box-shadow: 0 2px 14px rgba(11, 21, 36, .08); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.32rem; font-weight: 600; color: var(--ink-900); letter-spacing: -0.015em; }
.brand__tag { font-size: .66rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-400); font-style: normal; margin-top: 3px; }

.nav__toggle {
  display: none;
  width: 44px; height: 40px;
  align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle span { display: block; position: relative; width: 18px; height: 2px; background: var(--ink-800); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-800);
  transition: transform .2s ease, top .2s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav__menu > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu > ul > li { margin: 0; position: relative; }

.nav__link, .sub-toggle {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--font-sans); font-size: .93rem; font-weight: 500;
  color: var(--ink-700); text-decoration: none;
  padding: .7em .85em; border-radius: var(--radius);
  background: none; border: 0; cursor: pointer; line-height: 1.3;
}
.nav__link:hover, .sub-toggle:hover { color: var(--ink-900); background: var(--surface); }
.nav__link.is-active { color: var(--ink-900); font-weight: 650; box-shadow: inset 0 -2px 0 var(--brass-500); border-radius: 0; }
.sub-toggle::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.6px solid var(--ink-400); border-bottom: 1.6px solid var(--ink-400);
  transform: rotate(45deg); transition: transform .2s ease;
}
.has-sub[data-open="true"] .sub-toggle::after { transform: rotate(-135deg); margin-top: 2px; }

.subnav {
  list-style: none; margin: 0; padding: 10px;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-sub[data-open="true"] .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav li { margin: 0; }
.subnav a {
  display: block; padding: .6em .8em; border-radius: var(--radius);
  font-size: .9rem; color: var(--ink-700); text-decoration: none;
}
.subnav a:hover { background: var(--surface); color: var(--ink-900); }
.subnav a small { display: block; font-size: .78rem; color: var(--ink-400); margin-top: 1px; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #c5d1e0;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(189, 147, 79, .17), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

/* Links sitting on the dark hero backgrounds must not inherit the dark ink colour */
.hero a:not(.btn), .page-hero a:not(.btn) { color: #dde5ee; text-decoration-color: var(--brass-500); }
.hero a:not(.btn):hover, .page-hero a:not(.btn):hover { color: var(--brass-500); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__lede { font-size: 1.15rem; color: #b9c7d8; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero__note { margin-top: 1.9rem; font-size: .85rem; color: #8d9fb5; max-width: 52ch; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.1rem; }

.hero__figure {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(2px);
}
.hero__figure figcaption { font-size: .8rem; color: #8d9fb5; margin-top: 14px; line-height: 1.55; }

.page-hero {
  background: var(--ink-900);
  color: #b9c7d8;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(2.4rem, 4.5vw, 3.6rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 340px at 88% 0%, rgba(189, 147, 79, .16), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero__lede { font-size: 1.08rem; color: #b9c7d8; max-width: 62ch; margin-bottom: 0; }
.page-hero__meta { margin-top: 1.6rem; font-size: .82rem; color: #8d9fb5; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* --------------------------------------------------------------------------
   8. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs { font-size: .82rem; color: #8d9fb5; margin-bottom: 1.4rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255,255,255,.28); }
.breadcrumbs a { color: #cfdae7; text-decoration: none; }
.breadcrumbs a:hover { color: var(--brass-500); text-decoration: underline; }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--ink-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-500); font-size: .96rem; }
.card__foot { margin-top: auto; padding-top: 1.2rem; }

.card--plain:hover { transform: none; box-shadow: none; border-color: var(--line); }

.card__icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--brass-100); border-radius: var(--radius);
  color: var(--brass-700);
}
.card__icon svg { width: 24px; height: 24px; }

.card__num {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--brass-600);
  display: block; margin-bottom: .35rem; line-height: 1;
}

.topic-card { display: flex; flex-direction: column; height: 100%; }
.topic-card__tag {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-400); font-weight: 700; margin-bottom: .7rem;
}
.topic-card h3 a { text-decoration: none; color: var(--ink-900); }
.topic-card h3 a:hover { color: var(--brass-700); }
.topic-card__meta { font-size: .82rem; color: var(--ink-400); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   10. Stats / feature strip
   -------------------------------------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: #fff; padding: 28px 26px; }
.stat__num { font-family: var(--font-serif); font-size: 1.9rem; color: var(--ink-900); line-height: 1.1; display: block; }
.stat__label { font-size: .86rem; color: var(--ink-500); margin-top: .4rem; display: block; }

/* --------------------------------------------------------------------------
   11. Article body
   -------------------------------------------------------------------------- */
.article-body { font-size: 1.02rem; }
.article-body > h2 {
  margin-top: 2.8rem; padding-top: 1.9rem; border-top: 1px solid var(--line-soft);
}
.article-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article-body > h3 { margin-top: 2rem; }
.article-body ul, .article-body ol { padding-left: 1.25em; }
.article-body ul li::marker { color: var(--brass-600); }
.article-body ol li::marker { color: var(--brass-700); font-weight: 700; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass-500);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 2.4rem;
}
.toc h2 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); margin-bottom: .8rem; }
.toc ol { margin: 0; padding-left: 1.15em; font-size: .94rem; }
.toc a { text-decoration: none; color: var(--ink-700); }
.toc a:hover { color: var(--brass-700); text-decoration: underline; }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 2rem 0;
  font-size: .96rem;
}
.callout h4 { margin-bottom: .4rem; color: var(--ink-900); }
.callout--warn { background: var(--warn-100); border-color: #f0dfbd; }
.callout--warn h4 { color: var(--warn-700); }
.callout--note { background: var(--ok-100); border-color: #cfe4dc; }
.callout--note h4 { color: var(--ok-700); }

.key-points {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 2.4rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.key-points h2 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-700); margin-bottom: .9rem; }
.key-points ul { margin: 0; padding-left: 1.1em; font-size: .97rem; }

/* --------------------------------------------------------------------------
   12. Sidebar
   -------------------------------------------------------------------------- */
.sidebar { position: sticky; top: 128px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 22px; background: #fff; }
.widget:last-child { margin-bottom: 0; }
.widget h3 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.widget li { margin-bottom: .7rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line-soft); }
.widget li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.widget a { text-decoration: none; color: var(--ink-700); }
.widget a:hover { color: var(--brass-700); text-decoration: underline; }
.widget--dark { background: var(--ink-900); border-color: var(--ink-900); color: #b9c7d8; }
.widget--dark h3 { color: var(--brass-500); }
.widget--dark p { font-size: .92rem; }

/* --------------------------------------------------------------------------
   13. Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.9rem 0; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 540px; }
caption { text-align: left; font-size: .85rem; color: var(--ink-400); padding: 14px 18px; border-bottom: 1px solid var(--line); }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--surface); color: var(--ink-900); font-weight: 650; font-size: .85rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.accordion__item { border-bottom: 1px solid var(--line-soft); }
.accordion__item:last-child { border-bottom: 0; }
.accordion__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 24px; background: #fff; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--ink-900);
  text-align: left; line-height: 1.5;
}
.accordion__btn:hover { background: var(--surface); }
.accordion__btn::after {
  content: ""; flex: 0 0 12px; width: 12px; height: 12px; margin-top: 7px;
  border-right: 2px solid var(--brass-600); border-bottom: 2px solid var(--brass-600);
  transform: rotate(45deg); transition: transform .2s ease;
}
.accordion__btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 11px; }
.accordion__panel { padding: 0 24px 22px; font-size: .96rem; color: var(--ink-600); }
.accordion__panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 600; color: var(--ink-800); margin-bottom: .45rem; }
.field .hint { font-size: .8rem; color: var(--ink-400); margin-top: .35rem; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .97rem; color: var(--ink-800);
  padding: .78em .9em;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass-600);
  box-shadow: 0 0 0 3px rgba(189, 147, 79, .18);
}
.field textarea { min-height: 160px; resize: vertical; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #b4402f; }
.field__error { font-size: .8rem; color: #b4402f; margin-top: .35rem; display: none; }
.field.has-error .field__error { display: block; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-600); }
.checkbox input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 3px; accent-color: var(--brass-600); }
.checkbox label { font-weight: 400; font-size: .88rem; margin: 0; }

.form-status { margin-top: 1.2rem; padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--ok-100); color: var(--ok-700); border: 1px solid #cfe4dc; }
.form-status.is-error { background: #fbecea; color: #96382a; border: 1px solid #f0d3ce; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   16. Misc components
   -------------------------------------------------------------------------- */
.pill {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .35em .75em; border-radius: 100px; background: var(--brass-100); color: var(--brass-700);
}

.contact-block { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.contact-block:last-child { border-bottom: 0; }
.contact-block__icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius); color: var(--ink-700); }
.contact-block__icon svg { width: 20px; height: 20px; }
.contact-block h3 { font-family: var(--font-sans); font-size: .95rem; margin-bottom: .25rem; }
.contact-block p { font-size: .93rem; color: var(--ink-500); margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .85rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 8px; height: 14px; border-right: 2px solid var(--brass-600); border-bottom: 2px solid var(--brass-600);
  transform: rotate(42deg);
}

.glossary-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2.4rem; }
.glossary-nav a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink-700);
}
.glossary-nav a:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.glossary-group { margin-bottom: 2.6rem; }
.glossary-group > h2 {
  font-size: 1.5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--brass-500);
  display: inline-block; margin-bottom: 1.4rem;
}
.glossary-term { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.glossary-term:last-child { border-bottom: 0; }
.glossary-term dt { font-weight: 700; color: var(--ink-900); margin-bottom: .3rem; }
.glossary-term dd { margin: 0; font-size: .96rem; color: var(--ink-600); }

.prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.prevnext a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; }
.prevnext a:hover { border-color: var(--ink-300); box-shadow: var(--shadow-sm); }
.prevnext span { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .35rem; }
.prevnext strong { display: block; color: var(--ink-900); font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; }
.prevnext .is-next { text-align: right; }

.cta-band { background: var(--ink-900); color: #b9c7d8; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.2rem); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 10%, rgba(189,147,79,.2), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }

.disclosure-bar {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: .83rem; color: var(--ink-500);
  padding: 16px 0;
}
.disclosure-bar p { margin: 0; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: #94a6bb; font-size: .92rem; padding-top: clamp(3rem, 5vw, 4.5rem); }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #b9c7d8; text-decoration: none; }
.site-footer a:hover { color: var(--brass-500); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 3rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #7f92a8; }
.footer-about { margin-top: 1.2rem; font-size: .9rem; line-height: 1.7; max-width: 38ch; }
.footer-legal-entity { margin-top: 1.4rem; font-size: .84rem; color: #7f92a8; line-height: 1.65; }
.footer-legal-entity strong { color: #cfdae7; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .84rem; color: #7f92a8;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom li { margin: 0; }

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0 34px;
  font-size: .8rem; line-height: 1.7; color: #74879e;
}

/* --------------------------------------------------------------------------
   18. Cookie banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  display: none;
}
.cookie-banner.is-visible { display: block; animation: cookieIn .28s ease-out; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cookie-banner h2 { font-size: 1.08rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: .5rem; }
.cookie-banner p { font-size: .89rem; color: var(--ink-500); margin-bottom: 1.1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* "Save choices" is only meaningful once the preferences panel is open */
.cookie-banner [data-consent="save"] { display: none; }
.cookie-banner.is-managing [data-consent="save"] { display: inline-flex; }

.cookie-prefs { display: none; margin: 0 0 1.1rem; padding: 16px 18px; background: var(--surface); border-radius: var(--radius); }
.cookie-prefs.is-open { display: block; }
.cookie-prefs .checkbox { margin-bottom: .7rem; }
.cookie-prefs .checkbox:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   19. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 400;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-900); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brass-700); }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: 1fr; gap: 42px; }
  .sidebar { position: static; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__inner p { display: none; }
  .topbar__inner { justify-content: center; }

  .nav__toggle { display: inline-flex; }
  .nav { min-height: 66px; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 22px;
    max-height: calc(100vh - 110px); overflow-y: auto;
    display: none;
  }
  .nav__menu.is-open { display: block; }
  .nav__menu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .sub-toggle { padding: .85em .2em; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__link.is-active { box-shadow: none; color: var(--brass-700); }
  .nav__menu .btn { margin-top: 16px; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 4px 0 10px 14px; min-width: 0;
    display: none; border-left: 2px solid var(--line);
  }
  .has-sub[data-open="true"] .subnav { display: block; }
  .nav-wrap { position: relative; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .is-next { text-align: left; }
  .container { padding: 0 18px; }
  .card { padding: 24px; }
  .cookie-banner { padding: 20px; left: 10px; right: 10px; bottom: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .topbar__links { gap: 14px; font-size: .76rem; }
}

/* --------------------------------------------------------------------------
   21. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .site-header, .site-footer, .cookie-banner, .to-top, .hero__figure, .prevnext { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a { text-decoration: none; color: #000; }
  .page-hero { background: none; color: #000; padding: 0 0 1rem; }
  .page-hero h1 { color: #000; }
}
