:root {
  --cab-bg: oklch(0.21 0.045 285);
  --cab-bg-deep: oklch(0.16 0.04 290);
  --cab-ink: oklch(0.94 0.015 90);
  --cab-muted: oklch(0.74 0.025 90);
  --cab-faint: oklch(0.61 0.03 285);        /* 4.5:1 on --cab-bg (was 0.52 / 3.22:1) */
  --cab-line: oklch(0.34 0.04 285);         /* decorative rules only */
  --cab-line-strong: oklch(0.51 0.04 285);  /* 3:1 — every interactive border */
  --cab-crimson-edge: oklch(0.52 0.12 15);  /* 3:1 — crimson borders that carry meaning */
  --cab-gold: oklch(0.74 0.115 82);
  --cab-gold-deep: oklch(0.63 0.11 76);
  --cab-crimson: oklch(0.44 0.12 15);
  --cab-crimson-soft: oklch(0.36 0.09 15);
  --cab-red-text: oklch(0.62 0.13 15);
  --font-heading: "Caprasimo", system-ui, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cab-bg); color: var(--cab-ink); font-family: var(--font-body); overflow-x: hidden; }
a { color: var(--cab-gold); }
a:hover { color: oklch(0.82 0.11 85); }
input::placeholder { color: var(--cab-faint); }
input { caret-color: var(--cab-gold); }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cab-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.hidden { display: none !important; }

@keyframes riseIn { from { opacity: 0; transform: translateY(14px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes blob1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -40px) scale(1.1); } }
@keyframes blob2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 40px) scale(0.92); } }
@keyframes caretBlink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes ringBurst { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes letterIn { 0% { transform: translate(var(--lx), var(--ly)) scale(0.6) rotate(var(--lr)); opacity: 0; } 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; } }
@keyframes dotIn { 0% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } 55% { opacity: 1; } 100% { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.78); } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 40px color-mix(in oklch, var(--cab-gold) 18%, transparent), inset 0 0 30px color-mix(in oklch, var(--cab-gold) 10%, transparent); }
  50% { box-shadow: 0 0 80px color-mix(in oklch, var(--cab-gold) 32%, transparent), inset 0 0 50px color-mix(in oklch, var(--cab-gold) 18%, transparent); }
}

.blob { position: fixed; border-radius: 50%; pointer-events: none; }
.blob1 { top: -160px; left: -140px; width: 480px; height: 480px; background: color-mix(in oklch, var(--cab-gold) 12%, transparent); filter: blur(70px); animation: blob1 28s ease-in-out infinite; }
.blob2 { bottom: -200px; right: -120px; width: 560px; height: 560px; background: color-mix(in oklch, var(--cab-crimson) 22%, transparent); filter: blur(80px); animation: blob2 34s ease-in-out infinite; }

/* Gradient lives on a fixed viewport layer so scrolling moves only the content. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 70% at 18% 0%, color-mix(in oklch, var(--cab-gold) 10%, transparent), transparent 55%),
    radial-gradient(ellipse 100% 70% at 88% 100%, color-mix(in oklch, var(--cab-crimson) 30%, transparent), transparent 60%),
    linear-gradient(170deg, var(--cab-bg), var(--cab-bg-deep) 85%);
}
.page { min-height: 100vh; position: relative; display: flex; justify-content: center; }
.wrap { width: 100%; max-width: 980px; padding: clamp(40px, 8vh, 100px) 24px 96px; position: relative; }

.topbar { display: flex; justify-content: space-between; align-items: center; }
.kicker { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cab-gold); font-weight: 700; }
.lang-btn { background: transparent; border: 2px solid var(--cab-line-strong); border-radius: 999px; color: var(--cab-muted); font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; padding: 7px 14px; cursor: pointer; transition: all 0.3s; }
.lang-btn:hover { border-color: var(--cab-gold); color: var(--cab-gold); }

.title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(28px, 5.5vw, 42px); margin: 22px 0 10px; line-height: 1.15; color: var(--cab-ink); }
.subtitle { color: var(--cab-muted); margin: 0 0 30px; font-size: 15.5px; line-height: 1.65; text-wrap: pretty; }

.methods { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: all 0.3s; background: transparent; color: var(--cab-muted); border: 2px solid var(--cab-line-strong); min-height: 36px; }
.pill:not(.on):hover { border-color: var(--cab-gold); color: var(--cab-gold); }
.pill.on { background: var(--cab-gold); color: var(--cab-bg-deep); border-color: var(--cab-gold); }
/* Selected state carries a mark as well as a colour, for anyone who cannot see the fill. */
.pill.on::before { content: '\2022'; margin-right: 7px; font-size: 15px; line-height: 0; vertical-align: middle; }
.pill.lens { font-size: 12.5px; padding: 7px 16px; }
.method-desc { color: var(--cab-muted); font-size: 13.5px; line-height: 1.65; margin: 14px 0 36px; max-width: 54ch; text-wrap: pretty; min-height: 3.3em; }

.input-card { background: color-mix(in oklch, var(--cab-bg-deep) 60%, transparent); border: 1px solid var(--cab-line); border-radius: var(--radius-lg); padding: 10px 22px; }
.input-card input { width: 100%; background: transparent; border: none; padding: 10px 0; font-family: var(--font-heading); font-weight: 400; font-size: clamp(26px, 5.5vw, 40px); color: var(--cab-ink); outline: none; }

.letters { display: flex; flex-wrap: wrap; gap: 12px 8px; margin-top: 40px; }
.letter { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: letterIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.letter-circle { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in oklch, var(--cab-gold) 14%, transparent); border: 1px solid color-mix(in oklch, var(--cab-gold) 35%, transparent); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 20px; color: var(--cab-gold); text-transform: uppercase; }
.letter-val { font-size: 13px; font-weight: 700; color: var(--cab-muted); }

.steps { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; border-left: 2px solid var(--cab-crimson-soft); padding-left: 20px; }
.step { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; animation: riseIn 0.6s both; }
.step-expr { font-size: 15px; font-weight: 500; color: var(--cab-faint); line-height: 1.8; word-break: break-word; }
.step-eq { color: var(--cab-faint); }
.step-total { font-family: var(--font-heading); font-size: 22px; color: var(--cab-ink); }

.final { margin-top: 56px; animation: riseIn 0.8s both; animation-delay: var(--fd, 1.5s); }
.final-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.orb { position: relative; width: clamp(130px, 26vw, 180px); height: clamp(130px, 26vw, 180px); flex-shrink: 0; animation: popIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: var(--fd, 1.5s); }
.orb-burst { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--cab-gold); animation: ringBurst 1.4s ease-out both; animation-delay: var(--fd, 1.5s); pointer-events: none; }
.orb-dash { position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed color-mix(in oklch, var(--cab-gold) 45%, transparent); animation: spinSlow 40s linear infinite; pointer-events: none; }
.orb-arc { position: absolute; inset: 6px; border-radius: 50%; border: 1px solid transparent; border-top-color: color-mix(in oklch, var(--cab-gold) 70%, transparent); border-right-color: color-mix(in oklch, var(--cab-gold) 20%, transparent); animation: spinReverse 14s linear infinite; pointer-events: none; }
.orb-core { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklch, var(--cab-gold) 20%, transparent), color-mix(in oklch, var(--cab-gold) 5%, transparent)); border: 1px solid color-mix(in oklch, var(--cab-gold) 45%, transparent); display: flex; align-items: center; justify-content: center; animation: breathe 5s ease-in-out infinite; }
.num { position: relative; }
.ndot { position: absolute; aspect-ratio: 1; border-radius: 50%; background: var(--cab-gold); box-shadow: 0 0 8px color-mix(in oklch, var(--cab-gold) 70%, transparent); animation: dotIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both, twinkle 3.4s ease-in-out infinite; }

