/* =========================================================
   St. Juan Diego YAG × ASCEND — Retreat Site
   Shared stylesheet
   "In Him, We Rise — Together."
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Ink / midnight — near-black with subtle navy undertone */
  --ink:         #060d1a;
  --ink-deep:    #030509;
  --ink-soft:    #0c1526;
  --ink-veil:    rgba(6, 13, 26, 0.88);
  --ink-glass:   rgba(6, 13, 26, 0.72);

  /* Gold */
  --gold:        #c9a14a;
  --gold-bright: #e5c06a;
  --gold-dim:    #8a6e33;
  --gold-deep:   #5a4720;
  --gold-soft:   rgba(201, 161, 74, 0.18);
  --gold-glow:   rgba(229, 192, 106, 0.55);

  /* Cream / parchment */
  --cream:       #f5f1e8;
  --cream-dim:   rgba(245, 241, 232, 0.72);
  --cream-mute:  rgba(245, 241, 232, 0.48);
  --cream-line:  rgba(245, 241, 232, 0.12);
  --parchment:   #f0e9d6;
  --parchment-2: #e8dfc6;

  /* Accent */
  --sacred:      #8a1538;  /* liturgical red */
  --sacred-bright: #b02248;
  --live:        #d4433e;

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", "EB Garamond", Georgia, serif;
  --font-body:    "Lora", "Georgia", "Cambria", serif;

  /* Modular scale — bumped for readability */
  --fs-xxs:   0.8125rem;   /* 13 */
  --fs-xs:    0.875rem;    /* 14 */
  --fs-sm:    1rem;        /* 16 */
  --fs-base:  1.0625rem;   /* 17 */
  --fs-md:    1.1875rem;   /* 19 */
  --fs-lg:    1.5rem;      /* 24 */
  --fs-xl:    1.875rem;    /* 30 */
  --fs-2xl:   2.375rem;    /* 38 */
  --fs-3xl:   3.125rem;    /* 50 */
  --fs-4xl:   4rem;        /* 64 */
  --fs-5xl:   5.5rem;      /* 88 */
  --fs-6xl:   7.5rem;      /* 120 */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 12rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-deep: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --shadow-mid:  0 14px 42px -14px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 6px 24px -8px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 42px -4px rgba(229, 192, 106, 0.3);

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 0.84, 0.32, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-mid:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  160ms;
  --dur-med:   360ms;
  --dur-slow:  720ms;

  /* Layout */
  --container:   1200px;
  --container-narrow: 860px;
  --nav-h:       72px;
  --mnav-h:      68px;

  /* Z layers */
  --z-nav:     100;
  --z-overlay: 200;
  --z-sheet:   300;
  --z-toast:   400;
  --z-onboarding: 500;
}

/* ---------- 1b. Light mode override ---------- */
html[data-theme="light"] {
  /* Ink becomes the background family (warm cream) */
  --ink:         #f7f4ec;
  --ink-deep:    #f0ebe0;
  --ink-soft:    #e8e2d4;
  --ink-veil:    rgba(247, 244, 236, 0.88);
  --ink-glass:   rgba(247, 244, 236, 0.78);

  /* Gold adjusts for contrast on light */
  --gold:        #9e7c2e;
  --gold-bright: #c9a14a;
  --gold-dim:    #7a6124;
  --gold-deep:   #5a4720;
  --gold-soft:   rgba(158, 124, 46, 0.12);
  --gold-glow:   rgba(158, 124, 46, 0.25);

  /* Cream becomes the text family (dark navy) */
  --cream:       #1a1a2e;
  --cream-dim:   rgba(26, 26, 46, 0.72);
  --cream-mute:  rgba(26, 26, 46, 0.48);
  --cream-line:  rgba(26, 26, 46, 0.10);
  --parchment:   #f5f1e8;
  --parchment-2: #ede7d8;

  /* Sacred (liturgical red) */
  --sacred:        #8a1538;
  --sacred-bright: #a01d42;
  --live:          #c93832;

  /* Shadows — much softer */
  --shadow-deep: 0 30px 80px -20px rgba(26, 26, 46, 0.18);
  --shadow-mid:  0 14px 42px -14px rgba(26, 26, 46, 0.12);
  --shadow-soft: 0 6px 24px -8px rgba(26, 26, 46, 0.08);
  --shadow-gold: 0 0 42px -4px rgba(158, 124, 46, 0.15);
}

/* Light mode — component-specific overrides */
html[data-theme="light"] .tile,
html[data-theme="light"] .quicklink {
  background: rgba(255,255,255,0.7);
  border-color: rgba(26,26,46,0.08);
  box-shadow: 0 2px 16px -4px rgba(26,26,46,0.1);
}
html[data-theme="light"] .tile:hover,
html[data-theme="light"] .quicklink:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 24px -4px rgba(158,124,46,0.15), 0 8px 28px -8px rgba(26,26,46,0.12);
}
html[data-theme="light"] .info-card {
  background: rgba(255,255,255,0.7) !important;
  border-color: rgba(26,26,46,0.08);
  box-shadow: 0 2px 12px -2px rgba(26,26,46,0.06);
}
html[data-theme="light"] .info-card:hover {
  background: rgba(255,255,255,0.85) !important;
  box-shadow: 0 4px 20px -4px rgba(26,26,46,0.09);
}
html[data-theme="light"] .note-box {
  background: linear-gradient(155deg, rgba(158,124,46,0.08), rgba(158,124,46,0.02));
}
html[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(26,26,46,0.03), rgba(26,26,46,0.01));
}
html[data-theme="light"] .countdown-cell {
  background: rgba(26, 26, 46, 0.06);
}
html[data-theme="light"] .stop-card {
  background: rgba(255,255,255,0.75);
  border-color: rgba(26,26,46,0.08);
  box-shadow: 0 2px 12px -2px rgba(26,26,46,0.07);
}
html[data-theme="light"] .stop-card:hover {
  border-color: rgba(201,161,74,0.35);
  box-shadow: 0 4px 20px -4px rgba(26,26,46,0.1);
}
html[data-theme="light"] .stop-card.open {
  background: rgba(255,255,255,0.85);
  border-color: rgba(201,161,74,0.25);
  box-shadow: 0 4px 24px -4px rgba(26,26,46,0.1);
}
html[data-theme="light"] .stop.current .stop-card {
  background: rgba(255,255,255,0.9);
  border-color: var(--gold);
  box-shadow: 0 8px 30px -8px rgba(201,161,74,0.2);
}
html[data-theme="light"] .option-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(26,26,46,0.08);
  box-shadow: 0 2px 12px -2px rgba(26,26,46,0.06);
}
html[data-theme="light"] .option-card[aria-pressed="true"] {
  background: rgba(255,255,255,0.9);
  border-color: var(--gold);
  box-shadow: 0 4px 20px -4px rgba(201,161,74,0.15);
}
html[data-theme="light"] .speaker-back {
  background: linear-gradient(155deg, rgba(158,124,46,0.08), rgba(255,255,255,0.85));
}
html[data-theme="light"] .hero-card {
  background: linear-gradient(155deg, rgba(158,124,46,0.06), rgba(255,255,255,0.7));
  border-color: rgba(26,26,46,0.08);
  box-shadow: 0 2px 16px -4px rgba(26,26,46,0.08);
}
html[data-theme="light"] .field {
  background: rgba(26, 26, 46, 0.04);
}
html[data-theme="light"] .check {
  background: rgba(26, 26, 46, 0.02);
}
html[data-theme="light"] .check:hover {
  background: rgba(26, 26, 46, 0.04);
}
html[data-theme="light"] .check.done {
  background: rgba(158, 124, 46, 0.06);
}
html[data-theme="light"] .progress-bar {
  background: rgba(26, 26, 46, 0.08);
}
html[data-theme="light"] .countdown-chip.after {
  background: rgba(26, 26, 46, 0.06);
}
html[data-theme="light"] .btn-ghost {
  background: rgba(26, 26, 46, 0.05);
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(26, 26, 46, 0.10);
}
html[data-theme="light"] .why-times {
  background: rgba(26, 26, 46, 0.03);
}

/* Light mode — atmospheric backgrounds */
html[data-theme="light"] .bg-grain::before {
  opacity: 0.025;
  mix-blend-mode: multiply;
}
html[data-theme="light"] .bg-rays::before {
  opacity: 0.7;
}
html[data-theme="light"] .bg-parchment {
  background: var(--parchment);
}
html[data-theme="light"] .bg-parchment p {
  color: rgba(26, 26, 46, 0.72);
}
html[data-theme="light"] .hero-bg {
  opacity: 0.18;
  filter: saturate(0.35) brightness(1.05);
}

/* Transition disable during theme switch */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition-duration: 0ms !important;
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.65;
  color: var(--cream);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-h);
  padding-bottom: 0;
}

@media (max-width: 880px) {
  body {
    padding-top: 0;
    padding-bottom: calc(var(--mnav-h) + var(--space-5) + env(safe-area-inset-bottom, 0px));
  }
}

img, svg, video, canvas { display: block; max-width: 100%; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover, a:focus-visible { color: var(--gold-bright); }
a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

input, textarea, select {
  font-family: inherit;
  font-size: max(1rem, 16px);
  color: inherit;
  touch-action: manipulation;
}

::selection { background: var(--gold); color: var(--ink); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--cream);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 6vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.875rem, 4.5vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.5rem, 3.5vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-4); color: var(--cream-dim); font-weight: 500; }
p:last-child { margin-bottom: 0; }
li { font-weight: 500; }

