:root {
  --bg: #FFFFFF;
  --cloud: #F4F7FB;
  --surface: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --ink: #0F172A;
  --ink-body: #334155;
  --ink-muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --emerald: #0D9488;
  --emerald-dark: #08695F;
  --emerald-soft: #E0F7F4;
  --coral: #E8553E;
  --coral-soft: #FFF0ED;
  --indigo: #4F46E5;
  --indigo-soft: #EEF0FF;
  --amber: #D97706;
  --amber-soft: #FEF4E2;
  --sky: #0284C7;
  --sky-soft: #E6F4FE;
  --violet: #7C3AED;
  --violet-soft: #F3ECFF;

  --w-main: #0D9488;
  --w-soft: #E0F7F4;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-prose: var(--font-sans);

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.13);
  --radius-lg: 24px;
  --radius-md: 18px;
}

html[data-reader-font="serif"] {
  --font-prose: var(--font-serif);
}

html[data-theme="dark"] {
  --bg: #09101E;
  --cloud: #0E172A;
  --surface: #131F35;
  --surface-subtle: #182640;
  --ink: #F8FAFC;
  --ink-body: #CBD5E1;
  --ink-muted: #94A3B8;
  --border: #1E2D47;
  --border-strong: #2C3F61;

  --emerald-soft: rgba(13, 148, 136, 0.18);
  --coral-soft: rgba(232, 85, 62, 0.16);
  --indigo-soft: rgba(79, 70, 229, 0.18);
  --amber-soft: rgba(217, 119, 6, 0.18);
  --sky-soft: rgba(2, 132, 199, 0.18);
  --violet-soft: rgba(124, 58, 237, 0.18);
  --w-soft: rgba(13, 148, 136, 0.18);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.5);
}

[data-world="genesis-and-origins"] { --w-main: #0D9488; --w-soft: var(--emerald-soft); }
[data-world="hard-sayings-and-paradoxes"] { --w-main: #E8553E; --w-soft: var(--coral-soft); }
[data-world="angels-demons-and-monsters"] { --w-main: #4F46E5; --w-soft: var(--indigo-soft); }
[data-world="lost-books-and-scrolls"] { --w-main: #D97706; --w-soft: var(--amber-soft); }
[data-world="jesus-and-first-century-history"] { --w-main: #0284C7; --w-soft: var(--sky-soft); }
[data-world="revelation-and-end-times"] { --w-main: #7C3AED; --w-soft: var(--violet-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--emerald);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { left: 16px; }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #0D9488, #4F46E5, #E8553E);
  z-index: 1200;
  transition: width 0.08s linear;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================================
   TOP NAVIGATION BAR (CLEAN, BREATHABLE, ZERO CROWDING)
   ========================================================================= */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-topbar {
  background: rgba(9, 16, 30, 0.9);
}
.topbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-gem {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0D9488 0%, #2563EB 55%, #7C3AED 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
  flex-shrink: 0;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-body);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  background: var(--surface-subtle);
  color: var(--emerald);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-search-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-search-pill:hover {
  border-color: var(--emerald);
  color: var(--ink);
}
.kbd-chip {
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}
.topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.topbar-icon-btn:hover {
  border-color: var(--emerald);
  color: var(--ink);
}
.saved-badge-cnt {
  display: none;
  background: var(--emerald);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}
.saved-badge-cnt.has-items { display: inline-block; }

.topbar-yt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
html[data-theme="dark"] .topbar-yt-pill {
  background: var(--emerald);
}
.topbar-yt-pill:hover { transform: translateY(-1px); opacity: 0.94; }

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .primary-nav, .topbar-yt-pill, .kbd-chip, .topbar-saved-pill { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .topbar-inner { padding: 0 14px; height: 62px; gap: 8px; }
  .topbar-brand { font-size: 16.5px; gap: 8px; }
  .brand-gem { width: 28px; height: 28px; border-radius: 8px; }
  .topbar-actions { gap: 6px; }
  .nav-search-pill span { display: none; }
  .nav-search-pill { padding: 0 10px; height: 36px; }
  .topbar-icon-btn { padding: 0 10px; height: 36px; font-size: 13px; }
  .mobile-menu-btn { width: 36px; height: 36px; }
}

/* =========================================================================
   HERO OASIS BANNER (SCREEN 1 — ONE FOCAL POINT, LUSH COLOR, LIVE SEARCH)
   ========================================================================= */
.hero-wrap {
  padding: 28px 0 36px;
}
.hero-oasis-shell {
  position: relative;
}
.hero-oasis-card {
  position: relative;
  border-radius: 28px;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 56px 56px;
  box-shadow: var(--shadow-lg);
  background: #08142C;
}
.hero-oasis-art {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  z-index: 0;
}
.hero-oasis-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero-oasis-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 15, 35, 0.96) 0%,
    rgba(7, 19, 44, 0.92) 42%,
    rgba(8, 22, 48, 0.42) 72%,
    rgba(8, 22, 48, 0.08) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 610px;
  width: 100%;
}
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #99F6E4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero-h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.7vw, 56px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}
.hero-sub {
  margin: 0 0 28px;
  font-size: clamp(16.5px, 1.8vw, 19.5px);
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.92);
  max-width: 50ch;
}
.hero-search-wrap {
  position: relative;
  max-width: 560px;
  margin-bottom: 20px;
}
.hero-search-pill {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 16px 40px rgba(4, 10, 24, 0.35);
  border: 2px solid transparent;
  transition: border-color 0.18s ease;
}
.hero-search-pill:focus-within {
  border-color: #14B8A6;
}
.hero-search-icon {
  color: #64748B;
  flex-shrink: 0;
  margin-right: 12px;
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #0F172A;
  font-size: 16.5px;
  font-weight: 500;
  padding: 11px 0;
  min-width: 0;
}
.hero-search-input::placeholder { color: #64748B; }
.hero-search-go {
  border: none;
  border-radius: 999px;
  background: #0D9488;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s ease;
}
.hero-search-go:hover { background: #0F766E; }

.live-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 60;
  max-height: 380px;
  overflow-y: auto;
}
.live-dropdown.open { display: block; }
.live-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 0.14s ease;
}
.live-hit:hover { background: var(--cloud); }
.live-hit img {
  width: 68px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.live-hit-meta { font-size: 12px; font-weight: 700; color: var(--emerald); }
.live-hit-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }

.hero-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hq-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.hq-pill:hover { transform: translateY(-2px); filter: brightness(1.07); }
.hq-emerald { background: #10B981; }
.hq-coral { background: #F06449; }
.hq-amber { background: #E58E1A; }
.hq-violet { background: #8B5CF6; }

@media (max-width: 768px) {
  .hero-wrap { padding: 16px 0 24px; }
  .hero-oasis-card {
    padding: 34px 22px;
    min-height: 410px;
    border-radius: 22px;
  }
  .hero-oasis-art { border-radius: 22px; }
  .hero-oasis-scrim {
    background: linear-gradient(
      180deg,
      rgba(6, 15, 35, 0.86) 0%,
      rgba(6, 15, 35, 0.93) 65%,
      rgba(6, 15, 35, 0.96) 100%
    );
  }
  .hero-search-pill { padding: 5px 6px 5px 14px; }
  .hero-search-input { font-size: 15px; }
  .hero-search-go { padding: 10px 14px; font-size: 13.5px; }
}

/* =========================================================================
   GUIDED SECTIONS (GENEROUS BREATHING ROOM, ONE IDEA AT A TIME)
   ========================================================================= */
.guided-band {
  padding: 76px 0;
}
.guided-band.band-cloud {
  background: var(--cloud);
}
.guided-band.band-midnight {
  background: linear-gradient(145deg, #091326 0%, #111F3D 55%, #17153B 100%);
  color: #F8FAFC;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 8px;
}
.section-h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.band-midnight .section-h2 { color: #FFFFFF; }
.section-sub {
  margin: 8px 0 0;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 58ch;
}
.band-midnight .section-sub { color: #CBD5E1; }

.section-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.section-more-link:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  transform: translateY(-1px);
}
.band-midnight .section-more-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* =========================================================================
   STORY CARDS (LUSH FULL-COLOR 16:9 ART, CLEAN BADGE, HUMAN TITLE)
   ========================================================================= */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
#atlas-guides-grid[data-expanded="false"] .story-card:nth-child(n+10) {
  display: none;
}
.story-card {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--w-main);
}
.story-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.story-art-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0F172A;
}
.story-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.story-card:hover .story-art-wrap img {
  transform: scale(1.04);
}
.story-video-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(9, 16, 30, 0.84);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}
.story-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.story-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.story-world-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--w-soft);
  color: var(--w-main);
  font-size: 12.5px;
  font-weight: 700;
}
.story-mins {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.story-card-title {
  margin: 0 0 8px;
  font-size: 19.5px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.story-card-hook {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px) {
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 640px) {
  .stories-grid { grid-template-columns: 1fr; gap: 20px; }
  .guided-band { padding: 52px 0; }
}

/* =========================================================================
   SIX COLORFUL WORLD PORTAL CARDS (SCREEN 3 — JEWEL-TONE ART PORTALS)
   ========================================================================= */
.worlds-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.world-portal-card {
  position: relative;
  border-radius: 24px;
  min-height: 236px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.world-portal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.world-portal-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}
.world-portal-card:hover img {
  transform: scale(1.05);
}
.world-portal-glaze {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.world-portal-top, .world-portal-bottom {
  position: relative;
  z-index: 2;
}
.world-count-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
}
.world-portal-title {
  margin: 0 0 6px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.world-portal-sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 960px) {
  .worlds-portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .worlds-portal-grid { grid-template-columns: 1fr; }
  .world-portal-card { min-height: 200px; }
}

/* =========================================================================
   CORAL -> EMERALD 2-CARD TRANSLATION REVEAL (SCREEN 4 & ARTICLE)
   ========================================================================= */
.reveal-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.section-head.centered + .reveal-explorer .reveal-pills-row {
  justify-content: center;
}
.reveal-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.reveal-pill:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}
.reveal-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.reveal-stage {
  display: grid;
  grid-template-columns: 1fr auto 1.12fr;
  align-items: stretch;
  gap: 18px;
}
.reveal-stage[hidden] { display: none !important; }

.reveal-card {
  border-radius: 26px;
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reveal-coral {
  background: linear-gradient(145deg, #FFF2EE 0%, #FFE4DC 100%);
  border: 1.5px solid #FBC4B6;
  color: #431407;
}
html[data-theme="dark"] .reveal-coral {
  background: linear-gradient(145deg, #2D1618 0%, #3B1A1D 100%);
  border-color: #7F2D2D;
  color: #FECACA;
}
.reveal-coral .reveal-kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D9381E;
  margin-bottom: 10px;
}
html[data-theme="dark"] .reveal-coral .reveal-kicker { color: #FCA5A5; }
.reveal-coral .reveal-card-title {
  margin: 0 0 14px;
  font-size: 23px;
  line-height: 1.28;
  font-weight: 800;
  color: #7C1D10;
}
html[data-theme="dark"] .reveal-coral .reveal-card-title { color: #FFF1F2; }
.reveal-quote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-style: italic;
  color: #5C1D12;
}
html[data-theme="dark"] .reveal-quote {
  background: rgba(0, 0, 0, 0.25);
  color: #FECDD3;
}
.reveal-coral .reveal-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #692316;
}
html[data-theme="dark"] .reveal-coral .reveal-body { color: #FED7AA; }

.reveal-arrow-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal-emerald {
  background: linear-gradient(145deg, #0D9488 0%, #075E56 100%);
  color: #FFFFFF;
  box-shadow: 0 20px 44px rgba(13, 148, 136, 0.25);
}
.reveal-emerald .reveal-kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #99F6E4;
  margin-bottom: 12px;
}
.reveal-script-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.reveal-translit {
  font-size: 14px;
  font-weight: 600;
  color: #CCFBF1;
  margin-bottom: 12px;
}
.reveal-emerald .reveal-card-title {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.28;
  font-weight: 800;
  color: #FFFFFF;
}
.reveal-emerald .reveal-body {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.62;
  color: rgba(240, 253, 250, 0.95);
}
.reveal-cta-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #065F56;
  font-size: 14.5px;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.reveal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .reveal-stage { grid-template-columns: 1fr; gap: 12px; }
  .reveal-arrow-bridge svg { transform: rotate(90deg); }
  .reveal-card { padding: 24px 22px; }
}

/* =========================================================================
   INTERACTIVE COLOR MAP & VIBRANT LABS
   ========================================================================= */
.vibrant-lab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 36px;
  box-shadow: var(--shadow-md);
  margin: 34px 0;
}
.vlab-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.vlab-subtitle {
  margin: 0 0 22px;
  font-size: 16.5px;
  color: var(--ink-muted);
  max-width: 64ch;
}
.map-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.map-zone-pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.map-zone-pill.active, .map-zone-pill:hover {
  border-color: var(--pin-c);
  background: var(--pin-c);
  color: #FFFFFF;
}
.color-map-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  background: #0F172A;
}
.color-map-frame img { width: 100%; height: auto; display: block; }
.color-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid #FFFFFF;
  background: var(--pin-c);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.color-map-pin:hover, .color-map-pin.active {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35), 0 10px 26px rgba(0, 0, 0, 0.5);
}
.map-readout-card {
  border-radius: 20px;
  padding: 24px 26px;
  background: var(--cloud);
  border-left: 6px solid var(--active-c, #0D9488);
}
.map-readout-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.map-readout-badge {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.map-readout-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
}
.map-script-chip {
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.map-readout-desc {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-body);
}
.inline-story-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald);
}
.inline-story-link:hover { text-decoration: underline; }

/* Lab sub-widgets */
.vlab-note-box {
  border-radius: 18px;
  padding: 22px 24px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
.vlab-note-box p { margin: 0 0 10px; font-size: 16px; line-height: 1.62; }
.vlab-note-box p:last-child { margin-bottom: 0; }
.inline-badge-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
}

.gem-stage-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.gem-tiles-wrap {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gem-color-tile {
  min-width: 78px;
  padding: 12px 10px;
  border-radius: 16px;
  background: var(--indigo-soft);
  border: 1px solid rgba(79, 70, 229, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gem-ch { font-size: 26px; font-weight: 800; color: var(--indigo); line-height: 1.1; }
.gem-nm { font-size: 11.5px; font-weight: 700; color: var(--ink-muted); margin-top: 4px; }
.gem-num { font-size: 14px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.gem-sum-box {
  min-width: 140px;
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gem-sum-box span { font-size: 12px; font-weight: 700; text-transform: uppercase; opacity: 0.88; }
.gem-sum-box strong { font-size: 36px; font-weight: 800; line-height: 1.05; }

.plague-legend-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.plegend-chip { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.self-chip { background: var(--coral-soft); color: var(--coral); }
.god-chip { background: var(--indigo-soft); color: var(--indigo); }
.plague-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.plague-step-btn {
  padding: 12px 10px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  transition: all 0.15s ease;
}
.plague-step-btn.plague-self { border-top: 5px solid var(--coral); }
.plague-step-btn.plague-god { border-top: 5px solid var(--indigo); }
.plague-step-btn.active { background: var(--cloud); border-color: var(--ink); transform: translateY(-2px); }
.pstep-num { font-size: 12px; font-weight: 800; color: var(--ink-muted); }
.pstep-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.pstep-who { font-size: 12px; font-weight: 700; color: var(--emerald); }

.canon-books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.canon-book-card {
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.16s ease;
}
.canon-book-card.active-book {
  background: var(--amber-soft);
  border-color: var(--amber);
}
.canon-book-card.ghost-book { opacity: 0.42; }
.cbook-tier { font-size: 11.5px; font-weight: 800; color: var(--amber); text-transform: uppercase; }
.cbook-title { font-size: 14.5px; font-weight: 800; color: var(--ink); }

.tl-steps-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.tl-step-pill {
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tl-step-pill span { font-size: 12px; font-weight: 800; color: var(--sky); }
.tl-step-pill strong { font-size: 14px; font-weight: 800; color: var(--ink); }
.tl-step-pill.active { background: var(--sky-soft); border-color: var(--sky); }

.gen-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.gen-col { border-radius: 20px; padding: 24px; }
.gen-col-cosmic { background: var(--sky-soft); border: 1px solid rgba(2, 132, 199, 0.25); }
.gen-col-garden { background: var(--emerald-soft); border: 1px solid rgba(13, 148, 136, 0.25); }
.gen-col-badge { font-size: 13px; font-weight: 800; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.gen-step-item { padding: 10px 0; border-top: 1px solid rgba(15, 23, 42, 0.08); }
.gen-step-item span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.gen-step-item strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.gen-step-item p { margin: 3px 0 0; font-size: 14.5px; color: var(--ink-body); }

.angels-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.angel-card {
  border-radius: 20px;
  padding: 20px;
  background: var(--cloud);
  border-top: 5px solid var(--ac);
}
.angel-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ac);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.angel-card h4 { margin: 0 0 4px; font-size: 17.5px; font-weight: 800; color: var(--ink); }
.angel-heb { font-size: 14px; font-weight: 700; color: var(--ink-muted); margin-bottom: 8px; }
.angel-card p { margin: 0; font-size: 14.5px; line-height: 1.55; }

.uf-pill-verdict {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.uf-pill-verdict.safe { background: var(--emerald-soft); color: var(--emerald); }
.uf-pill-verdict.warn { background: var(--coral-soft); color: var(--coral); }

/* Bible Shelf */
.bshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.bshelf-tile {
  padding: 12px 13px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--tile-c);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.15s ease;
}
.bshelf-tile:hover, .bshelf-tile.active {
  background: var(--cloud);
  border-color: var(--tile-c);
  transform: translateY(-2px);
}
.bshelf-grp { font-size: 11px; font-weight: 800; color: var(--tile-c); text-transform: uppercase; }
.bshelf-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.bshelf-cnt { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.bshelf-drawer {
  border-radius: 20px;
  padding: 24px;
  background: var(--cloud);
}
.bshelf-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.bshelf-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.bshelf-story-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.bshelf-story-row:hover { border-color: var(--emerald); transform: translateY(-2px); }
.bshelf-story-row img { width: 96px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.bshelf-row-meta { font-size: 12px; font-weight: 700; color: var(--emerald); }
.bshelf-row-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }

@media (max-width: 900px) {
  .vibrant-lab-card { padding: 24px 20px; border-radius: 22px; }
  .plague-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .canon-books-grid, .angels-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gen-compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .canon-books-grid, .angels-color-grid { grid-template-columns: 1fr; }
  .color-map-pin { width: 36px; height: 36px; font-size: 14px; }
}

/* =========================================================================
   DOCUMENTARY VIDEO ROW (SLEEK MIDNIGHT SAPPHIRE STRIP)
   ========================================================================= */
.cinema-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.cinema-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cinema-card:hover {
  transform: translateY(-4px);
  border-color: #2DD4BF;
}
.cinema-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.cinema-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cinema-play-dot {
  position: absolute;
  inset: auto auto 10px 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.94);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
}
.cinema-body { padding: 15px 16px 18px; }
.cinema-ep { font-size: 12px; font-weight: 700; color: #5EEAD4; margin-bottom: 4px; }
.cinema-title { margin: 0; font-size: 16px; line-height: 1.32; font-weight: 700; color: #FFFFFF; }

@media (max-width: 980px) { .cinema-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cinema-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   DISTRACTION-FREE SINGLE-COLUMN GUIDED ARTICLE (/GUIDES/<SLUG>/)
   ========================================================================= */
.article-guided-wrap {
  padding: 36px 0 72px;
}
.article-header-col {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 0 24px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.breadcrumbs a:hover { color: var(--w-main); }
.article-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.article-world-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--w-soft);
  color: var(--w-main);
  font-size: 13px;
  font-weight: 800;
}
.article-meta-txt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.article-h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.article-lead {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--ink-muted);
}
.article-actions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.art-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.art-action-pill:hover, .art-action-pill[aria-pressed="true"] {
  border-color: var(--w-main);
  color: var(--w-main);
}

.article-hero-stage {
  max-width: 900px;
  margin: 0 auto 34px;
  padding: 0 24px;
}
.article-hero-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
  background: #0F172A;
}
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: linear-gradient(180deg, rgba(9,16,30,0.12) 0%, rgba(9,16,30,0.62) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  color: #FFFFFF;
}
.yt-play-circle {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: var(--w-main);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease;
}
.yt-facade-btn:hover .yt-play-circle { transform: scale(1.08); }
.yt-play-label {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(9, 16, 30, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.article-reading-col {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 30-Second Answer Box (Matches v7_insp_clean_article!) */
.quick-answer-box {
  border-radius: 22px;
  padding: 26px 30px;
  background: var(--w-soft);
  border: 1px solid rgba(13, 148, 136, 0.2);
  margin-bottom: 38px;
}
.qa-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.qa-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--w-main);
  text-transform: uppercase;
}
.qa-copy-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.qa-text {
  margin: 0;
  font-family: var(--font-prose);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--ink);
}

/* Guided Step Chapters (Giant Colorful 01, 02, 03, 04 Numbers!) */
.guided-step-section {
  margin: 46px 0;
}
.step-heading-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
}
.step-big-num {
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--step-c, var(--w-main));
  flex-shrink: 0;
}
.step-heading-row h2 {
  margin: 0;
  font-size: clamp(23px, 2.8vw, 29px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.guided-step-section p {
  margin: 0 0 18px;
  font-family: var(--font-prose);
  font-size: 18.5px;
  line-height: 1.74;
  color: var(--ink-body);
}
.verse-callout-card {
  margin: 22px 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--cloud);
  border-left: 5px solid var(--step-c, var(--w-main));
}
.verse-callout-ref {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--step-c, var(--w-main));
  margin-bottom: 6px;
}
.verse-callout-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}

/* Inline Split Coral-vs-Emerald Translation Card (Matches v7_insp_clean_article!) */
.split-translation-card {
  margin: 40px 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.split-trans-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-side-coral {
  padding: 26px 28px;
  background: linear-gradient(145deg, #FF7A63 0%, #E8553E 100%);
  color: #FFFFFF;
}
.split-side-emerald {
  padding: 26px 28px;
  background: linear-gradient(145deg, #0D9488 0%, #07665D 100%);
  color: #FFFFFF;
}
.split-swap-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.split-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-bottom: 6px;
}
.split-script {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.split-quote {
  font-size: 16px;
  line-height: 1.52;
  font-weight: 600;
}
.split-trans-bottom {
  padding: 22px 28px;
  background: var(--cloud);
}
.split-trans-bottom p {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-body);
}
.split-trans-bottom p:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .split-trans-top { grid-template-columns: 1fr; }
  .split-swap-badge { display: none; }
}

/* Inline Art, Word Spotlight, Takeaways, Tables & FAQ */
.inline-story-figure {
  margin: 36px 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cloud);
}
.inline-story-figure img { width: 100%; height: auto; }
.inline-story-figure figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.word-spotlight-card {
  margin: 34px 0;
  padding: 22px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--indigo-soft), var(--emerald-soft));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.word-spot-script {
  font-size: 32px;
  font-weight: 800;
  color: var(--indigo);
}
.word-spot-info { flex: 1; min-width: 210px; }

.takeaways-card {
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: 22px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}
.takeaways-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.takeaways-list {
  margin: 0;
  padding-left: 20px;
}
.takeaways-list li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink-body);
}

.table-scroll-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin: 16px 0 34px;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
}
.comp-table th {
  background: var(--cloud);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.comp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.faq-section { margin: 44px 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 17px 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 20px 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
}

/* Hub Headers, Toolbars, Lexicon & Book Cards */
.hub-hero {
  padding: 48px 0 36px;
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
}
.atlas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover { border-color: var(--emerald); color: var(--emerald); }
.filter-pill.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sort-select {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.show-more-wrap {
  margin-top: 32px;
  text-align: center;
}
.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0D9488, #2563EB);
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.25);
  transition: transform 0.16s ease;
}
.btn-primary-pill:hover { transform: translateY(-2px); }

.bookshelf-grid, .lexicon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.book-tile, .word-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.book-tile:hover, .word-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald);
}
.book-tile-cat { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--emerald); margin-bottom: 6px; }
.book-tile-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.book-tile-desc { font-size: 15px; color: var(--ink-muted); line-height: 1.55; }

