/* Propel Engagement Playbook — brand theme
   Sourced from propellabs.ai brand: light theme, Space Grotesk + Satoshi,
   indigo accent #3B54F7, lavender #E4E4FF, dark indigo #23233A. */

/* ---------- Brand fonts (vendored, offline) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-var.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face { font-family:'Satoshi'; src:url('fonts/satoshi-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('fonts/satoshi-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('fonts/satoshi-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

:root {
  /* brand palette */
  --indigo:     #3B54F7;   /* accent */
  --indigo-dk:  #2A3FD0;   /* accent hover */
  --navy:       #23233A;   /* dark surface / secondary button */
  --ink:        #00001F;   /* text primary */
  --lavender:   #E4E4FF;   /* secondary / tints */
  --lavender-2: #F1F1FF;   /* lighter tint */
  --lilac:      #CFBFFF;
  --white:      #FFFFFF;
  --bg:         #FFFFFF;
  --bg-soft:    #FAFAFF;
  --surface:    #FFFFFF;
  --surface-2:  #F6F6FD;
  --border:     #E3E3F0;
  --border-2:   #D5D5EA;
  --muted:      #5B5B73;
  --muted-2:    #8A8AA0;
  --sidebar-w:  310px;
  --head: 'Space Grotesk', system-ui, arial, sans-serif;
  --body: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  /* per-page accent (paths override) */
  --accent: var(--indigo);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--navy);
  color: var(--lavender);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 0 0 40px;
}
.content-wrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.content { max-width: 900px; width: 100%; margin: 0 auto; padding: 52px 56px 120px; }

/* ---------- Brand / sidebar header ---------- */
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 24px 20px; text-decoration: none;
  border-bottom: 1px solid rgba(228,228,255,0.12);
  position: sticky; top: 0; background: var(--navy); z-index: 2;
}
.brand .logo { height: 22px; width: auto; color: var(--lavender); display:block; }
.brand .tag {
  display:block; font-family: var(--head); font-weight:500; font-size:10px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--lilac); margin-top: 7px; opacity:.8;
}

/* ---------- Nav ---------- */
nav { padding: 10px 14px; }
.nav-group { border-bottom: 1px solid rgba(228,228,255,0.07); padding-bottom: 4px; }
.nav-group > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-family: var(--head);
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: #FFFFFF; opacity: .95; font-weight: 700;
  padding: 10px 12px;
  margin: 8px 0 3px;
  background: rgba(228,228,255,0.06);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-group > summary:hover { background: rgba(228,228,255,0.11); }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "\25B8"; font-size: 11px; opacity: .7; transition: transform .15s ease; }
.nav-group[open] > summary::after { transform: rotate(90deg); }
.nav-group > summary:hover { opacity: 1; }
.nav-group[open] > summary { opacity: .9; }
.nav-sub { margin: 1px 0 3px 16px; border-left: 1px solid rgba(228,228,255,0.14); padding-left: 4px; }
.nav-sub a { font-size: 13px; opacity: .68; }
nav a {
  display: block; padding: 8px 12px; margin: 1px 0;
  color: #EFEFFD; text-decoration: none; border-radius: 6px;
  font-size: 14px; opacity: .92;
  border-left: 2px solid transparent; transition: background .12s, opacity .12s;
}
nav a:hover { background: rgba(228,228,255,0.08); opacity: 1; }
nav a.active {
  background: rgba(59,84,247,0.22); color: var(--white); opacity: 1;
  border-left: 2px solid var(--indigo); font-weight: 600;
}