.display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 10vw, var(--fs-6xl));
  line-height: 0.96;
  letter-spacing: -0.022em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 7.5vw, var(--fs-5xl));
  line-height: 1;
  letter-spacing: -0.018em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.45;
  color: var(--cream);
  font-style: italic;
}

.serif { font-family: var(--font-display); }
.sans  { font-family: var(--font-body); }
.italic { font-style: italic; }

.text-gold    { color: var(--gold); }
.text-bright  { color: var(--gold-bright); }
.text-cream   { color: var(--cream); }
.text-dim     { color: var(--cream-dim); }
.text-mute    { color: var(--cream-mute); }
.text-center  { text-align: center; }

/* Dropcap for prayer sections */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.6em;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.08em 0 0;
  color: var(--gold);
}

/* ---------- 4. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section { padding: var(--space-9) 0; position: relative; }
section.section-hero { padding-bottom: var(--space-5); }
@media (max-width: 640px) { section { padding: var(--space-8) 0; } }

/* Standalone app (added to home screen) — push content below status bar */
@media all and (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top, 20px); }
  .hero { min-height: calc(100vh - var(--nav-h) - env(safe-area-inset-top, 20px)); }
}

.section-header { margin-bottom: var(--space-7); }
.section-header.center { text-align: center; }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; gap: var(--space-4); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) auto;
  color: var(--gold-dim);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.divider-ornament {
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  position: relative;
}
.divider-ornament::after {
  content: ""; position: absolute;
  inset: 3px;
  background: var(--gold);
}

/* ---------- 5. Backgrounds & atmosphere ---------- */
.bg-ink       { background: var(--ink); color: var(--cream); }
.bg-ink-deep  { background: var(--ink-deep); color: var(--cream); }
.bg-parchment { background: var(--parchment); color: var(--ink); }
.bg-parchment p, .bg-parchment h1, .bg-parchment h2, .bg-parchment h3, .bg-parchment h4 { color: var(--ink); }
.bg-parchment p { color: rgba(6, 13, 26, 0.72); }

.bg-grain {
  position: relative;
}
.bg-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-stars {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,161,74,0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(229,192,106,0.05) 0%, transparent 45%),
    var(--ink-deep);
}

.bg-rays {
  position: relative;
  isolation: isolate;
}
.bg-rays::before {
  content: "";
  position: absolute; inset: 0;
  background: conic-gradient(
    from 220deg at 50% 120%,
    transparent 0deg,
    rgba(201, 161, 74, 0.12) 12deg,
    transparent 24deg,
    transparent 36deg,
    rgba(201, 161, 74, 0.08) 50deg,
    transparent 64deg,
    transparent 90deg,
    rgba(201, 161, 74, 0.10) 104deg,
    transparent 118deg,
    transparent 360deg
  );
  mask-image: linear-gradient(to top, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 140px;
  margin: var(--space-4) 0;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: var(--ink-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--cream-line);
}
.nav-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.brand .x {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  opacity: 0.9;
}
.brand .ornament {
  width: 16px; height: 16px;
  display: inline-block;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  position: relative;
  margin-right: 0.3em;
}
.brand .ornament::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
  list-style: none;
  padding: 0; margin-top: 0; margin-bottom: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-dim);
  padding: 0.4em 0;
  position: relative;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a[aria-current="page"] {
  color: var(--gold);
}
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Desktop nav dropdowns */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-dim);
  padding: 0.4em 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25em;
}
.nav-dropdown-btn:hover { color: var(--cream); }
.nav-dropdown-btn svg {
  width: 10px; height: 10px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-btn svg,
.nav-dropdown.open .nav-dropdown-btn svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 10rem;
  background: var(--ink-soft);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  padding: 0.375rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--cream);
  background: rgba(245,241,232,0.06);
}

html[data-theme="light"] .nav-dropdown-menu {
  background: var(--ink-soft);
  border-color: var(--cream-line);
}

.countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.9em;
  border-radius: var(--r-pill);
  border: 1px solid var(--gold-soft);
  background: rgba(201, 161, 74, 0.08);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: all var(--dur-med) var(--ease-out);
  margin-left: var(--space-4);
}
.countdown-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(229, 192, 106, 0.7);
  animation: pulseDot 2.2s var(--ease-out) infinite;
}
.countdown-chip.during { color: var(--gold-bright); border-color: var(--gold); background: rgba(201,161,74, 0.14); }
.countdown-chip.after  { color: var(--cream); background: rgba(245, 241, 232, 0.06); }

/* Scroll to top */
.btn-scroll-top {
  position: fixed;
  bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  right: var(--space-4);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: rgba(201,161,74,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(201,161,74,0.18);
}
.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-scroll-top:hover {
  background: rgba(201,161,74,0.25);
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 4px 20px rgba(201,161,74,0.3);
}
html[data-theme="light"] .btn-scroll-top {
  background: rgba(201,161,74,0.1);
  border-color: var(--gold-dim);
  color: var(--gold-dim);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
html[data-theme="light"] .btn-scroll-top:hover {
  background: rgba(201,161,74,0.2);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
@media (min-width: 881px) {
  .btn-scroll-top { bottom: var(--space-6); }
}

/* Mobile bottom nav — floating pill */
.mnav {
  display: none;
  position: fixed;
  bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  left: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-nav);
  height: var(--mnav-h);
  background: var(--ink-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
}
.mnav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.mnav a, .mnav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--cream-mute);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--dur-fast);
  padding: 0;
}
.mnav a[aria-current="page"] { color: var(--gold); }
.mnav a svg, .mnav button svg { width: 22px; height: 22px; }
.mnav-label { display: block; }

/* Mobile chip above nav */
/* Mobile top bar */
.mtop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: calc(48px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--space-4) 0;
  background: var(--ink-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--cream-line);
}
.mtop-inner {
  display: flex;
  align-items: center;
  height: 48px;
  gap: var(--space-3);
}
.mtop-brand {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.mtop-brand .x { color: var(--gold); margin: 0 0.15em; font-weight: 600; }
.mtop .countdown-chip {
  margin-left: auto;
  font-size: var(--fs-xxs);
  padding: 0.3em 0.65em;
}
.mtop-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s;
}
.mtop-profile:hover { background: var(--gold); color: var(--ink-deep); }
.mtop-profile svg { width: 16px; height: 16px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .mnav { display: block; }
  .mtop { display: block; }
  body { padding-top: calc(48px + env(safe-area-inset-top, 0px)); }
}

/* Schedule submenu (pops above bottom nav) */
.mnav-sub {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-70%) scale(0.95);
  transform-origin: bottom center;
  display: flex;
  gap: 2px;
  background: var(--ink-soft);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-lg);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  box-shadow: var(--shadow-mid);
}
.mnav-sub.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-70%) scale(1);
}
.mnav-sub a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}
.mnav-sub a:hover, .mnav-sub a:focus-visible {
  background: var(--gold-soft);
  color: var(--gold-bright);
}
.mnav-sub a svg { width: 20px; height: 20px; }
.mnav-sub-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  opacity: 0;
  pointer-events: none;
}
.mnav-sub-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Light mode floating nav */
html[data-theme="light"] .mnav {
  background: rgba(255,255,255,0.82);
  border-color: rgba(30,30,60,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

/* More sheet — popover style matching schedule submenu */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  opacity: 0;
  pointer-events: none;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  bottom: calc(var(--mnav-h) + var(--space-3) + env(safe-area-inset-bottom, 0px) + 8px);
  right: var(--space-3);
  z-index: var(--z-nav);
  background: var(--ink-soft);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-lg);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transform-origin: bottom right;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  box-shadow: var(--shadow-mid);
  max-height: 70vh;
  overflow-y: auto;
}
.sheet.open { opacity: 1; pointer-events: auto; transform: scale(1); }
.sheet-handle { display: none; }
.sheet-header { display: none; }
/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--cream-line);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all var(--dur-fast);
  margin-left: var(--space-2);
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover, .theme-toggle:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }

.sheet-theme-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.sheet-theme-toggle:hover {
  background: var(--gold-soft);
  color: var(--gold-bright);
}
.sheet-theme-toggle svg { width: 20px; height: 20px; color: var(--gold); }

.sheet-links {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.sheet-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast);
  text-decoration: none;
  white-space: nowrap;
}
.sheet-links a svg { width: 20px; height: 20px; }
.sheet-links a:hover, .sheet-links a:focus-visible {
  background: var(--gold-soft);
  color: var(--gold-bright);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(201, 161, 74, 0.5);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -10px rgba(229, 192, 106, 0.65);
  color: var(--ink);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--gold-soft);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}
.btn-ghost {
  background: rgba(245, 241, 232, 0.06);
  color: var(--cream);
  border: 1px solid var(--cream-line);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(245, 241, 232, 0.12);
  border-color: var(--cream-dim);
  color: var(--cream);
}
.btn-sm { padding: 0.65em 1.25em; font-size: var(--fs-xxs); }
.btn-lg { padding: 1.1em 2.2em; font-size: var(--fs-sm); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
}