.final-info { flex: 1; min-width: 180px; }
.final-kicker { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--cab-gold); margin-bottom: 8px; }
.final-name { font-family: var(--font-heading); font-size: clamp(24px, 4.5vw, 32px); color: var(--cab-ink); }
.final-sephira { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cab-muted); margin-top: 6px; }
.final-sephira:empty { display: none; }
.keywords { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.kw { font-size: 12.5px; font-weight: 600; color: var(--cab-ink); background: color-mix(in oklch, var(--cab-crimson) 45%, transparent); border-radius: 999px; padding: 5px 14px; animation: popIn 0.5s both; }

.lenses { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.final-body { margin: 20px 0 0; font-size: 16px; line-height: 1.7; color: var(--cab-muted); max-width: 56ch; text-wrap: pretty; }

.shadow-block { margin-top: 34px; }
.shadow-title { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--cab-red-text); margin-bottom: 10px; }
.shadow-note { margin: 0 0 14px; font-size: 13.5px; line-height: 1.65; color: var(--cab-faint); font-style: italic; max-width: 54ch; text-wrap: pretty; }
.shadow-traits { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-tag { font-size: 12.5px; font-weight: 600; color: var(--cab-muted); border: 1px solid var(--cab-crimson-edge); border-radius: 999px; padding: 5px 14px; animation: popIn 0.5s both; }

.duo { display: flex; gap: 28px 48px; flex-wrap: wrap; margin-top: 36px; }
.duo-col { flex: 1; min-width: 240px; }
.duo-kicker { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--cab-gold); margin-bottom: 10px; }
.compat-body { margin: 0; font-size: 14px; line-height: 1.65; color: var(--cab-muted); text-wrap: pretty; }
.famous-names { margin: 0; font-size: 14px; line-height: 1.65; color: var(--cab-ink); }
.famous-note { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--cab-faint); font-style: italic; }

.cards { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.subcard { flex: 1; min-width: 230px; background: color-mix(in oklch, var(--cab-bg-deep) 60%, transparent); border: 1px solid var(--cab-line); border-radius: var(--radius-lg); padding: 22px 24px; animation: riseIn 0.7s both; }
.subcard-label { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.subcard-label.gold { color: var(--cab-gold); }
.subcard-label.red { color: var(--cab-red-text); }
.subcard-row { display: flex; align-items: center; gap: 16px; }
.subcard-num { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 24px; }
.subcard-num.gold { border: 1px solid color-mix(in oklch, var(--cab-gold) 50%, transparent); background: color-mix(in oklch, var(--cab-gold) 10%, transparent); color: var(--cab-gold); }
.subcard-num.red { border: 1px solid var(--cab-crimson-edge); background: color-mix(in oklch, var(--cab-crimson) 22%, transparent); color: var(--cab-ink); }
.subcard-name { font-family: var(--font-heading); font-size: 19px; color: var(--cab-ink); }
.subcard-sephira { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cab-faint); margin-top: 2px; }
.subcard-keys { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; margin-top: 4px; }
.subcard-keys.gold { color: var(--cab-gold); }
.subcard-keys.red { color: var(--cab-red-text); }
.subcard-desc { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--cab-faint); font-style: italic; }
.subcard-body { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--cab-muted); text-wrap: pretty; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn-gold { background: transparent; border: 2px solid var(--cab-gold); border-radius: 999px; color: var(--cab-gold); font-family: var(--font-body); font-weight: 600; font-size: 13.5px; padding: 10px 22px; cursor: pointer; transition: all 0.3s; }
.btn-gold:hover { background: color-mix(in oklch, var(--cab-gold) 15%, transparent); }
.btn-dim { background: transparent; border: 2px solid var(--cab-line-strong); border-radius: 999px; color: var(--cab-muted); font-family: var(--font-body); font-weight: 600; font-size: 13.5px; padding: 10px 22px; cursor: pointer; transition: all 0.3s; }
.btn-dim:hover { border-color: var(--cab-gold); color: var(--cab-gold); }

.hint { margin-top: 44px; color: var(--cab-faint); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.caret { display: inline-block; width: 3px; height: 18px; border-radius: 2px; background: var(--cab-gold); animation: caretBlink 1.2s infinite; }

.footer { margin-top: 88px; border-top: 1px solid var(--cab-line); padding-top: 24px; }
.disclaimer { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--cab-faint); max-width: 60ch; text-wrap: pretty; }
.footer-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 12.5px; letter-spacing: 0.08em; color: var(--cab-faint); }
.dot-sep { color: var(--cab-faint); }
.terms-link { background: none; border: none; padding: 5px 0; min-height: 24px; font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.08em; color: var(--cab-gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.terms-link:hover { color: oklch(0.82 0.11 85); }

/* Consent bar. Not a modal: it never traps focus and never blocks the page, so
   a visitor who ignores it can still read and use every tool. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 18px 22px; background: var(--cab-bg-deep); border-top: 1px solid var(--cab-line-strong); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45); animation: riseIn 0.3s both; }
.consent[hidden] { display: none; }
.consent-text { flex: 1 1 340px; max-width: 70ch; }
.consent-title { font-family: var(--font-heading); font-size: 16px; color: var(--cab-ink); margin: 0 0 6px; }
.consent-body { font-size: 13.5px; line-height: 1.65; color: var(--cab-muted); margin: 0; text-wrap: pretty; }
.consent-status { font-size: 12.5px; line-height: 1.6; color: var(--cab-gold); margin: 8px 0 0; }
.consent-status:empty { display: none; }
.consent-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
/* Decline is a real button, not a de-emphasised link: refusing must not read as
   the harder path. */
.btn-plain { background: transparent; border: 2px solid var(--cab-line-strong); border-radius: 999px; color: var(--cab-ink); font-family: var(--font-body); font-weight: 600; font-size: 13.5px; padding: 10px 22px; cursor: pointer; transition: all 0.3s; }
.btn-plain:hover { border-color: var(--cab-ink); }
@media (max-width: 620px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
}

.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 10, 20, 0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50; animation: riseIn 0.3s both; }
.modal { background: var(--cab-bg-deep); border: 1px solid var(--cab-line); border-radius: var(--radius-lg); padding: 32px 34px; max-width: 560px; max-height: 80vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.modal-title { font-family: var(--font-heading); font-size: 24px; color: var(--cab-ink); margin-bottom: 18px; }
.modal p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--cab-muted); text-wrap: pretty; }
.modal .btn-gold { margin-top: 10px; padding: 9px 22px; }

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

/* ============================================================
   Shared chrome — skip link, navigation, breadcrumbs
   ============================================================ */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cab-gold); color: var(--cab-bg-deep);
  font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-radius: 999px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: var(--cab-bg-deep); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand .kicker { transition: color 0.3s; }
.brand:hover .kicker { color: oklch(0.82 0.11 85); }

.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-toggle { display: none; }

/* Own row, so DOM order, visual order and focus order stay identical. */
.site-nav { flex-basis: 100%; }
.site-nav ul { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; margin: 20px 0 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--cab-muted);
  text-decoration: none; border: 1px solid transparent; transition: all 0.3s;
}
.site-nav a:hover { color: var(--cab-gold); border-color: var(--cab-line-strong); }
.site-nav a[aria-current='page'] {
  color: var(--cab-gold); border-color: var(--cab-gold);
  background: color-mix(in oklch, var(--cab-gold) 10%, transparent);
}
/* Current page is marked with a rule as well as a colour. */
.site-nav a[aria-current='page']::before { content: '\2014'; margin-right: 7px; opacity: 0.7; }

@media (max-width: 620px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 2px solid var(--cab-line-strong); border-radius: 999px;
    color: var(--cab-muted); font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
    letter-spacing: 0.08em; padding: 7px 15px; cursor: pointer; min-height: 36px;
  }
  .nav-toggle[aria-expanded='true'] { border-color: var(--cab-gold); color: var(--cab-gold); }
  .site-nav[data-collapsed='true'] { display: none; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { display: block; padding: 11px 14px; }
}

.breadcrumb { margin: 0 0 18px; font-size: 12.5px; color: var(--cab-faint); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: '\203A'; margin-left: 8px; color: var(--cab-faint); }
.breadcrumb a { color: var(--cab-muted); text-decoration: none; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--cab-gold); text-decoration: underline; }

/* ============================================================
   Forms
   ============================================================ */

.field { margin-top: 26px; }
.field-label {
  display: block; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--cab-gold); margin-bottom: 9px;
}
.field-hint { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--cab-muted); max-width: 56ch; text-wrap: pretty; }
.field-help { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--cab-faint); max-width: 58ch; text-wrap: pretty; }

