/* astrologyomaha.com: Natal Sky design system.
   Editorial night sky: Instrument Serif (display), Inter (text, UI and labels), JetBrains Mono (degrees and figures only).
   Design pass 2026-11 against Hallmark gates and Anthropic frontend-design: no tracked-caps labels, no eyebrows,
   no accented words, no glow washes, no card lift; the hero leads with a live chart of the sky over Omaha.
   One file, no build step. Tokens live on :root; components below use only tokens. */

/* ---------- 1. Metric-matched fallbacks: the web-font swap causes no layout shift ---------- */
@font-face {
  font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 107.1%; ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Instrument Serif Fallback'; src: local('Times New Roman'), local('Times');
  size-adjust: 90%; ascent-override: 101%; descent-override: 27%; line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback'; src: local('Courier New'), local('Courier');
  size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Colour */
  --bg-night: #0E0B1E;
  --bg-deep: #08061A;
  --bg-elevated: #16122B;
  --bg-raised-top: #1A1531;
  --bg-input: #0B0920;
  /* Hairlines are the primary text colour at low opacity; gold is kept for links, the primary action and the sky */
  --line: rgba(236, 230, 217, 0.08);
  --line-strong: rgba(236, 230, 217, 0.14);
  --line-hover: rgba(232, 199, 126, 0.5);
  --line-neutral: rgba(236, 230, 217, 0.18);
  --line-gold: rgba(232, 199, 126, 0.32); /* the sky wheel only: the one place the drawing is gold */
  --line-gold-soft: rgba(232, 199, 126, 0.14);
  --surface-hover: rgba(236, 230, 217, 0.05);
  --text-primary: #ECE6D9;
  --text-body: #D9D2C5;
  --text-secondary: #A39DB5;
  --text-on-accent: #0E0B1E;
  --accent-gold: #E8C77E;
  --accent-gold-2: #F4DCA0;
  --danger: #FF9A8A;

  /* Type */
  --ff-display: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, 'Times New Roman', serif;
  --ff-ui: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ff-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.375rem, 1.7rem + 3vw, 3.75rem);
  --fs-display: clamp(2.75rem, 1.5rem + 5.6vw, 6rem);
  --lh-display: 1.05;
  --lh-heading: 1.1;
  --lh-body: 1.7;
  --tracking-display: -0.02em;

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-14: 56px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-30: 120px;
  --gutter: var(--s-4);

  /* Radii */
  --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-full: 999px;

  /* No shadows: on this dark theme depth comes from surface steps and hairlines */

  /* Widths */
  --max-text: 720px;
  --max-wide: 1200px;
  --max: var(--max-text);
  --header-h: 64px;

  /* One curve, one feedback duration */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 160ms;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: var(--s-8); } }
@media (max-width: 760px) { :root { --header-h: 96px; } }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--bg-night);
  scroll-padding-top: calc(var(--header-h) + var(--s-6));
}
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg-night); color: var(--text-primary);
  font: 400 var(--fs-base)/var(--lh-body) var(--ff-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
::selection { background: rgba(232, 199, 126, 0.3); color: var(--text-primary); }
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--accent-gold);
  text-decoration: underline; text-decoration-color: rgba(232, 199, 126, 0.4);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--accent-gold-2); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: calc(var(--max-text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(var(--max-wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Skip link */
.skip-link {
  position: absolute; left: var(--s-4); top: -200px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5);
  background: var(--accent-gold); color: var(--text-on-accent); border-radius: var(--r-full);
  font: 500 var(--fs-sm) var(--ff-ui); text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--text-on-accent); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 11, 30, 0.95); border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(14, 11, 30, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  }
}
.site-header .wrap-wide { display: flex; align-items: center; gap: var(--s-6); min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: .22em; min-height: 44px; white-space: nowrap;
  font: 400 26px/1 var(--ff-display); letter-spacing: -0.01em;
  color: var(--text-primary); text-decoration: none;
}
.brand:hover { color: var(--text-primary); }
.brand span { color: var(--accent-gold); font-style: italic; }
.nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; font-size: var(--fs-sm); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--r-full); color: var(--text-secondary); text-decoration: none; white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav a:hover { color: var(--text-primary); background: var(--surface-hover); }
/* The one header button sits outside the link row, so it never scrolls out of view on phones */
.nav-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: var(--r-full);
  color: var(--accent-gold); font-size: var(--fs-sm); text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-cta:hover { color: var(--accent-gold-2); border-color: var(--line-hover); background: var(--surface-hover); }