.word-script { font-size: 30px; font-weight: 800; color: var(--indigo); margin-bottom: 6px; }
.word-term { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.word-lang { padding: 3px 10px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); font-size: 12px; font-weight: 700; }
.word-literal { font-size: 14.5px; font-weight: 700; color: var(--emerald); margin: 6px 0 8px; }
.word-summary { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-body); line-height: 1.55; }
.word-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-muted); font-weight: 600; }

@media (max-width: 960px) { .bookshelf-grid, .lexicon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bookshelf-grid, .lexicon-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   FOOTER, SEARCH MODAL, MOBILE DRAWER & TOAST
   ========================================================================= */
.site-footer {
  background: #09101E;
  color: #CBD5E1;
  padding: 68px 0 44px;
  border-top: 1px solid #1E293B;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.footer-col h3 {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 14.5px; color: #94A3B8; transition: color 0.15s ease; }
.footer-links a:hover { color: #5EEAD4; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #64748B;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.search-modal, .mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(9, 16, 30, 0.66);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.search-modal.open, .mobile-drawer.open { display: flex; }
.search-modal { align-items: flex-start; justify-content: center; padding-top: 8vh; }
.search-dialog {
  width: 100%;
  max-width: 660px;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}
.search-results-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px;
}

.mobile-drawer { justify-content: flex-end; padding: 0; }
.mobile-drawer-panel {
  width: min(340px, 88vw);
  height: 100%;
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-list a {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-subtle);
}

.us-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1600;
}
.us-toast.show { opacity: 1; transform: translateY(0); }

/* =========================================================================
   V8 HUMAN USE-CASE ORIENTATION STRIP (ANSWERS "WHAT IS THIS SITE FOR?")
   ========================================================================= */
.topbar-left { gap: 20px; }
.primary-nav { gap: 4px; flex-shrink: 0; }
.nav-link { padding: 7px 11px; font-size: 14.5px; }
@media (max-width: 1100px) {
  .primary-nav, .topbar-yt-pill, .kbd-chip, .topbar-saved-pill { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}
.uf-pill-verdict { display: inline-block; white-space: nowrap; }
.usecase-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.usecase-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--cloud);
  border: 1px solid var(--border);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.usecase-card:hover {
  border-color: var(--uc-c, var(--emerald));
  transform: translateY(-2px);
}
.usecase-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--uc-c, var(--emerald));
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}
.usecase-card strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.usecase-card span {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}
@media (max-width: 860px) {
  .usecase-strip { grid-template-columns: 1fr; gap: 10px; }
}

/* =========================================================================
   CATEGORIZED HOMEPAGE STORY SHELF (TABS SWITCH IN PLACE — NO ENDLESS DUMP)
   ========================================================================= */
.cat-shelf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cat-shelf-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-shelf-tab:hover {
  border-color: var(--tab-c, var(--emerald));
  color: var(--tab-c, var(--emerald));
}
.cat-shelf-tab.active {
  background: var(--tab-c, var(--ink));
  border-color: var(--tab-c, var(--ink));
  color: #FFFFFF;
}
.cat-tab-cnt {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
}
.cat-shelf-tab.active .cat-tab-cnt {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}
.cat-shelf-pane[hidden] { display: none !important; }
.cat-shelf-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Story card dual taxonomy pills (World + Question Type + Verse) */
.story-tax-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.story-qtype-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--ink-body);
}
.story-verse-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--w-main);
}

/* World Directory Cards with Bulleted Example Questions */
.world-examples-list {
  margin: 10px 0 0;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
}
.world-examples-list li { margin-bottom: 4px; }
.world-portal-card { min-height: 268px; }

/* 4 Categorized Tool Launcher Cards on Homepage */
.tool-launcher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tool-launcher-card {
  padding: 24px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 5px solid var(--tlc);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tool-launcher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tlc);
}
.tlc-cat {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tlc);
  margin-bottom: 8px;
}
.tlc-title {
  margin: 0 0 8px;
  font-size: 18.5px;
  line-height: 1.28;
  font-weight: 800;
  color: var(--ink);
}
.tlc-desc {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  flex: 1;
}
.tlc-cta {
  font-size: 14px;
  font-weight: 800;
  color: var(--tlc);
}
@media (max-width: 1020px) { .tool-launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .tool-launcher-grid { grid-template-columns: 1fr; } }

/* Quick Bible Section Strip on Homepage */
.quick-book-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.qbook-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.qbook-card:hover { border-color: var(--emerald); transform: translateY(-2px); }
.qbook-card span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--emerald); margin-bottom: 3px; }
.qbook-card strong { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.qbook-card em { font-style: normal; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 900px) { .quick-book-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .quick-book-strip { grid-template-columns: 1fr; } }

/* =========================================================================
   MULTI-AXIS CATEGORIZED LIBRARY (/GUIDES/)
   ========================================================================= */
.library-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.library-sidebar {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.lib-group-title {
  margin: 16px 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.lib-group-title:first-child { margin-top: 0; }
.lib-side-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  margin-bottom: 2px;
}
.lib-side-btn:hover { background: var(--cloud); color: var(--ink); }
.lib-side-btn.active {
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 800;
}
.lib-cnt { font-size: 12px; color: var(--ink-muted); font-weight: 700; }

.lib-category-section {
  margin-bottom: 48px;
}
.lib-cat-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.lib-cat-banner h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}
.lib-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 980px) {
  .library-layout { grid-template-columns: 1fr; }
  .library-sidebar { position: static; }
}
@media (max-width: 640px) {
  .lib-main-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   6-APP INTERACTIVE WORKBENCH (/TOOLS/) — ZERO ENDLESS SCROLLING
   ========================================================================= */
.wb-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.wb-dock-btn {
  padding: 13px 12px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.16s ease;
  box-shadow: var(--shadow-sm);
}
.wb-dock-btn:hover { border-color: var(--emerald); transform: translateY(-2px); }
.wb-dock-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-md);
}
.wb-dock-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wb-dock-btn.active .wb-dock-cat { color: #5EEAD4 !important; }
.wb-dock-btn strong { font-size: 14.5px; font-weight: 800; line-height: 1.2; color: inherit; }

.wb-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.wb-panel[hidden] { display: none !important; }
.wb-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.wb-input, .wb-select {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  width: 100%;
}
.wb-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--cloud);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

/* App 1: 75-Verse X-Ray Workbench */
.xray-workbench-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.xray-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.xray-scroll-list {
  max-height: 430px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  background: var(--cloud);
}
.xray-item-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 3px;
}
.xray-item-btn:hover { background: var(--surface); }
.xray-item-btn.active {
  background: var(--emerald);
  color: #FFFFFF;
}
.xr-item-verse { font-size: 11.5px; font-weight: 800; color: var(--emerald); }
.xray-item-btn.active .xr-item-verse { color: #CCFBF1; }
.xr-item-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.xray-item-btn.active .xr-item-title { color: #FFFFFF; }

.xray-stage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.xray-stage-title { margin: 6px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.xray-three-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 14px;
  margin-bottom: 18px;
}
.xr-col {
  padding: 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}
.xr-col blockquote { margin: 0; font-size: 15.5px; line-height: 1.55; }
.xr-col-lbl { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.xr-col-kjv { background: var(--coral-soft); border: 1px solid rgba(232,85,62,0.25); }
.xr-col-kjv .xr-col-lbl { color: var(--coral); }
.xr-col-mod { background: var(--sky-soft); border: 1px solid rgba(2,132,199,0.25); }
.xr-col-mod .xr-col-lbl { color: var(--sky); }
.xr-col-orig { background: linear-gradient(145deg, #0D9488, #075E56); color: #FFFFFF; justify-content: center; }
.xr-col-orig .xr-col-lbl { color: #99F6E4; }
.xr-heb-big { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.xr-lit-txt { font-size: 15px; line-height: 1.5; color: #F0FDFA; }

/* App 2: Quiz */
.quiz-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cloud);
  border: 1px solid var(--border);
  font-size: 14px;
}
.quiz-score-pill strong { color: var(--emerald); font-weight: 800; }
.quiz-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--cloud);
  overflow: hidden;
  margin-bottom: 24px;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0D9488, #4F46E5);
  transition: width 0.25s ease;
}
.quiz-stage-card { max-width: 780px; margin: 0 auto; }
.quiz-q-heading { margin: 0 0 20px; font-size: 22px; line-height: 1.35; font-weight: 800; color: var(--ink); }
.quiz-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.quiz-opt-btn {
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quiz-opt-btn:hover:not(:disabled) { border-color: var(--indigo); background: var(--indigo-soft); }
.quiz-opt-btn.opt-correct { border-color: #10B981; background: var(--emerald-soft); color: var(--ink); }
.quiz-opt-btn.opt-wrong { border-color: #EF4444; background: var(--coral-soft); color: var(--ink); }
.quiz-feedback-box {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
.quiz-fb-verdict { font-size: 16px; font-weight: 800; margin-bottom: 6px; }

/* App 3: Live Gematria */
.gem-input-group { display: flex; gap: 10px; margin-bottom: 14px; }
.gem-big-input { font-size: 19px; height: 52px; font-weight: 700; }
.letter-pad-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pad-key-btn {
  min-width: 52px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--cloud);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
}
.pad-key-btn:hover { border-color: var(--indigo); background: var(--indigo-soft); }
.pad-key-btn small { font-size: 10.5px; color: var(--ink-muted); }

/* App 4, 5, 6 helpers */
.canon-diff-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: var(--cloud);
}
.canon-sel-wrap { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--ink); }
.canon-sel-wrap .wb-select { width: auto; height: 40px; }
.wb-map-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.plague-slider-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--cloud);
  margin-bottom: 16px;
}
.plague-live-tally { display: flex; gap: 8px; flex-wrap: wrap; }

.bmap-division-block { margin-top: 26px; }
.bmap-div-heading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Article Quick Jump Strip */
.article-jump-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 34px;
}
.jump-chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--cloud);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-body);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.jump-chip:hover { border-color: var(--w-main); color: var(--w-main); }

@media (max-width: 1020px) {
  .wb-dock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xray-workbench-grid, .wb-map-split, .xray-three-cards { grid-template-columns: 1fr; }
  .quiz-options-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wb-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-panel { padding: 20px 16px; }
}

/* =========================================================================
   TOPBAR ADJUSTMENT FOR 5 CLICK-MAGNET DESTINATIONS
   ========================================================================= */
.topbar-left { gap: 18px; }
.nav-link { padding: 7px 10px; font-size: 14px; }

/* =========================================================================
   PILLAR 1: GENIUS.COM-STYLE ANNOTATED SCRIPTURE READER
   ========================================================================= */
