/* ==========================================================================
   Nimble Business Consulting LLP — Design System
   Palette sampled from the Nimble logo (teal/navy emblem, gold arc).
   Fonts: Fraunces (editorial serif, headings) + Inter (body).
   ========================================================================== */

:root {
  /* Brand colours */
  --ink:        #102A37;  /* deep teal-navy (logo ring)            */
  --ink-800:    #14323F;
  --teal:       #1C6E7E;  /* primary teal                          */
  --teal-700:   #0E5963;  /* dark teal                             */
  --teal-50:    #E9F1F2;
  --gold:       #C2A15A;  /* muted gold (logo arc)                 */
  --gold-700:   #A4843D;
  --paper:      #F7F5EF;  /* warm off-white                        */
  --white:      #FFFFFF;
  --text:       #252B2D;  /* charcoal body text                    */
  --muted:      #5C6A6E;  /* secondary text                        */
  --border:     #DDE3E3;  /* hairline border                       */
  --border-2:   #C9D2D2;

  /* Functional */
  --success:    #1F7A52;
  --error:      #B3261E;

  /* Typography */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing scale (8pt) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --radius:   14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(16,42,55,.06), 0 2px 8px rgba(16,42,55,.05);
  --shadow:    0 8px 30px rgba(16,42,55,.10);
  --ring: 0 0 0 3px rgba(28,110,126,.35);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }
h1,h2,h3,h4 { font-family: var(--font-serif); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.075rem; font-family: var(--font-sans); font-weight: 700; color: var(--ink); }
p { margin: 0 0 1rem; }
ul,ol { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-7) 0; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color:#fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.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;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem,5vw,4rem) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #DDE7EA; }
.section--ink h1,.section--ink h2,.section--ink h3 { color: #fff; }
.section--ink a { color: #fff; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width:680px){ .grid-2{grid-template-columns:repeat(2,1fr);} }
@media (min-width:900px){ .grid-3{grid-template-columns:repeat(3,1fr);} .grid-2{grid-template-columns:repeat(2,1fr);} }
.lede { font-size: clamp(1.1rem,1.8vw,1.3rem); color: var(--muted); line-height: 1.6; max-width: 60ch; }

.eyebrow {
  display:inline-block; font-family: var(--font-sans); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .9rem;
}
.section--ink .eyebrow { color: var(--gold); }
.section-head { max-width: 64ch; margin-bottom: 2.5rem; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.text-gold { color: var(--gold-700); }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; gap:.5rem; cursor:pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color:#fff; }
.btn-primary:hover { background: var(--teal-700); color:#fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-700); background: var(--teal-50); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-700); color:#fff; }
.btn-ghost-light { background: transparent; color:#fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color:#fff; border-color:#fff; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.arrow-link { font-weight: 600; text-decoration: none; display:inline-flex; align-items:center; gap:.4rem; }
.arrow-link::after { content:"→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height: 74px; }
.brand { display:flex; align-items:center; gap:.6rem; text-decoration:none; flex-shrink:0; }
.brand img { height: 42px; width:auto; }
.brand .brand-name { font-family: var(--font-serif); font-weight: 600; color: var(--ink); font-size: 1.28rem; letter-spacing:.02em; }
.brand .brand-sub { display:block; font-family:var(--font-sans); font-weight:500; font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-top:1px; }

.nav { display:flex; align-items:center; gap: .35rem; }
.nav a.nav-link {
  font-weight: 600; font-size: .97rem; color: var(--ink); text-decoration: none;
  padding: .55rem .7rem; border-radius: 8px;
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--teal-700); background: var(--teal-50); }
.has-sub { position: relative; }
.has-sub > button {
  font: inherit; font-weight:600; font-size:.97rem; color:var(--ink); background:none; border:0; cursor:pointer;
  padding:.55rem .7rem; border-radius:8px; display:inline-flex; align-items:center; gap:.3rem;
}
.has-sub > button:hover { color: var(--teal-700); background: var(--teal-50); }
.has-sub > button .caret { transition: transform .2s; font-size:.7em; }
.has-sub[data-open="true"] > button .caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px;
  background:#fff; border:1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  padding: .5rem; display:none;
}
.has-sub[data-open="true"] .submenu { display:block; }
.submenu a { display:block; padding:.7rem .8rem; border-radius:8px; text-decoration:none; color:var(--ink); font-weight:600; font-size:.95rem; }
.submenu a span { display:block; font-weight:400; font-size:.82rem; color:var(--muted); margin-top:2px; }
.submenu a:hover { background: var(--teal-50); color: var(--teal-700); }

.header-cta { display:flex; align-items:center; gap:.5rem; }
.nav-toggle {
  display:none; background:none; border:1.5px solid var(--border-2); border-radius:10px;
  width:46px; height:42px; cursor:pointer; align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display:block; width:20px; height:2px; background:var(--ink); position:relative; transition:.25s;
}
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; }
.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); }

@media (max-width: 980px) {
  .nav-toggle { display:inline-flex; }
  .header-cta .btn { display:none; }
  .nav {
    position: fixed; inset: 74px 0 0 0; background:#fff; flex-direction:column; align-items:stretch;
    gap:0; padding: 1rem 1.5rem 2rem; overflow-y:auto; transform: translateX(100%);
    transition: transform .28s var(--ease); border-top:1px solid var(--border);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a.nav-link, .has-sub > button { padding: .95rem .4rem; font-size:1.1rem; border-bottom:1px solid var(--border); border-radius:0; width:100%; text-align:left; justify-content:space-between; }
  .submenu { position: static; box-shadow:none; border:0; border-bottom:1px solid var(--border); border-radius:0; padding:0 0 .5rem .6rem; display:none; }
  .has-sub[data-open="true"] .submenu { display:block; }
  .nav .btn { display:inline-flex; margin-top:1.25rem; }
  .nav .mobile-cta { display:flex!important; }
}
.mobile-cta { display:none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg,#fff 0%, var(--paper) 100%); overflow:hidden; }
.hero-grid { display:grid; gap: 2.5rem; align-items:center; padding: clamp(2.5rem,6vw,4.5rem) 0 clamp(3rem,7vw,5rem); }
@media (min-width: 940px){ .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-cta { display:flex; flex-wrap:wrap; gap:.8rem; margin-bottom: 1.6rem; }
.service-line { font-weight:600; color: var(--ink); letter-spacing:.01em; }
.service-line .dot { color: var(--gold); margin:0 .4rem; }
.hero-visual { position: relative; }
.hero-card {
  background:#fff; border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem;
}
.hero-card .hc-emblem { width:64px; height:64px; margin-bottom:1rem; }
.hero-card ul { list-style:none; padding:0; margin:0; }
.hero-card li { display:flex; gap:.7rem; padding:.7rem 0; border-bottom:1px solid var(--border); font-weight:600; color:var(--ink); }
.hero-card li:last-child { border-bottom:0; }
.hero-card li .k { color: var(--gold); font-weight:800; }

/* ---------- Credibility strip ---------- */
.cred { background: var(--ink); color:#fff; }
.cred-row { display:flex; flex-wrap:wrap; justify-content:center; gap: .6rem 2.2rem; padding: 1.4rem 0; text-align:center; }
.cred-row span { display:inline-flex; align-items:center; gap:.55rem; font-weight:600; font-size:.96rem; color:#E6EEF0; }
.cred-row span::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--gold); flex:none; }

/* ---------- Cards ---------- */
.card { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); height:100%; transition: box-shadow .25s, transform .2s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--border-2); }
.card .card-ico { width:46px; height:46px; border-radius:12px; background:var(--teal-50); color:var(--teal-700); display:flex; align-items:center; justify-content:center; margin-bottom:1rem; }
.card .card-ico svg { width:24px; height:24px; }

/* Service cards (homepage 3) */
.svc-card { display:flex; flex-direction:column; height:100%; background:#fff; border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .2s; }
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card .svc-top { padding: 1.7rem 1.6rem 1.2rem; border-top: 4px solid var(--teal); }
.svc-card:nth-child(2) .svc-top { border-top-color: var(--gold); }
.svc-card:nth-child(3) .svc-top { border-top-color: var(--teal-700); }
.svc-card h3 { margin-bottom:.4rem; }
.svc-card .svc-problem { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.svc-card .svc-body { padding: 0 1.6rem 1.6rem; display:flex; flex-direction:column; flex:1; }
.svc-list { list-style:none; padding:0; margin:0 0 1.2rem; }
.svc-list li { position:relative; padding:.35rem 0 .35rem 1.5rem; font-size:.96rem; }
.svc-list li::before { content:""; position:absolute; left:0; top:.85rem; width:8px; height:8px; border:2px solid var(--teal); border-radius:50%; }
.svc-outcome { margin-top:auto; padding:.9rem 1rem; background:var(--paper); border-radius:10px; font-size:.92rem; color:var(--ink); border-left:3px solid var(--gold); }
.svc-outcome strong { display:block; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-700); margin-bottom:.2rem; }
.svc-card .svc-cta { margin-top:1.1rem; }

/* Problem grid */
.problem-list { list-style:none; padding:0; margin:0; display:grid; gap:1rem; }
@media(min-width:760px){ .problem-list{ grid-template-columns:1fr 1fr; gap:1rem 2rem; } }
.problem-list li { display:flex; gap:.8rem; padding:.4rem 0; }
.problem-list li svg { flex:none; width:22px; height:22px; color:var(--gold-700); margin-top:.2rem; }

/* Compounding */
.compound-flow { display:grid; gap:1rem; }
@media(min-width:820px){ .compound-flow{ grid-template-columns: 1fr auto 1fr auto 1fr; align-items:center; } }
.compound-step { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:1.4rem; text-align:center; }
.compound-step .cs-num { font-family:var(--font-serif); color:var(--gold-700); font-size:1.1rem; font-weight:600; }
.compound-step h3 { font-size:1.15rem; margin:.3rem 0 .4rem; }
.compound-arrow { text-align:center; color:var(--teal); font-size:1.6rem; line-height:1; }
@media(max-width:819px){ .compound-arrow{ transform:rotate(90deg); } }

/* ---------- Employee lifecycle visual ---------- */
.lifecycle { --stages: 7; }
.lc-track { display:grid; grid-auto-flow:column; grid-auto-columns: minmax(150px,1fr); gap:.6rem; overflow-x:auto; padding-bottom: .6rem; scroll-snap-type:x mandatory; }
@media(min-width:1000px){ .lc-track{ grid-auto-columns:1fr; overflow:visible; } }
.lc-stage { scroll-snap-align:start; position:relative; background:#fff; border:1px solid var(--border); border-radius:14px; padding:1.1rem .9rem; text-align:center; min-height:100%; }
.lc-stage .lc-num { width:34px;height:34px;border-radius:50%; margin:0 auto .6rem; display:flex;align-items:center;justify-content:center; background:var(--ink); color:#fff; font-weight:700; font-size:.9rem; font-family:var(--font-serif); }
.lc-stage:nth-child(odd) .lc-num { background: var(--teal); }
.lc-stage h3 { font-size:1.05rem; margin:0 0 .25rem; }
.lc-stage p { font-size:.84rem; color:var(--muted); margin:0; }
.lc-stage::after { content:"›"; position:absolute; right:-.55rem; top:50%; transform:translateY(-50%); color:var(--gold); font-size:1.4rem; font-weight:700; z-index:2; }
.lc-track .lc-stage:last-child::after { display:none; }
@media(max-width:999px){ .lc-stage::after{ display:none; } }
.lc-caption { text-align:center; color:var(--muted); font-size:.9rem; margin-top:1rem; }

/* ---------- Why / differentiators ---------- */
.why-grid { display:grid; gap:1.2rem; }
@media(min-width:680px){ .why-grid{ grid-template-columns:1fr 1fr; } }
@media(min-width:980px){ .why-grid{ grid-template-columns:repeat(3,1fr); } }
.why-item { display:flex; gap:.9rem; }
.why-item .why-ico { flex:none; width:42px;height:42px;border-radius:11px; background:var(--teal-50); color:var(--teal-700); display:flex;align-items:center;justify-content:center; }
.why-item .why-ico svg{ width:22px;height:22px; }
.why-item h3 { font-size:1.1rem; margin:.15rem 0 .25rem; }
.why-item p { font-size:.94rem; color:var(--muted); margin:0; }

/* ---------- Methodology ---------- */
.method-steps { display:grid; gap:1.2rem; counter-reset: step; }
@media(min-width:760px){ .method-steps{ grid-template-columns:repeat(4,1fr); } }
.method-step { position:relative; padding-top:1.4rem; }
.method-step .ms-num { font-family:var(--font-serif); font-size:2.4rem; color:var(--gold); line-height:1; font-weight:600; }
.method-step h3 { font-size:1.15rem; margin:.5rem 0 .4rem; }
.method-step p { font-size:.94rem; color:var(--muted); }
.section--ink .method-step p { color:#C3D2D6; }
.method-step::before { content:""; position:absolute; top:0; left:0; width:48px; height:3px; background:var(--gold); }

/* ---------- Case studies & insights ---------- */
.draft-badge { display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-700); background:#FBF5E6; border:1px solid #ECDCB4; padding:.25rem .55rem; border-radius:999px; margin-bottom:.9rem; }
.cs-card h3 { font-size:1.2rem; }
.cs-meta { font-size:.85rem; color:var(--muted); margin-bottom:.6rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.insight-card { display:flex; flex-direction:column; }
.insight-card .tag { font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--teal); margin-bottom:.6rem; }
.insight-card h3 { font-size:1.18rem; margin-bottom:.5rem; }
.insight-card p { font-size:.95rem; color:var(--muted); }
.insight-card .arrow-link { margin-top:auto; }

/* ---------- Definition / callouts ---------- */
.callout { border-left:4px solid var(--teal); background:var(--teal-50); padding:1.2rem 1.4rem; border-radius:0 12px 12px 0; margin:1.5rem 0; }
.callout.gold { border-left-color:var(--gold); background:#FBF6EA; }
.callout p:last-child { margin-bottom:0; }
.note-legal { font-size:.85rem; color:var(--muted); background:var(--paper); border:1px solid var(--border); border-radius:10px; padding:1rem 1.2rem; }
.note-legal .reviewed { font-weight:700; color:var(--ink); }

/* ---------- Stat / standards ---------- */
.standards { display:grid; gap:1rem; }
@media(min-width:680px){ .standards{ grid-template-columns:1fr 1fr; } }
.standard { background:#fff; border:1px solid var(--border); border-radius:12px; padding:1.2rem; }
.standard .sv { font-family:var(--font-serif); font-size:1.8rem; color:var(--teal-700); font-weight:600; }
.standard .sl { font-weight:700; color:var(--ink); }
.standard .sn { font-size:.86rem; color:var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--ink) 0%, var(--teal-700) 100%); color:#fff; border-radius: 20px; padding: clamp(2.2rem,5vw,3.5rem); text-align:center; }
.cta-band h2 { color:#fff; max-width:24ch; margin:0 auto .6rem; }
.cta-band p { color:#CFE0E3; max-width:54ch; margin:0 auto 1.7rem; }

/* ---------- Forms ---------- */
.form-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-sm); }
.form-row { display:grid; gap:1.1rem; }
@media(min-width:640px){ .form-row.cols-2{ grid-template-columns:1fr 1fr; } }
.field { display:flex; flex-direction:column; gap:.35rem; margin-bottom:1.1rem; }
.field label { font-weight:600; font-size:.92rem; color:var(--ink); }
.field .req { color:var(--error); }
.field input, .field select, .field textarea {
  font: inherit; font-size:1rem; color:var(--text); background:#fff;
  border:1.5px solid var(--border-2); border-radius:10px; padding:.75rem .9rem; width:100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height:130px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color:var(--teal); box-shadow: var(--ring); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color:var(--error); }
.field .err-msg { color:var(--error); font-size:.84rem; min-height:1em; }
.checkbox-field { display:flex; gap:.65rem; align-items:flex-start; margin-bottom:1.2rem; }
.checkbox-field input { width:20px; height:20px; margin-top:.15rem; flex:none; accent-color: var(--teal); }
.checkbox-field label { font-weight:400; font-size:.9rem; color:var(--muted); }
.form-status { border-radius:10px; padding:1rem 1.2rem; margin-top:1rem; font-weight:600; }
.form-status[data-state="success"] { background:#E7F4EE; color:var(--success); border:1px solid #B7DEC9; }
.form-status[data-state="error"] { background:#FBEAE9; color:var(--error); border:1px solid #EBC4C1; }
.form-aside { font-size:.95rem; }
.form-aside .contact-line { display:flex; gap:.6rem; align-items:flex-start; margin-bottom:1rem; }
.form-aside .contact-line svg { width:20px;height:20px; color:var(--teal); flex:none; margin-top:.15rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ink); color:#DCE7EA; padding: clamp(2.6rem,6vw,4.2rem) 0 clamp(2.2rem,5vw,3.4rem); }
.page-hero h1 { color:#fff; max-width:20ch; }
.page-hero .lede { color:#BFD2D6; }
.breadcrumb { font-size:.85rem; margin-bottom:1rem; color:#9FB6BB; }
.breadcrumb a { color:#CFE0E3; text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }
.breadcrumb span { margin:0 .4rem; opacity:.6; }

/* ---------- Prose (legal & insight) ---------- */
.prose { max-width: 75ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul li { margin-bottom:.4rem; }
.toc { background:var(--paper); border:1px solid var(--border); border-radius:12px; padding:1.2rem 1.4rem; margin-bottom:2rem; }
.toc h2 { font-size:1rem; font-family:var(--font-sans); margin:0 0 .6rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.toc ul { list-style:none; padding:0; margin:0; columns:2; }
.toc a { text-decoration:none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color:#AFC4C9; padding: clamp(2.5rem,5vw,3.5rem) 0 1.5rem; font-size:.94rem; }
.footer-grid { display:grid; gap:2rem; }
@media(min-width:760px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; } }
@media(min-width:1000px){ .footer-grid{ grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .brand-name { color:#fff; font-family:var(--font-serif); font-size:1.25rem; }
.site-footer .brand-sub { color:var(--gold); font-size:.74rem; letter-spacing:.12em; text-transform:uppercase; }
.site-footer h4 { color:#fff; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:.9rem; }
.site-footer a { color:#BFD2D6; text-decoration:none; }
.site-footer a:hover { color:#fff; text-decoration:underline; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:.55rem; }
.footer-foot { border-top:1px solid rgba(255,255,255,.14); margin-top:2.2rem; padding-top:1.3rem; display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; justify-content:space-between; align-items:center; font-size:.84rem; color:#8FA8AE; }
.footer-foot a { color:#8FA8AE; }
.footer-legal-note { font-size:.82rem; color:#7E979D; margin-top:.8rem; max-width:70ch; }
.footer-addr { font-style:normal; line-height:1.7; }
.footer-emblem { height:46px; width:auto; margin-bottom:1rem; }

/* ---------- 404 ---------- */
.error-wrap { text-align:center; padding: clamp(3rem,9vw,7rem) 0; }
.error-wrap .code { font-family:var(--font-serif); font-size:clamp(4rem,16vw,9rem); color:var(--teal); line-height:1; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left:1rem; right:1rem; bottom:1rem; z-index:200; max-width:560px; margin:0 auto;
  background:var(--ink); color:#E6EEF0; border-radius:14px; box-shadow:var(--shadow); padding:1.1rem 1.3rem;
  display:none; gap:1rem; align-items:center; flex-wrap:wrap; justify-content:space-between;
}
.cookie-banner[data-show="true"] { display:flex; }
.cookie-banner p { margin:0; font-size:.88rem; flex:1 1 260px; }
.cookie-banner a { color:#fff; }
.cookie-actions { display:flex; gap:.5rem; }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.center{text-align:center}.measure{max-width:65ch}
.tag-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.chip{font-size:.82rem;font-weight:600;color:var(--teal-700);background:var(--teal-50);border:1px solid #CBE2E5;padding:.3rem .7rem;border-radius:999px}
.two-col{display:grid;gap:2.5rem}
@media(min-width:880px){.two-col{grid-template-columns:1fr 1fr;align-items:start}}
.two-col--wide-left{grid-template-columns:1fr}
@media(min-width:880px){.two-col--wide-left{grid-template-columns:1.3fr .9fr}}
.list-clean{list-style:none;padding:0;margin:0}
.list-clean li{position:relative;padding:.5rem 0 .5rem 1.7rem;border-bottom:1px solid var(--border)}
.list-clean li:last-child{border-bottom:0}
.list-clean li::before{content:"";position:absolute;left:0;top:1.05rem;width:9px;height:9px;border:2px solid var(--gold);border-radius:50%}
.faq dt{font-weight:700;color:var(--ink);font-size:1.05rem;margin-top:1.4rem}
.faq dd{margin:.4rem 0 0;color:var(--text)}