/* ---------- 8. Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(245,241,232,0.04) 0%, rgba(245,241,232,0.015) 100%);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  position: relative;
  transition: all var(--dur-med) var(--ease-out);
  backdrop-filter: blur(4px);
}
.card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-mid), var(--shadow-gold);
}
.card h3, .card h4 { color: var(--cream); }
.card .eyebrow { margin-bottom: var(--space-3); }

.card-feature {
  background: linear-gradient(180deg, rgba(201,161,74,0.06) 0%, rgba(201,161,74,0.01) 100%);
  border: 1px solid var(--gold-soft);
}
.card-feature::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(229,192,106,0.12), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
}

.card-gold {
  background: linear-gradient(155deg, var(--gold) 0%, var(--gold-dim) 100%);
  border: none;
  color: var(--ink);
}
.card-gold h2, .card-gold h3, .card-gold h4, .card-gold p { color: var(--ink); }

.card-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

/* Glance tile (at-a-glance on home) */
.tile {
  padding: var(--space-7);
  border: 1px solid var(--cream-line);
  border-top: 2px solid var(--gold-dim);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(201,161,74,0.06) 0%, rgba(201,161,74,0.01) 40%, transparent 100%);
  position: relative;
  transition: all var(--dur-med) var(--ease-out);
  overflow: hidden;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(245,241,232,0.06);
}
.tile:hover {
  border-color: var(--gold-soft);
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(245,241,232,0.06),
    0 0 24px -4px rgba(201,161,74,0.15),
    0 8px 32px -8px rgba(0,0,0,0.3);
}
.tile .icon {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  margin: 0 auto var(--space-4);
  color: var(--gold-bright);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 28px rgba(229,192,106,0.4));
}
.tile h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin: 0 0 var(--space-3);
  font-weight: 600;
}
.tile p {
  font-size: var(--fs-sm);
  color: var(--cream-dim);
  margin: 0;
  line-height: 1.6;
}

/* Quick links */
.quicklink {
  display: block;
  padding: var(--space-6) var(--space-6) var(--space-5);
  border: 1px solid var(--cream-line);
  border-top: 2px solid var(--gold-dim);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(201,161,74,0.05) 0%, transparent 50%);
  text-decoration: none;
  color: var(--cream);
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.quicklink::after {
  content: "→";
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 50%;
  transition: all var(--dur-med) var(--ease-out);
}
.quicklink:hover {
  border-color: var(--gold-soft);
  border-top-color: var(--gold);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 0 24px -4px rgba(201,161,74,0.12), 0 8px 28px -8px rgba(0,0,0,0.25);
}
.quicklink:hover::after { background: var(--gold); color: var(--ink); transform: translateX(2px); }
.quicklink .icon {
  width: 2rem; height: 2rem;
  display: block;
  margin: 0 auto var(--space-3);
  color: var(--gold-bright);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 20px rgba(229,192,106,0.3));
}
.quicklink h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0 0 var(--space-2); }

/* Inline sheet / footer / wall SVG icons */
.si { width: 1.125em; height: 1.125em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.fh { width: 0.9em; height: 0.9em; display: inline-block; vertical-align: -0.1em; fill: var(--sacred-bright, #c94a4a); stroke: none; }
.live-dot { display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--live); vertical-align: 0.1em; margin-right: 0.3em; animation: blinkSoft 1.8s ease-in-out infinite; }
.quicklink p { font-size: var(--fs-sm); color: var(--cream-dim); margin: 0; }

/* ---------- 9. Home hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: var(--space-9) var(--space-4);
  background: var(--ink-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -3;
  background: url('public/images/juan-diego-confirmation-60.jpg') center center / cover no-repeat;
  opacity: 0.30;
  filter: saturate(0.35) brightness(0.9);
}
@media (max-width: 880px) {
  .hero {
    min-height: calc(100vh - var(--mnav-h) - env(safe-area-inset-bottom, 0px));
    min-height: calc(100svh - var(--mnav-h) - env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(var(--space-8) + var(--mnav-h) + env(safe-area-inset-bottom, 0px));
  }
}
.hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, var(--ink-deep) 100%),
    linear-gradient(180deg, transparent 50%, var(--ink-deep) 100%);
}
.hero-content {
  max-width: 980px;
  text-align: center;
  z-index: 1;
  animation: heroRise 1.8s var(--ease-out) both;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: var(--space-5);
  animation: fadeIn 1.6s 0.3s var(--ease-out) both;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-eyebrow span {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.018em;
  color: var(--cream);
  margin: 0 0 var(--space-5);
}
.hero-title .amp {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
  padding: 0 0.08em;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  color: var(--cream-dim);
  margin: 0 0 var(--space-7);
  animation: fadeIn 1.6s 0.8s var(--ease-out) both;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--gold);
  margin-top: var(--space-7);
  animation: fadeIn 1.6s 1.8s var(--ease-out) both;
}

/* Big countdown */
.countdown-big {
  display: inline-flex;
  align-items: stretch;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  margin-bottom: var(--space-7);
  animation: fadeIn 1.8s 1.1s var(--ease-out) both;
}
.countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(64px, 13vw, 110px);
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-md);
  background: rgba(6, 13, 26, 0.5);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}
.countdown-cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.countdown-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.countdown-num.flip { animation: flipNum 0.45s var(--ease-out); }
.countdown-label {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.countdown-state {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--gold-bright);
  padding: var(--space-5) var(--space-7);
  border: 1px solid var(--gold);
  border-radius: var(--r-lg);
  background: rgba(201, 161, 74, 0.08);
  margin-bottom: var(--space-7);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: bob 2.4s ease-in-out infinite;
  opacity: 0.78;
}
.scroll-indicator svg {
  width: 16px; height: 16px;
  stroke: var(--gold);
}
@media (max-width: 880px) { .scroll-indicator { bottom: calc(var(--mnav-h) + var(--space-4) + env(safe-area-inset-bottom, 0px)); } }

/* ---------- 10. Forms — RSVP, intentions ---------- */
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.field {
  display: block;
  width: 100%;
  padding: 0.95em 1.1em;
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  color: var(--cream);
  font-size: 1rem;
  transition: all var(--dur-fast);
  font-family: var(--font-body);
}
.field::placeholder { color: var(--cream-mute); }
.field:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201, 161, 74, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.15);
}
textarea.field {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}
.label {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.help {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--cream-mute);
  font-style: italic;
  text-align: center;
}

/* Saint picker */
.saint-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-5);
}
@media (max-width: 640px) { .saint-grid { grid-template-columns: repeat(3, 1fr); } }
.saint {
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  padding: var(--space-4) var(--space-2);
  background: rgba(245,241,232,0.03);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  transition: all var(--dur-fast) var(--ease-out);
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.saint:hover {
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  color: var(--cream);
}
.saint[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(201, 161, 74, 0.16);
  color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(201, 161, 74, 0.25);
}
.saint-icon {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(229,192,106,0.35));
}
.saint-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Attendee wall */
.wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  min-height: 80px;
}
.wall-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.1em;
  border-radius: var(--r-pill);
  background: rgba(201, 161, 74, 0.1);
  border: 1px solid var(--gold-soft);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.1rem;
  animation: wallRise 0.9s var(--ease-out) both;
}
.wall-item .icon { display: flex; align-items: center; }
.wall-item .icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wall-empty {
  font-style: italic;
  color: var(--cream-mute);
  text-align: center;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

/* Intentions wall — floating comment bubbles */
.intentions-stage {
  position: relative;
  min-height: 460px;
  margin: var(--space-6) 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(201, 161, 74, 0.14);
  background: radial-gradient(ellipse at 50% 35%, rgba(38, 28, 8, 0.7) 0%, rgba(4, 7, 14, 0.92) 70%);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.4);
}
.intention-card {
  position: absolute;
  max-width: 180px;
  padding: 0.55rem 0.875rem;
  background: rgba(245, 241, 232, 0.09);
  border: 1px solid rgba(201, 161, 74, 0.38);
  border-radius: 1.125rem 1.125rem 1.125rem 0.3rem;
  /* always light text — stage is always dark */
  color: #f0ebe0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-base);
  line-height: 1.42;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(201,161,74,0.12);
  will-change: left, top;
  user-select: none;
}
.intention-card::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 13px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(201, 161, 74, 0.32);
}
.intention-card.bubble-right {
  border-radius: 1.125rem 1.125rem 0.3rem 1.125rem;
}
.intention-card.bubble-right::after {
  left: auto;
  right: 13px;
}
.intention-card.bubble-top {
  border-radius: 0.3rem 1.125rem 1.125rem 1.125rem;
}
.intention-card.bubble-top::after {
  bottom: auto;
  top: -7px;
  left: 13px;
  border-top: none;
  border-bottom: 7px solid rgba(201, 161, 74, 0.32);
}
.intentions-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream-mute);
  font-size: 1.125rem;
  text-align: center;
  padding: var(--space-5);
}

/* Confetti canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-toast);
}

/* ---------- 11. Prayer block ---------- */
.prayer {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.55;
  color: var(--cream);
}
.prayer .line {
  display: block;
  opacity: 0;
  transform: translateY(12px);
  transition: all 900ms var(--ease-out);
}
.prayer .line.in { opacity: 1; transform: translateY(0); }
.prayer .amen {
  display: block;
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  font-style: normal;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
}

/* ---------- 12. Timeline page ---------- */
.option-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
@media (max-width: 720px) { .option-toggle { grid-template-columns: 1fr; } }

