/* ============================================================
   FBC APP — STYLES
   Brand pulled from the FBC 2025 booklet: sage green, cream,
   deep navy, hand-lettered script accents, leaf motif.
   ============================================================ */

/* Brand fonts, matched to the FBC booklet's embedded typefaces:
   Black Mango (headers) -> Josefin Sans     [Black Mango is personal-use-only, not licensed for web embedding]
   BeautySalon Script (accents) -> Dancing Script [same licensing restriction]
   Questrial (body) -> Questrial              [the exact booklet font — free & open on Google Fonts] */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;600;700&family=Dancing+Script:wght@500;600;700&family=Questrial&display=swap');

:root {
  /* Official FBC brand palette, sampled from "FBC Color Pallete.png" */
  --sage: #6c9286;
  --sage-dark: #4e6960;
  --sage-light: #aec3bc;
  --cream: #f1f0eb;
  --cream-dark: #e3e2dd;
  --navy: #365b6d;
  --navy-light: #627f8d;
  --ink: #182931;
  --white: #ffffff;
  --gold: #c9a34e;

  --bg: var(--cream);
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: #6b7a72;
  --border: #ddd6c4;
  --tab-bg: var(--white);
  --header-bg: var(--sage);
  --header-text: var(--white);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(43, 67, 86, 0.08);
  --shadow-lg: 0 8px 28px rgba(43, 67, 86, 0.16);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"] {
  --bg: #1b2620;
  --surface: #223028;
  --text: #ecebe4;
  --text-muted: #a9b6ae;
  --border: #33443a;
  --tab-bg: #1f2b24;
  --header-bg: #26382e;
  --header-text: #f3efe3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b2620;
    --surface: #223028;
    --text: #ecebe4;
    --text-muted: #a9b6ae;
    --border: #33443a;
    --tab-bg: #1f2b24;
    --header-bg: #26382e;
    --header-text: #f3efe3;
  }
  :root:not([data-theme="light"]) h1,
  :root:not([data-theme="light"]) h2,
  :root:not([data-theme="light"]) h3,
  :root:not([data-theme="light"]) .display {
    color: var(--cream);
  }
  :root:not([data-theme="light"]) .tab.active { color: var(--sage-light); }
  :root:not([data-theme="light"]) .pill { background: #3a4d40; color: var(--cream); }
  :root:not([data-theme="light"]) .quicklink .qicon,
  :root:not([data-theme="light"]) .more-item .qicon,
  :root:not([data-theme="light"]) .song-num { background: #3a4d40; color: var(--cream); }
  :root:not([data-theme="light"]) .schedule-item .time { color: var(--cream); }
  :root:not([data-theme="light"]) .notice-box { background: #2c3b32; color: var(--cream); }
  :root:not([data-theme="light"]) .field label { color: var(--cream); }
  :root:not([data-theme="light"]) .btn.secondary { color: var(--cream); border-color: var(--cream); }
  :root:not([data-theme="light"]) .provisional-note {
    background: #3a3324; border-color: #5c4f2c; color: #e8d9a8;
  }
  :root:not([data-theme="light"]) .md-note { background: #2c3b32; color: var(--cream); }
  :root:not([data-theme="light"]) .dig-deeper-box { background: #223028; }
  :root:not([data-theme="light"]) .dig-deeper-box .dd-body .dd-tool { color: var(--cream); }
  :root:not([data-theme="light"]) .md-question .ql { background: #3a4d40; color: var(--cream); }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Questrial', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .display {
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .display {
  color: var(--cream);
}

.script {
  font-family: 'Dancing Script', cursive;
  color: var(--sage-dark);
  font-weight: 400;
  font-size: 1.3em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

/* ---------- App shell ---------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  color: var(--header-text);
  padding: calc(14px + var(--safe-top)) 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow);
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header .leaf-mark {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.app-header .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-header .brand-text .top {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--header-text);
}

.app-header .brand-text .sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.icon-btn {
  background: rgba(255,255,255,0.16);
  border: none;
  color: var(--header-text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; }

main {
  flex: 1;
  padding: 18px 16px calc(108px + var(--safe-bottom));
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Bottom tab bar (floating pill) ---------- */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 616px;
  z-index: 30;
  background: var(--tab-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  padding: 6px 4px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.tab {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 2px;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  cursor: pointer;
}

.tab svg { width: 21px; height: 21px; }

.tab.active {
  color: var(--sage-dark);
}
:root[data-theme="dark"] .tab.active { color: var(--sage-light); }

.tab.active .tab-icon-wrap {
  background: var(--sage);
  color: white;
}

.tab-icon-wrap {
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.15s ease;
}

/* ---------- Common components ---------- */

.section-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* Section hero band — the booklet's navy chapter-divider look,
   used to open a handful of top-level sections for visual variety. */
.page-hero {
  background: var(--navy);
  color: white;
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.75;
  margin-bottom: 4px;
}
.page-hero h1 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.page-hero .sub {
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem;
  color: var(--sage-light);
}
.page-hero .plain-sub {
  font-size: 0.86rem;
  opacity: 0.82;
  margin-top: 2px;
}
.page-hero .leaf-bg {
  position: absolute;
  opacity: 0.14;
  right: -18px;
  bottom: -18px;
  width: 110px;
  height: auto;
}

/* Tinted card — the booklet's pale sage/blue note-page backgrounds,
   used to set Seminars and Manuscript Discovery apart from plain cream. */
.card.tint-sage {
  background: var(--sage-light);
  border-color: var(--sage);
}
.card.tint-blue {
  background: #e7edf0;
  border-color: #cddae0;
}
:root[data-theme="dark"] .card.tint-sage { background: #2a3a30; border-color: #3f5346; }
:root[data-theme="dark"] .card.tint-blue { background: #202b30; border-color: #34454c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card.tint-sage { background: #2a3a30; border-color: #3f5346; }
  :root:not([data-theme="light"]) .card.tint-blue { background: #202b30; border-color: #34454c; }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--sage-light);
  color: var(--navy);
}
:root[data-theme="dark"] .pill { background: #3a4d40; color: var(--cream); }

.pill.session { background: var(--navy); color: white; }
.pill.workshop { background: var(--gold); color: white; }
.pill.meal { background: #d8cdb0; color: var(--navy); }
.pill.fun { background: #e2a97a; color: white; }
.pill.seminar { background: #93a8c9; color: white; }
.pill.logistics { background: var(--border); color: var(--text-muted); }

/* Hero card on Home */

.hero {
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: white;
  border-radius: 22px;
  padding: 26px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero .leaf-bg {
  position: absolute;
  opacity: 0.18;
  right: -20px;
  top: -20px;
  width: 150px;
  height: auto;
  object-fit: contain;
}

.hero .eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.85;
  margin-bottom: 6px;
}

.hero h1 {
  color: white;
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.hero .theme {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: #eef4ee;
}

.hero .meta {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  opacity: 0.95;
}
.hero .meta span { display:flex; align-items:center; gap:5px; }
.hero .meta svg { width: 15px; height: 15px; }

.quicklinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.quicklink {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
}
.quicklink .qicon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
:root[data-theme="dark"] .quicklink .qicon { background: #3a4d40; color: var(--cream); }
.quicklink .qicon svg { width: 18px; height: 18px; }

/* Schedule */

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }

.day-chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.day-chip .d { font-size: 0.65rem; font-weight: 500; text-transform: uppercase; color: var(--text-muted); }
.day-chip.active { background: var(--navy); border-color: var(--navy); color: white; }
.day-chip.active .d { color: #cfe0d6; }

.schedule-item {
  display: flex;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item .time {
  width: 78px;
  flex-shrink: 0;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  padding-top: 1px;
}
:root[data-theme="dark"] .schedule-item .time { color: var(--cream); }
.schedule-item .info { flex: 1; }
.schedule-item .info .t { font-weight: 600; margin-bottom: 5px; }

.notice-box {
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--navy-light);
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
:root[data-theme="dark"] .notice-box { background: #2c3b32; color: var(--cream); }

/* LIVE NOW card */
.live-now-card {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  margin-bottom: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.live-now-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}
.live-now-detail {
  font-size: 0.84rem;
  opacity: 0.85;
  margin-top: 4px;
}

.countdown-card { text-align: center; padding: 22px 16px; }
.countdown-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-dark);
  font-weight: 800;
  margin-bottom: 6px;
}
:root[data-theme="dark"] .countdown-kicker { color: var(--sage-light); }
.countdown-value {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--navy);
}
:root[data-theme="dark"] .countdown-value { color: var(--cream); }
.countdown-caption { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .countdown-kicker { color: var(--sage-light); }
  :root:not([data-theme="light"]) .countdown-value { color: var(--cream); }
}

/* Camp Wall */
/* Camp Wall — polaroid corkboard grid */
.wall-grid {
  column-count: 2;
  column-gap: 14px;
  margin-top: 18px;
}
.wall-tile {
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: 6px;
  padding: 8px 8px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.16);
  cursor: pointer;
  transform: rotate(var(--wall-rot, 0deg));
  transition: transform 0.15s ease;
}
.wall-tile:active { transform: rotate(var(--wall-rot, 0deg)) scale(0.97); }
.wall-tile:nth-child(4n+1) { --wall-rot: -2.5deg; }
.wall-tile:nth-child(4n+2) { --wall-rot: 1.8deg; }
.wall-tile:nth-child(4n+3) { --wall-rot: -1.2deg; }
.wall-tile:nth-child(4n+4) { --wall-rot: 2.4deg; }
.wall-tile .wall-photo-wrap {
  border-radius: 3px;
  overflow: hidden;
  background: var(--cream-dark);
}
.wall-tile img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.wall-tile .wall-cap {
  padding: 8px 4px 2px;
}
.wall-tile .wall-cap .name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.05rem;
  color: var(--sage-dark);
  line-height: 1.1;
}
.wall-tile .wall-cap .caption {
  font-size: 0.74rem;
  color: var(--ink);
  line-height: 1.35;
  margin-top: 2px;
}
.wall-tile .wall-like-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.wall-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 2px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.wall-like-btn svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.wall-like-btn.liked { color: #d1534b; }
.wall-like-btn.liked svg { fill: #d1534b; stroke: #d1534b; transform: scale(1.15); }
.wall-tile .wall-del-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.wall-tile .wall-del-btn svg { width: 13px; height: 13px; }
.wall-tile.uploading {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  transform: none;
}
.wall-tile.uploading::after {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--sage);
  animation: wallSpin 0.8s linear infinite;
}
@keyframes wallSpin { to { transform: rotate(360deg); } }

/* Composer — appears after picking a photo, before it's posted */
.wall-composer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.wall-composer img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.wall-composer .row { display: flex; gap: 10px; margin-top: 10px; }
.wall-warning {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: #fbf1de;
  border: 1px solid #ecd9ad;
  color: #7a5b1e;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 10px 0 0;
}
.wall-warning svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
:root[data-theme="dark"] .wall-warning { background: #3a3324; border-color: #5c4f2c; color: #e8d9a8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wall-warning { background: #3a3324; border-color: #5c4f2c; color: #e8d9a8; }
}

/* Lightbox */
.wall-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 20, 18, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  animation: fadeIn 0.2s ease;
}
.wall-lightbox img {
  max-width: 100%;
  max-height: 62vh;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  object-fit: contain;
}
.wall-lightbox .lb-close {
  position: absolute;
  top: calc(16px + var(--safe-top));
  right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.wall-lightbox .lb-close svg { width: 18px; height: 18px; }
.wall-lightbox .lb-info {
  margin-top: 16px;
  text-align: center;
  color: white;
  max-width: 400px;
}
.wall-lightbox .lb-name { font-family: 'Dancing Script', cursive; font-size: 1.4rem; color: var(--sage-light); }
.wall-lightbox .lb-caption { font-size: 0.9rem; margin-top: 4px; opacity: 0.92; }
.wall-lightbox .lb-like-row { margin-top: 14px; display: flex; justify-content: center; }
.wall-lightbox .wall-like-btn { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.wall-lightbox .wall-like-btn.liked { color: #ff6b61; }
.notice-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--sage-dark); }

/* Speakers */

.speaker-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.speaker-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--sage-light);
}
.speaker-card .name { font-size: 1.05rem; margin-bottom: 2px; }
.speaker-card .role { font-size: 0.8rem; color: var(--sage-dark); font-weight: 600; margin-bottom: 8px; }
.speaker-card .bio { font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; }

.fun-fact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.fun-fact-btn svg { width: 13px; height: 13px; }

.speaker-flip { perspective: 1400px; margin-bottom: 14px; }
.speaker-flip-inner {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.speaker-flip.flipped .speaker-flip-inner { transform: rotateY(180deg); }
.speaker-flip-front, .speaker-flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.speaker-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
}
.speaker-flip-back .ff-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 800;
}
.speaker-flip-back .ff-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
:root[data-theme="dark"] .speaker-flip-back .ff-text { color: var(--cream); }
.host-badge {
  display: inline-block;
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: var(--gold);
  margin-right: 6px;
}

.workshop-row, .seminar-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.workshop-row:last-child, .seminar-row:last-child { border-bottom: none; }
.num-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 800; font-size: 1.08rem;
  flex-shrink: 0;
}
.seminar-row .num-badge { background: var(--gold); }
.workshop-row .t, .seminar-row .t { font-weight: 600; font-size: 0.92rem; }
.workshop-row .s, .seminar-row .s { font-size: 0.78rem; color: var(--text-muted); }

/* Map */

.map-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.loc-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.loc-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Announcements */

.announcement {
  border-left: 3px solid var(--sage);
  padding-left: 12px;
}
.announcement .date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-dark);
  font-weight: 700;
}
.announcement h3 { font-size: 1rem; margin: 3px 0 5px; }
.announcement p { margin: 0; font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; }

/* More menu grid */

.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.more-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  min-height: 96px;
}
.more-item .qicon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
:root[data-theme="dark"] .more-item .qicon { background: #3a4d40; color: var(--cream); }
.more-item .qicon svg { width: 18px; height: 18px; }
.more-item .label { font-weight: 700; font-size: 0.9rem; }

/* Forms */

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
:root[data-theme="dark"] .field label { color: var(--cream); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  border: none;
  padding: 13px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  width: 100%;
}
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
:root[data-theme="dark"] .btn.secondary { color: var(--cream); border-color: var(--cream); }
.btn svg { width: 17px; height: 17px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.back-link svg { width: 16px; height: 16px; }

/* Checklist / scavenger hunt */

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item .box {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 2px solid var(--sage);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.checklist-item.done .box { background: var(--sage); }
.checklist-item.done .box svg { width: 14px; height: 14px; color: white; }
.checklist-item .txt { font-size: 0.9rem; line-height: 1.4; }
.checklist-item.done .txt { color: var(--text-muted); text-decoration: line-through; }

.progress-wrap {
  margin-bottom: 18px;
}
.progress-bar-bg {
  background: var(--border);
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  background: linear-gradient(90deg, var(--sage), var(--gold));
  height: 100%;
  border-radius: 100px;
  transition: width 0.3s ease;
}
.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* Circular progress ring (Fun Stuff checklist) */
.progress-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.progress-ring-svg { transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: var(--border); }
.progress-ring-fill {
  fill: none;
  stroke: var(--sage);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}
.progress-ring-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-ring-text {
  position: absolute;
  text-align: center;
}
.progress-ring-text .pct {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1;
}
:root[data-theme="dark"] .progress-ring-text .pct { color: var(--cream); }
.progress-ring-text .frac {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}
.progress-ring-label {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
}
:root[data-theme="dark"] .progress-ring-label { color: var(--sage-light); }

/* Confetti burst */
.confetti-piece {
  position: fixed;
  top: -12px;
  z-index: 999;
  pointer-events: none;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0.9; }
}

/* Ticket / check-in */

.ticket {
  background: var(--navy);
  color: white;
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ticket .name { font-size: 1.3rem; font-family: 'Josefin Sans', sans-serif; margin-bottom: 4px; }
.ticket .sub { font-size: 0.8rem; opacity: 0.8; margin-bottom: 18px; }
.ticket canvas, .ticket svg.qr {
  background: white;
  border-radius: 10px;
  padding: 10px;
  margin: 0 auto 14px;
}
.ticket .code {
  font-family: monospace;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  opacity: 0.85;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }

.toast {
  position: fixed;
  bottom: calc(102px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 50;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

#firstOpenBanner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(var(--safe-top, 0px) + 68px);
  z-index: 60;
  background: var(--navy);
  color: white;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeIn 0.25s ease;
  max-width: 640px;
  margin: 0 auto;
}
#firstOpenBanner .icn {
  flex-shrink: 0;
  margin-top: 1px;
  width: 20px;
  height: 20px;
}
#firstOpenBanner .icn svg { width: 20px; height: 20px; }
#firstOpenBanner .ttl {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 3px;
}
#firstOpenBanner .bd {
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.92;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.song-item, .book-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.song-item:last-child, .book-item:last-child { border-bottom: none; }
.song-item .t { font-weight: 600; font-size: 0.9rem; }
.song-item .a { font-size: 0.78rem; color: var(--text-muted); }
.song-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--navy);
  display: flex; align-items:center; justify-content:center;
  font-size: 0.72rem; font-weight: 700;
  flex-shrink: 0;
}
:root[data-theme="dark"] .song-num { background: #33443a; color: var(--cream); }

.song-links {
  display: flex;
  gap: 8px;
  margin: 8px 0 4px 36px;
}
.song-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--sage-dark);
  background: var(--cream-dark);
}
:root[data-theme="dark"] .song-link-btn { background: #2c3b32; color: var(--sage-light); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .song-link-btn { background: #2c3b32; color: var(--sage-light); }
}

.book-item .cover-dot {
  width: 8px; height: 40px;
  border-radius: 4px;
  background: var(--gold);
  flex-shrink: 0;
}

.decision-group h3 { font-size: 1rem; margin-bottom: 10px; color: var(--sage-dark); }
.decision-group { margin-bottom: 22px; }

.reflection-q {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.reflection-q .qn {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: var(--sage);
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 26px;
}
.reflection-q textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.87rem;
  min-height: 44px;
  resize: vertical;
}

footer.contact-footer {
  text-align: center;
  padding: 20px 0 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .quicklinks { grid-template-columns: repeat(4, 1fr); }
}

/* Seminars */

.seminar-card {
  display: flex;
  gap: 12px;
}
.seminar-card .num-badge { background: var(--gold); }
.seminar-card .body { flex: 1; }
.seminar-card .title { font-weight: 700; font-size: 0.98rem; margin-bottom: 2px; }
.seminar-card .leader { font-size: 0.76rem; font-weight: 700; color: var(--sage-dark); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.seminar-card .subtitle { font-size: 0.8rem; font-style: italic; color: var(--text-muted); margin-bottom: 6px; }
.seminar-card .blurb { font-size: 0.86rem; line-height: 1.5; color: var(--text); }

/* Provisional badge */

.provisional-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: #fbf1de;
  border: 1px solid #ecd9ad;
  color: #7a5b1e;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 0.8rem;
  margin-bottom: 18px;
  line-height: 1.45;
}
:root[data-theme="dark"] .provisional-note {
  background: #3a3324;
  border-color: #5c4f2c;
  color: #e8d9a8;
}
.provisional-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* Manuscript Discovery */

.md-intro-card { margin-bottom: 16px; }
.md-intro-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); margin: 0 0 12px; }
.md-intro-card ol, .md-intro-card ul { margin: 0; padding-left: 20px; font-size: 0.86rem; line-height: 1.6; }
.md-intro-card li { margin-bottom: 4px; }
.md-intro-card h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sage-dark); margin: 14px 0 6px; font-family: 'Questrial', sans-serif; font-weight: 700; }

.workshop-select-list { display: flex; flex-direction: column; gap: 10px; }
.workshop-select-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
}
.workshop-select-card .w-info { flex: 1; }
.workshop-select-card .w-title { font-weight: 700; font-size: 0.98rem; }
.workshop-select-card .w-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.workshop-select-card svg.chev { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

.md-section { margin-bottom: 22px; }
.md-section h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Questrial', sans-serif;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
:root[data-theme="dark"] .md-section h3 { color: var(--sage-light); }
.md-section h3::before {
  content: "";
  width: 4px; height: 14px;
  background: var(--sage);
  border-radius: 2px;
}

.md-note {
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--navy-light);
  margin-bottom: 14px;
}
:root[data-theme="dark"] .md-note { background: #2c3b32; color: var(--cream); }

.md-question {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.md-question .ql {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--sage-light);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
:root[data-theme="dark"] .md-question .ql { background: #3a4d40; color: var(--cream); }
.md-question p { margin: 0 0 6px; font-size: 0.89rem; line-height: 1.5; }
.md-question textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.85rem;
  min-height: 40px;
  resize: vertical;
}

.dig-deeper-box {
  display: flex;
  gap: 12px;
  background: linear-gradient(135deg, #eef3ee, #e5ede6);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}
:root[data-theme="dark"] .dig-deeper-box { background: #223028; border-left-color: var(--sage); }
.dig-deeper-box .dd-tag {
  flex-shrink: 0;
  writing-mode: horizontal-tb;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: var(--sage-dark);
  border-radius: 6px;
  padding: 4px 6px;
  height: fit-content;
  white-space: nowrap;
}
.dig-deeper-box .dd-body .dd-tool { font-weight: 700; font-size: 0.85rem; margin-bottom: 3px; color: var(--navy); }
:root[data-theme="dark"] .dig-deeper-box .dd-body .dd-tool { color: var(--cream); }
.dig-deeper-box .dd-body p { margin: 0; font-size: 0.83rem; line-height: 1.5; color: var(--text-muted); }

.arc-table-wrap { overflow-x: auto; margin-bottom: 12px; }
table.arc-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 480px; }
table.arc-table th {
  background: var(--navy);
  color: white;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
table.arc-table td {
  border: 1px solid var(--border);
  padding: 6px 8px;
}
table.arc-table input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  font-family: inherit;
}
table.arc-table input:focus { outline: none; }

.toolkit-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toolkit-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.85rem;
}
.toolkit-item .tk-num {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: var(--sage);
  width: 20px;
  flex-shrink: 0;
}
.toolkit-item .tk-name { font-weight: 700; }
.toolkit-item .tk-desc { color: var(--text-muted); }
