/* ==========================================================================
   GaMEP Supply Chain & AI Technology Navigator — Design System
   Industrial consulting + decision intelligence. Calm, credible, analytical.
   ========================================================================== */

/* -- Tokens ---------------------------------------------------------------- */
:root {
  /* Canvas & ink */
  --ink: #17212b;
  --ink-soft: #3f4a54;
  --muted: #66717d;
  --muted-soft: #8b95a0;
  --paper: #f6f5f2;
  --panel: #ffffff;
  --line: #dfe3e6;
  --line-soft: #ececea;

  /* Structural accents */
  --navy: #1f364d;
  --navy-deep: #172736;
  --navy-soft: #e9eef2;
  --navy-tint: #eef2f5;
  --gold: #b3a369;
  --gold-deep: #92834f;
  --gold-soft: #efebdc;

  /* Semantic status (used sparingly) */
  --green: #2f6b57;
  --green-soft: #e5f0ec;
  --amber: #916a24;
  --amber-soft: #f4eddc;
  --red: #8c3f3f;
  --red-soft: #f5e7e7;
  --slate: #556270;
  --slate-soft: #eceef1;
  --purple: #55367e;
  --purple-soft: #efeafb;

  /* Recommendation-type accent rail colors */
  --rt-core: #1f364d;
  --rt-sme: #2f6b57;
  --rt-aug: #916a24;
  --rt-adv: #6a4c93;
  --rt-partial: #8b95a0;

  /* Geometry */
  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-sm: 7px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(23, 33, 43, 0.05);
  --shadow-md: 0 12px 30px rgba(23, 33, 43, 0.09);
  --content-max: 1260px;
  --sidebar-w: 256px;
}

/* -- Reset & base ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
::selection { background: var(--gold-soft); }

/* Keyboard-visible focus states */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -- Shell / layout ---------------------------------------------------------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) 1fr; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--navy-deep); color: #fff;
  padding: 26px 16px; display: flex; flex-direction: column;
}
.brand { padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--gold);
  display: grid; place-items: center; color: var(--navy-deep); font-weight: 800;
  margin-bottom: 14px; font-size: 15px;
}
.brand h1 { font-size: 14px; line-height: 1.35; letter-spacing: .01em; font-weight: 700; }
.brand p { margin: 8px 0 0; color: rgba(255,255,255,.58); font-size: 11.5px; line-height: 1.55; }

.vertical-flag {
  margin: 16px 10px 0; padding: 10px 11px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-size: 10.5px; line-height: 1.5; color: rgba(255,255,255,.68);
}
.vertical-flag strong { display: block; color: #fff; font-size: 11px; margin-bottom: 2px; }

.nav { padding-top: 20px; display: grid; gap: 3px; }
.nav a {
  text-decoration: none; color: rgba(255,255,255,.68); padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600;
  display: flex; gap: 10px; align-items: center; letter-spacing: .01em;
  transition: background .12s ease, color .12s ease;
}
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.nav-index { color: var(--gold); font-size: 10.5px; min-width: 18px; font-weight: 700; }
.nav-section-label {
  margin: 10px 12px 2px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.42); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.nav-section-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.sidebar-foot {
  margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5); font-size: 10.5px; line-height: 1.55;
}

.main { min-width: 0; }
.topbar {
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; border-bottom: 1px solid var(--line);
  background: rgba(246,245,242,.92); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 5;
}
.topbar-title { font-weight: 700; font-size: 12.5px; letter-spacing: .01em; color: var(--ink-soft); }
.sync { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.sync-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

.content { max-width: var(--content-max); margin: 0 auto; padding: 48px 40px 90px; }

/* -- Typography hierarchy ----------------------------------------------------- */
.eyebrow {
  color: var(--gold-deep); text-transform: uppercase; letter-spacing: .12em;
  font-size: 10.5px; font-weight: 800; margin-bottom: 10px;
}
.eyebrow.on-dark { color: #d7ca9b; }

.display-h1 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 500;
  font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em;
  color: var(--ink); max-width: 760px;
}
.page-title {
  font-family: Georgia, "Times New Roman", serif; font-weight: 500;
  font-size: 34px; letter-spacing: -.02em; color: var(--ink);
}
.section-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.label {
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--gold-deep);
  text-transform: uppercase; margin: 16px 0 6px;
}
.label:first-child { margin-top: 0; }
.lede { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 640px; }
.small-muted { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.page-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; flex-wrap: wrap; }
.page-head .page-title { margin: 6px 0 0; }
.page-head p { color: var(--muted); max-width: 660px; line-height: 1.6; margin: 10px 0 0; font-size: 13.5px; }

