/*
 * Visuary "A3" design system — tinted hero on white.
 * A visual layer on top of Bootstrap 5 + styles.css. Tokens are CSS custom
 * properties; component classes are consumed by the .astro partials in
 * src/components/. Do not edit the compiled Bootstrap in styles.css.
 */

:root {
  /* Base ink + surfaces */
  --ink: #14143C;
  --body: #3D3D55;
  --muted: #5B5B73;
  --muted-2: #9A93A6;
  --placeholder: #8A8499;
  --hero-meta: #6B6B85;
  --paper: #FFFFFF;
  --surface: #F2F5FC;
  --surface-strong: #E7ECF7;
  --hairline: rgba(20, 20, 60, 0.08);
  --hairline-strong: rgba(20, 20, 60, 0.13);

  /* Brand + wayfinding (content-type) hues */
  --blue: #1E30F3;        /* brand / Guides */
  --pink: #E21E80;        /* brand / Answers (qa) */
  --pink-light: #FD69B6;  /* gradient end */
  --violet: #7C3AED;      /* Glossary */
  --teal: #0E9F9A;        /* Data */
  --coral: #F2683C;       /* Insights */

  /* Tint backgrounds (subtle hue fills) */
  --tint-blue: rgba(30, 48, 243, 0.06);
  --tint-pink: rgba(226, 30, 128, 0.05);
  --tint-violet: rgba(124, 58, 237, 0.08);
  --tint-teal: rgba(14, 159, 154, 0.08);
  --tint-coral: rgba(242, 104, 60, 0.08);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #1E30F3, #FD69B6);
  --hero-default: linear-gradient(150deg, #EAF0FE 0%, #F4EEFB 55%, #FCEEF5 100%);
  --hero-glossary: linear-gradient(150deg, #F0EBFB 0%, #F4EEFB 50%, #FCEEF5 100%);
  --hero-answers: linear-gradient(150deg, #FCEAF3 0%, #F6EDF8 55%, #EFEFFB 100%);
  --hero-data: linear-gradient(150deg, #E4F4F3 0%, #EEF1FA 55%, #FCEEF5 100%);
  --hero-insights: linear-gradient(150deg, #FCEEE7 0%, #F7EDF3 55%, #EFEFFB 100%);

  /* Typography */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;

  /* Radius */
  --r-card: 16px;
  --r-input: 10px;
  --r-pill: 26px;
  --r-chip: 18px;
  --r-tag: 6px;

  /* Shadow */
  --sh-card: 0 1px 3px rgba(20, 20, 60, 0.08), 0 18px 40px rgba(20, 20, 60, 0.07);
  --sh-card-lg: 0 24px 60px rgba(20, 20, 60, 0.10);
  --sh-search: 0 8px 22px rgba(20, 20, 60, 0.08);
  --sh-search-lg: 0 10px 26px rgba(20, 20, 60, 0.10);
  --sh-menu: 0 18px 44px rgba(20, 20, 60, 0.16);

  /* Layout */
  --pad-content: 56px;
  --pad-home: 130px;
}

/* ------------------------------------------------------------------ *
 * Per-section theming. Add `.a3-theme-{type}` to a hero/page wrapper
 * to set --accent / --accent-tint / --hero-grad for everything inside.
 * ------------------------------------------------------------------ */
.a3 { --accent: var(--blue); --accent-tint: var(--tint-blue); --hero-grad: var(--hero-default); }
.a3-theme-guides   { --accent: var(--blue);   --accent-tint: var(--tint-blue);   --hero-grad: var(--hero-default); }
.a3-theme-insights { --accent: var(--coral);  --accent-tint: var(--tint-coral);  --hero-grad: var(--hero-insights); }
.a3-theme-data     { --accent: var(--teal);   --accent-tint: var(--tint-teal);   --hero-grad: var(--hero-data); }
.a3-theme-answers  { --accent: var(--pink);   --accent-tint: var(--tint-pink);   --hero-grad: var(--hero-answers); }
.a3-theme-glossary { --accent: var(--violet); --accent-tint: var(--tint-violet); --hero-grad: var(--hero-glossary); }

/* ------------------------------------------------------------------ *
 * Typography helpers
 * ------------------------------------------------------------------ */
.a3-serif { font-family: var(--font-serif); }

.a3-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.a3-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
}

.a3-lead {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--body);
}

/* ------------------------------------------------------------------ *
 * Logo wordmark
 * ------------------------------------------------------------------ */
.a3-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* ------------------------------------------------------------------ *
 * Navbar
 * ------------------------------------------------------------------ */
.a3-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.a3-nav .nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.a3-nav .nav-link:hover { color: var(--accent, var(--blue)); }
.a3-nav .nav-link.active { color: var(--accent, var(--blue)); }

.a3-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 22px;
  text-decoration: none;
  border: 0;
  transition: filter 0.15s ease;
}
.a3-pill:hover { filter: brightness(0.93); color: #fff; }

.a3-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  text-decoration: none;
}
.a3-iconbtn:hover { color: var(--blue); background: var(--surface); }

.a3-langmenu {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--sh-menu);
  padding: 6px;
}
.a3-langmenu .dropdown-item {
  font-size: 14px;
  border-radius: 8px;
  padding: 7px 12px;
}
.a3-langmenu .dropdown-item.active {
  background: var(--tint-blue);
  color: var(--blue);
  font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Slim footer
 * ------------------------------------------------------------------ */
.a3-footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 24px var(--pad-content);
}
.a3-footer a { text-decoration: none; }
.a3-footer-links {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.a3-footer-links a { color: var(--muted); }
.a3-footer-links a:hover { color: var(--blue); }
.a3-footer-legal {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-2);
}
@media (max-width: 767.98px) {
  .a3-footer { padding: 22px; text-align: center; }
}

/* ------------------------------------------------------------------ *
 * Tinted hero
 * ------------------------------------------------------------------ */
.a3-hero {
  background: var(--hero-grad, var(--hero-default));
  padding: 42px var(--pad-content);
}
.a3-hero-inner { max-width: 1180px; margin: 0 auto; }
.a3-hero .a3-breadcrumb { color: var(--hero-meta); }
.a3-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 1.4rem + 2.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: pretty;
  margin: 0;
}
.a3-hero .a3-tag { margin-bottom: 14px; }
.a3-hero-meta { color: var(--hero-meta); font-size: 13px; font-weight: 500; margin-top: 12px; }
@media (max-width: 767.98px) {
  .a3-hero { padding: 28px 22px; background: linear-gradient(165deg, #EAF0FE 0%, #F4EEFB 55%, #FCEEF5 100%); }
}

/* Breadcrumb */
.a3-breadcrumb {
  font-size: 13px;
  color: var(--hero-meta);
  margin-bottom: 14px;
}
.a3-breadcrumb a { color: inherit; text-decoration: none; }
.a3-breadcrumb a:hover { color: var(--accent, var(--blue)); }
.a3-breadcrumb .sep { margin: 0 7px; opacity: 0.6; }

/* ------------------------------------------------------------------ *
 * Content-type tag
 * ------------------------------------------------------------------ */
.a3-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: var(--r-tag);
  background: var(--accent, var(--blue));
  color: #fff;
}
.a3-tag--soft {
  background: var(--accent-tint, var(--tint-blue));
  color: var(--accent, var(--blue));
}

/* ------------------------------------------------------------------ *
 * Type-accent bar (top of cards)
 * ------------------------------------------------------------------ */
.a3-accentbar {
  height: 5px;
  background: var(--accent, var(--blue));
  border-radius: var(--r-card) var(--r-card) 0 0;
}

/* ------------------------------------------------------------------ *
 * Answer card — the signature element
 * ------------------------------------------------------------------ */
.a3-answer {
  border-radius: var(--r-card);
  padding: 24px 26px;
  background: var(--accent-tint, var(--tint-blue));
  border-left: 6px solid var(--accent, var(--blue));
}
.a3-answer--qa {
  border: 1px solid var(--pink);
  border-left: 6px solid var(--pink);
  background: var(--tint-pink);
}
.a3-answer-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, var(--blue));
  margin-bottom: 8px;
}
.a3-answer-body {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* ------------------------------------------------------------------ *
 * Decision helper — two side-by-side tinted cards
 * ------------------------------------------------------------------ */
.a3-decision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.a3-decision-card {
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
}
.a3-decision-card--blue { background: var(--tint-blue); border-color: rgba(30, 48, 243, 0.18); }
.a3-decision-card--pink { background: var(--tint-pink); border-color: rgba(226, 30, 128, 0.18); }
.a3-decision-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.a3-decision-card--blue .a3-decision-title { color: var(--blue); }
.a3-decision-card--pink .a3-decision-title { color: var(--pink); }
@media (max-width: 575.98px) { .a3-decision { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ *
 * On-this-page TOC + rail
 * ------------------------------------------------------------------ */
.a3-rail { font-family: var(--font-sans); }
.a3-rail-box {
  border-left: 1px solid var(--hairline);
  padding-left: 18px;
}
.a3-rail-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.a3-toc { list-style: none; padding: 0; margin: 0; }
.a3-toc li { margin-bottom: 9px; }
.a3-toc a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
  display: block;
}
.a3-toc a:hover, .a3-toc a.active { color: var(--accent, var(--blue)); }
@media (min-width: 992px) {
  .a3-rail-sticky { position: sticky; top: 24px; }
}

/* ------------------------------------------------------------------ *
 * Key-term chips (violet)
 * ------------------------------------------------------------------ */
.a3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a3-chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-chip);
  background: var(--tint-violet);
  color: var(--violet);
  text-decoration: none;
  border: 1px solid rgba(124, 58, 237, 0.18);
}
.a3-chip:hover { background: rgba(124, 58, 237, 0.14); color: var(--violet); }