.text-input, .date-input, .time-input {
  width: 100%; background: color-mix(in oklch, var(--cab-bg-deep) 60%, transparent);
  border: 2px solid var(--cab-line-strong); border-radius: 18px;
  padding: 13px 18px; color: var(--cab-ink); font-family: var(--font-body);
  font-size: 17px; min-height: 48px;
}
.text-input:hover, .date-input:hover, .time-input:hover { border-color: var(--cab-gold-deep); }
.date-input, .time-input { max-width: 260px; font-variant-numeric: tabular-nums; color-scheme: dark; }
/* Browser autofill repaints inputs white; hold the dark surface and readable ink. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cab-ink);
  -webkit-box-shadow: 0 0 0 1000px oklch(0.16 0.04 290) inset;
  caret-color: var(--cab-gold);
}

.fieldset { border: none; margin: 26px 0 0; padding: 0; }
.fieldset legend { padding: 0; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--cab-gold); margin-bottom: 10px; }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.form-row > * { flex: 1; min-width: 220px; position: relative; }
.form-row .btn-dim, .form-row .btn-gold { flex: 0 0 auto; min-width: 0; }
.form-row > .coordinate-field { flex: 0 1 180px; min-width: 150px; }
.coordinate-input { font-variant-numeric: tabular-nums; }

.error-text {
  margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; font-weight: 600;
  color: var(--cab-red-text); display: flex; gap: 8px; align-items: flex-start;
}
.error-text::before { content: '\26A0'; font-size: 14px; line-height: 1.5; }
.error-text:empty { display: none; }

.notice {
  margin-top: 22px; border: 1px solid var(--cab-line-strong); border-left: 3px solid var(--cab-gold);
  border-radius: 14px; padding: 14px 18px; background: color-mix(in oklch, var(--cab-bg-deep) 55%, transparent);
  font-size: 13.5px; line-height: 1.65; color: var(--cab-muted); max-width: 62ch; text-wrap: pretty;
}
.notice:empty { display: none; }
.notice.warn { border-left-color: var(--cab-red-text); }

/* ============================================================
   Result section navigator
   ============================================================ */

.section-nav, .natal-bar.is-sticky {
  position: sticky; top: 0; z-index: 20; margin: 34px 0 0;
  background: color-mix(in oklch, var(--cab-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--cab-line); border-bottom: 1px solid var(--cab-line);
  padding: 9px 0;
}
.section-nav ul, .natal-bar .natal-nav {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0 2px;
  overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.section-nav li, .natal-bar .natal-nav .natal-jump { scroll-snap-align: start; }
.section-nav a, .natal-bar .natal-nav .natal-jump {
  display: inline-block; white-space: nowrap; padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--cab-muted);
  text-decoration: none; border: 1px solid transparent; min-height: 32px;
}
.section-nav a:hover, .natal-bar .natal-nav .natal-jump:hover { color: var(--cab-gold); }
.section-nav a[aria-current='true'], .natal-bar .natal-nav .natal-jump[aria-current='true'] {
  color: var(--cab-gold); border-color: var(--cab-gold);
  background: color-mix(in oklch, var(--cab-gold) 10%, transparent);
}
.section-nav a[aria-current='true']::before, .natal-bar .natal-nav .natal-jump[aria-current='true']::before { content: '\2022'; margin-right: 6px; line-height: 0; vertical-align: middle; }

/* Anchored sections must clear the sticky navigator when jumped to. */
[id^='sec-'] { scroll-margin-top: 74px; }

/* ============================================================
   Tables — comparison data
   ============================================================ */

.table-scroll { overflow-x: auto; margin-top: 22px; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table caption { text-align: left; font-size: 13px; color: var(--cab-faint); padding-bottom: 12px; text-wrap: pretty; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--cab-line); vertical-align: top; }
.data-table thead th {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--cab-gold); border-bottom-color: var(--cab-line-strong);
}
.data-table tbody th { font-family: var(--font-heading); font-weight: 400; font-size: 17px; color: var(--cab-ink); }
.data-table td { color: var(--cab-muted); }
.data-table .num-cell { font-family: var(--font-heading); font-size: 21px; color: var(--cab-gold); font-variant-numeric: tabular-nums; }
.data-table .raw-cell { font-variant-numeric: tabular-nums; color: var(--cab-muted); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; }

.letter-table { min-width: 0; }
.letter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.letter-grid li {
  border: 1px solid var(--cab-line); border-radius: 12px; padding: 9px 4px; text-align: center;
  background: color-mix(in oklch, var(--cab-bg-deep) 50%, transparent);
}
.letter-grid .lg-ch { font-family: var(--font-heading); font-size: 17px; color: var(--cab-ink); display: block; }
.letter-grid .lg-val { font-size: 12.5px; font-weight: 700; color: var(--cab-gold); display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ============================================================
   Editorial cards — the mobile form of every comparison table
   ============================================================ */

.stack-cards { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 760px) { .stack-cards.cols-2 { grid-template-columns: 1fr 1fr; } }

.panel {
  background: color-mix(in oklch, var(--cab-bg-deep) 60%, transparent);
  border: 1px solid var(--cab-line); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
#results > .panel-kicker { margin-top: 34px; }
.panel-kicker { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--cab-gold); margin: 0 0 10px; }
.panel-title { font-family: var(--font-heading); font-weight: 400; font-size: 21px; color: var(--cab-ink); margin: 0 0 8px; }
.panel-body { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--cab-muted); text-wrap: pretty; }
.panel-body + .panel-body { margin-top: 12px; }
.panel-num {
  font-family: var(--font-heading); font-size: 40px; color: var(--cab-gold);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.panel-row { display: flex; align-items: center; gap: 18px; }
.panel-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--cab-faint); }

.badge {
  display: inline-block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--cab-gold); color: var(--cab-gold);
}
.badge.quiet { border-color: var(--cab-line-strong); color: var(--cab-muted); }

/* Relation tone is carried by a word and a border weight, never colour alone. */
.tone { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.tone::before { content: ''; width: 22px; height: 0; border-top: 3px solid currentColor; }
.tone-same { color: var(--cab-gold); }
.tone-harmonious { color: var(--cab-gold); }
.tone-harmonious::before { border-top-style: solid; width: 16px; }
.tone-neutral { color: var(--cab-muted); }
.tone-neutral::before { border-top-style: dotted; }
.tone-friction { color: var(--cab-red-text); }
.tone-friction::before { border-top-style: dashed; }

/* ============================================================
   Synastry — chart points, the aspect grid
   ============================================================ */

.chart-fieldset { margin-top: 22px; border-top: 1px solid var(--cab-line); padding-top: 18px; }
.chart-fieldset legend {
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--cab-gold); padding: 0;
}

.point-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.point-list li { display: flex; align-items: baseline; gap: 14px; }
.point-list .pt-num {
  font-family: var(--font-heading); font-size: 26px; color: var(--cab-gold);
  line-height: 1; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; flex: none;
}
.point-list .pt-body { display: block; }
.point-list .pt-label { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13.5px; color: var(--cab-ink); }
.point-list .pt-master { font-size: 9.5px; letter-spacing: 0.14em; padding: 2px 8px; font-weight: 700; }
.point-list .pt-desc { display: block; font-size: 12.5px; line-height: 1.6; color: var(--cab-faint); margin-top: 3px; text-wrap: pretty; }

/* The relation in a cell is carried by a glyph and a border, never colour
   alone; the legend above the grid spells each glyph out, and every cell also
   carries the word itself for assistive technology. */
.ag-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.ag-legend li { display: inline-flex; align-items: center; gap: 9px; }
.ag-key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px; font-size: 15px; font-weight: 700;
  border: 1px solid var(--cab-line-strong); background: color-mix(in oklch, var(--cab-bg-deep) 60%, transparent);
}
.ag-key-word { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--cab-muted); }