/* -- Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: var(--radius-md);
  padding: 10px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; transition: all .13s ease; line-height: 1;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary { background: var(--panel); color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--navy); padding: 10px 4px; }
.btn-ghost:hover { text-decoration: underline; }
.btn-sm { padding: 7px 12px; font-size: 11.5px; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  text-decoration: none; font-size: 12.5px; font-weight: 700; margin-bottom: 18px;
}
.back-link:hover { color: var(--navy); }

/* -- Search & filters ----------------------------------------------------------- */
.search-shell { position: relative; margin-bottom: 18px; }
.searchbar {
  width: 100%; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--panel); outline: none; font-size: 15px; transition: border-color .12s ease, box-shadow .12s ease;
}
.searchbar:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.searchbar::placeholder { color: var(--muted-soft); }
.searchbar-lg { padding: 20px 22px; font-size: 17px; border-width: 2px; box-shadow: var(--shadow-sm); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center; }
.filters .filters-label { font-size: 11px; color: var(--muted); font-weight: 700; margin-right: 2px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); padding: 8px 13px;
  border-radius: var(--radius-pill); font-size: 11.5px; color: var(--ink-soft);
  cursor: pointer; font-weight: 600; transition: all .12s ease; white-space: nowrap;
  text-decoration: none; display: inline-flex;
}
.chip:hover { border-color: var(--gold); }
.chip.active { color: #fff; background: var(--navy); border-color: var(--navy); }

.results-line { font-size: 12px; color: var(--muted); margin: -10px 0 18px; }

/* -- Status / evidence chips (pill — reserved for genuinely categorical state) - */
.status {
  font-size: 10px; padding: 5px 9px; border-radius: var(--radius-pill); font-weight: 800;
  letter-spacing: .02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.status.strong { color: var(--green); background: var(--green-soft); }
.status.moderate { color: var(--amber); background: var(--amber-soft); }
.status.review { color: var(--red); background: var(--red-soft); }
.status.neutral { color: var(--slate); background: var(--slate-soft); }
.status.on-dark { background: rgba(255,255,255,.14); color: #fff; }

/* -- Structural tags (rounded-rect — recommendation type / tool role) --------- */
.rtag {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px 5px 10px;
  border-radius: var(--radius-sm); border-left: 3px solid var(--rt-partial);
  background: var(--paper); color: var(--ink-soft);
}
.rtag[data-type="BEST CORE SOLUTION"] { border-left-color: var(--rt-core); color: var(--rt-core); background: var(--navy-soft); }
.rtag[data-type="BEST SME PRACTICAL OPTION"] { border-left-color: var(--rt-sme); color: var(--rt-sme); background: var(--green-soft); }
.rtag[data-type="BEST AUGMENTATION"] { border-left-color: var(--rt-aug); color: var(--rt-aug); background: var(--amber-soft); }
.rtag[data-type="ADVANCED OPTION"] { border-left-color: var(--rt-adv); color: var(--rt-adv); background: var(--purple-soft); }
.rtag[data-type="PARTIAL / WORKAROUND"] { border-left-color: var(--rt-partial); color: var(--muted); }

.role-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 5px;
}
.role-tag::before { content: '\25CF'; font-size: 6px; color: var(--muted-soft); }

/* -- Plain-text metadata (replaces pills for non-categorical info) ----------- */
.meta-muted { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.meta-positive { font-size: 11.5px; color: var(--green); font-weight: 700; }
.meta-link { font-size: 11.5px; color: var(--navy); font-weight: 750; text-decoration: none; }
.meta-link:hover { text-decoration: underline; }
.meta-on-dark { font-size: 11.5px; color: rgba(255,255,255,.72); font-weight: 650; }

/* -- Cards --------------------------------------------------------------------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfc7ab; }
.card-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }

.hero-panel {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 30px 32px;
}
.hero-panel p { color: rgba(255,255,255,.74); }
.hero-panel .label { color: #d7ca9b; }

.inset-panel {
  background: var(--gold-soft); border: 1px solid #e0d7b3; border-radius: var(--radius-lg); padding: 22px 24px;
}
.inset-panel.calm { background: var(--navy-tint); border-color: var(--navy-soft); }

.empty {
  padding: 34px; background: var(--panel); border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  text-align: center; color: var(--muted); font-size: 13.5px;
}

.divider { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

/* -- Grids ----------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stack { display: grid; gap: 12px; }

/* ==========================================================================
   START HERE — search-first entry, not a report cover
   ========================================================================== */
.hero-simple { max-width: 720px; margin-bottom: 8px; }

.entry-search { margin: 28px 0 16px; padding: 26px; background: var(--navy-tint); border: 1px solid var(--navy-soft); border-radius: var(--radius-lg); }
.entry-search .label { color: var(--gold-deep); }
.entry-search-title { font-size: 17px; font-weight: 750; margin-bottom: 14px; color: var(--ink); }

.focus-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 40px; }

.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 8px 0 44px; }
.journey-step {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  padding: 20px 20px 20px 22px; font-size: 12.5px; text-decoration: none; color: inherit;
  display: block; transition: background .14s ease, border-color .14s ease, transform .14s ease, box-shadow .14s ease;
  cursor: pointer;
}
.journey-step:hover { background: var(--navy-tint); border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); z-index: 1; }
.journey-step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.journey-step:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.journey-step:not(:first-child) { border-left: none; }
.journey-step:hover:not(:first-child) { border-left: 1px solid var(--gold); }
.journey-num {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 10px; margin-bottom: 10px;
}
.journey-step h4 { font-size: 14px; margin-bottom: 5px; }
.journey-step p { color: var(--muted); line-height: 1.5; font-size: 12px; }
.journey-arrow {
  position: absolute; right: -13px; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--gold-deep); font-size: 13px; font-weight: 800;
}

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 8px 0 10px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.metric strong { display: block; font-size: 24px; line-height: 1; margin-bottom: 6px; letter-spacing: -.03em; }
.metric span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.metrics-caption { text-align: center; color: var(--muted-soft); font-size: 11px; margin-bottom: 40px; }