.genius-reader-shell {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 30px 32px;
  box-shadow: var(--shadow-lg);
}
.genius-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.genius-ch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.genius-ch-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.genius-ch-tab:hover { border-color: var(--emerald); color: var(--emerald); }
.genius-ch-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.genius-legend-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--cloud);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 22px;
}
.genius-legend-strip span { display: inline-flex; align-items: center; gap: 6px; }
.g-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.g-dot.emerald { background: #0D9488; }
.g-dot.coral { background: #E8553E; }
.g-dot.violet { background: #7C3AED; }
.g-dot.amber { background: #D97706; }

.genius-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}
.genius-passage-sheet[hidden] { display: none !important; }
.genius-sheet-kicker {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
  margin-bottom: 4px;
}
.genius-sheet-intro {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.genius-verses-box {
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
.genius-verse-line {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 20.5px;
  line-height: 1.72;
  color: var(--ink);
}
.genius-verse-line:last-child { margin-bottom: 0; }
.genius-vnum {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted);
  margin-right: 7px;
}

/* Clickable Glowing Phrase Highlights Inside Verses! */
.genius-hl {
  display: inline;
  padding: 2px 7px;
  margin: 0 1px;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.16s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.genius-hl.hl-emerald {
  background: rgba(13, 148, 136, 0.16);
  border-bottom: 2.5px solid #0D9488;
}
.genius-hl.hl-coral {
  background: rgba(232, 85, 62, 0.16);
  border-bottom: 2.5px solid #E8553E;
}
.genius-hl.hl-violet {
  background: rgba(124, 58, 237, 0.16);
  border-bottom: 2.5px solid #7C3AED;
}
.genius-hl.hl-amber {
  background: rgba(217, 119, 6, 0.18);
  border-bottom: 2.5px solid #D97706;
}
.genius-hl:hover { filter: brightness(0.95); }
.genius-hl.active.hl-emerald { background: #0D9488; color: #FFFFFF; box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35); }
.genius-hl.active.hl-coral { background: #E8553E; color: #FFFFFF; box-shadow: 0 4px 14px rgba(232, 85, 62, 0.35); }
.genius-hl.active.hl-violet { background: #7C3AED; color: #FFFFFF; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35); }
.genius-hl.active.hl-amber { background: #D97706; color: #FFFFFF; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35); }

/* Right-Hand Genius Annotation Inspector */
.genius-right-drawer {
  position: sticky;
  top: 88px;
  border-radius: 22px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 6px solid var(--ann-c, #0D9488);
  box-shadow: var(--shadow-md);
}
.genius-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.genius-drawer-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ann-c, #0D9488);
}
.genius-drawer-pos {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}
.genius-drawer-phrase {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}
.genius-script-box {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 11px;
  background: var(--cloud);
  border: 1px solid var(--border);
  font-size: 18px;
  font-weight: 800;
  color: var(--indigo);
  margin-bottom: 10px;
}
.genius-diff-bar {
  padding: 9px 13px;
  border-radius: 11px;
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.genius-drawer-body {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-body);
}
.genius-drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.genius-hooks-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.genius-hook-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--cloud);
  font-size: 13.5px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.genius-hook-chip:hover {
  background: var(--emerald-soft);
  transform: translateX(3px);
}
.genius-hook-chip span { color: var(--ink-muted); font-weight: 600; font-size: 12.5px; }
.genius-hook-chip strong { color: var(--emerald); font-weight: 800; }

@media (max-width: 980px) {
  .genius-reader-shell { padding: 20px 18px; }
  .genius-split-grid { grid-template-columns: 1fr; }
  .genius-right-drawer { position: static; }
}

/* =========================================================================
   PILLAR 2: GUIDED 4–5 STOP RABBIT-HOLE TRAILS + PROGRESS TRACKER
   ========================================================================= */
.trails-grid-v9 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.trail-card-v9 {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 5px solid var(--tr-c);
  border-radius: 24px;
  padding: 26px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.trail-card-v9:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.trail-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.trail-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tr-c);
}
.trail-prog-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cloud);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
}
.trail-prog-pill.has-progress {
  background: var(--emerald-soft);
  border-color: rgba(13, 148, 136, 0.3);
  color: var(--emerald);
}
.trail-card-title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}
.trail-card-sub {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.trail-stops-chain {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}
.trail-stop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--cloud);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.trail-stop-row:hover {
  border-color: var(--tr-c);
  transform: translateX(3px);
}
.trail-stop-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--tr-c);
  color: var(--tr-c);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trail-stop-row.visited .trail-stop-dot {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}
.trail-stop-txt strong { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.trail-stop-txt span { display: block; font-size: 12.5px; color: var(--ink-muted); }
@media (max-width: 900px) { .trails-grid-v9 { grid-template-columns: 1fr; } }

/* Active Trail Stepper Banner Inside Guides */
.active-trail-banner {
  margin: 0 0 30px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.active-trail-banner[hidden] { display: none !important; }
.abar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.abar-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #5EEAD4;
}
.abar-title { font-size: 17px; font-weight: 800; color: #FFFFFF; }
.abar-next-btn {
  padding: 9px 16px;
  border-radius: 999px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.abar-next-btn:hover { transform: translateY(-2px); }
.abar-steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.abar-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 700;
}
.abar-step-pill span {
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.abar-step-pill.current {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 800;
}
.abar-step-pill.current span { background: #0D9488; color: #FFFFFF; }
.abar-step-pill.visited:not(.current) {
  background: rgba(16, 185, 129, 0.24);
  color: #A7F3D0;
}

/* =========================================================================
   PILLAR 3: WIKIPEDIA HOVER PREVIEW LINKS & MID-STORY DETOUR CARDS
   ========================================================================= */
.rh-inline-link {
  color: var(--emerald);
  font-weight: 700;
  border-bottom: 2px dotted rgba(13, 148, 136, 0.65);
  padding-bottom: 1px;
  transition: background 0.15s ease, color 0.15s ease;
}
.rh-inline-link:hover {
  background: var(--emerald-soft);
  border-bottom-style: solid;
}

.rh-hover-popover {
  position: fixed;
  z-index: 1700;
  width: min(360px, 90vw);
  background: var(--surface);
  border: 1.5px solid var(--emerald);
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  pointer-events: auto;
  display: none;
}
.rh-hover-popover.open { display: block; }
.rh-pop-img {
  width: 100%;
  height: 136px;
  object-fit: cover;
}
.rh-pop-body { padding: 14px 16px 16px; }
.rh-pop-meta { font-size: 11.5px; font-weight: 800; color: var(--emerald); text-transform: uppercase; margin-bottom: 4px; }
.rh-pop-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; line-height: 1.28; color: var(--ink); }
.rh-pop-spoiler { margin: 0 0 10px; font-size: 13.5px; line-height: 1.48; color: var(--ink-body); }
.rh-pop-cta { font-size: 13px; font-weight: 800; color: var(--emerald); }

/* Mid-Article Related Card */
.rh-detour-card {
  margin: 32px 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.rh-detour-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--surface);
  transition: background 0.16s ease;
}
.rh-detour-inner:hover { background: var(--cloud); }
.rh-detour-inner img {
  width: 132px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.rh-detour-body { flex: 1; min-width: 0; }
.rh-detour-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo);
  margin-bottom: 3px;
}
.rh-detour-title {
  display: block;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.rh-detour-spoiler {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.rh-detour-arrow {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .rh-detour-inner { flex-direction: column; align-items: flex-start; }
  .rh-detour-inner img { width: 100%; height: 150px; }
}

/* =========================================================================
   V10 CALM, MINIMAL TOP NAVBAR (ZERO PILL CROWDING)
   ========================================================================= */
.site-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}
html[data-theme="dark"] .site-topbar {
  background: rgba(9, 16, 30, 0.92);
  border-bottom-color: rgba(30, 45, 71, 0.85);
}
.topbar-inner {
  height: 74px;
}
.brand-gem {
  background: #0F766E;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}
.primary-nav {
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: 999px;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--cloud);
}
.nav-link[aria-current="page"] {
  color: #0F766E;
  background: var(--emerald-soft);
  font-weight: 700;
}
html[data-theme="dark"] .nav-link[aria-current="page"] {
  color: #5EEAD4;
}
.v10-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.v10-search-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--surface);
}
.v10-icon-circle {
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.v10-icon-circle:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--cloud);
}
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .v10-search-btn span { display: none; }
  .v10-search-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 520px) {
  .topbar-actions { gap: 6px; }
  .v10-icon-circle { height: 34px; padding: 0 10px; font-size: 12.5px; }
  .v10-search-btn, .mobile-menu-btn { width: 34px; height: 34px; }
}

/* =========================================================================
   V10 SUNLIT SPLIT HERO + FLOATING SINGLE-VERSE INTERACTIVE CARD
   ========================================================================= */
.v10-hero-section {
  background: linear-gradient(180deg, #FAF8F4 0%, #FFFFFF 100%);
  padding: 46px 0 68px;
}
html[data-theme="dark"] .v10-hero-section {
  background: linear-gradient(180deg, #0D1628 0%, #09101E 100%);
}
.v10-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
}
.v10-hero-copy {
  max-width: 500px;
}
.v10-hero-h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.1vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.v10-hero-lead {
  margin: 0 0 32px;
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 39ch;
}
.v10-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.v10-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #0F766E;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.22);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.v10-btn-primary:hover {
  background: #0D655E;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.28);
}
.v10-link-quiet {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-body);
  border-bottom: 1.5px solid var(--border-strong);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.v10-link-quiet:hover {
  color: #0F766E;
  border-bottom-color: #0F766E;
}

/* Right-hand Sunlit Painting + Overlapping Single-Verse Card */
.v10-hero-visual {
  position: relative;
  padding-left: 46px;
  padding-bottom: 50px;
}
.v10-hero-art-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10);
  aspect-ratio: 4 / 3;
  background: var(--cloud);
}
.v10-hero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v10-verse-float-card {
  position: absolute;
  left: -8px;
  bottom: 0;
  width: min(392px, 88%);
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  padding: 16px 19px;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}
html[data-theme="dark"] .v10-verse-float-card {
  border-color: var(--border-strong);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.52);
}
.v10-vf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.v10-vf-ref {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v10-vf-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.v10-vf-pill {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v10-vf-pill:hover {
  border-color: #D97706;
  color: var(--ink);
}
.v10-vf-pill.active {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}
html[data-theme="dark"] .v10-vf-pill.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: #F59E0B;
  color: #FDE68A;
}
.v10-vf-quote {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.48;
  color: var(--ink);
}
.v10-vf-hl {
  display: inline;
  padding: 2px 8px;
  margin: 0 1px;
  border-radius: 8px;
  border: none;
  border-bottom: 2px solid #F59E0B;
  background: rgba(251, 191, 36, 0.28);
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.v10-vf-hl:hover {
  background: rgba(251, 191, 36, 0.44);
}
.v10-vf-note {
  padding: 11px 13px;
  border-radius: 14px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  font-size: 13.5px;
  line-height: 1.48;
  color: #334155;
}
html[data-theme="dark"] .v10-vf-note {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.32);
  color: #E2E8F0;
}
.v10-vf-note strong {
  color: var(--ink);
  font-weight: 800;
}
.v10-vf-more {
  display: inline-block;
  margin-left: 6px;
  color: #0F766E;
  font-weight: 800;
  white-space: nowrap;
}
html[data-theme="dark"] .v10-vf-more { color: #5EEAD4; }

@media (max-width: 960px) {
  .v10-hero-section { padding: 28px 0 52px; }
  .v10-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .v10-hero-copy { max-width: 100%; }
  .v10-hero-visual { padding-left: 0; padding-bottom: 0; }
  .v10-verse-float-card {
    position: relative;
    width: calc(100% - 20px);
    margin: -34px auto 0;
    z-index: 2;
  }
}

/* =========================================================================
   V10 SPACIOUS HOMEPAGE SECTIONS (3 CALM BANDS — ZERO BADGE SOUP)
   ========================================================================= */
.v10-home-band {
  padding: 72px 0;
}
.v10-home-band-soft {
  background: #F7F9FC;
}
html[data-theme="dark"] .v10-home-band-soft {
  background: #0D1628;
}
.v10-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.v10-sec-h2 {
  margin: 0;
  font-size: clamp(25px, 2.7vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
.v10-sec-sub {
  margin: 6px 0 0;
  font-size: 16px;
  color: var(--ink-muted);
}
.v10-sec-link {
  font-size: 15px;
  font-weight: 700;
  color: #0F766E;
  white-space: nowrap;
}
html[data-theme="dark"] .v10-sec-link { color: #5EEAD4; }
.v10-sec-link:hover { text-decoration: underline; }

/* Gentle, uncluttered category pills on Homepage */
.v10-quiet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.v10-quiet-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v10-quiet-tab:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
.v10-quiet-tab.cat-shelf-tab.active {
  background: #0F766E;
  border-color: #0F766E;
  color: #FFFFFF;
}

/* 3 Spacious Editorial Story Cards (No Pill Clutter!) */
.v10-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 900px) {
  .v10-three-grid { grid-template-columns: 1fr; gap: 24px; }
}
.v10-calm-story {
  display: flex;
  flex-direction: column;
  group: story;
}
.v10-calm-art {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cloud);
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.v10-calm-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}
.v10-calm-story:hover .v10-calm-art img {
  transform: scale(1.03);
}
.v10-calm-meta {
  font-size: 13px;
  font-weight: 600;
  color: #0F766E;
  margin-bottom: 6px;
}
html[data-theme="dark"] .v10-calm-meta { color: #5EEAD4; }
.v10-calm-title {
  margin: 0 0 8px;
  font-size: 19.5px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
  transition: color 0.15s ease;
}
.v10-calm-story:hover .v10-calm-title {
  color: #0F766E;
}
html[data-theme="dark"] .v10-calm-story:hover .v10-calm-title {
  color: #5EEAD4;
}
.v10-calm-hook {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3 Clean Illustrated Trail Cards on Homepage */
.v10-trail-home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.v10-trail-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}
.v10-thc-art {
  height: 168px;
  overflow: hidden;
  background: var(--cloud);
}
.v10-thc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v10-thc-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.v10-thc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.v10-thc-title {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 800;
  color: var(--ink);
}
.v10-thc-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-body);
  flex: 1;
}
.v10-thc-steps li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.v10-thc-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
  min-width: 14px;
}
.v10-thc-steps li.visited .v10-thc-num {
  color: #10B981;
}
.v10-thc-cta {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F766E;
}
html[data-theme="dark"] .v10-thc-cta { color: #5EEAD4; }

/* 3 Warm Doorway Cards (Section 3) */
.v10-doorway-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px 16px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.v10-doorway-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}
.v10-dw-art {
  height: 156px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--cloud);
}
.v10-dw-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v10-dw-body {
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.v10-dw-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}
.v10-dw-desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  flex: 1;
}
.v10-dw-link {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F766E;
}
html[data-theme="dark"] .v10-dw-link { color: #5EEAD4; }

/* =========================================================================
   V11 GRAPHIC-NOVEL CINEMA PALETTE (ZERO HOSPITAL MINT — TORCH GOLD & INK)
   ========================================================================= */
:root {
  --bg: #FAF8F4;
  --cloud: #F2EFE9;
  --surface: #FFFFFF;
  --surface-subtle: #F6F3ED;
  --ink: #12151C;
  --ink-body: #2C3342;
  --ink-muted: #5E6778;
  --border: #DDD7CB;
  --border-strong: #B8B0A0;

  --emerald: #B45309;
  --emerald-dark: #92400E;
  --emerald-soft: #FEF3C7;
  --coral: #B91C1C;
  --coral-soft: #FEE2E2;
  --indigo: #1E3A8A;
  --indigo-soft: #E0E7FF;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --sky: #0369A1;
  --sky-soft: #E0F2FE;
  --violet: #92400E;
  --violet-soft: #FEF3C7;

  --w-main: #B45309;
  --w-soft: #FEF3C7;
  --panel-frame: 1.5px solid #1A1E29;
  --font-display: var(--font-sans);
}

html[data-theme="dark"] {
  --bg: #0A0D13;
  --cloud: #10151F;
  --surface: #141A26;
  --surface-subtle: #1A2232;
  --ink: #F8F5EE;
  --ink-body: #CBD5E1;
  --ink-muted: #94A3B8;
  --border: #232C3F;
  --border-strong: #35425E;

  --emerald: #F59E0B;
  --emerald-dark: #D97706;
  --emerald-soft: rgba(245, 158, 11, 0.15);
  --coral: #EF4444;
  --coral-soft: rgba(239, 68, 68, 0.15);
  --indigo: #60A5FA;
  --indigo-soft: rgba(96, 165, 250, 0.15);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --sky: #38BDF8;
  --sky-soft: rgba(56, 189, 248, 0.15);
  --violet: #FBBF24;
  --violet-soft: rgba(251, 191, 36, 0.15);

  --w-main: #F59E0B;
  --w-soft: rgba(245, 158, 11, 0.15);
  --panel-frame: 1.5px solid rgba(245, 158, 11, 0.28);
}

[data-world="genesis-and-origins"],
[data-world="hard-sayings-and-paradoxes"],
[data-world="angels-demons-and-monsters"],
[data-world="lost-books-and-scrolls"],
[data-world="jesus-and-first-century-history"],
[data-world="revelation-and-end-times"] {
  --w-main: var(--emerald);
  --w-soft: var(--emerald-soft);
}

.read-progress {
  background: linear-gradient(90deg, #B45309, #F59E0B, #FDE68A);
}

/* =========================================================================
   OFFICIAL @UNREADSCRIPTURE SCROLL CREST + CINZEL WORDMARK
   ========================================================================= */
.site-topbar {
  background: rgba(250, 248, 244, 0.94);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-topbar {
  background: rgba(10, 13, 19, 0.94);
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
}
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.v11-brand-crest {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #080A0E;
  border: 1.5px solid rgba(245, 158, 11, 0.62);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.22);
  flex-shrink: 0;
}
.v11-brand-wordmark {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
@media (max-width: 520px) {
  .topbar-brand { gap: 8px; }
  .v11-brand-crest { width: 32px; height: 32px; border-radius: 8px; }
  .v11-brand-wordmark { font-size: 15px; }
  .v11-theme-btn { width: 34px; height: 34px; }
}

.nav-link[aria-current="page"] {
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid rgba(217, 119, 6, 0.35);
}
html[data-theme="dark"] .nav-link[aria-current="page"] {
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.v11-theme-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}
.v11-theme-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* =========================================================================
   GRAPHIC-NOVEL HERO & INKED PANEL FRAMES
   ========================================================================= */
.v10-hero-section {
  background: linear-gradient(180deg, #F5F1E8 0%, #FAF8F4 100%);
}
html[data-theme="dark"] .v10-hero-section {
  background: radial-gradient(ellipse at 72% 38%, rgba(217, 119, 6, 0.11) 0%, rgba(10, 13, 19, 0) 60%),
              linear-gradient(180deg, #0D1119 0%, #0A0D13 100%);
}
.v11-hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}
.v10-btn-primary, .btn-primary-pill {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFBEB !important;
  border: 1px solid rgba(253, 230, 138, 0.35);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.30);
}
.v10-btn-primary:hover, .btn-primary-pill:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.42);
}
.v10-link-quiet:hover {
  color: var(--emerald);
  border-bottom-color: var(--emerald);
}

/* Crisp Graphic-Novel Ink Frames Around All Video Art */
.v10-hero-art-frame,
.v10-calm-art,
.article-hero-media,
.inline-story-figure img,
.story-art-wrap,
.v10-dw-art {
  border: var(--panel-frame);
}
.v10-hero-art-frame {
  border-radius: 20px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}
.v10-calm-art, .story-art-wrap {
  border-radius: 16px;
}
.article-hero-media {
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
}
.v10-verse-float-card {
  border-radius: 18px;
  border: 1.5px solid var(--border-strong);
}
html[data-theme="dark"] .v10-verse-float-card {
  background: rgba(20, 26, 38, 0.96);
  backdrop-filter: blur(10px);
  border-color: rgba(245, 158, 11, 0.36);
}
.v10-vf-more,
.v10-sec-link,
.v10-calm-meta,
.v10-thc-cta,
.v10-dw-link,
.section-more-link,
.inline-story-link {
  color: var(--emerald) !important;
}
.v10-calm-story:hover .v10-calm-title {
  color: var(--emerald) !important;
}
.v10-quiet-tab.cat-shelf-tab.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}
.v10-home-band-soft {
  background: var(--cloud);
}

/* =========================================================================
   ARTICLE PAGE REFINEMENT (KILL MINT BOXES & CHEAP PILLS — GRAPHIC NOVEL CRAFT)
   ========================================================================= */
.article-world-badge {
  background: var(--emerald-soft) !important;
  color: var(--emerald) !important;
  border: 1px solid rgba(217, 119, 6, 0.32);
}
.art-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.art-action-pill:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}
.quick-answer-box {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF6E4 100%) !important;
  border: 1px solid #E6C98F !important;
  border-left: 4px solid #D97706 !important;
  border-radius: 16px !important;
}
html[data-theme="dark"] .quick-answer-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, rgba(20, 26, 38, 0.95) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  border-left: 4px solid #F59E0B !important;
}
.qa-label {
  font-family: var(--font-sans);
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  color: var(--emerald) !important;
}

/* Clean Minimal Step Badges */
.step-big-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  color: var(--ink) !important;
  font-family: var(--font-sans);
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.verse-callout-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-left: 3.5px solid var(--emerald) !important;
  border-radius: 14px !important;
}
.verse-callout-ref {
  color: var(--emerald) !important;
}
.active-trail-banner {
  background: linear-gradient(135deg, #121722 0%, #192030 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
}
.abar-eyebrow {
  color: #FBBF24 !important;
}
.abar-next-btn {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  color: #FFFBEB !important;
  border: 1px solid rgba(253, 230, 138, 0.35);
}
.abar-step-pill.current span {
  background: #D97706 !important;
  color: #FFFBEB !important;
}

/* =========================================================================
   V12 10-TOOL DIRECTORY (/tools/) & STANDALONE TOOL SHELLS
   ========================================================================= */
.v12-tdir-section {
  margin-bottom: 52px;
}
.v12-tdir-head {
  margin-bottom: 22px;
}
.v12-tdir-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}
.v12-tdir-head p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-muted);
}
.v12-tdir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 920px) {
  .v12-tdir-grid { grid-template-columns: 1fr; }
}
.v12-tool-dir-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.v12-tool-dir-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}
.v12-tdc-art {
  position: relative;
  height: 156px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.v12-tdc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v12-tdc-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 13, 19, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FDE68A;
  font-size: 11.5px;
  font-weight: 700;
}
.v12-tdc-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.v12-tdc-body h3 {
  margin: 0 0 8px;
  font-size: 18.5px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
}
.v12-tdc-body p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  flex: 1;
}

/* Shared Tool Shell & Controls */
.v12-tool-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 28px;
}
@media (max-width: 640px) {
  .v12-tool-shell { padding: 18px 16px; }
}
.v12-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.v12-cat-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v12-cat-tab:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
.v12-cat-tab.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}
.v12-presets-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.v12-strip-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-right: 4px;
}
.v12-preset-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cloud);
  color: var(--ink-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v12-preset-chip:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}