.option-card {
  padding: var(--space-6);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  background: rgba(245,241,232,0.03);
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  text-align: left;
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  color: inherit;
}
.option-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-4px);
}
.option-card[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,161,74,0.12), rgba(201,161,74,0.03));
  box-shadow: 0 0 0 1px var(--gold), 0 20px 50px -20px rgba(229, 192, 106, 0.4);
}
.option-card[aria-pressed="true"]::before {
  content: "Selected";
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,161,74,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a14a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat 0.5em center / 0.7em 0.7em;
  padding: 0.4em 0.8em 0.4em 1.6em;
  border-radius: var(--r-pill);
  border: 1px solid var(--gold);
}
.option-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 var(--space-2);
  color: var(--cream);
}
.option-card .tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.option-card .recommended { color: var(--gold-bright); }
.option-times {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
}
.option-times dt {
  display: inline;
  font-weight: 600;
  color: var(--cream-mute);
  letter-spacing: 0.04em;
}
.option-times dd {
  display: inline;
  margin-left: 0.5em;
  color: var(--gold-bright);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.option-times .row {
  display: flex;
  justify-content: space-between;
  padding: 0.4em 0;
  border-bottom: 1px dashed var(--cream-line);
}
.option-times .row:last-child { border-bottom: none; }
.option-card .tradeoff {
  font-size: var(--fs-xs);
  color: var(--cream-dim);
  font-style: italic;
  margin-top: var(--space-4);
}
/* Tap-to-select hint on unselected option cards */
.option-card[aria-pressed="false"]::after {
  content: "Tap to select";
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-mute);
  opacity: 0.6;
  transition: opacity var(--dur-fast);
}
.option-card[aria-pressed="false"]:hover::after {
  opacity: 1;
  color: var(--gold);
}

.why-times {
  background: rgba(245, 241, 232, 0.03);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  margin-bottom: var(--space-7);
}
.why-times summary {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  list-style: none;
}
.why-times summary::marker { display: none; }
.why-times summary::before {
  content: "+ ";
  font-family: var(--font-display);
  color: var(--gold);
}
.why-times[open] summary::before { content: "− "; }
.why-times-body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--cream-dim);
  font-size: var(--fs-base);
  line-height: 1.65;
}

/* The timeline itself */
.timeline-banner {
  padding: var(--space-5);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, rgba(201,161,74,0.14), rgba(201,161,74,0.04));
  border: 1px solid var(--gold-soft);
  text-align: center;
  margin-bottom: var(--space-7);
}
.timeline-banner h4 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--gold-bright);
  margin: 0 0 var(--space-2);
}
.timeline-banner .banner-countdown {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-5) 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft) 10%, var(--gold-soft) 90%, transparent);
}
@media (min-width: 720px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
}

/* Day jump — segmented control */
.day-jump {
  position: sticky;
  top: calc(var(--nav-h, 60px) + 8px);
  z-index: 10;
  margin: 0 0 var(--space-5);
  padding: 0.5rem 0;
}
@media (max-width: 880px) {
  .day-jump { top: calc(48px + env(safe-area-inset-top, 0px) + 8px); }
}
.day-jump-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-pill);
  padding: 3px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.day-jump-indicator {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: linear-gradient(135deg, #d4ad55, #c9a14a);
  border-radius: calc(var(--r-pill) - 2px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(201,161,74,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.day-jump-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: calc(var(--r-pill) - 2px);
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  transition: color 0.25s;
}
.day-jump-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.day-jump-date {
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  font-weight: 600;
  opacity: 0.7;
  margin-top: 1px;
}
.day-jump-btn.active {
  color: #0a0f1a;
}
.day-jump-btn:not(.active):hover {
  color: var(--cream);
}
html[data-theme="light"] .day-jump-track {
  background: rgba(255,255,255,0.85);
  border-color: rgba(26,26,46,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
}
html[data-theme="light"] .day-jump-indicator {
  background: linear-gradient(135deg, #d4ad55, #c4982f);
  box-shadow: 0 2px 10px rgba(196,152,47,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
html[data-theme="light"] .day-jump-btn.active {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
html[data-theme="light"] .day-jump-btn:not(.active) {
  color: rgba(26,26,46,0.55);
}
html[data-theme="light"] .day-jump-btn:not(.active):hover {
  color: rgba(26,26,46,0.85);
}

.day-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-7) 0 var(--space-5);
  scroll-margin-top: 80px;
}
.day-marker::before, .day-marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  max-width: 160px;
}
.day-marker span {
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--gold);
  padding: 0 var(--space-5);
  font-style: italic;
  background: var(--ink);
  z-index: 1;
  position: relative;
}

.stop {
  position: relative;
  padding-left: 72px;
  margin-bottom: var(--space-5);
}
@media (min-width: 720px) {
  .stop { padding-left: 0; width: 50%; padding-right: var(--space-6); }
  .stop:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: var(--space-6); }
}

.stop-dot {
  position: absolute;
  left: 20px;
  top: var(--space-5);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold-dim);
  z-index: 2;
  transition: all var(--dur-med) var(--ease-out);
}
@media (min-width: 720px) {
  .stop-dot { left: auto; right: calc(-9px - var(--space-6)); }
  .stop:nth-child(even) .stop-dot { left: calc(-9px - var(--space-6)); right: auto; }
}
.stop.past .stop-dot { background: var(--gold); border-color: var(--gold); }
.stop.past .stop-dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1228' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stop.current .stop-dot {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 6px rgba(229, 192, 106, 0.2), 0 0 24px rgba(229, 192, 106, 0.6);
  animation: dotPulse 2s var(--ease-out) infinite;
}

.stop-card {
  background: linear-gradient(180deg, rgba(245,241,232,0.04), rgba(245,241,232,0.01));
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  transition: all var(--dur-med) var(--ease-out);
}
.stop-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  cursor: pointer;
}
.stop-card:active {
  transform: translateY(0);
}
.stop-head {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  position: relative;
  padding-right: 2rem;
}
/* Chevron expand indicator */
.stop-head::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.5rem;
  width: 10px; height: 10px;
  border-right: 2px solid var(--cream-mute);
  border-bottom: 2px solid var(--cream-mute);
  transform: rotate(45deg);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.stop-card.open .stop-head::after {
  transform: rotate(-135deg);
  border-color: var(--gold);
}
.stop-head:hover::after {
  border-color: var(--gold-bright);
}
.stop-head:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: var(--r-md);
}
.stop.past .stop-card { opacity: 0.55; }
.stop.past .stop-card:hover { opacity: 0.85; }
.stop.current .stop-card {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,161,74,0.12), rgba(201,161,74,0.02));
  box-shadow: 0 18px 50px -16px rgba(229, 192, 106, 0.35);
}
.stop-time {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-2);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.stop-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 var(--space-3);
  line-height: 1.25;
}
.stop.current .stop-title { color: var(--gold-bright); }
.stop-status {
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35em 0.75em;
  border-radius: var(--r-pill);
  border: 1px solid var(--cream-line);
  color: var(--cream-mute);
}
.stop.current .stop-status {
  color: var(--live);
  border-color: var(--live);
  background: rgba(212, 67, 62, 0.12);
  animation: blinkSoft 1.8s ease-in-out infinite;
}
.stop.past .stop-status {
  color: var(--gold-dim);
}
/* Timeline hint */
.timeline-hint {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--cream-mute);
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-5);
  border: 1px dashed var(--cream-line);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  justify-content: center;
}

.stop-detail {
  color: var(--cream-dim);
  font-size: var(--fs-base);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out), padding-top var(--dur-slow) var(--ease-out);
}
.stop-card.open .stop-detail {
  max-height: 800px;
  padding-top: var(--space-4);
}
.stop-detail p { margin: 0 0 var(--space-3); color: var(--cream-dim); }
.stop-detail .addr {
  display: block;
  font-size: var(--fs-xs);
  color: var(--cream-mute);
  margin-bottom: var(--space-2);
}
.stop-detail a.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-2);
}

/* ---------- 13. Checkboxes (packing) ---------- */
.progress-bar {
  margin-bottom: var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  background: rgba(245,241,232,0.03);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}
.progress-head h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  color: var(--cream);
}
.progress-head span {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 6px;
  background: rgba(245,241,232,0.08);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: var(--r-pill);
  transition: width 500ms var(--ease-out);
  width: 0%;
}

.packing-section {
  margin-bottom: var(--space-7);
}
.packing-section h3 {
  font-family: var(--font-display);
  color: var(--gold);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--cream-line);
  font-size: 1.5rem;
}
.packing-section .section-note {
  font-size: var(--fs-sm);
  color: var(--cream-mute);
  font-style: italic;
  margin: -0.5rem 0 var(--space-4);
}

.check {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur-fast);
  user-select: none;
}
.check:hover { background: rgba(245,241,232,0.03); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1.5px solid var(--cream-line);
  background: rgba(245,241,232,0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
}
.check-box svg {
  width: 14px; height: 14px;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 320ms var(--ease-out);
}
.check input:checked + .check-box {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,161,74,0.18);
}
.check input:checked + .check-box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 3px rgba(229, 192, 106, 0.35); }
.check-label {
  font-size: var(--fs-base);
  color: var(--cream);
  line-height: 1.5;
  transition: all var(--dur-fast);
}
.check input:checked ~ .check-label {
  color: var(--cream-mute);
  text-decoration: line-through;
  text-decoration-color: var(--gold-dim);
}

