*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:          #ffffff;
  --text:        #1a1a1a;
  --text-2:      #4a4a4a;
  --text-3:      #9b9b9b;
  --text-4:      #c9c9c7;
  --line:        #e8e8e6;
  --line-subtle: #f0f0ee;
  --hover:       #f0f0ee;
  --code-bg:     #f4f4f2;
  --blue:        #2563eb;
  --blue-light:  #eff6ff;
  --green:       #16a34a;
  --green-light: #f0fdf4;
  --amber:       #d97706;
  --amber-light: #fffbeb;
  --red:         #dc2626;
  --red-light:   #fef2f2;
  --purple:      #7c3aed;
  --purple-light:#f5f3ff;
  --font:        'DM Sans', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --content-w:   940px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Main ─────────────────────────────────── */
main {
  flex: 1;
  min-width: 0;
}

/* ─── Content ──────────────────────────────── */
.content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 56px 48px 160px;
}

section {
  margin-bottom: 80px;
  scroll-margin-top: 32px;
}

/* ─── Headings ─────────────────────────────── */
h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.3;
}

.sn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-4);
  flex-shrink: 0;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 10px;
  letter-spacing: -0.1px;
}

h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 24px 0 8px;
}

p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 14px;
}
p:last-child { margin-bottom: 0; }
p strong { color: var(--text); font-weight: 600; }
p em { color: var(--text); }

a { color: var(--blue); text-decoration: underline; text-decoration-color: transparent; }
a:hover { text-decoration-color: currentColor; }

/* ─── Lists ────────────────────────────────── */
ul, ol {
  margin: 8px 0 12px 0;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 15.5px;
}
li { padding: 2px 0; line-height: 1.75; }
li strong { color: var(--text); }

/* ─── Inline code ──────────────────────────── */
code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: var(--code-bg);
  color: var(--text);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ─── Code blocks ──────────────────────────── */
pre {
  background: var(--code-bg);
  border-radius: 6px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.6;
}
pre code {
  background: none;
  color: #374151;
  font-size: 13.5px;
  padding: 0;
}

/* ─── Tables ───────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0;
}

th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 10px 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
  line-height: 1.6;
  font-size: 15px;
}
td strong { color: var(--text); }
tbody tr:last-child td { border-bottom: none; }

/* ─── Callouts ─────────────────────────────── */
.callout {
  padding: 12px 16px;
  margin: 16px 0;
  border-left: 3px solid;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.callout-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.callout.note { background: var(--blue-light); border-color: var(--blue); }
.callout.note .callout-label { color: var(--blue); }
.callout.warn { background: var(--amber-light); border-color: var(--amber); }
.callout.warn .callout-label { color: var(--amber); }
.callout.key { background: var(--green-light); border-color: var(--green); }
.callout.key .callout-label { color: var(--green); }
.callout.open { background: var(--purple-light); border-color: var(--purple); }
.callout.open .callout-label { color: var(--purple); }

/* ─── Diagrams ─────────────────────────────── */
.diagram {
  background: var(--code-bg);
  border-radius: 6px;
  padding: 24px 20px 20px;
  margin: 20px 0;
  overflow-x: auto;
}

.diagram-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.diagram .mermaid { display: flex; justify-content: center; }

/* ─── Element grid ─────────────────────────── */
.element-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin: 20px 0;
}

.element-card {
  background: var(--bg);
  padding: 16px 18px;
}

.ec-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.ec-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.ec-desc {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.55;
}