.v12-preset-chip.active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald);
}
.v12-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v12-field > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

/* 1. Biblical Units Converter */
.v12-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .v12-calc-grid { grid-template-columns: 1fr; }
}
.v12-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.v12-big-num-input {
  font-size: 24px !important;
  font-weight: 800 !important;
  height: 52px !important;
}
.v12-unit-meta-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--cloud);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
}
.v12-res-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 540px) {
  .v12-res-cards { grid-template-columns: 1fr; }
}
.v12-res-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
.v12-res-box.primary {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--emerald-soft);
}
.v12-res-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.v12-res-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.v12-res-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.v12-scale-box, .v12-context-banner {
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--cloud);
  border: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 12px;
}

/* 2. Reading Plan Generator */
.v12-plan-controls, .v12-tf-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 920px) {
  .v12-plan-controls, .v12-tf-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .v12-plan-controls, .v12-tf-controls { grid-template-columns: 1fr; }
}
.v12-plan-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 780px) {
  .v12-plan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.v12-stat-tile {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
.v12-stat-tile span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.v12-stat-tile strong { display: block; font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.v12-plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.v12-prog-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 13.5px;
  font-weight: 700;
}
.v12-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}
@media (max-width: 760px) {
  .v12-plan-list { grid-template-columns: 1fr; }
}
.v12-plan-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--cloud);
  border: 1px solid var(--border);
  cursor: pointer;
}
.v12-plan-row.done {
  opacity: 0.68;
  border-color: rgba(245, 158, 11, 0.35);
}
.v12-plan-row input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: #D97706;
}
.v12-pr-day { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.v12-pr-read { font-size: 15px; font-weight: 700; color: var(--ink); }
@media print {
  .site-topbar, .site-footer, .v12-plan-controls, .v12-plan-toolbar, .hub-hero { display: none !important; }
  .v12-plan-list { max-height: none !important; overflow: visible !important; }
}

/* 3. Translation Finder */
.v12-spectrum-card {
  padding: 18px 22px 26px;
  border-radius: 16px;
  background: var(--cloud);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.v12-spec-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.v12-spec-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3B82F6 0%, #F59E0B 50%, #10B981 100%);
  margin: 14px 12px 8px;
}
.v12-spec-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.v12-spec-dot.top-pick {
  background: #D97706;
  border-color: #FDE68A;
  color: #FFFBEB;
  z-index: 3;
}
.v12-tf-matches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 820px) {
  .v12-tf-matches { grid-template-columns: 1fr; }
}
.v12-tf-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
.v12-tf-card.rank-1 {
  border: 1.5px solid #F59E0B;
}
.v12-sub-divider {
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.v12-sub-divider h3 { margin: 0; font-size: 20px; color: var(--ink); }
.v12-verse-comp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .v12-verse-comp-grid { grid-template-columns: 1fr; }
}

/* 4. Interactive Family Tree */
.v12-ft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.v12-ft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 920px) {
  .v12-ft-layout { grid-template-columns: 1fr; }
}
.v12-ft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 560px) {
  .v12-ft-grid { grid-template-columns: 1fr; }
}
.v12-ft-node {
  text-align: left;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--cloud);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.v12-ft-node:hover {
  border-color: var(--emerald);
}
.v12-ft-node.active {
  border: 1.5px solid #F59E0B;
  background: var(--emerald-soft);
}
.v12-ft-node.path-hit {
  box-shadow: inset 3px 0 0 #F59E0B;
}
.v12-ftn-gen { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-muted); }
.v12-ftn-name { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 2px 0; }
.v12-ftn-ref { display: block; font-size: 12px; color: var(--emerald); font-weight: 600; }

.v12-ft-inspector {
  position: sticky;
  top: 92px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--cloud);
  border: 1.5px solid var(--border-strong);
}
.v12-fti-gen { font-size: 12px; font-weight: 700; color: var(--emerald); text-transform: uppercase; letter-spacing: 0.04em; }
.v12-fti-name { margin: 4px 0 6px; font-size: 22px; font-weight: 800; color: var(--ink); }
.v12-fti-heb { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 700; color: var(--ink-body); margin-bottom: 14px; }
.v12-fti-dl { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.v12-fti-dl div { display: grid; grid-template-columns: 115px 1fr; gap: 8px; }
.v12-fti-dl dt { font-weight: 700; color: var(--ink-muted); }
.v12-fti-dl dd { margin: 0; color: var(--ink); }
.v12-fti-note { font-size: 14.5px; line-height: 1.55; color: var(--ink-body); margin: 0 0 14px; }

/* 5. Interactive Timeline */
.v12-tl-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v12-tl-card {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
@media (max-width: 720px) {
  .v12-tl-card { grid-template-columns: 1fr; gap: 10px; }
}
.v12-tl-date {
  font-size: 17px;
  font-weight: 800;
  color: var(--emerald);
}
.v12-tl-emp {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.v12-tl-book {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}
.v12-tl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .v12-tl-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   V13 FLAGSHIP VISUAL & INTERACTIVE TOOLS UPGRADE
   ========================================================================= */

/* Shared Top Controls & Legends */
[hidden] {
  display: none !important;
}
.ft13-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ft13-legend, .cn13-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}
.ft13-legend span, .cn13-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ft13-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

/* 1. VISUAL SVG BRANCHING FAMILY TREE (#v13-visual-tree-app) */
.ft13-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1100px) {
  .ft13-main-split { grid-template-columns: 1fr; }
}
.ft13-canvas-scroll {
  overflow-x: auto;
  border-radius: 18px;
  background: var(--cloud);
  border: 1px solid var(--border);
  padding: 8px;
}
.ft13-stage {
  position: relative;
  width: 100%;
  min-width: 780px;
}
.ft13-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.ft13-edge {
  fill: none;
  stroke: rgba(148, 163, 184, 0.34);
  stroke-width: 2.2;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}
.ft13-edge.edge-trunk {
  stroke: rgba(245, 158, 11, 0.5);
  stroke-width: 2.6;
}
.ft13-edge.edge-matt {
  stroke: rgba(245, 158, 11, 0.72);
  stroke-width: 2.8;
}
.ft13-edge.edge-luke {
  stroke: rgba(56, 189, 248, 0.72);
  stroke-width: 2.8;
}
.ft13-edge.lit {
  stroke: #F59E0B !important;
  stroke-width: 4 !important;
  opacity: 1 !important;
}
.ft13-edge.lit-luke {
  stroke: #38BDF8 !important;
  stroke-width: 4 !important;
  opacity: 1 !important;
}
.ft13-edge.dim {
  opacity: 0.14;
}
.ft13-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 158px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.18s ease, box-shadow 0.15s ease;
}
.ft13-node:hover {
  border-color: #F59E0B;
  z-index: 3;
}
.ft13-node strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
}
.ft13-node span {
  display: block;
  font-size: 10.5px;
  line-height: 1.22;
  color: var(--ink-muted);
  margin-top: 2px;
}
.ft13-node.grp-trunk { border-color: rgba(245, 158, 11, 0.55); }
.ft13-node.grp-matt { border-color: #F59E0B; background: rgba(245, 158, 11, 0.10); }
.ft13-node.grp-luke { border-color: #38BDF8; background: rgba(56, 189, 248, 0.10); }
.ft13-node.lit {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.26), 0 8px 20px rgba(0, 0, 0, 0.26);
}
.ft13-node.lit-luke {
  border-color: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.26), 0 8px 20px rgba(0, 0, 0, 0.26);
}
.ft13-node.active {
  border-width: 2px;
  border-color: #FDE68A;
  background: var(--emerald-soft);
  transform: translate(-50%, -50%) scale(1.04);
  z-index: 5;
}
.ft13-node.dim {
  opacity: 0.24;
}
.ft13-explain-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.ft13-explain-box > strong { color: var(--ink); display: block; margin-bottom: 4px; }
.ft13-explain-box p { margin: 0; }

/* 2. CALIBRATED GANTT TIMELINE (#v13-gantt-app) */
.gt13-axis-hdr {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-strong);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted);
}
.gt13-ticks {
  position: relative;
  height: 18px;
}
.gt13-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.gt13-ticks span:first-child { transform: none; }
.gt13-ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 780px) {
  .gt13-axis-hdr { grid-template-columns: 1fr; }
  .gt13-col-lbl { display: none; }
}
.gt13-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 18px;
}
.gt13-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--cloud);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gt13-row:hover { border-color: var(--emerald); }
.gt13-row.active {
  border: 1.5px solid #F59E0B;
  background: var(--emerald-soft);
}
@media (max-width: 780px) {
  .gt13-row { grid-template-columns: 1fr; gap: 8px; }
}
.gt13-r-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.gt13-r-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.gt13-track {
  position: relative;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 20.83%, rgba(148,163,184,0.12) 20.83%, rgba(148,163,184,0.12) calc(20.83% + 1px), transparent calc(20.83% + 1px)),
    linear-gradient(90deg, transparent 41.67%, rgba(148,163,184,0.12) 41.67%, rgba(148,163,184,0.12) calc(41.67% + 1px), transparent calc(41.67% + 1px)),
    linear-gradient(90deg, transparent 58.92%, rgba(245,158,11,0.18) 58.92%, rgba(245,158,11,0.18) calc(58.92% + 1px), transparent calc(58.92% + 1px)),
    linear-gradient(90deg, transparent 83.33%, rgba(56,189,248,0.22) 83.33%, rgba(56,189,248,0.22) calc(83.33% + 1px), transparent calc(83.33% + 1px)),
    var(--surface);
  border: 1px solid var(--border);
}
.gt13-bar-set {
  position: absolute;
  top: 5px;
  height: 9px;
  min-width: 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.38);
  border: 1px solid #F59E0B;
}
.gt13-bar-wr {
  position: absolute;
  bottom: 5px;
  height: 9px;
  min-width: 8px;
  border-radius: 4px;
  background: #38BDF8;
}
.gt13-pin-ms {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  margin-top: -5.5px;
  background: #10B981;
  border: 1.5px solid #ECFDF5;
  transform: rotate(45deg);
  z-index: 2;
}
.gt13-detail-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--cloud);
  border: 1.5px solid var(--border-strong);
}
.gt13-det-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
@media (max-width: 720px) {
  .gt13-det-grid { grid-template-columns: 1fr; }
}
.gt13-det-box {
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
}
.gt13-det-box span { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-muted); margin-bottom: 2px; }
.gt13-det-box strong { color: var(--ink); }

/* 3. VISUAL 81-BOOK CANON EXPLORER (#v13-canon-app) */
.cn13-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .cn13-controls { grid-template-columns: 1fr; }
  .cn13-vs-badge { display: none; }
}
.cn13-vs-badge {
  height: 44px;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-muted);
}
.cn13-tally-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 680px) {
  .cn13-tally-bar { grid-template-columns: 1fr; }
}
.cn13-legend { margin-bottom: 18px; }
.cn-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.cn-dot.both { background: rgba(16, 185, 129, 0.25); border: 1.5px solid #10B981; }
.cn-dot.only-b { background: rgba(245, 158, 11, 0.25); border: 1.5px solid #F59E0B; }
.cn-dot.only-a { background: rgba(56, 189, 248, 0.25); border: 1.5px solid #38BDF8; }
.cn-dot.neither { background: rgba(148, 163, 184, 0.1); border: 1px dashed rgba(148, 163, 184, 0.4); }

.cn13-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .cn13-main-split { grid-template-columns: 1fr; }
}
.cn13-shelf { margin-bottom: 18px; }
.cn13-shelf-title {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 8px;
}
.cn13-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
}
.cn13-tile {
  padding: 10px 11px;
  border-radius: 11px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.14s ease, opacity 0.18s ease, border-color 0.14s ease;
}
.cn13-tile strong { display: block; font-size: 14px; font-weight: 800; }
.cn13-tile span { display: block; font-size: 11px; color: var(--ink-muted); margin-top: 2px; line-height: 1.25; }
.cn13-tile.st-both { background: rgba(16, 185, 129, 0.11); border: 1.5px solid rgba(16, 185, 129, 0.55); }
.cn13-tile.st-only-b { background: rgba(245, 158, 11, 0.15); border: 1.5px solid #F59E0B; }
.cn13-tile.st-only-a { background: rgba(56, 189, 248, 0.15); border: 1.5px solid #38BDF8; }
.cn13-tile.st-neither { background: var(--cloud); border: 1px dashed var(--border-strong); opacity: 0.55; }
.cn13-tile.dim { opacity: 0.2; }
.cn13-tile.active { box-shadow: 0 0 0 2px #FDE68A; transform: translateY(-2px); opacity: 1 !important; }

/* 4. UPGRADED UNITS CONVERTER (#u13-app) */
.u13-dir-switch {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
.u13-dir-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.u13-dir-btn.active {
  background: var(--emerald-soft);
  color: var(--emerald);
}
.u13-svg-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--cloud);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.u13-svg-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.u13-svg-hdr strong { font-size: 14px; color: var(--ink); }
.u13-svg-hdr span { font-size: 12px; color: var(--ink-muted); }
.u13-svg-stage svg {
  width: 100%;
  height: auto;
  display: block;
}
.u13-matrix-wrap {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.u13-matrix-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.u13-matrix-hdr h3 { margin: 0; font-size: 17px; color: var(--ink); }
.u13-matrix-hdr span { font-size: 12.5px; color: var(--ink-muted); }
.u13-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 10px;
}
.u13-m-cell {
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--cloud);
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.u13-m-cell:hover, .u13-m-cell.active {
  border-color: #F59E0B;
  background: var(--emerald-soft);
}
.u13-m-cell strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.u13-m-cell span { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

/* 5. UPGRADED READING PLAN STUDIO (#p13-app) & TRANSLATION PILLS (#tf13-app) */
.p13-builder-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.p13-control-row-3 {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.75fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .p13-control-row-3 { grid-template-columns: 1fr; }
}
.p13-lbl {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.p13-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p13-pill {
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--cloud);
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}
.p13-pill:hover { border-color: var(--emerald); color: var(--ink); }
.p13-pill.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
  font-weight: 700;
}
.p13-custom-secs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
@media (max-width: 780px) {
  .p13-custom-secs { grid-template-columns: 1fr; }
}
.p13-sec-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.p13-sec-check em { font-style: normal; color: var(--ink-muted); font-size: 12px; }
.p13-mini-chips { display: flex; gap: 5px; }
.p13-mini-chips button {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cloud);
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.p13-mini-chips button.active {
  border-color: #F59E0B;
  color: var(--emerald);
  background: var(--emerald-soft);
}
.p13-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.p13-slider-row input[type="range"] {
  flex: 1;
  accent-color: #D97706;
}
.p13-spotlight-bar {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--cloud);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .p13-spotlight-bar { grid-template-columns: 68px minmax(0, 1fr); }
  .p13-spot-actions { grid-column: 1 / -1; }
}
.p13-ring-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p13-ring-wrap strong {
  position: absolute;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.p13-spot-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--emerald);
}
.p13-spot-reading {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 2px 0;
}
.p13-spot-sub { font-size: 13px; color: var(--ink-muted); }

/* Translation Matcher Pills & Word-Diff Highlights */
.tf13-q-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin-bottom: 22px;
}
@media (max-width: 820px) {
  .tf13-q-grid { grid-template-columns: 1fr; }
}
button.v12-spec-dot {
  cursor: pointer;
}
button.v12-spec-dot:hover {
  border-color: #F59E0B;
  z-index: 4;
}
mark.v13-diff-hl {
  background: rgba(245, 158, 11, 0.22);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 5px;
  border-bottom: 2px solid #F59E0B;
  font-weight: 700;
}
mark.v13-diff-alt {
  background: rgba(148, 163, 184, 0.16);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 5px;
  border-bottom: 2px solid #64748B;
  font-weight: 600;
}

/* 6. SMART GEMATRIA (#gem13-app) */
.gem13-inp-wrap {
  display: flex;
  gap: 10px;
}
.gem13-smart-banner {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--emerald-soft);
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.gem13-readout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .gem13-readout-grid { grid-template-columns: 1fr; }
}
.gem13-tiles-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
#gem13-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#gem13-tiles .gem-tile {
  min-width: 54px;
  height: 64px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
#gem13-tiles .gem-tile strong {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
}
#gem13-tiles .gem-tile span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--emerald);
}
.gem13-box-lbl {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.gem13-scores-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gem13-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gem13-mini-stats > div {
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--cloud);
  border: 1px solid var(--border);
}
.gem13-mini-stats span { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-muted); }
.gem13-mini-stats strong { display: block; font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.gem13-conc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.gem13-conc-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cloud);
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gem13-conc-card:hover { border-color: #F59E0B; transform: translateY(-2px); }
.gem13-cc-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.gem13-cc-top strong { font-size: 22px; font-weight: 800; color: var(--emerald); }
.gem13-cc-top span { font-size: 15px; font-weight: 700; color: var(--ink); }
.gem13-cc-title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.gem13-conc-card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }

/* 7. BESPOKE SVG AFTERLIFE MAP (#map13-app) */
.map13-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 340px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px) {
  .map13-split { grid-template-columns: 1fr; }
}
.map13-svg-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0A0D13;
}
.map13-svg { width: 100%; height: auto; display: block; }
.m13-zone { opacity: 0.78; transition: opacity 0.18s ease; }
.m13-zone:hover, .m13-zone.active { opacity: 1; }
.m13-zone.active > rect { stroke-width: 3.2px; }
.m13-diff-pair {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* 8. X-RAY QUICKBAR, QUIZ DOTS & TOOL FAQ BLOCK */
.xr13-quickbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.qz13-dots-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.qz13-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--cloud);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.qz13-dot.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}
.v13-tool-faq-wrap {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* =========================================================================
   V14 HUMAN-FIRST ILLUSTRATED INTERACTIVE STAGE SYSTEM
   ========================================================================= */

.v14-stage {
  background: linear-gradient(180deg, #151B26 0%, #0E121A 100%);
  border: 1px solid rgba(251, 191, 36, 0.20);
  border-radius: 24px;
  padding: 32px 34px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}
html:not([data-theme="dark"]) .v14-stage {
  background: #FFFFFF;
  border-color: rgba(180, 83, 9, 0.22);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}
@media (max-width: 680px) {
  .v14-stage { padding: 20px 16px; border-radius: 18px; }
}

.v14-plain-how {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 72ch;
}
.v14-micro-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v14-sub-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.v14-sub-hdr {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.v14-inline-hint {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-right: 4px;
}
.v14-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.v14-chip-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.v14-soft-chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
html:not([data-theme="dark"]) .v14-soft-chip {
  background: #F8F5EE;
}
.v14-soft-chip:hover {
  border-color: #F59E0B;
  color: var(--ink);
}
.v14-soft-chip.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}

/* 1. UNITS CONVERTER — SEGMENTED BAR, GIANT EQUATION, SILHOUETTES & ART CARDS */
.v14-seg-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.v14-seg-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(10, 13, 19, 0.65);
  border: 1px solid var(--border-strong);
}
html:not([data-theme="dark"]) .v14-seg-bar {
  background: #F3EFE6;
}
.v14-seg-btn {
  padding: 9px 18px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v14-seg-btn:hover { color: var(--ink); }
.v14-seg-btn.active {
  background: #D97706;
  color: #FFFBEB;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.v14-eq-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 0.95fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
@media (max-width: 860px) {
  .v14-eq-card { grid-template-columns: 1fr; text-align: center; }
  .v14-swap-circle { margin: 0 auto; }
}
.v14-eq-side {
  padding: 18px 22px;
  border-radius: 20px;
  min-height: 120px;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 560px) {
  .v14-eq-side { padding: 15px 14px; }
}
.v14-eq-left {
  background: rgba(10, 13, 19, 0.72);
  border: 1.5px solid var(--border-strong);
}
html:not([data-theme="dark"]) .v14-eq-left {
  background: #FAF8F3;
}
.v14-eq-right {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.20) 0%, rgba(217, 119, 6, 0.06) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
}
.v14-eq-inp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 6px;
}
@media (max-width: 560px) {
  .v14-eq-inp-row { flex-direction: column; align-items: stretch; }
}
.v14-giant-num {
  width: 145px;
  height: 54px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  background: var(--surface);
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
}
@media (max-width: 560px) {
  .v14-giant-num { width: 100%; text-align: center; }
}
.v14-clean-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 54px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
}
.v14-unit-hint {
  font-size: 13px;
  color: var(--ink-muted);
}
.v14-swap-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid #F59E0B;
  background: rgba(217, 119, 6, 0.18);
  color: #FDE68A;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.15s ease;
}
html:not([data-theme="dark"]) .v14-swap-circle { color: #B45309; }
.v14-swap-circle:hover {
  transform: rotate(180deg);
  background: #D97706;
  color: #FFFBEB;
}
.v14-giant-ans {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 6px 0 4px;
}
.v14-ans-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
}
.v14-wage-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.v14-wage-inline input {
  width: 90px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.v14-visual-panel {
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(10, 13, 19, 0.55);
  border: 1px solid var(--border);
}
html:not([data-theme="dark"]) .v14-visual-panel {
  background: #FAF8F3;
}
.v14-vp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.v14-vp-head strong { font-size: 16px; color: var(--ink); }
.v14-vp-head span { font-size: 12.5px; color: var(--ink-muted); }
.v14-silhouette-box svg {
  width: 100%;
  height: auto;
  display: block;
}
html:not([data-theme="dark"]) .v14-silhouette-box svg text {
  fill: #1E293B !important;
}
.v14-story-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-body);
}

