/*
 * Claude Code for Developers Workshop — stylesheet
 * Palette from scbdeck.py (slide builder):
 *   ink #1F2430  bg #FAF9F5  card #FFFFFD
 *   night #0B1F44  night-t #F4F2EC  night-m #A3ACC0
 *   kw #B5532F  orange #D97757  orange-t #FBEAE2
 *   green #2E9E6B  green-t #E2F3EA  green-d #1D6A48
 *   teal #0E8AA8  teal-t #DEF1F6   teal-d #0A6680
 *   gold #D99A1E  gold-t #FBF0D8   gold-d #7A5300
 *   slate #5B6375  mute #9AA1AE  line #E3E0D6
 */

/* ── Self-hosted fonts (IBM Plex v23, OFL 1.1 — github.com/IBM/plex) ─ */

/* Latin-ext loaded first; latin loaded second so the browser prefers
   the narrower latin file for plain ASCII pages */

/* IBM Plex Sans — variable weight 400–600 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --ink:      #1f2430;
  --night:    #0b1f44;
  --night-t:  #f4f2ec;
  --night-m:  #a3acc0;
  --bg:       #faf9f5;
  --bg2:      #f1efe8;
  --card:     #fffffd;
  --line:     #e3e0d6;
  --slate:    #5b6375;
  --mute:     #9aa1ae;
  --kw:       #b5532f;
  --orange:   #d97757;
  --orange-t: #fbeae2;
  --green:    #2e9e6b;
  --green-t:  #e2f3ea;
  --green-d:  #1d6a48;
  --teal:     #0e8aa8;
  --teal-t:   #def1f6;
  --teal-d:   #0a6680;
  --gold:     #d99a1e;
  --gold-t:   #fbf0d8;
  --gold-d:   #7a5300;
  --purple:   #6b4fbb;
  --purple-t: #f0ecfa;
  --purple-d: #4a2d9c;
  --sidebar-w: 240px;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
}

/* ── Base link style — defined before any component overrides ─ */
a {
  color: var(--teal-d);
  text-decoration: none;
}

a:hover {
  color: var(--kw);
  text-decoration: underline;
}

.page-refs a {
  color: var(--teal-d);
}


p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
}

p:last-child {
  margin-bottom: 0;
}

li {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 4px;
}

/* ── Sidebar (matches Section slide layout) ──────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--night);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

a.sidebar-brand {
  text-decoration: none;
  color: inherit;
}

.sidebar-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--night-m);
  letter-spacing: 0.03em;
}

.sidebar-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--night-t);
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-title strong {
  color: var(--orange);
}

/* sidebar-subtitle removed — client name not shown on public site */

.sidebar-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 30%);
  padding: 18px 20px 5px;
}

.sidebar nav {
  padding: 4px 0 20px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--night-m);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.1s, color 0.1s;
}

.sidebar nav a:hover {
  background: rgb(255 255 255 / 6%);
  color: var(--night-t);
}

.sidebar nav a.active {
  background: rgb(217 119 87 / 12%);
  color: var(--night-t);
  border-left-color: var(--orange);
  font-weight: 500;
}

.tag {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 500;
  flex-shrink: 0;
}

.tag-optional {
  background: rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 45%);
}

/* ── Main layout ──────────────────────────────────────────── */

/* Content grows to fill the page; padding scales with viewport width */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 40px clamp(24px, 5vw, 60px) 80px;
  min-width: 0;
}

.content {
  max-width: 1000px;
}

/* ── Sidebar footer (export + print buttons) ──────────────── */
.sidebar-footer {
  margin-top: auto;
  padding: 14px 20px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.export-btn,
.print-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--night-m);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  text-align: left;
}

.export-btn:hover,
.print-btn:hover {
  background: rgb(255 255 255 / 10%);
  color: var(--night-t);
}

.export-btn:disabled,
.print-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ── Knowledge refresher (expandable <details>) ──────────── */
details.knowledge-review {
  border: 1px solid rgb(14 138 168 / 25%);
  border-radius: 10px;
  margin: 20px 0;
  background: var(--teal-t);
}

details.knowledge-review summary {
  cursor: pointer;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--teal-d);
  list-style: none;
  user-select: none;
}

details.knowledge-review summary::-webkit-details-marker {
  display: none;
}