/* ------------------------------------------------------------------ *
 * Cards (guide / insight / data / topic)
 * ------------------------------------------------------------------ */
.a3-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.a3-card:hover { transform: translateY(-2px); box-shadow: var(--sh-card-lg); }
.a3-card-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.a3-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0;
  text-decoration: none;
}
.a3-card-title:hover { color: var(--ink); }
.a3-card-blurb { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.a3-card-foot { margin-top: auto; font-size: 12.5px; color: var(--muted-2); font-weight: 500; }
/* Corner flag (e.g. "Popular") — small, subtle, pinned to a card's top-right */
.a3-card--flagged { position: relative; }
.a3-card-flag {
  position: absolute;
  top: 30px;
  right: 22px;
  z-index: 1;
  font-size: 9.5px;
  padding: 3px 8px;
  letter-spacing: 0.08em;
}
.a3-readlink {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent, var(--blue));
  text-decoration: none;
}
.a3-readlink:hover { color: var(--accent, var(--blue)); text-decoration: underline; }

/* count row for topic cards: ● n guides ● n answers ● n data */
.a3-counts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.a3-counts .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.a3-counts .dot-guides { background: var(--blue); }
.a3-counts .dot-insights { background: var(--coral); }
.a3-counts .dot-answers { background: var(--pink); }
.a3-counts .dot-data { background: var(--teal); }

