:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --fg: #1a1d23;
  --fg-muted: #5b6270;
  --border: #e3e6ea;
  --accent: #7a3df0;
  --accent-fg: #ffffff;
  --code-bg: #f0f1f4;
  --banner-bg: #fff7e6;
  --banner-border: #f0b429;
  --max-width: 78ch;
  --sidebar-w: 280px;
  --toc-w: 220px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1b1e24;
    --fg: #e7e9ee;
    --fg-muted: #9aa2b1;
    --border: #2a2e37;
    --accent: #a184f7;
    --accent-fg: #14161a;
    --code-bg: #1f232b;
    --banner-bg: #2a2110;
    --banner-border: #b9860b;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: "SF Mono", Menlo, Consolas, monospace; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
pre { background: var(--code-bg); padding: 1em; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .93em; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--border); padding: .5em .7em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); }
blockquote {
  margin: 1.2em 0; padding: .1em 1.2em; border-left: 4px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 8px 8px 0;
}
h1, h2, h3, h4 { line-height: 1.25; scroll-margin-top: 1.2em; }
h1 { font-size: 1.9em; margin-top: 0; }
h2 { font-size: 1.4em; margin-top: 1.8em; border-top: 1px solid var(--border); padding-top: .8em; }
h3 { font-size: 1.15em; }
img { max-width: 100%; }
hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.shell { max-width: 1400px; margin: 0 auto; }
.topbar {
  display: flex; align-items: center; gap: 1em; padding: .8em 1.2em;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.brand { font-weight: 700; color: var(--fg); font-size: 1.05em; }
.brand:hover { text-decoration: none; color: var(--accent); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: 6px; font-size: 1.1em; padding: .2em .6em; color: var(--fg); cursor: pointer;
}
.langs { margin-left: auto; display: flex; gap: .6em; }
.langs a { padding: .2em .6em; border-radius: 6px; border: 1px solid transparent; color: var(--fg-muted); }
.langs a.current { border-color: var(--border); color: var(--fg); font-weight: 600; }

.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); gap: 2em; align-items: start; }
.sidebar { border-right: 1px solid var(--border); position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto; }
.sidebar-inner { padding: 1.4em 1em; }
.sidebar-label { font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); margin: 0 0 .8em; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a { display: block; padding: .4em .5em; border-radius: 6px; color: var(--fg); font-size: .93em; }
.nav-list a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-list li.active a { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.paused-banner:empty { display: none; }

.content { min-width: 0; padding: 1.4em 0 4em; max-width: var(--max-width); }
.fallback-banner, .page-notice {
  background: var(--banner-bg); border: 1px solid var(--banner-border);
  border-radius: 8px; padding: .7em 1em; font-size: .93em; margin-bottom: 1.4em;
}
.page-footer { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--border); font-size: .85em; color: var(--fg-muted); }

.page-toc { position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto; padding: 1.4em 1em 1.4em 0; font-size: .87em; }
.toc-label { font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); margin: 0 0 .6em; }
.page-toc ul { list-style: none; margin: 0; padding-left: 0; }
.page-toc ul ul { padding-left: 1em; }
.page-toc a { color: var(--fg-muted); display: block; padding: .15em 0; }
.page-toc a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .page-toc { display: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 54px 0 0 0; z-index: 20; background: var(--bg);
    transform: translateX(-100%); transition: transform .18s ease; border-right: none;
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 1.4em 1em 4em; max-width: none; }
}

/* --- Interactive founder-decisions form (06-decisions) --- */
.decisions-form { max-width: none; }
.decisions-intro { margin-bottom: 1.6em; }
.decisions-progress {
  position: sticky; top: 54px; z-index: 5; background: var(--bg);
  padding: .6em 0; border-bottom: 1px solid var(--border); margin-bottom: 1.2em;
  font-size: .9em; color: var(--fg-muted); display: flex; align-items: center; gap: .8em;
}
.decisions-progress-bar { flex: 1; height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.decisions-progress-bar > span { display: block; height: 100%; background: var(--accent); width: 0%; transition: width .2s ease; }
.decision-section { margin-top: 2.2em; }
.decision-section h2 { margin-bottom: .8em; }
.decision {
  border: 1px solid var(--border); border-radius: 10px; padding: 1em 1.2em;
  margin-bottom: 1em; background: var(--bg-alt);
}
.decision.is-answered { border-color: var(--accent); }
.decision h3 { margin: 0 0 .7em; font-size: 1.02em; line-height: 1.4; }
.decision-id {
  display: inline-block; font-family: "SF Mono", Menlo, Consolas, monospace;
  background: var(--code-bg); border-radius: 5px; padding: .05em .45em; margin-right: .5em;
  font-size: .85em; font-weight: 700; color: var(--accent);
}
.decision-options { list-style: none; margin: 0 0 .8em; padding: 0; }
.decision-options li {
  border: 1px solid transparent; border-radius: 8px; padding: .3em .5em; margin: .15em 0;
}
.decision-options li.is-recommended { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.decision-options label { display: flex; align-items: baseline; gap: .5em; cursor: pointer; font-size: .95em; }
.decision-options input { margin-top: .3em; flex: none; }
.opt-key { font-weight: 700; color: var(--fg-muted); }
.reco-badge {
  margin-left: auto; font-size: .78em; font-weight: 700; color: var(--accent);
  white-space: nowrap; padding-left: .6em;
}
.decision-reco {
  font-size: .88em; color: var(--fg-muted); background: var(--bg); border-radius: 6px;
  padding: .5em .7em; margin: .4em 0;
}
.decision-extra-note { font-size: .85em; color: var(--fg-muted); font-style: italic; margin: .4em 0; }
textarea.decision-text, textarea.decision-note {
  width: 100%; font: inherit; font-size: .93em; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--fg); padding: .5em .6em; resize: vertical;
}
textarea.decision-note { margin-top: .4em; color: var(--fg-muted); }
.decisions-submit-bar {
  position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--border);
  padding: 1em 0; margin-top: 2em; display: flex; align-items: center; gap: 1em; flex-wrap: wrap;
}
.decisions-submit-bar button {
  font: inherit; font-weight: 700; font-size: 1em; padding: .6em 1.4em; border-radius: 8px;
  border: none; background: var(--accent); color: var(--accent-fg); cursor: pointer;
}
.decisions-submit-bar button:disabled { opacity: .6; cursor: wait; }
.decisions-submit-bar button:hover:not(:disabled) { filter: brightness(1.08); }
.submit-status { font-size: .9em; }
.submit-status.ok { color: #1a8f4a; }
.submit-status.err { color: #d1443a; }
.submit-status.pending { color: var(--fg-muted); }