.ec-owns { color: #1d4ed8; background: #dbeafe; }
.ec-uses { color: #065f46; background: #d1fae5; }
.ec-group { color: #92400e; background: #fef3c7; }
.ec-storage { color: #7c3aed; background: #ede9fe; }
.ec-policy { color: #9a3412; background: #ffedd5; }
.ec-service { color: #374151; background: #f3f4f6; }

/* ─── Decision block ───────────────────────── */
.decision {
  border-left: 2px solid var(--line);
  padding: 12px 0 12px 18px;
  margin: 12px 0;
}

.decision-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.decision-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
  font-family: var(--mono);
}

.decision-body {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── Pills ────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--code-bg);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ─── Two-col ──────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

/* ─── Open question block ──────────────────── */
.open-q {
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 14px 0;
  background: var(--purple-light);
}

.open-q-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--purple);
  margin-bottom: 6px;
}

.open-q-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 8px;
}

.open-q-options {
  list-style: none;
  padding: 0;
  margin: 0;
}

.open-q-options li {
  font-size: 14px;
  color: var(--text-2);
  padding: 3px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.open-q-options li::before {
  content: attr(data-opt);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--purple);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ─── Journey accents ──────────────────────── */
body { --accent: var(--blue); }
body.j-understand { --accent: var(--blue); }
body.j-integrate  { --accent: var(--green); }
body.j-decide     { --accent: var(--purple); }

/* ─── Top nav ──────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: var(--content-w); margin: 0 auto; padding: 0 48px;
  height: 52px; display: flex; align-items: center; gap: 22px;
}
.topnav .wordmark {
  font-weight: 700; font-size: 15px; letter-spacing: -0.2px;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.topnav .nav-link {
  font-size: 14.5px; color: var(--text-2); text-decoration: none;
  padding: 15px 2px 13px; border-bottom: 2px solid transparent;
}
.topnav .nav-link:hover { color: var(--text); }
.topnav .nav-link.current { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }

/* ─── Page shell ───────────────────────────── */
.page { max-width: var(--content-w); margin: 0 auto; padding: 56px 48px 120px; }
.page .content { max-width: none; margin: 0; padding: 0; }
.chapter-head { margin-bottom: 48px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.chapter-head h1 {
  font-size: 34px; font-weight: 700; letter-spacing: -0.7px;
  line-height: 1.2; color: var(--text); margin-bottom: 12px;
}
.lede { font-size: 17px; color: var(--text-2); max-width: 560px; }
.content h2.sec {
  font-size: 22px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--text); margin: 56px 0 16px;
}
.content h2.sec:first-child { margin-top: 0; }

/* ─── Prev/next ────────────────────────────── */
.pagenav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line);
}
.pagenav a {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px;
  text-decoration: none; transition: border-color 0.15s;
}
.pagenav a:hover { border-color: var(--accent); }
.pagenav a.next { grid-column: 2; text-align: right; }
.pagenav .dir {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-3);
}
.pagenav .t { font-size: 15px; font-weight: 600; color: var(--text); }

/* ─── Landing: hero + journey doors ────────── */
.landing-hero { max-width: var(--content-w); margin: 0 auto; padding: 88px 48px 48px; }
.landing-hero h1 {
  font-size: 40px; font-weight: 700; letter-spacing: -1px;
  line-height: 1.12; color: var(--text); margin-bottom: 16px; max-width: 600px;
}
.landing-hero .sub { font-size: 18px; color: var(--text-2); max-width: 520px; }
.doors {
  max-width: var(--content-w); margin: 0 auto; padding: 24px 48px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.door {
  display: block; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 22px 18px; text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.door:hover { border-color: var(--door-c); transform: translateY(-2px); }
.door .door-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--door-c); margin-bottom: 10px; display: block;
}
.door h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.door p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin: 0 0 12px; }
.door .door-count { font-size: 13px; color: var(--text-3); font-family: var(--mono); }
.door.d-understand { --door-c: var(--blue); }
.door.d-integrate  { --door-c: var(--green); }
.door.d-decide     { --door-c: var(--purple); }

