/* ============================================================================
   PAKAAMMO DILG ISNOW EODB CONNECTS — Presentation Design System
   "From Feedback to Action" — EODB Roadmap Visual Language
   Palette: DILG maroon + institutional gold + navy (feedback/learning) +
   teal (completed/institutionalized) + slate (future/next).
   ============================================================================ */

:root{
  /* Brand palette */
  --maroon:        #7a1128;
  --maroon-deep:    #4d0a19;
  --maroon-light:  #a91d3a;
  --gold:          #c99a3d;
  --gold-light:    #e7c877;
  --navy:          #0e2a4d;
  --navy-deep:     #081a30;
  --navy-light:    #1d4a80;
  --teal:          #1f6f5c;
  --teal-light:    #2f9c80;
  --slate:         #5b6472;
  --slate-light:   #8b94a1;

  /* Neutrals */
  --bg-cream:      #f7f5f1;
  --bg-white:      #ffffff;
  --bg-fog:        #eef0f2;
  --ink:           #1a2029;
  --ink-soft:      #4c5563;
  --line:          #dfe2e7;

  /* Status colors (used across roadmap + cards) */
  --status-done:     var(--teal);
  --status-done-bg:  #e6f3ee;
  --status-current:  var(--gold);
  --status-current-bg: #fbf1de;
  --status-feedback: var(--navy);
  --status-feedback-bg: #e9eef6;
  --status-future:   var(--slate);
  --status-future-bg: #eef0f2;
  --status-risk:      #9a2e2e;
  --status-risk-bg:   #f8e9e9;

  --shadow-sm: 0 4px 14px -4px rgba(20,20,30,.15);
  --shadow-md: 0 16px 40px -14px rgba(20,20,30,.28);
  --shadow-lg: 0 26px 60px -18px rgba(10,20,40,.42);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: 'Merriweather', 'Georgia', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --dur: .6s;
  --ease: cubic-bezier(.65,0,.35,1);
}

*{ box-sizing: border-box; }
html, body{
  margin:0; padding:0; height:100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-deep);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; }