.aspect-grid { min-width: 620px; table-layout: fixed; }
.aspect-grid th, .aspect-grid td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--cab-line); }
.aspect-grid thead th, .aspect-grid tbody th {
  font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cab-muted); text-align: center;
}
.aspect-grid tbody th { text-align: right; padding-right: 16px; }
.aspect-grid .ag-corner { border-bottom-color: var(--cab-line-strong); }
.aspect-grid .ag-head-label { display: block; text-wrap: balance; }
.aspect-grid .ag-head-num {
  display: block; font-family: var(--font-heading); font-size: 21px; color: var(--cab-gold);
  margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: 0;
}

.ag-cell { vertical-align: middle; }
.ag-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; font-size: 18px; font-weight: 700;
  border: 1px solid var(--cab-line-strong); background: color-mix(in oklch, var(--cab-bg-deep) 50%, transparent);
}
.ag-same .ag-mark, .ag-same.ag-key { border-color: var(--cab-gold); color: var(--cab-gold); background: color-mix(in oklch, var(--cab-gold) 16%, transparent); }
.ag-harmonious .ag-mark, .ag-harmonious.ag-key { border-color: var(--cab-gold-deep); color: var(--cab-gold); }
.ag-neutral .ag-mark, .ag-neutral.ag-key { border-style: dotted; color: var(--cab-faint); }
.ag-friction .ag-mark, .ag-friction.ag-key { border-style: dashed; border-color: var(--cab-crimson-edge); color: var(--cab-red-text); }
/* The mirror axis — the same point on both sides — never rests on colour: the
   tint is doubled by an inset rule, and every mirror cell names the axis in the
   text only assistive technology reads. */
.ag-cell.ag-mirror {
  background: color-mix(in oklch, var(--cab-bg-deep) 45%, transparent);
  box-shadow: inset 0 0 0 1px var(--cab-line);
}

.aspect-head { color: var(--cab-ink); letter-spacing: 0.04em; text-transform: none; font-size: 13px; overflow-wrap: anywhere; }

/* ---- the wheel: the aspect grid as a chart --------------------------------
   Relation is carried by weight and dash pattern as well as colour, matching
   the .tone convention: identical is heavy, resonant is light, clashing is
   dashed. A reader who sees no colour still reads three distinct lines. */
.wheel { display: block; width: 100%; max-width: 520px; margin: 22px auto 0; }
.wheel-band { fill: none; stroke: color-mix(in oklch, var(--cab-bg-deep) 55%, transparent); }
.wheel-ring { fill: none; stroke: var(--cab-line); stroke-width: 1; }
.wheel-ring-mid { stroke-dasharray: 3 5; }
.wheel-divider { stroke: var(--cab-line); stroke-width: 1; }
.wheel-sector-num {
  fill: var(--cab-muted); font-family: var(--font-heading); font-size: 17px;
  dominant-baseline: middle; font-variant-numeric: tabular-nums;
}

.wheel-point circle { fill: var(--cab-bg-deep); stroke: var(--cab-line-strong); stroke-width: 1; }
.wheel-point.is-master circle { stroke: var(--cab-gold); }
.wheel-point .wp-facet { fill: var(--cab-faint); font-size: 7px; font-weight: 700; letter-spacing: 0.05em; }
.wheel-point .wp-num { fill: var(--cab-gold); font-family: var(--font-heading); font-size: 12px; }
/* The outer ring is the second person; a dashed glyph edge tells the two rings
   apart without relying on position alone. */
.wheel-point.wheel-b circle { stroke-dasharray: 3 2.5; }

.wheel-chord { fill: none; }
.chord-same { stroke: var(--cab-gold); stroke-width: 2.4; }
.chord-harmonious { stroke: var(--cab-gold-deep); stroke-width: 1.3; }
.chord-friction { stroke: var(--cab-crimson-edge); stroke-width: 1.3; stroke-dasharray: 5 4; }

.wheel-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.wheel-legend li { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--cab-muted); }
.wheel-legend .wl-swatch { width: 26px; height: 0; border-top: 2px solid var(--cab-line-strong); }
.wheel-legend .wl-same { border-top-width: 3px; border-top-color: var(--cab-gold); }
.wheel-legend .wl-harmonious { border-top-color: var(--cab-gold-deep); }
.wheel-legend .wl-friction { border-top-style: dashed; border-top-color: var(--cab-red-text); }
.wheel-legend .astro-key-conjunction { border-top-width: 3px; border-top-color: var(--cab-gold); }
.wheel-legend .astro-key-sextile, .wheel-legend .astro-key-trine { border-top-color: var(--cab-gold-deep); }
.wheel-legend .astro-key-square { border-top-style: dashed; border-top-color: var(--cab-crimson-edge); }
.wheel-legend .astro-key-opposition { border-top-style: dashed; border-top-color: var(--cab-red-text); }
.wheel-legend .wl-ring { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--cab-line-strong); }
.wheel-legend .wl-ring-b { border-style: dashed; }

/* The planetary biwheel uses actual ecliptic longitude. The outer zodiac band
   is deliberately denser than the number wheel: 5° ticks, 30° sign divisions,
   two planet tracks and the aspect figure inside. */
.astro-wheel { max-width: 660px; filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.22)); }
.astro-sky {
  fill: color-mix(in oklch, var(--cab-bg-deep) 78%, transparent);
  stroke: var(--cab-gold-deep); stroke-width: 1.5;
}
.astro-ring { fill: none; stroke: var(--cab-line); stroke-width: 1; }
.astro-ring-zodiac { stroke: var(--cab-line-strong); }
.astro-ring-b { stroke-dasharray: 3 4; }
.astro-ring-chord { stroke-dasharray: 2 7; opacity: 0.7; }
.astro-tick, .astro-sign-divider { stroke: var(--cab-line); stroke-width: 0.8; }
.astro-tick.is-medium { stroke: var(--cab-line-strong); }
.astro-tick.is-major, .astro-sign-divider { stroke: var(--cab-gold-deep); stroke-width: 1.25; }
.astro-css-foreign { overflow: visible; pointer-events: none; }
.astro-css-foreign.is-interactive { pointer-events: auto; overflow: visible; }
.astro-css-icon {
  box-sizing: border-box; display: grid; place-items: center; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; appearance: none; background: transparent;
  color: var(--cab-muted); font-family: 'Times New Roman', 'Noto Sans Symbols 2', 'Segoe UI Symbol', serif;
  font-style: normal; line-height: 1; text-rendering: geometricPrecision;
  transform-origin: center; will-change: transform, filter, opacity;
}
.astro-css-icon::before { display: block; line-height: 1; }

/* CSS-generated astronomical marks: the wheel contains no icon text, image or
   icon path. Keeping the Unicode assignments here also prevents platform emoji
   styling from leaking into the chart's geometry. */
.astro-css-aries::before { content: '\2648\FE0E'; }
.astro-css-taurus::before { content: '\2649\FE0E'; }
.astro-css-gemini::before { content: '\264A\FE0E'; }
.astro-css-cancer::before { content: '\264B\FE0E'; }
.astro-css-leo::before { content: '\264C\FE0E'; }
.astro-css-virgo::before { content: '\264D\FE0E'; }
.astro-css-libra::before { content: '\264E\FE0E'; }
.astro-css-scorpio::before { content: '\264F\FE0E'; }
.astro-css-sagittarius::before { content: '\2650\FE0E'; }
.astro-css-capricorn::before { content: '\2651\FE0E'; }
.astro-css-aquarius::before { content: '\2652\FE0E'; }
.astro-css-pisces::before { content: '\2653\FE0E'; }
.astro-css-sun::before { content: '\2609\FE0E'; }
.astro-css-moon::before { content: '\263D\FE0E'; }
.astro-css-mercury::before { content: '\263F\FE0E'; }
.astro-css-venus::before { content: '\2640\FE0E'; }
.astro-css-mars::before { content: '\2642\FE0E'; }
.astro-css-jupiter::before { content: '\2643\FE0E'; }
.astro-css-saturn::before { content: '\2644\FE0E'; }
.astro-css-uranus::before { content: '\2645\FE0E'; }
.astro-css-neptune::before { content: '\2646\FE0E'; }
.astro-css-pluto::before { content: '\2647\FE0E'; }
.astro-css-northNode::before { content: '\260A\FE0E'; }
.astro-css-lilith::before { content: '\26B8\FE0E'; }
.astro-css-chiron::before { content: '\26B7\FE0E'; }