.path-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 6px; }
.path-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; text-decoration: none; min-height: 172px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c8c0a5; }
.path-card .num { font-size: 11px; color: var(--gold-deep); font-weight: 800; margin-bottom: 24px; }
.path-card h3 { margin: 0 0 8px; font-size: 17px; }
.path-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 12.5px; }
.path-card .cta { margin-top: auto; padding-top: 18px; font-size: 11.5px; font-weight: 800; color: var(--navy); }

/* ==========================================================================
   CLIENT PROBLEMS — diagnosis list, typography does the work
   ========================================================================== */
.problem-list { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.diagnosis-row {
  background: var(--panel); padding: 20px 22px; cursor: pointer; position: relative;
  border-left: 3px solid var(--muted-soft); transition: background .12s ease, border-color .12s ease;
}
.diagnosis-row.is-mapped { border-left-color: var(--navy); }
.diagnosis-row:hover { background: var(--paper); }
.diagnosis-quote {
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500;
  font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 760px;
}
.diagnosis-impact {
  margin-top: 10px; font-size: 12.5px; color: var(--amber); line-height: 1.5;
}
.impact-label {
  font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--amber); margin-right: 8px; border-right: 1px solid var(--amber-soft); padding-right: 8px;
}
.diagnosis-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.diagnosis-focus { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-soft); font-weight: 700; }
.diagnosis-link { font-size: 13px; font-weight: 750; color: var(--navy); text-decoration: none; }
.diagnosis-link:hover { text-decoration: underline; color: var(--gold-deep); }
.diagnosis-unmapped { font-size: 12.5px; color: var(--muted-soft); font-style: italic; }

