/* ============================================================
   iCare Solutions — The Phone Knowledge Base
   Editorial / library design system.
   Palette: cool surface #eef2f5, white cards, ink-navy #14213d,
   emerald #0f9d6b, muted slate #52606d, hairline #dde4ea.
   Type: Spectral (serif display, large) + Hanken Grotesk (body).
   Depth from hairlines and whitespace — no blobs, no heavy shadows.
   ============================================================ */

:root {
  --navy:        #14213d;
  --navy-soft:   #27324f;
  --emerald:     #0f9d6b;
  --emerald-dk:  #0b7d54;
  --emerald-tint:#e7f4ee;
  --surface:     #eef2f5;
  --surface-2:   #e7edf1;
  --card:        #ffffff;
  --slate:       #52606d;
  --muted:       #7d8a97;
  --line:        #dde4ea;
  --line-strong: #c7d2dc;

  --sev-critical:#c0392b;
  --sev-high:    #c77c2a;
  --sev-medium:  #0f9d6b;
  --sev-low:     #9aa6b2;
  --coral:       #c0392b;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r:   8px;
  --r-sm:5px;
  --maxw: 1140px;
  --maxw-narrow: 760px;

  --shadow-soft: 0 1px 2px rgba(20,33,61,.04);
}

/* ---------- 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; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--slate);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
svg { display: inline-block; vertical-align: middle; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.12; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p  { margin: 0 0 1rem; }

a { color: var(--emerald-dk); text-decoration: none; }
a:hover { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }

strong { color: var(--navy); font-weight: 700; }
hr { border: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }

.ic    { width: 22px; height: 22px; }
.ic-sm { width: 16px; height: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--slate); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; text-decoration: none; }

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

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--navy);
  color: #cfd7e4;
  font-size: .82rem;
  letter-spacing: .01em;
}
.top-bar p { margin: 0; padding: .5rem 0; text-align: center; }
.tb-dot { color: var(--emerald); margin: 0 .35rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(20,33,61,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--navy); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
  flex: none;
}
.brand-mark .brand-ic { color: var(--emerald); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.brand-sub  { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 44px; height: 40px; cursor: pointer; padding: 0 10px; }
.nav-toggle-bar { display: block; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--navy); font-weight: 500; font-size: .98rem; padding: .35rem 0;
  position: relative;
}
.primary-nav a:hover { color: var(--emerald-dk); text-decoration: none; }
.primary-nav a.is-active { color: var(--emerald-dk); }
.primary-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--emerald);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line-strong); color: var(--navy);
  padding: .5rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.nav-cta:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .8rem 1.3rem; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--card); color: var(--navy); }
.btn-light { background: var(--navy); color: #fff; }
.btn-light:hover { background: var(--navy-soft); color: #fff; }
.btn-sm { padding: .5rem .85rem; font-size: .88rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--slate); margin-bottom: 0; }
.section-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-flex .section-head { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-dk);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--emerald); display: inline-block; }
.section-head.center .eyebrow { justify-content: center; }

.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.link-more:hover { color: var(--emerald-dk); }
.link-more svg { color: var(--emerald); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   HOME — editorial hero + numbered knowledge-base index
   ============================================================ */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.4rem, 4vw, 3.4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero-copy { max-width: 36ch; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--emerald-dk); font-style: italic; font-weight: 700; }
.hero-sub { font-size: 1.2rem; color: var(--slate); margin-bottom: 1.8rem; }
.hero-entrance { opacity: 0; transform: translateY(14px); animation: heroIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-entrance { animation: none; opacity: 1; transform: none; } }

.search-console {
  display: flex; align-items: center; gap: .5rem; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: .45rem .5rem .45rem .9rem;
  max-width: 520px;
}
.search-console:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); }
.search-console .sc-icon { color: var(--muted); display: inline-flex; }
.search-console input { flex: 1; border: 0; outline: none; background: transparent; font-family: var(--sans); font-size: 1rem; color: var(--navy); padding: .45rem .2rem; min-width: 0; }
.search-console input::placeholder { color: var(--muted); }