/* ---------- Typography ---------- */
.content h1, .content h2, .content h3, .content h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; font-weight: 700; }
.content h1 { font-size: 40px; margin: 0 0 10px; letter-spacing: -1px; }
.content h1::after { content:""; display:block; width: 52px; height: 4px; background: var(--accent); border-radius: 0; margin-top: 18px; }
.content h2 { font-size: 25px; margin: 46px 0 14px; padding-top: 26px; border-top: 1px solid var(--border); }
.content h3 { font-size: 19px; margin: 30px 0 10px; color: var(--navy); }
.content h4 { font-size: 14px; margin: 22px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.content p { margin: 13px 0; color: #222240; }
.content a { color: var(--indigo); text-decoration: none; border-bottom: 1px solid rgba(59,84,247,0.28); }
.content a:hover { color: var(--indigo-dk); border-bottom-color: var(--indigo-dk); }
.content strong { color: var(--ink); font-weight: 700; }
.content ul, .content ol { padding-left: 22px; margin: 13px 0; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--indigo); }
hr { border: none; border-top: 1px solid var(--border); margin: 38px 0; }

/* first-line lead blockquote at top of scenario pages */
.content > blockquote:first-of-type:not(.warn) {
  font-family: var(--head); font-size: 19px; line-height: 1.5; font-weight: 500;
  color: var(--navy); background: var(--lavender-2);
  border-left: 4px solid var(--indigo); padding: 18px 22px; margin: 8px 0 4px;
}

/* ---------- ADR hero (sell the decision) ---------- */
.adr-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.adr-chip {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 13px; font-size: 12.5px; color: var(--ink);
}
.adr-chip strong { color: var(--muted-2); font-weight: 600; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; margin-right: 4px; }
.adr-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(420px 180px at 90% -30px, var(--lavender), transparent 70%),
    linear-gradient(135deg, var(--lavender-2), #FFFFFF 65%);
  border: 1px solid var(--lavender); border-left: 4px solid var(--indigo);
  padding: 24px 28px; margin: 18px 0 10px;
}
.adr-hero .eyebrow {
  font-family: var(--head); font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--indigo); font-weight: 700; margin-bottom: 10px;
}
.adr-hero p {
  font-family: var(--head); font-size: 21px; line-height: 1.5;
  color: var(--ink); margin: 0; font-weight: 500;
}
.adr-hero p strong { color: var(--indigo-dk); }
.adr-hero em {
  display: block; font-family: var(--body); font-style: normal;
  font-size: 14px; color: var(--muted); margin-top: 12px; font-weight: 400;
}

