:root {
  --bus: #f5b700;
  --bus-deep: #d99a00;
  --navy: #14213d;
  --navy-2: #1d2d52;
  --ink: #1d2433;
  --muted: #5b6475;
  --cream: #fbf7ee;
  --paper: #ffffff;
  --line: #e7dfcc;
  --teal: #0e7c7b;
  --coral: #c8452b;
  --green: #2e8b57;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* ---------- header / nav ---------- */
header.site { position: sticky; top: 0; z-index: 1100; background: var(--navy); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a.link { display: block; color: #dbe3f1; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; }
.nav a.link:hover, .nav a.link[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.nav a.link.cta { background: var(--bus); color: var(--navy); }
.nav a.link.cta:hover { background: #ffc928; }
.menu-btn { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 64px; left: -16px; right: -16px; flex-direction: column; background: var(--navy); padding: 8px 16px 16px; }
  .nav ul.open { display: flex; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--bus); color: var(--navy); }
.btn-primary:hover { background: #ffc928; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-danger { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.white { background: var(--paper); }
.section.navy { background: var(--navy); color: #e6ecf7; }
.section.navy h2, .section.navy h3 { color: #fff; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--teal); margin-bottom: .6em; }
.section.navy .eyebrow { color: var(--bus); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 68ch; }
.page-head { padding: 56px 0 24px; }
.page-head .lead { margin-bottom: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.two-col { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.pillar { position: relative; padding-top: 30px; }
.pillar .num { position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--bus); color: var(--navy); font-weight: 900; display: grid; place-items: center; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; box-shadow: 0 0 0 4px var(--cream); }
.pillars { row-gap: 40px; margin-top: 32px; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 2.2rem; color: var(--bus); line-height: 1.1; }
.stat span { font-size: .92rem; color: #c5d0e4; }

/* ---------- intro animation ---------- */
.intro { background: #0f1a30; }
.scene-wrap { position: relative; max-width: 1400px; margin: 0 auto; }
.scene { display: block; width: 100%; height: auto; max-height: calc(100vh - 130px); }
.intro-controls { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 2; }
.intro-controls button { background: rgba(20,33,61,.75); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.intro-controls button:hover { background: rgba(20,33,61,.95); }
.intro-caption { margin: 0; min-height: 3.4em; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 16px; color: #f3f5fb; font-size: clamp(.95rem, 2vw, 1.15rem); font-weight: 600; background: var(--navy); transition: opacity .35s ease; }
.intro-caption.fade { opacity: 0; }
.intro-title { position: absolute; left: 4%; top: 8%; max-width: 52%; opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s ease; pointer-events: none; }
.intro-title.show { opacity: 1; transform: none; pointer-events: auto; }
.intro-title .kicker { margin: 0 0 .3em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-size: clamp(.65rem, 1.3vw, .9rem); }
.intro-title h1 { font-size: clamp(1.6rem, 6vw, 4.6rem); margin-bottom: .15em; color: var(--navy); text-shadow: 0 2px 18px rgba(255,255,255,.6); }
.intro-title p.tag { font-family: "Fraunces", Georgia, serif; font-size: clamp(.85rem, 2.2vw, 1.6rem); color: var(--navy); margin-bottom: .8em; }
.intro-title .btn { font-size: clamp(.75rem, 1.4vw, 1rem); padding: .6em 1.3em; }
@media (max-width: 560px) {
  .intro-title, .intro-title.show { position: static; max-width: none; opacity: 1; transform: none; pointer-events: auto; padding: 18px 16px 20px; background: linear-gradient(#fff4d6, #ffe3a0); }
  .intro-title h1 { font-size: 2.2rem; }
  .intro-title p.tag { font-size: 1.05rem; }
  .intro-title .btn { font-size: .9rem; }
}
.cloud { animation: drift 40s ease-in-out infinite alternate; }
.cloud.slow { animation-duration: 65s; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(50px); } }
#heavenRays, #burstRays { transform-box: fill-box; transform-origin: center; animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- verse ---------- */
.verse { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.45; color: var(--navy); border-left: 5px solid var(--bus); padding: 4px 0 4px 22px; margin: 0; }
.verse cite { display: block; margin-top: .6em; font-family: "Nunito Sans", sans-serif; font-style: normal; font-size: .95rem; font-weight: 800; color: var(--teal); }
.section.navy .verse { color: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6f1e4; color: var(--navy); font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.zero { color: #b0a891; }

/* ---------- pills / lists ---------- */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.pill.visited, .pill.done { background: #dff3e7; color: #1d6b40; }
.pill.planned { background: #fff1c2; color: #7a5800; }
.pill.in_progress { background: #dcefff; color: #1b5a8f; }
.pill.new { background: #ffe3dc; color: #9a3017; }
.pill.contacted { background: #dcefff; color: #1b5a8f; }
.pill.approved { background: #dff3e7; color: #1d6b40; }
.pill.declined { background: #eee; color: #666; }

.stop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stop-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stop-list li b { color: var(--navy); }
.stop-list .meta { font-size: .88rem; color: var(--muted); }
.stop-list button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); font-weight: 700; cursor: pointer; }
.empty { padding: 18px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--line); border-radius: 3px; }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 3px solid #c9bfa6; }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.in_progress::before { background: var(--bus); border-color: var(--bus-deep); }
.timeline h3 { font-size: 1.1rem; margin: 0 0 .2em; }
.timeline .when { font-size: .85rem; color: var(--muted); font-weight: 700; }

/* ---------- bars ---------- */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; gap: 12px; align-items: center; font-size: .92rem; }
.bar { height: 14px; border-radius: 7px; background: #efe8d6; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 7px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr auto; } .bar-row .bar { grid-column: 1 / -1; order: 3; } }

/* ---------- forms ---------- */
form .field { display: grid; gap: 6px; margin-bottom: 14px; }
label { font-weight: 800; font-size: .92rem; color: var(--navy); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #d8cfb9; border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(14,124,123,.25); border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- map ---------- */
.map-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .map-layout { grid-template-columns: 1fr; } }
#map { height: min(68vh, 620px); min-height: 380px; border-radius: var(--radius); border: 1px solid var(--line); background: #dfe9ee; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.map-toolbar select { width: auto; min-width: 200px; }
.legend { display: flex; gap: 16px; font-size: .9rem; color: var(--muted); align-items: center; flex-wrap: wrap; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.dot.visited { background: var(--green); border: 2px solid #1f7a4a; }
.dot.planned { background: var(--bus); border: 2px dashed #9a6c00; }
.pick-banner { display: none; margin-bottom: 12px; padding: 12px 16px; border-radius: 12px; background: #fff1c2; color: #5f4500; font-weight: 700; }
.pick-banner.on { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-picking #map { cursor: crosshair; outline: 3px solid var(--bus); }
.popup h4 { margin: 0 0 4px; font-size: 1.05rem; }
.popup p { margin: 4px 0; }
.popup .btns { display: flex; gap: 8px; margin-top: 8px; }

dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, 100% - 24px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(15, 26, 48, .55); }
dialog .dlg-body { padding: 24px; max-height: 85vh; overflow-y: auto; }

/* ---------- guide ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding: 22px 24px 20px 78px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); break-inside: avoid; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--bus); font-weight: 900; font-family: "Fraunces", Georgia, serif; display: grid; place-items: center; font-size: 1.1rem; }
.steps ul { margin: .4em 0 0; padding-left: 1.2em; }
.steps li li { margin-bottom: .3em; }
.callout { background: #fff8e1; border: 1px solid #f1d58a; border-radius: 12px; padding: 14px 18px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s; z-index: 3000; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.error { background: var(--coral); }

/* ---------- admin ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tabs button { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; cursor: pointer; color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.key-box { font-family: ui-monospace, Consolas, monospace; background: #14213d; color: var(--bus); padding: 12px 14px; border-radius: 10px; word-break: break-all; }

/* ---------- footer ---------- */
footer.site { background: var(--navy); color: #c5d0e4; padding: 48px 0 32px; font-size: .95rem; }
footer.site a { color: #fff; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: .6em; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, #heavenRays, #burstRays, .pulse { animation: none; }
}

@media print {
  header.site, footer.site, .no-print, .intro-controls { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section, .page-head { padding: 16px 0; }
  .steps > li, .card { border-color: #bbb; }
  a { color: inherit; text-decoration: none; }
}