.astro-css-zodiac {
  font-size: 28px; font-weight: 400;
  filter: drop-shadow(0 0 7px color-mix(in oklch, currentColor 22%, transparent));
  animation: astroZodiacBreathe 8s ease-in-out var(--astro-delay) infinite;
}
.astro-css-zodiac::before { transform: translateY(-0.02em); }
.astro-css-zodiac.astro-element-0 { color: var(--cab-red-text); }
.astro-css-zodiac.astro-element-1 { color: var(--cab-gold); }
.astro-css-zodiac.astro-element-2 { color: var(--cab-ink); }
.astro-css-zodiac.astro-element-3 { color: var(--cab-muted); }
.astro-sign-name-path { fill: none; stroke: none; }
.astro-sign-name {
  fill: var(--cab-muted); font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.astro-sign-name.astro-element-0 { fill: var(--cab-red-text); }
.astro-sign-name.astro-element-1 { fill: var(--cab-gold); }
.astro-sign-name.astro-element-2 { fill: var(--cab-ink); }
.astro-sign-name.astro-element-3 { fill: var(--cab-muted); }
.astro-planet-leader { stroke: var(--cab-line-strong); stroke-width: 0.8; opacity: 0.75; }
.astro-css-planet {
  position: relative;
  color: var(--cab-ink); font-size: 21px; font-weight: 400;
  filter: drop-shadow(0 0 5px color-mix(in oklch, var(--cab-gold) 18%, transparent));
  animation: astroPlanetFloat 7.5s ease-in-out var(--astro-delay) infinite;
  cursor: pointer; transition: color 0.25s, opacity 0.25s, filter 0.25s;
}
.astro-css-planet::before { transform: translateY(-0.02em); transition: transform 0.25s; }
.astro-css-planet:hover::before, .astro-css-planet:focus-visible::before { transform: translateY(-0.02em) scale(1.16); }
.astro-person-b .astro-css-planet { color: var(--cab-gold); }
.astro-css-planet.is-retrograde::after {
  content: 'R'; position: absolute; top: -5px; right: -4px; display: grid; place-items: center;
  width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--cab-crimson-edge);
  background: var(--cab-bg-deep); color: var(--cab-red-text);
  font: 700 7px/1 var(--font-body); letter-spacing: 0;
}
.astro-chord { fill: none; stroke-width: 1.25; opacity: 0.7; transition: opacity 0.3s, stroke-width 0.3s, filter 0.3s; }
.astro-chord-conjunction { stroke: var(--cab-gold); stroke-width: 2; }
.astro-chord-sextile, .astro-chord-trine { stroke: var(--cab-gold-deep); }
.astro-chord-square { stroke: var(--cab-crimson-edge); stroke-dasharray: 5 3; }
.astro-chord-opposition { stroke: var(--cab-red-text); stroke-dasharray: 9 4; }
.astro-planet .astro-planet-leader { transition: opacity 0.3s, stroke-width 0.3s, stroke 0.3s; }
.astro-planet.is-muted .astro-css-icon { opacity: 0.2; filter: grayscale(0.65); }
.astro-planet.is-muted .astro-planet-leader { opacity: 0.12; }
.astro-planet.is-selected .astro-css-planet {
  color: var(--cab-ink); filter: drop-shadow(0 0 8px var(--cab-gold));
}
.astro-planet.is-selected .astro-planet-leader { stroke: var(--cab-gold); stroke-width: 2.2; opacity: 1; }
.astro-chord.is-muted { opacity: 0.07; }
.astro-chord.is-connected {
  opacity: 1; stroke-width: 3; filter: drop-shadow(0 0 4px color-mix(in oklch, var(--cab-gold) 48%, transparent));
  animation: astroAspectFocus 2.8s ease-in-out infinite;
}
.astro-center { fill: var(--cab-bg); stroke: var(--cab-gold-deep); stroke-width: 1; }
.astro-css-center {
  color: var(--cab-gold); font-size: 29px;
  filter: drop-shadow(0 0 9px color-mix(in oklch, var(--cab-gold) 28%, transparent));
  animation: astroMoonGlow 9s ease-in-out var(--astro-delay) infinite;
}

@keyframes astroZodiacBreathe {
  0%, 100% { transform: translateY(0) scale(0.97); opacity: 0.84; filter: brightness(0.96); }
  50% { transform: translateY(-1.2px) scale(1.035); opacity: 1; filter: brightness(1.12); }
}
@keyframes astroPlanetFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1.35px) scale(1.025); }
}
@keyframes astroMoonGlow {
  0%, 100% { transform: scale(0.97) rotate(-1.5deg); opacity: 0.88; }
  50% { transform: scale(1.045) rotate(1.5deg); opacity: 1; }
}
@keyframes astroAspectFocus {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

/* ---- birth-city suggestions ---------------------------------------------- */
.city-suggestions {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 5px);
  margin: 0; padding: 5px; list-style: none;
  max-height: 274px; overflow-y: auto;
  border: 1px solid var(--cab-line-strong); border-radius: 16px;
  background: color-mix(in oklch, var(--cab-bg-deep) 96%, transparent);
  box-shadow: 0 16px 38px rgba(6, 6, 14, 0.55);
  backdrop-filter: blur(7px);
}
.city-suggestions[hidden] { display: none; }
.city-suggestion {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 11px; border-radius: 11px; cursor: pointer;
}
.city-suggestion:hover, .city-suggestion.is-active {
  background: color-mix(in oklch, var(--cab-gold) 15%, transparent);
}
.city-suggestion .cs-name { font-size: 14px; color: var(--cab-ink); }
.city-suggestion .cs-place { font-size: 12px; color: var(--cab-faint); }
.city-credit { font-size: 12.5px; color: var(--cab-faint); }

/* ---- planet balloon: the first thing a planet click shows ------------------
   A light, non-modal popover anchored to the glyph. It deliberately does not
   dim or cover the wheel — the point of clicking a planet is usually to read
   its position while still looking at the chart. The full modal stays one
   button away. */
.astro-balloon {
  position: absolute;
  z-index: 60;
  width: min(290px, calc(100vw - 20px));
  padding: 15px 17px 15px;
  border: 1px solid var(--cab-line-strong);
  border-radius: 18px;
  background: color-mix(in oklch, var(--cab-bg-deep) 94%, transparent);
  box-shadow: 0 18px 42px rgba(6, 6, 14, 0.55);
  backdrop-filter: blur(7px);
  animation: riseIn 0.18s both;
}
.astro-balloon:focus-visible { outline: 3px solid var(--cab-gold); outline-offset: 3px; }

/* The pointer. --balloon-arrow tracks the glyph even when the balloon has been
   clamped against a viewport edge. */
.astro-balloon::before,
.astro-balloon::after {
  content: '';
  position: absolute;
  left: var(--balloon-arrow, 50%);
  width: 0; height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
.astro-balloon::before { bottom: -9px; border-top: 9px solid var(--cab-line-strong); }
.astro-balloon::after { bottom: -7px; border-top: 9px solid var(--cab-bg-deep); }
.astro-balloon.is-below::before { bottom: auto; top: -9px; border-top: none; border-bottom: 9px solid var(--cab-line-strong); }
.astro-balloon.is-below::after { bottom: auto; top: -7px; border-top: none; border-bottom: 9px solid var(--cab-bg-deep); }

.astro-balloon-close {
  position: absolute; top: 7px; right: 9px;
  width: 26px; height: 26px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 50%;
  color: var(--cab-faint); font-size: 17px; line-height: 1; cursor: pointer;
}
.astro-balloon-close:hover { color: var(--cab-gold); border-color: var(--cab-line-strong); }

.astro-balloon-kicker {
  margin: 0 26px 7px 0;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--cab-gold); text-wrap: pretty;
}
.astro-balloon-position {
  margin: 0; display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-heading); font-size: 19px; color: var(--cab-ink);
  font-variant-numeric: tabular-nums;
}
.astro-balloon-glyph { font-size: 17px; color: var(--cab-gold); }
.astro-balloon-house { margin: 7px 0 0; font-size: 12.5px; color: var(--cab-muted); }
.astro-balloon-house.is-unknown { color: var(--cab-faint); font-style: italic; }
.astro-balloon-aspect {
  margin: 11px 0 0; padding-top: 11px;
  border-top: 1px solid var(--cab-line);
  font-size: 12.5px; line-height: 1.5; color: var(--cab-muted); text-wrap: pretty;
}
.astro-balloon-aspect.is-empty { color: var(--cab-faint); font-style: italic; }
.astro-balloon-more { margin: 5px 0 0; font-size: 11.5px; color: var(--cab-faint); }
.astro-balloon-expand { margin-top: 13px; width: 100%; padding: 8px 14px; font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  .astro-balloon { animation: none; }
}