.knowledge-body {
  padding: 0 18px 14px;
  border-top: 1px solid rgb(14 138 168 / 15%);
}

.knowledge-body p,
.knowledge-body li {
  font-size: 14px;
  color: var(--ink);
}

/* ── Prism line-numbers + line-highlight theme overrides ───── */

/* Line-numbers: needs its own left padding; must override our general pre rule */
pre.line-numbers[class*="language-"] {
  padding-left: 3.8em !important;
}

/* Line numbers gutter — match our night theme */
.line-numbers .line-numbers-rows {
  border-right: 1px solid rgb(255 255 255 / 10%);
}

.line-numbers-rows > span::before {
  color: var(--night-m);
}

/* Keep Markup highlight spans — exact line colouring, no positioning maths */
.hl-deny {
  display: block;
  background: rgb(217 119 87 / 10%);
  border-left: 3px solid var(--orange);
  margin: 0 -20px 0 -1.4em;
  padding: 0 20px 0 1.4em;
}

.hl-ask {
  display: block;
  background: rgb(14 138 168 / 10%);
  border-left: 3px solid var(--teal);
  margin: 0 -20px 0 -1.4em;
  padding: 0 20px 0 1.4em;
}

/* Legacy .line-highlight kept for future data-line use */
.line-highlight {
  background: rgb(217 119 87 / 10%);
  border-left: 3px solid var(--orange);
  margin-top: 0;
  margin-left: 3.8em;
}

/* ── Code annotation table (below code blocks) ───────────── */
.code-anno {
  margin: -6px 0 16px;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.code-anno-row {
  display: flex;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
}

.code-anno-row:last-child {
  border-bottom: none;
}

.code-anno-tag {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.tag-deny {
  background: var(--orange-t);
  color: var(--kw);
}

.tag-ask {
  background: var(--teal-t);
  color: var(--teal-d);
}

/* ── Done / not-done outcome grid ─────────────────────────── */
.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.outcome-notdone {
  border-radius: 10px;
  padding: 14px 18px;
  background: var(--gold-t);
  border: 1px solid rgb(217 154 30 / 25%);
  font-size: 14.5px;
  line-height: 1.55;
}

.outcome-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--gold-d);
}

@media (width <= 700px) {
  .outcome-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Appendix section ─────────────────────────────────────── */
.appendix-header {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 40px 0 4px;
}

.page-refs {
  font-size: 13px;
  color: var(--slate);
  padding-left: 20px;
  margin: 4px 0 24px;
  line-height: 1.8;
}

/* ── Learning goals (bottom of task pages) ────────────────── */

/* h2 and ul scoped here — base rules appear earlier in the file */
.learning-goals {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 32px;
}

.learning-goals-h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.learning-goals-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.learning-goals-list li {
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 4px;
}

/* ── Expandable example (details.example) ─────────────────── */
details.example {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  background: var(--card);
}

details.example summary {
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  list-style: none;
  user-select: none;
}

details.example summary::-webkit-details-marker {
  display: none;
}



/* Shared toggle arrow for all collapsible detail variants */
details.example summary::before,
details.knowledge-review summary::before,
details.appendix-item summary::before {
  content: "▶  ";
  font-size: 10px;
}

details.example[open] summary::before,
details.knowledge-review[open] summary::before,
details.appendix-item[open] summary::before {
  content: "▼  ";
}

.example-body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
}

/* ── Appendix item (details.appendix-item) ────────────────── */
details.appendix-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  background: var(--card);
}

details.appendix-item summary {
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  list-style: none;
  user-select: none;
}

details.appendix-item summary::-webkit-details-marker {
  display: none;
}

.appendix-body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
}

/* ── Step annotation (micro "why" note) ───────────────────── */
.step-why {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 10px;
  font-style: italic;
}