/* ------------------------------------------------------------------ *
 * Ask / search box
 * ------------------------------------------------------------------ */
.a3-searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--sh-search);
}
.a3-searchbox input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}
.a3-searchbox input::placeholder { color: var(--placeholder); }
.a3-searchbox .a3-search-icon { color: var(--muted-2); flex-shrink: 0; }

/* ------------------------------------------------------------------ *
 * Callouts / pull quotes / tables in reading views
 * ------------------------------------------------------------------ */
.a3-callout {
  background: var(--surface-strong);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
}
.a3-takeaway {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  border-left: 3px solid var(--accent, var(--teal));
  padding-left: 16px;
}

/* Section pills / filter chips */
.a3-filterchip {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--body);
  text-decoration: none;
  cursor: pointer;
}
.a3-filterchip:hover { border-color: var(--ink); color: var(--ink); }
.a3-filterchip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ *
 * Reading column width + two-column article layout
 * ------------------------------------------------------------------ */
.a3-readcol { max-width: 700px; min-width: 0; }
.a3-page { padding: 0 var(--pad-content); }
@media (max-width: 767.98px) { .a3-page { padding: 0 22px; } }

.a3-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.a3-article-grid .a3-rail > * + * { margin-top: 28px; }
@media (max-width: 991.98px) {
  .a3-article-grid { grid-template-columns: 1fr; gap: 36px; max-width: 720px; }
}

