/* 508 Ministry Trust - Warm Parchment Light Mode + Deep Sanctuary Navy Dark Mode
   Self-hosted Cormorant (headings) & Figtree (body). WCAG AA+ contrast in both themes. */

:root {
  --bg: #FDF9F0;
  --bg-alt: #F5EBD6;
  --surface: #FFFDF8;
  --surface-2: #EFE2C6;
  --ink: #1C1915;
  --ink-2: #383128;
  --ink-muted: #5A5042;
  --heading: #0C1A2E;
  --navy: #0C1A2E;
  --navy-deep: #07101E;
  --gold: #D4A84B;
  --gold-bright: #E5BF6A;
  --gold-ink: #7C5812;
  --emerald: #176647;
  --emerald-bg: #E5F4EC;
  --border: rgba(159, 117, 39, 0.28);
  --border-strong: rgba(159, 117, 39, 0.56);
  --nav-bg: rgba(253, 249, 240, 0.90);
  --shadow-sm: 0 4px 14px rgba(12, 26, 46, 0.06);
  --shadow-md: 0 18px 42px -14px rgba(12, 26, 46, 0.14);
  --shadow-lg: 0 32px 72px -20px rgba(12, 26, 46, 0.22);
  --hero-grad: radial-gradient(65% 55% at 78% 22%, rgba(212, 168, 75, 0.19) 0%, transparent 72%),
               radial-gradient(50% 45% at 12% 85%, rgba(12, 26, 46, 0.06) 0%, transparent 70%),
               linear-gradient(180deg, #FDF9F0 0%, #F8F0DF 100%);
  --canvas-shell-bg: radial-gradient(circle at 50% 45%, #FBF5E6 0%, #EFE1C3 100%);
  --radius: 20px;
  --radius-sm: 12px;
}

html[data-theme="dark"] {
  --bg: #091324;
  --bg-alt: #0D1B32;
  --surface: #11223E;
  --surface-2: #172C50;
  --ink: #FAF3E0;
  --ink-2: #E2D9C4;
  --ink-muted: #B6C3D8;
  --heading: #FAF3E0;
  --navy: #0C1A2E;
  --navy-deep: #060D1A;
  --gold: #F0CD78;
  --gold-bright: #FCE4A2;
  --gold-ink: #F0CD78;
  --emerald: #4ADE80;
  --emerald-bg: rgba(23, 102, 71, 0.28);
  --border: rgba(240, 205, 120, 0.25);
  --border-strong: rgba(240, 205, 120, 0.55);
  --nav-bg: rgba(9, 19, 36, 0.90);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 20px 46px -14px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 36px 80px -20px rgba(0, 0, 0, 0.72);
  --hero-grad: radial-gradient(65% 55% at 78% 22%, rgba(240, 205, 120, 0.14) 0%, transparent 72%),
               radial-gradient(50% 45% at 15% 85%, rgba(28, 60, 108, 0.35) 0%, transparent 72%),
               linear-gradient(180deg, #091324 0%, #0C1A2E 100%);
  --canvas-shell-bg: radial-gradient(circle at 50% 45%, #152B4E 0%, #091324 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: clip;
  transition: background-color 0.28s ease, color 0.28s ease;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant', Georgia, serif;
  color: var(--heading);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #FAF3E0;
  padding: 10px 18px; border-radius: 999px; z-index: 9999; font-weight: 700;
}
.skip-link:focus { left: 16px; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* Header */
.trust-nav {
  position: sticky; top: 0; z-index: 90;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.28s ease, border-color 0.28s ease;
}
.trust-nav-in {
  max-width: 1320px; margin: 0 auto;
  padding: 12px clamp(14px, 2.2vw, 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--heading); flex-shrink: 0;
}
.brand-seal {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.22), rgba(12, 26, 46, 0.94));
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 14px rgba(212, 168, 75, 0.24);
}
.brand-seal img { width: 28px; height: 28px; object-fit: contain; }
.brand-text strong {
  display: block; font-family: 'Cormorant', Georgia, serif;
  font-size: 1.32rem; font-weight: 700; line-height: 1.05; color: var(--heading);
}
.brand-text small {
  display: block; font-size: 0.70rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink);
}

.nav-links {
  display: flex; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.015em; transition: color 0.18s;
  white-space: nowrap;
}
.nav-actions .btn-gold { padding: 9px 16px; font-size: 0.86rem; }
.nav-links a:hover { color: var(--gold-ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink);
  font-size: 0.84rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.2s, background-color 0.2s;
}
.theme-btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.theme-btn svg { width: 16px; height: 16px; flex: none; }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #E7C26B 0%, #D4A84B 60%, #B98B31 100%);
  color: #0C1A2E !important; font-weight: 800; font-size: 0.92rem;
  text-decoration: none; border: 1px solid rgba(159, 117, 39, 0.55);
  box-shadow: 0 10px 26px -8px rgba(180, 134, 42, 0.45);
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -8px rgba(180, 134, 42, 0.62); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  background: var(--surface); color: var(--heading) !important;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  border: 1px solid var(--border-strong);
  transition: transform 0.18s, border-color 0.18s, background-color 0.18s;
}
.btn-outline:hover { transform: translateY(-1px); border-color: var(--gold); background: var(--bg-alt); }

.mob-menu-btn {
  display: none; min-height: 40px; padding: 7px 12px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 0.85rem;
}

/* Hero Section: Deep Sanctuary Navy + Glowing Gold Floating World Map */
.hero-sec {
  position: relative;
  background: radial-gradient(ellipse at 50% 35%, #13284A 0%, #0A172D 65%, #061020 100%);
  color: #FAF3E0;
  padding: clamp(36px, 5vw, 68px) 0 clamp(48px, 6vw, 84px);
  border-bottom: 1px solid rgba(240, 205, 120, 0.34);
  overflow: hidden;
}
.hero-world-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-world-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 68% 52% at 50% 38%, rgba(212, 168, 75, 0.16) 0%, rgba(212, 168, 75, 0.04) 44%, transparent 74%),
    radial-gradient(ellipse 50% 42% at 18% 82%, rgba(28, 63, 118, 0.36) 0%, transparent 65%),
    radial-gradient(ellipse 50% 42% at 84% 78%, rgba(212, 168, 75, 0.09) 0%, transparent 62%),
    repeating-linear-gradient(0deg, rgba(212, 168, 75, 0.045) 0px, rgba(212, 168, 75, 0.045) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(90deg, rgba(212, 168, 75, 0.04) 0px, rgba(212, 168, 75, 0.04) 1px, transparent 1px, transparent 96px);
  pointer-events: none;
}
.hero-world-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 54% 76% at 24% 48%, rgba(6, 15, 30, 0.56) 0%, transparent 74%),
    radial-gradient(ellipse at 50% 44%, transparent 45%, rgba(4, 10, 22, 0.68) 100%);
  pointer-events: none;
}
.hero-world-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118%;
  min-width: 1100px;
  max-width: 1920px;
  transform: translate3d(-50%, -50%, 0) scale(1.03);
  transform-origin: center center;
  will-change: transform;
  animation: trustWorldDrift 56s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(212, 168, 75, 0.14));
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hero-world-stage.is-ready { opacity: 1; }
.hero-world-stage svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-world-stage .wm-c {
  fill: rgba(212, 168, 75, 0.21);
  stroke: rgba(240, 205, 120, 0.50);
  stroke-width: 0.95;
  vector-effect: non-scaling-stroke;
}
.hero-world-stage .wm-c.osw-served {
  fill: rgba(212, 168, 75, 0.22);
  stroke: rgba(250, 222, 146, 0.78);
  stroke-width: 1.15;
}
.hero-world-stage .wm-c.osw-home {
  fill: rgba(226, 180, 82, 0.25);
  stroke: rgba(255, 234, 170, 0.92);
  stroke-width: 1.3;
}
.hero-world-stage .osw-pin-halo {
  fill: rgba(240, 205, 120, 0.26);
  stroke: rgba(250, 222, 146, 0.85);
  stroke-width: 1.05;
  transform-box: fill-box;
  transform-origin: center;
  animation: trustBeaconPulse 4.6s ease-out infinite;
}
.hero-world-stage .osw-pin-core {
  fill: #FFE7A6;
  stroke: #0A172D;
  stroke-width: 0.8;
  animation: trustBeaconGlow 3.6s ease-in-out infinite;
}
.hero-world-stage .osw-pin-home .osw-pin-core { fill: #FFF1C2; }
.hero-world-stage .osw-pin-home .osw-pin-halo {
  stroke: #FFE49E;
  fill: rgba(255, 232, 168, 0.26);
}
.hero-sec.hero-world-paused .hero-world-stage,
.hero-sec.hero-world-paused .osw-pin-halo,
.hero-sec.hero-world-paused .osw-pin-core {
  animation-play-state: paused !important;
}
@keyframes trustWorldDrift {
  0% { transform: translate3d(-50%, -50%, 0) scale(1.03); }
  25% { transform: translate3d(calc(-50% + 16px), calc(-50% - 9px), 0) scale(1.065); }
  50% { transform: translate3d(calc(-50% - 12px), calc(-50% + 8px), 0) scale(1.08); }
  75% { transform: translate3d(calc(-50% - 16px), calc(-50% - 7px), 0) scale(1.05); }
  100% { transform: translate3d(-50%, -50%, 0) scale(1.03); }
}
@keyframes trustBeaconPulse {
  0% { transform: scale(0.75); opacity: 0.88; }
  65% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes trustBeaconGlow {
  0%, 100% { opacity: 0.86; }
  50% { opacity: 1; }
}
.hero-sec > .wrap { position: relative; z-index: 3; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(12, 26, 46, 0.84); border: 1px solid rgba(240, 205, 120, 0.48);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: #F0CD78;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #F0CD78; box-shadow: 0 0 0 4px rgba(240, 205, 120, 0.25);
}
.hero-title {
  font-size: clamp(2.65rem, 5.2vw, 4.45rem);
  font-weight: 700; line-height: 0.98;
  margin: 18px 0 18px;
  color: #FAF3E0;
  text-shadow: 0 2px 18px rgba(4, 10, 22, 0.55);
}
.hero-title em { font-style: italic; color: #F0CD78; font-weight: 600; }
.hero-lede {
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  color: #E2D9C4; max-width: 560px; margin: 0 0 26px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-sec .btn-outline {
  background: rgba(12, 26, 46, 0.80);
  color: #FAF3E0 !important;
  border: 1px solid rgba(240, 205, 120, 0.52);
  backdrop-filter: blur(8px);
}
.hero-sec .btn-outline:hover {
  background: rgba(240, 205, 120, 0.16);
  border-color: #F0CD78;
}

.hero-kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.hero-kpi {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(10, 23, 45, 0.80); border: 1px solid rgba(240, 205, 120, 0.34);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}
.hero-kpi b {
  display: block; font-family: 'Cormorant', Georgia, serif;
  font-size: 1.95rem; font-weight: 700; color: #FAF3E0; line-height: 1;
}
.hero-kpi span {
  display: block; margin-top: 5px; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #F0CD78;
}

/* Isometric 3D Sanctuary Stage */
.iso-stage {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(240, 205, 120, 0.48);
  background: radial-gradient(circle at 50% 44%, rgba(21, 44, 82, 0.72) 0%, rgba(7, 16, 30, 0.86) 100%);
  backdrop-filter: blur(8px);
  box-shadow: 0 32px 72px -18px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  min-height: 520px;
  display: flex; flex-direction: column;
}
.iso-canvas-wrap {
  position: relative; width: 100%; height: 420px; flex: 1 1 auto;
}
#trustIsoCanvas {
  display: block; width: 100%; height: 100%; cursor: grab;
}
.iso-hud-top {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none; z-index: 4;
}
.iso-badge {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(12, 26, 46, 0.86); color: #FAF3E0;
  border: 1px solid rgba(240, 205, 120, 0.45);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.iso-badge .live-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}
.iso-hint {
  pointer-events: auto;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(12, 26, 46, 0.76); color: #F0CD78;
  border: 1px solid rgba(240, 205, 120, 0.35);
  font-size: 0.74rem; font-weight: 600;
}

.iso-inspector {
  position: relative; z-index: 5;
  padding: 16px 18px 18px;
  background: rgba(12, 26, 46, 0.94);
  color: #FAF3E0;
  border-top: 1px solid rgba(240, 205, 120, 0.35);
}
.iso-pillar-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.iso-tab {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(240, 205, 120, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: #E2D9C4; font-size: 0.75rem; font-weight: 700;
  transition: all 0.16s;
}
.iso-tab:hover, .iso-tab.is-active {
  background: linear-gradient(135deg, #F0CD78, #D4A84B);
  color: #0C1A2E; border-color: #F0CD78;
}
.iso-info-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.iso-info-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.45rem; font-weight: 700; color: #F0CD78; margin: 0 0 4px;
}
.iso-info-desc {
  margin: 0; font-size: 0.88rem; color: #DDE5F0; max-width: 500px; line-height: 1.48;
}
.iso-info-stat {
  padding: 8px 14px; border-radius: 10px;
  background: rgba(240, 205, 120, 0.12);
  border: 1px solid rgba(240, 205, 120, 0.35);
  text-align: right; flex-shrink: 0;
}
.iso-info-stat b { display: block; font-size: 1.05rem; color: #FAF3E0; }
.iso-info-stat span { display: block; font-size: 0.72rem; color: #F0CD78; text-transform: uppercase; letter-spacing: 0.08em; }

/* Sections */
.sec { padding: clamp(54px, 6.5vw, 92px) 0; border-bottom: 1px solid var(--border); }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-kicker {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 10px;
}
.sec-title { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; margin-bottom: 12px; }
.sec-sub { margin: 0; font-size: 1.04rem; color: var(--ink-2); }

/* Cards & Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(212, 168, 75, 0.16);
  border: 1px solid var(--border-strong);
  color: var(--gold-ink); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* Portfolio Bars */
.portfolio-panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 26px; align-items: stretch;
}
.alloc-list { display: flex; flex-direction: column; gap: 16px; }
.alloc-row { display: flex; flex-direction: column; gap: 6px; }
.alloc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; color: var(--heading); }
.alloc-top span:last-child { color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.alloc-bar {
  height: 11px; border-radius: 999px; background: var(--surface-2);
  overflow: hidden; border: 1px solid var(--border);
}
.alloc-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #0C1A2E 0%, #D4A84B 100%);
}
html[data-theme="dark"] .alloc-fill {
  background: linear-gradient(90deg, #C69332 0%, #F7DA8C 100%);
}

.charter-box {
  background: linear-gradient(155deg, #0C1A2E 0%, #142848 100%);
  color: #FAF3E0; border-radius: var(--radius);
  padding: 28px; border: 1px solid rgba(240, 205, 120, 0.44);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.charter-box h3 { color: #F0CD78; font-size: 1.75rem; }
.charter-box p { color: #DCE4F0; margin: 0; }
.charter-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding-top: 14px; border-top: 1px solid rgba(240, 205, 120, 0.25);
}
.charter-meta div small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #F0CD78; }
.charter-meta div strong { font-size: 0.95rem; color: #FAF3E0; }

/* Nations Filter & Table */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chip {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink); font-size: 0.85rem; font-weight: 700;
  transition: all 0.16s;
}
.filter-chip.is-active, .filter-chip:hover {
  background: var(--navy); color: #FAF3E0; border-color: var(--gold);
}
html[data-theme="dark"] .filter-chip.is-active,
html[data-theme="dark"] .filter-chip:hover {
  background: var(--gold); color: #091324;
}

.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-ink); background: var(--bg-alt);
}
tr:last-child td { border-bottom: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--emerald-bg); color: var(--emerald);
  font-size: 0.76rem; font-weight: 800;
}

/* 14 Points */
.points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.point-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px;
}
.point-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(212, 168, 75, 0.2); border: 1px solid var(--border-strong);
  color: var(--gold-ink); font-weight: 800; font-size: 0.8rem; margin-bottom: 8px;
}
.point-card h4 { font-size: 1.18rem; margin-bottom: 6px; }
.point-card p { margin: 0; font-size: 0.88rem; color: var(--ink-2); }

/* Bookshelf Container Polish */
.shelf-wrap {
  border-radius: 24px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.45), rgba(12, 26, 46, 0.35));
  box-shadow: var(--shadow-lg);
}
.shelf-wrap .fc3d-shell { margin: 0; border: 0; }