@media (max-width: 760px) {
  .site-header .wrap-wide { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: var(--s-1); }
  .brand { font-size: 24px; }
  .nav-cta { margin-left: auto; min-height: 36px; }
  .nav { order: 2; }
  /* Навигация — горизонтально прокручиваемая строка, без JS-меню */
  .nav {
    flex: 0 0 calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--s-1);
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--s-8)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--s-8)), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:first-child { padding-left: 0; }
}

/* ---------- 5. Main column: a grid with a text column and a full-bleed track ---------- */
.site-main {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, var(--max-text))
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  align-content: start;
  padding-bottom: var(--s-20);
}
.site-main:focus { outline: none; }
.site-main > * { grid-column: content; min-width: 0; }
.site-main > .bleed { grid-column: full; }
.site-main > a, .site-main > .btn { justify-self: start; }
.site-main:has(> .cta:last-child) { padding-bottom: 0; }

/* ---------- 6. Typography ---------- */
h1, h2, h3 {
  font-family: var(--ff-display); font-weight: 400; color: var(--text-primary);
  letter-spacing: var(--tracking-display); text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-display); margin: 0 0 var(--s-4); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); margin: var(--s-14) 0 var(--s-4); }
h3 { font-size: var(--fs-h3); line-height: 1.15; margin: var(--s-8) 0 var(--s-3); letter-spacing: 0; }
p { margin: 0 0 var(--s-5); color: var(--text-body); text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--text-primary); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-primary); }
.site-main ul:not([class]) { color: var(--text-body); padding-left: var(--s-5); margin: 0 0 var(--s-6); }
.site-main ul:not([class]) li { margin-bottom: var(--s-2); padding-left: var(--s-1); }
.site-main ul:not([class]) li::marker { color: var(--text-secondary); }

/* Labels: breadcrumbs, bylines, table heads. Body face, a step smaller, sentence case, untracked */
.eyebrow, .meta, .crumbs, .kicker, .example-label, .facts th, .result th, .trio small, .site-footer h2, .copy {
  font-family: var(--ff-ui); font-size: var(--fs-xs); font-weight: 500; line-height: 1.5;
  letter-spacing: 0; text-transform: none;
}
.eyebrow { color: var(--text-secondary); margin: 0 0 var(--s-3); }
.kicker { color: var(--text-secondary); }
.glyph { color: var(--accent-gold); font-variant-emoji: text; }
.deg, .num { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Breadcrumbs */
.crumbs { margin-top: var(--s-6); color: var(--text-secondary); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); }
.crumbs li + li::before { content: '/'; margin-right: var(--s-2); color: var(--line-neutral); }
.crumbs a { display: inline-block; padding: var(--s-2) 0; color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--accent-gold); }
.crumbs [aria-current] { color: var(--text-primary); }

/* Page head and byline */
.page-head { margin: var(--s-12) 0 var(--s-8); }
.crumbs + .page-head { margin-top: var(--s-8); }
.page-head h1 { margin-bottom: var(--s-5); }
.page-head .lead { margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin: 0 0 var(--s-6); color: var(--text-secondary); }

