/* ============================================================================
   APIIC Land Allotment Regulations — Executive Digital Presentation
   style.css — theme tokens, slide chrome, reusable slide components
   Palette / typography carried over from apiic-land-allotment-summary 1.pptx
   ==========================================================================*/

/* ---------- 1. Design tokens ---------------------------------------------- */
:root {
  /* brand */
  --navy: #0b2e4f;
  --navy-2: #123f68;
  --blue: #1565c0;
  --blue-light: #42a5f5;
  --teal: #0f9d8f;
  --teal-dark: #0a7d54;
  --gold: #f0a500;

  /* neutrals */
  --ink: #14202b;
  --muted: #5b6b78;
  --line: #dde6ee;
  --bg: #eef3f8;
  --card: #ffffff;
  --accent-soft: #eaf3fb;
  --note-bg: #fffbe9;
  --note-ink: #6a5a1f;

  /* semantic */
  --ok: #0a7d54;
  --warn: #b26b00;
  --stop: #b3261e;

  /* geometry */
  --radius: 12px;
  --radius-lg: 16px;
  --slide-pad-y: 5.2vh;
  --slide-pad-x: 6vw;
  --footer-h: 62px;
  --shadow-sm: 0 2px 6px rgba(21, 101, 192, .08);
  --shadow-md: 0 8px 24px rgba(11, 46, 79, .10);
  --shadow-lg: 0 18px 48px rgba(11, 46, 79, .18);

  /* typography */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* Dark mode (progressive enhancement — toggled by js/app.js) */
[data-theme="dark"] {
  --ink: #e8eff6;
  --muted: #9fb3c4;
  --line: #24384c;
  --bg: #071a2c;
  --card: #0c2439;
  --accent-soft: #10314c;
  --navy: #d7e6f5;
  --navy-2: #0d3357;
  --note-bg: #2a2413;
  --note-ink: #f0d99a;
}

/* ---------- 2. Base ------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
[data-theme="dark"] a { color: var(--blue-light); }

/* Bootstrap styles bare <code> pink; keep it in the brand ramp instead */
code {
  color: var(--blue);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .84em;
}
[data-theme="dark"] code { color: var(--blue-light); }

/* Bootstrap heading reset guards */
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; line-height: 1.15; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Deck & slide shell ---------------------------------------- */
#deck { position: relative; width: 100vw; height: 100vh; }

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: var(--slide-pad-y) var(--slide-pad-x) calc(var(--footer-h) + 1.4vh);
  background: var(--card);
}
.slide.active { display: flex; }

/* slide header ------------------------------------------------------------ */
.slide-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 3px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
  flex: 0 0 auto;
}
.slide-head .kicker {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.slide-head h2 {
  font-size: 1.95rem;
  color: var(--navy);
  font-weight: 800;
}
.slide-head .head-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: var(--shadow-sm);
}
.badge-pill {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--teal));
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-pill.gold { background: linear-gradient(120deg, var(--gold), #e07b00); }

.lead-text {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 78ch;
  line-height: 1.55;
}

/* scrollable content region ----------------------------------------------
   Content is vertically centred while it fits and falls back to a normal
   top-aligned scroll when it does not: the ::before/::after spacers absorb
   the spare room and collapse to zero once the content fills the slide.  */
.slide-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
}
.slide-body > * { flex: 0 0 auto; }
.slide-body::before,
.slide-body::after {
  content: "";
  flex: 1 1 0;
  min-height: 0;
}
.slide-body::-webkit-scrollbar { width: 8px; }
.slide-body::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 8px;
}

.subhead {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 10px;
}
.subhead .fa-solid, .subhead .fa-regular { margin-right: 6px; }

/* ---------- 4. Grids ----------------------------------------------------- */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.col2-wide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }

/* A grid item defaults to min-width:auto, so a wide table inside one widens the
   whole row instead of scrolling in its own container. */
.col2 > *, .col2-wide > *, .split > *, .grid > * { min-width: 0; }