.v14-ex-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 960px) {
  .v14-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .v14-ex-grid { grid-template-columns: 1fr; }
}
.v14-ex-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 15px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.v14-ex-card:hover {
  transform: translateY(-2px);
  border-color: #F59E0B;
}
.v14-ex-card.active {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
.v14-ex-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}
.v14-ex-txt {
  padding: 10px 12px 12px;
}
.v14-ex-txt strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.v14-ex-txt span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* 2. GEMATRIA SELF-TEACHING VISUAL EQUATION */
.v14-puzzle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 920px) {
  .v14-puzzle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .v14-puzzle-grid { grid-template-columns: 1fr; }
}
.v14-puzzle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: rgba(10, 13, 19, 0.55);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
}
html:not([data-theme="dark"]) .v14-puzzle-card { background: #FAF8F3; }
.v14-puzzle-card:hover, .v14-puzzle-card.active {
  border-color: #F59E0B;
  background: rgba(217, 119, 6, 0.13);
}
.v14-pz-num {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #F59E0B;
  line-height: 1;
}
.v14-puzzle-card strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.v14-puzzle-card div > span { display: block; font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; }

.v14-search-bar-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.v14-name-input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border-radius: 15px;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  background: rgba(10, 13, 19, 0.72);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 560px) {
  .v14-name-input { font-size: 16px; padding: 0 12px; }
  .v14-clear-pill { padding: 0 14px; }
}
html:not([data-theme="dark"]) .v14-name-input { background: #FAF8F3; }
.v14-clear-pill {
  height: 54px;
  padding: 0 20px;
  border-radius: 15px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  font-weight: 700;
  cursor: pointer;
}
.v14-smart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 13px;
  background: rgba(217, 119, 6, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
}

.v14-math-stage {
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(10, 13, 19, 0.62);
  border: 1px solid var(--border-strong);
}
html:not([data-theme="dark"]) .v14-math-stage { background: #FAF8F3; }
.v14-math-equation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.v14-letter-tablet {
  min-width: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid rgba(245, 158, 11, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.v14-lt-char {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}
.v14-lt-sound {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 3px 0 2px;
}
.v14-lt-val {
  font-size: 14px;
  font-weight: 800;
  color: #F59E0B;
}
.v14-math-op {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-muted);
  padding: 0 2px;
}
.v14-total-tablet {
  margin-left: 6px;
  padding: 12px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.26) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 2px solid #F59E0B;
  text-align: center;
}
.v14-total-tablet span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
}
.v14-total-tablet strong {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}
.v14-math-explain {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-body);
}

/* 3. HUMAN 3-STEP READING PLAN BUILDER */
.v14-steps-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 960px) {
  .v14-steps-3 { grid-template-columns: 1fr; }
}
.v14-step-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(10, 13, 19, 0.55);
  border: 1px solid var(--border);
}
html:not([data-theme="dark"]) .v14-step-box { background: #FAF8F3; }
.v14-step-num {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #F59E0B;
  margin-bottom: 12px;
}
.v14-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v14-choice-btn {
  padding: 11px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}
.v14-choice-btn:hover { border-color: #F59E0B; }
.v14-choice-btn.active {
  border-color: #F59E0B;
  background: rgba(217, 119, 6, 0.15);
}
.v14-choice-btn strong { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.v14-choice-btn span { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.v14-date-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.v14-clean-date {
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.v14-today-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.50);
  margin-bottom: 22px;
}
.v14-th-left { flex: 1; min-width: 250px; }
.v14-th-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; color: var(--emerald); }
.v14-th-title { margin: 4px 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.v14-th-meta { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 10px; }
.v14-prog-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
  max-width: 380px;
}
.v14-prog-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #D97706, #FBBF24);
  transition: width 0.25s ease;
}
.v14-th-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
@media (max-width: 680px) {
  .v14-th-actions { align-items: stretch; width: 100%; }
}
.v14-export-row { display: flex; gap: 8px; flex-wrap: wrap; }
.v14-weeks-stack { display: flex; flex-direction: column; gap: 12px; }
.v14-week-group {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(10, 13, 19, 0.45);
  overflow: hidden;
}
html:not([data-theme="dark"]) .v14-week-group { background: #FAF8F3; }
.v14-week-Group-sum {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.v14-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}
@media (max-width: 720px) {
  .v14-week-grid { grid-template-columns: 1fr; }
}

/* 4. TRANSLATION MATCHER — 4 BIG GOAL CARDS + WINNER SPOTLIGHT */
.v14-goal-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 960px) {
  .v14-goal-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .v14-goal-4 { grid-template-columns: 1fr; }
}
.v14-goal-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: rgba(10, 13, 19, 0.55);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
html:not([data-theme="dark"]) .v14-goal-card { background: #FAF8F3; }
.v14-goal-card:hover { border-color: #F59E0B; }
.v14-goal-card.active {
  border-color: #F59E0B;
  background: rgba(217, 119, 6, 0.15);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}
.v14-goal-card strong { display: block; font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.v14-goal-card span { display: block; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }

.v14-filter-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.v14-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-body);
  cursor: pointer;
}
.v14-check-pill input { accent-color: #D97706; width: 15px; height: 15px; }

.v14-winner-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 860px) {
  .v14-winner-grid { grid-template-columns: 1fr; }
}
.v14-winner-primary {
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.20) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 2px solid #F59E0B;
}
.v14-winner-runner {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(10, 13, 19, 0.55);
  border: 1px solid var(--border-strong);
}
html:not([data-theme="dark"]) .v14-winner-runner { background: #FAF8F3; }
.v14-spectrum-box {
  padding: 16px 20px 24px;
  border-radius: 16px;
  background: rgba(10, 13, 19, 0.50);
  border: 1px solid var(--border);
}
html:not([data-theme="dark"]) .v14-spectrum-box { background: #FAF8F3; }

/* 5. ILLUSTRATED CUTAWAY MAP, PORTRAIT FAMILY TREE & BOOKSHELF */
.v14-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 360px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1020px) {
  .v14-map-layout { grid-template-columns: 1fr; }
}
.v14-cutaway-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(251, 191, 36, 0.32);
  background: #07090D;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.v14-cutaway-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.v14-horizon-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 13, 19, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #FDE68A;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 560px) {
  .v14-horizon-pill { display: none; }
}
.v14-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(10, 13, 19, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #F8FAFC;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.v14-map-pin:hover {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: #F59E0B;
}
.v14-map-pin.active {
  background: #D97706;
  border-color: #FDE68A;
  color: #FFFBEB;
  transform: translate(-50%, -50%) scale(1.07);
  z-index: 3;
}
.v14-pin-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #F59E0B;
  color: #1C1304;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.v14-map-pin.active .v14-pin-dot {
  background: #FFFBEB;
}
.v14-pin-lbl {
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .v14-pin-lbl { font-size: 11px; }
}

.v14-bio-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 13, 19, 0.72);
  border: 1.5px solid var(--border-strong);
  padding: 22px 24px;
}
html:not([data-theme="dark"]) .v14-bio-card { background: #FAF8F3; }
.v14-bio-card.sticky-bio {
  position: sticky;
  top: 90px;
  padding: 0;
}
.v14-bio-art {
  position: relative;
  height: 168px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.v14-bio-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v14-bio-era-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 13, 19, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FDE68A;
  font-size: 11.5px;
  font-weight: 800;
}
.v14-bio-pad { padding: 20px 22px 24px; }
.v14-bio-title { margin: 4px 0 8px; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.v14-bio-desc { font-size: 14.5px; line-height: 1.6; color: var(--ink-body); margin: 0 0 14px; }
.v14-versus-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.v14-vs-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.v14-vs-row.modern { border-color: rgba(245, 158, 11, 0.45); }
.v14-vs-row span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.v14-vs-row.modern span { color: var(--emerald); }
.v14-vs-row p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }

/* Family Tree Era Ribbons & Search */
.v14-mini-search {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  min-width: 235px;
}
.v14-tree-scroll {
  background: radial-gradient(circle at 50% 12%, rgba(217, 119, 6, 0.07), transparent 55%), rgba(10, 13, 19, 0.65);
}
html:not([data-theme="dark"]) .v14-tree-scroll {
  background: #FAF8F3;
}
.v14-tree-era {
  position: absolute;
  left: 16px;
  z-index: 1;
  pointer-events: none;
}
.v14-tree-era span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(217, 119, 6, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--emerald);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Canon 4 Cards & Full-Title Book Spines */
.v14-canon-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 940px) {
  .v14-canon-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .v14-canon-4 { grid-template-columns: 1fr; }
}
.v14-trad-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: rgba(10, 13, 19, 0.55);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
html:not([data-theme="dark"]) .v14-trad-card { background: #FAF8F3; }
.v14-trad-card:hover { border-color: #F59E0B; }
.v14-trad-card.active {
  border-color: #F59E0B;
  background: rgba(217, 119, 6, 0.16);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}
.v14-tc-num {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #F59E0B;
  line-height: 1;
}
.v14-trad-card strong { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.v14-trad-card div > span { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.v14-shared-core-pill {
  padding: 12px 16px;
  border-radius: 13px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 13.5px;
  color: var(--ink-body);
  margin-bottom: 20px;
}
.v14-spine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 640px) {
  .v14-spine-grid { grid-template-columns: 1fr; }
}
.v14-book-spine {
  padding: 13px 15px 13px 17px;
  border-radius: 13px;
  border: 1px solid var(--border);
  border-left: 5px solid #475569;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v14-book-spine.included {
  border-color: rgba(245, 158, 11, 0.45);
  border-left: 5px solid #F59E0B;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.14) 0%, rgba(217, 119, 6, 0.02) 100%);
}
.v14-book-spine.excluded {
  opacity: 0.46;
}
.v14-book-spine.selected {
  box-shadow: 0 0 0 2px #FDE68A;
  opacity: 1 !important;
}
.v14-bs-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.v14-bs-top strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.v14-bs-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
.v14-book-spine.included .v14-bs-badge { background: rgba(245, 158, 11, 0.22); color: #FDE68A; }
html:not([data-theme="dark"]) .v14-book-spine.included .v14-bs-badge { color: #92400E; }
.v14-book-spine.excluded .v14-bs-badge { background: rgba(148, 163, 184, 0.14); color: var(--ink-muted); }
.v14-book-spine > span { display: block; font-size: 12.5px; color: var(--ink-muted); }

/* Self-Labeled Timeline Spotlight & Bars */
.v14-tl-spotlight {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 13, 19, 0.68);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
}
html:not([data-theme="dark"]) .v14-tl-spotlight { background: #FAF8F3; }
@media (max-width: 760px) {
  .v14-tl-spotlight { grid-template-columns: 1fr; }
}
.v14-tl-spotlight img {
  width: 100%;
  height: 100%;
  min-height: 165px;
  object-fit: cover;
}
.v14-tls-body { padding: 18px 20px 18px 0; }
@media (max-width: 760px) {
  .v14-tls-body { padding: 0 18px 18px; }
}
.v14-tl-track {
  position: relative;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.v14-tl-pill-wr {
  position: absolute;
  top: 7px;
  height: 22px;
  min-width: 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, #D97706, #F59E0B);
}
.v14-tl-ms-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 999px;
  background: #38BDF8;
  border: 2px solid #FFF;
  z-index: 2;
}
.v14-tl-inline-lbl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-muted);
  white-space: nowrap;
  pointer-events: none;
}

/* =========================================================================
   CLEAN OVERRIDES FOR X-RAY & QUIZ (ELIMINATE HOSPITAL-TEAL & NEON PURPLE!)
   ========================================================================= */
.workbench-shell {
  background: linear-gradient(180deg, #151B26 0%, #0E121A 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.20) !important;
  border-radius: 24px !important;
  padding: 28px 30px !important;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42) !important;
}
.workbench-shell > .wb-panel {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.qz13-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html:not([data-theme="dark"]) .workbench-shell {
  background: #FFFFFF !important;
}
.xr-col-kjv {
  background: rgba(15, 20, 30, 0.75) !important;
  border: 1px solid var(--border-strong) !important;
}
.xr-col-kjv .xr-col-lbl { color: #94A3B8 !important; }
.xr-col-mod {
  background: rgba(20, 27, 40, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}
.xr-col-mod .xr-col-lbl { color: #7DD3FC !important; }
.xr-col-orig {
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.22) 0%, rgba(120, 53, 15, 0.14) 100%) !important;
  border: 1.5px solid #F59E0B !important;
  color: var(--ink) !important;
}
.xr-col-orig .xr-col-lbl { color: #FDE68A !important; }
html:not([data-theme="dark"]) .xr-col-kjv,
html:not([data-theme="dark"]) .xr-col-mod {
  background: #FAF8F3 !important;
}
html:not([data-theme="dark"]) .xr-col-orig .xr-col-lbl { color: #92400E !important; }
.xr-col-orig .xr-heb-big, .xr-col-orig .xr-lit-txt { color: var(--ink) !important; }

.v14-quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.quiz-progress-fill {
  background: linear-gradient(90deg, #D97706, #FBBF24) !important;
}
.quiz-stage-card {
  max-width: 820px;
  margin: 0 auto;
}
.quiz-opt-btn {
  font-size: 15.5px !important;
  padding: 16px 20px !important;
  border-radius: 15px !important;
  border: 1.5px solid var(--border-strong) !important;
}
.quiz-opt-btn:hover {
  border-color: #F59E0B !important;
}

/* =========================================================================
   V17 CLEAN 3-TOOL DIRECTORY & PAGE SHELL (ZERO FAKE APP CHROME)
   ========================================================================= */
.v17-page-head {
  padding: 28px 0 18px;
}
.v17-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.v17-tool-Select-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.v17-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.v17-switch-pill:hover {
  border-color: #F59E0B;
  color: var(--ink);
}
.v17-switch-pill.active {
  background: rgba(217, 119, 6, 0.20);
  border-color: #F59E0B;
  color: #FDE68A;
}
html:not([data-theme="dark"]) .v17-switch-pill.active {
  background: #FEF3C7;
  color: #92400E;
}

.v17-hub-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 960px) {
  .v17-hub-grid-3 { grid-template-columns: 1fr; }
}
.v17-hub-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.v17-hub-card:hover {
  transform: translateY(-4px);
  border-color: #F59E0B;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}
.v17-hc-art {
  height: 190px;
  overflow: hidden;
  background: #090D14;
}
.v17-hc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v17-hc-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.v17-hc-body h2 {
  margin: 4px 0 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.v17-hc-body p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-body);
  flex: 1;
}

.v17-tool-wrap {
  padding-bottom: 48px;
}
.v17-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F59E0B;
}

/* =========================================================================
   TOOL 1: ANCIENT MEASUREMENTS & MONEY CONVERTER (#u17-app)
   ========================================================================= */
.v17-cat-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.v17-cat-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}
.v17-cat-btn:hover { border-color: #F59E0B; color: var(--ink); }
.v17-cat-btn.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}

.v17-conv-panel {
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #141B27 0%, #0E131C 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.28);
  margin-bottom: 22px;
}
html:not([data-theme="dark"]) .v17-conv-panel {
  background: #FFFFFF;
  border-color: rgba(180, 83, 9, 0.25);
}
@media (max-width: 640px) {
  .v17-conv-panel { padding: 16px; }
}

.v17-conv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .v17-conv-grid { grid-template-columns: 1fr; }
}

.v17-conv-box {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(9, 12, 18, 0.60);
  border: 1px solid var(--border-strong);
  min-width: 0;
}
html:not([data-theme="dark"]) .v17-conv-box {
  background: #FAF8F3;
}
.v17-conv-box.result {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.16) 0%, rgba(15, 23, 36, 0.65) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.50);
}
html:not([data-theme="dark"]) .v17-conv-box.result {
  background: #FFFBEB;
}

.v17-box-lbl {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.v17-inp-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.v17-num-inp {
  width: 135px;
  max-width: 100%;
  height: 54px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}
.v17-unit-sel {
  flex: 1;
  min-width: 190px;
  max-width: 100%;
  height: 54px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}
.v17-unit-def {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.v17-swap-btn {
  align-self: center;
  justify-self: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid #F59E0B;
  background: rgba(217, 119, 6, 0.18);
  color: #FDE68A;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
html:not([data-theme="dark"]) .v17-swap-btn { color: #92400E; background: #FEF3C7; }
.v17-swap-btn:hover { transform: rotate(180deg); background: rgba(217, 119, 6, 0.34); }

.v17-big-result {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}
.v17-sub-result {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--emerald);
}

.v17-money-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
}
@media (max-width: 520px) {
  .v17-money-dual { grid-template-columns: 1fr; }
}
.v17-md-item {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.v17-md-item span { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--ink-muted); }
.v17-md-item strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); margin: 2px 0; }
.v17-md-item em { display: block; font-style: normal; font-size: 12px; color: var(--ink-muted); }

.v17-wage-tweak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-muted);
}
.v17-wage-tweak input {
  width: 96px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

/* Horizontal Real-World Benchmark Bars */
.v17-bench-panel,
.v17-examples-panel {
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  .v17-bench-panel, .v17-examples-panel { padding: 16px; }
}
.v17-section-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.v17-section-hdr h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.v17-section-hdr span {
  font-size: 13px;
  color: var(--ink-muted);
}

.v17-bars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.v17-bar-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 125px;
  gap: 14px;
  align-items: center;
}
@media (max-width: 720px) {
  .v17-bar-row { grid-template-columns: 1fr; gap: 4px; }
}
.v17-br-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-body);
}
.v17-bar-row.highlight .v17-br-lbl {
  color: #F59E0B;
  font-weight: 800;
}
html:not([data-theme="dark"]) .v17-bar-row.highlight .v17-br-lbl { color: #B45309; }
.v17-br-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}
.v17-br-fill {
  height: 100%;
  border-radius: 999px;
  background: #64748B;
  transition: width 0.25s ease;
}
.v17-bar-row.highlight .v17-br-fill {
  background: linear-gradient(90deg, #D97706, #FBBF24);
}
.v17-br-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  text-align: right;
}
@media (max-width: 720px) {
  .v17-br-val { text-align: left; margin-bottom: 6px; }
}