/* ─── Landing: system map ──────────────────── */
.glance { max-width: var(--content-w); margin: 0 auto; padding: 72px 48px 96px; }
.glance .glance-label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 20px;
}
.sysmap {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch;
}
.sm-panel { border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.sm-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 14px;
}
.sm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sm-row:last-child { margin-bottom: 0; }
.sm-node {
  position: relative; display: inline-block;
  font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 13px; background: var(--bg);
  transition: border-color 0.15s;
}
.sm-node:hover { border-color: var(--blue); }
.sm-node.sm-core { border-color: var(--blue); background: var(--blue-light); }
.sm-node:hover::after {
  content: attr(data-tip);
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20;
  width: max-content; max-width: 240px;
  font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.sm-arrow { color: var(--text-4); font-size: 14px; }
.sm-link {
  align-self: center; text-align: center;
  font-family: var(--mono); font-size: 12px; color: var(--text-3); line-height: 1.6;
}

/* ─── Decision records ─────────────────────── */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.8px; padding: 3px 9px; border-radius: 4px; border: 1px solid;
}
.badge.adopted    { color: var(--green);  background: var(--green-light);  border-color: var(--green); }
.badge.evaluating { color: var(--amber);  background: var(--amber-light);  border-color: var(--amber); }
.badge.open       { color: var(--purple); background: var(--purple-light); border-color: var(--purple); }
.badge.analysis   { color: var(--blue);   background: var(--blue-light);   border-color: var(--blue); }
.record-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-size: 13.5px; color: var(--text-3); font-family: var(--mono);
}
.record-list { list-style: none; padding: 0; margin: 24px 0; }
.record-list li { border-bottom: 1px solid var(--line-subtle); padding: 0; }
.record-list a {
  display: flex; align-items: baseline; gap: 14px; padding: 16px 4px;
  text-decoration: none; transition: background 0.1s;
}
.record-list a:hover { background: var(--hover); }
.record-list .rl-title { font-size: 16px; font-weight: 600; color: var(--text); }
.record-list .rl-desc { font-size: 14px; color: var(--text-3); margin-left: auto; text-align: right; max-width: 320px; }

/* ─── Footer ───────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner {
  max-width: var(--content-w); margin: 0 auto; padding: 28px 48px;
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-3);
}
.site-footer a { color: var(--text-3); }
.site-footer a:hover { color: var(--text); }

/* ─── State grid ───────────────────────────── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}

.state-card {
  background: var(--bg);
  padding: 14px 16px;
}

.sc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}

.sc-header {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.sc-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.sc-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
}

.s-absent .sc-dot     { background: var(--text-4); }
.s-folder .sc-dot     { background: var(--green); }
.s-placeholder .sc-dot{ background: var(--amber); }
.s-hydrated .sc-dot   { background: var(--blue); }
.s-modified .sc-dot   { background: #ea580c; }
.s-conflicted .sc-dot { background: #dc2626; }

/* ─── Responsive ───────────────────────────── */
@media (max-width: 760px) {
  .doors, .sysmap { grid-template-columns: 1fr; }
  .pagenav { grid-template-columns: 1fr; }
  .pagenav a.next { grid-column: 1; }
  .topnav-inner, .page, .doors, .landing-hero, .glance, .site-footer-inner { padding-left: 24px; padding-right: 24px; }
}

/* ─── Icons ────────────────────────────────── */
.ic { width: 15px; height: 15px; vertical-align: -3px; flex-shrink: 0; }
.door-num .ic { width: 15px; height: 15px; vertical-align: -3.5px; margin-right: 1px; }
.sm-node .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; color: var(--text-3); }
.sm-node.sm-core .ic { color: var(--blue); }