/* ---------- 14. Speakers ---------- */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.speaker {
  perspective: 1200px;
  height: 360px;
  cursor: pointer;
}
.speaker-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 680ms var(--ease-out);
}
.speaker.flipped .speaker-inner { transform: rotateY(180deg); }
.speaker-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.speaker-front {
  background:
    linear-gradient(180deg, transparent 40%, rgba(5,8,15,0.96) 100%),
    linear-gradient(135deg, var(--ink-soft), var(--ink-deep));
}
.speaker-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(201,161,74,0.22), transparent 60%);
  pointer-events: none;
}
.speaker-initials {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -65%);
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.28;
}
.speaker-tag {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.speaker-name {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 var(--space-2);
  line-height: 1.15;
}
.speaker-role {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-base);
  color: var(--gold-bright);
  margin: 0;
}
.speaker-back {
  background: linear-gradient(155deg, rgba(201,161,74,0.12), rgba(6,13,26,0.92));
  border-color: var(--gold-soft);
  transform: rotateY(180deg);
  justify-content: space-between;
}
.speaker-back h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.375rem;
  margin: 0 0 var(--space-3);
}
.speaker-back p {
  font-size: var(--fs-sm);
  color: var(--cream-dim);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
}
.speaker-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 15. Info content blocks ---------- */
.info-card {
  background: linear-gradient(180deg, rgba(245,241,232,0.06), rgba(245,241,232,0.015));
  border: 1px solid var(--cream-line);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  transition: border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.info-card:hover {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, rgba(245,241,232,0.08), rgba(245,241,232,0.02));
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin: 0 0 var(--space-4);
}
.info-card .label-row,
.hero-card .label-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--cream-line);
  font-size: var(--fs-base);
}
.info-card .label-row:last-child,
.hero-card .label-row:last-child { border-bottom: none; }
.info-card .label-row dt,
.hero-card .label-row dt {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0;
}
.info-card .label-row dd,
.hero-card .label-row dd {
  margin: 0;
  color: var(--cream);
}
@media (max-width: 560px) {
  .info-card .label-row,
  .hero-card .label-row { grid-template-columns: 1fr; gap: var(--space-1); }
}

.warn-box {
  background: linear-gradient(155deg, rgba(138, 21, 56, 0.14), rgba(138, 21, 56, 0.04));
  border: 1px solid rgba(176, 34, 72, 0.5);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-5) 0;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.warn-box .warn-icon {
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
}
.warn-box h4 {
  font-family: var(--font-display);
  color: var(--sacred-bright);
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
}
.warn-box p {
  font-size: var(--fs-base);
  color: var(--cream-dim);
  margin: 0 0 var(--space-2);
}

.note-box {
  background: rgba(201, 161, 74, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  font-size: var(--fs-base);
  color: var(--cream-dim);
  font-style: italic;
}

.placeholder {
  display: inline-block;
  background: rgba(176, 34, 72, 0.18);
  color: var(--sacred-bright);
  border: 1px dashed rgba(176, 34, 72, 0.6);
  padding: 0.25em 0.6em;
  border-radius: var(--r-sm);
  font-family: "Courier New", monospace;
  font-size: 0.8em;
  letter-spacing: 0.01em;
}

/* Hero card (hotel) */
.hero-card {
  background: linear-gradient(155deg, rgba(201,161,74,0.1), rgba(6,13,26,0.6));
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-7);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, var(--gold), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-card .stars {
  display: inline-flex;
  gap: 0.1em;
  color: var(--gold-bright);
  font-size: 1rem;
  margin: var(--space-2) 0 var(--space-4);
}
.hero-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: var(--cream);
  margin: 0 0 var(--space-3);
}
.hero-card .addr {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream-dim);
  margin: 0 0 var(--space-2);
}
.hero-card .phone {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-bright);
  margin: 0 0 var(--space-5);
  letter-spacing: 0.01em;
}

/* Map embed */
.map-embed {
  width: 100%;
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-soft);
}
.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: grayscale(0.25) brightness(0.8) contrast(1.05);
}

/* ---------- 15b. Group Rules ---------- */
.group-rules-section {
  text-align: center;
}
.group-rules {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin: 0 auto;
  padding: 0;
  text-align: left;
}
@media (max-width: 640px) {
  .group-rules { grid-template-columns: 1fr; }
}
.group-rules li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(245,241,232,0.04);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  font-family: var(--f-body);
  color: var(--cream-dim);
  font-size: var(--fs-base);
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;
}
.group-rules li:hover { border-color: var(--gold-dim); background: rgba(201,161,74,0.04); }
.rule-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border-radius: var(--r-md);
  color: var(--gold-bright);
}
.rule-icon svg { width: 20px; height: 20px; }
html[data-theme="light"] .group-rules li {
  background: rgba(255,255,255,0.7);
  border-color: rgba(26,26,46,0.08);
  box-shadow: 0 2px 10px -2px rgba(26,26,46,0.06);
}
html[data-theme="light"] .group-rules li:hover { background: rgba(158,124,46,0.06); border-color: rgba(158,124,46,0.25); }

/* ---------- 15c. Hub ---------- */
.hub-topbar { padding: var(--space-6) 0 var(--space-4); }
@media (max-width: 880px) { .hub-topbar { padding-top: calc(3.5rem + env(safe-area-inset-top, 0px)); } }
.hub-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.hub-welcome { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--cream); }
.hub-account-pill {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.hub-account-pill.guest { background: var(--gold-soft); color: var(--gold-bright); }
.hub-account-pill.auth { background: rgba(34,197,94,0.15); color: #4ade80; }

.hub-guest-banner {
  margin-top: var(--space-3); padding: var(--space-4);
  background: var(--gold-soft); border: 1px solid var(--gold-dim);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-3);
}
.hub-guest-banner p { color: var(--cream-dim); font-size: var(--fs-sm); margin: 0; }

.hub-deletion-banner {
  margin-bottom: var(--space-4); padding: var(--space-4);
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--r-md); color: #fca5a5; font-size: var(--fs-sm);
}
.hub-deletion-banner button { margin-left: var(--space-3); color: #fca5a5; text-decoration: underline; background: none; border: none; cursor: pointer; }

.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }

.hub-tile {
  background: var(--surface-1, rgba(245,241,232,0.03));
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  scroll-margin-top: calc(var(--nav-h, 60px) + 1rem);
}
@media (max-width: 880px) {
  .hub-tile { scroll-margin-top: calc(48px + env(safe-area-inset-top, 0px) + 1rem); }
}
.hub-tile:hover { border-color: var(--gold-dim); box-shadow: 0 0 20px rgba(201,161,74,0.08); }

.hub-tile-header {
  display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3);
}
.hub-tile-header .si { width: 1.25rem; height: 1.25rem; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hub-tile-header h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--cream); margin: 0; flex: 1; }
.hub-tile-badge { background: var(--gold-soft); color: var(--gold-bright); font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; }
.hub-tile-desc { color: var(--cream-dim); font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.hub-tile-links { margin-top: var(--space-3); }

.encrypted-badge { font-size: 0.85rem; opacity: 0.7; }

/* ─── Daily Readings tile ─── */
.readings-loading {
  display: flex; align-items: center; gap: var(--space-2);
  color: var(--cream-mute); font-size: var(--fs-sm); padding: var(--space-3) 0;
}
.readings-spinner {
  width: 16px; height: 16px; border: 2px solid var(--cream-line);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.readings-date {
  font-size: var(--fs-xs); color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 700; margin-bottom: var(--space-2);
}
.readings-celebration {
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 700;
  color: var(--cream); margin-bottom: var(--space-1);
}
.readings-season {
  font-size: var(--fs-xs); color: var(--cream-mute); margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: var(--space-2);
}
.readings-season-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  flex-shrink: 0;
}
.readings-saint-quote {
  font-style: italic; color: var(--cream-dim); font-size: var(--fs-sm);
  border-left: 2px solid var(--gold); padding-left: var(--space-3);
  margin-bottom: var(--space-3); line-height: 1.6;
}
.readings-saint-desc {
  color: var(--cream-dim); font-size: var(--fs-xs); line-height: 1.5;
  margin-bottom: var(--space-3);
}
.readings-list {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.readings-item {
  display: flex; align-items: baseline; gap: var(--space-2);
  font-size: var(--fs-xs);
}
.readings-label {
  color: var(--gold); font-weight: 700; font-size: var(--fs-xxs);
  text-transform: uppercase; letter-spacing: 0.04em;
  min-width: 4.5rem; flex-shrink: 0;
}
.readings-ref {
  color: var(--cream); font-weight: 600;
}
.readings-usccb {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--fs-xs); color: var(--gold); font-weight: 600;
}
.readings-usccb:hover { color: var(--gold-bright); }
.readings-usccb svg { width: 14px; height: 14px; }
.readings-read-now {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-right: var(--space-4); margin-bottom: var(--space-2);
}
.readings-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-top: var(--space-4);
}
.readings-error {
  color: var(--cream-mute); font-size: var(--fs-xs); padding: var(--space-2) 0;
}