.v17-story-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 15px;
  background: rgba(217, 119, 6, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.38);
  margin-bottom: 18px;
}
.v17-story-callout strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.v17-story-callout p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 74ch;
}
.v17-story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 11px;
  background: #D97706;
  color: #FFFBEB;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.v17-story-btn:hover { background: #B45309; }
.v17-story-btn.full { width: 100%; margin-top: 14px; }

.v17-ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 10px;
}
.v17-ex-card {
  padding: 13px 15px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: rgba(9, 12, 18, 0.45);
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}
html:not([data-theme="dark"]) .v17-ex-card { background: #FAF8F3; }
.v17-ex-card:hover { border-color: #F59E0B; }
.v17-ex-card.active {
  border-color: #F59E0B;
  background: rgba(217, 119, 6, 0.16);
}
.v17-ex-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.v17-ex-top strong { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.v17-ex-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #FDE68A;
  white-space: nowrap;
}
html:not([data-theme="dark"]) .v17-ex-badge { color: #92400E; }
.v17-ex-verse { display: block; font-size: 12px; color: var(--ink-muted); }

/* =========================================================================
   TOOL 2: INTERACTIVE GEOGRAPHIC WORLD MAP (#wm17-app)
   ========================================================================= */
.v17-map-toolbar {
  margin-bottom: 12px;
}
.v17-journey-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.v17-journey-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}
.v17-journey-btn:hover { border-color: #F59E0B; color: var(--ink); }
.v17-journey-btn.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}

.v17-map-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.v17-cam-group,
.v17-map-right-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v17-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.v17-mini-btn:hover { border-color: #F59E0B; color: var(--ink); }
.v17-mini-btn.active {
  border-color: #F59E0B;
  background: rgba(217, 119, 6, 0.18);
  color: var(--emerald);
}
.v17-toggle-lbl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-body);
  cursor: pointer;
}
.v17-toggle-lbl input { accent-color: #D97706; }
.v17-search-inp {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  min-width: 225px;
  max-width: 100%;
}

.v17-journey-banner {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(217, 119, 6, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.42);
  margin-bottom: 14px;
}
.v17-journey-banner strong { font-size: 15px; color: var(--ink); margin-right: 10px; }
.v17-jb-miles {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  color: #FDE68A;
  font-size: 12px;
  font-weight: 800;
}
html:not([data-theme="dark"]) .v17-jb-miles { color: #92400E; }
.v17-journey-banner p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-body); }

.v17-map-split,
.v17-tree-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1020px) {
  .v17-map-split, .v17-tree-split { grid-template-columns: 1fr; }
}

.v17-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 640;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background: #08111E;
  cursor: grab;
  user-select: none;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.v17-map-stage:active { cursor: grabbing; }
html:not([data-theme="dark"]) .v17-map-stage {
  background: #CFE2F3;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}
.v17-map-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wm17-ocean { fill: #08111E; }
html:not([data-theme="dark"]) .wm17-ocean { fill: #D4E6F6; }

.wm17-land {
  fill: #1A2333;
  stroke: #334155;
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .wm17-land {
  fill: #F5EFE2;
  stroke: #B8AD96;
}

.wm17-border {
  fill: none;
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 0.9;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .wm17-border {
  stroke: rgba(100, 116, 139, 0.42);
}

.wm17-lake {
  fill: #0C1B2E;
  stroke: #38BDF8;
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .wm17-lake {
  fill: #B8D9F3;
  stroke: #0284C7;
}

.wm17-river {
  fill: none;
  stroke: rgba(56, 189, 248, 0.62);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .wm17-river {
  stroke: rgba(2, 132, 199, 0.65);
}

.wm17-html-clbl {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(203, 213, 225, 0.48);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
  pointer-events: none;
}
html:not([data-theme="dark"]) .wm17-html-clbl {
  color: rgba(71, 85, 105, 0.62);
}
.wm17-html-wlbl {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(56, 189, 248, 0.72);
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
}
html:not([data-theme="dark"]) .wm17-html-wlbl {
  color: rgba(3, 105, 161, 0.75);
}

.wm17-water-lbl {
  fill: rgba(56, 189, 248, 0.36);
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-anchor: middle;
  pointer-events: none;
}
html:not([data-theme="dark"]) .wm17-water-lbl {
  fill: rgba(3, 105, 161, 0.48);
}

.wm17-route-line {
  fill: none;
  stroke: #F59E0B;
  stroke-width: 3;
  stroke-dasharray: 7 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.55));
}

.wm17-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.wm17-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.88);
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  color: #F8FAFC;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  transition: background 0.14s ease, border-color 0.14s ease;
}
.wm17-pin.dot-only {
  padding: 0;
  width: 13px;
  height: 13px;
  justify-content: center;
  background: #F59E0B;
  border: 2px solid #FFFBEB;
}
.wm17-pin:hover {
  border-color: #FDE68A;
  z-index: 6;
}
.wm17-pin.active {
  background: #D97706;
  border-color: #FFFBEB;
  color: #FFFBEB;
  z-index: 8;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.38), 0 8px 20px rgba(0, 0, 0, 0.65);
}
.wm17-p-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #F59E0B;
  color: #1C1304;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wm17-pin.active .wm17-p-dot {
  background: #FFFBEB;
}
.wm17-drag-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
@media (max-width: 600px) {
  .wm17-pin { font-size: 10px; padding: 2px 7px 2px 3px; }
  .wm17-drag-hint { display: none; }
}

/* Shared Right-Hand Inspector Card */
.v17-inspector {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
}
.v17-inspector.sticky-ins {
  position: sticky;
  top: 90px;
}
.v17-ins-title {
  margin: 4px 0 12px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.v17-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.v17-meta-row {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(9, 12, 18, 0.45);
  border: 1px solid var(--border);
}
html:not([data-theme="dark"]) .v17-meta-row { background: #FAF8F3; }
.v17-meta-row span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.v17-meta-row strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.v17-ins-desc-box {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(217, 119, 6, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.30);
}
.v17-ins-desc-box span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F59E0B;
  margin-bottom: 4px;
}
.v17-ins-desc-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-body);
}

/* =========================================================================
   TOOL 3: SPACIOUS ADAM-TO-JESUS FAMILY TREE (#ft17-app)
   ========================================================================= */
.ft17-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.ft17-dot.gold { background: #F59E0B; }
.ft17-dot.blue { background: #38BDF8; }

.ft17-viewport {
  position: relative;
  height: 680px;
  overflow: auto;
  border-radius: 20px;
  border: 1.5px solid var(--border-strong);
  background: radial-gradient(circle at 50% 10%, rgba(217, 119, 6, 0.07), transparent 55%), #0B1019;
}
html:not([data-theme="dark"]) .ft17-viewport {
  background: #FAF8F3;
}
.ft17-zoom-controls {
  position: sticky;
  top: 12px;
  left: 12px;
  z-index: 9;
  display: inline-flex;
  gap: 6px;
  padding: 12px 0 0 12px;
}
.ft17-stage-scaler {
  transform-origin: 0 0;
}
.ft17-stage {
  position: relative;
}
.ft17-svg {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.ft17-edge {
  fill: none;
  stroke: rgba(148, 163, 184, 0.38);
  stroke-width: 2.2;
  transition: stroke 0.18s ease, stroke-width 0.18s ease, opacity 0.18s ease;
}
.ft17-edge.edge-trunk,
.ft17-edge.edge-matt { stroke: rgba(245, 158, 11, 0.55); }
.ft17-edge.edge-luke { stroke: rgba(56, 189, 248, 0.55); }
.ft17-edge.lit-gold { stroke: #F59E0B !important; stroke-width: 3.6; opacity: 1 !important; }
.ft17-edge.lit-blue { stroke: #38BDF8 !important; stroke-width: 3.6; opacity: 1 !important; }
.ft17-edge.dim { opacity: 0.16; }

.ft17-era-divider {
  position: absolute;
  left: 24px;
  right: 24px;
  border-top: 1px dashed rgba(245, 158, 11, 0.30);
  padding-top: 6px;
  pointer-events: none;
}
.ft17-era-divider span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ft17-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 202px;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1.5px solid var(--border-strong);
  background: #141B27;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, opacity 0.18s ease, box-shadow 0.14s ease;
}
html:not([data-theme="dark"]) .ft17-node {
  background: #FFFFFF;
}
.ft17-node.grp-trunk,
.ft17-node.grp-matt { border-color: rgba(245, 158, 11, 0.45); }
.ft17-node.grp-luke { border-color: rgba(56, 189, 248, 0.48); }
.ft17-node:hover {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: #F59E0B;
  z-index: 4;
}
.ft17-node.active {
  border-color: #FDE68A !important;
  background: #231A0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.36);
  z-index: 5;
  opacity: 1 !important;
}
html:not([data-theme="dark"]) .ft17-node.active {
  background: #FEF3C7;
  border-color: #D97706 !important;
}
.ft17-node.lit-gold { border-color: #F59E0B; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25); }
.ft17-node.lit-blue { border-color: #38BDF8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.28); }
.ft17-node.dim { opacity: 0.28; }

.ft17-node strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.ft17-node span {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.2;
}
.ft17-role-sub {
  margin: -6px 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald);
}

/* =========================================================================
   V18 COMPACT HEADER & SHARED STUDIO TOKENS
   ========================================================================= */
:root {
  --ocean-mid: #D8E9F8;
  --ocean-deep: #BDD7EF;
}
html[data-theme="dark"] {
  --ocean-mid: #0C1B30;
  --ocean-deep: #060E1A;
}

.v18-compact-head {
  padding: 18px 0 12px;
}
.v18-ch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.v18-ch-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.v18-ch-h1 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}
.v18-ch-sub {
  font-size: 14px;
  color: var(--ink-muted);
}

.v18-tool-wrap {
  padding-bottom: 44px;
}

/* =========================================================================
   V18 TOOLS HUB CARDS WITH MINI LIVE GRAPHIC PREVIEWS
   ========================================================================= */
.v18-hc-preview {
  position: relative;
  height: 196px;
  overflow: hidden;
  background: #08101C;
  border-bottom: 1px solid var(--border);
}
.v18-hc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.35s ease;
}
.v17-hub-card:hover .v18-hc-preview img {
  transform: scale(1.04);
}
.v18-hc-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}
.v18-hc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.v18-hc-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--emerald);
  font-size: 11.5px;
  font-weight: 700;
}

/* =========================================================================
   TOOL 1 (V18): ILLUSTRATED CONVERTER, SILHOUETTE BARS & BLUEPRINTS
   ========================================================================= */
.v18-presets-rail-wrap {
  margin-bottom: 16px;
}
.v18-rail-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.v18-cat-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.v18-cat-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.v18-cat-pill.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}
.v18-presets-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 1060px) {
  .v18-presets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .v18-presets-grid { grid-template-columns: 1fr; }
}
.v18-preset-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px 6px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
  min-width: 0;
}
.v18-preset-chip:hover { border-color: #F59E0B; transform: translateY(-1px); }
.v18-preset-chip.active {
  border-color: #F59E0B;
  background: rgba(217, 119, 6, 0.16);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}
.v18-preset-chip img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.v18-preset-chip strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v18-preset-chip span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v18-conv-shell {
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #141B27 0%, #0E131C 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.30);
  margin-bottom: 18px;
}
html:not([data-theme="dark"]) .v18-conv-shell {
  background: #FFFFFF;
  border-color: rgba(180, 83, 9, 0.24);
}
@media (max-width: 640px) { .v18-conv-shell { padding: 14px; } }

.v18-goliath-toggle {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(245, 158, 11, 0.35);
}
.v18-goliath-toggle > span {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #F59E0B;
  margin-bottom: 7px;
}
.v18-gt-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.v18-ancient-basket {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.v18-lower-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 370px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px) {
  .v18-lower-split { grid-template-columns: 1fr; }
}

.v18-bar-row {
  display: grid;
  grid-template-columns: 32px 195px minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
}
@media (max-width: 720px) {
  .v18-bar-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .v18-bar-row .v17-br-track { grid-column: 1 / -1; margin-bottom: 6px; }
}
.v18-bar-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
html:not([data-theme="dark"]) .v18-bar-ico { background: #FAF8F3; }
.v18-bar-row.highlight .v18-bar-ico {
  background: rgba(245, 158, 11, 0.18);
  border-color: #F59E0B;
}
.v18-bar-ico svg { width: 20px; height: 20px; }

.v18-context-card,
.v18-atlas-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
}
.v18-cc-art {
  position: relative;
  height: 162px;
  overflow: hidden;
  background: #090D14;
  border-bottom: 1px solid var(--border);
}
.v18-cc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v18-cc-verse {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 13, 20, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FDE68A;
  font-size: 11px;
  font-weight: 800;
}
.v18-cc-body,
.v18-atlas-body {
  padding: 18px 20px 20px;
}
.v18-cc-body h3 {
  margin: 0 0 10px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.v18-cc-body p,
.v18-atlas-desc {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-body);
}

.v18-blueprint {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.30);
  margin-bottom: 12px;
}
.v18-bp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.v18-bp-grid span { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--ink-muted); }
.v18-bp-grid strong { display: block; font-size: 15px; font-weight: 800; color: #38BDF8; }
html:not([data-theme="dark"]) .v18-bp-grid strong { color: #0369A1; }
.v18-blueprint em { display: block; text-align: center; font-style: normal; font-size: 11.5px; color: var(--ink-muted); margin-top: 6px; }

/* =========================================================================
   TOOL 2 (V18): MUSEUM-GRADE FULL-BLEED INTERACTIVE ATLAS (#wm18-app)
   ========================================================================= */
.v18-journey-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.v18-journey-strip {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.v18-j-tab {
  padding: 8px 14px;
  border-radius: 11px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}
.v18-j-tab:hover { border-color: #F59E0B; color: var(--ink); }
.v18-j-tab.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}

.v18-map-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1040px) {
  .v18-map-split { grid-template-columns: 1fr; }
}

.v18-map-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.28);
  background: var(--ocean-deep);
  cursor: grab;
  user-select: none;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
}
.wm18-canvas-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 640;
}
.v18-map-stage:active { cursor: grabbing; }
html:not([data-theme="dark"]) .v18-map-stage {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.wm18-canvas-box svg#wm18-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wm18-grat {
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .wm18-grat {
  stroke: rgba(15, 23, 42, 0.08);
}
.wm18-land {
  fill: #1C2637;
  stroke: #475569;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .wm18-land {
  fill: #F6F0E3;
  stroke: #B2A58C;
}
.wm18-river {
  fill: none;
  stroke: rgba(56, 189, 248, 0.75);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .wm18-river {
  stroke: rgba(2, 132, 199, 0.75);
}

@keyframes wm18DashFlow {
  to { stroke-dashoffset: -28; }
}
.wm18-route-arc {
  fill: none;
  stroke: #F59E0B;
  stroke-width: 3.2;
  stroke-dasharray: 8 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
  animation: wm18DashFlow 1.6s linear infinite;
}
.wm18-measure-arc {
  fill: none;
  stroke: #38BDF8;
  stroke-width: 2.6;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.55));
}

