/* ============================================================
   RLFGC — design system
   Deep navy + gold. Mobile-first. Light & dark.
   ============================================================ */

:root {
  --navy-900: #070d24;
  --navy-800: #0d1b4b;
  --navy-700: #12245c;
  --navy-600: #1b3b6b;
  --gold-500: #c9a030;
  --gold-400: #e8c15a;
  --red-500:  #db1212;
  --green-500:#16a05e;

  --bg:        #f4f6fb;
  --surface:   #ffffff;
  --surface-2: #eef1f8;
  --ink:       #101a33;
  --ink-2:     #5b6680;
  --line:      rgba(13, 27, 75, 0.10);
  --shadow:    0 4px 18px rgba(13, 27, 75, 0.08);
  --shadow-lg: 0 10px 34px rgba(13, 27, 75, 0.14);
  --hero-scrim: linear-gradient(180deg, rgba(7,13,36,.30) 0%, rgba(7,13,36,.55) 60%, rgba(7,13,36,.82) 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", Georgia, "Times New Roman", serif;
  --tabbar-h: calc(62px + env(safe-area-inset-bottom));
  --spring: cubic-bezier(.34, 1.4, .44, 1);
}

[data-theme="dark"] {
  --bg:        #070d24;
  --surface:   #101a3a;
  --surface-2: #182350;
  --ink:       #e9edf9;
  --ink-2:     #97a2c4;
  --line:      rgba(255, 255, 255, 0.08);
  --shadow:    0 4px 18px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 10px 34px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background .35s ease, color .35s ease;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { fill: currentColor; }
[hidden] { display: none !important; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; padding-bottom: 40px; }
.stack > * { min-width: 0; }
.view { overflow-x: clip; }

/* ---------- header ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px calc(10px);
  padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 900; letter-spacing: .5px; }
.brand-beacon { width: 22px; height: 22px; color: var(--gold-500); }
.brand-rl  { color: var(--navy-600); }
[data-theme="dark"] .brand-rl { color: #fff; }
.brand-fgc { color: var(--gold-500); }
.brand-fgc-gold { color: var(--gold-400); }

.topnav { display: none; gap: 4px; margin-left: auto; }
.topnav a {
  padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  color: var(--ink-2); position: relative; transition: color .2s, background .2s;
}
.topnav a:hover { color: var(--ink); background: var(--surface-2); }
.topnav a.active { color: #fff; background: var(--navy-600); }
[data-theme="dark"] .topnav a.active { background: var(--gold-500); color: var(--navy-900); }

.theme-toggle {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; transition: transform .3s var(--spring);
}
.theme-toggle:active { transform: scale(.88) rotate(-15deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.ico-sun { display: none; fill: none; stroke: currentColor; stroke-width: 2; }
.ico-sun circle { fill: currentColor; }
[data-theme="dark"] .ico-sun { display: block; }
[data-theme="dark"] .ico-moon { display: none; }

@media (min-width: 880px) {
  .topnav { display: flex; }
  .theme-toggle { margin-left: 0; }
  .tabbar { display: none !important; }
  body { padding-bottom: 0; }
}

/* ---------- hero ---------- */

.hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero img { animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scrim { position: absolute; inset: 0; background: var(--hero-scrim); }
.hero-content { position: relative; padding: 42px 22px 46px; max-width: 1060px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  color: var(--gold-400); font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase;
  font-size: 12.5px; margin: 0 0 6px;
  animation: rise .7s var(--spring) both .1s;
}
.hero h1 {
  color: #fff; font-size: clamp(30px, 6vw, 52px); line-height: 1.08; margin: 0 0 10px;
  font-weight: 900; letter-spacing: -.5px; text-wrap: balance;
  animation: rise .7s var(--spring) both .2s;
}
.hero-sub { color: rgba(255,255,255,.82); margin: 0 0 22px; font-size: clamp(15px, 2.4vw, 18px); animation: rise .7s var(--spring) both .3s; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; animation: rise .7s var(--spring) both .4s; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(219, 18, 18, .92); color: #fff; font-weight: 900; font-size: 12px;
  letter-spacing: 2px; padding: 7px 14px; border-radius: 999px; margin-bottom: 14px;
  box-shadow: 0 0 24px rgba(219,18,18,.55);
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 14px; border: none;
  font-weight: 800; font-size: 15.5px; line-height: 1.2;
  transition: transform .25s var(--spring), box-shadow .25s, filter .2s;
  will-change: transform;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { display: block; font-weight: 500; font-size: 11.5px; opacity: .85; }
.btn-gold  { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #241a02; box-shadow: 0 6px 20px rgba(201,160,48,.38); }
.btn-navy  { background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); color: #fff; box-shadow: 0 6px 20px rgba(13,27,75,.30); }
.btn-red   { background: linear-gradient(135deg, #e32222, #b90d0d); color: #fff; box-shadow: 0 6px 20px rgba(219,18,18,.32); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { background: var(--surface-2); }
.btn-wide { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 200px; min-width: 0; }

/* ---------- cards ---------- */

.card {
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.head-ico { margin-right: 4px; }
.see-all { color: var(--gold-500); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.muted { color: var(--ink-2); font-size: 14.5px; margin-top: 0; }
.center { text-align: center; }
.fineprint { color: var(--ink-2); font-size: 12px; margin-bottom: 0; }
.card-photo { border-radius: var(--radius-sm); margin-bottom: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.addr { color: var(--ink-2); margin: 6px 0 14px; line-height: 1.6; }
.page-title { font-size: clamp(26px, 5vw, 34px); font-weight: 900; letter-spacing: -.5px; margin: 8px 0 0; }
.page-lede { color: var(--ink-2); margin: 0; font-size: 15.5px; }

/* entrance animation */
.reveal { animation: rise .6s var(--spring) both; }
.reveal:nth-child(2) { animation-delay: .07s; }
.reveal:nth-child(3) { animation-delay: .14s; }
.reveal:nth-child(4) { animation-delay: .21s; }

/* view transitions */
.view { animation: viewIn .38s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- verse card ---------- */

.verse-card {
  margin: 0; padding: 26px 24px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius); color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.verse-card::before {
  content: "”"; position: absolute; top: -30px; right: 6px; font-size: 150px;
  color: var(--gold-500); opacity: .18; font-family: var(--serif); line-height: 1;
}
.verse-text { font-family: var(--serif); font-style: italic; font-size: clamp(16.5px, 2.6vw, 20px); line-height: 1.55; margin: 0 0 10px; }
.verse-card cite { color: var(--gold-400); font-style: normal; font-weight: 700; font-size: 13.5px; letter-spacing: 1px; }

/* ---------- quick grid ---------- */

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; min-height: 118px; box-shadow: var(--shadow); text-align: left;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.tile:hover  { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile:active { transform: scale(.95); }
.tile-ico {
  font-size: 21px; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px; margin-bottom: 8px;
  background: color-mix(in srgb, var(--tint, var(--navy-600)) 13%, transparent);
}
[data-theme="dark"] .tile-ico { background: color-mix(in srgb, var(--tint, var(--navy-600)) 32%, transparent); }
.tile strong { font-size: 15.5px; font-weight: 800; }
.tile small { color: var(--ink-2); font-size: 12px; }

/* ---------- service times ---------- */

.service-times { display: flex; flex-direction: column; gap: 8px; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.svc-ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; font-size: 17px;
  background: color-mix(in srgb, var(--gold-500) 15%, transparent);
}
.svc-row strong { font-size: 15px; display: block; }
.svc-row small { color: var(--ink-2); font-size: 12.5px; }
.svc-live {
  margin-left: auto; background: var(--navy-600); color: #fff; font-size: 10px;
  font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: .5px; white-space: nowrap;
}
[data-theme="dark"] .svc-live { background: var(--gold-500); color: var(--navy-900); }

/* ---------- mini events (home) ---------- */

.mini-events { display: flex; flex-direction: column; gap: 4px; }
.mini-event { display: flex; align-items: center; gap: 13px; padding: 9px 4px; border-radius: 10px; }
.mini-event:hover { background: var(--surface-2); }
.mini-date {
  width: 46px; flex: none; text-align: center; background: var(--surface-2);
  border-radius: 10px; padding: 6px 0; border: 1px solid var(--line);
}
.mini-date b { display: block; font-size: 17px; color: var(--gold-500); line-height: 1.1; }
.mini-date span { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-2); font-weight: 700; }
.mini-event strong { font-size: 14.5px; display: block; }
.mini-event small { color: var(--ink-2); font-size: 12px; }

/* ---------- live view ---------- */

.live-header { text-align: center; padding: 28px 20px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); border: none; }
.live-brandmark { font-size: 34px; font-weight: 900; letter-spacing: 1px; }
.live-brandmark .brand-rl { color: #fff; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 8px;
  padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #cbd3ea; font-weight: 800; font-size: 12px; letter-spacing: 2px;
}
.status-pill.is-live { background: rgba(22,160,94,.16); border-color: rgba(22,160,94,.5); color: #35d98b; }
.live-title { color: rgba(255,255,255,.8); margin: 0; font-size: 14.5px; }

.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #db1212; animation: pulse 1.3s ease-in-out infinite; }
.pulse-dot.green { background: #22c778; }
.pulse-dot.gray { background: #8a93ad; animation: none; }
@keyframes pulse { 0%, 100% { transform: scale(.8); opacity: .75; } 50% { transform: scale(1.25); opacity: 1; } }

.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--navy-900);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-player-card { padding: 12px; }
.live-player-card .video-frame { box-shadow: 0 0 0 2px rgba(219,18,18,.55), 0 10px 30px rgba(219,18,18,.25); }

.embed-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; width: 100%;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: rgba(255,255,255,.85); border: none; font-weight: 700; font-size: 14px;
}
.play-circle {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-500); color: var(--navy-900);
  box-shadow: 0 8px 26px rgba(201,160,48,.45);
  transition: transform .3s var(--spring);
}
.embed-cover:hover .play-circle { transform: scale(1.1); }
.play-circle svg { width: 26px; height: 26px; }
.map-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- events ---------- */

.event-section-title {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900;
  letter-spacing: 1.5px; color: var(--ink-2); margin: 10px 4px 2px;
}
.event-section-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sec-color, var(--navy-600)); }

.event-card { border-left: 4px solid var(--ministry, var(--navy-600)); }
.event-card + .event-card { margin-top: 12px; }
.event-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.event-top h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.event-badge {
  flex: none; font-size: 10px; font-weight: 900; letter-spacing: .8px; color: #fff;
  padding: 4px 10px; border-radius: 999px; background: var(--badge, var(--navy-600));
}
.event-meta { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; color: var(--ink-2); font-size: 14px; }
.event-meta span { display: flex; gap: 8px; align-items: baseline; }
.event-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; }
.event-count { color: var(--gold-500); font-weight: 700; }
.event-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.event-actions .btn { flex: 1 1 90px; min-width: 0; padding: 10px 12px; font-size: 13.5px; border-radius: 11px; }

.notice-card {
  background: color-mix(in srgb, #db1212 8%, var(--surface));
  border: 1px solid color-mix(in srgb, #db1212 30%, transparent);
  border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 4px;
}
.notice-card .n-ico { font-size: 20px; }
.notice-card strong { display: block; font-size: 14.5px; }
.notice-card small { color: var(--ink-2); font-size: 13px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty-state .big { font-size: 46px; margin-bottom: 10px; }

/* skeletons */
.skeleton-card, .skeleton-row {
  border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite linear;
}
.skeleton-card { height: 150px; margin-bottom: 12px; }
.skeleton-row { height: 64px; margin-bottom: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- sermons ---------- */

.featured-sermon {
  display: flex; flex-direction: column; overflow: hidden; padding: 0; border: none;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.featured-sermon .fs-body { padding: 20px; display: flex; gap: 16px; align-items: center; }
.featured-sermon img { width: 92px; height: 92px; border-radius: 14px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.fs-label { color: var(--gold-400); font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.featured-sermon h3 { margin: 4px 0 6px; font-size: 17px; line-height: 1.3; }
.featured-sermon small { color: rgba(255,255,255,.65); }
.fs-play {
  margin: 0 20px 20px; justify-content: center;
}

.episode { display: flex; align-items: center; gap: 13px; padding: 11px 4px; border-radius: 12px; border-bottom: 1px solid var(--line); }
.episode:last-child { border-bottom: none; }
.episode:hover { background: var(--surface-2); }
.ep-play {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: none; background: color-mix(in srgb, var(--gold-500) 16%, transparent); color: var(--gold-500);
  transition: transform .25s var(--spring), background .2s;
}
.ep-play:hover { background: var(--gold-500); color: var(--navy-900); }
.ep-play:active { transform: scale(.88); }
.ep-play svg { width: 18px; height: 18px; }
.ep-play.playing { background: var(--gold-500); color: var(--navy-900); }
.episode .ep-meta { min-width: 0; }
.episode strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode small { color: var(--ink-2); font-size: 12px; }

/* ---------- mini player ---------- */

.mini-player {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + 10px); z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--navy-800) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; border-radius: 16px; padding: 10px 12px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1);
  animation: rise .45s var(--spring) both;
}
@media (min-width: 880px) { .mini-player { bottom: 14px; max-width: 520px; left: auto; right: 20px; } }
.mini-player img { width: 44px; height: 44px; border-radius: 10px; }
.mp-meta { flex: 1; min-width: 0; }
.mp-meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); margin-top: 7px; overflow: hidden; }
.mp-bar { height: 100%; width: 0; background: var(--gold-400); border-radius: 4px; transition: width .5s linear; }
.mini-player button { background: none; border: none; color: #fff; width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.mini-player button svg { width: 22px; height: 22px; }
.mini-player .mp-pause { display: none; }
.mini-player.playing .mp-pause { display: block; }
.mini-player.playing .mp-play { display: none; }
#mpClose svg { width: 16px; height: 16px; opacity: .7; }

/* ---------- forms ---------- */

.form { display: flex; flex-direction: column; gap: 14px; }
.form h2 { margin-bottom: 2px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13.5px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-500) 22%, transparent);
}
.form textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 20px; font-weight: 700; font-size: 14px; margin: 0; }
.form-status.ok { color: var(--green-500); }
.form-status.err { color: #e33; }
.form.sent { animation: sentPulse .5s var(--spring); }
@keyframes sentPulse { 50% { transform: scale(1.015); } }

/* success state */
.sent-card { text-align: center; padding: 40px 24px; }
.sent-heart { font-size: 54px; display: inline-block; animation: heartbeat 1.2s ease-in-out 2; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.25); } 50% { transform: scale(1); } 65% { transform: scale(1.18); } }
.sent-card h2 { margin: 12px 0 6px; }
.sent-verse { font-family: var(--serif); font-style: italic; color: var(--ink-2); }

/* ---------- give ---------- */

.give-card { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 34px 22px; }
.give-halo {
  font-size: 34px; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-500) 26%, transparent), transparent 72%);
  animation: heartbeat 2.6s ease-in-out infinite;
}
.give-card h2 { margin: 0; }
#giveEmbedWrap iframe { width: 100%; min-height: 900px; border: 0; border-radius: var(--radius-sm); }

/* ---------- visit ---------- */

.split { display: grid; gap: 18px; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- connect ---------- */

.social-list { display: flex; flex-direction: column; gap: 12px; }
.social-card {
  display: flex; align-items: center; gap: 15px; padding: 16px 18px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .3s var(--spring), box-shadow .3s;
}
.social-card:hover { transform: translateY(-2px) scale(1.005); box-shadow: var(--shadow-lg); }
.social-card:active { transform: scale(.97); }
.social-ico {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff;
}
.social-ico svg { width: 23px; height: 23px; }
.fb  .social-ico { background: #1877f2; }
.ig  .social-ico { background: radial-gradient(circle at 30% 110%, #fdc468, #df4996 55%, #9b36b7); }
.yt  .social-ico { background: #ff0000; }
.pod .social-ico { background: linear-gradient(135deg, #b150e2, #822cbe); }
.social-card small { color: var(--ink-2); display: block; font-size: 12.5px; }
.about-card p { color: var(--ink-2); margin-bottom: 0; }

/* ---------- footer ---------- */

.footer {
  margin-top: 30px; padding: 40px 0 46px; text-align: center;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: rgba(255,255,255,.78);
}
.footer-brand { font-size: 26px; font-weight: 900; letter-spacing: 1px; margin-bottom: 8px; }
.footer-brand .brand-rl { color: #fff; }
.footer p { margin: 6px 0; font-size: 14px; }
.footer-verse { font-family: var(--serif); font-style: italic; color: var(--gold-400); padding: 6px 0; }
.footer a { color: var(--gold-400); }
.footer .fineprint { color: rgba(255,255,255,.45); }

/* ---------- tab bar ---------- */

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-2); font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 12px;
  transition: color .2s, transform .25s var(--spring);
}
.tabbar a:active { transform: scale(.9); }
.tabbar svg { width: 23px; height: 23px; }
.tabbar a.active { color: var(--gold-500); }
.tabbar a.active svg { filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--gold-500) 45%, transparent)); }

.nav-live-dot {
  position: absolute; top: 2px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: #db1212; box-shadow: 0 0 0 2px var(--surface); animation: pulse 1.3s infinite;
}
.topnav .nav-live-dot { position: static; display: inline-block; margin-left: 4px; box-shadow: none; }

/* ---------- toasts / banners / modals ---------- */

.offline-toast {
  position: sticky; top: 0; z-index: 49; text-align: center; font-size: 13px; font-weight: 700;
  background: var(--gold-500); color: var(--navy-900); padding: 7px 12px;
}

.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px); z-index: 70;
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; box-shadow: var(--shadow-lg);
  animation: rise .5s var(--spring) both;
}
@media (min-width: 880px) { .install-banner { max-width: 480px; left: auto; right: 20px; bottom: 20px; } }
.install-banner img { width: 46px; height: 46px; border-radius: 12px; }
.install-banner div { flex: 1; min-width: 0; }
.install-banner strong { display: block; font-size: 14px; }
.install-banner small { color: var(--ink-2); font-size: 12px; }
.install-banner .btn { padding: 9px 16px; font-size: 13.5px; }
.banner-close { background: none; border: none; color: var(--ink-2); font-size: 15px; padding: 6px; }

.modal {
  border: none; border-radius: 22px; padding: 26px; max-width: 430px; width: calc(100vw - 40px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(7, 13, 36, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .35s var(--spring) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.modal h2 { margin: 0 0 12px; font-size: 19px; }
.modal ol { padding-left: 20px; line-height: 2; margin: 0 0 18px; }
.inline-ico { width: 17px; height: 17px; vertical-align: -3px; }
.crisis-modal p { font-size: 14.5px; }
.crisis-modal .btn { margin: 6px 0; }
.crisis-verse { font-family: var(--serif); font-style: italic; text-align: center; color: var(--gold-500); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
