/* ─── Slide h3 ───────────────────────────────────────────────────────────── */
h3.slide-h3 {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  color: var(--text);
  margin: 1.1rem 0 0.5rem;
}
h3.slide-h3:first-child { margin-top: 0; }

/* ─── Bullet lists ───────────────────────────────────────────────────────── */
ul.list {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
}
ul.list li { margin-bottom: 0.35rem; }

/* ─── Pill note ──────────────────────────────────────────────────────────── */
.pill-note {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  margin-top: 0.85rem;
}
.pill-note:first-child { margin-top: 0; }

/* ─── Code grid ──────────────────────────────────────────────────────────── */
.code-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 720px) { .code-grid { grid-template-columns: 1fr 1fr; } }

pre.code {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid #334155;
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
}
pre.code .label {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tok-key  { color: #7dd3fc; }
.tok-str  { color: #86efac; }
.tok-num  { color: #fcd34d; }
.tok-punc { color: #94a3b8; }

/* ─── Formation plan tracks grid ─────────────────────────────────────────── */
.fp-tracks {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) { .fp-tracks { grid-template-columns: repeat(3, 1fr); } }

.fp-track {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
}
.fp-track h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.fp-track p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ─── Formation plan path cards ──────────────────────────────────────────── */
.fp-paths {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
@media (min-width: 560px) { .fp-paths { grid-template-columns: 1fr 1fr; } }

.fp-path-card {
  border-radius: 10px;
  padding: 1rem;
  border: 2px solid transparent;
}
.fp-path-card--a { background: var(--week2-soft); border-color: #c4b5fd; }
.fp-path-card--b { background: #f0fdf4; border-color: #bbf7d0; }
.fp-path-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.fp-path-card--a h3 { color: var(--week2); }
.fp-path-card--b h3 { color: #16a34a; }
.fp-path-card p { font-size: 0.87rem; line-height: 1.5; color: var(--text-muted); }

/* ─── Track detail (week 4) ──────────────────────────────────────────────── */
.track-detail h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0.85rem 0 0.35rem;
}
.track-detail h3:first-child { margin-top: 0; }
.track-detail ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: clamp(0.88rem, 1.7vw, 0.98rem);
  line-height: 1.55;
}
.track-detail li { margin-bottom: 0.3rem; }

/* ─── Architecture SVG diagram ───────────────────────────────────────────── */
@keyframes nodeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes arrowDraw {
  from { opacity: 0; stroke-dashoffset: 48; }
  to   { opacity: 1; stroke-dashoffset: 0; }
}

.arch-wrap {
  margin-top: 1.5rem;
  margin-inline: auto;
  max-width: min(100%, 52rem);
  padding: 1.5rem clamp(1.5rem, 10vw, 5rem);
  box-sizing: border-box;
}
.arch-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}
.arch-svg .box {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
.slide-arch.is-active .arch-svg .box:nth-of-type(1) { animation: nodeIn 0.55s ease backwards; animation-delay: 0.05s; }
.slide-arch.is-active .arch-svg .box:nth-of-type(2) { animation: nodeIn 0.55s ease backwards; animation-delay: 0.18s; }
.slide-arch.is-active .arch-svg .box:nth-of-type(3) { animation: nodeIn 0.55s ease backwards; animation-delay: 0.31s; }
.slide-arch.is-active .arch-svg .box:nth-of-type(4) { animation: nodeIn 0.55s ease backwards; animation-delay: 0.44s; }
.arch-svg text {
  fill: var(--text);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}
.arch-svg .arrow-line {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  marker-end: url(#arch-arrowhead);
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.slide-arch.is-active .arch-svg .arrow-line:nth-of-type(1) { animation: arrowDraw 0.45s ease forwards; animation-delay: 0.12s; }
.slide-arch.is-active .arch-svg .arrow-line:nth-of-type(2) { animation: arrowDraw 0.45s ease forwards; animation-delay: 0.25s; }
.slide-arch.is-active .arch-svg .arrow-line:nth-of-type(3) { animation: arrowDraw 0.45s ease forwards; animation-delay: 0.38s; }

/* ─── Process flow map ───────────────────────────────────────────────────── */
.process-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  max-width: min(100%, 52rem);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 8vw, 4rem);
  box-sizing: border-box;
  font-size: clamp(0.68rem, 1.35vw, 0.82rem);
  line-height: 1.35;
  margin-top: 1.25rem;
}
.pf-node {
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.pf-node--accent { border-color: var(--accent); }
.pf-node strong {
  display: block;
  font-size: 1.05em;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.pf-node span, .pf-sub { color: var(--text-muted); font-weight: 500; }
.pf-sub { display: block; font-size: 0.88em; margin-top: 0.2rem; }
.pf-dual-shell { --pf-col-gap: clamp(0.65rem, 2.2vw, 1.1rem); width: 100%; }
.pf-dual-cols {
  display: flex;
  gap: var(--pf-col-gap);
  width: 100%;
  align-items: stretch;
}
.pf-dual-cols > * { flex: 1 1 0; min-width: 0; }
.pf-branch { display: flex; flex-direction: column; align-items: center; }
.pf-tracks-row {
  display: flex;
  gap: clamp(0.35rem, 1.5vw, 0.75rem);
  width: 100%;
  margin-top: 4px;
}
.pf-tracks-row > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 620px) { .pf-tracks-row { flex-direction: column; } }
.pf-track {
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  text-align: center;
  background: var(--accent-soft);
}
.pf-track strong { display: block; color: var(--accent-ink); font-size: 0.95em; margin-bottom: 0.25rem; }
.pf-track span { display: block; color: var(--text-muted); font-size: 0.85em; line-height: 1.4; }