/* Floating Translucent Glass HUD inside the Map (Top-Right over empty northeast corner!) */
.wm18-hud-tr {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  pointer-events: none;
}
.wm18-float-search {
  pointer-events: auto;
  height: 34px;
  width: 245px;
  max-width: 100%;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 14, 26, 0.82);
  backdrop-filter: blur(8px);
  color: #F8FAFC;
  font-size: 12.5px;
  font-weight: 600;
}
.wm18-float-search::placeholder { color: #94A3B8; }
html:not([data-theme="dark"]) .wm18-float-search {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(15, 23, 42, 0.18);
  color: #0F172A;
}

.wm18-hud-pills {
  pointer-events: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wm18-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 14, 26, 0.80);
  backdrop-filter: blur(8px);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
html:not([data-theme="dark"]) .wm18-chip {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.18);
  color: #1E293B;
}
.wm18-chip.active {
  background: #D97706;
  border-color: #FDE68A;
  color: #FFFBEB;
}
.wm18-chip input { accent-color: #F59E0B; }

@media (max-width: 680px) {
  .wm18-hud-tr { position: static; padding: 10px; background: rgba(8, 14, 26, 0.95); border-bottom: 1px solid var(--border); }
  html:not([data-theme="dark"]) .wm18-hud-tr { background: #F5F1E8; }
  .wm18-scale-bar, .wm18-compass { display: none; }
}

.wm18-scale-bar {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 10;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(8, 14, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
html:not([data-theme="dark"]) .wm18-scale-bar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.16);
}
.wm18-scale-bar span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #F8FAFC;
  text-align: center;
  margin-bottom: 3px;
}
html:not([data-theme="dark"]) .wm18-scale-bar span { color: #0F172A; }
.wm18-scale-line {
  width: 84px;
  height: 5px;
  display: flex;
  border: 1.5px solid #F59E0B;
  border-top: 0;
}
.wm18-scale-line i { flex: 1; display: block; }
.wm18-scale-line i:first-child { background: rgba(245, 158, 11, 0.55); }

.wm18-hud-br {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wm18-zoom-pill {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(8, 14, 26, 0.86);
  backdrop-filter: blur(8px);
}
html:not([data-theme="dark"]) .wm18-zoom-pill {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.18);
}
.wm18-zoom-pill button {
  height: 32px;
  min-width: 34px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
html:not([data-theme="dark"]) .wm18-zoom-pill button {
  color: #0F172A;
  border-right-color: rgba(15, 23, 42, 0.12);
}
.wm18-zoom-pill button:last-child { border-right: 0; }
.wm18-zoom-pill button:hover { background: rgba(245, 158, 11, 0.25); }

.wm18-tour-bar {
  padding: 12px 16px;
  background: rgba(217, 119, 6, 0.16);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}
.wm18-tb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.wm18-tb-top strong { font-size: 14px; color: var(--ink); }
.wm18-tb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wm18-tb-nav span { font-size: 12px; font-weight: 800; color: var(--ink-muted); }

.wm18-ruler-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.wm18-cmp-sel {
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  max-width: 175px;
}

/* =========================================================================
   TOOL 3 (V18): HIGH-LEGIBILITY FAMILY TREE & RELATIONSHIP FINDER (#ft18-app)
   ========================================================================= */
.v18-tree-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.v18-rel-bar {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(217, 119, 6, 0.11);
  border: 1.5px solid rgba(245, 158, 11, 0.40);
  margin-bottom: 14px;
}
.v18-rel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v18-rel-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.v18-rp-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.v18-rp-chip:hover { border-color: #F59E0B; color: var(--ink); }
.v18-rel-answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.ft18-wrap-rel {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.ft18-viewport {
  width: 100%;
  max-width: 100%;
  height: 670px;
  overflow: auto;
  border-radius: 20px;
  border: 1.5px solid var(--border-strong);
  background: radial-gradient(circle at 50% 8%, rgba(217, 119, 6, 0.08), transparent 55%), #0A0F18;
  cursor: grab;
  user-select: none;
}
.ft18-viewport:active { cursor: grabbing; }
html:not([data-theme="dark"]) .ft18-viewport { background: #FAF8F3; }

.ft17-edge.edge-priest { stroke: rgba(16, 185, 129, 0.55); }
.ft17-edge.lit-lca { stroke: #10B981 !important; stroke-width: 3.8; opacity: 1 !important; }

.ft18-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 188px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  border-left-width: 4px;
  background: #141C2A;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, opacity 0.18s ease, box-shadow 0.14s ease;
}
html:not([data-theme="dark"]) .ft18-node { background: #FFFFFF; }
.ft18-node.grp-trunk,
.ft18-node.grp-matt { border-left-color: #F59E0B; }
.ft18-node.grp-luke { border-left-color: #38BDF8; }
.ft18-node.grp-priest { border-left-color: #10B981; }
.ft18-node.grp-branch { border-left-color: #64748B; }
.ft18-node:hover {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: #F59E0B;
  z-index: 4;
}
.ft18-node.active {
  border-color: #FDE68A !important;
  background: #241A0A;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.36);
  z-index: 6;
  opacity: 1 !important;
}
html:not([data-theme="dark"]) .ft18-node.active {
  background: #FEF3C7;
  border-color: #D97706 !important;
}
.ft18-node.lit-gold { border-color: #F59E0B; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28); opacity: 1 !important; }
.ft18-node.lit-blue { border-color: #38BDF8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.32); opacity: 1 !important; }
.ft18-node.lit-lca  { border-color: #10B981 !important; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.42); opacity: 1 !important; z-index: 7; }
.ft18-node.dim { opacity: 0.45; }

.ft18-node strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.ft18-node span {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.2;
}

.ft18-rel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ft18-jump-chip {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.10);
  color: var(--emerald);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.ft18-jump-chip:hover { background: rgba(245, 158, 11, 0.24); }

/* =========================================================================
   V19 FOCUSED 3-PILLAR HEADER & CTA SYSTEM
   ========================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v19-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFBEB !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.v19-nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
@media (max-width: 860px) {
  .v19-nav-cta { display: none; }
}

.v19-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F59E0B;
  margin-bottom: 8px;
}
html:not([data-theme="dark"]) .v19-eyebrow {
  color: #B45309;
}

/* Shared Buttons */
.v19-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFBEB !important;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease;
  cursor: pointer;
}
.v19-btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.v19-btn-yt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 12px;
  background: #DC2626;
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.v19-btn-yt:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.v19-btn-yt-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid var(--border-strong);
  transition: border-color 0.14s ease, transform 0.14s ease, background 0.14s ease;
}
.v19-btn-yt-outline svg {
  color: #EF4444;
}
.v19-btn-yt-outline:hover {
  border-color: #EF4444;
  transform: translateY(-1px);
}
.v19-btn-lg {
  padding: 13px 22px;
  font-size: 15px;
}

/* =========================================================================
   V19 HERO & SOCIAL PROOF
   ========================================================================= */
.v19-hero-section {
  padding: 36px 0 48px;
}
.v19-hero-section .v10-hero-grid > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 720px) {
  .v19-hero-section { padding: 22px 0 36px; }
}
.v19-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--ink-body);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  max-width: 100%;
  line-height: 1.35;
  transition: border-color 0.15s ease;
}
@media (max-width: 480px) {
  .v19-channel-pill { font-size: 11.5px; padding: 6px 11px; }
}
html:not([data-theme="dark"]) .v19-channel-pill {
  background: #FFFFFF;
}
.v19-channel-pill:hover {
  border-color: #F59E0B;
}
.v19-channel-pill strong {
  color: var(--ink);
  font-weight: 800;
}
.v19-yt-red {
  display: inline-flex;
  color: #EF4444;
}
.v19-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.v19-proof-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.v19-proof-strip strong {
  color: var(--ink);
  font-weight: 800;
}
.v19-dot {
  opacity: 0.45;
}

/* =========================================================================
   V19 SECTION HEADERS & YOUTUBE CINEMA FILM CARDS
   ========================================================================= */
.v19-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.v19-sec-head > div:first-child {
  flex: 1 1 420px;
  max-width: 680px;
}
.v19-sec-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.v19-film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 980px) {
  .v19-film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .v19-film-grid { grid-template-columns: 1fr; }
}
.v19-film-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.v19-film-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
html:not([data-theme="dark"]) .v19-film-card:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}
.v19-fc-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.v19-fc-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080C13;
}
.v19-fc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s ease;
}
.v19-film-card:hover .v19-fc-media img {
  transform: scale(1.04);
}
.v19-play-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #FDE68A;
  font-size: 11.5px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.v19-play-pill-sm {
  padding: 4px 9px;
  font-size: 11px;
}
.v19-fc-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.v19-fc-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 6px;
}
.v19-fc-title {
  margin: 0 0 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--ink);
}
.v19-fc-hook {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v19-fc-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
  color: #F59E0B;
}
html:not([data-theme="dark"]) .v19-fc-cta {
  color: #B45309;
}

.v19-more-films-bar {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.v19-mf-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-muted);
  white-space: nowrap;
}
.v19-mf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v19-more-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--ink-body);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.14s ease, color 0.14s ease;
}
.v19-more-chip:hover {
  border-color: #F59E0B;
  color: var(--ink);
}
.v19-mc-dot {
  font-size: 9px;
  color: #F59E0B;
}

/* =========================================================================
   V19 LEAD MAGNET PDF SHOWCASE & EMAIL OPT-IN
   ========================================================================= */
.v19-fg-hero {
  padding: 30px 0 18px;
}
.v19-lm-card {
  padding: 36px 38px;
  border-radius: 24px;
  background: radial-gradient(circle at 18% 20%, rgba(217, 119, 6, 0.16), transparent 52%),
              linear-gradient(180deg, #131A26 0%, #0C1018 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.36);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}
html:not([data-theme="dark"]) .v19-lm-card {
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.14), transparent 52%),
              linear-gradient(180deg, #FFFDF8 0%, #F7F1E3 100%);
  border-color: rgba(180, 83, 9, 0.28);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}
@media (max-width: 720px) {
  .v19-lm-card { padding: 22px 18px; border-radius: 18px; }
}
.v19-lm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: center;
}
@media (max-width: 920px) {
  .v19-lm-grid { grid-template-columns: 1fr; gap: 26px; }
}

.v19-book-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 10px 8px;
}
@media (max-width: 640px) {
  .v19-book-stage { min-height: 280px; }
}
.v19-spread-sheet {
  position: absolute;
  width: 56%;
  max-width: 235px;
  right: 4%;
  top: 50%;
  transform: translateY(-48%) rotate(5.5deg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}
.v19-spread-sheet img,
.v19-cover-sheet img {
  width: 100%;
  height: auto;
  display: block;
}
.v19-cover-sheet {
  position: relative;
  z-index: 2;
  width: 62%;
  max-width: 262px;
  transform: translateX(-14%) rotate(-2.5deg);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.62);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.58);
}
.v19-pdf-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #FDE68A;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.v19-lm-h1 {
  margin: 0 0 10px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
}
.v19-lm-h2 {
  margin: 0 0 10px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(26px, 3vw, 35px);
  line-height: 1.14;
  font-weight: 700;
  color: var(--ink);
}
.v19-lm-sub {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-body);
}
.v19-lm-bullets {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v19-lm-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
}
.v19-lm-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #F59E0B;
  font-weight: 900;
}
html:not([data-theme="dark"]) .v19-lm-bullets li::before {
  color: #B45309;
}
.v19-lm-bullets strong {
  color: var(--ink);
}

.v19-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.v19-email-input {
  flex: 1 1 230px;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: rgba(8, 12, 20, 0.85);
  color: #F8FAFC;
  font-size: 15px;
  font-family: inherit;
}
html:not([data-theme="dark"]) .v19-email-input {
  background: #FFFFFF;
  color: #0F172A;
}
.v19-email-input:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}
.v19-submit-btn {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFBEB;
  font-size: 14.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.v19-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.v19-form-error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #F87171;
}
html:not([data-theme="dark"]) .v19-form-error {
  color: #DC2626;
}
.v19-form-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.v19-lm-alt {
  color: #F59E0B;
  font-weight: 700;
  text-decoration: none;
}
html:not([data-theme="dark"]) .v19-lm-alt {
  color: #B45309;
}

.v19-unlocked-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.48);
}
.v19-un-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.v19-un-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}
.v19-un-head strong {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 2px;
}
.v19-un-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-body);
}
.v19-un-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================================
   V19 DEDICATED /FREE-GUIDE/ CHAPTER GRID & YOUTUBE COMPANION
   ========================================================================= */
.v19-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .v19-toc-grid { grid-template-columns: 1fr; }
}
.v19-toc-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
}
@media (max-width: 480px) {
  .v19-toc-card { grid-template-columns: 1fr; }
}
.v19-toc-thumb {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  background: #0B0F17;
}
.v19-toc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.v19-toc-num {
  color: #F59E0B;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
html:not([data-theme="dark"]) .v19-toc-num { color: #B45309; }
.v19-ch-film {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #FCA5A5;
  font-size: 10.5px;
}
html:not([data-theme="dark"]) .v19-ch-film {
  background: #FEE2E2;
  color: #B91C1C;
}
.v19-toc-body h3 {
  margin: 0 0 5px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}
.v19-toc-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-muted);
}

.v19-yt-companion {
  padding: 28px 30px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================================================
   V19 END-OF-PAGE FUNNEL STRIP & EPISODES HUB CONTROLS
   ========================================================================= */
.v19-strip-band {
  padding: 28px 0 40px;
}
.v19-funnel-strip {
  padding: 22px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.14) 0%, rgba(15, 23, 42, 0.92) 60%);
  border: 1.5px solid rgba(245, 158, 11, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
html:not([data-theme="dark"]) .v19-funnel-strip {
  background: linear-gradient(135deg, #FFFBEB 0%, #F7F1E3 100%);
  border-color: rgba(180, 83, 9, 0.28);
}
.v19-fs-left {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 660px;
}
.v19-fs-thumb {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .v19-fs-thumb { display: none; }
  .v19-funnel-strip { padding: 18px; }
}
.v19-fs-title {
  margin: 0 0 5px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  line-height: 1.18;
  color: var(--ink);
}
.v19-fs-sub {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.5;
  color: var(--ink-body);
}
.v19-fs-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v19-sub-hero {
  padding: 32px 0 24px;
}
.v19-ep-search {
  width: 300px;
  max-width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.v19-ep-search:focus {
  outline: none;
  border-color: #F59E0B;
}
.v19-hub-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.v19-art-yt-pill {
  border-color: rgba(239, 68, 68, 0.45) !important;
}
.v19-art-yt-pill svg {
  color: #EF4444;
}

/* Focused 3-column Footer */
.v19-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 820px) {
  .v19-footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* =========================================================================
   V20 TOOL PAGE HEADER (SINGLE CLEAN SEGMENTED APP BAR)
   ========================================================================= */
:root {
  --gm-ocean-mid: #C2E1F7;
  --gm-ocean-deep: #A9D3F2;
  --gm-land: #F3EFE4;
  --gm-land-stroke: #C6BEB0;
  --gm-panel-bg: rgba(255, 255, 255, 0.96);
  --gm-pill-bg: #FFFFFF;
  --gm-dot-grid: rgba(15, 23, 42, 0.11);
}
html[data-theme="dark"] {
  --gm-ocean-mid: #11243D;
  --gm-ocean-deep: #091526;
  --gm-land: #1C2636;
  --gm-land-stroke: #33435C;
  --gm-panel-bg: rgba(16, 22, 34, 0.95);
  --gm-pill-bg: rgba(19, 27, 42, 0.94);
  --gm-dot-grid: rgba(148, 163, 184, 0.15);
}

.v20-tool-head {
  padding: 16px 0 14px;
}
.v20-th-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.v20-th-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.v20-th-title h1 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}
.v20-th-title span {
  font-size: 13.5px;
  color: var(--ink-muted);
}
.v20-app-switcher {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
}
.v20-sw-tab {
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.v20-sw-tab:hover {
  color: var(--ink);
}
.v20-sw-tab.active {
  background: #D97706;
  color: #FFFBEB;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.30);
}

/* =========================================================================
   TOOL 1 (V20): GOOGLE MAPS / APPLE MAPS BIBLICAL WORLD MAP (#gm20-app)
   ========================================================================= */
.gm20-app {
  padding-bottom: 24px;
}
.gm20-shell {
  position: relative;
  height: 660px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background: var(--gm-ocean-deep);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}
html:not([data-theme="dark"]) .gm20-shell {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.gm20-map-area {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.gm20-map-area:active { cursor: grabbing; }

.gm20-canvas-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gm20-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.gm20-grat {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .gm20-grat {
  stroke: rgba(15, 23, 42, 0.06);
}
.gm20-land {
  fill: var(--gm-land);
  stroke: var(--gm-land-stroke);
  stroke-width: 0.85;
  vector-effect: non-scaling-stroke;
}
.gm20-border {
  fill: none;
  stroke: rgba(148, 163, 184, 0.34);
  stroke-width: 0.9;
  stroke-dasharray: 3.5 2.5;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .gm20-border {
  stroke: rgba(71, 85, 105, 0.42);
}
.gm20-lake {
  fill: var(--gm-ocean-mid);
  stroke: rgba(56, 189, 248, 0.45);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
.gm20-river {
  fill: none;
  stroke: #38BDF8;
  stroke-opacity: 0.65;
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
html:not([data-theme="dark"]) .gm20-river {
  stroke: #3B82F6;
  stroke-opacity: 0.72;
}
.gm20-water-lbl {
  fill: rgba(148, 185, 224, 0.42);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-anchor: middle;
  pointer-events: none;
}
html:not([data-theme="dark"]) .gm20-water-lbl {
  fill: rgba(30, 64, 118, 0.46);
}
.gm20-route-arc {
  fill: none;
  stroke: #F59E0B;
  stroke-width: 3.5;
  stroke-dasharray: 9 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.45));
}
.gm20-measure-arc {
  fill: none;
  stroke: #3B82F6;
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.55));
}
.gm20-measure-glow {
  fill: none;
  stroke: rgba(147, 197, 253, 0.6);
  stroke-width: 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.gm20-mod-lbls,
.gm20-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gm20-clbl {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(203, 213, 225, 0.46);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}
html:not([data-theme="dark"]) .gm20-clbl {
  color: rgba(71, 85, 105, 0.62);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}
.gm20-wlbl {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(125, 211, 252, 0.72);
  white-space: nowrap;
}
html:not([data-theme="dark"]) .gm20-wlbl {
  color: rgba(29, 78, 216, 0.65);
}

/* Google / Apple Maps Teardrop Pins */
.gm20-pin {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform: translate(-11px, -24px);
  z-index: 4;
  transition: transform 0.15s ease;
}
.gm20-pin.lbl-left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 11px), -24px);
}
.gm20-pin:hover { z-index: 15; }
.gm20-pin.active { z-index: 20; }
.gm20-pin-drop {
  position: relative;
  width: 22px;
  height: 28px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}
.gm20-pin-drop svg {
  width: 22px;
  height: 28px;
  display: block;
}
.gm20-pin-num {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
}
.gm20-pin-lbl {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(11, 16, 26, 0.84);
  color: #F8FAFC;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  margin-top: -6px;
}
html:not([data-theme="dark"]) .gm20-pin-lbl {
  background: rgba(255, 255, 255, 0.94);
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}
.gm20-pin.active .gm20-pin-drop {
  transform: scale(1.22);
}
.gm20-pin.active .gm20-pin-lbl {
  background: #EA4335;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
  font-weight: 800;
}
.gm20-pin.dot-only {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #F59E0B;
  border: 2px solid #FFFFFF;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.gm20-pin.dot-only:hover {
  transform: translate(-50%, -50%) scale(1.35);
}

/* Floating Top Category Pills (Google Maps style, right of drawer) */
.gm20-top-pills {
  position: absolute;
  top: 14px;
  left: 374px;
  right: 16px;
  z-index: 25;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  transition: left 0.22s ease;
}
.gm20-top-pills::-webkit-scrollbar { display: none; }
.gm20-shell.drawer-collapsed .gm20-top-pills {
  left: 56px;
}
.gm20-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gm-pill-bg);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: all 0.14s ease;
}
html:not([data-theme="dark"]) .gm20-pill {
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}
.gm20-pill:hover {
  border-color: #F59E0B;
}
.gm20-pill.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}

/* Floating Bottom-Center Tour Stepper */
.gm20-tour-pill {
  position: absolute;
  bottom: 18px;
  left: calc(50% + 175px);
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gm-panel-bg);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}
.gm20-shell.drawer-collapsed .gm20-tour-pill {
  left: 50%;
}
.gm20-tour-nav,
.gm20-tour-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gm20-tour-nav:hover { border-color: #F59E0B; }
.gm20-tour-close { border: 0; background: transparent; color: var(--ink-muted); font-size: 13px; }
.gm20-tour-mid {
  text-align: center;
  line-height: 1.2;
  padding: 0 4px;
}
.gm20-tour-mid strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
}
.gm20-tour-mid span {
  font-size: 11px;
  color: var(--emerald);
  font-weight: 700;
}

/* Floating Bottom-Left Layers Tiles */
.gm20-layers-dock {
  position: absolute;
  bottom: 16px;
  left: 374px;
  z-index: 24;
  display: flex;
  gap: 8px;
  transition: left 0.22s ease;
}
.gm20-shell.drawer-collapsed .gm20-layers-dock {
  left: 16px;
}
.gm20-layer-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  height: 54px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: var(--gm-pill-bg);
  color: var(--ink-body);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.30);
  transition: all 0.14s ease;
}
html:not([data-theme="dark"]) .gm20-layer-tile {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
}
.gm20-layer-tile.active {
  border-color: #F59E0B;
  color: #F59E0B;
}
html:not([data-theme="dark"]) .gm20-layer-tile.active {
  color: #B45309;
  background: #FFFBEB;
}