/* Light mode */
html[data-theme="light"] .readings-celebration { color: var(--cream); }
html[data-theme="light"] .readings-saint-quote { border-left-color: var(--gold); }
html[data-theme="light"] .readings-ref { color: var(--cream); }

/* ─── Readings Reader Modal ─── */
.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-veil);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: var(--space-4);
}
.reader-overlay.open { opacity: 1; visibility: visible; }

.reader-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 3rem);
  background: var(--ink-soft);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--cream-line);
  flex-shrink: 0;
}
.reader-dots {
  display: flex;
  gap: var(--space-2);
}
.reader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-line);
  transition: background 0.25s;
}
.reader-dot.active { background: var(--gold); }
.reader-close {
  background: none;
  border: none;
  color: var(--cream-mute);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--r-sm);
  transition: color 0.2s;
  display: flex;
}
.reader-close:hover { color: var(--cream); }

.reader-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-5) var(--space-3);
  -webkit-overflow-scrolling: touch;
}
.reader-page { display: none; }
.reader-page.active { display: block; }

.reader-page-label {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.reader-page-ref {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--cream-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}
.reader-page-body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--cream-dim);
  line-height: 1.75;
}
.reader-page-body p {
  margin: 0 0 var(--space-4);
}
.reader-page-body strong {
  color: var(--cream);
  font-weight: 600;
}
.reader-page-body em {
  font-style: italic;
  color: var(--cream-dim);
}

.reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--cream-line);
  flex-shrink: 0;
}
.reader-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.reader-footer .btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.reader-counter {
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  color: var(--cream-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reader-usccb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-5) var(--space-4);
  font-size: var(--fs-xs);
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}
.reader-usccb-link:hover { color: var(--gold-bright); }

/* Light mode reader */
html[data-theme="light"] .reader-modal {
  background: var(--parchment);
  border-color: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .reader-header { border-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .reader-footer { border-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .reader-dot { background: rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .reader-close { color: rgba(0, 0, 0, 0.4); }
html[data-theme="light"] .reader-close:hover { color: var(--cream); }
html[data-theme="light"] .reader-page-label { color: var(--gold); }
html[data-theme="light"] .reader-page-ref { color: rgba(6, 13, 26, 0.5); }
html[data-theme="light"] .reader-page-body { color: rgba(6, 13, 26, 0.75); }
html[data-theme="light"] .reader-page-body strong { color: var(--cream); }
html[data-theme="light"] .reader-counter { color: rgba(6, 13, 26, 0.4); }
.hub-tile-encrypted { border-left: 3px solid var(--gold-dim); }

.hub-privacy-links { list-style: none; padding: 0; }
.hub-privacy-links li { padding: var(--space-2) 0; border-bottom: 1px solid var(--cream-line); }
.hub-privacy-links a { color: var(--cream-dim); text-decoration: none; font-size: var(--fs-sm); }
.hub-privacy-links a:hover { color: var(--gold); }

/* Packing in hub */
.packing-progress-bar {
  height: 4px; background: var(--cream-line); border-radius: 2px; margin-bottom: var(--space-4); overflow: hidden;
}
.packing-progress-fill { height: 100%; width: var(--progress); background: var(--gold); border-radius: 2px; transition: width 0.3s ease; }
.packing-categories details { margin-bottom: var(--space-2); }
.packing-categories summary {
  cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--cream-dim);
  padding: var(--space-2) 0; text-transform: uppercase; letter-spacing: 0.04em;
}
.packing-categories label {
  display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) 0;
  font-size: var(--fs-sm); color: var(--cream-dim); cursor: pointer;
}
.packing-categories input[type="checkbox"] { accent-color: var(--gold); }


/* Intentions */
.intention-input-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.intention-input-row .field { flex: 1; }
.intention-item {
  display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0;
  border-bottom: 1px solid var(--cream-line); font-size: var(--fs-sm); color: var(--cream-dim);
}
.intention-item.answered { opacity: 0.5; text-decoration: line-through; }
.intention-check {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--gold-dim);
  background: none; cursor: pointer; color: var(--gold); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.intention-item span { flex: 1; }
.btn-icon { background: none; border: none; color: var(--cream-mute); cursor: pointer; font-size: 1.2rem; padding: 0 0.25rem; }


/* Hub details (confession etc) */
.hub-details summary { cursor: pointer; font-weight: 600; color: var(--cream); font-size: 0.9rem; padding: var(--space-2) 0; }
.hub-details ol { padding-left: 1.5rem; color: var(--cream-dim); font-size: 0.85rem; }
.hub-details ol li { margin-bottom: var(--space-2); }
.prayer-text { color: var(--cream-dim); font-size: var(--fs-sm); font-style: italic; line-height: 1.6; }
.confession-list { list-style: none; padding: 0; }
.confession-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--cream-line); color: var(--cream-dim); font-size: 0.85rem; }

.group-rules-compact { max-width: none; }
.group-rules-compact li { font-size: 0.85rem; padding: var(--space-3); }
.group-rules-compact .rule-icon { width: 2.25rem; height: 2.25rem; }
.group-rules-compact .rule-icon svg { width: 16px; height: 16px; }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; padding: var(--space-4);
  opacity: 0; transition: opacity var(--dur-fast);
}
.modal-overlay.open { opacity: 1; }
.modal {
  background: var(--ink); border: 1px solid var(--cream-line); border-radius: var(--r-lg);
  padding: var(--space-6); max-width: 28rem; width: 100%;
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 4rem);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: scale(0.95); transition: transform var(--dur-fast);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close { position: absolute; top: var(--space-3); right: var(--space-3); background: none; border: none; color: var(--cream-mute); cursor: pointer; font-size: 1.5rem; }
.modal h3 { font-family: var(--f-display); color: var(--cream); margin-bottom: var(--space-4); }
.modal-actions { display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-5); }

/* Auth modal */
.auth-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); }
.auth-tab {
  flex: 1; padding: var(--space-2); text-align: center; border: 1px solid var(--cream-line);
  border-radius: var(--r-md); background: none; color: var(--cream-dim); cursor: pointer;
  font-size: var(--fs-xs); font-weight: 600; transition: all var(--dur-fast);
}
.auth-tab.active { background: var(--gold-soft); color: var(--gold-bright); border-color: var(--gold-dim); }
.auth-form .field-group { margin-bottom: var(--space-4); }
.auth-form label { display: block; color: var(--cream-dim); font-size: var(--fs-xxs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-1); }
.field { width: 100%; padding: var(--space-2) var(--space-3); background: var(--surface-2, rgba(245,241,232,0.04)); border: 1px solid var(--cream-line); border-radius: var(--r-md); color: var(--cream); font-size: max(1rem, 16px); }
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.field-hint { color: var(--cream-mute); font-size: var(--fs-xs); margin-top: 0.25rem; }
.btn-full { width: 100%; }
.auth-error { color: #dc2626; font-size: var(--fs-xs); padding: var(--space-2); background: rgba(239,68,68,0.1); border-radius: var(--r-sm); font-weight: 600; }

/* Password meter */
.password-meter { height: 4px; background: var(--cream-line); border-radius: 2px; margin-top: var(--space-1); overflow: hidden; }
.password-meter-fill { height: 100%; width: 0; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.password-meter-fill.score-0 { width: 5%; background: #ef4444; }
.password-meter-fill.score-1 { width: 25%; background: #f97316; }
.password-meter-fill.score-2 { width: 50%; background: #eab308; }
.password-meter-fill.score-3 { width: 75%; background: #22c55e; }
.password-meter-fill.score-4 { width: 100%; background: #22c55e; }

/* Recovery phrase screen */
.recovery-phrase-screen h3 { text-align: center; }
.recovery-phrase-screen p { color: var(--cream-dim); font-size: var(--fs-sm); text-align: center; }
.recovery-words {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2);
  margin: var(--space-5) 0; padding: var(--space-4);
  background: var(--ink-soft); border-radius: var(--r-md);
}
.recovery-word {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--f-mono, monospace); font-size: var(--fs-xs); color: var(--cream); font-weight: 700;
  padding: var(--space-1);
}
.recovery-word em { font-style: normal; color: var(--gold); font-size: var(--fs-xxs); min-width: 1.2rem; font-weight: 600; }
.recovery-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-4);
}
.recovery-actions .btn {
  font-size: var(--fs-xxs); padding: 0.6em 1em; white-space: nowrap;
}
.recovery-warning { color: #fca5a5; font-size: var(--fs-xs); text-align: center; margin-bottom: var(--space-5); }
.recovery-phrase-screen { padding-bottom: var(--space-4); }
.recovery-phrase-screen .btn-full {
  font-size: var(--fs-xxs); padding: 0.8em 1.2em; white-space: normal; line-height: 1.3;
}

/* Hub welcome modal */
.hub-welcome-modal { text-align: center; }
.hub-welcome-modal h2 { font-family: var(--f-display); font-size: 1.75rem; color: var(--cream); }
.hub-welcome-modal p { color: var(--cream-dim); margin-bottom: var(--space-5); }
.hub-welcome-actions { display: flex; flex-direction: column; gap: var(--space-3); }

/* Toast */
.toast {
  position: fixed; bottom: calc(var(--mnav-h, 68px) + var(--space-3) + env(safe-area-inset-bottom, 0px) + 16px);
  left: 50%; transform: translateX(-50%) translateY(20px); z-index: 700;
  background: var(--ink); border: 1px solid var(--gold-dim); border-radius: var(--r-md);
  padding: var(--space-3) var(--space-5); color: var(--cream); font-size: var(--fs-xs);
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
  box-shadow: var(--shadow-mid); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-error { border-color: #ef4444; }
.toast-info { border-color: var(--gold); }

/* Light mode hub overrides */
html[data-theme="light"] .hub-tile {
  background: rgba(255,255,255,0.7);
  border-color: rgba(26,26,46,0.08);
  box-shadow: 0 2px 16px -4px rgba(26,26,46,0.08);
}
html[data-theme="light"] .hub-tile:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 4px 24px -4px rgba(26,26,46,0.12);
}
html[data-theme="light"] .modal {
  background: #fff;
  border-color: rgba(26,26,46,0.1);
  box-shadow: 0 20px 60px rgba(26,26,46,0.2);
}
html[data-theme="light"] .field {
  background: rgba(26,26,46,0.04);
  border-color: rgba(26,26,46,0.12);
}
html[data-theme="light"] .toast {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(26,26,46,0.15);
}
html[data-theme="light"] .hub-guest-banner {
  background: rgba(201,161,74,0.08);
  border-color: rgba(201,161,74,0.2);
}

/* ---------- 16. Footer ---------- */
.footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--cream-line);
  padding: var(--space-8) 0 calc(var(--space-7) + env(safe-area-inset-bottom));
  margin-top: var(--space-9);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-7);
  text-align: left;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--cream);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin: 0 0 var(--space-4);
}
.footer h5 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-3);
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: var(--space-2); }
.footer ul a {
  font-size: var(--fs-sm);
  color: var(--cream-dim);
}
.footer ul a:hover { color: var(--gold-bright); }
.footer-bottom {
  max-width: var(--container);
  margin: var(--space-7) auto 0;
  padding: var(--space-5) var(--space-5) 0;
  border-top: 1px solid var(--cream-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--cream-mute);
}