/* ---------- 7. Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; margin: 0; padding: 0 var(--s-6);
  border: 1px solid transparent; border-radius: var(--r-full);
  background: var(--accent-gold); color: var(--text-on-accent);
  font: 500 1rem/1 var(--ff-ui); letter-spacing: 0; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-gold-2); color: var(--text-on-accent); }
.btn:active { background: var(--accent-gold); }
.btn:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: var(--r-full); }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  color: var(--accent-gold); font-weight: 500; text-decoration: none;
}
.link-arrow span { transition: transform var(--dur) var(--ease); }
.link-arrow:hover span, a:hover > .link-arrow span { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); margin-top: var(--s-8); }

/* ---------- 8. Hero (home): Marquee ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--s-12) 0 var(--s-16); border-bottom: 1px solid var(--line);
}
/* Статичное звёздное небо из radial-gradient, без картинок */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.45;
  background:
    radial-gradient(circle at 6% 16%, rgba(236, 230, 217, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 17% 64%, rgba(236, 230, 217, 0.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 26% 28%, rgba(232, 199, 126, 0.8) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 38% 82%, rgba(236, 230, 217, 0.5) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 47% 12%, rgba(236, 230, 217, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 58% 54%, rgba(236, 230, 217, 0.45) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 66% 22%, rgba(236, 230, 217, 0.8) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 74% 74%, rgba(232, 199, 126, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 83% 38%, rgba(236, 230, 217, 0.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 91% 14%, rgba(236, 230, 217, 0.85) 0 1.3px, transparent 2px),
    radial-gradient(circle at 95% 62%, rgba(236, 230, 217, 0.5) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 12% 90%, rgba(236, 230, 217, 0.4) 0 0.8px, transparent 1.4px),
    radial-gradient(circle, rgba(236, 230, 217, 0.4) 0 0.6px, transparent 1.1px) 0 0 / 160px 160px,
    radial-gradient(circle, rgba(232, 199, 126, 0.45) 0 0.6px, transparent 1.1px) 80px 50px / 230px 230px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-grid { display: grid; gap: var(--s-6); }
.hero h1 {
  font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -0.025em;
  max-width: 15ch; margin: 0;
}
.hero-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-body); max-width: 54ch; margin: var(--s-6) 0 0; }
@media (min-width: 768px) { .hero { padding: var(--s-20) 0 var(--s-24); } }


/* ---------- 9. Sections, cards, grids ---------- */
.section { padding-top: var(--s-16); }
@media (min-width: 960px) { .section { padding-top: var(--s-30); } .section + .section { padding-top: var(--s-24); } }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-6);
  padding-top: var(--s-5); border-top: 1px solid var(--line);
}
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin: 0; min-width: 9rem; }
/* Link grids (hubs, related pages): ruled rows in columns, the same language as the home tool list.
   Boxed tiles of equal size read as a template; a hairline per row keeps the reading rhythm. */
.grid {
  display: grid; gap: 0 var(--s-8); margin: var(--s-6) 0 var(--s-8);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--line);
}
.card {
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-1);
  min-height: 56px; padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-primary); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a.card:hover { color: var(--accent-gold); }