/* ---------- Code ---------- */
code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--surface-2); color: var(--indigo-dk);
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border);
}
pre.code {
  background: var(--navy); border-radius: 8px; border-left: 4px solid var(--indigo);
  padding: 16px 18px; overflow-x: auto; margin: 16px 0;
}
pre.code code { background: none; border: none; color: #E4E4FF; padding: 0; font-size: 13px; line-height: 1.6; }

/* ---------- Tables ---------- */
table {
  border-collapse: collapse; width: 100%; margin: 22px 0; font-size: 14px;
  border: 1px solid var(--border); border-radius: 0; overflow: visible;
}
th {
  background: var(--navy); color: var(--lavender);
  text-align: left; padding: 11px 14px; font-family: var(--head);
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.3px;
}
td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: top; color: #262640; }
tr:nth-child(even) td { background: var(--surface-2); }
tr:hover td { background: var(--lavender-2); }
td code, th code { font-size: 0.82em; }

/* ---------- Blockquotes / callouts ---------- */
blockquote {
  margin: 18px 0; padding: 12px 18px; background: var(--surface-2);
  border-left: 4px solid var(--indigo); border-radius: 0 6px 6px 0; color: #33334d;
}
blockquote.warn { border-left-color: #E5484D; background: #FEF1F1; }
blockquote p { margin: 6px 0; }

/* ---------- Mermaid ---------- */
pre.mermaid {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px; margin: 24px 0; text-align: center; overflow-x: auto;
}
pre.mermaid:not([data-processed]) { color: var(--muted-2); font-family: var(--mono); font-size: 12px; text-align:left; }

/* ---------- Footer ---------- */
.page-foot {
  max-width: 900px; margin: 0 auto; padding: 24px 56px 60px;
  border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.page-foot a { color: var(--muted); text-decoration: none; }
.page-foot a:hover { color: var(--indigo); }

/* ============ Visual landing / hub ============ */
.hero {
  position: relative; text-align: center; padding: 68px 24px 56px;
  margin: -52px -56px 8px; overflow: hidden;
  background:
    radial-gradient(760px 320px at 50% -40px, var(--lavender), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(59,84,247,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59,84,247,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(560px 280px at 50% 0, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(560px 280px at 50% 0, #000, transparent 78%);
  pointer-events:none;
}
.hero > * { position: relative; z-index: 1; }
.hero .logo-lg { height: 34px; color: var(--navy); margin-bottom: 22px; }
.hero-title { font-family: var(--head); font-size: 46px !important; letter-spacing:-1.5px; margin:0 !important; color: var(--ink); font-weight:700; }
.hero-title::after { display:none !important; }
.hero-lead { max-width: 640px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }
.hero-tag {
  display:inline-block; margin-top: 24px; padding: 8px 20px;
  border-radius: 999px; background: var(--indigo); color: var(--lavender);
  font-family: var(--head); font-weight:600; font-size:12.5px; letter-spacing:1.2px; text-transform:uppercase;
}

.hub { margin: 46px 0; }
.hub-h {
  font-family: var(--head); font-size: 12.5px !important; letter-spacing:2px; text-transform:uppercase;
  color: var(--muted-2) !important; border:none !important; padding:0 !important;
  margin: 0 0 18px !important; font-weight:600;
}
.diagram-note { text-align:center; color: var(--muted-2); font-size:13px; margin-top:12px; }

/* Path cards */
.path-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap:16px; }
.path-card {
  display:block; text-decoration:none !important; position:relative;
  background: var(--surface); border:1px solid var(--border); border-radius:2px;
  padding: 22px 22px 18px; border-top: 4px solid var(--accent); transition:.16s; overflow:hidden;
}
.path-card:hover { border-color: var(--accent); box-shadow: 0 14px 34px -18px rgba(35,35,58,0.45); transform: translateY(-3px); }
.path-card .num {
  position:absolute; top:14px; right:20px; font-family: var(--head); font-size:46px; font-weight:700;
  color: var(--accent); opacity:0.14; line-height:1;
}
.path-card .pname { font-family: var(--head); color: var(--ink); font-weight:700; font-size:19px; }
.path-card .pdesc { color: var(--muted); font-size:14px; margin:8px 0 15px; }
.path-card .chips { display:flex; flex-direction:column; gap:6px; }
.path-card .chip { font-size:12.5px; color: var(--muted); }
.path-card .chip b { color: var(--accent); font-weight:700; }
.path-card .go { margin-top:15px; font-family: var(--head); color: var(--accent); font-size:13px; font-weight:600; }

/* Reference cards */
.ref-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap:12px; }
.ref-card { text-decoration:none !important; background:var(--surface); border:1px solid var(--border); border-radius:2px; padding:18px 20px; transition:.15s; }
.ref-card:hover { border-color:var(--indigo); box-shadow: 0 10px 26px -16px rgba(35,35,58,0.4); }
.ref-card .rt { font-family: var(--head); color:var(--ink); font-weight:700; font-size:15px; }
.ref-card .rd { color:var(--muted); font-size:13px; margin-top:5px; }

/* ---------- Draft / Published status ---------- */
.pagestatus {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--head); font-size: 11px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 12px 4px 10px; border-radius: 999px; margin: 0 0 20px;
}
.pagestatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.pagestatus.draft { background: #FDF0DC; color: #9A6300; }
.pagestatus.draft::before { background: #F59E0B; }
.pagestatus.published { background: #E4F7EE; color: #1C7A4B; }
.pagestatus.published::before { background: #34D399; }

/* ---------- Glossary tooltips ---------- */
.term {
  border-bottom: 1px dotted var(--indigo);
  cursor: help; position: relative; color: var(--indigo-dk);
}
.term:focus { outline: none; }
.term::after {
  content: attr(data-def);
  position: absolute; left: 0; bottom: calc(100% + 9px);
  width: max-content; max-width: 300px;
  background: var(--navy); color: var(--lavender);
  font-family: var(--body); font-weight: 400; font-size: 12.5px; line-height: 1.5;
  letter-spacing: normal; text-transform: none; text-align: left;
  padding: 10px 13px; border-radius: 6px;
  box-shadow: 0 12px 34px -10px rgba(0,0,32,0.55);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease;
  z-index: 60; pointer-events: none; white-space: normal;
}
.term::before {
  content: ""; position: absolute; left: 13px; bottom: calc(100% + 4px);
  border: 5px solid transparent; border-top-color: var(--navy);
  opacity: 0; visibility: hidden; transition: opacity .14s ease; z-index: 61;
}
.term:hover::after, .term:focus::after,
.term:hover::before, .term:focus::before { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Mobile ---------- */
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .layout { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; flex-basis: auto; }
  .content { padding: 30px 20px 80px; }
  .hero { margin: -30px -20px 8px; }
  .hero-title { font-size: 32px !important; }
  .page-foot { padding: 24px 20px 60px; }
  nav { display: none; }
  nav.open { display: block; }
  .menu-toggle {
    display: block; margin: 0; padding: 13px 24px; width: 100%; text-align: left;
    background: rgba(228,228,255,0.06); color: var(--lavender); border: none;
    border-top: 1px solid rgba(228,228,255,0.12); font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--body);
  }
}

/* ---------- Scrolly intro (experiment: immersive ADR sell) ---------- */
/* Sits directly in .content-wrap (outside the max-width column): spans sidebar→edge, flush to top. */
.scrolly { position: relative; height: 560vh; margin: 0 0 8px; }
.sc-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: radial-gradient(900px 600px at 68% 18%, #31315A, #23233A 62%);
  color: var(--lavender);
}
/* parallax glow layer — a real element so JS can drive its transform without
   invalidating the whole subtree (CSS vars inherit = full style recalc per frame) */
.sc-glow {
  position: absolute; inset: -25% -10%;
  background:
    radial-gradient(620px 420px at 28% 32%, rgba(59,84,247,0.18), transparent 62%),
    radial-gradient(520px 380px at 76% 68%, rgba(138,84,232,0.13), transparent 62%);
  will-change: transform; pointer-events: none;
}
.scrolly h2 {
  border: 0 !important; padding: 0 !important; margin: 0 !important;
  font-family: var(--head); font-weight: 700;
  font-size: clamp(26px, 4vw, 42px) !important; color: #fff !important;
  letter-spacing: -1px; text-align: center;
}
.scrolly h2 em { color: var(--lilac); font-style: normal; }
.sc-scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; text-align: center;
  opacity: 0; padding: 0 28px; will-change: opacity, transform;
}
/* headline beats live in a top band so the hero window stays the star */
.sc-scene.sc-head { inset: auto 0 auto 0; top: 9%; justify-content: flex-start; }
.sc-sub { font-family: var(--body); color: var(--lilac); font-size: 16px; margin: 0; max-width: 560px; opacity: .85; }

/* scattered doc chips (inner span floats gently; JS owns the outer transform) */
.sc-doc {
  position: absolute; left: 50%; top: 56%; opacity: 0; will-change: transform, opacity;
}
.sc-doc span {
  display: inline-block; padding: 8px 14px; background: rgba(228,228,255,0.07);
  border: 1px solid rgba(228,228,255,0.28); border-radius: 8px;
  color: var(--lavender); font-family: var(--mono); font-size: 12.5px; white-space: nowrap;
  animation: sc-float 5s ease-in-out infinite;
}
.sc-doc:nth-child(2n) span { animation-delay: -1.4s; }
.sc-doc:nth-child(3n) span { animation-delay: -2.6s; }
.sc-doc:nth-child(5n) span { animation-delay: -3.8s; }
@keyframes sc-float { 50% { transform: translateY(-7px); } }

/* the hero: a browser window that demonstrates the value beats */
.sc-window {
  position: absolute; left: 50%; top: 56%; opacity: 0;
  width: min(580px, 88vw); border-radius: 14px; overflow: hidden;
  background: rgba(16,16,34,0.88);
  border: 1px solid rgba(59,84,247,0.5);
  box-shadow: 0 0 90px rgba(59,84,247,0.38), 0 30px 60px -30px rgba(0,0,32,0.8);
  will-change: transform, opacity, filter; text-align: left;
}
.sc-win-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: rgba(228,228,255,0.05); border-bottom: 1px solid rgba(228,228,255,0.1);
}
.sc-win-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(228,228,255,0.18); }
.sc-url {
  margin: 0 auto; font-family: var(--mono); font-size: 12.5px; color: var(--lilac);
  padding: 4px 16px; border-radius: 999px; background: rgba(228,228,255,0.06);
  border: 1px solid transparent; transition: all .35s ease;
}
.sc-url.on {
  color: #fff; border-color: var(--indigo);
  box-shadow: 0 0 22px rgba(59,84,247,0.65); background: rgba(59,84,247,0.22);
}
.sc-win-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.sc-search {
  display: flex; align-items: center; padding: 11px 14px; border-radius: 9px;
  background: rgba(228,228,255,0.06); border: 1px solid rgba(228,228,255,0.2);
  font-family: var(--mono); font-size: 13.5px; color: #fff; min-height: 42px;
}
.sc-caret { display: inline-block; width: 8px; height: 17px; margin-left: 2px; background: var(--indigo); opacity: 0; animation: sc-blink 1s steps(1) infinite; }
@keyframes sc-blink { 50% { visibility: hidden; } }
.sc-result {
  opacity: 0; font-family: var(--mono); font-size: 12.5px; color: var(--lavender);
  padding: 10px 14px; border-radius: 9px; background: rgba(228,228,255,0.045);
  border: 1px solid rgba(228,228,255,0.12); will-change: transform, opacity;
}
.sc-answer {
  opacity: 0; font-family: var(--body); font-size: 13.5px; line-height: 1.55; color: var(--teal-xl, #E8FFFE);
  padding: 12px 15px; border-radius: 11px 11px 11px 3px;
  background: linear-gradient(135deg, rgba(59,84,247,0.3), rgba(59,84,247,0.12));
  border: 1px solid rgba(59,84,247,0.55); will-change: transform, opacity;
}
.sc-answer b { margin-right: 4px; }

.sc-phases { display: flex; gap: 18px; align-items: center; font-family: var(--head); font-size: 22px; color: #fff; flex-wrap: wrap; justify-content: center; }
.sc-phases > span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sc-phases b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--lilac); }
.sc-arrow { color: var(--lilac); opacity: .6; }
.sc-plus { color: var(--indigo); font-weight: 700; margin-left: 2px; }
/* persistent flashing cue — JS fades it out when the ADR content is reached */
.sc-cue { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; will-change: opacity; }
.sc-cue span {
  display: inline-block; font-family: var(--head); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--lilac);
  animation: sc-bob 1.5s ease-in-out infinite, sc-flash 1.5s ease-in-out infinite;
}
@keyframes sc-bob { 50% { transform: translateY(7px); } }
@keyframes sc-flash { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 880px) { .scrolly { margin: 0 0 8px; } .sc-scene.sc-head { top: 6%; } }
@media (prefers-reduced-motion: reduce) { .scrolly { display: none; } }

/* ---------- TBD suggested-decision dropdown ---------- */
.tbd-chip {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #9A6300; background: #FDF0DC;
  border-radius: 999px; padding: 3px 11px;
}
details.suggest {
  border: 1px dashed var(--indigo); border-radius: 10px;
  background: var(--lavender-2); padding: 0; margin: 14px 0 22px;
}
details.suggest > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--indigo-dk);
  padding: 14px 20px; display: flex; align-items: center; gap: 10px;
}
details.suggest > summary::-webkit-details-marker { display: none; }
details.suggest > summary::before { content: "💡"; }
details.suggest > summary::after { content: "▾"; margin-left: auto; transition: transform .15s; }
details.suggest[open] > summary::after { transform: rotate(180deg); }
details.suggest > .suggest-body { padding: 2px 22px 18px; }

/* ---------- Software Catalog ---------- */
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.cat-chips.page { margin: 14px 0 6px; }
.cat-chip {
  display: inline-block; font-family: var(--head); font-size: 11px; font-weight: 600;
  letter-spacing: .6px; text-transform: uppercase; border-radius: 999px; padding: 3px 11px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.cat-chip.aud-internal { background: var(--navy); color: var(--lavender); border-color: var(--navy); }
.cat-chip.aud-client { background: #E8F1FE; color: #1D5CB8; border-color: #C4DCF8; }
.cat-chip.aud-reusable { background: var(--lavender); color: var(--indigo-dk); border-color: var(--lilac); }
.cat-chip.client-name { background: var(--lavender-2); color: var(--navy); }
.cat-chip.st-active, .cat-chip.st-golden-path { background: #E4F7EE; color: #1C7A4B; border-color: #BCE8D2; }
.cat-chip.st-proven { background: var(--lavender); color: var(--indigo-dk); border-color: var(--lilac); }
.cat-chip.st-incubating { background: #FDF0DC; color: #9A6300; border-color: #F3DDB4; }
.cat-card .rd { margin-top: 8px; }
.adopt-list { display: block; font-size: 11.5px; color: var(--muted-2); font-family: var(--mono); }
/* nav sub-group labels + deeper nesting */
.nav-lbl {
  font-family: var(--head); font-size: 10.5px; letter-spacing: 1.7px; text-transform: uppercase;
  color: #FFFFFF; opacity: .85; font-weight: 700; padding: 13px 12px 3px 12px;
  border-top: 1px solid rgba(228,228,255,0.08); margin-top: 6px;
}
.nav-sub .nav-sub { margin-left: 14px; }
/* derived "governed by" line on service pages */
.affected-by { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
/* collapsible nav items (sections with children) */
.nav-item { display: flex; align-items: center; }
.nav-item > a { flex: 1 1 auto; }
.nav-toggle {
  flex: 0 0 auto; background: none; border: none; cursor: pointer;
  color: var(--lilac); opacity: .55; font-size: 10px; padding: 6px 9px;
  transform: rotate(90deg); transition: transform .15s ease, opacity .15s;
}
.nav-toggle:hover { opacity: 1; }
.nav-toggle.closed { transform: rotate(0deg); }
.nav-sub.hide { display: none; }
/* home link above the groups */
.nav-home { padding: 6px 0 2px; border-bottom: 1px solid rgba(228,228,255,0.07); margin-bottom: 2px; }
.nav-home a { font-family: var(--head); font-weight: 600; }
/* home fast lane */
.ql-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.ql {
  text-decoration: none !important; font-family: var(--head); font-weight: 600; font-size: 14px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 20px; transition: .14s;
}
.ql:hover { border-color: var(--indigo); color: var(--indigo-dk); box-shadow: 0 6px 18px -10px rgba(35,35,58,0.4); }
.norms { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.norms strong { color: var(--navy); }
.norms a { font-family: var(--head); font-weight: 600; }