/* Floating Bottom-Right Google Maps Zoom Stack + Scale Bar */
.gm20-controls-br {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 24;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.gm20-scale-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--gm-pill-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-body);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}
html:not([data-theme="dark"]) .gm20-scale-bar {
  border-color: rgba(15, 23, 42, 0.10);
}
.gm20-scale-tick {
  width: 68px;
  height: 5px;
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.gm20-ctrl-round {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gm-pill-bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.gm20-zoom-stack {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gm-pill-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
html:not([data-theme="dark"]) .gm20-ctrl-round,
html:not([data-theme="dark"]) .gm20-zoom-stack {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}
.gm20-zoom-stack button {
  width: 36px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gm20-zoom-stack button:first-child {
  border-bottom: 1px solid var(--border);
}
.gm20-zoom-stack button:hover,
.gm20-ctrl-round:hover {
  background: rgba(245, 158, 11, 0.14);
}

/* Google Maps Floating Left Search + Place Sheet Drawer */
.gm20-drawer {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: 348px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--gm-panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  transition: transform 0.22s ease;
}
html:not([data-theme="dark"]) .gm20-drawer {
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.16);
}
.gm20-shell.drawer-collapsed .gm20-drawer {
  transform: translateX(-360px);
}
.gm20-drawer-toggle {
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  width: 24px;
  height: 48px;
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 0;
  background: var(--gm-panel-bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
html:not([data-theme="dark"]) .gm20-drawer-toggle {
  border-color: rgba(15, 23, 42, 0.12);
}

.gm20-search-dock {
  position: relative;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.gm20-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
}
html:not([data-theme="dark"]) .gm20-search-box {
  background: #F8FAFC;
}
.gm20-search-box:focus-within {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.gm20-s-ico { color: var(--ink-muted); flex-shrink: 0; }
.gm20-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.gm20-dir-ico-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
html:not([data-theme="dark"]) .gm20-dir-ico-btn {
  background: #DBEAFE;
  color: #2563EB;
}
.gm20-dir-ico-btn:hover,
.gm20-dir-ico-btn.active {
  background: #2563EB;
  color: #FFFFFF;
}

.gm20-suggest {
  position: absolute;
  top: 58px;
  left: 12px;
  right: 12px;
  z-index: 40;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.gm20-sug-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.gm20-sug-item:last-child { border-bottom: 0; }
.gm20-sug-item:hover { background: rgba(245, 158, 11, 0.12); }
.gm20-sug-item strong { display: block; font-size: 13px; color: var(--ink); }
.gm20-sug-item small { display: block; font-size: 11px; color: var(--ink-muted); }

/* Directions Sub-Panel inside Drawer */
.gm20-dir-panel {
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.06);
  flex-shrink: 0;
}
.gm20-dir-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--ink);
}
.gm20-x-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 14px;
}
.gm20-x-btn:hover { background: rgba(148, 163, 184, 0.16); color: var(--ink); }
.gm20-dir-inputs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 34px;
}
.gm20-dir-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gm20-dot-o {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2.5px solid #60A5FA;
  flex-shrink: 0;
}
.gm20-dot-pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EA4335;
  flex-shrink: 0;
}
.gm20-dir-row select {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
}
.gm20-swap-dir {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}
.gm20-dir-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.gm20-dr-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gm20-dr-walk-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.14);
  color: #60A5FA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html:not([data-theme="dark"]) .gm20-dr-walk-ico { color: #2563EB; }
.gm20-dr-days {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.gm20-dr-miles {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Place Sheet Scroll Area */
.gm20-sheet-scroll {
  flex: 1;
  overflow-y: auto;
  border-radius: 0 0 16px 16px;
}
.gm20-sheet-photo {
  position: relative;
  height: 158px;
  overflow: hidden;
  background: #090D16;
}
.gm20-sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gm20-era-tag {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FDE68A;
  font-size: 11px;
  font-weight: 800;
}
.gm20-sheet-head {
  padding: 14px 16px 10px;
}
.gm20-sheet-head h2 {
  margin: 0 0 3px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}
.gm20-modern-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Classic Google Maps Circular 4-Button Action Bar */
.gm20-action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 14px 14px;
  border-bottom: 1px solid var(--border);
}
.gm20-act-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--ink-body);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.gm20-act-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}
html:not([data-theme="dark"]) .gm20-act-circle {
  background: #FFFBEB;
  color: #B45309;
  border-color: rgba(180, 83, 9, 0.24);
}
.gm20-act-btn.primary .gm20-act-circle {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}
.gm20-act-btn:hover .gm20-act-circle {
  transform: translateY(-1px);
  border-color: #F59E0B;
}

/* Divider-Separated Detail Rows */
.gm20-info-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.gm20-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.gm20-row-ico {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}
.gm20-row-k {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.gm20-info-row strong {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}
.gm20-info-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.54;
  color: var(--ink-body);
}

.gm20-nearby-sec {
  padding: 12px 16px 16px;
}
.gm20-nearby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.gm20-near-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.gm20-near-chip:hover { border-color: #F59E0B; }
.gm20-near-chip small { color: var(--ink-muted); font-weight: 600; margin-left: 3px; }

/* Mobile Apple-Maps Bottom-Sheet Stacking (<= 880px) */
@media (max-width: 880px) {
  .gm20-shell {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .gm20-map-area {
    height: 360px;
  }
  .gm20-top-pills {
    left: 10px;
    right: 10px;
    top: 10px;
  }
  .gm20-layers-dock {
    left: 10px;
    bottom: 10px;
  }
  .gm20-controls-br {
    right: 10px;
    bottom: 10px;
  }
  .gm20-scale-bar { display: none; }
  .gm20-tour-pill {
    left: 50%;
    bottom: 72px;
  }
  .gm20-drawer {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--border);
    box-shadow: none;
  }
  .gm20-drawer-toggle { display: none; }
}

/* =========================================================================
   TOOL 2 (V20): GOOGLE CONVERTER / WISE.COM INTERFACE (#cv20-app)
   ========================================================================= */
.cv20-app {
  max-width: 1060px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.cv20-card {
  padding: 24px 26px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  margin-bottom: 20px;
  max-width: 100%;
  overflow: hidden;
}
html:not([data-theme="dark"]) .cv20-card {
  background: #FFFFFF;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}
@media (max-width: 640px) {
  .cv20-card { padding: 14px; border-radius: 18px; }
  .cv20-seg-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .cv20-seg-btn { padding: 7px 4px; font-size: 11.5px; text-align: center; }
  .cv20-field-box { padding: 14px; }
}

.cv20-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  min-width: 0;
}
.cv20-top-row > *,
.cv20-dual-grid > *,
.cv20-field-box {
  min-width: 0;
  max-width: 100%;
}
.cv20-seg-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid var(--border);
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
}
.cv20-seg-btn {
  padding: 8px 16px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.cv20-seg-btn:hover { color: var(--ink); }
.cv20-seg-btn.active {
  background: #D97706;
  color: #FFFBEB;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.30);
}
@media (max-width: 640px) {
  .cv20-seg-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .cv20-seg-btn { padding: 7px 3px; font-size: 11px; text-align: center; }
}

.cv20-wage-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.32);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-body);
}
.cv20-wage-pill input {
  width: 62px;
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}

.cv20-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1.05fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .cv20-dual-grid { grid-template-columns: 1fr; gap: 10px; }
}
.cv20-field-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-strong);
  display: flex;
  flex-direction: column;
}
html:not([data-theme="dark"]) .cv20-field-box {
  background: #FAF9F6;
}
.cv20-result-box {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(15, 23, 42, 0.04) 100%);
  border-color: rgba(245, 158, 11, 0.42);
}
html:not([data-theme="dark"]) .cv20-result-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FAF7F0 100%);
  border-color: rgba(180, 83, 9, 0.30);
}
.cv20-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}
.cv20-steppers {
  display: inline-flex;
  gap: 4px;
}
.cv20-steppers button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.cv20-steppers button:hover { border-color: #F59E0B; }

.cv20-inp-combo {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cv20-num {
  width: 132px;
  flex-shrink: 0;
  height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}
.cv20-num:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.20);
}
.cv20-sel {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}
@media (max-width: 500px) {
  .cv20-inp-combo { flex-direction: column; align-items: stretch; }
  .cv20-num { width: 100%; }
}

.cv20-slider-wrap {
  margin-top: 16px;
}
.cv20-slider {
  width: 100%;
  accent-color: #F59E0B;
  cursor: pointer;
}
.cv20-slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 2px;
}

.cv20-swap-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv20-swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cv20-swap-btn:hover {
  border-color: #F59E0B;
  color: #F59E0B;
  transform: rotate(180deg);
}

.cv20-out-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.14);
  border: 1px solid var(--border);
}
html:not([data-theme="dark"]) .cv20-out-toggle {
  background: rgba(15, 23, 42, 0.06);
}
.cv20-ot-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.cv20-ot-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.cv20-big-val {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: 4px 0 6px;
}
.cv20-sub-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald);
}
.cv20-money-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cv20-money-strip span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cv20-money-strip strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 2px 0;
}
.cv20-money-strip small {
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Google-Style Formula Bar */
.cv20-formula-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-body);
}
.cv20-f-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
html:not([data-theme="dark"]) .cv20-f-badge {
  background: #FEF3C7;
  color: #92400E;
}

.cv20-goliath-bar {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.30);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}
.cv20-gol-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.cv20-gol-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cv20-gol-btn.active {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFBEB;
}

/* Clean Quick-Try Chips */
.cv20-quick-strip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cv20-q-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
  white-space: nowrap;
}
.cv20-q-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cv20-ex-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.cv20-ex-chip em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
}
.cv20-ex-chip:hover { border-color: #F59E0B; }
.cv20-ex-chip.active {
  background: rgba(217, 119, 6, 0.18);
  border-color: #F59E0B;
  color: var(--ink);
}
.cv20-ex-chip.active em { color: var(--emerald); }

/* Lower Deck: Crisp Scale Bars + Story Card */
.cv20-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 920px) {
  .cv20-lower-grid { grid-template-columns: 1fr; }
}
.cv20-panel {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}
html:not([data-theme="dark"]) .cv20-panel { background: #FFFFFF; }
.cv20-panel-hdr {
  margin-bottom: 16px;
}
.cv20-panel-hdr h2 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.cv20-panel-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.cv20-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cv20-bar-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
}
@media (max-width: 600px) {
  .cv20-bar-item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .cv20-bar-item .cv20-bar-track { grid-column: 1 / -1; }
}
.cv20-bar-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-body);
}
.cv20-bar-item.hi .cv20-bar-lbl {
  color: var(--ink);
  font-weight: 800;
}
.cv20-bar-track {
  height: 12px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}
.cv20-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: #64748B;
  transition: width 0.25s ease;
}
html:not([data-theme="dark"]) .cv20-bar-fill { background: #94A3B8; }
.cv20-bar-item.hi .cv20-bar-fill {
  background: linear-gradient(90deg, #D97706 0%, #F59E0B 100%);
}
.cv20-bar-val {
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cv20-bar-item.hi .cv20-bar-val {
  color: #F59E0B;
}
html:not([data-theme="dark"]) .cv20-bar-item.hi .cv20-bar-val { color: #B45309; }

.cv20-basket {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.34);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.cv20-story-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border);
}
html:not([data-theme="dark"]) .cv20-story-card { background: #FFFFFF; }
.cv20-sc-photo {
  position: relative;
  height: 155px;
  background: #090D14;
}
.cv20-sc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv20-sc-verse {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FDE68A;
  font-size: 11px;
  font-weight: 800;
}
.cv20-sc-body { padding: 16px 18px 18px; }
.cv20-sc-body h3 {
  margin: 0 0 10px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  color: var(--ink);
}
.cv20-dims-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  text-align: center;
  margin-bottom: 6px;
}
.cv20-dims-row span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cv20-dims-row strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.cv20-dims-sub {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.cv20-sc-text {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.56;
  color: var(--ink-body);
}
.cv20-sc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: #D97706;
  color: #FFFBEB !important;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
}
.cv20-sc-link:hover { filter: brightness(1.08); }

/* =========================================================================
   TOOL 3 (V20): ANCESTRY.COM / FAMILYSEARCH PEDIGREE INTERFACE (#ft20-app)
   ========================================================================= */
.ft20-app {
  padding-bottom: 24px;
}
.ft20-shell {
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.30);
}
html:not([data-theme="dark"]) .ft20-shell {
  background: #FFFFFF;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
}

/* Single Sleek Top App Bar */
.ft20-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
html:not([data-theme="dark"]) .ft20-toolbar {
  background: #FAF9F6;
}
.ft20-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 240px;
  max-width: 100%;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.ft20-search-wrap:focus-within { border-color: #F59E0B; }
.ft20-s-ico { color: var(--ink-muted); flex-shrink: 0; }
.ft20-search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.ft20-suggest {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 45;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44);
  overflow: hidden;
}
.ft20-sug-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.ft20-sug-row:last-child { border-bottom: 0; }
.ft20-sug-row:hover { background: rgba(245, 158, 11, 0.12); }
.ft20-sug-row img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ft20-sug-row strong { display: block; font-size: 12.5px; color: var(--ink); }
.ft20-sug-row small { display: block; font-size: 10.5px; color: var(--ink-muted); }

.ft20-seg-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid var(--border);
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
}
.ft20-seg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.ft20-seg:hover { color: var(--ink); }
.ft20-seg.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.20);
}
html:not([data-theme="dark"]) .ft20-seg.active { background: #FFFFFF; }
.ft20-tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ft20-rel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(217, 119, 6, 0.14);
  color: var(--emerald);
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.ft20-rel-btn.active {
  background: #D97706;
  color: #FFFBEB;
}
.ft20-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ft20-dot.gold { background: #F59E0B; }
.ft20-dot.sky { background: #38BDF8; }
.ft20-dot.em { background: #10B981; }

/* Collapsible Ancestry Relationship Ribbon */
.ft20-rel-ribbon {
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.08);
  border-bottom: 1px solid rgba(16, 185, 129, 0.30);
}
.ft20-rr-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ft20-rr-lbl { font-size: 12px; font-weight: 800; color: var(--ink); }
.ft20-rr-amp { font-size: 13px; font-weight: 800; color: var(--ink-muted); }
.ft20-rr-controls select {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
}
.ft20-rr-go {
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 0;
  background: #10B981;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.ft20-rr-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.ft20-rr-presets button {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ft20-rr-presets button:hover { border-color: #10B981; color: var(--ink); }
.ft20-rr-ans {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink);
}

/* Main Workspace Split */
.ft20-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  min-height: 640px;
}
@media (max-width: 960px) {
  .ft20-workspace { grid-template-columns: 1fr; }
}

.ft20-canvas-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background-color: #0B101A;
  background-image: radial-gradient(var(--gm-dot-grid) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  border-right: 1px solid var(--border);
}
html:not([data-theme="dark"]) .ft20-canvas-wrap {
  background-color: #F6F4EE;
}
@media (max-width: 960px) {
  .ft20-canvas-wrap { border-right: 0; border-bottom: 1px solid var(--border); }
}

.ft20-viewport {
  position: relative;
  height: 650px;
  overflow: auto;
  cursor: grab;
  user-select: none;
}
.ft20-viewport:active { cursor: grabbing; }
@media (max-width: 960px) {
  .ft20-viewport { height: 470px; }
}
.ft20-scaler {
  transform-origin: 0 0;
  position: relative;
}
.ft20-canvas {
  position: relative;
}
.ft20-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ft20-era-band {
  position: absolute;
  left: 24px;
  right: 24px;
  border-top: 1px dashed var(--border-strong);
  padding-top: 7px;
  pointer-events: none;
}
.ft20-era-band span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--emerald);
}

.ft20-edge {
  fill: none;
  stroke: #475569;
  stroke-width: 2;
  opacity: 0.55;
  transition: opacity 0.16s ease, stroke 0.16s ease, stroke-width 0.16s ease;
}
html:not([data-theme="dark"]) .ft20-edge { stroke: #94A3B8; opacity: 0.72; }
.ft20-edge.edge-trunk,
.ft20-edge.edge-matt { stroke: #D97706; opacity: 0.78; stroke-width: 2.4; }
.ft20-edge.edge-luke { stroke: #0EA5E9; opacity: 0.78; stroke-width: 2.4; }
.ft20-edge.edge-priest { stroke: #10B981; opacity: 0.75; stroke-width: 2.2; }
.ft20-edge.dim { opacity: 0.12 !important; }
.ft20-edge.lit-gold { stroke: #F59E0B !important; stroke-width: 3.4 !important; opacity: 1 !important; }
.ft20-edge.lit-blue { stroke: #38BDF8 !important; stroke-width: 3.4 !important; opacity: 1 !important; }
.ft20-edge.lit-lca { stroke: #10B981 !important; stroke-width: 3.6 !important; opacity: 1 !important; }

/* Ancestry-Style Circular-Portrait Pedigree Cards */
.ft20-card {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 208px;
  min-height: 62px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: #141C2B;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  transition: transform 0.14s ease, border-color 0.14s ease, opacity 0.16s ease, box-shadow 0.14s ease;
  font-family: inherit;
}
html:not([data-theme="dark"]) .ft20-card {
  background: #FFFFFF;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}
.ft20-card:hover {
  transform: translate(-50%, -52%);
  border-color: #F59E0B;
  z-index: 12;
}
.ft20-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #64748B;
  flex-shrink: 0;
  background: #0B101A;
}
.ft20-card.grp-trunk .ft20-av,
.ft20-card.grp-matt .ft20-av { border-color: #F59E0B; }
.ft20-card.grp-luke .ft20-av { border-color: #38BDF8; }
.ft20-card.grp-priest .ft20-av { border-color: #10B981; }
.ft20-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ft20-meta {
  min-width: 0;
  flex: 1;
}
.ft20-meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ft20-meta small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-muted);
  line-height: 1.25;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ft20-card.active {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.30), 0 10px 24px rgba(0, 0, 0, 0.42);
  z-index: 16;
}
.ft20-card.lit-gold { border-color: #F59E0B; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28); }
.ft20-card.lit-blue { border-color: #38BDF8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.28); }
.ft20-card.lit-lca {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.38);
  z-index: 18;
}
.ft20-card.dim { opacity: 0.24; }

.ft20-legend-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 20;
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gm-pill-bg);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-body);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}
.ft20-legend-pill span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 640px) {
  .ft20-legend-pill { display: none; }
}

.ft20-zoom-capsule {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gm-pill-bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.ft20-zoom-capsule button {
  height: 32px;
  min-width: 34px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.ft20-zoom-capsule button:last-child { border-right: 0; }
.ft20-zoom-capsule button:hover { background: rgba(245, 158, 11, 0.14); }

/* Right-Hand Ancestry Person Profile Sheet */
.ft20-profile {
  display: flex;
  flex-direction: column;
  height: 650px;
  overflow-y: auto;
  background: var(--surface);
}
@media (max-width: 960px) {
  .ft20-profile { height: auto; }
}
.ft20-prof-banner {
  height: 88px;
  overflow: hidden;
  background: #0B101A;
  flex-shrink: 0;
}
.ft20-prof-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: blur(1px);
  transform: scale(1.06);
}
.ft20-prof-head {
  padding: 0 18px 16px;
  margin-top: -36px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.ft20-prof-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #F59E0B;
  background: #0B101A;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
}
.ft20-prof-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft20-era-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--emerald);
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 5px;
}
.ft20-prof-head h2 {
  margin: 0 0 2px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}
.ft20-prof-role {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-muted);
}
.ft20-prof-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ft20-pa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
html:not([data-theme="dark"]) .ft20-pa-btn { background: #F8FAFC; }
.ft20-pa-btn.primary {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--emerald);
}
.ft20-pa-btn:hover { border-color: #F59E0B; }

.ft20-prof-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ft20-sec-k {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.ft20-fam-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ft20-fam-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.14s ease, background 0.14s ease;
}
html:not([data-theme="dark"]) .ft20-fam-row { background: #FAF9F6; }
.ft20-fam-row:hover {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
}
.ft20-fam-row img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ft20-fam-row strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.2;
}
.ft20-fam-row small {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
}
.ft20-fam-arrow {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-muted);
}
.ft20-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ft20-info-item strong {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}
.ft20-bio-txt {
  margin: 0;
  font-size: 13px;
  line-height: 1.56;
  color: var(--ink-body);
}