/* ---------- 5. Cards ----------------------------------------------------- */
.card-tile {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-size: .98rem;
  font-weight: 600;
  color: var(--navy);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-tile small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: .83rem;
  margin-top: 3px;
  line-height: 1.42;
}
.card-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--teal);
}
.card-tile.teal { border-left-color: var(--teal); }
.card-tile.gold { border-left-color: var(--gold); }

/* icon card (benefits / features) */
.icon-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-card .ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}
.icon-card.gold .ic { background: linear-gradient(135deg, var(--gold), #e07b00); }
.icon-card.navy .ic { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.icon-card b { display: block; color: var(--navy); font-size: 1rem; }
.icon-card span { display: block; color: var(--muted); font-size: .86rem; margin-top: 5px; line-height: 1.5; }

/* agenda card (clickable) */
.agenda-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.agenda-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--card);
}
.agenda-card .num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.agenda-card b { display: block; color: var(--navy); font-size: .97rem; }
.agenda-card small { color: var(--muted); font-size: .8rem; }
.agenda-card .go { margin-left: auto; color: var(--teal); opacity: .5; transition: opacity .18s, transform .18s; }
.agenda-card:hover .go { opacity: 1; transform: translateX(3px); }

/* ---------- 6. Statistic / KPI --------------------------------------------*/
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.kpi .val {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.kpi .val .unit { font-size: .95rem; font-weight: 700; color: var(--blue); margin-left: 3px; }
.kpi .lbl {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; margin-top: 4px;
}
.kpi .src { display: block; font-size: .74rem; color: var(--muted); margin-top: 6px; font-weight: 500; }
.kpi.teal { border-top-color: var(--teal); }
.kpi.gold { border-top-color: var(--gold); }
.kpi.navy { border-top-color: var(--navy); }
.kpi.is-placeholder .val { color: var(--gold); }

/* ---------- 7. Lists ------------------------------------------------------*/
ul.clean { list-style: none; display: grid; gap: 7px; padding: 0; margin: 0; }
ul.clean li {
  position: relative;
  padding: 10px 12px 10px 34px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.5;
}
ul.clean li::before {
  content: "";
  position: absolute; left: 12px; top: 17px;
  width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}
ul.clean li b { color: var(--navy); }
ul.clean.tight li { padding: 7px 10px 7px 32px; font-size: .9rem; }

/* ---------- 8. Flow diagram ---------------------------------------------- */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.flow .step {
  background: var(--card);
  border: 1.5px solid var(--blue-light);
  border-radius: 10px;
  padding: 9px 13px;
  font-weight: 700;
  color: var(--navy);
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.flow .step:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
.flow .step .n {
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: .7rem; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.flow .arrow { align-self: center; color: var(--teal); font-size: 1.15rem; font-weight: 800; }

/* vertical process workflow (slide 4) */
.workflow { display: grid; gap: 0; }
.wf-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 8px 15px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wf-step:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.wf-step .ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-size: 1rem;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.wf-step b { display: block; color: var(--navy); font-size: 1rem; }
.wf-step span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.wf-sla {
  flex: 0 0 auto;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  color: var(--teal-dark);
  background: #e4f5ee;
  border: 1px solid #bfe6d5;
  padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}
[data-theme="dark"] .wf-sla { background: #10352a; border-color: #1c5442; color: #7fd8b4; }
.wf-arrow {
  justify-self: center;
  color: var(--teal);
  font-size: .9rem;
  margin: 1px 0 1px 23px;
  align-self: start;
}

/* horizontal stepper (slide 6) */
.stepper { display: flex; gap: 0; flex-wrap: wrap; }
.stepper .st {
  flex: 1 1 130px;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 13px 12px;
  margin-right: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.stepper .st:last-child { margin-right: 0; }
.stepper .st::after {
  content: "\f054"; /* fa chevron-right */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: -17px; top: 50%; transform: translateY(-50%);
  color: var(--teal); font-size: .95rem;
}
.stepper .st:last-child::after { content: none; }
.stepper .st:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stepper .st .sn {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
}
.stepper .st b { display: block; color: var(--navy); font-size: .96rem; margin: 3px 0 5px; }
.stepper .st span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.stepper .st > span:not(.sla) { margin-bottom: 8px; }
.stepper .st { display: flex; flex-direction: column; }
.stepper .st .sla {
  align-self: flex-start; margin-top: auto; padding-top: 0;
  font-size: .72rem; font-weight: 800;
  color: var(--teal-dark); background: #e4f5ee;
  border: 1px solid #bfe6d5; padding: 3px 9px; border-radius: 999px;
}
[data-theme="dark"] .stepper .st .sla { background: #10352a; border-color: #1c5442; color: #7fd8b4; }

/* ---------- 9. Tables ---------------------------------------------------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); min-width: 0; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 560px;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}
.tbl thead th {
  background: var(--navy);
  color: #fff;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: sticky; top: 0; z-index: 2;
}
[data-theme="dark"] .tbl thead th { background: var(--navy-2); color: #fff; }
.tbl tbody tr:nth-child(even) { background: var(--accent-soft); }
.tbl td.svc { font-weight: 700; color: var(--navy); }
.tbl td.amt { font-weight: 700; color: var(--blue); white-space: nowrap; }
.tbl .ph { color: var(--gold); font-weight: 700; }
.tbl td.lease { color: var(--muted); }
.tbl td.sale { color: var(--teal-dark); font-weight: 600; }
[data-theme="dark"] .tbl td.sale { color: #6ed3ae; }

/* comparison table emphasis */
.tbl.compare thead th:nth-child(2) { background: #123f68; }
.tbl.compare thead th:nth-child(3) { background: var(--teal); }

/* ---------- 10. Note / callout ------------------------------------------- */
.note {
  margin-top: 11px;
  font-size: .85rem;
  color: var(--note-ink);
  border-left: 4px solid var(--gold);
  padding: 10px 14px;
  background: var(--note-bg);
  border-radius: 0 8px 8px 0;
  line-height: 1.55;
}
.note b { color: inherit; }
.note.info {
  color: var(--navy); border-left-color: var(--blue); background: var(--accent-soft);
}
[data-theme="dark"] .note.info { color: var(--ink); }

/* ---------- 11. Stage lifecycle (slide 15) ------------------------------- */
.phase-tag {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin: 9px 0 6px;
}
.phase-tag .soft { font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.stages { display: flex; flex-direction: column; gap: 5px; }
.stage {
  display: flex; gap: 15px; align-items: center;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 7px 14px;
  border-left: 4px solid var(--teal);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stage:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.stage .code {
  flex: 0 0 58px;
  font-weight: 800; color: #fff; border-radius: 8px;
  text-align: center; padding: 7px 6px; font-size: .95rem;
}
.stage .desc b { color: var(--navy); display: block; font-size: .98rem; }
.stage .desc span { color: var(--muted); font-size: .86rem; }
.stage.rphase { border-left-color: var(--blue); }
.stage.rphase .code { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.stage.gphase .code { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.stage.cphase { border-left-color: var(--stop); }
.stage.cphase .code { background: linear-gradient(135deg, #8c1d18, var(--stop)); }
.movegap {
  margin: 0 0 0 22px;
  font-size: .75rem; font-weight: 700; color: var(--teal-dark);
  display: flex; align-items: center; gap: 8px;
}
.movegap::before { content: "\2193"; font-size: 1rem; color: var(--teal); }
.movegap b {
  background: #e4f5ee; border: 1px solid #bfe6d5;
  padding: 2px 10px; border-radius: 20px; color: #0a6b48;
}
[data-theme="dark"] .movegap b { background: #10352a; border-color: #1c5442; color: #7fd8b4; }
.movegap span { color: var(--muted); font-weight: 600; }

/* ---------- 12. Charts --------------------------------------------------- */
.chart-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px 6px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.chart-box h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); font-weight: 800; margin-bottom: 4px;
}
.chart-box .cap { font-size: .76rem; color: var(--muted); margin-bottom: 8px; }
.chart-holder { position: relative; flex: 1; min-height: 150px; }
/* Chart.js writes an inline pixel size on the canvas, which is measured against
   whatever viewport built it — cap it so a chart built for a wide layout can
   never overflow a narrow one before Chart.js re-measures. */
.chart-holder canvas {
  position: absolute;
  inset: 0;
  max-width: 100%;
  max-height: 100%;
}
/* static PNG of each chart, used only when printing (see responsive.css) */
.chart-print { display: none; }

/* ---------- 13. Architecture diagram (slide 14) -------------------------- */
.arch { display: grid; gap: 0; max-width: 940px; margin: 0 auto; }
.arch-layer {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.arch-layer:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.arch-layer .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.arch-layer b { display: block; color: var(--navy); font-size: 1rem; }
.arch-layer span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: 2px; }
.arch-layer .tags { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
/* the block rule above would otherwise stretch an inline chip across the card */
.arch-layer .ph-tag { display: inline-block; }
.arch-layer .tag {
  font-size: .72rem; font-weight: 700; color: var(--blue);
  background: var(--accent-soft); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 999px;
}
.arch-l1 .ico { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.arch-l2 .ico { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.arch-l3 .ico { background: linear-gradient(135deg, var(--gold), #e07b00); }
.arch-l4 .ico { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.arch-l5 .ico { background: linear-gradient(135deg, var(--navy-2), var(--teal)); }
.arch-l3 { border-style: dashed; border-color: var(--gold); }
.arch-conn {
  justify-self: center;
  color: var(--teal);
  font-size: 1rem;
  padding: 2px 0;
}

/* ---------- 14. Gap analysis (slide 16) ---------------------------------- */
.gap-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--card);
}
.gap-col.current { border-top: 4px solid var(--stop); }
.gap-col.future { border-top: 4px solid var(--teal); }
.gap-col h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 800; margin-bottom: 10px;
}
.gap-col.current h4 { color: var(--stop); }
.gap-col.future h4 { color: var(--teal-dark); }
.gap-row { display: grid; gap: 8px; }
.gap-item {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px;
  font-size: .9rem; color: var(--ink); line-height: 1.45;
  padding: 8px 10px; border-radius: 9px; background: var(--accent-soft);
}
.gap-item i { margin-top: 3px; }
.gap-col.current .gap-item i { color: var(--stop); }
.gap-col.future .gap-item i { color: var(--teal-dark); }

/* ---------- 15. Roadmap timeline (slide 18) ------------------------------ */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--teal), var(--gold));
}
.tl-item { position: relative; padding: 0 0 16px 8px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--blue);
}
.tl-item.teal::before { border-color: var(--teal); }
.tl-item.gold::before { border-color: var(--gold); }
.tl-item .ph {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
}
.tl-item b { display: block; color: var(--navy); font-size: 1rem; margin: 2px 0 3px; }
.tl-item span { display: block; color: var(--muted); font-size: .87rem; line-height: 1.5; }

/* compact horizontal timeline (about slide) */
.mini-tl { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tl .mt {
  flex: 1 1 120px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px;
  border-top: 3px solid var(--blue);
}
.mini-tl .mt em {
  font-style: normal; font-weight: 800; color: var(--blue);
  font-size: .8rem; letter-spacing: .04em;
}
.mini-tl .mt b { display: block; color: var(--navy); font-size: .88rem; margin-top: 2px; }
.mini-tl .mt span { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; line-height: 1.4; }
.mini-tl .mt:nth-child(even) { border-top-color: var(--teal); }
.mini-tl .mt:last-child { border-top-color: var(--gold); }

/* ---------- 16. Vision panel -------------------------------------------- */
.vision {
  background: linear-gradient(160deg, var(--navy-2), #0b2e4f);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .vision { background: linear-gradient(160deg, #0f3a5f, #061a2b); }
.vision h3 {
  color: var(--gold); text-transform: uppercase; letter-spacing: .1em;
  font-size: .82rem; margin-bottom: 10px;
}
.vision p { font-size: 1.08rem; line-height: 1.55; color: #e6eef7; }
.vision .vfoot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .82rem; color: #aac4de;
}

/* ---------- 17. Portal link cards (slide 11) ---------------------------- */
.portal-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}
.portal-card .ic {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-size: 1rem;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  margin-bottom: 9px;
}
.portal-card b { display: block; color: var(--navy); font-size: .96rem; }
.portal-card span { display: block; color: var(--muted); font-size: .83rem; margin-top: 4px; line-height: 1.45; }
.portal-card code {
  display: block; margin-top: 7px;
  font-size: .74rem; color: var(--blue);
  background: var(--accent-soft);
  padding: 3px 8px; border-radius: 6px;
  word-break: break-all;
}

/* ---------- 18. Title slide --------------------------------------------- */
.title-slide {
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding: 0 8vw calc(var(--footer-h) + 1vh);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(15, 157, 143, .35), transparent 60%),
    radial-gradient(900px 500px at 10% 120%, rgba(240, 165, 0, .25), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}
[data-theme="dark"] .title-slide {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(15, 157, 143, .30), transparent 60%),
    radial-gradient(900px 500px at 10% 120%, rgba(240, 165, 0, .18), transparent 55%),
    linear-gradient(135deg, #061a2b, #0b2e4f);
}
.title-slide .skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 40%;
  opacity: .55; pointer-events: none;
  object-fit: cover; object-position: bottom;
}
.title-inner { position: relative; z-index: 2; max-width: 1000px; }
.title-slide .title-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .92rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 20px;
}
.title-slide .title-mark .dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold);
}
.title-slide h1 {
  font-size: 3.5rem; line-height: 1.04; font-weight: 900; max-width: 17ch; color: #fff;
}
.title-slide .sub { font-size: 1.35rem; color: #cfe0f0; margin-top: 10px; font-weight: 600; }
.title-slide .refbox {
  margin-top: 26px; border-left: 4px solid var(--gold);
  padding: 6px 0 6px 18px; color: #e6eef7; font-size: .98rem; line-height: 1.7;
}
.title-slide .refbox a { color: #ffe08a; text-decoration: none; }
.title-slide .meta {
  margin-top: 30px; display: flex; gap: 54px; color: #aac4de; font-size: .95rem; flex-wrap: wrap;
}
.title-slide .meta b { display: block; color: #fff; font-size: 1rem; margin-top: 2px; }

/* ---------- 19. Closing slide ------------------------------------------- */
.thanks {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  justify-content: center; align-items: center; text-align: center;
}
[data-theme="dark"] .thanks { background: linear-gradient(135deg, #061a2b, #0a5f57); }
.thanks h1 { font-size: 3rem; font-weight: 900; color: #fff; }
.thanks .tagline { font-size: 1.1rem; color: #dff0f5; margin-top: 8px; }
.thanks .tk {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 11px; max-width: 900px; margin: 22px auto 0; text-align: left;
}
.thanks .tk div {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px; padding: 11px 14px;
  font-weight: 600; font-size: .92rem;
}
.thanks .tk div i { color: #ffe08a; margin-right: 8px; }
.close-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 34px; margin-top: 26px; flex-wrap: wrap;
}
.close-foot .qr {
  background: #fff; padding: 8px; border-radius: 12px;
  box-shadow: var(--shadow-md); width: 116px; height: 116px;
}
.close-foot .qr img { width: 100%; height: 100%; display: block; }
.close-foot .qr-cap { font-size: .72rem; color: #dff0f5; margin-top: 6px; text-align: center; }
.close-contact { text-align: left; font-size: .93rem; color: #dff0f5; line-height: 1.7; }
.close-contact b { color: #fff; }
.close-contact a { color: #ffe08a; font-weight: 700; text-decoration: none; }
.close-logo {
  background: #fff; border-radius: 12px; padding: 10px 16px;
  box-shadow: var(--shadow-md);
}
.close-logo img { height: 46px; display: block; }

/* ---------- 20. Chrome: progress, footer, sidebar ----------------------- */
#progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
  z-index: 60; transition: width .3s ease;
}

.deck-footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  z-index: 55;
}
@supports not (background: color-mix(in srgb, #fff 90%, transparent)) {
  .deck-footer { background: var(--card); }
}
.deck-footer .brand {
  display: flex; align-items: center; gap: 10px;
  font-size: .76rem; color: var(--muted); letter-spacing: .04em;
}
.deck-footer .brand img { height: 26px; }
.deck-footer .spacer { flex: 1; }

.nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-family: var(--font);
  font-size: .86rem; font-weight: 700;
  padding: 8px 15px; border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.nav-btn:hover:not(:disabled) {
  background: linear-gradient(120deg, var(--blue), var(--teal));
  color: #fff; border-color: transparent;
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.nav-btn.icon-only { padding: 8px 11px; }

#counter {
  min-width: 66px; text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 800; color: var(--navy); font-size: .9rem;
}
#counter .tot { color: var(--muted); font-weight: 600; }

/* sidebar navigation ----------------------------------------------------- */
#sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: 320px; max-width: 86vw;
  background: var(--card);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(-102%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  z-index: 70;
  display: flex; flex-direction: column;
}
#sidebar.open { transform: translateX(0); }
#sidebar .sb-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
#sidebar .sb-head .t {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); font-weight: 800;
}
#sidebar .sb-head h3 { font-size: 1.02rem; color: var(--navy); margin-top: 3px; }
#sidebar .sb-search {
  margin: 12px 16px 8px;
  position: relative;
}
#sidebar .sb-search i {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .82rem;
}
#sidebar .sb-search input {
  width: 100%;
  font-family: var(--font); font-size: .86rem;
  padding: 9px 12px 9px 32px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
}
#sidebar .sb-search input:focus { outline: 2px solid var(--blue-light); outline-offset: 1px; }
#sidebar .sb-list { flex: 1; overflow-y: auto; padding: 6px 10px 18px; }
#sidebar .sb-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  background: transparent; border: 0; cursor: pointer;
  padding: 9px 10px; border-radius: 9px;
  color: var(--ink); font-family: var(--font); font-size: .88rem;
  transition: background .16s;
}
#sidebar .sb-item:hover { background: var(--accent-soft); }
#sidebar .sb-item .n {
  flex: 0 0 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: .74rem; font-weight: 800;
  background: var(--accent-soft); color: var(--blue);
  border: 1px solid var(--line);
}
#sidebar .sb-item.active { background: var(--accent-soft); font-weight: 700; color: var(--navy); }
#sidebar .sb-item.active .n {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; border-color: transparent;
}
#sidebar .sb-item[hidden] { display: none; }
#sidebar .sb-foot {
  border-top: 1px solid var(--line);
  padding: 11px 16px; font-size: .74rem; color: var(--muted);
}
#sb-overlay {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(11, 46, 79, .42);
  opacity: 0; visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
#sb-overlay.show { opacity: 1; visibility: visible; }

/* hint toast ------------------------------------------------------------- */
#hint {
  position: fixed; bottom: calc(var(--footer-h) + 14px); left: 50%;
  transform: translateX(-50%);
  font-size: .78rem; color: #fff;
  background: rgba(11, 46, 79, .88);
  padding: 7px 15px; border-radius: 999px;
  z-index: 58; transition: opacity .5s;
  white-space: nowrap;
}
#hint kbd {
  background: rgba(255, 255, 255, .18);
  border-radius: 4px; padding: 1px 6px; font-size: .74rem;
  font-family: var(--font);
}

/* ---------- 21. Utilities ----------------------------------------------- */
.mt-note { margin-top: 12px; }
.mb-10 { margin-bottom: 10px; }
.fill { height: 100%; }
.text-teal { color: var(--teal-dark); }
.text-gold { color: var(--gold); }
.text-muted-sm { color: var(--muted); font-size: .84rem; }
.ph-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  color: #7a5a00; background: #fff3d0;
  border: 1px solid #f3d894;
  padding: 2px 8px; border-radius: 999px;
  vertical-align: middle;
}
[data-theme="dark"] .ph-tag { color: #f5d78a; background: #33290f; border-color: #5c4a1a; }