/* ------------------------------------------------------------------ *
 * Article body typography (set:html content)
 * ------------------------------------------------------------------ */
.a3-body { color: var(--body); font-size: 16.5px; line-height: 1.7; }
.a3-body h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 12px;
  text-wrap: pretty;
  scroll-margin-top: 24px;
}
.a3-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 26px 0 8px;
}
.a3-body p { margin: 0 0 16px; }
.a3-body a { color: var(--accent, var(--blue)); text-decoration: underline; }
.a3-body ul, .a3-body ol { margin: 0 0 16px; padding-left: 1.3em; }
.a3-body li { margin-bottom: 6px; }
.a3-table-wrap { overflow-x: auto; margin: 8px 0 20px; -webkit-overflow-scrolling: touch; }
.a3-body table { width: 100%; margin: 8px 0 20px; border-collapse: collapse; }
.a3-table-wrap table { margin: 0; }
.a3-body thead th {
  background: var(--surface-strong);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
/* Full grid: every cell bordered (outer frame + gridlines). */
.a3-body th, .a3-body td {
  padding: 10px 12px;
  border: 1px solid var(--hairline-strong);
  text-align: left;
  vertical-align: top;
}
.a3-body tbody th[scope="row"] { color: var(--ink); background: var(--paper); }
.a3-body blockquote {
  background: var(--surface-strong);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--body);
  margin: 0 0 20px;
}

/* ------------------------------------------------------------------ *
 * FAQ accordion (native <details>, +/- in section hue, no JS)
 * ------------------------------------------------------------------ */
.a3-faq-item { border-bottom: 1px solid var(--hairline); }
.a3-faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.a3-faq-item > summary::-webkit-details-marker { display: none; }
.a3-faq-item > summary::after {
  content: "+";
  color: var(--accent, var(--blue));
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.a3-faq-item[open] > summary::after { content: "−"; }
.a3-faq-answer { padding: 0 0 16px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ------------------------------------------------------------------ *
 * Hue-dot related lists (rail)
 * ------------------------------------------------------------------ */
.a3-rellist { list-style: none; padding: 0; margin: 0; }
.a3-rellist li { position: relative; padding-left: 16px; margin-bottom: 10px; line-height: 1.35; }
.a3-rellist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--blue));
}
.a3-rellist a { font-size: 13.5px; color: var(--body); text-decoration: none; }
.a3-rellist a:hover { color: var(--accent, var(--blue)); }

/* "From the guide" link card (answers) */
.a3-linkcard {
  display: block;
  background: var(--tint-blue);
  border: 1px solid rgba(30, 48, 243, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
}
.a3-linkcard .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.a3-linkcard .ttl { font-family: var(--font-serif); font-weight: 600; font-size: 17px; color: var(--blue); margin-top: 4px; }

/* "In short" bullets (answers, pink) */
.a3-inshort { list-style: none; padding: 0; margin: 0; }
.a3-inshort li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--body); }
.a3-inshort li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

/* ------------------------------------------------------------------ *
 * Hub pages
 * ------------------------------------------------------------------ */
.a3-wrap { max-width: 1100px; margin: 0 auto; }
.a3-hub-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin: 12px auto 0; }

/* Filter chip row */
.a3-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Featured "Start here" card */
.a3-featured {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background: var(--tint-blue);
  border: 1px solid rgba(30, 48, 243, 0.18);
  border-radius: var(--r-card);
  padding: 28px 32px;
}
.a3-featured-stat { font-family: var(--font-serif); font-weight: 600; font-size: 48px; color: var(--blue); line-height: 1; text-align: center; }
.a3-featured-statlbl { font-size: 12px; color: var(--muted); max-width: 120px; text-align: center; margin-top: 6px; }
@media (max-width: 575.98px) { .a3-featured { flex-direction: column; align-items: flex-start; } }

/* "More coming soon" surface strip */
.a3-soonstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 18px 24px;
}
.a3-soonstrip .ttl { font-weight: 700; font-size: 14px; color: var(--ink); }
.a3-soonstrip .desc { font-size: 13.5px; color: var(--muted); }

/* Section header with "see all" link */
.a3-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.a3-sechead h2 { font-family: var(--font-serif); font-weight: 600; font-size: 26px; color: var(--ink); margin: 0; }