.hero-meta { display: flex; gap: 2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stat .n { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1; }
.hero-stat .l { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

/* numbered index (contents list) */
.kb-index { border-top: 1px solid var(--line-strong); }
.kb-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem 1.3rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.kb-num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--emerald); line-height: 1; font-feature-settings: "lnum"; }
.kb-body h3 { margin-bottom: .3rem; font-size: 1.4rem; }
.kb-body h3 a { color: var(--navy); }
.kb-body h3 a:hover { color: var(--emerald-dk); text-decoration: none; }
.kb-body p { color: var(--slate); margin-bottom: .6rem; }
.kb-tags { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .9rem; }
.kb-tags a { color: var(--slate); border-bottom: 1px solid transparent; }
.kb-tags a:hover { color: var(--emerald-dk); border-color: var(--emerald); text-decoration: none; }

/* ---------- Problem / topic cards ---------- */
.p-card {
  display: flex; flex-direction: column; gap: .7rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem;
  color: var(--navy); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.p-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-soft); text-decoration: none; }
.p-top { display: flex; align-items: center; justify-content: space-between; }
.p-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--emerald-tint); color: var(--emerald-dk); flex: none; }
.p-arrow { color: var(--muted); transition: transform .18s ease, color .18s ease; }
.p-card:hover .p-arrow { color: var(--emerald); transform: translateX(3px); }
.p-card h3 { font-size: 1.08rem; margin: 0; }
.p-tag { display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.mono-code { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sev-low); display: inline-block; flex: none; }
.sev-critical .status-dot, .dot-critical { background: var(--sev-critical); }
.sev-high .status-dot,     .dot-high     { background: var(--sev-high); }
.sev-medium .status-dot,   .dot-medium   { background: var(--sev-medium); }
.sev-low .status-dot,      .dot-low      { background: var(--sev-low); }

/* ---------- Category cards ---------- */
.c-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem;
  color: var(--slate); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.c-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-soft); text-decoration: none; }
.c-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--surface); color: var(--navy); margin-bottom: 1rem; }
.c-card h3 { margin-bottom: .4rem; }
.c-card p { margin: 0; font-size: .96rem; }
.c-foot { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; color: var(--emerald-dk); }
.c-foot svg { transition: transform .18s ease; }
.c-card:hover .c-foot svg { transform: translateX(3px); }