/* ---------- Hub Quick Nav ---------- */
/* Hub jump-nav dropdown */
.hub-jumpnav {
  position: relative;
  margin-bottom: var(--space-4);
}
.hub-jumpnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--cream-line);
  background: rgba(245,241,232,0.05);
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hub-jumpnav-btn:hover { border-color: var(--gold-dim); color: var(--cream); }
.hub-jumpnav-chevron {
  transition: transform 0.25s;
}
.hub-jumpnav.open .hub-jumpnav-chevron { transform: rotate(180deg); }
.hub-jumpnav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 0.375rem;
  background: var(--ink-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.15);
  z-index: 20;
}
.hub-jumpnav.open .hub-jumpnav-menu { display: block; }
.hub-jumpnav-menu a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-md);
  color: var(--cream);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s;
}
.hub-jumpnav-menu a:hover {
  background: var(--gold-soft);
  color: var(--gold-bright);
}
.hub-jumpnav-menu .si {
  width: 16px; height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
/* Light mode */
html[data-theme="light"] .hub-jumpnav-btn {
  background: rgba(26,26,46,0.04);
  border-color: rgba(26,26,46,0.14);
  color: rgba(26,26,46,0.6);
}
html[data-theme="light"] .hub-jumpnav-btn:hover {
  border-color: var(--gold);
  color: rgba(26,26,46,0.85);
}
html[data-theme="light"] .hub-jumpnav-menu {
  background: rgba(255,255,255,0.92);
  border-color: rgba(26,26,46,0.1);
  box-shadow: 0 8px 32px rgba(26,26,46,0.14), 0 2px 6px rgba(26,26,46,0.06);
}
html[data-theme="light"] .hub-jumpnav-menu a {
  color: #1a1a2e;
}
html[data-theme="light"] .hub-jumpnav-menu a:hover {
  background: rgba(201,161,74,0.12);
  color: var(--gold);
}

/* Intentions stage — light mode */
html[data-theme="light"] .intentions-stage {
  background: radial-gradient(ellipse at 50% 35%, rgba(245,235,210,0.9) 0%, rgba(240,230,215,1) 70%);
  border-color: rgba(26,26,46,0.1);
  box-shadow: inset 0 0 60px rgba(201,161,74,0.08);
}
html[data-theme="light"] .intention-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(201,161,74,0.3);
  color: #1a1a2e;
  box-shadow: 0 2px 12px rgba(26,26,46,0.1), 0 0 0 0.5px rgba(201,161,74,0.15);
}
html[data-theme="light"] .intention-card::after {
  border-top-color: rgba(201,161,74,0.3);
}
html[data-theme="light"] .intention-card.bubble-top::after {
  border-top-color: transparent;
  border-bottom-color: rgba(201,161,74,0.3);
}
html[data-theme="light"] .intentions-empty {
  color: rgba(26,26,46,0.45);
}

/* ---------- 17. Animation keyframes ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(229, 192, 106, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(229, 192, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 192, 106, 0); }
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 6px rgba(229,192,106,0.2), 0 0 24px rgba(229,192,106,0.6); }
  50%  { box-shadow: 0 0 0 12px rgba(229,192,106,0), 0 0 36px rgba(229,192,106,0.8); }
  100% { box-shadow: 0 0 0 6px rgba(229,192,106,0.2), 0 0 24px rgba(229,192,106,0.6); }
}
@keyframes blinkSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}
@keyframes flipNum {
  0%   { transform: rotateX(0); }
  50%  { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}
@keyframes wallRise {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wallRiseOnly {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll — applied to any [data-reveal] element */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
[data-reveal-stagger].in > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: 40ms; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: 120ms; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: 280ms; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: 440ms; }
[data-reveal-stagger].in > *:nth-child(7) { transition-delay: 520ms; }
[data-reveal-stagger].in > *:nth-child(8) { transition-delay: 600ms; }
[data-reveal-stagger].in > *:nth-child(9) { transition-delay: 680ms; }

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero canvas { display: none; }
  .intention-card { animation: none; }
  .scroll-indicator { animation: none; }
  .countdown-chip::before { animation: none; }
}

/* ---------- 19. Onboarding wizard ---------- */
.onboarding {
  position: fixed;
  inset: 0;
  z-index: var(--z-onboarding);
  background: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s var(--ease-out) both;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.onboarding.closing {
  animation: obFadeOut 0.5s var(--ease-out) both;
}
@keyframes obFadeOut {
  to { opacity: 0; transform: scale(0.97); }
}

.ob-inner {
  width: 100%;
  max-width: 480px;
  padding: var(--space-6);
  text-align: center;
  min-height: 0;
}

.ob-progress {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}
.ob-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cream-line);
  transition: all var(--dur-med) var(--ease-out);
}
.ob-dot.active {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 161, 74, 0.4);
}

.ob-step { display: none; }
.ob-step.active {
  display: block;
  animation: heroRise 0.4s var(--ease-out) both;
}

.ob-step h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cream);
  margin: 0 0 var(--space-4);
  font-weight: 600;
}
.ob-step .lede {
  color: var(--cream-dim);
  font-size: var(--fs-md);
  margin: 0 0 var(--space-4);
  line-height: 1.6;
}
.ob-welcome-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--gold);
  opacity: 0.85;
}
.ob-welcome-detail {
  color: var(--cream-dim);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0 0 var(--space-6);
  opacity: 0.75;
}

/* Instructions (Add to Home Screen) */
.ob-instruction {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-align: left;
  padding: var(--space-4);
  border: 1px solid var(--cream-line);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--r-md);
  margin-bottom: var(--space-3);
  background: linear-gradient(180deg, rgba(245,241,232,0.04), transparent);
}
.ob-instruction-num {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.ob-instruction p { margin: 0; color: var(--cream-dim); font-size: var(--fs-base); line-height: 1.5; }
.ob-instruction strong { color: var(--cream); }
.ob-instruction .ob-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: var(--fs-xs);
  vertical-align: middle;
}
.ob-instruction .ob-key svg { width: 16px; height: 16px; }

