:root {
  --bg:         #f4f0e7;
  --panel:      #ffffff;
  --ink:        #131c28;
  --muted:      #5a6472;
  --line:       #dcd8ce;
  --navy:       #0e2137;
  --navy-2:     #172f48;
  --gold:       #b08840;
  --gold-soft:  #ede2c8;
  --gold-light: #f7f0e0;
  --sea:        #3b7fa6;
  --radius:     20px;
  --radius-sm:  12px;
  --container:  1160px;
  --shadow:     0 2px 4px rgba(14,33,55,.04), 0 8px 24px rgba(14,33,55,.07);
  --shadow-lg:  0 4px 8px rgba(14,33,55,.06), 0 20px 48px rgba(14,33,55,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  padding-top: 68px;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.12;
  color: var(--navy);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(244,240,231,0.90);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14,33,55,.25);
}
.brand-mark svg { width: 16px; height: 16px; display: block; }
.brand-logo-img { width: 36px; height: 36px; display: block; border-radius: 50%; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--navy); background: rgba(14,33,55,.06); }

.nav-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy) !important;
  background: var(--gold-soft) !important;
  border: 1px solid rgba(176,136,64,.30);
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: #fff !important;
  border-color: var(--gold) !important;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(176,136,64,.13), transparent),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(59,127,166,.08), transparent);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(176,136,64,.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  display: none;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-style: italic;
  color: var(--navy);
  max-width: 14ch;
  margin: 0 auto 24px;
  line-height: 1.05;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.925rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-2); box-shadow: 0 4px 16px rgba(14,33,55,.25); }

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--navy); box-shadow: var(--shadow); }

.btn-ghost {
  background: var(--gold-light);
  color: var(--gold);
  border-color: rgba(176,136,64,.30);
}
.btn-ghost:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ── GLOBE SECTION ──────────────────────────────────────────────── */
.globe-section {
  padding: 0 0 64px;
}