/* ---------- Feature / article cards ---------- */
.f-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.f-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.f-thumb { display: grid; place-items: center; height: 150px; color: #fff; }
.f-thumb svg { width: 42px; height: 42px; opacity: .95; }
.thumb-1 { background: linear-gradient(135deg, #14213d, #223156); }
.thumb-2 { background: linear-gradient(135deg, #0f9d6b, #0b7d54); }
.thumb-3 { background: linear-gradient(135deg, #1f3a5f, #0f9d6b); }
.thumb-4 { background: linear-gradient(135deg, #2b3a57, #14213d); }
.thumb-5 { background: linear-gradient(135deg, #0b7d54, #14213d); }
.thumb-6 { background: linear-gradient(135deg, #324b70, #0f9d6b); }
.f-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.f-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-dk); background: var(--emerald-tint); padding: .25rem .55rem; border-radius: 999px; }
.f-date { font-size: .82rem; color: var(--muted); }
.f-body h3 { margin: 0; font-size: 1.2rem; }
.f-body h3 a { color: var(--navy); }
.f-body h3 a:hover { color: var(--emerald-dk); text-decoration: none; }
.f-body p { margin: 0; font-size: .95rem; color: var(--slate); }
.f-read { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--emerald-dk); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(2rem, 4vw, 2.8rem); }
.page-hero h1 { margin-bottom: .6rem; }
.page-hero p { color: var(--slate); font-size: 1.12rem; max-width: 62ch; margin: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { margin-bottom: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--line-strong); }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--emerald-dk); }
.crumbs li[aria-current] { color: var(--navy); }

/* ---------- Layout (guide + sidebar) ---------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.layout--narrow { max-width: var(--maxw-narrow); margin-inline: auto; }

.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 4vw, 2.6rem); }

.guide-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding-bottom: 1.3rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--slate); }
.gm { display: inline-flex; align-items: center; gap: .45rem; }
.gm svg { color: var(--emerald-dk); }

/* ---------- Prose (guide + legal bodies) ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose a { border-bottom: 1px solid var(--emerald); }
.prose a:hover { text-decoration: none; }

.toc { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--emerald); border-radius: var(--r-sm); padding: 1.2rem 1.4rem; margin-bottom: 1.8rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .7rem; font-family: var(--sans); font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.1rem; columns: 2; gap: 1rem; font-size: .96rem; }
.toc a { color: var(--slate); border: 0; }
.toc a:hover { color: var(--emerald-dk); }

.info-box { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.2rem 1.4rem; margin: 1.4rem 0; background: var(--surface); }
.info-box h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin-bottom: .7rem; }
.info-box h3 svg { color: var(--emerald-dk); }
.info-box ul { margin: 0; padding-left: 1.2rem; }
.box-symptom { border-left: 3px solid var(--sev-high); }
.box-cause { border-left: 3px solid var(--navy); }

/* numbered steps — a real editorial device */
.steps { list-style: none; counter-reset: step; margin: 1.4rem 0; padding: 0; }
.steps > li { position: relative; padding: 0 0 1.4rem 3.4rem; counter-increment: step; }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--emerald);
  width: 2.4rem; text-align: left;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1rem; top: 2rem; bottom: .4rem; width: 1px; background: var(--line); }
.steps > li h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.steps > li p { margin: 0; }

.callout { display: flex; gap: .9rem; background: var(--emerald-tint); border: 1px solid #cfe8dc; border-radius: var(--r-sm); padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.callout svg { color: var(--emerald-dk); flex: none; margin-top: .15rem; }
.callout p { margin: 0; color: #15523c; }

.check-list { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .6rem; }
.check-list svg { color: var(--emerald); flex: none; margin-top: .25rem; }

.divider { height: 1px; background: var(--line); margin: 2rem 0 1.2rem; }
.form-note { font-size: .88rem; color: var(--muted); }

.related-guides { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0 0; }
.rel-card { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem; color: var(--navy); background: var(--card); font-weight: 600; }
.rel-card:hover { border-color: var(--emerald); color: var(--emerald-dk); text-decoration: none; }
.rel-card .p-icon { width: 34px; height: 34px; }

/* ---------- FAQ accordion ---------- */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--emerald-dk); }
.faq-plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--emerald); border-radius: 2px; }
.faq-plus::before { left: 0; right: 0; top: 7px; height: 2px; }
.faq-plus::after  { top: 0; bottom: 0; left: 7px; width: 2px; transition: transform .2s ease; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 1.2rem 1.1rem; }
.faq-answer p { margin: 0; color: var(--slate); }

/* ---------- Sidebar ---------- */
.side { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 92px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
.side-title { display: flex; align-items: center; gap: .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--sans); font-weight: 700; margin: 0 0 .9rem; }
.side-title svg { color: var(--emerald-dk); }
.side-form { display: flex; gap: .4rem; }
.side-form input { flex: 1; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: .55rem .7rem; font-family: var(--sans); font-size: .95rem; min-width: 0; }
.side-form input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); }
.side-form button { border: 0; background: var(--navy); color: #fff; border-radius: var(--r-sm); width: 42px; display: grid; place-items: center; cursor: pointer; }
.side-form button:hover { background: var(--emerald-dk); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; color: var(--navy); font-weight: 500; }
.side-list a:hover { color: var(--emerald-dk); text-decoration: none; }
.side-dash { width: 14px; height: 2px; background: var(--emerald); display: inline-block; flex: none; }
.side-tip { background: var(--navy); color: #cdd6e3; }
.side-tip .side-title { color: #8fa0b6; }
.side-tip .side-title svg { color: var(--emerald); }
.side-tip p { margin: 0 0 .6rem; font-size: .95rem; }
.side-tip strong { color: #fff; }
.side-steps { font-size: .95rem; color: #e3e9f1; }

/* ---------- Forms (contact) ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 4vw, 2.2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; color: var(--navy); margin-bottom: .4rem; font-size: .95rem; }
.req { color: var(--sev-critical); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--navy);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: .7rem .85rem; background: var(--card); width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); }
.hint { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.alert { display: flex; gap: .7rem; align-items: flex-start; border-radius: var(--r-sm); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.alert svg { flex: none; margin-top: .15rem; }
.alert-success { background: var(--emerald-tint); border: 1px solid #cfe8dc; color: #15523c; }
.alert-success svg { color: var(--emerald-dk); }
.alert-error { background: #fbecea; border: 1px solid #f0cfc9; color: #8c2c20; }
.alert-error svg { color: var(--sev-critical); }
.contact-info { display: flex; flex-direction: column; gap: .4rem; }
.ci-tile { display: flex; align-items: center; gap: .8rem; }
.ci-tile h3 { margin: 0; font-size: .95rem; font-family: var(--sans); }
.ci-tile p { margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #d6ddeb; border-radius: var(--r); padding: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 54ch; margin-inline: auto; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.pill-note { display: inline-flex; align-items: center; gap: .5rem; background: var(--emerald-tint); color: var(--emerald-dk); border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; font-weight: 600; }
.cta-band .pill-note { background: rgba(15,157,107,.18); color: #7ad7b1; }

/* ---------- Stat tiles ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.2rem; text-align: center; }
.stat-tile .n { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-tile .l { font-size: .88rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Feature row (topics) ---------- */
.feature-row { display: flex; gap: 1rem; align-items: flex-start; }
.feature-row .p-icon { flex: none; }
.feature-row h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.feature-row p { margin: 0; font-size: .95rem; }

/* ---------- Pillar block (topics page) ---------- */
.pillar { border-top: 2px solid var(--navy); padding-top: 1.4rem; margin-bottom: 2.6rem; }
.pillar-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.pillar-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--emerald); }
.pillar-head h2 { margin: 0; }
.pillar-head p { margin: .2rem 0 0; color: var(--slate); }
.topic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topic-list li { border-bottom: 1px solid var(--line); }
.topic-list a { display: flex; align-items: center; gap: .9rem; padding: .95rem .3rem; color: var(--navy); }
.topic-list a:hover { color: var(--emerald-dk); text-decoration: none; background: var(--card); }
.topic-list .p-icon { width: 34px; height: 34px; }
.topic-list .t-arrow { margin-left: auto; color: var(--muted); }
.topic-list a:hover .t-arrow { color: var(--emerald); }

/* ---------- Sitemap ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.sitemap-col h3 { font-size: 1.05rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; }
.sitemap-col li { margin-bottom: .5rem; }
.sitemap-col a { color: var(--slate); }
.sitemap-col a:hover { color: var(--emerald-dk); }

/* ---------- FAQ page group heads ---------- */
.cat-group { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1rem; }
.cat-group h3 { margin: 0; font-size: 1.15rem; white-space: nowrap; }
.cat-group .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fabbd; padding: clamp(3rem, 5vw, 4rem) 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand--footer { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-blurb { margin-top: 1rem; font-size: .95rem; max-width: 36ch; line-height: 1.7; }
.footer-head { color: #fff; font-size: .95rem; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #9fabbd; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-independent { padding: 1.8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-independent h3 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.footer-independent p { margin: 0; font-size: .9rem; line-height: 1.7; max-width: 90ch; }
.footer-disclaimer { padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-disclaimer p { margin: 0; font-size: .82rem; color: #8592a6; line-height: 1.65; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 1.1rem; }
.footer-bottom-links a { color: #9fabbd; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- Cookie bar + to-top ---------- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  max-width: 560px; margin-inline: auto; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 1rem 1.2rem;
  box-shadow: 0 10px 40px rgba(20,33,61,.18);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
}
.cookie-bar p { margin: 0; font-size: .9rem; color: var(--slate); flex: 1; min-width: 220px; }
.cookie-actions { display: flex; gap: .6rem; }
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--navy); cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px) rotate(-90deg); transition: opacity .2s, visibility .2s, transform .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) rotate(-90deg); }
.to-top:hover { border-color: var(--navy); background: var(--surface); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--card);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 0 1rem; display: none; box-shadow: 0 16px 30px rgba(20,33,61,.08);
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav a { padding: .9rem clamp(1.1rem, 4vw, 2.2rem); }
  .primary-nav a.is-active::after { display: none; }
  .nav-cta { margin: .8rem clamp(1.1rem, 4vw, 2.2rem) 0; justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .related-guides { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sitemap-grid, .stat-tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .toc ol { columns: 1; }
  .hero-meta { flex-wrap: wrap; gap: 1.2rem; }
  .section-flex { flex-direction: column; align-items: flex-start; }
  .kb-item { grid-template-columns: auto 1fr; }
}