.astro-planet-modal { position: relative; width: min(620px, 100%); max-width: 620px; }
.astro-modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 2; display: grid; place-items: center;
  width: 38px; height: 38px; border: 1px solid var(--cab-line-strong); border-radius: 50%;
  background: color-mix(in oklch, var(--cab-bg) 82%, transparent); color: var(--cab-muted);
  font: 300 26px/1 var(--font-body); cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.astro-modal-close:hover { color: var(--cab-gold); border-color: var(--cab-gold); }
.astro-modal-heading {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 18px;
  padding-right: 34px; margin-bottom: 16px;
}
.astro-modal-heading img {
  display: block; width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 8px 13px rgba(0, 0, 0, 0.45));
}
.astro-planet-modal .modal-title { margin: 0 0 6px; line-height: 1.2; text-wrap: balance; }
.astro-planet-modal .panel-kicker { margin-bottom: 5px; }
.astro-planet-modal .astro-modal-degree { margin: 0; color: var(--cab-gold); font-variant-numeric: tabular-nums; }
.astro-house-note { margin: 10px 0 20px; max-width: none; }
.astro-modal-section-title {
  margin: 22px 0 8px; color: var(--cab-gold); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.astro-modal-aspects { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.astro-modal-aspects li {
  padding: 12px 14px; border: 1px solid var(--cab-line); border-radius: 14px;
  background: color-mix(in oklch, var(--cab-bg) 35%, transparent);
}
.astro-modal-aspects strong { display: block; color: var(--cab-ink); font-size: 13.5px; line-height: 1.45; }
.astro-modal-aspects span { display: block; margin-top: 5px; color: var(--cab-muted); font-size: 12.5px; line-height: 1.55; }
.astro-modal-empty { color: var(--cab-faint); font-style: italic; }

.planet-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.planet-list li { display: grid; grid-template-columns: 28px minmax(92px, 1fr) auto; align-items: baseline; gap: 9px; }
.planet-glyph { font-family: 'Times New Roman', serif; font-size: 21px; color: var(--cab-gold); text-align: center; }
.planet-name { font-size: 13px; font-weight: 700; color: var(--cab-ink); }
.planet-position { font-size: 12.5px; color: var(--cab-muted); font-variant-numeric: tabular-nums; text-align: right; }
.planet-retro { color: var(--cab-red-text); font-weight: 700; }
.planet-house { color: var(--cab-faint); font-weight: 600; }

.astro-aspect { border-left-width: 3px; }
.astro-aspect-merged { border-left-color: var(--cab-gold); }
.astro-aspect-supportive { border-left-color: var(--cab-gold-deep); }
.astro-aspect-challenging { border-left-color: var(--cab-crimson-edge); }
.astro-aspect-polar { border-left-color: var(--cab-red-text); border-left-style: dashed; }
.astro-aspect-symbol { font-family: 'Times New Roman', serif; font-size: 19px; color: var(--cab-gold); padding: 0 5px; }
.astro-aspect-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.astro-aspect-portraits {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 12px; margin: 10px 0 18px;
}
.astro-portrait { min-width: 0; margin: 0; text-align: center; }
.astro-portrait-glow {
  position: relative; width: 104px; height: 104px; max-width: 100%; margin: 0 auto;
  display: grid; place-items: center;
}
.astro-portrait-glow::before {
  content: ''; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--cab-gold) 22%, transparent), transparent 72%);
  box-shadow: 0 0 30px color-mix(in oklch, var(--cab-gold) 12%, transparent);
}
.astro-planet-photo {
  position: relative; z-index: 1; display: block; width: 96px; height: 96px;
  object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.48));
}
.astro-portrait figcaption { margin-top: 5px; line-height: 1.35; }
.astro-portrait-person {
  display: block; max-width: 16ch; margin: 0 auto; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cab-faint);
}
.astro-portrait-body { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--cab-ink); }
.astro-photo-aspect {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--cab-line-strong); background: var(--cab-bg-deep);
  color: var(--cab-gold); font-family: 'Times New Roman', serif; font-size: 23px;
}

/* ------------------------------------------------------------
   Natal report — chart data, balance, angle / planet / point cards,
   aspect essays. Cards reuse .panel; section titles reuse .panel-kicker.
   ------------------------------------------------------------ */
.natal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
/* Chart bar: the chart title plus the report's section links. It shares the
   sticky glass and pill links of .section-nav above, and becomes sticky (within
   #chart, so it leaves with the chart) only once the links exist. The links
   scroll sideways, with a fade at the right edge hinting at the rest. */
.natal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin: 44px 0 0; }
.natal-bar.is-sticky { margin-top: 44px; }
.natal-bar-title { margin: 0; }
.natal-bar-nav { min-width: 0; max-width: 100%; }
.natal-bar .natal-nav {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  padding: 6px 28px 6px 5px; flex-wrap: nowrap;
}
/* Anything scrolled to by Tab clears the bar by its measured height (set on the
   root from birth-date.js) while the bar is sticky. Jump buttons scroll by hand. */
html:has(.natal-bar.is-sticky) { scroll-padding-top: calc(var(--natal-bar-h, 64px) + 16px); }
.natal-jump {
  background: none; border: none; padding: 0; font: inherit; color: var(--cab-gold); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.natal-jump:hover { color: oklch(0.82 0.11 85); }
.natal-nav .natal-jump {
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--cab-ink);
  border: 1px solid var(--cab-line-strong); border-radius: 999px; padding: 6px 13px; min-height: 32px;
}
.natal-nav .natal-jump:hover { border-color: var(--cab-gold); color: var(--cab-gold); }
.natal-card:focus-visible, .natal-aspect:focus-visible { border-radius: var(--radius-lg); }
/* Summary panels above the report: entries keep their list styling; the underline marks them as jumps. */
.natal-summary .natal-jump {
  color: inherit; font-weight: inherit; text-align: left;
  text-decoration-color: var(--cab-line-strong); text-decoration-thickness: 1px;
}
.natal-summary .natal-jump.planet-name { font-size: 13px; font-weight: 700; color: var(--cab-ink); }
.natal-summary .natal-jump.planet-house { color: var(--cab-faint); font-weight: 600; }
.natal-summary .natal-jump:hover { color: var(--cab-gold); text-decoration-color: currentColor; }
.natal-data { margin-bottom: 8px; }
.natal-data dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; margin: 0; }
.natal-data dt { font-size: 12.5px; color: var(--cab-faint); }
.natal-data dd { margin: 0; font-size: 13.5px; color: var(--cab-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.natal-section { margin-top: 46px; }
.natal-section-title { margin-bottom: 8px; }
.natal-section > .natal-card + .natal-card { margin-top: 16px; }
.natal-section > .natal-card:first-of-type { margin-top: 18px; }
.natal-card .panel-body { max-width: 68ch; }
.natal-card-head { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 14px; }
.natal-card-head img { display: block; width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 8px 13px rgba(0, 0, 0, 0.45)); }
.natal-card-glyph {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--cab-line-strong); color: var(--cab-gold);
  font-family: 'Times New Roman', serif; font-size: 28px; font-weight: 700;
}
.natal-card-head .panel-kicker { margin-bottom: 4px; letter-spacing: 0.14em; }
.natal-card-head .panel-title { margin-bottom: 4px; }
.natal-title-glyph { font-family: 'Times New Roman', serif; color: var(--cab-gold); }
.natal-position { margin: 0; font-size: 13px; color: var(--cab-gold); font-variant-numeric: tabular-nums; }
.natal-card .field-hint { margin-top: 8px; }
.sky-aspects.natal-aspect-list li { font-size: 13px; }
.natal-balance { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.natal-balance li { display: grid; grid-template-columns: 82px 24px minmax(0, 1fr); align-items: baseline; gap: 10px; font-size: 13px; }
.natal-balance-name { font-weight: 700; color: var(--cab-ink); }
.natal-balance-count { font-family: var(--font-heading); font-size: 18px; color: var(--cab-gold); text-align: right; font-variant-numeric: tabular-nums; }
.natal-balance-bodies { color: var(--cab-muted); }
.natal-balance-group .panel-body { margin-top: 14px; }
.natal-intro { margin: 10px 0 0; padding-left: 20px; max-width: 68ch; }
.natal-intro li { font-size: 13.5px; line-height: 1.65; color: var(--cab-muted); margin-bottom: 4px; }
.natal-intro li::marker { color: var(--cab-gold); }
.natal-aspects { display: grid; gap: 14px; margin-top: 18px; }
.natal-aspect-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--cab-ink); }
.natal-aspect .panel-body { margin-top: 10px; max-width: 68ch; }

