/* ============================================================
   PolarisGCS · First Project Review
   Per-slide layouts.

   The interactive diagrams (RF chart, literature table,
   architecture SVG, gateway tier board, telemetry SVG, mission
   lifecycle, methodology pipeline) are unchanged from the prior
   pass — their sections are marked DIAGRAM, UNCHANGED below.
   Everything else has been rebuilt flatter and shorter.
   ============================================================ */

/* ============================================================
   1. Title slide
   ============================================================ */

.slide-title .stage { background: var(--paper); }
.slide-title .stage-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding: 0 6vw;
}

.title-headline {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 0.9rem 0;
}
.title-headline .hl { display: block; color: var(--ink); font-size: 2.05rem; letter-spacing: -0.022em; margin-top: 0.4rem; }

.title-sub {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink-2);
  max-width: 40ch;
  line-height: 1.55;
  margin: 0 0 1.4rem 0;
}

.title-tags { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.title-shot { position: relative; }
.title-shot img {
  display: block; width: 100%; height: 320px;
  object-fit: cover; object-position: top center;
  border-radius: 14px; border: 1px solid var(--line);
  cursor: zoom-in;
}
.title-shot figcaption { text-align: right; margin-top: 0.5rem; }

/* ============================================================
   2. Problem — fragmented toolchains
   ============================================================ */

.silo-row { display: flex; gap: 0; margin-top: 0.3rem; }
.silo-row .silo {
  flex: 1;
  padding: 0 1.3rem;
  border-left: 1px solid var(--line);
}
.silo-row .silo:first-child { padding-left: 0; border-left: none; }

.silo .silo-t { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.4rem; }
.silo .silo-h { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.7rem; }
.silo .silo-stack { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.6rem; }
.silo .silo-stack span { font-size: 0.82rem; font-weight: 500; color: var(--ink-2); }
.silo .silo-cost { font-size: 0.76rem; font-weight: 700; color: var(--ink); }

.frag-chart-wrap { margin-top: 1.4rem; }
.frag-chart-wrap .fc-lbl { font-size: 0.68rem; font-weight: 700; color: var(--ink-3); margin-bottom: 0.4rem; }

/* ============================================================
   3. RF budget simulator — DIAGRAM, UNCHANGED
   ============================================================ */

.rf-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; }