/* Eyebrow over hub card meta */
.a3-card .a3-eyebrow { margin-bottom: 2px; }

/* hue dot for insight cards */
.a3-huedot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent, var(--blue)); margin-right: 7px; vertical-align: middle; }

/* "Filed under" topic chips at the end of a reading view */
.a3-filed { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.a3-filed .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 10px; }
.a3-topicchips { display: flex; flex-wrap: wrap; gap: 8px; }
.a3-topicchip {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--body);
  text-decoration: none;
}
.a3-topicchip:hover { border-color: var(--ink); color: var(--ink); }

/* Homepage "Explore by topic" — compact pills (desktop) / tappable rows (mobile) */
.a3-topicnav { display: flex; flex-wrap: wrap; gap: 8px; }
.a3-topicnav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px 8px 15px;
  border-radius: 20px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.a3-topicnav-item:hover { border-color: var(--ink); }
.a3-topicnav-ct {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px;
  background: var(--surface-strong);
  color: var(--blue);
  font-size: 12px; font-weight: 700;
}
.a3-topicnav-chev { display: none; }
.a3-topicnav-all { display: none; }  /* desktop: link lives in the section head */

@media (max-width: 575.98px) {
  .a3-topicnav { flex-direction: column; gap: 0; border-top: 1px solid var(--hairline); }
  .a3-topicnav-item {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    padding: 12px 2px;
    font-size: 16px;
  }
  .a3-topicnav-item:hover { border-color: transparent; border-bottom-color: var(--hairline); }
  .a3-topicnav-ct { display: none; }
  .a3-topicnav-chev { display: inline; color: var(--muted-2); font-size: 18px; line-height: 1; }
  .a3-topicnav-allhead { display: none; }                 /* hide section-head link */
  .a3-topicnav-all { display: flex; color: var(--blue); }  /* surface it as the last row */
  .a3-topicnav-all .a3-topicnav-chev { color: var(--blue); }
  .a3-topicnav-item:not(.a3-topicnav-all):nth-child(n+6) { display: none; }  /* cap to 5 rows */
}

/* ------------------------------------------------------------------ *
 * A–Z glossary bar
 * ------------------------------------------------------------------ */
.a3-az {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 12px var(--pad-content);
}
.a3-az a, .a3-az span {
  font-size: 13px;
  font-weight: 700;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
}
.a3-az a { color: var(--violet); }
.a3-az a:hover { background: var(--tint-violet); }
.a3-az .disabled { color: #C9BEE8; }
.a3-glossary-letter {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--violet);
  border-bottom: 2px solid var(--violet);
  padding-bottom: 6px;
  margin: 32px 0 18px;
  scroll-margin-top: 60px;
}
.a3-term-name { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.a3-term-name:hover { color: var(--violet); }
.a3-term-def { color: var(--muted); font-size: 14px; margin: 2px 0 4px; }

/* ------------------------------------------------------------------ *
 * Tool cards (brand-gradient top bar)
 * ------------------------------------------------------------------ */
.a3-gradbar { height: 6px; background: var(--grad-brand); border-radius: var(--r-card) var(--r-card) 0 0; }
.a3-tool-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow: hidden; height: 100%; }
.a3-tool-body { padding: 26px 28px; }
.a3-checklist { list-style: none; padding: 0; margin: 14px 0 20px; }
.a3-checklist li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--body); font-size: 14.5px; }
.a3-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent, var(--blue)); font-weight: 700; }
.a3-btn-pink { background: var(--pink); }
.a3-btn-pink:hover { background: var(--pink); }

/* ------------------------------------------------------------------ *
 * Homepage
 * ------------------------------------------------------------------ */
.a3-home-hero { background: var(--hero-default); padding: 56px var(--pad-content); }
.a3-home-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.a3-home-h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(31px, 2rem + 2.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
  margin: 12px 0 16px;
}
.a3-home-h1 em { font-style: italic; color: var(--blue); }
.a3-home-sub { font-size: 18px; color: var(--muted); max-width: 52ch; margin-bottom: 22px; }
@media (min-width: 1200px) { .a3-home-hero { padding: 64px var(--pad-home); } }
@media (max-width: 991.98px) {
  .a3-home-grid { grid-template-columns: 1fr; gap: 32px; }
  .a3-home-hero { padding: 32px 22px; }
}