.card strong { font: 400 var(--fs-h3)/1.15 var(--ff-display); letter-spacing: 0; color: inherit; }
.card > span:not(.kicker):not(.link-arrow) { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.5; }
.card.is-muted { pointer-events: none; }
.card.is-muted strong { color: var(--text-secondary); }
/* Home "learn" pair: two ruled columns, not two boxes */
.features { display: grid; gap: var(--s-8) var(--s-12); margin-top: var(--s-8); }
.card.feature { justify-content: flex-start; min-height: 0; padding: var(--s-6) 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
.card.feature h3 { margin: 0 0 var(--s-3); color: inherit; }
.card.feature p { margin-bottom: var(--s-4); }
.card.feature .link-arrow { margin-top: auto; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.related h2 { margin-bottom: 0; }

/* ---------- 10. Long reading ---------- */
.facts { width: 100%; border-collapse: collapse; margin: var(--s-2) 0 var(--s-8); font-size: var(--fs-sm); border-top: 1px solid var(--line); }
.facts th, .facts td { text-align: left; vertical-align: baseline; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.facts th { width: 32%; color: var(--text-secondary); }
.facts td { color: var(--text-primary); }
.examples { display: grid; gap: var(--s-6) var(--s-8); grid-template-columns: 1fr; margin: var(--s-4) 0 var(--s-6); }
.example { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.example-label { color: var(--text-primary); margin: 0 0 var(--s-2); }
.example p:last-child { margin: 0; font-size: 1rem; line-height: 1.6; }
@media (min-width: 640px) { .examples { grid-template-columns: 1fr 1fr; } }
.takeaways {
  margin: var(--s-12) 0 var(--s-4); padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-elevated);
}
.takeaways h2 { margin: 0 0 var(--s-4); font-size: var(--fs-h3); }
.takeaways ul { margin: 0; padding-left: var(--s-5); color: var(--text-body); }
.takeaways li { margin-bottom: var(--s-2); }
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::marker { color: var(--text-secondary); }
.method { margin-top: var(--s-12); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.method h2 { margin-top: var(--s-6); font-size: var(--fs-h3); }
.method p { font-size: var(--fs-sm); color: var(--text-secondary); }
.hero-img { border-radius: var(--r-lg); margin: var(--s-2) 0 var(--s-6); }

/* ---------- 11. Calculator ---------- */
.calc {
  margin: var(--s-2) 0 var(--s-10); padding: var(--s-6);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
}
.calc label { display: block; margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-sm); font-weight: 500; color: var(--text-primary); }
.calc .row { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.calc .row > div { min-width: 0; }
.calc .row label { margin-top: 0; }
.calc input[type=date], .calc input[type=time], .calc input[type=text] {
  display: block; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 var(--s-4);
  border: 1px solid var(--line-neutral); border-radius: var(--r-sm);
  background: var(--bg-input); color: var(--text-primary); font: 400 1rem/1.2 var(--ff-ui);
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur) var(--ease);
}
.calc input::-webkit-date-and-time-value { text-align: left; }
.calc input::placeholder { color: var(--text-secondary); opacity: 1; }
.calc input:hover { border-color: rgba(236, 230, 217, 0.32); }
.calc input:focus { outline: 2px solid var(--accent-gold); outline-offset: 2px; border-color: var(--accent-gold); }
.calc input:disabled { opacity: 0.45; cursor: not-allowed; }
.calc .check { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; margin: var(--s-2) 0 0; font-weight: 400; color: var(--text-body); cursor: pointer; }
.calc .check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent-gold); }
.calc .btn { margin-top: var(--s-6); }
.calc > p { color: var(--text-body); }
.calc .error {
  margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  background: rgba(255, 154, 138, 0.08); border: 1px solid rgba(255, 154, 138, 0.3);
  color: var(--danger); font-size: var(--fs-sm);
}
@media (max-width: 480px) {
  .calc { padding: var(--s-5) var(--s-4); }
  .calc .row { grid-template-columns: 1fr; }
  .calc .btn { width: 100%; }
}

/* Result */
.result { margin-top: var(--s-6); overflow-x: auto; }
.result:empty { display: none; }
.result > :first-child { margin-top: 0; }
.result p { color: var(--text-body); }
.result .lead { font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.25 var(--ff-display); letter-spacing: 0; color: var(--text-primary); }
.result .lead .deg { font-size: 0.55em; letter-spacing: 0; color: var(--text-secondary); }
.result .lead a { display: inline-block; margin-left: var(--s-2); font: 500 var(--fs-sm)/1.4 var(--ff-ui); letter-spacing: 0; }
.result table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.result th, .result td { text-align: left; vertical-align: baseline; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.result th:first-child, .result td:first-child { padding-left: 0; }
.result th { color: var(--text-secondary); border-bottom-color: var(--line-strong); }
.result td { color: var(--text-primary); }
.result td.deg, .result td.num { font-size: 0.875rem; }
.result td a { display: inline-block; margin-left: var(--s-1); font-size: var(--fs-xs); white-space: nowrap; }
.result abbr { margin-left: var(--s-1); color: var(--text-secondary); text-decoration: none; cursor: help; }
.result .note { margin-top: var(--s-5); padding-left: var(--s-3); border-left: 2px solid var(--line-strong); font-size: var(--fs-sm); color: var(--text-secondary); }
@media (max-width: 480px) { .result th, .result td { padding-left: var(--s-1); padding-right: var(--s-1); } }

/* Big Three */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.trio > div { padding: var(--s-4) var(--s-2); text-align: center; background: var(--bg-night); border: 1px solid var(--line); border-radius: var(--r-sm); }
.trio small { display: block; margin-bottom: var(--s-2); color: var(--text-secondary); }
.trio b { display: block; font: 400 clamp(1.125rem, 0.9rem + 1vw, 1.5rem)/1.15 var(--ff-display); color: var(--text-primary); overflow-wrap: anywhere; }
.trio .glyph { display: block; margin-bottom: var(--s-1); font-size: 1.6em; line-height: 1.1; }

/* Saturn returns timeline */
.returns { position: relative; list-style: none; margin: var(--s-6) 0 0; padding: 0 0 0 28px; }
.returns::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.returns li { position: relative; padding-bottom: var(--s-6); color: var(--text-body); font-size: var(--fs-sm); }
.returns li:last-child { padding-bottom: 0; }
.returns li::before {
  content: ''; position: absolute; left: -26px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent-gold);
}
.returns li b { font-weight: 500; font-size: 1rem; }
.returns li.is-past, .returns li.is-past b { color: var(--text-secondary); }
.returns li.is-past::before { background: var(--bg-elevated); border: 1px solid var(--text-secondary); }

/* ---------- 12. CTA band ---------- */
.cta {
  margin-top: var(--s-20); padding: var(--s-20) var(--gutter); text-align: center;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { margin: 0 0 var(--s-4); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: var(--lh-display); }
.cta p { margin: 0 auto var(--s-8); max-width: 48ch; color: var(--text-body); }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: var(--s-12) 0 var(--s-10); font-size: var(--fs-sm); color: var(--text-secondary); }
.footer-grid { display: grid; gap: var(--s-10); }
.site-footer h2 { margin: 0 0 var(--s-3); color: var(--text-secondary); }
.footer-brand .brand { font-size: 30px; }
.footer-brand p { max-width: 36ch; margin: var(--s-3) 0 0; color: var(--text-secondary); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.footer-links a, .legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-primary); text-decoration: none; }
.footer-links a:hover, .legal-links a:hover { color: var(--accent-gold); }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin: 0 0 var(--s-2); }
.footer-legal p { color: var(--text-secondary); font-size: var(--fs-xs); line-height: 1.6; }
.copy { margin: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: var(--s-10); } .footer-links ul { grid-template-columns: minmax(0, 1fr); } .footer-links a { white-space: nowrap; } }