@media print {
  /* ── Hide all UI chrome ──────────────────────────────────── */
  .sidebar,
  .print-actions,
  .opt-btn,
  .copy-btn,
  .sidebar-footer,
  .export-btn,
  .option-selector,
  .method-selector,
  .method-btn {
    display: none !important;
  }

  /* ── Reveal all method panes so both paths appear in PDF ─── */
  .method-pane {
    display: block !important;
  }

  /* ── Stack screenshot layout vertically for print ─────────── */
  .screenshot-layout {
    flex-direction: column;
  }

  .main {
    margin-left: 0;
    padding: 24px 32px;
  }

  /* ── Show full URLs after links ──────────────────────────── */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10px;
    color: #666;
  }

  /* ── Expand ALL <details> (CSS can open [open] state,
         JS beforeprint handles actually setting .open = true) */
  details,
  details > * {
    display: block !important;
  }

  details summary::before {
    content: none !important;
  }

  /* ── Fix grey-bar artifact from absolutely-positioned copy button
         inside position:relative pre — make pre non-positioning context */
  pre,
  pre[class*="language-"] {
    position: static !important;
    overflow: visible !important;
    white-space: pre-wrap !important;
  }

  /* ── Page breaks ─────────────────────────────────────────── */

  /* Let content flow naturally — no forced breaks on h2.
     Only prevent orphaned headings by avoiding breaks immediately after. */
  h1,
  h2 {
    page-break-after: avoid;
    break-after: avoid;
  }

  h1 {
    page-break-before: avoid;
    break-before: avoid;
  }

  /* Keep these elements together on one page where possible */
  pre,
  .callout,
  .step,
  .code-anno,
  .outcome-grid,
  .learning-goals {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* ── Page label (optional / time above h1) ───────────────── */
.page-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}

/* ── Typography ───────────────────────────────────────────── */
h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-desc {
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 36px;
  line-height: 1.55;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}



/* Links: component-level link overrides come after the base rule above */
ul,
ol {
  padding-left: 20px;
  margin-bottom: 12px;
}


hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* ── Inline code ──────────────────────────────────────────── */
code {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, Menlo, monospace;
  font-size: 0.875em;
  background: var(--orange-t);
  color: var(--kw);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Code blocks (Prism.js overrides) ────────────────────── */

/* Override Prism-okaidia background with our night color */
pre[class*="language-"],
code[class*="language-"] {
  background: var(--night) !important;
  color: var(--night-t) !important;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, Menlo, monospace !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

pre[class*="language-"] {
  position: relative;
  border-radius: 10px !important;
  margin: 10px 0 16px !important;
  padding: 18px 72px 18px 20px !important;
  overflow-x: auto;
  box-shadow: none !important;
  border: none !important;
}

/* Plain pre (no language class) — same style */
pre:not([class*="language-"]) {
  position: relative;
  background: var(--night);
  border-radius: 10px;
  margin: 10px 0 16px;
  overflow-x: auto;
}

pre:not([class*="language-"]) code {
  display: block;
  color: var(--night-t);
  background: none;
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;

  /* right padding prevents copy button overlap; min-width prevents short-line truncation */
  padding: 18px 72px 18px 20px;
  min-width: 200px;
  white-space: pre;
}

/* ── Code-block wrapper (keeps copy button in visible corner) ─ */
.pre-wrap {
  position: relative;
}

/* ── Copy button ──────────────────────────────────────────── */
.copy-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid rgb(255 255 255 / 15%);
  background: rgb(255 255 255 / 7%);
  color: var(--night-m);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 1;
}

.copy-btn:hover {
  background: rgb(255 255 255 / 14%);
  color: var(--night-t);
}

.copy-btn.copied {
  background: rgb(46 158 107 / 35%);
  color: var(--night-t);
  border-color: transparent;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  margin: 20px 0;
}

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kw);
  color: var(--night-t);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-body {
  flex: 1;
  min-width: 0;
}

/* ── File tree ────────────────────────────────────────────── */
.file-tree {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 8px 0 12px;
  display: inline-block;
  min-width: 220px;
}

.ft-root {
  color: var(--ink);
  font-weight: 600;
}

.ft-line {
  color: var(--slate);
}

.ft-new {
  color: var(--kw);
  font-weight: 500;
}

.ft-new .ft-badge {
  font-size: 11px;
  color: var(--kw);
  opacity: 0.75;
  font-style: italic;
}