@media (max-width: 520px) {
  .astro-css-zodiac { font-size: 30px; }
  .astro-css-planet { font-size: 22px; }
  .planet-list li { grid-template-columns: 26px minmax(80px, 1fr) auto; }
  .astro-aspect-portraits { gap: 6px; }
  .astro-portrait-glow { width: 82px; height: 82px; }
  .astro-planet-photo { width: 78px; height: 78px; }
  .astro-photo-aspect { width: 32px; height: 32px; font-size: 20px; }
  .astro-planet-modal { padding: 26px 22px; }
  .astro-modal-heading { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding-right: 24px; }
  .astro-modal-heading img { width: 68px; height: 68px; }
  .astro-modal-close { top: 10px; right: 10px; }
  .natal-card-head { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .natal-card-head img { width: 56px; height: 56px; }
  .natal-card-glyph { width: 52px; height: 52px; font-size: 22px; }
  .natal-data dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .natal-data dd { margin-bottom: 8px; }
  .natal-balance li { grid-template-columns: 70px 22px minmax(0, 1fr); }
}

/* ============================================================
   Nine-year cycle
   ============================================================ */

.cycle { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.cycle li {
  border: 1px solid var(--cab-line); border-radius: 16px; padding: 12px 6px; text-align: center;
  background: color-mix(in oklch, var(--cab-bg-deep) 50%, transparent);
}
.cycle li[data-current='true'] {
  border-color: var(--cab-gold); border-width: 2px; padding: 11px 5px;
  background: color-mix(in oklch, var(--cab-gold) 12%, transparent);
}
.cycle .cy-year { display: block; font-size: 12px; color: var(--cab-faint); font-variant-numeric: tabular-nums; }
.cycle .cy-num { display: block; font-family: var(--font-heading); font-size: 25px; color: var(--cab-ink); margin-top: 4px; }
.cycle li[data-current='true'] .cy-num { color: var(--cab-gold); }
.cycle .cy-now { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cab-gold); margin-top: 5px; font-weight: 700; }

/* ============================================================
   Disclosures, next actions, prose
   ============================================================ */

.disclosure { margin-top: 26px; border-top: 1px solid var(--cab-line); }
.disclosure > summary {
  cursor: pointer; padding: 15px 0; font-size: 13.5px; font-weight: 600; color: var(--cab-gold);
  list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: '+'; font-size: 17px; line-height: 1; width: 14px; }
.disclosure[open] > summary::before { content: '\2013'; }
.disclosure > summary:hover { color: oklch(0.82 0.11 85); }
.disclosure-body { padding: 0 0 20px; }
.disclosure-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--cab-muted); max-width: 62ch; text-wrap: pretty; }
.disclosure-body dl { margin: 0; }
.disclosure-body dt { font-weight: 700; font-size: 13.5px; color: var(--cab-ink); margin-top: 14px; }
.disclosure-body dd { margin: 5px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--cab-muted); max-width: 62ch; text-wrap: pretty; }

.next-actions { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 700px) { .next-actions { grid-template-columns: 1fr 1fr; } }
.next-card {
  display: block; text-decoration: none; border: 1px solid var(--cab-line-strong); border-radius: 20px;
  padding: 17px 20px; transition: all 0.3s; background: color-mix(in oklch, var(--cab-bg-deep) 40%, transparent);
}
.next-card:hover { border-color: var(--cab-gold); background: color-mix(in oklch, var(--cab-gold) 8%, transparent); }
.next-card .nc-title { font-size: 14.5px; font-weight: 700; color: var(--cab-gold); display: block; }
.next-card .nc-desc { font-size: 13px; line-height: 1.6; color: var(--cab-muted); display: block; margin-top: 5px; text-wrap: pretty; }

.article { margin-top: 30px; }
.article h2 {
  font-family: var(--font-heading); font-weight: 400; font-size: clamp(21px, 3.4vw, 27px);
  color: var(--cab-ink); margin: 46px 0 14px; line-height: 1.25;
}
.article h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--cab-gold); margin: 28px 0 10px; }
.article p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.75; color: var(--cab-muted); max-width: 64ch; text-wrap: pretty; }
.article p.lead { font-size: 17px; color: var(--cab-ink); }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; max-width: 64ch; }
.article li { font-size: 15px; line-height: 1.75; color: var(--cab-muted); margin-bottom: 8px; text-wrap: pretty; }
.article li::marker { color: var(--cab-gold); }
.article a { text-underline-offset: 3px; }
.article blockquote {
  margin: 0 0 18px; padding-left: 20px; border-left: 2px solid var(--cab-crimson-edge);
  font-size: 15px; line-height: 1.75; color: var(--cab-muted); max-width: 62ch;
}
.article .worked-example {
  margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--cab-line); border-radius: 18px;
  background: color-mix(in oklch, var(--cab-bg-deep) 55%, transparent);
  font-size: 14.5px; line-height: 1.8; color: var(--cab-muted);
}
.article .worked-example b { color: var(--cab-ink); font-variant-numeric: tabular-nums; }

.number-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; margin-top: 20px; list-style: none; padding: 0; }
.number-index a {
  display: block; text-align: center; text-decoration: none; padding: 16px 8px;
  border: 1px solid var(--cab-line-strong); border-radius: 18px; transition: all 0.3s;
}
.number-index a:hover { border-color: var(--cab-gold); background: color-mix(in oklch, var(--cab-gold) 8%, transparent); }
.number-index .ni-num { display: block; font-family: var(--font-heading); font-size: 30px; color: var(--cab-gold); line-height: 1; }
.number-index .ni-name { display: block; font-size: 12.5px; color: var(--cab-muted); margin-top: 7px; text-wrap: balance; }

.page-head { margin-bottom: 8px; }
.eyebrow { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--cab-gold); margin: 0 0 10px; }

.hero-number {
  font-family: var(--font-heading); font-size: clamp(64px, 15vw, 116px); color: var(--cab-gold);
  line-height: 0.9; margin: 0 0 6px; font-variant-numeric: tabular-nums;
}

.share-panel { margin-top: 26px; }
.share-choice { display: grid; gap: 10px; margin-top: 14px; }
.share-choice label { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; color: var(--cab-muted); cursor: pointer; padding: 8px 0; min-height: 36px; }
.share-choice input { margin-top: 2px; accent-color: var(--cab-gold); width: 20px; height: 20px; flex: none; }
.share-choice .sc-note { display: block; color: var(--cab-faint); font-size: 12.5px; margin-top: 3px; text-wrap: pretty; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; padding: 0; list-style: none; }
.footer-nav a { display: inline-block; padding: 5px 0; min-height: 24px; font-size: 12.5px; color: var(--cab-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--cab-gold); text-decoration: underline; text-underline-offset: 3px; }

/* Long unbroken names must never push the page sideways. */
.title, .final-name, .panel-title, .input-card input { overflow-wrap: anywhere; }

/* ---- the transit calendar --------------------------------------------------
   A month grid over the same tokens as everything else. Event kinds are told
   apart by shape as well as colour, and the selected day carries a border
   weight and a rule rather than a fill alone. */