.rf-panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 1rem 1.15rem 1.15rem;
}
.rf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.75rem; }
.rf-head .t { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); }
.rf-head .n { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

.rf-slider { width: 100%; margin: 0 0 0.9rem; accent-color: var(--blue); height: 22px; cursor: pointer; }

.rf-fleet { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; min-height: 36px; align-content: flex-start; }
.rf-drone {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 0.68rem; font-weight: 800; color: var(--ink-4);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.rf-drone.live { background: var(--blue-pale); border-color: var(--blue); color: var(--blue-ink); }
.rf-drone.warn { background: var(--amber-pale); border-color: var(--amber); color: var(--amber); }
.rf-drone.bad  { background: var(--red-pale);   border-color: var(--red);   color: var(--red); }

.rf-meter { height: 26px; background: var(--surface-2); border-radius: 7px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.rf-meter .fill { height: 100%; background: var(--blue); width: 100%; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.rf-meter .fill.warn { background: var(--amber); }
.rf-meter .fill.bad  { background: var(--red); }
.rf-meter .lbl {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 0.6rem; font-size: 0.7rem; font-weight: 800; color: var(--ink);
}

.rf-legend { display: flex; gap: 1.1rem; margin-top: 0.7rem; }
.rf-legend span { display: flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; font-weight: 600; color: var(--ink-2); }
.rf-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }

.rf-verdict {
  margin-top: 0.85rem; padding: 0.6rem 0.8rem; border-radius: 9px;
  font-size: 0.8rem; font-weight: 700; line-height: 1.4;
  background: var(--surface); color: var(--ink);
}

/* ============================================================
   4. Literature review table — DIAGRAM, UNCHANGED
   ============================================================ */

.lit-wrap { display: grid; grid-template-columns: 1.42fr 1fr; gap: 1.4rem; align-items: start; }

/* 15 rows don't fit flat in 720px, so the table scrolls within a fixed
   window rather than shrinking rows to the point of being unreadable. */
.lit-table {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 440px; overflow-y: auto;
  padding-right: 4px; margin-right: -4px;
  scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.lit-table::-webkit-scrollbar { width: 5px; }
.lit-table::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 3px; }
.lit-table::-webkit-scrollbar-track { background: transparent; }

.lit-row {
  display: grid;
  grid-template-columns: 28px 1fr 104px 42px;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-2);
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), transform 0.16s var(--ease);
}
.lit-row:hover { transform: translateX(3px); border-left-color: var(--blue-mid); }
.lit-row.on { border-left-color: var(--blue); background: var(--blue-pale); }
.lit-row.base { border-left-color: var(--amber); }
.lit-row.base.on { border-left-color: var(--amber); background: var(--amber-pale); }

.lit-row .idx { font-size: 0.68rem; font-weight: 800; color: var(--ink-4); }
.lit-row.base .idx { color: var(--amber); }
.lit-row .ttl { font-size: 0.78rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.lit-row .ttl em { display: block; font-style: normal; font-size: 0.68rem; font-weight: 600; color: var(--ink-3); margin-top: 1px; }
.lit-row .ven { font-size: 0.63rem; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.lit-row .yr { font-size: 0.7rem; font-weight: 800; color: var(--blue); text-align: right; }

.lit-detail {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.95rem 1.05rem;
  min-height: 335px;
  display: flex; flex-direction: column;
}
.lit-detail .d-tag {
  display: inline-flex; align-self: flex-start; margin-bottom: 0.55rem;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 0.25rem 0.55rem; border-radius: 4px;
}
.lit-detail.base .d-tag { background: var(--amber); }
.lit-detail .d-ttl { font-size: 0.94rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 0.3rem; }
.lit-detail .d-meta { font-size: 0.7rem; font-weight: 600; color: var(--ink-3); margin-bottom: 0.75rem; line-height: 1.4; }
.lit-detail .d-k {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 0.22rem;
}
.lit-detail .d-v { font-size: 0.8rem; font-weight: 500; color: var(--ink-2); line-height: 1.45; margin-bottom: 0.7rem; }
.lit-detail .d-v b { color: var(--ink); font-weight: 700; }
.lit-detail .d-gap {
  margin-top: auto; padding: 0.55rem 0.7rem; border-radius: 8px;
  background: var(--surface);
  font-size: 0.76rem; font-weight: 600; color: var(--ink); line-height: 1.4;
}

.lit-hint { font-size: 0.68rem; font-weight: 600; color: var(--ink-4); margin-top: 0.5rem; }

/* ============================================================
   5. Base paper + gap — simplified to a plain list
   ============================================================ */

.gap-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.2rem; align-items: start; }

.base-card .b-tag {
  display: inline-flex; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 0.7rem;
}
.base-card .b-ttl { font-family: var(--display); font-size: 1.28rem; font-weight: 700; line-height: 1.28; color: var(--ink); margin-bottom: 0.6rem; }
.base-card .b-au { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); line-height: 1.5; margin-bottom: 0.9rem; }
.base-card .b-au b { color: var(--ink); font-weight: 700; }
.base-card .b-txt { font-size: 0.86rem; font-weight: 500; color: var(--ink-2); line-height: 1.55; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.base-card .b-doi { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); }

.gap-row {
  display: grid; grid-template-columns: 1fr 1.6rem 1fr;
  align-items: center; gap: 0.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.gap-row:first-child { border-top: none; padding-top: 0; }
.gap-row .g-k {
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 0.2rem;
}
.gap-row .g-ours .g-k { color: var(--blue); }
.gap-row .g-t { font-size: 0.83rem; font-weight: 600; color: var(--ink); line-height: 1.34; }
.gap-row .g-ours .g-t { font-weight: 700; }
.gap-row .g-arrow { display: grid; place-items: center; font-size: 0.95rem; font-weight: 800; color: var(--blue); }

/* ============================================================
   6–8. Use case slides — one figure, plain list
   ============================================================ */

.uc-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: start; }

.uc-who { font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.5; margin-bottom: 1.1rem; }
.uc-who b { color: var(--blue-ink); font-weight: 700; }

.uc-cite { font-size: 0.76rem; font-weight: 500; color: var(--ink-2); line-height: 1.5; padding-top: 0.7rem; border-top: 1px solid var(--line); margin-top: 0.3rem; }
.uc-cite b { color: var(--ink); font-weight: 700; }

.uc-shot { margin-bottom: 0.9rem; }
.uc-shot img { cursor: zoom-in; }

.uc-flow { display: flex; flex-direction: column; }
.uc-step {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.7rem; align-items: baseline;
  padding: 0.55rem 0; border-top: 1px solid var(--line);
}
.uc-step:first-child { border-top: none; padding-top: 0; }
.uc-step .s-n { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--blue); }
.uc-step .s-t { font-size: 0.84rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.uc-step .s-t span { display: block; font-size: 0.74rem; font-weight: 500; color: var(--ink-2); margin-top: 1px; }

/* small dengue trend chart, slide 8 */
.dengue-chart-wrap { margin-top: 0.2rem; }
.dengue-chart-wrap .dc-lbl { font-size: 0.68rem; font-weight: 700; color: var(--ink-3); margin-bottom: 0.35rem; }
.dc-readout { font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-top: 0.4rem; }
.dc-readout b { color: var(--red); }

/* ============================================================
   9. Personas — one accent, plain columns
   ============================================================ */

.persona-row { display: flex; gap: 0; }
.persona { flex: 1; padding: 0 1.2rem; border-left: 1px solid var(--line); }
.persona:first-child { border-left: none; padding-left: 0; }

.persona .p-role { font-size: 0.98rem; font-weight: 800; color: var(--ink); margin-bottom: 0.1rem; }
.persona .p-where { font-size: 0.65rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.persona .p-need { font-size: 0.78rem; font-weight: 500; color: var(--ink-2); line-height: 1.42; margin-bottom: 0.7rem; }
.persona .p-gets { font-size: 0.75rem; font-weight: 700; color: var(--ink); line-height: 1.4; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.persona .p-gets::before { content: "→ "; color: var(--blue); }

/* ============================================================
   10. Methodology — Redesigned Stepper
   ============================================================ */

.invariants-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }

.invariant { padding: 0.85rem 1rem; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.5rem; align-items: start; }
.invariant .i-n { font-family: var(--display); font-size: 0.95rem; font-weight: 800; color: var(--ink-3); margin-top: 0.1rem; }
.invariant .i-t { font-size: 0.85rem; font-weight: 800; color: var(--ink); line-height: 1.25; margin-bottom: 0.2rem; }
.invariant .i-d { font-size: 0.75rem; font-weight: 500; color: var(--ink-2); line-height: 1.42; }
.invariant .i-d code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 0 3px; border-radius: 3px; color: var(--ink); }

.stepper-wrap { margin-top: 1rem; }
.h-stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.step-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem; cursor: pointer; position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-start;
  min-height: 160px; overflow: hidden;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(36, 84, 224, 0.08); border-color: var(--blue-mid); }