/* Footer */
.trust-footer {
  background: #07101E; color: #C8D3E4; padding: 56px 0 34px;
  border-top: 2px solid rgba(212, 168, 75, 0.45);
}
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.ft-title { font-family: 'Cormorant', Georgia, serif; font-size: 1.55rem; font-weight: 700; color: #F0CD78; margin: 0 0 10px; }
.trust-footer h4 { font-size: 0.8rem; font-family: 'Figtree', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #F0CD78; margin-bottom: 12px; }
.trust-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.trust-footer a { color: #DCE4F0; text-decoration: none; font-size: 0.9rem; }
.trust-footer a:hover { color: #F0CD78; text-decoration: underline; }
.ft-bottom {
  padding-top: 22px; border-top: 1px solid rgba(240, 205, 120, 0.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.82rem; color: #9FB0C7;
}


/* Live Sunday Worship & Registration */
.worship-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(22px, 3.5vw, 36px);
  align-items: start;
}
.worship-schedule-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 34px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.worship-time-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.worship-time-main {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
}
.worship-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.worship-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--gold-ink);
}
.worship-pill.is-emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
  border-color: rgba(23, 102, 71, 0.35);
}
.worship-desc {
  margin: 0;
  font-size: 1.04rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.worship-local-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.worship-local-box small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.worship-local-box strong {
  display: block;
  font-size: 1.06rem;
  color: var(--heading);
  margin-top: 2px;
}
.worship-local-tz {
  font-size: 0.80rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.worship-countdown {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, #0C1A2E 0%, #142848 100%);
  color: #FAF3E0;
  border: 1px solid rgba(240, 205, 120, 0.42);
}
.worship-cd-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F0CD78;
  margin-bottom: 12px;
}
.worship-cd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}
.worship-cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.worship-cd-unit {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(240, 205, 120, 0.28);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.worship-cd-unit b {
  display: block;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: #FAF3E0;
}
.worship-cd-unit span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #F0CD78;
}
.worship-room-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.worship-room-card strong {
  font-size: 0.96rem;
  color: var(--heading);
}
.worship-room-card p {
  margin: 0;
  font-size: 0.90rem;
  color: var(--ink-2);
}

.worship-form-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 34px);
  box-shadow: var(--shadow-md);
}
.worship-form-head {
  margin-bottom: 18px;
}
.worship-form-head h3 {
  font-size: 1.85rem;
  margin-bottom: 6px;
}
.worship-form-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.worship-form[hidden], .worship-confirm-card[hidden] { display: none !important; }
.sec[id], .hero-sec[id] { scroll-margin-top: 82px; }
.worship-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.worship-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.worship-field label,
.worship-field-legend {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--heading);
}
.worship-field input[type="text"],
.worship-field input[type="email"],
.worship-field input[type="tel"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.16s, box-shadow 0.16s;
}
html[data-theme="dark"] .worship-field input[type="text"],
html[data-theme="dark"] .worship-field input[type="email"],
html[data-theme="dark"] .worship-field input[type="tel"] {
  background: var(--surface-2);
  color: #FAF3E0;
}
.worship-field input::placeholder {
  color: var(--ink-muted);
  opacity: 0.85;
}
.worship-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.22);
}
.worship-radio-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.worship-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.worship-radio-opt {
  position: relative;
  display: block;
}
.worship-radio-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.worship-radio-pill {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.16s ease;
  height: 100%;
}
html[data-theme="dark"] .worship-radio-pill {
  background: var(--surface-2);
}
.worship-radio-pill strong {
  font-size: 0.88rem;
  color: var(--heading);
}
.worship-radio-pill small {
  font-size: 0.77rem;
  color: var(--ink-muted);
}
.worship-radio-opt input:checked + .worship-radio-pill {
  background: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 8px 20px -8px rgba(12, 26, 46, 0.5);
}
.worship-radio-opt input:checked + .worship-radio-pill strong {
  color: #F0CD78;
}
.worship-radio-opt input:checked + .worship-radio-pill small {
  color: #DCE4F0;
}
html[data-theme="dark"] .worship-radio-opt input:checked + .worship-radio-pill {
  background: rgba(240, 205, 120, 0.18);
  border-color: #F0CD78;
}
.worship-radio-opt input:focus-visible + .worship-radio-pill {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.worship-submit-btn {
  width: 100%;
  margin-top: 4px;
  min-height: 50px;
  font-size: 0.98rem;
}
.worship-submit-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}
.worship-status-msg {
  min-height: 20px;
  font-size: 0.88rem;
  font-weight: 700;
}
.worship-status-msg.is-error {
  color: #B42318;
}
html[data-theme="dark"] .worship-status-msg.is-error {
  color: #FCA5A5;
}
.worship-confirm-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1.5px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.worship-confirm-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--emerald-bg);
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.worship-confirm-card h4 {
  font-size: 1.65rem;
}
.worship-confirm-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.90rem;
}
.worship-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.worship-reset-btn {
  background: transparent;
  border: 0;
  padding: 6px 2px;
  color: var(--gold-ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid, .worship-grid, .portfolio-panel, .ft-grid { grid-template-columns: 1fr; }
  .hero-world-stage { width: 195%; min-width: 780px; top: 44%; animation-duration: 64s; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .mob-menu-btn { display: inline-flex; align-items: center; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 67px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border-strong);
    padding: 18px 24px; gap: 14px; box-shadow: var(--shadow-md);
  }
}
@media (max-width: 640px) {
  .trust-nav-in { padding: 10px 14px; gap: 8px; }
  .brand-seal { width: 36px; height: 36px; }
  .brand-seal img { width: 22px; height: 22px; }
  .brand-text strong { font-size: 1.08rem; }
  .brand-text small { display: none; }
  .nav-actions .btn-gold { display: none; }
  .theme-btn { padding: 6px 10px; font-size: 0.78rem; min-height: 36px; }
  .mob-menu-btn { min-height: 36px; padding: 6px 10px; font-size: 0.80rem; }
  .grid-3, .grid-2, .grid-4, .hero-kpis, .charter-meta, .worship-radio-grid { grid-template-columns: 1fr; }
  .worship-cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iso-canvas-wrap { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