/* The month bar sticks while the reader is anywhere in the month — the grid,
   the day, the cards and the list — and lets go after the list, because
   .month-scope ends there. Same surface and lane as the birth-date chart bar. */
.month-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px;
  position: sticky; top: 0; z-index: 20; padding: 9px 0;
  background: color-mix(in oklch, var(--cab-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cab-line);
}
/* Scroll anchoring would shift the page when a month change replaces every
   node below the bar; the page holds its position in script instead. */
.month-scope { overflow-anchor: none; }
html:has(.month-bar) { scroll-padding-top: calc(var(--month-bar-h, 64px) + 16px); }
.month-title {
  font-family: var(--font-heading); font-size: clamp(20px, 4vw, 28px); color: var(--cab-ink);
  margin: 0; flex: 1; min-width: 180px; text-align: center;
}
/* Portuguese month names are lower case and "outubro de 2026" must not become
   "Outubro De 2026", so only the first letter is raised. */
.month-title::first-letter { text-transform: uppercase; }
.month-arrow { display: none; }
.month-bar .btn-dim:disabled { opacity: 0.4; cursor: default; border-color: var(--cab-line-strong); color: var(--cab-muted); }

.filter-bar { margin-top: 10px; }
.filter-fieldset { margin-top: 18px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.filter-option { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--cab-muted); cursor: pointer; padding: 6px 0; min-height: 34px; }
.filter-option input { accent-color: var(--cab-gold); width: 19px; height: 19px; flex: none; }
.filter-bar .field-hint { margin: 10px 0 0; }

#calendar { margin-top: 34px; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.cal-weekdays { margin-top: 18px; }
.cal-weekdays li { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--cab-faint); text-align: center; padding-bottom: 4px; }
.cal-grid { margin-top: 2px; }
.cal-blank { visibility: hidden; }

.cal-day {
  width: 100%; min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
  padding: 8px 4px; cursor: pointer; font-family: var(--font-body);
  background: color-mix(in oklch, var(--cab-bg-deep) 60%, transparent);
  border: 2px solid var(--cab-line); border-radius: 14px; border-top-width: 2px;
  transition: border-color 0.25s, background 0.25s;
}
.cal-day:hover { border-color: var(--cab-gold); background: color-mix(in oklch, var(--cab-gold) 8%, transparent); }
.cal-day.is-quiet { border-style: dashed; }
/* Selection is a heavier border plus a gold rule across the top, never colour
   on its own. */
.cal-day.is-selected { border-color: var(--cab-gold); border-top-width: 6px; background: color-mix(in oklch, var(--cab-gold) 12%, transparent); }
.cal-day.is-today .cal-num { text-decoration: underline; text-decoration-color: var(--cab-gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }

.cal-num { font-family: var(--font-heading); font-size: 17px; color: var(--cab-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.cal-moon { font-size: 13px; color: var(--cab-gold-deep); line-height: 1; }
.cal-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 2px; min-height: 7px; }
.cal-mark { width: 7px; height: 7px; display: block; }
.cal-mark-aspect { border-radius: 50%; background: var(--cab-gold); }
.cal-mark-natal { background: var(--cab-gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cal-mark-ingress { background: var(--cab-ink); }
.cal-mark-station { background: var(--cab-red-text); transform: rotate(45deg); }
.cal-mark-phase { border-radius: 50%; border: 2px solid var(--cab-muted); }
.cal-mark-void { height: 3px; width: 10px; background: var(--cab-faint); align-self: center; }

.event-table .ev-when { white-space: nowrap; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--cab-ink); font-variant-numeric: tabular-nums; }
.event-table .ev-date { display: block; font-size: 12px; font-weight: 500; color: var(--cab-faint); }
.event-table .ev-time { display: block; }
.event-table .ev-what { color: var(--cab-ink); }
.event-table .ev-what-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.event-table .ev-glyph { color: var(--cab-gold); font-size: 15px; }
.event-table .ev-line { font-weight: 500; }
.event-table .ev-kind { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--cab-faint); }
.event-table .ev-where { white-space: nowrap; }
.event-table .ev-precision { font-size: 12.5px; color: var(--cab-faint); white-space: nowrap; }
.event-table .ev-jump {
  display: block; background: none; border: none; padding: 2px 0; min-height: 26px; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--cab-gold);
  font-variant-numeric: tabular-nums; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklch, var(--cab-gold) 45%, transparent);
}
.event-table .ev-jump:hover { color: oklch(0.82 0.11 85); text-decoration-color: currentColor; }

/* Aspect tone, carried alongside the glyph rather than instead of it. */
.astro-tone-supportive .ev-glyph { color: var(--cab-gold-deep); }
.astro-tone-challenging .ev-glyph, .astro-tone-polar .ev-glyph { color: var(--cab-red-text); }
.event-station .ev-glyph { color: var(--cab-red-text); }
.event-void .ev-glyph, .event-void .ev-line { color: var(--cab-muted); }

.day-panel { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--cab-line); }
.day-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.day-head .panel-kicker { flex: 1; min-width: 200px; margin: 0; }
.day-planet-detail { margin: 12px 0 0; min-height: 1.6em; color: var(--cab-ink); }
.day-planet-detail:empty { display: none; }

/* The month, body by body, and the monthly movement wheel. */
.body-card-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; font-family: var(--font-heading); font-weight: 400; font-size: 20px; color: var(--cab-ink); }
.body-card-head .planet-glyph { width: 24px; }
.body-card-at { margin-left: auto; font-family: var(--font-body); font-size: 12.5px; color: var(--cab-muted); font-variant-numeric: tabular-nums; }
.body-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.body-table th, .body-table td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--cab-line); vertical-align: top; }
.body-table td:last-child { padding-right: 0; text-align: right; }
.body-table tbody tr:last-child th, .body-table tbody tr:last-child td { border-bottom: none; }
.body-table .ev-jump { min-height: 0; font-size: 13.5px; }
.body-table .ev-jump .ev-date { color: var(--cab-muted); }
.body-moon-aspects { margin-top: 12px; }
.body-motion { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--cab-line); font-size: 13px; color: var(--cab-muted); }
.body-periods { list-style: none; padding-left: 0; display: grid; gap: 4px; }
.body-periods li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.body-period-dir { min-width: 92px; font-weight: 700; color: var(--cab-ink); }
.astro-motion-wheel { margin-top: 18px; }
.astro-motion-path { fill: none; stroke: var(--cab-gold-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.astro-motion-start { fill: var(--cab-bg); stroke: var(--cab-gold-deep); stroke-width: 1.3; }
.astro-motion-end { fill: var(--cab-gold); }
.astro-css-planet.is-static { cursor: default; }
.wheel-legend .wl-dot { width: 9px; height: 9px; border-radius: 50%; }
.wheel-legend .wl-dot-start { border: 1.5px solid var(--cab-gold-deep); }
.wheel-legend .wl-dot-end { background: var(--cab-gold); }
.motion-table { margin-top: 22px; }
.motion-table tbody th .planet-glyph { display: inline-block; width: 24px; font-size: 18px; }
.motion-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.motion-table .motion-travelled { color: var(--cab-ink); }

.sky-aspects { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.sky-aspects li { display: grid; grid-template-columns: 22px 1fr auto; align-items: baseline; gap: 9px; font-size: 13.5px; color: var(--cab-muted); }

@media (max-width: 620px) {
  .cal-day { min-height: 62px; border-radius: 11px; padding: 6px 2px; }
  .cal-num { font-size: 15px; }
  .cal-weekdays li { font-size: 9.5px; letter-spacing: 0.06em; }
  /* One row on a phone: a sticky bar of two rows would hold a fifth of a
     landscape screen. The step buttons keep their names for assistive tech
     and show an arrow. */
  .month-bar { flex-wrap: nowrap; gap: 6px; padding: 6px 0; }
  .month-title { min-width: 0; font-size: 18px; }
  .month-bar .btn-dim { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
  .month-step-label { display: none; }
  .month-arrow { display: inline; font-size: 18px; line-height: 1; }
}

@media print {
  .blob, .site-nav, .section-nav, .natal-nav, .actions, .next-actions, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .article p, .article li, .panel-body { color: #222; }
}