.callout-label::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 6px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: var(--ico) no-repeat center / contain;
  mask: var(--ico) no-repeat center / contain;
}
.callout.note .callout-label::before { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%3C%2Fsvg%3E"); }
.callout.warn .callout-label::before { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22m21.73%2018-8-14a2%202%200%200%200-3.48%200l-8%2014A2%202%200%200%200%204%2021h16a2%202%200%200%200%201.73-3%22%20%2F%3E%3Cpath%20d%3D%22M12%209v4%22%20%2F%3E%3Cpath%20d%3D%22M12%2017h.01%22%20%2F%3E%3C%2Fsvg%3E"); }
.callout.key .callout-label::before  { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Cpath%20d%3D%22M2.586%2017.414A2%202%200%200%200%202%2018.828V21a1%201%200%200%200%201%201h3a1%201%200%200%200%201-1v-1a1%201%200%200%201%201-1h1a1%201%200%200%200%201-1v-1a1%201%200%200%201%201-1h.172a2%202%200%200%200%201.414-.586l.814-.814a6.5%206.5%200%201%200-4-4z%22%20%2F%3E%3Ccircle%20cx%3D%2216.5%22%20cy%3D%227.5%22%20r%3D%22.5%22%20fill%3D%22currentColor%22%20%2F%3E%3C%2Fsvg%3E"); }
.callout.open .callout-label::before { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%3Cpath%20d%3D%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22%20%2F%3E%3Cpath%20d%3D%22M12%2017h.01%22%20%2F%3E%3C%2Fsvg%3E"); }
.open-q-label::before {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  margin-right: 5px;
  vertical-align: -2.5px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%3Cpath%20d%3D%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22%20%2F%3E%3Cpath%20d%3D%22M12%2017h.01%22%20%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%3Cpath%20d%3D%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22%20%2F%3E%3Cpath%20d%3D%22M12%2017h.01%22%20%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

/* ---- FAQ page ---- */
.p-faq h2.sec { display: flex; align-items: center; gap: 12px; margin: 64px 0 24px; }
.p-faq h2.sec::before { content: ""; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex: none; }
.p-faq h2.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.p-faq h2.sec:first-child { margin-top: 0; }
.faq-item { margin: 24px 0; padding: 18px 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.faq-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.faq-meta .badge { flex: none; }
.faq-more { font-size: 13px; display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; text-align: right; }
.faq-more-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-3); flex: none; }
.faq-more a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.faq-more a:hover { border-bottom-color: var(--accent); }
.faq-more a::after { content: " →"; color: var(--text-3); }
.faq-q { font-weight: 600; font-size: 16.5px; line-height: 1.5; color: var(--text); }
.faq-a { margin-top: 12px; color: var(--text-2); }
.faq-a p { margin: 10px 0; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 10px 0 10px 4px; }

/* FAQ toolbar: section jumps + status filters */
.faq-toolbar {
  position: sticky; top: 53px; z-index: 40;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  align-items: center; justify-content: space-between;
  padding: 12px 0; margin-bottom: 8px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.faq-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-jump a {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  background: var(--code-bg); padding: 4px 9px; border-radius: 4px;
  text-decoration: none; transition: color 0.15s;
}
.faq-jump a:hover { color: var(--text); }
.faq-filter { display: flex; gap: 6px; }
.ff-btn {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.ff-btn:hover { border-color: var(--text-3); }
.ff-btn.active { border-color: var(--text); color: var(--text); }
.ff-btn.ff-answered.active { color: var(--green); background: var(--green-light); border-color: var(--green); }
.ff-btn.ff-deferred.active { color: var(--amber); background: var(--amber-light); border-color: var(--amber); }
.ff-btn.ff-open.active     { color: var(--purple); background: var(--purple-light); border-color: var(--purple); }
.ff-count { opacity: 0.65; margin-left: 5px; font-weight: 400; }
.p-faq h2.sec[id] { scroll-margin-top: 116px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ─── Playground cross-links ───────────────── */
.nav-link.nav-playground {
  margin-left: 6px;
  padding: 4px 12px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-weight: 600;
  font-size: 13.5px;
}
.nav-link.nav-playground:hover {
  background: var(--amber);
  color: #fff;
  border-bottom-color: var(--amber);
}

.callout.try { background: var(--amber-light); border-color: var(--amber); }
.callout.try .callout-label { color: var(--amber); }
.callout.try a { color: var(--amber); font-weight: 600; }

.playground-banner {
  max-width: var(--content-w);
  margin: 12px auto 40px;
  padding: 26px 30px;
  border-radius: 10px;
  background:
    radial-gradient(640px 240px at 85% -40%, rgba(255, 180, 84, 0.16), transparent 60%),
    #14181e;
  color: #eef2f6;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.playground-banner .pb-copy { flex: 1; min-width: 260px; }
.playground-banner .pb-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffb454;
}
.playground-banner h3 { font-size: 19px; font-weight: 700; margin: 6px 0 4px; color: #eef2f6; }
.playground-banner p { font-size: 14.5px; color: #aab4c0; line-height: 1.6; }
.playground-banner .pb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: #ffb454;
  color: #1a1206;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
}
.playground-banner .pb-cta:hover { background: #ffc375; }

@media (max-width: 720px) {
  .nav-link.nav-playground { display: none; }
}