.step-card.on { border-color: var(--blue); background: var(--blue-pale); box-shadow: 0 8px 16px rgba(36, 84, 224, 0.12); }

.sc-head { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.sc-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-3);
  display: grid; place-items: center; font-size: 0.65rem; font-weight: 800;
  flex: none; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.step-card.on .sc-num { background: var(--blue); color: #fff; }
.sc-t { font-size: 0.76rem; font-weight: 800; color: var(--ink); line-height: 1.2; padding-top: 0.1rem; }

.sc-body { flex: 1; display: flex; flex-direction: column; }
.sc-d { font-size: 0.7rem; font-weight: 500; color: var(--ink-2); line-height: 1.35; margin-bottom: 0.5rem; }
.sc-out {
  margin-top: auto; padding-top: 0.5rem; border-top: 1px dashed var(--line-2);
  font-size: 0.68rem; font-weight: 700; color: var(--blue-ink); line-height: 1.3;
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none; max-height: 0; overflow: hidden;
}
.step-card.on .sc-out { opacity: 1; transform: translateY(0); max-height: 100px; pointer-events: auto; }

/* ============================================================
   11. Architecture diagram — DIAGRAM, UNCHANGED
   ============================================================ */

.arch-wrap { display: grid; grid-template-columns: 1fr 268px; gap: 1.3rem; align-items: start; }

.arch-svg { width: 100%; height: auto; display: block; }

.arch-node { cursor: pointer; }
.arch-node .n-box {
  fill: #ffffff; stroke: #dde4ef; stroke-width: 1.5;
  transition: stroke 0.2s ease, fill 0.2s ease;
}
.arch-node .n-accent { transition: opacity 0.2s ease; }
.arch-node:hover .n-box, .arch-node.on .n-box { stroke: #1f4fd8; stroke-width: 2.5; fill: #e7eefd; }
.arch-node .n-title { font-size: 12.5px; font-weight: 800; fill: #0d1524; }
.arch-node .n-sub   { font-size: 9.5px;  font-weight: 600; fill: #7e8ba3; }

.arch-link { stroke: #c8d2e2; stroke-width: 2; fill: none; transition: stroke 0.25s ease, stroke-width 0.25s ease; }
.arch-link.hot { stroke: #1f4fd8; stroke-width: 3; }

.arch-lbl { font-size: 8.5px; font-weight: 700; fill: #46536d; }
.arch-lbl-bg { fill: #f5f7fc; stroke: #dde4ef; stroke-width: 1; }

.pkt { opacity: 0; }
.arch-svg.running .pkt { animation: pkt-flow 1.7s linear infinite; }

@keyframes pkt-flow {
  0%   { transform: translateX(0);    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(44px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .arch-svg.running .pkt { animation: none; opacity: 0; }
}

.arch-info {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.9rem 1rem;
  min-height: 300px; display: flex; flex-direction: column;
}
.arch-info .a-tag {
  align-self: flex-start; margin-bottom: 0.55rem;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 0.24rem 0.55rem; border-radius: 4px;
}
.arch-info .a-ttl { font-size: 1rem; font-weight: 800; color: var(--ink); line-height: 1.22; margin-bottom: 0.5rem; }
.arch-info .a-d { font-size: 0.79rem; font-weight: 500; color: var(--ink-2); line-height: 1.48; margin-bottom: 0.7rem; }
.arch-info ul { list-style: none; margin: 0 0 0.7rem; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.arch-info ul li {
  position: relative; padding-left: 0.85rem;
  font-size: 0.74rem; font-weight: 600; color: var(--ink); line-height: 1.35;
}
.arch-info ul li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 6px; height: 6px; background: var(--blue); border-radius: 2px; }
.arch-info .a-stack {
  margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.65rem; color: var(--ink-3); line-height: 1.5;
}

/* ============================================================
   12. Module A: gateway — tier board is DIAGRAM, UNCHANGED
   ============================================================ */

.gw-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: start; }

.tier-board { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 0.9rem 1rem 1rem; }
.tier-board .tb-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.7rem; }
.tier-board .tb-h .t { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); }
.tier-board .tb-h .n { font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: var(--blue); }

.rgroups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 0.7rem; }
.rgroup {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 0.45rem 0.5rem;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.rgroup:hover, .rgroup.on { border-color: var(--blue); background: var(--blue-pale); }
.rgroup .rg-t { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: 0.35rem; text-transform: uppercase; }
.rgroup .rg-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.rgroup .cell {
  height: 16px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 0.5rem; font-weight: 800; color: var(--ink-4);
}
.rgroup .cell.rich { background: var(--blue); border-color: var(--blue); color: #fff; }
.rgroup .cell.critical { background: var(--blue-pale); border-color: var(--blue-mid); color: var(--blue-ink); }

.tier1-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.t1cell {
  background: var(--amber-pale); border: 1px solid var(--amber);
  border-radius: 9px; padding: 0.42rem 0.5rem;
  font-size: 0.63rem; font-weight: 800; color: var(--amber); text-align: center; line-height: 1.25;
}
.t1cell.video { background: var(--violet-pale); border-color: var(--violet); color: var(--violet); }
.t1cell span { display: block; font-size: 0.55rem; font-weight: 600; color: var(--ink-3); margin-top: 1px; }

.tier-eq {
  margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px dashed var(--line-2);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--ink-2); text-align: center;
}
.tier-eq b { color: var(--blue); }

.job-list { margin-top: 0.9rem; }
.job-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.8rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.job-row:first-child { border-top: none; padding-top: 0; }
.job-row .j-k { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.job-row .j-t { font-size: 0.82rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.job-row .j-t span { display: block; font-size: 0.74rem; font-weight: 500; color: var(--ink-2); margin-top: 1px; }

/* ============================================================
   13. Module B: telemetry — DIAGRAM (svg + tabs), UNCHANGED
   ============================================================ */

.tel-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 1.3rem; align-items: start; }

.tel-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.7rem; }
.tel-tab {
  font-size: 0.72rem; font-weight: 700; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line);
  padding: 0.4rem 0.75rem; border-radius: 999px; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tel-tab:hover { border-color: var(--blue-mid); }
.tel-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tel-tab.on.fb { background: var(--amber); border-color: var(--amber); }

.tel-svg { width: 100%; max-width: 660px; height: auto; display: block; margin: 0 auto; }

.tel-node .t-box { fill: #ffffff; stroke: #dde4ef; stroke-width: 1.5; transition: stroke 0.25s ease, fill 0.25s ease, opacity 0.25s ease; }
.tel-node .t-t { font-size: 11.5px; font-weight: 800; fill: #0d1524; }
.tel-node .t-s { font-size: 9px; font-weight: 600; fill: #7e8ba3; }
.tel-node.dim { opacity: 0.32; }
.tel-node.act .t-box { stroke: #1f4fd8; stroke-width: 2.5; fill: #e7eefd; }
.tel-node.act-amber .t-box { stroke: #c9761b; stroke-width: 2.5; fill: #fbeedd; }

.tel-edge { stroke: #c8d2e2; stroke-width: 2.5; fill: none; transition: stroke 0.25s ease, opacity 0.25s ease; }
.tel-edge.dim { opacity: 0.22; }
.tel-edge.act { stroke: #1f4fd8; }
.tel-edge.act-amber { stroke: #c9761b; }

.tel-cap { font-size: 8.5px; font-weight: 700; fill: #46536d; }

.lat-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin-top: 0.15rem; }
.lat-seg { display: grid; place-items: center; font-size: 0.6rem; font-weight: 800; color: #fff; }
.lat-seg.s1 { background: var(--blue);    flex: 25; }
.lat-seg.s2 { background: var(--blue-mid);flex: 40; }
.lat-seg.s3 { background: var(--violet);  flex: 20; }
.lat-seg.s4 { background: var(--green);   flex: 15; }
.lat-legend { display: flex; justify-content: space-between; margin-top: 0.3rem; font-size: 0.62rem; font-weight: 700; color: var(--ink-3); }

.feed-list { margin-top: 0.9rem; }
.feed-row { display: grid; grid-template-columns: 1fr 4.5rem; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.feed-row:first-child { border-top: none; padding-top: 0; }
.feed-row .f-t { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.feed-row .f-hz { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; color: var(--ink-3); text-align: right; }

/* ============================================================
   14. Module C: mission lifecycle — DIAGRAM, UNCHANGED
   ============================================================ */

.ml-wrap { display: grid; grid-template-columns: 1fr 336px; gap: 1.3rem; align-items: start; }

.ml-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; margin-bottom: 0.85rem; }
.ml-stage {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--line-2);
  border-radius: 10px; padding: 0.55rem 0.6rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.ml-stage:hover { transform: translateY(-3px); }
.ml-stage.on { border-top-color: var(--blue); background: var(--blue-pale); }
.ml-stage .m-n { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-4); margin-bottom: 0.22rem; }
.ml-stage.on .m-n { color: var(--blue); }
.ml-stage .m-t { font-size: 0.79rem; font-weight: 800; color: var(--ink); line-height: 1.15; margin-bottom: 0.28rem; }
.ml-stage .m-o { font-size: 0.61rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }

.ml-detail {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.85rem 1rem; min-height: 126px;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.ml-detail .k { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.ml-detail .d { font-size: 0.83rem; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.ml-detail .d b { color: var(--ink); font-weight: 700; }
.ml-detail .gate {
  margin-top: auto; padding: 0.5rem 0.7rem; border-radius: 8px;
  background: var(--surface);
  font-size: 0.76rem; font-weight: 700; color: var(--ink); line-height: 1.4;
}
.ml-detail .gate em { font-style: normal; color: var(--ink-3); font-weight: 600; }

.ml-side { display: flex; flex-direction: column; gap: 0.65rem; }
.ml-side .trig-list { margin-top: 0.6rem; }
.trig-row { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.trig-row:first-child { border-top: none; padding-top: 0; }
.trig-row .tr-t { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.trig-row .tr-d { font-size: 0.72rem; font-weight: 500; color: var(--ink-2); line-height: 1.35; margin-top: 1px; }

/* ============================================================
   15. Closing
   ============================================================ */

.slide-closing .stage { background: var(--ink); }
.slide-closing .stage::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}
.slide-closing .stage-inner { padding: 0 6vw; }

.closing-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.closing-headline {
  font-family: var(--display);
  font-size: 3.3rem; font-weight: 800; letter-spacing: -0.035em;
  color: #fff; margin: 0 0 0.8rem 0; line-height: 1.02;
}
.closing-headline .hl { color: #fff; }
.closing-sub { font-size: 0.95rem; font-weight: 500; color: #aab6cc; line-height: 1.55; max-width: 38ch; margin: 0 0 1.4rem; }

.next-list { display: flex; flex-direction: column; }
.next-item { display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid #26324a; }
.next-item:first-child { border-top: none; padding-top: 0; }
.next-item .n-i { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: #f0b45f; }
.next-item .n-t { display: block; font-size: 0.86rem; font-weight: 700; color: #fff; line-height: 1.25; }
.next-item .n-d { display: block; font-size: 0.75rem; font-weight: 500; color: #98a5bd; line-height: 1.4; margin-top: 0.15rem; }

.slide-closing .kicker { color: #5d6b85; }

/* ============================================================
   New graphs (additive — problem framing + public health)
   ============================================================ */

.svg-bar { transition: height 0.6s var(--ease), y 0.6s var(--ease), transform 0.3s var(--ease), filter 0.3s var(--ease); rx: 4; ry: 4; transform-origin: bottom center; }
.svg-bar:hover { transform: scaleY(1.05) translateY(-2px); filter: brightness(1.1) drop-shadow(0 4px 6px rgba(36, 84, 224, 0.3)); }
.svg-bar-lbl { font-size: 9px; font-weight: 700; fill: var(--ink-2); }
.svg-bar-val { font-size: 10px; font-weight: 800; fill: var(--ink); }

#dengue-chart rect { transition: transform 0.3s var(--ease), filter 0.3s var(--ease); transform-origin: bottom center; rx: 6; ry: 6; }
#dengue-chart rect:hover { transform: scaleY(1.05) translateY(-2px); filter: brightness(1.2) drop-shadow(0 4px 6px rgba(36, 84, 224, 0.4)); fill: url(#dengue-grad) !important; }