/* ---------- 14. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .link-arrow:hover span, a:hover > .link-arrow span { transform: none; }
}

/* CTA under a calculator result (calc.js renders .result-cta). It sits inside the .calc panel,
   so it is a ruled block, not a second box nested in the first */
.result-cta {
  margin: var(--s-8) 0 0; padding: var(--s-6) 0 0;
  border-top: 1px solid var(--line-strong);
}
.result-cta .result-cta-title {
  margin: 0 0 var(--s-3); font: 400 var(--fs-h3)/1.2 var(--ff-display); letter-spacing: 0; text-wrap: balance;
}
.result-cta p { margin: 0 0 var(--s-5); max-width: 56ch; }
.result-cta .btn { margin: 0; }
@media (max-width: 560px) {
  .result-cta .btn { display: flex; width: 100%; }
}

/* Calculators on the home page: a ruled list, not a tile grid */
.tool-list { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.tool-list li { border-bottom: 1px solid var(--line); }
.tool-list a {
  display: grid; gap: var(--s-1); padding: var(--s-5) 0; color: var(--text-primary); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.tool-list a:hover { color: var(--accent-gold); }
.tool-list strong { font: 400 var(--fs-h3)/1.15 var(--ff-display); letter-spacing: -0.01em; color: inherit; }
.tool-list span { color: var(--text-secondary); font-size: var(--fs-sm); }
/* Name over its one-line answer, so both start on the same left edge in every row */
@media (min-width: 760px) {
  .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-12); }
}
/* Live sky wheel in the home hero (site/static/sky-now.js). Appended to site.css.
   Colours come only from site.css tokens; strokes stay 1px at any size. */