/* ── Callout boxes ────────────────────────────────────────── */
.callout {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.callout-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.callout-done {
  background: var(--green-t);
  border: 1px solid rgb(46 158 107 / 25%);
}

.callout-done .callout-label {
  color: var(--green-d);
}

.callout-blocked {
  background: var(--gold-t);
  border: 1px solid rgb(217 154 30 / 25%);
}

.callout-blocked .callout-label {
  color: var(--gold-d);
}

.callout-info {
  background: var(--teal-t);
  border: 1px solid rgb(14 138 168 / 22%);
}

.callout-info .callout-label {
  color: var(--teal-d);
}

.callout-project {
  background: var(--purple-t);
  border: 1px solid rgb(107 79 187 / 22%);
}

.callout-project .callout-label {
  color: var(--purple-d);
}

/* ── Option cards (informational only — no hover interaction) */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 28px;
}

.option-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.option-card.option-primary {
  border-color: var(--orange);
}

.option-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kw);
  margin-bottom: 6px;
}

.option-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.option-card p {
  margin: 0;
  font-size: 13px;
  color: var(--slate);
}

/* ── Summary table (task overview on landing page) ───────── */
.setup-summary {
  font-size: 14px;
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

.setup-summary th,
.setup-summary td {
  text-align: left;
  padding: 8px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.setup-summary th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.setup-summary tr:last-child td {
  border-bottom: none;
}

/* ── Prereq list ──────────────────────────────────────────── */

/* Grid layout: description grows, link stays on the same row */
.prereq-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.prereq-list li {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: start;
  gap: 8px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.prereq-list li:last-child {
  border-bottom: none;
}

.prereq-name {
  font-weight: 500;
}

.prereq-link {
  color: var(--teal-d);
  font-size: 13px;
  white-space: nowrap;
  padding-top: 1px;
}

.prereq-link:hover {
  color: var(--kw);
}

/* ── WIP banner ───────────────────────────────────────────── */
.wip-banner {
  background: var(--gold-t);
  border: 1px solid rgb(217 154 30 / 25%);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 36px;
  font-size: 14px;
  color: var(--gold-d);
}

/* ── Surface note (VS Code / CLI callout) ─────────────────── */
.surface-note {
  background: var(--night);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--night-m);
  line-height: 1.65;
}

.surface-note p {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--night-m);
  line-height: 1.65;
}

.surface-note p:last-child {
  margin-bottom: 0;
}

.surface-note strong {
  color: var(--night-t);
}

/* ── Option tabs (interactive path selector) ──────────────── */
.option-selector {
  display: flex;
  gap: 0;
  margin: 20px 0 0;
  border-bottom: 2px solid var(--line);
}

.opt-btn {
  padding: 10px 20px;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
}

.opt-btn:hover {
  color: var(--ink);
}

.opt-btn.active {
  color: var(--kw);
  border-bottom-color: var(--kw);
  font-weight: 600;
}

.opt-pane[hidden] {
  display: none;
}

.opt-pane-label {
  font-size: 11px;
  font-variant: small-caps;
  color: var(--mute);
  letter-spacing: 0.05em;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* ── Method tabs (VS Code GUI / CLI within a step) ─────────── */
.method-selector {
  display: flex;
  gap: 6px;
  margin: 14px 0 0;
}

.method-btn {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--slate);
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.method-btn.active {
  background: var(--night);
  color: var(--night-t);
  border-color: var(--night);
}

.method-pane {
  margin-top: 12px;
}

.method-pane[hidden] {
  display: none;
}



/* ── Lightbox overlay ─────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 24px;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgb(0 0 0 / 60%);
}

/* ── Screenshot + instructions 2-col layout ─────────────────── */
.screenshot-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 16px 0;
}

.screenshot-layout .screenshot-instructions {
  flex: 1;
  min-width: 0;
}

.screenshot-layout figure {
  flex-shrink: 0;
  flex-basis: 300px;
  min-width: 260px;
  margin: 0;
}

.screenshot-layout figure img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.screenshot-layout figcaption {
  font-size: 11px;
  color: var(--mute);
  margin-top: 4px;
  text-align: center;
}


/* ── Responsive ───────────────────────────────────────────── */
@media (width <= 900px) {
  .options {
    grid-template-columns: 1fr;
  }

  .prereq-list li {
    grid-template-columns: 140px 1fr auto;
  }
}

@media (width <= 700px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 24px 20px 60px;
  }

  .prereq-list li {
    grid-template-columns: 1fr;
  }

  .prereq-link {
    justify-self: start;
  }

  .screenshot-layout {
    flex-direction: column;
  }
}