/* Situation pills under the ask box */
.a3-sitpills { display: flex; flex-wrap: wrap; gap: 8px; }

/* Data co-hero card */
.a3-datacard {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--sh-card-lg);
  padding: 22px 24px;
}
.a3-bigstat { font-family: var(--font-serif); font-weight: 600; font-size: 44px; color: var(--teal); line-height: 1; }

/* Mini vertical bar chart (CSS placeholder for a Datawrapper embed) */
.a3-bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; margin: 28px 0 10px; }
.a3-bar { flex: 1; background: var(--teal); border-radius: 4px 4px 0 0; position: relative; min-width: 0; }
.a3-bar .val { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink); }
.a3-bar .lbl { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted-2); }
.a3-bars + .a3-barlabels { margin-top: 22px; }

/* Stacked horizontal total-cost comparison */
.a3-stackrow { margin-bottom: 16px; }
.a3-stack { display: flex; height: 30px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.a3-stack .seg { display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }
.a3-stack .seg-premium { background: var(--blue); }
.a3-stack .seg-oop { background: var(--pink-light); }
.a3-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.a3-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

/* Data band (surface panel) */
.a3-band { background: var(--surface); border-radius: var(--r-card); padding: 32px; }
.a3-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 767.98px) { .a3-band-grid { grid-template-columns: 1fr; } }

/* Situation card icon */
.a3-sicon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--tint-blue);
  color: var(--blue);
  margin-bottom: 10px;
}

/* ------------------------------------------------------------------ *
 * Legal pages + contact + 404
 * ------------------------------------------------------------------ */
.a3-important {
  background: var(--tint-pink);
  border: 1px solid var(--pink);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.a3-important .lbl { color: var(--pink); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.a3-important p { margin: 0; color: var(--body); }

/* Contact form */
.a3-form label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.a3-form .a3-input,
.a3-form .a3-select,
.a3-form .a3-textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}
.a3-form .a3-input::placeholder, .a3-form .a3-textarea::placeholder { color: var(--placeholder); }
.a3-form .a3-input:focus, .a3-form .a3-select:focus, .a3-form .a3-textarea:focus { outline: none; border-color: var(--blue); }

/* Sidebar info cards */
.a3-sidecard { border-radius: 12px; padding: 16px 18px; border: 1px solid var(--hairline); }
.a3-sidecard .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 4px; }
.a3-sidecard--violet { background: var(--tint-violet); border-color: rgba(124,58,237,0.18); }
.a3-sidecard--violet .lbl { color: var(--violet); }
.a3-sidecard--blue { background: var(--tint-blue); border-color: rgba(30,48,243,0.18); }
.a3-sidecard--blue .lbl { color: var(--blue); }

/* 404 */
.a3-404 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(72px, 16vw, 150px); line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ------------------------------------------------------------------ *
 * Search / ask results
 * ------------------------------------------------------------------ */
.a3-searchcount { color: var(--hero-meta); font-size: 14px; margin-top: 12px; }
.a3-bestmatch {
  background: var(--tint-pink);
  border: 1px solid var(--pink);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.a3-bestmatch .lbl {
  display: flex; align-items: center; gap: 6px;
  color: var(--pink); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.a3-resgroup { margin-bottom: 8px; }
.a3-resgroup-h {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2); margin: 22px 0 4px;
}
.a3-result { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.a3-result .crumb { font-size: 12px; color: var(--muted-2); margin: 5px 0 3px; }
.a3-result-title { font-family: var(--font-serif); font-weight: 600; font-size: 19px; color: var(--ink); text-decoration: none; display: inline-block; }
.a3-result-title:hover { color: var(--accent, var(--blue)); }
.a3-result .excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.a3-result .excerpt mark, .a3-bestmatch .excerpt mark { background: rgba(226, 30, 128, 0.16); color: inherit; padding: 0 2px; border-radius: 3px; }
.a3-emptyresults { color: var(--muted); padding: 20px 0; }
.a3-filtercount { color: var(--muted-2); font-weight: 500; }