/* ---------- Layout ---------- */
/* The figure is wider than the wheel so each position list row fits on one line */
.sky-now { width: 100%; max-width: 520px; margin: var(--s-10) auto 0; }
.sky-now-wheel { width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 1; }
@media (min-width: 960px) {
  .hero-grid:has(> .sky-now) {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    align-items: center; gap: var(--s-10);
  }
  .hero-grid > .sky-now { margin: 0; justify-self: end; }
  .sky-now-wheel { max-width: 440px; }
}

/* ---------- Wheel ---------- */
.sky-now-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sky-now-svg line, .sky-now-svg circle, .sky-now-svg path {
  fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke;
}
.sky-now-svg .sky-now-band { fill: var(--bg-elevated); stroke: var(--line-gold); }
.sky-now-svg .sky-now-ring { stroke: var(--line-gold-soft); }
.sky-now-svg .sky-now-divider { stroke: var(--line-gold); }
.sky-now-svg .sky-now-tick { stroke: var(--line-gold); }
.sky-now-svg .sky-now-axis { stroke: var(--line-gold); }
.sky-now-svg .sky-now-planet-tick { stroke: var(--text-secondary); }
.sky-now-svg text {
  font-family: var(--ff-ui); font-weight: 400; letter-spacing: 0; text-transform: none;
  text-anchor: middle; dominant-baseline: central; font-variant-emoji: text;
}
.sky-now-svg .sky-now-sign { fill: var(--text-secondary); font-size: 13px; }
.sky-now-svg .sky-now-planet { fill: var(--text-primary); font-size: 15px; }
.sky-now-svg .is-luminary .sky-now-planet { fill: var(--accent-gold); }
.sky-now-svg .sky-now-retro { fill: var(--text-secondary); font-size: 7px; }
.sky-now-svg .sky-now-axis-label { fill: var(--text-secondary); font-size: 10px; }

/* One orchestrated motion: planet glyphs fade in on first render */
@keyframes sky-now-fade { from { opacity: 0; } to { opacity: 1; } }
.sky-now-animate .sky-now-body { animation: sky-now-fade 400ms var(--ease) both; }

/* ---------- Caption ---------- */
.sky-now-caption {
  margin: var(--s-4) 0 0; text-align: center;
  font: 400 var(--fs-sm)/1.5 var(--ff-ui); letter-spacing: 0; text-transform: none;
  color: var(--text-body);
}
.sky-now-caption:empty { display: none; }
.sky-now-caption time { color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* ---------- List ---------- */
.sky-now-list {
  list-style: none; margin: var(--s-4) 0 0; padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1) var(--s-4);
  font: 400 var(--fs-xs)/1.45 var(--ff-ui); letter-spacing: 0; text-transform: none;
  font-variant-numeric: tabular-nums; color: var(--text-primary);
}
.sky-now-list:empty { display: none; }
@media (max-width: 560px) { .sky-now-list { grid-template-columns: minmax(0, 1fr); } }
.sky-now-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-1); min-width: 0; }
.sky-now-list .sky-now-item-glyph {
  flex: none; width: 1.25em; text-align: center;
  color: var(--text-secondary); font-variant-emoji: text;
}
.sky-now-list .sky-now-pos, .sky-now-list .sky-now-retro-text { color: var(--text-secondary); white-space: nowrap; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sky-now-animate .sky-now-body { animation: none; }
}

/* Tables written in article text (markdown) */
.table-wrap { overflow-x: auto; margin: var(--s-2) 0 var(--s-8); }
.table-wrap .facts { margin: 0; }
.table-wrap .facts td, .table-wrap .facts th { padding-right: var(--s-3); }
.table-wrap .facts th { width: auto; }
@media (max-width: 480px) { .table-wrap .facts { font-size: var(--fs-xs); } .table-wrap .facts td, .table-wrap .facts th { padding-right: var(--s-2); } }