.badge {
  display: inline-flex; align-items: center; border-radius: var(--radius-sm); padding: 6px 9px;
  background: var(--navy-soft); color: var(--navy); font-weight: 750; font-size: 10px;
}
.badge.muted { background: var(--slate-soft); color: var(--muted); font-weight: 700; }

.detail-view { max-width: 880px; }
.detail-header { margin-bottom: 26px; }
.detail-quote {
  font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.4;
  color: var(--ink); font-style: italic; max-width: 760px; margin-top: 8px;
}
.detail-tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.detail-section { padding: 20px 0; border-top: 1px solid var(--line); }
.detail-section:first-of-type { border-top: none; }
.detail-section .label { margin-top: 0; }
.detail-section-body { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a.chip-link, .tag-list span.chip-link {
  border: 1px solid var(--line); background: var(--panel); padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 650; text-decoration: none; color: var(--ink-soft);
}
a.chip-link:hover { border-color: var(--gold); }
.not-mapped { color: var(--muted); font-style: italic; font-size: 13.5px; }

/* External link affordance — used consistently for Tool Official URL,
   Case Study Source URL, and Evidence Source URL so outbound links are
   always recognizable, never constructed from record names. */
.ext-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--navy); text-decoration: none; }
.ext-link:hover { text-decoration: underline; }
.ext-glyph { font-size: 11px; color: var(--gold-deep); }

/* Consultant Talking Point — parsed sub-sections (Consultant Questions,
   Decision Signals, Validate Before Recommending) rendered as real cards
   rather than one raw text blob, when the source headings are present. */
.talking-point-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.talking-point-card { background: var(--navy-tint); border: 1px solid var(--navy-soft); border-radius: var(--radius-md); padding: 14px 16px; }
.talking-point-card h5 { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.talking-point-card p { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); white-space: pre-line; }

/* ==========================================================================
   DECISION PLAYBOOKS — architecture cards that lead with the answer
   ========================================================================== */
.playbook-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 22px;
  min-height: 254px; cursor: pointer; transition: .15s ease; display: flex; flex-direction: column;
}
.playbook-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #c8c0a5; }
.playbook-card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.3; }
.playbook-signal { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.playbook-primary {
  margin-top: 16px; padding: 12px 14px; background: var(--gold-soft); border-radius: var(--radius-md);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.primary-label { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--gold-deep); }
.primary-arrow { color: var(--gold-deep); font-weight: 800; }
.primary-tool { font-size: 16px; font-weight: 750; color: var(--ink); }
.playbook-secondary-tiers { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.playbook-card .cta { margin-top: auto; padding-top: 16px; font-size: 11.5px; font-weight: 800; color: var(--navy); }

.playbook-hero { background: var(--navy); color: #fff; border-radius: 16px; padding: 30px 32px; margin-bottom: 22px; }
.playbook-hero h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; margin: 6px 0 12px; }
.playbook-hero p { color: rgba(255,255,255,.76); max-width: 780px; line-height: 1.65; }
.playbook-hero-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

.rec-tier { margin-bottom: 26px; }
.rec-tier-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.rec-tier-head h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 800; }
.rec-tier-count { font-size: 11px; color: var(--muted-soft); }

.rec-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.rec-card.lead { border-top: 4px solid var(--gold); }
.rec-card h3 { font-size: 20px; margin: 10px 0 4px; }
.rec-card .role-tag { margin-bottom: 12px; display: block; }
.rec-card-body { display: grid; gap: 12px; margin-top: 12px; }
.rec-field h5 { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-deep); font-weight: 800; margin-bottom: 4px; }
.rec-field p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.rec-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; gap: 8px; }

.other-options { margin-top: 8px; }
.other-option-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel);
}
.other-option-row + .other-option-row { margin-top: 8px; }
.other-option-row .name { font-weight: 700; font-size: 13.5px; }
.other-option-row .why { color: var(--muted); font-size: 12px; margin-top: 2px; max-width: 560px; }

/* ==========================================================================
   COMPARE TOOLS — decision matrix: spotlight first, table second
   ========================================================================== */