.globe-label {
  text-align: center;
  margin-bottom: 20px;
}
.globe-label h2 {
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  font-family: 'Playfair Display', Georgia, serif;
}
.globe-filter-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 14px;
  background: rgba(14,33,55,.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.globe-filter-btn {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  padding: 6px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.globe-filter-btn.active { background: var(--navy); color: #fff; }
.globe-filter-btn:hover:not(.active) { background: rgba(14,33,55,.08); color: var(--navy); }
.globe-modal-filter {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
  display: none;
  gap: 4px;
  background: rgba(4,10,22,.85);
  border: 1px solid rgba(80,160,220,.2);
  border-radius: 999px;
  padding: 4px;
}
.globe-modal.open .globe-modal-filter { display: flex; }
.globe-modal-filter-btn {
  font-size: 0.72rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #7ec8f0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.globe-modal-filter-btn.active { background: rgba(74,144,196,.3); color: #fff; }
.globe-modal-filter-btn:hover:not(.active) { background: rgba(74,144,196,.12); }

.globe-wrap {
  position: relative;
  height: 55vh;
  min-height: 380px;
  max-height: 620px;
  border-radius: 24px;
  overflow: hidden;
  background: #060d18;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(80,160,220,.12);
  border: 1px solid rgba(80,160,220,.15);
}

#globe-el { width: 100%; height: 100%; }

.globe-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.globe-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #060d18;
  transition: opacity 0.6s;
}
.globe-loading.out { opacity: 0; pointer-events: none; }
.globe-spin {
  width: 32px; height: 32px;
  border: 2px solid rgba(74,144,196,.2);
  border-top-color: #4a90c4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.globe-loading p {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4a6880;
  font-family: 'DM Sans', sans-serif;
}

.globe-menu-btn {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 9;
  width: 36px; height: 36px;
  background: rgba(4,10,22,.92);
  border: 1px solid rgba(80,160,220,.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}
.globe-menu-btn:hover { background: rgba(4,10,22,.98); }
.globe-menu-btn svg { width: 16px; height: 16px; stroke: #7ec8f0; fill: none; stroke-width: 1.8; transition: transform 0.3s; }
.globe-menu-btn.open svg { transform: rotate(90deg); }

.globe-panel {
  position: absolute;
  top: 60px; left: 14px;
  z-index: 8;
  background: rgba(4,10,22,.88);
  border: 1px solid rgba(80,160,220,.18);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  width: 200px;
  max-height: calc(100% - 80px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}
.globe-panel.open { display: flex; }

.globe-panel-head {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4a90c4;
  padding: 10px 12px 8px 44px;
  border-bottom: 1px solid rgba(80,160,220,.1);
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
}

.globe-route-list { overflow-y: auto; flex: 1; }

.globe-route-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(80,160,220,.06);
  cursor: pointer;
  transition: background 0.15s;
}
.globe-route-item:hover, .globe-route-item.active { background: rgba(74,144,196,.12); }
.globe-route-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.globe-route-name { font-size: 0.72rem; color: #d0e8ff; font-family: 'DM Sans', sans-serif; line-height: 1.3; }

.globe-infobar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 8;
  background: rgba(4,10,22,.97);
  border-top: 1px solid rgba(80,160,220,.15);
  padding: 12px 20px 16px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.globe-infobar.show { transform: translateY(0); }
.globe-info-row1 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.globe-info-name { font-size: 1rem; color: #e8f4ff; font-family: 'Playfair Display', Georgia, serif; }
.globe-info-type { font-size: 0.5rem; color: #4a90c4; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'DM Sans', sans-serif; }
.globe-info-stats { display: flex; gap: 24px; }
.globe-stat-v { font-size: 0.84rem; color: #7ec8f0; font-family: 'Playfair Display', Georgia, serif; }
.globe-stat-l { font-size: 0.46rem; letter-spacing: 0.16em; text-transform: uppercase; color: #4a6880; margin-top: 2px; font-family: 'DM Sans', sans-serif; }

.globe-expand-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 9;
  background: rgba(4,10,22,.92);
  border: 1px solid rgba(80,160,220,.2);
  border-radius: 8px;
  color: #7ec8f0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.globe-expand-btn:hover { background: rgba(4,10,22,.98); }

/* Globe fullscreen modal */
.globe-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #060d18;
  display: none;
}
.globe-modal.open { display: block; }
.globe-modal-inner { width: 100%; height: 100%; }

.globe-modal-btn {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 1010;
  width: 38px; height: 38px;
  background: rgba(4,10,22,.93);
  border: 1px solid rgba(80,160,220,.2);
  border-radius: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.globe-modal.open .globe-modal-btn { display: flex; }
.globe-modal-btn svg { width: 16px; height: 16px; stroke: #7ec8f0; fill: none; stroke-width: 1.8; transition: stroke 0.2s, transform 0.3s; }
.globe-modal-btn.active { background: rgba(74,144,196,.25); border-color: rgba(80,160,220,.6); }
.globe-modal-btn.active svg { stroke: #ffffff; }
.globe-modal-btn.open svg { transform: rotate(90deg); }

.globe-modal-close {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 1010;
  width: 38px; height: 38px;
  background: rgba(4,10,22,.93);
  border: 1px solid rgba(80,160,220,.2);
  border-radius: 6px;
  color: #7ec8f0;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.globe-modal.open .globe-modal-close { display: flex; }

.globe-modal-panel {
  position: fixed;
  top: 60px; left: 14px;
  z-index: 1008;
  width: 200px;
  max-height: calc(100% - 80px);
  background: rgba(4,10,22,.88);
  border: 1px solid rgba(80,160,220,.18);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.globe-modal-panel.open { display: flex; }
.globe-modal-panel-head {
  font-size: 0.58rem; font-weight: normal; letter-spacing: 0.3em;
  text-transform: uppercase; color: #4a90c4;
  padding: 10px 12px 8px 44px;
  border-bottom: 1px solid rgba(80,160,220,.1);
  font-family: 'DM Sans', sans-serif;
}
.globe-modal-route-list { flex: 1; overflow-y: auto; }
.globe-modal-route-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(80,160,220,.06);
  cursor: pointer; transition: background 0.15s;
}
.globe-modal-route-item:hover,
.globe-modal-route-item.active { background: rgba(74,144,196,.12); }
.globe-modal-route-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.globe-modal-route-name { font-size: 0.78rem; color: #d0e8ff; font-family: 'DM Sans', sans-serif; line-height: 1.3; }

.globe-modal-infobar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1007;
  background: rgba(4,10,22,.97);
  border-top: 1px solid rgba(80,160,220,.15);
  padding: 10px 20px 16px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.globe-modal-infobar.show { transform: translateY(0); }
.globe-modal-info-name { font-size: 1rem; color: #e8f4ff; font-family: 'Playfair Display', Georgia, serif; }
.globe-modal-info-type { font-size: 0.5rem; color: #4a90c4; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'DM Sans', sans-serif; margin-top: 2px; }
.globe-modal-info-stats { display: flex; gap: 24px; margin-top: 8px; }
.globe-modal-stat-v { font-size: 0.84rem; color: #7ec8f0; font-family: 'Playfair Display', Georgia, serif; }
.globe-modal-stat-l { font-size: 0.46rem; letter-spacing: 0.16em; text-transform: uppercase; color: #4a6880; margin-top: 2px; font-family: 'DM Sans', sans-serif; }

/* ── DIVIDER ─────────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ── CATALOG SECTION ────────────────────────────────────────────── */
.catalog-section { padding: 64px 0; }

.section-header {
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 58ch;
}

.passage-list { display: grid; gap: 8px; }

.passage-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  overflow: hidden;
}
.passage-card:hover {
  border-color: rgba(14,33,55,.22);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.passage-card.active {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(59,127,166,.10), var(--shadow);
}

.passage-mobile-meta { display: none; }
.passage-difficulty-row { display: none; }
.passage-mobile-item { display: flex; flex-direction: column; gap: 1px; }
.passage-mobile-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.passage-mobile-value { font-size: 0.82rem; font-weight: 600; color: var(--ink); }

/* Column header row */
.passage-list-head {
  display: grid;
  grid-template-columns: 1fr 160px 120px 110px 110px 28px;
  gap: 0 16px;
  padding: 0 20px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.passage-list-head span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.passage-card-header {
  display: grid;
  grid-template-columns: 1fr 160px 120px 110px 110px 28px;
  align-items: center;
  gap: 0 16px;
  padding: 14px 20px;
}

.passage-name-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.passage-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-light);
  border: 1px solid rgba(176,136,64,.3);
  color: var(--gold);
  flex-shrink: 0;
}
.passage-icon svg { width: 16px; height: 16px; display: block; }

.passage-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.passage-title-link {
  text-decoration: none;
  transition: color 0.15s;
}
.passage-title-link:hover { color: var(--sea); }

.passage-cell {
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.passage-cell.muted { color: var(--muted); }

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-light);
  border: 1px solid rgba(176,136,64,.25);
  color: var(--gold);
  white-space: nowrap;
}

.passage-chevron {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  transition: background 0.15s, color 0.15s, transform 0.25s;
  flex-shrink: 0;
}
.passage-card.active .passage-chevron {
  background: var(--sea);
  color: #fff;
  transform: rotate(180deg);
}
.passage-card.active .passage-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.passage-chevron svg { width: 14px; height: 14px; display: block; }

/* Expanded detail */
.passage-expand {
  border-top: 1px solid var(--line);
  padding: 24px 20px 24px calc(20px + 36px + 12px);
  display: none;
}
.passage-card.active .passage-expand { display: block; }

.expand-intro {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 20px;
  max-width: 76ch;
}

.expand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

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

.expand-stat {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}

.expand-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.expand-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
}

.expand-blocks {
  display: grid;
  gap: 18px;
}

.expand-block h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.expand-block p,
.expand-block li,
.expand-block dd { color: var(--muted); font-size: 0.9rem; }

.expand-block ul {
  margin: 0;
  padding-left: 18px;
}
.expand-block li { margin-bottom: 6px; }

.story-snippet {
  border-left: 3px solid var(--gold-soft);
  padding: 8px 14px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.faq-item { margin-bottom: 12px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item dt { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 3px; }
.faq-item dd { margin: 0; color: var(--muted); font-size: 0.875rem; }

.related-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.related-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.related-pill:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.no-results {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

/* ── LOG YOUR CROSSING ──────────────────────────────────────────── */
.log-section {
  padding: 64px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.log-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, rgba(176,136,64,.12), transparent),
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(59,127,166,.10), transparent);
  pointer-events: none;
}

.log-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.log-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.1;
}

.log-copy h2 em {
  font-style: normal;
  color: var(--gold);
}

.log-copy p {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 46ch;
}

.log-features {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.log-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.log-feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(176,136,64,.15);
  border: 1px solid rgba(176,136,64,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.log-feature-icon svg { width: 16px; height: 16px; }

.log-feature-text strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 3px;
}
.log-feature-text span {
  color: rgba(255,255,255,.58);
  font-size: 0.85rem;
  line-height: 1.5;
}

.log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #c89a4a;
  border-color: #c89a4a;
  box-shadow: 0 4px 20px rgba(176,136,64,.35);
}

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.22);
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* Certificate preview card */
.log-preview {
  position: relative;
}

.certificate-card {
  background: linear-gradient(145deg, #1a3554 0%, #0e2137 100%);
  border: 1px solid rgba(176,136,64,.35);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,136,64,.18), transparent 70%);
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(176,136,64,.2);
}

.cert-seal {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(176,136,64,.15);
  border: 1.5px solid rgba(176,136,64,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.cert-seal svg { width: 20px; height: 20px; }

.cert-title {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 4px;
}
.cert-passage-name {
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
}

.cert-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.cert-stat-label {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 4px;
}
.cert-stat-value {
  font-size: 0.9rem;
  color: rgba(255,255,255,.9);
  font-family: 'Playfair Display', Georgia, serif;
}

.cert-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-family: 'Playfair Display', Georgia, serif;
}

.cert-badge {
  position: absolute;
  top: 20px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(176,136,64,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
}
.cert-badge-line1 { font-size: 0.46rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-family: 'DM Sans', sans-serif; }
.cert-badge-line2 { font-size: 1.3rem; color: var(--gold); font-family: 'Playfair Display', serif; }

.cert-coming-soon {
  margin-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.footer-brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: #fff;
}
.footer-brand-mark svg { width: 14px; height: 14px; }
.footer-logo-img { width: 110px; height: 110px; display: block; border-radius: 50%; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.footer-links a:hover { color: var(--navy); background: var(--bg); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .log-inner { grid-template-columns: 1fr; gap: 40px; }
  .log-preview { max-width: 480px; }
}

/* ── HAMBURGER & MOBILE MENU ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
  transition: border-color 0.15s, background 0.15s;
}
.hamburger:hover { background: rgba(14,33,55,.06); border-color: rgba(14,33,55,.2); }
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 19;
  background: rgba(244,240,231,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0 16px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 20px;
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--navy); }
.mobile-nav-cta {
  font-weight: 700 !important;
  color: var(--navy) !important;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .passage-list-head { display: none; }

  .passage-card-header {
    display: grid;
    grid-template-columns: 1fr 28px;
    grid-template-rows: auto auto auto;
    row-gap: 8px;
    column-gap: 10px;
    padding: 14px 16px;
    align-items: start;
  }

  .passage-name-col {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .passage-icon {
    flex-shrink: 0;
    margin-top: 0;
  }

  .passage-title {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.3;
  }

  .passage-chevron {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .passage-name-col .difficulty-badge { display: none; }

  .passage-difficulty-row {
    grid-column: 1;
    grid-row: 2;
    display: flex;
  }

  .passage-cell { display: none; }
  .passage-mobile-meta {
    grid-column: 1 / 3;
    grid-row: 3;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .expand-stats { grid-template-columns: 1fr 1fr; }
  .cert-stats { grid-template-columns: 1fr 1fr; }
  .globe-wrap { height: 50vh; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 16px), var(--container)); }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2.6rem; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .expand-stats { grid-template-columns: 1fr; }
  .cert-stats { grid-template-columns: 1fr; }
  .globe-wrap { height: 52vh; border-radius: 16px; }
  .globe-section { padding: 0 0 48px; }
  .catalog-section, .log-section { padding: 48px 0; }
  .passage-expand { padding-left: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── LOG SECTION (updated) ──────────────────────────────────────── */
.log-section {
  padding: 64px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.log-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, rgba(176,136,64,.12), transparent),
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(59,127,166,.10), transparent);
  pointer-events: none;
}
.section-header-light { position: relative; margin-bottom: 32px; }
.section-eyebrow-gold {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.log-heading {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.1;
}
.log-heading em { font-style: normal; color: var(--gold); }
.log-subheading {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  max-width: 52ch;
}

/* ── SUBMISSION FORM ────────────────────────────────────────────── */
.submission-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 780px;
  position: relative;
}

.sf-section { margin-bottom: 24px; }
.sf-section-inner {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 4px;
  margin-bottom: 20px;
}
.sf-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); opacity: .7; }

.sf-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.sf-field { display: flex; flex-direction: column; gap: 5px; }

.sf-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.sf-required { color: var(--gold); }

.sf-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.sf-input:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(59,127,166,.12);
}
.sf-select { cursor: pointer; }
.sf-textarea { resize: vertical; min-height: 80px; margin-top: 10px; }

.sf-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.sf-error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1em;
}

/* Tags */
.sf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.tag-label input { display: none; }
.tag-label:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tag-label:hover { border-color: var(--navy); }

/* Checkboxes */
.sf-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  margin-top: 10px;
}
.sf-checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

/* Accordion */
.sf-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  margin-bottom: 0;
  transition: color 0.15s;
}
.sf-accordion-btn:hover { color: var(--sea); }
.sf-accordion-icon {
  width: 18px; height: 18px;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.sf-accordion-btn.open .sf-accordion-icon { transform: rotate(180deg); }

.sf-accordion-body {
  display: none;
  padding-top: 4px;
}
.sf-accordion-body.open { display: block; }

/* Submit row */
.sf-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.sf-submit-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}
.sf-submit-btn { min-width: 140px; }
.sf-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Draft banner */
.sf-draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--gold-light);
  border: 1px solid rgba(176,136,64,.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sf-draft-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--navy);
}
.sf-draft-info svg { flex-shrink: 0; color: var(--gold); }
.sf-draft-info strong { font-weight: 600; }
.sf-draft-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.sf-draft-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sf-draft-resume {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.sf-draft-resume:hover { background: var(--sea); border-color: var(--sea); }
.sf-draft-discard {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.sf-draft-discard:hover { border-color: var(--muted); color: var(--ink); }

/* Success state */
.wz-complement-loading,
.wz-complement-error {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}
.wz-complement-error a { color: var(--sea); }
.wz-complement { padding: 4px 0; }
.wz-complement-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.wz-complement-header h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--navy); }
.wz-complement-passage { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.wz-complement-header > p { font-size: .9rem; color: var(--text); margin: 0; line-height: 1.6; }
.wz-complement-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wz-complement-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--gold-light);
  border: 1px solid rgba(176,136,64,.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .85rem;
  color: var(--navy);
  line-height: 1.5;
  margin: 16px 0 0;
  text-align: left;
}
.wz-complement-hint svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

/* ── Photos ──────────────────────────────────────────── */
.wz-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.wz-photo-slot {
  position: relative;
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wz-photo-preview {
  width: 140px;
  height: 105px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: block;
}
.wz-photo-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wz-photo-remove:hover { background: rgba(0,0,0,.8); }
.wz-photo-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  width: 100%;
  box-sizing: border-box;
  color: var(--ink);
  background: var(--bg);
}
.wz-photo-caption::placeholder { color: var(--muted); }
.wz-photo-caption:focus { outline: none; border-color: var(--sea); }
.wz-photo-add {
  width: 140px;
  height: 105px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  transition: border-color .15s, color .15s;
}
.wz-photo-add:hover { border-color: var(--sea); color: var(--sea); }
@media (max-width: 480px) {
  .wz-photo-slot, .wz-photo-preview, .wz-photo-add { width: 120px; }
  .wz-photo-preview, .wz-photo-add { height: 90px; }
}

.sf-success {
  text-align: center;
  padding: 48px 24px;
}
.sf-success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 1px solid rgba(176,136,64,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
}
.sf-success-icon svg { width: 22px; height: 22px; }
.sf-success h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.sf-success p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.sf-success-card {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  text-align: left;
}
.sf-success-passage {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.sf-success-route {
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.sf-success-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .submission-form-wrap { padding: 24px 20px; }
  .sf-submit-row { flex-direction: column; align-items: stretch; }
  .sf-submit-btn { width: 100%; }
}

/* ── WIZARD ─────────────────────────────────────────────────────── */

/* Type selector */
.wz-type-selector { padding: 4px 0 8px; }
.wz-type-motivate { font-size: .9rem; color: var(--text); margin-bottom: 16px; line-height: 1.6; }
.wz-type-addlater { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; padding: 10px 14px; background: var(--gold-light); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.wz-type-intro { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.wz-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
}
.wz-type-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
.wz-type-card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 12px rgba(14,33,55,.08);
}
.wz-type-icon { color: var(--sea); margin-bottom: 2px; }
.wz-type-svg  { width: 26px; height: 26px; display: block; }

/* Rating scale */
.wz-rating { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.wz-rating-opt { cursor: pointer; }
.wz-rating-opt input { display: none; }
.wz-rating-opt span {
  display: block; padding: 6px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .82rem; color: var(--muted);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap; user-select: none;
}
.wz-rating-opt span:hover { border-color: var(--navy); color: var(--navy); }
.wz-rating-opt input:checked + span {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.wz-type-name { font-size: .9rem; font-weight: 700; color: var(--navy); }
.wz-type-desc { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* Progress bar */
.wz-progress { margin-bottom: 28px; }
.wz-progress-track {
  height: 4px; background: var(--line);
  border-radius: 999px; overflow: hidden; margin-bottom: 8px;
}
.wz-progress-fill {
  height: 100%; background: var(--gold);
  border-radius: 999px; transition: width .4s ease;
}
.wz-progress-label { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* Step header */
.wz-step-header { margin-bottom: 24px; }
.wz-step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-style: italic;
  color: var(--navy); margin-bottom: 6px;
}
.wz-step-desc { font-size: .88rem; color: var(--muted); }

/* Nav buttons */
.wz-form-error {
  text-align: center;
  font-size: 0.83rem;
  color: #c0392b;
  margin-bottom: 8px;
  padding: 6px 0;
}
.wz-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 24px;
  border-top: 1px solid var(--line); margin-top: 8px;
}
.wz-back {
  font-family: 'DM Sans', sans-serif; font-size: .88rem; font-weight: 500;
  color: var(--muted); background: transparent; border: none;
  cursor: pointer; padding: 8px 0; transition: color .15s;
}
.wz-back:hover { color: var(--navy); }
.wz-next {
  font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 700;
  background: var(--navy); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 11px 24px;
  cursor: pointer; transition: background .15s;
}
.wz-next:hover { background: var(--sea); }
.wz-next--submit { background: var(--gold); color: var(--navy); }
.wz-next--submit:hover { filter: brightness(.92); }
.wz-next:disabled { opacity: .6; cursor: not-allowed; }

/* Social handle inputs */
.wz-handle-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.wz-handle-wrap:focus-within {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(59,127,166,.12);
}
.wz-handle-at {
  padding: 9px 8px 9px 12px; font-size: .88rem;
  color: var(--muted); background: var(--bg); flex-shrink: 0;
}
.wz-handle-input {
  border: none !important; box-shadow: none !important;
  border-radius: 0 !important; flex: 1; min-width: 0;
}
.wz-handle-input:focus { box-shadow: none !important; }

/* Diploma name section highlight */
.wz-diploma-preview {
  background: rgba(176,136,64,.04);
  border-color: rgba(176,136,64,.25) !important;
}

/* Crew code input */
.wz-code-input {
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-align: center;
}
.wz-crew-note { font-size: .82rem; color: var(--muted); margin: 0; }

/* Crew confirm card */
.wz-crew-confirm {
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 4px;
}
.wz-crew-confirm-passage {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.wz-crew-confirm-route { font-size: .9rem; color: var(--ink); margin-bottom: 4px; }
.wz-crew-confirm-meta  { font-size: .82rem; color: var(--muted); }

/* Crew code share box */
.wz-crew-code-box {
  background: var(--gold-light);
  border: 1px solid rgba(176,136,64,.3);
  border-radius: var(--radius-sm);
  padding: 24px; margin-top: 28px; text-align: center;
}
.wz-crew-code-label { font-size: .85rem; color: var(--navy); margin-bottom: 12px; }
.wz-crew-code {
  font-size: 2.2rem; font-weight: 900; letter-spacing: .18em;
  color: var(--navy); font-family: 'DM Sans', sans-serif; margin-bottom: 8px;
}
.wz-crew-code-hint { font-size: .78rem; color: var(--muted); margin-bottom: 16px; }
.wz-crew-code-copy {
  font-family: 'DM Sans', sans-serif; font-size: .82rem; font-weight: 600;
  background: var(--navy); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 8px 20px;
  cursor: pointer; transition: background .15s;
}
.wz-crew-code-copy:hover { background: var(--sea); }

/* Edit link save box */
.wz-edit-link-box {
  background: rgba(42,125,142,.06);
  border: 1px solid rgba(42,125,142,.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px; margin-top: 12px; text-align: center;
}
.wz-edit-link-label { font-size: .82rem; color: var(--navy); margin-bottom: 8px; }
.wz-edit-link-url {
  font-size: .72rem; color: var(--sea, #2a7d8e);
  word-break: break-all; margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

/* Diploma */
.wz-diploma { margin: 28px auto 0; max-width: 400px; }
.wz-diploma-inner {
  border: 2px solid var(--gold);
  outline: 4px solid transparent;
  box-shadow: 0 0 0 6px var(--gold-light), 0 0 0 8px rgba(176,136,64,.2);
  border-radius: 4px; padding: 36px 32px;
  background: #fdfaf4; text-align: center;
}
.wz-diploma-header {
  font-size: .68rem; font-weight: 700; letter-spacing: .28em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 8px;
}
.wz-diploma-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem; font-style: italic; color: var(--navy); margin-bottom: 14px;
}
.wz-diploma-rule { color: var(--gold); letter-spacing: .2em; margin-bottom: 16px; }
.wz-diploma-label {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.wz-diploma-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem; font-style: italic; color: var(--navy);
  margin-bottom: 14px; line-height: 1.2;
}
.wz-diploma-passage {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px;
}
.wz-diploma-route { font-size: .85rem; color: var(--ink); margin-bottom: 4px; }
.wz-diploma-meta  { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.wz-diploma-boat  { font-size: .8rem; color: var(--muted); font-style: italic; }
.wz-diploma-footer { font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
.wz-diploma-hint {
  text-align: center; font-size: .8rem; color: var(--muted);
  margin-top: 12px; font-style: italic;
}
.wz-diploma-blank {
  display: inline-block;
  width: 220px;
  border-bottom: 1.5px solid rgba(14,33,55,.35);
  height: 1.8rem;
  vertical-align: bottom;
}

/* Instructions */
.log-how {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 40px; flex-wrap: wrap;
  max-width: 780px;
}
.log-how-step {
  display: flex; align-items: flex-start; gap: 12px;
  flex: 1; min-width: 160px;
}
.log-how-arrow {
  color: var(--gold); font-size: 1.1rem; flex-shrink: 0;
  margin-top: 6px; opacity: .7;
}
.log-how-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-light); border: 1px solid rgba(176,136,64,.35);
  color: var(--gold); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px;
}
.log-how-text { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.log-how-text strong { color: rgba(255,255,255,.9); font-weight: 600; display: block; margin-bottom: 2px; }
.log-crew-note {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .84rem; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 18px;
  margin-bottom: 28px; line-height: 1.5;
  max-width: 780px;
}
.log-crew-note strong { color: var(--navy); }
.log-crew-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--sea); }
@media (max-width: 640px) {
  .log-how-arrow { display: none; }
}

/* Fade-in animation on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.5s ease both; }
.hero h1      { animation: fadeUp 0.55s 0.08s ease both; }
.hero-sub     { animation: fadeUp 0.55s 0.14s ease both; }
.hero-actions { animation: fadeUp 0.55s 0.20s ease both; }

/* ── PASSAGE PAGE ────────────────────────────────────────────────── */
.pp-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
  margin-bottom: 32px;
}
.pp-back:hover { color: var(--navy); background: rgba(14,33,55,.06); }
.pp-back svg { width: 14px; height: 14px; }

.pp-hero {
  padding: 56px 0 48px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.pp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(176,136,64,.10), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(59,127,166,.07), transparent);
  pointer-events: none;
}

.pp-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.pp-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--navy);
  font-style: italic;
  margin-bottom: 16px;
  max-width: 22ch;
}

.pp-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pp-meta-sep { color: var(--line); }
.pp-rarity {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.pp-difficulty-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.diff-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid rgba(14,33,55,.12);
  display: inline-block;
}
.diff-dot.filled {
  background: var(--gold);
  border-color: var(--gold);
}
.pp-difficulty-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.pp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 820px;
  box-shadow: var(--shadow);
}
.pp-stat {
  flex: 1;
  min-width: 120px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
}
.pp-stat:last-child { border-right: none; }
.pp-stat-v {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 3px;
}
.pp-stat-l {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── BODY ─────────────────────────────────────────────── */
.pp-body {
  padding: 56px 0 64px;
}

.pp-intro-wrap {
  margin-bottom: 48px;
  max-width: 780px;
}
.pp-intro {
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.78;
  margin-bottom: 24px;
}
.pp-why {
  border-left: 3px solid var(--gold);
  padding: 10px 18px;
  margin-top: 8px;
}
.pp-why-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.pp-why-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.6;
}

.pp-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.pp-main { min-width: 0; }

.pp-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.pp-section:last-child { border-bottom: none; }

.pp-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.pp-prose {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

.pp-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.pp-list li {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
}
.pp-list-risk li::marker { color: #c0392b; }

.pp-snippet {
  border-left: 3px solid var(--gold-soft);
  padding: 8px 16px;
  margin: 12px 0;
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.pp-hist-refs {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.pp-hist-refs li {
  font-size: 0.85rem;
  color: var(--muted);
}

.pp-faq-item {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.pp-faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pp-faq-q {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.pp-faq-a {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.pp-related-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-related-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.pp-related-pill:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── ASIDE CARD ─────────────────────────────────────────── */
.pp-aside {
  position: sticky;
  top: 88px;
}
.pp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pp-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.pp-card-row:last-of-type { border-bottom: none; }
.pp-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.pp-card-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}
.pp-card-row-diff { flex-direction: column; align-items: flex-start; gap: 6px; }
.pp-card-diff { display: flex; align-items: center; gap: 8px; }
.pp-card-diff-label { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.pp-card-cta {
  display: flex;
  margin: 16px;
  justify-content: center;
}

/* ── LOGS SECTION ───────────────────────────────────────── */
.pp-logs-section {
  background: var(--navy);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.pp-logs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(176,136,64,.12), transparent);
  pointer-events: none;
}
.pp-logs-head {
  margin-bottom: 36px;
  position: relative;
}
.pp-logs-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.pp-logs-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  font-style: italic;
  margin-bottom: 10px;
}
.pp-logs-sub {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  max-width: 50ch;
}
.pp-logs-empty {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  max-width: 480px;
  position: relative;
}
.pp-logs-empty-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(176,136,64,.15);
  border: 1px solid rgba(176,136,64,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
}
.pp-logs-empty-icon svg { width: 22px; height: 22px; }
.pp-logs-empty-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}
.pp-logs-empty-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
.pp-logs-cta { margin: 0 auto; width: fit-content; }

/* ── PASSAGE PAGE RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-aside { position: static; }
  .pp-card { max-width: 480px; }
}
@media (max-width: 560px) {
  .pp-hero { padding: 40px 0 36px; }
  .pp-hero-title { font-size: 2rem; }
  .pp-stats { flex-direction: column; }
  .pp-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .pp-stat:last-child { border-bottom: none; }
  .pp-body { padding: 36px 0 48px; }
  .pp-logs-section { padding: 48px 0; }
}