/* Trip option detail (time blocks) */
.ob-time-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.ob-time-block {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  text-align: left;
}
.ob-time {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-bright);
  font-weight: 600;
  white-space: nowrap;
  min-width: 72px;
}
.ob-time-label {
  color: var(--cream-dim);
  font-size: var(--fs-base);
  line-height: 1.4;
}
.ob-desc {
  color: var(--cream-dim);
  font-size: var(--fs-base);
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

/* Choice cards (Option A/B) */
.ob-choices {
  display: grid;
  gap: var(--space-4);
}
.ob-choice {
  padding: var(--space-5);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(245,241,232,0.04), transparent);
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  text-align: left;
  width: 100%;
  color: var(--cream);
  font-family: inherit;
}
.ob-choice:hover {
  border-color: var(--gold-soft);
  background: rgba(201,161,74,0.05);
}
.ob-choice[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold), 0 0 20px -4px rgba(201,161,74,0.2);
}
.ob-choice h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 var(--space-2);
  color: var(--cream);
}
.ob-choice-sub {
  font-size: var(--fs-sm);
  color: var(--cream-dim);
  margin: 0;
}
.ob-choice-tag {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Theme choice cards */
.ob-theme-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.ob-theme-choice {
  padding: var(--space-5);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  text-align: center;
  color: var(--cream);
  font-family: inherit;
  font-size: var(--fs-base);
}
.ob-theme-choice:hover { border-color: var(--gold-soft); }
.ob-theme-choice[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 20px -4px rgba(201,161,74,0.2);
}
.ob-theme-preview {
  width: 100%; height: 80px;
  border-radius: var(--r-md);
  margin-bottom: var(--space-3);
  border: 1px solid var(--cream-line);
}
.ob-preview-dark {
  background: #060d1a;
}
.ob-preview-dark::after {
  content: "Aa";
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  color: #e5c06a;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.ob-preview-light {
  background: #f7f4ec;
}
.ob-preview-light::after {
  content: "Aa";
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  color: #9e7c2e;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

/* Actions */
.ob-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.ob-actions .btn { min-width: 100px; }
.ob-note {
  font-size: var(--fs-xs);
  color: var(--cream-mute);
  margin-top: var(--space-4);
}

/* ---------- 20. Utilities / micro ---------- */
.chev {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 0.4em;
}
.icon-external {
  width: 12px; height: 12px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25em;
}

/* Two-column content (parents, sunday) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .info-card { border-left: 1px solid var(--cream-line); border-top: 3px solid var(--gold-dim); }
  .info-card:hover { border-left-color: var(--cream-line); border-top-color: var(--gold); }
}

.pill {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid var(--gold-soft);
}
.pill-sacred { background: rgba(138, 21, 56, 0.18); color: var(--sacred-bright); border-color: rgba(176, 34, 72, 0.4); }

/* Lists */
.list-gold { list-style: none; padding: 0; margin: 0; }
.list-gold li {
  padding: var(--space-3) 0;
  padding-left: 1.8em;
  position: relative;
  border-bottom: 1px dashed var(--cream-line);
  color: var(--cream-dim);
  font-size: var(--fs-base);
}
.list-gold li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2em;
  width: 8px; height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: var(--gold-soft);
}
.list-gold li:last-child { border-bottom: none; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.85em;
  width: 0.75em; height: 0.75em;
  border: none;
  transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a14a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--gold);
  font-weight: bold;
}
.list-money li::before {
  content: "$";
  position: absolute;
  left: 0.2em;
  top: 0.75em;
  width: auto; height: auto;
  border: none;
  transform: none;
  background: none;
  color: var(--gold-bright);
  font-weight: bold;
  font-family: var(--font-display);
}

/* Route leg card */
.leg {
  padding: var(--space-5);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
  background: rgba(245,241,232,0.03);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-4);
  transition: all var(--dur-med);
}
.leg:hover { border-color: var(--gold-soft); }
.leg-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 600;
}
.leg h4 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-1);
  color: var(--cream);
  font-size: 1.25rem;
  font-weight: 600;
}
.leg .leg-meta {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--cream-mute);
  letter-spacing: 0.04em;
}
.leg .leg-meta strong { color: var(--gold-bright); font-weight: 600; }
.leg .leg-note {
  font-size: var(--fs-xs);
  color: var(--cream-dim);
  margin-top: var(--space-2);
  font-style: italic;
}
@media (max-width: 560px) {
  .leg { grid-template-columns: 1fr; }
  .leg-num { font-size: 1.75rem; }
}

/* ---------- Guide Overlay ---------- */
.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-veil);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  padding: var(--space-4);
}
.guide-overlay.open {
  opacity: 1;
  visibility: visible;
}
.guide-inner {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 4rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ink-soft);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-xl);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  position: relative;
}
.guide-step { display: none; }
.guide-step.active { display: block; }

.guide-step h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--cream);
  margin: 0 0 var(--space-3);
  font-weight: 600;
}
.guide-icon {
  color: var(--gold);
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}
.guide-icon svg { width: 48px; height: 48px; }
.guide-desc {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--cream-dim);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}

/* Dots */
.guide-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-line);
  transition: background 0.25s;
}
.guide-dot.active { background: var(--gold); }

/* Actions */
.guide-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.guide-counter {
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  color: var(--cream-mute);
  margin-top: var(--space-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Form field in guide */
.guide-field {
  text-align: left;
  margin-bottom: var(--space-5);
}
.guide-field label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

/* Icon picker grid */
.guide-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  max-height: 240px;
  overflow-y: auto;
}
.guide-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid var(--cream-line);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--cream-dim);
  transition: border-color 0.2s, background 0.2s;
  padding: var(--space-1);
}
.guide-icon-btn:hover { border-color: var(--gold-dim); }
.guide-icon-btn.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
}

/* Sharing toggles */
.guide-toggles {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-5);
  text-align: left;
}
.guide-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--cream-line);
  cursor: pointer;
}
.guide-toggle-row:last-child { border-bottom: none; }
.guide-toggle-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guide-toggle-row strong {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--cream);
  font-weight: 600;
}
.guide-toggle-row small {
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  color: var(--cream-mute);
}
.guide-toggle-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

/* Light mode overrides */
html[data-theme="light"] .guide-inner {
  background: var(--parchment);
  border-color: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .guide-step h2 { color: var(--cream); }
html[data-theme="light"] .guide-desc { color: rgba(6, 13, 26, 0.65); }
html[data-theme="light"] .guide-dot { background: rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .guide-icon-btn {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--ink);
}
html[data-theme="light"] .guide-icon-btn:hover { border-color: var(--gold-dim); }
html[data-theme="light"] .guide-icon-btn.selected {
  border-color: var(--gold);
  background: rgba(201, 161, 74, 0.12);
}
html[data-theme="light"] .guide-toggle-row { border-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .guide-toggle-row strong { color: var(--cream); }
html[data-theme="light"] .guide-toggle-row small { color: rgba(6, 13, 26, 0.5); }
html[data-theme="light"] .guide-counter { color: rgba(6, 13, 26, 0.4); }
html[data-theme="light"] .guide-field label { color: rgba(6, 13, 26, 0.6); }
html[data-theme="light"] .guide-icon { color: var(--gold); }

/* ---------- Light mode: Auth modal + Recovery phrase ---------- */
html[data-theme="light"] .auth-tab {
  border-color: rgba(26, 26, 46, 0.12);
  color: rgba(26, 26, 46, 0.6);
}
html[data-theme="light"] .auth-tab.active {
  background: rgba(201, 161, 74, 0.1);
  color: var(--gold);
  border-color: var(--gold-dim);
}
html[data-theme="light"] .auth-form label { color: rgba(26, 26, 46, 0.6); }
html[data-theme="light"] .auth-error {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
html[data-theme="light"] .recovery-words {
  background: rgba(26, 26, 46, 0.04);
  border: 1px solid rgba(26, 26, 46, 0.08);
}
html[data-theme="light"] .recovery-word { color: var(--cream); }
html[data-theme="light"] .recovery-word em { color: var(--gold); }
html[data-theme="light"] .recovery-warning { color: #dc2626; }
html[data-theme="light"] .recovery-actions .btn {
  background: rgba(26, 26, 46, 0.05);
  border-color: rgba(26, 26, 46, 0.12);
  color: var(--cream);
}
html[data-theme="light"] .recovery-phrase-screen h3 { color: var(--cream); }
html[data-theme="light"] .password-meter { background: rgba(26, 26, 46, 0.08); }

/* ---------- Light mode: Onboarding theme cards ---------- */
html[data-theme="light"] .ob-theme-choice {
  border-color: rgba(26, 26, 46, 0.1);
  color: var(--ink);
}
html[data-theme="light"] .ob-theme-choice:hover { border-color: var(--gold-dim); }
html[data-theme="light"] .ob-theme-choice[aria-pressed="true"] {
  border-color: var(--gold);
}
html[data-theme="light"] .ob-theme-preview { border-color: rgba(26, 26, 46, 0.1); }

/* ---------- Light mode: Toast ---------- */
html[data-theme="light"] .toast-error { border-color: #dc2626; }

/* ---------- Light mode: Hub misc ---------- */
html[data-theme="light"] .hub-tile-badge {
  background: rgba(201, 161, 74, 0.1);
  color: var(--gold);
}
html[data-theme="light"] .hub-welcome-modal h2 { color: var(--cream); }
html[data-theme="light"] .hub-welcome-modal p { color: rgba(6, 13, 26, 0.65); }
html[data-theme="light"] .modal h3 { color: var(--cream); }
html[data-theme="light"] .modal-close { color: rgba(26, 26, 46, 0.4); }
html[data-theme="light"] .modal-close:hover { color: var(--cream); }

/* ---------- Light mode: Common surface patterns ---------- */
html[data-theme="light"] .option-card { background: rgba(255, 255, 255, 0.6); }
html[data-theme="light"] .list-item { background: rgba(255, 255, 255, 0.5); }
html[data-theme="light"] .prayer-card { background: rgba(255, 255, 255, 0.5); border-color: rgba(26, 26, 46, 0.06); }
html[data-theme="light"] .scroll-list { background: rgba(255, 255, 255, 0.5); }

/* ---------- Mobile: small phones (iPhone SE / 14) ---------- */
@media (max-width: 390px) {
  .guide-inner { padding: var(--space-5) var(--space-4); }
  .guide-icon-grid { grid-template-columns: repeat(4, 1fr); }
  .recovery-words { grid-template-columns: repeat(3, 1fr); gap: var(--space-1); padding: var(--space-3); }
  .ob-theme-cards { gap: var(--space-3); }
  section { padding-left: var(--space-3); padding-right: var(--space-3); }
}