.compare-scope-bar {
  display: flex; align-items: end; gap: 18px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 18px; border-bottom: 2px solid var(--line);
}
.scope-field { display: flex; flex-direction: column; gap: 5px; }
.scope-field label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
.scope-field select, .scope-field input {
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12.5px; min-width: 200px;
}
.scope-field-jump input { min-width: 220px; }
.scope-browse-link { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--navy); text-decoration: none; align-self: center; }
.scope-browse-link:hover { text-decoration: underline; }

.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.spotlight-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  position: relative;
}
.spotlight-card.is-primary { border: 2px solid var(--navy); box-shadow: var(--shadow-md); }
.spotlight-card.is-alt { border: 1.5px dashed var(--line); }
.spotlight-card.is-empty { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--paper); border-style: dashed; }
.spotlight-headline {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--gold-deep); margin-bottom: 8px;
}
.spotlight-card.is-primary .spotlight-headline { color: var(--navy); }
.spotlight-tool { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; letter-spacing: -.01em; }
.spotlight-metrics { display: flex; gap: 22px; margin-bottom: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.spotlight-metrics .k { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; margin-bottom: 3px; }
.spotlight-metrics .v { font-size: 15px; font-weight: 750; color: var(--ink); }
.spotlight-body { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 14px; }

.fit-table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
table.fit-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.fit-table th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 800; padding: 12px 14px; background: var(--paper); border-bottom: 1px solid var(--line);
}
table.fit-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.fit-table tr:last-child td { border-bottom: none; }
table.fit-table tr.fit-row { cursor: pointer; }
table.fit-table tr.fit-row:hover td { background: var(--paper); }
.fit-tool-name { font-weight: 750; font-size: 13.5px; }

.fit-cards { display: none; gap: 12px; }
.fit-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; }
.fit-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.fit-card-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 12px; }
.fit-card-row .k { color: var(--muted); font-weight: 650; }
.fit-card-row .v { text-align: right; font-weight: 650; }

.alt-callout {
  margin-top: 8px; padding: 14px 16px; border-radius: 12px; background: var(--navy-tint);
  border: 1px solid var(--navy-soft); font-size: 12.5px; line-height: 1.6;
}
.alt-callout strong { color: var(--navy); }

/* ==========================================================================
   DEMO & PILOT — action planning: stats, tabs, and a distinct full-impl card
   ========================================================================== */
.demo-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.demo-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; border-top: 3px solid var(--navy-soft); }
.demo-stat strong { display: block; font-size: 30px; letter-spacing: -.03em; margin-bottom: 4px; }
.demo-stat span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.demo-stat.pilot { border-top-color: var(--green); }
.demo-stat.full { border-top-color: var(--purple); background: var(--purple-soft); }

.seg-tabs { display: flex; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.seg-tab {
  border: none; background: transparent; padding: 11px 16px; font-size: 12.5px; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: 6px;
}
.seg-tab:hover { color: var(--ink); }
.seg-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.seg-tab .count { font-size: 10.5px; background: var(--slate-soft); color: var(--muted); border-radius: var(--radius-pill); padding: 1px 7px; }
.seg-tab.active .count { background: var(--navy-soft); color: var(--navy); }

.demo-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; margin-top: 20px; }
.demo-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; cursor: pointer;
  transition: .12s ease; display: flex; flex-direction: column; border-top: 3px solid var(--line);
}
.demo-card:hover { border-color: #c8c0a5; box-shadow: var(--shadow-sm); }
.demo-card.pilot { border-top-color: var(--green); }
.demo-card.full { border-top-color: var(--purple); background: linear-gradient(180deg, var(--purple-soft) 0%, var(--panel) 130px); }
.demo-card h3 { margin: 12px 0 4px; font-size: 17px; }
.demo-card .fam { font-size: 11.5px; color: var(--gold-deep); font-weight: 700; margin-bottom: 8px; }
.demo-card p { color: var(--muted); line-height: 1.55; font-size: 12.5px; }
.demo-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.demo-open-link {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12.5px;
  font-weight: 750; color: var(--navy); text-decoration: none;
}
.demo-open-link:hover { text-decoration: underline; }

.engagement-tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--radius-sm); }
.engagement-tag.demo { background: var(--navy-soft); color: var(--navy); }
.engagement-tag.pilot { background: var(--green-soft); color: var(--green); }
.engagement-tag.full { background: var(--purple-soft); color: var(--purple); }