p{ margin:0; }
ul, ol{ margin:0; padding:0; list-style:none; }
button{ font-family: var(--font-body); cursor:pointer; }
img{ max-width:100%; display:block; }
::selection{ background: var(--gold-light); color: var(--navy-deep); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- Progress bar ---------------- */
.progress-bar{
  position:fixed; top:0; left:0; width:100%; height:4px; z-index:500;
  background: rgba(255,255,255,0.08);
}
.progress-fill{
  height:100%; width:4.5%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .5s var(--ease);
}

/* ---------------- Top bar ---------------- */
.topbar{
  position:fixed; top:4px; left:0; right:0; height:56px; z-index:400;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 22px;
  background: linear-gradient(to bottom, rgba(8,26,48,0.88), transparent);
  pointer-events:none;
}
.topbar-left{ display:flex; align-items:center; gap:12px; color:#fff; pointer-events:auto; }
.topbar-left .seal{ width:30px; height:30px; border-radius:50%; object-fit:cover; background:#fff; }
.topbar-title{ font-size:.82rem; font-weight:700; letter-spacing:.02em; opacity:.92; }
.section-tag{
  background: rgba(201,154,61,0.22); color: var(--gold-light);
  border:1px solid rgba(201,154,61,0.5); border-radius:999px;
  padding: 4px 13px; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
}
.topbar-right{ display:flex; align-items:center; gap:10px; pointer-events:auto; }

.pill-btn{
  display:flex; align-items:center; gap:7px;
  background: rgba(255,255,255,0.12); color:#fff;
  border:1px solid rgba(255,255,255,0.25);
  border-radius:999px; padding:7px 14px; font-size:.78rem; font-weight:600;
  backdrop-filter: blur(6px);
  transition: background .2s ease;
  text-decoration:none;
}
.pill-btn:hover{ background: rgba(255,255,255,0.24); }
.pill-btn i{ color: var(--gold-light); }

.slide-counter{
  background: rgba(255,255,255,0.12); color:#fff; border:1px solid rgba(255,255,255,0.25);
  border-radius:999px; padding:7px 15px; font-size:.82rem; font-weight:700; letter-spacing:.02em;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}

/* ---------------- Viewport / Track ---------------- */
.viewport{
  position:relative; width:100%; height:100%; overflow:hidden;
  touch-action: pan-y;
}
.track{
  display:flex; height:100%;
  transition: transform var(--dur) var(--ease);
  will-change: transform;
}
.slide{
  flex: 0 0 100%; width:100%; height:100%;
  position:relative; overflow:hidden;
  display:flex; align-items:center;
  background: var(--bg-cream);
}
.slide-inner{
  position:relative; z-index:2;
  width:100%; max-width: 1320px; margin:0 auto;
  padding: 86px 64px 74px;
  max-height:100%;
  overflow-y:auto;
}
.slide-inner::-webkit-scrollbar{ width:6px; }
.slide-inner::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius:4px; }

.slide-dark{ background: linear-gradient(150deg, var(--navy-deep), var(--navy)); }
.slide-maroon{ background: linear-gradient(150deg, var(--maroon-deep), var(--maroon)); }
.slide-light{ background: var(--bg-cream); }
.slide-fog{ background: var(--bg-fog); }
.text-white{ color:#fff !important; }
.text-white .ink-soft-inv{ color: rgba(255,255,255,.78) !important; }

/* ---------------- Badges & titles ---------------- */
.slide-badge{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(122,17,40,0.08); color: var(--maroon);
  border:1px solid rgba(122,17,40,0.18);
  padding:6px 16px; border-radius:999px;
  font-size:.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  margin-bottom:18px;
}
.badge-gold{ background: rgba(201,154,61,.16); color:#a3771f; border-color: rgba(201,154,61,.45); }
.badge-navy{ background: rgba(14,42,77,.08); color: var(--navy); border-color: rgba(14,42,77,.2); }
.badge-invert{ background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.32); }
.badge-invert.badge-gold{ color: var(--gold-light); border-color: rgba(231,200,119,.5); background: rgba(231,200,119,.14); }

.slide-title{
  font-size: 2.5rem; font-weight:700; color: var(--navy); line-height:1.16;
  margin-bottom: 18px;
}
.slide-title .accent{ color: var(--maroon); }
.slide-lead{ font-size:1.14rem; color: var(--ink-soft); margin-bottom:26px; max-width:800px; line-height:1.5; }
.eyebrow{ font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color: var(--gold); margin-bottom:8px; }

/* ============================================================================
   ROADMAP SYSTEM — the dominant visual language of the deck
   ============================================================================ */

/* --- Horizontal milestone chip row (compact roadmap for section intros) --- */
.milestone-row{
  display:flex; align-items:flex-start; gap:0; flex-wrap:wrap;
  margin-top: 8px;
}
.milestone-row.wrap-tight{ gap:0; }
.milestone{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  position:relative; flex:1; min-width: 110px; padding: 0 6px;
}
.milestone-node{
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; font-size:1.05rem;
  border:3px solid transparent; position:relative; z-index:2;
  box-shadow: var(--shadow-sm);
  background: var(--status-future-bg); color: var(--status-future); border-color: var(--status-future);
}
.milestone-connector{
  position:absolute; top:26px; left:0; right:0; height:3px; z-index:1;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.milestone:first-child .milestone-connector{ left:50%; }
.milestone:last-child .milestone-connector{ right:50%; }
.milestone-label{ font-size:.78rem; font-weight:700; color: var(--ink-soft); margin-top:10px; line-height:1.3; max-width:120px; }
.milestone-sub{ font-size:.68rem; color: var(--slate-light); margin-top:2px; }

.milestone.is-done .milestone-node{ background: var(--status-done); color:#fff; border-color: var(--status-done); }
.milestone.is-done .milestone-connector{ background: linear-gradient(90deg, var(--status-done), var(--status-done)); }
.milestone.is-current .milestone-node{ background: var(--status-current); color: #3a2a05; border-color: var(--status-current); box-shadow: 0 0 0 6px rgba(201,154,61,.18), var(--shadow-sm); }
.milestone.is-feedback .milestone-node{ background: var(--status-feedback); color:#fff; border-color: var(--status-feedback); }
.milestone.is-future .milestone-node{ background: transparent; color: var(--status-future); border-color: var(--status-future); border-style:dashed; }
.milestone.is-done .milestone-label{ color: var(--teal); }
.milestone.is-current .milestone-label{ color: #a3771f; }
.milestone.is-feedback .milestone-label{ color: var(--navy); }

/* invert on dark background */
.text-white .milestone-label{ color: rgba(255,255,255,.85); }
.text-white .milestone-sub{ color: rgba(255,255,255,.55); }
.text-white .milestone-connector{ background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 8px, transparent 8px 14px); }
.text-white .milestone.is-future .milestone-node{ color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.45); }
.text-white .milestone.is-done .milestone-label{ color: var(--teal-light); }
.text-white .milestone.is-current .milestone-label{ color: var(--gold-light); }
.text-white .milestone.is-feedback .milestone-label{ color: #fff; }
.text-white .milestone.is-future .milestone-label{ color: rgba(255,255,255,.7); }

/* --- Big winding road (hero / journey overview) --- */
.road-stage{
  position:relative; width:100%; padding-top: 18px;
}
.road-svg{ width:100%; height:auto; display:block; }
.road-path{
  fill:none; stroke-width:14; stroke-linecap:round;
  stroke: rgba(255,255,255,0.14);
}
.road-path-progress{
  fill:none; stroke-width:14; stroke-linecap:round;
  stroke: var(--gold);
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: roadDraw 2.4s var(--ease) forwards;
}
@keyframes roadDraw{ to{ stroke-dashoffset: 900; } }
.road-node{
  position:absolute; transform: translate(-50%,-50%);
  display:flex; flex-direction:column; align-items:center; text-align:center;
  width: 128px;
}
.road-node-dot{
  width:46px; height:46px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-family: var(--font-display); font-size:1rem;
  box-shadow: var(--shadow-md); border: 3px solid #fff;
  background: var(--status-future); color:#fff;
}
.road-node.is-done .road-node-dot{ background: var(--status-done); }
.road-node.is-current .road-node-dot{ background: var(--status-current); color:#3a2a05; }
.road-node.is-feedback .road-node-dot{ background: var(--status-feedback); }
.road-node.is-future .road-node-dot{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.85); }
.road-node.is-gateway .road-node-dot{ background: var(--maroon); width:58px; height:58px; }
.road-node-label{ font-size:.8rem; font-weight:700; color:#fff; margin-top:10px; line-height:1.25; }
.road-node-sub{ font-size:.68rem; color: rgba(255,255,255,.6); margin-top:2px; }
.road-node-icon{ font-size:1.1rem; }

/* --- Destination flag / marker --- */
.destination-marker{
  display:inline-flex; align-items:center; gap:12px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color:#fff; padding: 16px 30px; border-radius: 999px;
  font-family: var(--font-display); font-weight:700; font-size:1.3rem;
  box-shadow: var(--shadow-lg);
}
.destination-marker i{ color: var(--gold-light); }

/* --- Loop diagram (continuous improvement cycle) --- */
.loop-diagram{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top: 14px;
}
.loop-step{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 18px; min-width:118px; text-align:center; box-shadow: var(--shadow-sm);
}
.loop-step i{ font-size:1.4rem; color: var(--maroon); }
.loop-step span{ font-size:.82rem; font-weight:700; color: var(--ink); }
.loop-arrow{ color: var(--gold); font-size:1.2rem; }
.loop-final{ background: linear-gradient(135deg, var(--teal), var(--teal-light)); border-color: transparent; }
.loop-final i, .loop-final span{ color:#fff; }

/* ============================================================================
   CARD SYSTEMS
   ============================================================================ */

/* --- Activity / milestone card (completed activities) --- */
.activity-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:12px; }
.activity-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.activity-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: var(--shadow-sm); position:relative;
  border-left: 4px solid var(--status-done);
}
.activity-card .ac-status{
  position:absolute; top:14px; right:14px; width:26px; height:26px; border-radius:50%;
  background: var(--status-done-bg); color: var(--status-done);
  display:flex; align-items:center; justify-content:center; font-size:.78rem;
}
.activity-card .ac-date{ font-size:.72rem; font-weight:700; color: var(--gold); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.activity-card h4{ font-size:1.02rem; color: var(--navy); margin-bottom:6px; line-height:1.3; }
.activity-card p{ font-size:.86rem; color: var(--ink-soft); line-height:1.45; }

/* --- Finding / stat card --- */
.stat-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; margin-top:10px; }
.stat-grid.cols-3{ grid-template-columns: repeat(3,1fr); }
.stat-grid.cols-2{ grid-template-columns: repeat(2,1fr); }
.stat-card{
  background:#fff; border-radius: var(--radius-md); padding: 20px 16px;
  box-shadow: var(--shadow-sm); text-align:center; border:1px solid var(--line);
}
.stat-value{ font-family: var(--font-display); font-size:2.1rem; font-weight:700; color: var(--maroon); line-height:1; }
.stat-value small{ font-size:1.1rem; font-weight:600; }
.stat-label{ font-size:.78rem; color: var(--ink-soft); margin-top:8px; font-weight:600; }

/* --- Progress bar mini (percentage compliance) --- */
.pbar-row{ display:flex; flex-direction:column; gap:14px; margin-top: 14px; }
.pbar-item{ display:flex; align-items:center; gap:14px; }
.pbar-label{ width: 230px; font-size:.86rem; font-weight:700; color: var(--ink); flex-shrink:0; }
.pbar-track{ flex:1; height:14px; background: var(--bg-fog); border-radius:999px; overflow:hidden; position:relative; }
.pbar-fill{ height:100%; border-radius:999px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); transition: width 1s var(--ease); }
.pbar-fill.gold{ background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.pbar-fill.risk{ background: linear-gradient(90deg, #9a2e2e, #c14a4a); }
.pbar-fill.navy{ background: linear-gradient(90deg, var(--navy), var(--navy-light)); }
.pbar-pct{ width:52px; text-align:right; font-weight:700; font-size:.86rem; color: var(--ink); flex-shrink:0; }

/* --- Ranking cards (LGU results) --- */
.rank-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin-top:14px; }
.rank-card{
  background:#fff; border-radius: var(--radius-md); padding:16px 18px; box-shadow: var(--shadow-sm);
  display:flex; align-items:center; gap:14px; border:1px solid var(--line);
}
.rank-card.top1{ background: linear-gradient(135deg,#fdf6e5,#fff); border-color: var(--gold); }
.rank-medal{
  width:40px; height:40px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family: var(--font-display);
  background: var(--bg-fog); color: var(--ink-soft);
}
.rank-card.top1 .rank-medal{ background: var(--gold); color:#fff; }
.rank-card.top2 .rank-medal{ background:#c7ccd3; color:#43494f; }
.rank-card.top3 .rank-medal{ background:#dcbf99; color:#5b3b18; }
.rank-name{ font-weight:700; font-size:.92rem; color: var(--navy); }
.rank-score{ font-size:.76rem; color: var(--ink-soft); margin-top:2px; }

/* --- Feedback bubble grid --- */
.feedback-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; margin-top:14px; }
.feedback-bubble{
  background:#fff; border-radius: var(--radius-md); padding:18px 20px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--navy); position:relative;
}
.feedback-bubble i.fb-quote{ color: var(--navy); opacity:.25; font-size:1.6rem; position:absolute; top:12px; right:16px; }
.feedback-bubble h4{ font-size:.94rem; color: var(--navy); margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.feedback-bubble h4 i{ color: var(--gold); }
.feedback-bubble p{ font-size:.85rem; color: var(--ink-soft); line-height:1.5; }
.feedback-tag{ display:inline-block; margin-top:10px; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--maroon); background: rgba(122,17,40,.08); padding:3px 10px; border-radius:999px; }

/* --- Action item list --- */
.action-list{ display:flex; flex-direction:column; gap:12px; margin-top:14px; }
.action-item{
  display:flex; align-items:flex-start; gap:14px; background:#fff; border-radius: var(--radius-md);
  padding:14px 18px; box-shadow: var(--shadow-sm); border-left:4px solid var(--gold);
}
.action-num{
  width:30px; height:30px; border-radius:50%; background: var(--maroon); color:#fff; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.82rem;
}
.action-item h4{ font-size:.92rem; color: var(--navy); margin-bottom:3px; }
.action-item p{ font-size:.8rem; color: var(--ink-soft); line-height:1.4; }
.action-item .ai-when{ font-size:.7rem; font-weight:700; color: var(--gold); text-transform:uppercase; letter-spacing:.04em; margin-left:auto; padding-left:10px; white-space:nowrap; flex-shrink:0; }

/* --- Comparison / before-after --- */
.compare-row{ display:grid; grid-template-columns: 1fr auto 1fr; gap:18px; align-items:center; margin-top:16px; }
.compare-col{ background:#fff; border-radius: var(--radius-md); padding:20px; box-shadow: var(--shadow-sm); }
.compare-col h4{ font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; color: var(--ink-soft); margin-bottom:10px; }
.compare-arrow{ font-size:1.6rem; color: var(--gold); }

/* --- Simple data table (used sparingly) --- */
.data-table{ width:100%; border-collapse:collapse; margin-top:14px; font-size:.84rem; }
.data-table th{ text-align:left; background: var(--navy); color:#fff; padding:10px 14px; font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; }
.data-table td{ padding:10px 14px; border-bottom:1px solid var(--line); color: var(--ink); }
.data-table tr:nth-child(even) td{ background: var(--bg-fog); }

/* --- Gateway / institutionalization visual --- */
.gateway-flow{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:18px; }
.gateway-step{
  display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.18); border-radius: var(--radius-md);
  padding:16px 14px; min-width:128px; flex:1;
}
.gateway-step i{ font-size:1.3rem; color: var(--gold-light); }
.gateway-step span{ font-size:.78rem; font-weight:700; color:#fff; line-height:1.3; }
.gateway-step.is-gateway{
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); border-color: transparent;
  padding: 20px 16px; transform: scale(1.06); box-shadow: var(--shadow-lg);
}
.gateway-step.is-gateway i{ font-size:1.6rem; }
.gateway-arrow{ color: rgba(255,255,255,.5); font-size:1.1rem; }

/* --- LGU chips (affected LGUs, small tags) --- */
.chip-cloud{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.chip{ background: var(--bg-fog); color: var(--ink-soft); font-size:.74rem; font-weight:600; padding:5px 12px; border-radius:999px; border:1px solid var(--line); }
.chip.chip-risk{ background: var(--status-risk-bg); color: var(--status-risk); border-color: rgba(154,46,46,.25); }

/* ---------------- COVER SLIDE ---------------- */
.slide-cover{ background: var(--navy-deep); }
.cover-bg-pattern{
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,154,61,.16), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(122,17,40,.28), transparent 45%),
    linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-deep) 100%);
}
.cover-road{
  position:absolute; left:0; right:0; bottom:0; height:46%;
  opacity:.9;
}
.cover-inner{
  position:relative; z-index:2; text-align:left; color:#fff; padding: 0 8vw; max-width:1180px;
}
.cover-seals{ display:flex; align-items:center; gap:16px; margin-bottom:26px; }
.cover-seals img{ height:52px; width:auto; object-fit:contain; }
.cover-kicker{
  color: var(--gold-light); font-weight:700; letter-spacing:.09em; text-transform:uppercase; font-size:.82rem;
  margin-bottom:18px; display:flex; align-items:center; gap:10px;
}
.cover-title{ font-size:3.1rem; line-height:1.14; font-weight:700; margin-bottom:14px; }
.cover-title .gold-text{ color: var(--gold-light); }
.cover-tagline{ font-size:1.5rem; font-weight:700; color: var(--gold-light); font-style:italic; margin-bottom:20px; font-family: var(--font-display); }
.cover-divider{ width:90px; height:4px; background: var(--gold); border-radius:2px; margin-bottom:20px; }
.cover-subtitle{ font-size:1.14rem; color: rgba(255,255,255,.86); max-width:680px; margin-bottom:28px; line-height:1.5; }
.cover-meta{ display:flex; flex-direction:column; gap:10px; }
.cover-meta-item{ display:flex; align-items:center; gap:12px; font-size:.94rem; color: rgba(255,255,255,.88); }
.cover-meta-item i{ color: var(--gold-light); width:20px; text-align:center; }

/* ---------------- Section divider slides ---------------- */
.slide-divider{ background: linear-gradient(150deg, var(--navy-deep), var(--navy)); }
.divider-inner{ text-align:center; width:100%; display:flex; flex-direction:column; align-items:center; color:#fff; }
.divider-icon{ font-size:2.6rem; color: var(--gold-light); margin-bottom:14px; }
.divider-num{ font-family: var(--font-display); font-size:1rem; font-weight:700; color: rgba(255,255,255,.5); letter-spacing:.1em; margin-bottom:10px; }
.divider-title{ font-size:2.7rem; font-weight:700; margin-bottom:14px; }
.divider-sub{ font-size:1.08rem; color: rgba(255,255,255,.78); max-width:640px; margin-bottom: 22px; }

/* ---------------- Split layout ---------------- */
.slide-split{ display:flex; }
.split-media{ flex: 0 0 38%; height:100%; position:relative; background-size:cover; background-position:center; }
.split-media::after{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(14,42,77,0.1), rgba(14,42,77,0.5)); }
.split-content{ flex:1; padding: 86px 60px; overflow-y:auto; }
.slide-split-reverse{ flex-direction:row-reverse; }

/* ---------------- Closing / destination slide ---------------- */
.slide-final{ background: linear-gradient(150deg, var(--navy-deep) 0%, var(--maroon-deep) 100%); }
.final-inner{ text-align:center; width:100%; display:flex; flex-direction:column; align-items:center; color:#fff; }
.final-statement{ font-size:1.3rem; line-height:1.6; max-width:820px; margin: 24px 0; color: rgba(255,255,255,.9); }
.final-statement strong{ color: var(--gold-light); }

/* ---------------- Bottom navigation ---------------- */
.bottom-nav{
  position:fixed; bottom:18px; left:0; right:0; z-index:400;
  display:flex; align-items:center; justify-content:center; gap:20px;
  opacity: 1; transition: opacity .4s ease;
  pointer-events:none;
}
.bottom-nav.idle{ opacity:.28; }
.nav-btn{
  pointer-events:auto;
  width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,0.12); color:#fff; font-size:1rem;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(6px); transition: background .2s ease, transform .2s ease;
}
.nav-btn:hover:not(:disabled){ background: rgba(255,255,255,.25); transform: scale(1.06); }
.nav-btn:disabled{ opacity:.3; cursor:not-allowed; }
.dots{ display:flex; gap:6px; align-items:center; pointer-events:auto; max-width: 46vw; overflow-x:auto; padding: 4px; }
.dots::-webkit-scrollbar{ display:none; }
.dot{
  width:9px; height:9px; border-radius:50%; background: rgba(255,255,255,.28);
  cursor:pointer; transition: all .2s ease; flex-shrink:0;
}
.dot:hover{ background: rgba(255,255,255,.55); }
.dot.active{ background: var(--gold); width:22px; border-radius:5px; }

/* ---------------- Speaker notes panel ---------------- */
.notes-overlay{
  position:fixed; inset:0; background: rgba(8,16,28,.5); z-index:600;
}
.notes-panel{
  position:fixed; top:0; right:0; height:100%; width:400px; max-width:88vw; z-index:700;
  background:#fff; box-shadow: -18px 0 50px rgba(0,0,0,.3);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display:flex; flex-direction:column;
}
.notes-panel.open{ transform: translateX(0); }
.notes-head{
  display:flex; align-items:center; justify-content:space-between; padding:18px 20px;
  border-bottom:1px solid var(--line); background: var(--navy); color:#fff;
}
.notes-head h3{ font-size:1rem; display:flex; align-items:center; gap:8px; }
.notes-head h3 i{ color: var(--gold-light); }
.notes-close{ background:none; border:none; color:#fff; font-size:1.1rem; }
.notes-body{ padding:20px 22px; overflow-y:auto; flex:1; font-size:.92rem; line-height:1.6; color: var(--ink); }
.notes-body p{ margin-bottom:12px; }
.notes-body strong{ color: var(--maroon); }

/* ---------------- Swipe hint (mobile) ---------------- */
.swipe-hint{
  position:fixed; bottom:80px; left:50%; transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,.75); color:#fff; padding:10px 18px; border-radius:999px;
  font-size:.82rem; z-index:800; opacity:0; transition: opacity .3s ease, transform .3s ease;
  pointer-events:none;
}
.swipe-hint.show{ opacity:1; transform: translateX(-50%) translateY(0); }

/* ---------------- Fullscreen hint ---------------- */
.fs-hint{ position:fixed; top:70px; right:22px; z-index:400; font-size:.72rem; color: rgba(255,255,255,.5); pointer-events:none; }

/* ---------------- Responsive: 16:9 desktop is primary target ---------------- */
@media (max-width: 1180px){
  .slide-inner{ padding: 80px 42px 66px; }
  .cover-title{ font-size:2.5rem; }
  .slide-title{ font-size:2.1rem; }
  .activity-grid{ grid-template-columns: repeat(2,1fr); }
  .stat-grid{ grid-template-columns: repeat(2,1fr); }
  .rank-grid{ grid-template-columns: repeat(2,1fr); }
  .feedback-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .topbar-title, .pill-label{ display:none; }
  .slide-split{ flex-direction:column; }
  .split-media{ flex: 0 0 34%; width:100%; }
  .slide-split-reverse{ flex-direction:column; }
  .split-content{ padding: 24px 26px; }
  .activity-grid, .stat-grid, .rank-grid{ grid-template-columns: 1fr 1fr; }
  .milestone-label{ font-size:.68rem; }
  .compare-row{ grid-template-columns:1fr; }
  .compare-arrow{ transform: rotate(90deg); justify-self:center; }
}
@media (max-width: 620px){
  .activity-grid, .stat-grid, .rank-grid, .feedback-grid{ grid-template-columns: 1fr; }
  .cover-title{ font-size:1.9rem; }
  .milestone-row{ flex-direction:column; align-items:flex-start; gap: 14px; }
  .milestone{ flex-direction:row; text-align:left; gap:12px; min-width:0; }
  .milestone-connector{ display:none; }
  .milestone-label{ margin-top:0; }
  .pbar-label{ width:150px; font-size:.78rem; }
  .divider-phase-num{ display:none; }
  .divider-chain{ flex-direction:column; align-items:stretch; }
}

/* ============================================================================
   PHASE SYSTEM — three-phase narrative (Journey / Feedbacking / Institutionalization)
   ============================================================================ */

/* --- Phase strip (breadcrumb shown on content slides within a phase) --- */
.phase-strip{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.phase-chip{
  display:flex; align-items:center; gap:7px;
  font-size:.68rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color: var(--slate-light); padding:5px 12px; border-radius:999px;
  border:1px solid var(--line); background:#fff;
}
.phase-chip .phase-num{
  width:16px; height:16px; border-radius:50%; background: var(--bg-fog); color:var(--slate-light);
  display:flex; align-items:center; justify-content:center; font-size:.62rem; flex-shrink:0;
}
.phase-chip.is-active{ color: var(--maroon); border-color: rgba(122,17,40,.3); background: rgba(122,17,40,.06); }
.phase-chip.is-active .phase-num{ background: var(--maroon); color:#fff; }
.phase-chip.is-past{ color: var(--teal); border-color: rgba(31,111,92,.25); }
.phase-chip.is-past .phase-num{ background: var(--teal); color:#fff; }
.phase-arrow{ color: var(--slate-light); font-size:.7rem; }
/* inverted (on dark backgrounds) */
.text-white .phase-chip{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.55); }
.text-white .phase-chip .phase-num{ background: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.text-white .phase-chip.is-active{ color:#fff; border-color: rgba(231,200,119,.55); background: rgba(231,200,119,.14); }
.text-white .phase-chip.is-active .phase-num{ background: var(--gold); color:#3a2a05; }
.text-white .phase-chip.is-past{ color: var(--teal-light); border-color: rgba(47,156,128,.35); }
.text-white .phase-chip.is-past .phase-num{ background: var(--teal-light); color:#06251d; }
.text-white .phase-arrow{ color: rgba(255,255,255,.35); }

/* --- Phase divider slide (full-bleed section opener) --- */
.divider-phase-num{
  font-family: var(--font-display); font-size:5.5rem; font-weight:800; line-height:1;
  color: rgba(255,255,255,.14); position:absolute; top:8%; right:6%; letter-spacing:-.02em;
}
.divider-inner .journey-banner{ margin: 6px 0 22px; }
.divider-chain{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:8px;
}
.divider-chain-step{
  font-size:.82rem; font-weight:700; color: rgba(255,255,255,.9);
  padding:8px 16px; border-radius:999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2);
}
.divider-chain-step.is-here{ background: linear-gradient(135deg, var(--gold), var(--gold-light)); color:#3a2a05; border-color:transparent; }
.divider-chain-arrow{ color: rgba(255,255,255,.4); font-size:.9rem; }

/* --- Journey banner (AUGUST 2025 -> MAY 2026 marker) --- */
.journey-banner{
  display:inline-flex; align-items:center; gap:14px;
  background: rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.22);
  border-radius:999px; padding:10px 22px; margin-bottom:6px;
}
.journey-banner .jb-date{ font-family: var(--font-display); font-weight:800; font-size:1.05rem; color:#fff; }
.journey-banner .jb-arrow{ color: var(--gold-light); font-size:1rem; }
.journey-banner.on-light{ background: rgba(122,17,40,.06); border-color: rgba(122,17,40,.18); }
.journey-banner.on-light .jb-date{ color: var(--maroon); }
.journey-banner.on-light .jb-arrow{ color: var(--gold); }

/* ============================================================================
   GRAND ROADMAP — the 10 completed EODB / Project ONE Rang-ay milestones
   Two-column numbered road with a running dashed spine per column.
   ============================================================================ */
.grand-roadmap{
  display:grid; grid-template-columns: 1fr 1fr; gap:0 30px; margin-top:8px;
}
.gr-col{ display:flex; flex-direction:column; }
.gr-item{
  position:relative; display:flex; gap:13px; align-items:flex-start;
  padding: 9px 0 15px 0;
}
.gr-col .gr-item:not(:last-child)::before{
  content:''; position:absolute; left:15px; top:34px; bottom:-4px; width:2px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 11px);
}
.gr-num{
  flex-shrink:0; width:32px; height:32px; border-radius:50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light)); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; font-size:.88rem;
  box-shadow: var(--shadow-sm); position:relative; z-index:2;
}
.gr-item.is-milestone10 .gr-num{ background: linear-gradient(135deg, var(--gold), var(--gold-light)); color:#3a2a05; }
.gr-body{ flex:1; padding-top:2px; }
.gr-title{ font-size:.795rem; font-weight:700; color: var(--navy); line-height:1.32; }
.gr-date{ font-size:.7rem; font-weight:700; color: var(--gold); text-transform:uppercase; letter-spacing:.03em; margin-top:4px; display:inline-flex; align-items:center; gap:5px; }
.gr-date i{ font-size:.66rem; }

@media (max-width: 1180px){
  .grand-roadmap{ grid-template-columns: 1fr; gap:0; }
}

/* ============================================================================
   ALL-24 LGU RESULTS TABLE (compact two-column split for 24 rows)
   ============================================================================ */
.lgu-table-split{ display:grid; grid-template-columns: 1fr 1fr; gap:0 20px; margin-top:10px; }
.mini-table{ width:100%; border-collapse:collapse; font-size:.72rem; }
.mini-table th{ text-align:left; background: var(--navy); color:#fff; padding:6px 9px; font-size:.62rem; text-transform:uppercase; letter-spacing:.03em; }
.mini-table td{ padding:6px 9px; border-bottom:1px solid var(--line); color: var(--ink); }
.mini-table tr:nth-child(even) td{ background: var(--bg-fog); }
.mini-table .mt-rank{ font-weight:800; color: var(--maroon); width:26px; }
.mini-table .mt-name{ font-weight:700; color: var(--navy); }
.mini-table .mt-score{ text-align:right; font-weight:700; white-space:nowrap; }
.mt-badge{ font-size:.58rem; font-weight:700; padding:2px 7px; border-radius:999px; text-transform:uppercase; letter-spacing:.02em; }
.mt-badge.top{ background: var(--status-current-bg); color:#a3771f; }
.mt-badge.hc{ background: var(--status-feedback-bg); color: var(--status-feedback); }

/* ============================================================================
   EXTENDED GATEWAY FLOW (7-step institutionalization chain)
   ============================================================================ */
.gateway-flow.gateway-7{ flex-wrap:wrap; row-gap:14px; }
.gateway-flow.gateway-7 .gateway-step{ min-width:118px; padding:14px 10px; }
.gateway-flow.gateway-7 .gateway-step span{ font-size:.72rem; }
.gateway-flow.gateway-7 .gateway-step i{ font-size:1.15rem; }
.gateway-flow.gateway-7 .gateway-step.is-gateway{ padding:18px 12px; }
.gateway-flow.gateway-7 .gateway-arrow{ font-size:.9rem; }

/* --- Reflection / checkpoint station marker (feedbacking transition) --- */
.station-marker{
  display:flex; align-items:center; gap:14px; background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding:16px 24px;
  margin-top:10px;
}
.station-marker i{ font-size:1.7rem; color: var(--gold-light); }
.station-marker .sm-title{ font-weight:700; color:#fff; font-size:.98rem; }
.station-marker .sm-sub{ font-size:.8rem; color: rgba(255,255,255,.68); margin-top:2px; }

/* ---------------- Audience mode (?audience=1) ---------------- */
/* Used by Presenter View's preview iframes and the projector/shared-screen
   window — hides all presenter-only chrome so only the slide content shows. */
body.audience-mode .topbar,
body.audience-mode .bottom-nav,
body.audience-mode .progress-bar,
body.audience-mode #notesToggle,
body.audience-mode .fs-hint{
  display:none !important;
}

/* Print (optional safety, deck is meant for screen) */
@media print{
  .topbar, .bottom-nav, .progress-bar, .notes-panel, .notes-overlay{ display:none !important; }
}

/* ---------------- Responsive overrides for new phase-system components ---------------- */
/* (Placed last so they win by source order over the base rules defined above.) */
@media (max-width: 860px){
  .lgu-table-split{ grid-template-columns:1fr; }
}
@media (max-width: 620px){
  .divider-phase-num{ display:none; }
  .divider-chain{ flex-direction:column; align-items:stretch; }
  .phase-strip{ gap:5px; }
  .phase-chip{ font-size:.6rem; padding:4px 9px; }
}