.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.criteria-box { border-radius: 12px; padding: 16px 18px; }
.criteria-box.pass { background: var(--green-soft); }
.criteria-box.reject { background: var(--red-soft); }
.criteria-box h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; margin-bottom: 6px; }
.criteria-box.pass h5 { color: var(--green); }
.criteria-box.reject h5 { color: var(--red); }
.criteria-box p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* ==========================================================================
   RECOMMENDATION TRACE — compact, additive explanation of existing data
   ========================================================================== */
.recommendation-trace { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.detail-view > .recommendation-trace { margin-top: 22px; padding-top: 0; border-top: 0; }
.recommendation-trace.is-fit-detail {
  margin: 18px 0 22px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel);
}
.trace-toggle {
  width: 100%; border: 0; background: transparent; color: var(--navy); padding: 4px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12px; line-height: 1.4; font-weight: 800; cursor: pointer; text-align: left;
}
.is-fit-detail .trace-toggle { padding: 12px 14px; }
.trace-toggle-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.is-fit-detail .trace-toggle-title { font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.trace-toggle-summary { color: var(--muted); font-size: 11.5px; line-height: 1.45; font-weight: 500; }
.trace-toggle:hover { color: var(--navy-deep); }
.trace-toggle-icon { color: var(--gold-deep); font-size: 14px; }
.is-fit-detail .trace-panel { margin: 0 12px 12px; }
.trace-panel { margin-top: 11px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); padding: 17px 18px 18px; }
.trace-panel[hidden] { display: none; }
.trace-heading { font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 13px; }
.trace-steps { display: grid; }
.trace-step { position: relative; padding: 0 0 18px 24px; min-width: 0; }
.trace-step::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: -2px; width: 1px; background: var(--line);
}
.trace-step::after {
  content: ""; position: absolute; left: 1px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--panel); border: 2px solid var(--gold);
}
.trace-step-last { padding-bottom: 0; }
.trace-step-last::before { display: none; }
.trace-step-label { font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.trace-step-value { font-size: 13px; font-weight: 750; line-height: 1.45; color: var(--ink); }
.trace-step-note { margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.trace-classifications, .trace-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.trace-classifications > div, .trace-metrics > div { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel); padding: 9px 10px; }
.trace-classifications span, .trace-metrics span, .trace-rationale span {
  display: block; font-size: 8.5px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.trace-classifications strong, .trace-metrics strong { display: block; font-size: 11.5px; line-height: 1.4; color: var(--ink); }
.trace-rationale + .trace-rationale { margin-top: 10px; }
.trace-rationale p, .trace-next p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.58; }
.trace-gaps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.trace-evidence-empty { border-left: 3px solid var(--amber); padding: 7px 10px; background: var(--amber-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.trace-evidence-empty strong { display: block; color: var(--amber); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; }
.trace-evidence-empty span, .trace-gap-text { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.trace-evidence-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel); padding: 10px 11px; }
.trace-evidence-item + .trace-evidence-item { margin-top: 7px; }
.trace-evidence-name { font-size: 11.5px; font-weight: 750; line-height: 1.45; margin-bottom: 7px; }
.trace-evidence-item .ext-link { display: inline-flex; margin-top: 7px; font-size: 11px; }
.trace-more-link, .trace-next a { display: inline-block; margin-top: 8px; color: var(--navy); font-size: 11.5px; font-weight: 750; text-decoration: none; }
.trace-more-link:hover, .trace-next a:hover { text-decoration: underline; }
.trace-next .engagement-tag { display: inline-flex; margin-bottom: 7px; }
.trace-gap-text { font-weight: 650; }

/* ==========================================================================
   EVIDENCE — confidence and provenance lead, validation backlog follows
   ========================================================================== */
.evidence-stat-row { margin-bottom: 26px; }

.evidence-list { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.evidence-row { padding: 17px 19px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; }
.evidence-row:hover { background: var(--paper); }
.evidence-row:last-child { border-bottom: none; }
.evidence-row h4 { margin: 0 0 5px; font-size: 13.5px; }
.evidence-row p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.evidence-row-main { min-width: 0; }
.evidence-row-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.evidence-view-hint { font-size: 11px; font-weight: 700; color: var(--navy); letter-spacing: .02em; white-space: nowrap; opacity: .7; }
.evidence-row:hover .evidence-view-hint { opacity: 1; }

.casestudy-search { margin: 8px 0 16px; }
.casestudy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.casestudy-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.casestudy-card h5 { font-size: 13px; margin-bottom: 8px; }
.casestudy-card p { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 6px; }
.casestudy-card a { font-size: 11.5px; font-weight: 700; color: var(--navy); text-decoration: none; }
.casestudy-card a:hover { text-decoration: underline; }

.validation-section { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.validation-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.validation-head h4 { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.validation-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.validation-list li { margin-bottom: 4px; }

/* ===========================================================================
   TOOL LIBRARY — analytical catalog over existing generated knowledge
   ========================================================================== */
.library-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: -8px 0 22px; }
.catalog-count { min-width: 0; padding: 14px 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); }
.catalog-count strong { display: block; font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.catalog-count span { display: block; margin-top: 5px; color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.coverage-tabs { display: flex; gap: 5px; margin-bottom: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.coverage-tab { padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.coverage-tab:hover { color: var(--ink); }
.coverage-tab.active { color: var(--navy); border-bottom-color: var(--gold-deep); }
.coverage-tab span { display: inline-block; min-width: 20px; margin-left: 5px; padding: 2px 6px; background: var(--slate-soft); border-radius: var(--radius-pill); font-size: 9px; }
.coverage-tab.active span { background: var(--gold-soft); color: var(--gold-deep); }
.catalog-controls { padding: 18px; margin-bottom: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.catalog-controls .search-shell { margin-bottom: 14px; }
.catalog-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.catalog-filter { display: grid; gap: 5px; min-width: 0; }
.catalog-filter span { color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.catalog-filter select { width: 100%; min-width: 0; padding: 9px 28px 9px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 11.5px; }
.catalog-control-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; }
.catalog-control-foot .results-line { margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.tool-card { min-width: 0; padding: 19px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; transition: .15s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: #c8c0a5; box-shadow: var(--shadow-md); }
.tool-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.tool-category { margin-bottom: 7px; color: var(--gold-deep); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.tool-card h3 { font-size: 16px; line-height: 1.35; }
.tool-arrow { color: var(--gold-deep); font-weight: 800; }
.coverage-state { display: inline-flex; margin-top: 0; padding: 4px 7px; border-radius: 4px; font-size: 8.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.coverage-state.mapped { background: var(--green-soft); color: var(--green); }
.coverage-state.inventory { background: var(--slate-soft); color: var(--muted); }
.tool-card-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 9px; }
.tool-role-badge { display: inline-flex; max-width: 100%; padding: 4px 7px; border-radius: 4px; background: var(--navy-soft); color: var(--navy); font-size: 8.5px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.tool-role-badge.unmapped { background: var(--slate-soft); color: var(--muted); font-weight: 700; }
.tool-card > p { min-height: 57px; margin-top: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.58; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tool-best-used { margin-top: 14px; }
.tool-best-used-label { margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-best-used .not-mapped { min-height: 0; margin: 0; font-size: 11px; font-style: normal; }
.tool-use-cases { min-height: 46px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; }
.tool-use-cases span { padding: 4px 7px; background: var(--navy-tint); border-radius: 4px; color: var(--ink-soft); font-size: 9.5px; font-weight: 700; }
.tool-use-cases small { align-self: center; color: var(--muted); font-size: 10px; }
.tool-card-meta { display: grid; gap: 4px; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; }
.tool-card-source { margin-top: 12px; }
.tool-card-source .ext-link { font-size: 11px; }
.tool-detail { max-width: 980px; }
.best-fit-block { display: grid; gap: 8px; margin: 14px 0 20px; }
.best-fit-block > strong, .evidence-group-title { color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.compact-stack { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.decision-context-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.4fr) auto; gap: 18px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.decision-context-row:last-child { border-bottom: none; }
.decision-context-row p { color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }
.context-metrics { display: grid; gap: 5px; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.context-metrics strong { color: var(--ink-soft); }
.evidence-group-title { margin: 17px 0 9px; }
.evidence-compact { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); }
.evidence-compact p { margin: 8px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.inventory-state { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; margin-top: 15px; padding: 11px 13px; background: var(--slate-soft); border-radius: var(--radius-sm); }
.inventory-state strong { color: var(--slate); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.inventory-state span { color: var(--muted); font-size: 12px; }
.inventory-explainer { max-width: 720px; margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.research-metadata { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); }
.research-metadata > div { padding: 13px 15px; background: var(--panel); }
.research-metadata dt { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.research-metadata dd { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.concept-note { margin: 7px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.inventory-detail .inset-panel { padding: 16px 18px; }
.inventory-detail .inset-panel p { color: var(--ink-soft); font-size: 12.5px; line-height: 1.6; }

/* ===========================================================================
   ADD TO NAVIGATOR — submit-to-Airtable-Form cards (Phase 8C)
   ========================================================================== */
.form-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.form-section-head h3 { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.intake-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.intake-card { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.intake-card > p { color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }
.intake-embed { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); }
.intake-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
.queue-empty { padding: 20px; }

/* -- Footer --------------------------------------------------------------------------- */
.footer { margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-soft); font-size: 10px; line-height: 1.6; }

/* ==========================================================================
   Responsive rules
   ========================================================================== */
@media (max-width: 1180px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .spotlight-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2,1fr); }
  .journey-step:nth-child(2) { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
  .journey-step:nth-child(3) { border-radius: var(--radius-lg) 0 0 var(--radius-lg); border-left: 1px solid var(--line); margin-top: 10px; }
  .journey-step:nth-child(4) { margin-top: 10px; }
  .journey-arrow { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-filter-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .intake-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .nav { grid-template-columns: repeat(3,1fr); }
  .sidebar-foot, .vertical-flag { display: none; }
  .metrics, .path-grid, .grid-3, .grid-4, .demo-grid, .criteria-grid, .casestudy-grid, .demo-stat-row { grid-template-columns: repeat(2,1fr); }
  .talking-point-grid { grid-template-columns: 1fr; }
  .compare-scope-bar { flex-direction: column; align-items: stretch; }
  .scope-browse-link { margin-left: 0; }
  .nav-section-label { grid-column: 1 / -1; }
  .decision-context-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .content { padding: 32px 18px 64px; }
  .topbar { padding: 0 18px; }
  .nav { grid-template-columns: 1fr 1fr; }
  .metrics, .path-grid, .grid-2, .grid-3, .grid-4, .demo-grid, .criteria-grid, .casestudy-grid, .demo-stat-row { grid-template-columns: 1fr; }
  .display-h1 { font-size: 34px; }
  .journey { grid-template-columns: 1fr; }
  .journey-step, .journey-step:first-child, .journey-step:last-child { border-radius: var(--radius-lg); border-left: 1px solid var(--line); margin-bottom: 8px; }
  table.fit-table { display: none; }
  .fit-cards { display: grid; }
  .fit-table-wrap { background: none; border: none; }
  .playbook-hero-meta { flex-direction: column; align-items: flex-start; }
  .diagnosis-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .seg-tabs { overflow-x: auto; white-space: nowrap; }
  .trace-panel { padding: 15px 13px 16px; }
  .trace-step { padding-left: 20px; }
  .trace-classifications, .trace-metrics { grid-template-columns: 1fr; }
  .tool-grid, .catalog-filter-grid, .form-grid { grid-template-columns: 1fr; }
  .library-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .catalog-count { padding: 12px 10px; }
  .catalog-count strong { font-size: 21px; }
  .catalog-count span { font-size: 8px; line-height: 1.3; }
  .research-metadata { grid-template-columns: 1fr; }
  .intake-cards { grid-template-columns: 1fr; }
  .catalog-control-foot { align-items: flex-start; flex-direction: column; }
  .tool-card > p { min-height: 0; }
}
