/* tonight.html — extracted inline styles */
/* ── Critical CLS shell (wave 2) ── */
body:has(.tn-hero) {
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html.ap-fonts-ready body:has(.tn-hero) {
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}
body:has(.tn-hero) .site-header {
  min-height: var(--nav-height, 72px);
  contain: layout style;
}
body:has(.tn-hero) .navbar__nav {
  min-height: 44px;
  contain: layout style;
}
body:has(.tn-hero) .tn-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  min-height: 1.15em;
  contain: layout style;
}
html.ap-fonts-ready body:has(.tn-hero) .tn-hero h1 {
  font-family: var(--font-display, 'Cinzel', serif);
}
body:has(.tn-hero) .tn-locator {
  contain: layout style;
}
body:has(.tn-hero) .tn-hero__sub {
  min-height: 4.4em;
}
body:has(.tn-hero) .tn-privacy-seal {
  min-height: 2.6em;
}
body:has(.tn-hero) .tn-locator {
  min-height: 210px;
  contain: layout style;
}
body:has(.tn-hero) .tn-locator__card {
  min-height: 190px;
}
body:has(.tn-hero) .tn-locator__buttons {
  min-height: 44px;
}
body:has(.tn-hero) #tn-planets {
  min-height: 520px;
  contain: layout style;
}
body:has(.tn-hero) #tn-twilight {
  min-height: 108px;
}
body:has(.tn-hero) #tn-moon-wrap {
  min-height: 300px;
  contain: layout style;
}
body:has(.tn-hero) .footer-zodiac-strip {
  min-height: 2.75rem;
  contain: layout style;
}
body:has(.tn-hero) .footer-zodiac-strip [data-celestial-seal] {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
}
.tn-planet-card--skeleton {
  visibility: hidden;
  pointer-events: none;
  min-height: 88px;
}
.tn-twi-card--skeleton {
  visibility: hidden;
  pointer-events: none;
  min-height: 72px;
}
.tn-moon--skeleton {
  visibility: hidden;
  pointer-events: none;
  min-height: 280px;
}

/* ── Tonight's Sky — scoped page styles (glass / engraved cosmic) ── */
    :root {
      --tn-gold: var(--gold, #A8B0BC);
      --tn-gold-light: var(--gold-light, #E8EBF0);
      --tn-surface: rgba(22, 28, 42, 0.62);
      --tn-border: rgba(168, 158, 136, 0.14);
    }

    /* Hero */
    .tn-hero {
      position: relative;
      z-index: 1;
      padding: calc(var(--nav-height, 72px) + 3.5rem) 0 2rem;
      text-align: center;
      overflow: hidden;
    }
    .tn-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(92, 74, 110, 0.22) 0%, transparent 70%);
      pointer-events: none;
    }
    /* Hero focal object — photoreal Moon window in a thin brass ring (design-audit
       fix: give the first screen one real focal point instead of a warm-gold hex
       wax stamp). Circular masked img/engine derivative, 1px brass rim. */
    .tn-hero__moon {
      display: block;
      width: clamp(5rem, 15vw, 6.8rem);
      height: clamp(5rem, 15vw, 6.8rem);
      margin: 0 auto 1.4rem;
      border-radius: 50%;
      padding: 3px;
      line-height: 0;
      background:
        radial-gradient(circle at 50% 50%, rgba(12,16,22,0.4), rgba(12,16,22,0.85));
      box-shadow:
        inset 0 0 0 1px rgba(168,176,188,0.55),
        0 6px 22px rgba(0,0,0,0.55),
        0 0 30px -4px rgba(184,196,216,0.22);
    }
    .tn-hero__moon-img {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }
    @media (prefers-reduced-motion: no-preference) {
      .tn-hero__moon { animation: tn-hero-seal-rise 0.9s ease-out both; }
    }
    @keyframes tn-hero-seal-rise {
      from { opacity: 0; transform: translateY(10px) scale(0.96); }
      to   { opacity: 1; transform: none; }
    }
    .tn-hero__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.66rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--tn-gold);
      border: 1px solid rgba(196, 146, 10, 0.3);
      border-radius: 999px;
      padding: 0.35rem 0.95rem;
      margin-bottom: 1.1rem;
      font-variant-emoji: text;
    }
    /* keep inline astro/sparkle glyphs in eyebrow, privacy seal + buttons as
       engraved text, never colour-emoji */
    .tn-hero__eyebrow, .tn-privacy-seal, .tn-privacy-seal__glyph, .tn-btn {
      font-variant-emoji: text;
    }
    .tn-hero h1 {
      font-family: var(--font-display, 'Cinzel', serif);
      font-size: clamp(2rem, 5vw, 3.3rem);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: 0.02em;
      color: var(--color-white, #F8F4EE);
      margin-bottom: 0.8rem;
    }
    .tn-hero__sub {
      font-size: 1rem;
      color: var(--color-silver-dim, var(--ap-text-muted, #8891AA));
      max-width: 580px;
      margin: 0 auto 1.5rem;
      line-height: 1.7;
    }
    .tn-privacy-seal {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      color: var(--tn-gold-light);
      background: rgba(196, 146, 10, 0.08);
      border: 1px solid rgba(196, 146, 10, 0.22);
      border-radius: 999px;
      padding: 0.5rem 1.1rem;
    }
    .tn-privacy-seal__glyph { font-size: 1rem; }

    /* Location controls */
    .tn-locator {
      position: relative;
      z-index: 1;
      max-width: 640px;
      margin: 0 auto;
      padding: 0 var(--space-4, 1rem);
    }
    .tn-locator__card {
      background: var(--tn-surface);
      border: 1px solid var(--tn-border);
      border-radius: 20px;
      padding: var(--space-6, 1.5rem);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      text-align: center;
    }
    .tn-locator__status {
      font-size: 0.85rem;
      color: var(--color-silver-dim, var(--ap-text-muted, #8891AA));
      min-height: 1.2em;
      margin-bottom: 1rem;
      line-height: 1.5;
    }
    .tn-locator__status strong { color: var(--tn-gold); font-weight: 600; }
    .tn-locator__buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      justify-content: center;
      margin-bottom: 1rem;
    }
    .tn-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.6rem 1.3rem;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      cursor: pointer;
      border: none;
      font-family: inherit;
      transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
    }
    /* Primary action = the one terracotta CTA on the page (design-audit fix). */
    body:has(.tn-hero) .tn-btn--primary {
      background: #6AB0FF;
      color: #08080b;
      font-weight: 700;
      padding: 0.7rem 1.6rem;
      box-shadow: 0 6px 20px rgba(217, 123, 82, 0.28), 0 0 22px rgba(217, 123, 82, 0.22);
    }
    body:has(.tn-hero) .tn-btn--primary:hover {
      background: #E08A63;
      transform: translateY(-2px);
      box-shadow: 0 8px 26px rgba(217, 123, 82, 0.42), 0 0 34px rgba(217, 123, 82, 0.34);
    }
    body:has(.tn-hero) .tn-btn--primary:focus-visible {
      outline: 2px solid #E08A63;
      outline-offset: 3px;
    }
    .tn-btn--ghost {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.14);
      color: var(--color-silver, var(--ap-text-secondary, #C8D0E8));
    }
    .tn-btn--ghost:hover { border-color: rgba(196, 146, 10, 0.45); color: var(--tn-gold); }

    .tn-city-row {
      position: relative;
      display: flex;
      gap: 0.5rem;
      max-width: 420px;
      margin: 0 auto;
    }
    .tn-city-input {
      flex: 1;
      background: rgba(16, 21, 32, 0.6);
      border: 1px solid var(--tn-border);
      border-radius: 12px;
      padding: 0.65rem 0.95rem;
      color: var(--color-white, #F8F4EE);
      font-family: inherit;
      font-size: 0.9rem;
    }
    .tn-city-input:focus { outline: none; border-color: rgba(196, 146, 10, 0.5); }
    .tn-autocomplete {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      right: 0;
      background: rgba(22, 28, 42, 0.98);
      border: 1px solid var(--tn-border);
      border-radius: 12px;
      overflow: hidden;
      z-index: 30;
      display: none;
      text-align: left;
      -webkit-backdrop-filter: blur(16px);
      backdrop-filter: blur(16px);
    }
    .tn-autocomplete.open { display: block; }
    .tn-autocomplete__item {
      padding: 0.6rem 0.95rem;
      font-size: 0.85rem;
      color: var(--color-silver, var(--ap-text-secondary, #C8D0E8));
      cursor: pointer;
    }
    .tn-autocomplete__item:hover, .tn-autocomplete__item.active {
      background: rgba(196, 146, 10, 0.12);
      color: var(--tn-gold-light);
    }
    .tn-autocomplete__item span { color: var(--color-silver-dim, var(--ap-text-muted, #8891AA)); font-size: 0.76rem; }

    /* Results section */
    .tn-section {
      position: relative;
      z-index: 1;
      padding: var(--space-12, 3rem) 0;
    }
    .tn-section__title {
      font-family: var(--font-display, 'Cinzel', serif);
      font-size: clamp(1.5rem, 3.5vw, 2.2rem);
      font-weight: 700;
      color: var(--color-white, #F8F4EE);
      text-align: center;
      margin-bottom: 0.5rem;
    }
    .tn-section__sub {
      text-align: center;
      color: var(--color-silver-dim, var(--ap-text-muted, #8891AA));
      font-size: 0.9rem;
      max-width: 560px;
      margin: 0 auto var(--space-8, 2rem);
      line-height: 1.6;
    }
    .tn-section__sub em { color: var(--tn-gold); font-style: normal; }

    /* Summary headline */
    .tn-headline {
      text-align: center;
      max-width: 640px;
      margin: 0 auto var(--space-8, 2rem);
    }
    .tn-headline__lead {
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      font-size: clamp(1.15rem, 3vw, 1.6rem);
      color: var(--color-silver, var(--ap-text-secondary, #C8D0E8));
      line-height: 1.6;
    }
    .tn-headline__lead strong { color: var(--tn-gold-light); font-weight: 600; font-style: normal; }

    /* Twilight strip */
    .tn-twilight {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: var(--space-3, 0.75rem);
      max-width: 720px;
      margin: 0 auto var(--space-10, 2.5rem);
    }
    .tn-twi-card {
      background: var(--tn-surface);
      border: 1px solid var(--tn-border);
      border-radius: 16px;
      padding: var(--space-4, 1rem);
      text-align: center;
    }
    .tn-twi-card__label {
      font-size: 0.6rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--color-silver-dim, var(--ap-text-muted, #8891AA));
      display: block;
      margin-bottom: 0.4rem;
    }
    .tn-twi-card__time {
      font-family: var(--font-display, 'Cinzel', serif);
      font-size: 1.4rem;
      color: var(--tn-gold);
      font-weight: 600;
    }
    .tn-twi-card__note {
      font-size: 0.62rem;
      color: var(--color-silver-dark, #6E7690);
      margin-top: 0.25rem;
    }

    /* Planet visibility grid */
    .tn-planets {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: var(--space-4, 1rem);
      max-width: 900px;
      margin: 0 auto;
    }
    .tn-planet-card {
      background: var(--tn-surface);
      border: 1px solid var(--tn-border);
      border-radius: 18px;
      padding: var(--space-5, 1.25rem);
      display: flex;
      align-items: center;
      gap: var(--space-4, 1rem);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      transition: border-color .2s, transform .18s;
    }
    .tn-planet-card:hover { border-color: rgba(196, 146, 10, 0.3); transform: translateY(-2px); }
    .tn-planet-card.is-visible { border-color: rgba(196, 146, 10, 0.4); background: rgba(196, 146, 10, 0.06); }
    .tn-planet-card__orb { flex-shrink: 0; }
    .tn-planet-card__body { flex: 1; min-width: 0; }
    .tn-planet-card__name {
      font-family: var(--font-display, 'Cinzel', serif);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--color-white, #F8F4EE);
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .tn-planet-card__sign { font-size: 0.82rem; color: var(--tn-gold); font-weight: 600; margin-top: 2px; }
    .tn-planet-card__status {
      font-size: 0.74rem;
      color: var(--color-silver-dim, var(--ap-text-muted, #8891AA));
      margin-top: 4px;
      line-height: 1.45;
    }
    .tn-badge {
      display: inline-block;
      font-size: 0.55rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      border-radius: 999px;
      padding: 2px 8px;
    }
    .tn-badge--visible { background: rgba(42, 138, 90, 0.18); border: 1px solid rgba(42, 138, 90, 0.4); color: #5ad498; }
    .tn-badge--below { background: rgba(110, 118, 144, 0.14); border: 1px solid rgba(110, 118, 144, 0.3); color: var(--ap-text-muted, #8891AA); }
    .tn-badge--rx { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; margin-left: 4px; }

    /* Moon card */
    .tn-moon {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--space-3, 0.75rem);
      background: var(--tn-surface);
      border: 1px solid var(--tn-border);
      border-radius: 24px;
      padding: var(--space-10, 2.5rem) var(--space-8, 2rem);
      text-align: center;
      max-width: 520px;
      margin: 0 auto;
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
    }
    .tn-moon__glyph { font-size: 4.5rem; line-height: 1; }
    .tn-moon__phase {
      font-family: var(--font-display, 'Cinzel', serif);
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--tn-gold);
    }
    .tn-moon__detail { font-size: 0.9rem; color: var(--color-silver, var(--ap-text-secondary, #C8D0E8)); line-height: 1.6; }
    .tn-moon__detail strong { color: var(--tn-gold-light); }
    .tn-moon__bar {
      width: 220px;
      height: 8px;
      background: rgba(255,255,255,0.08);
      border-radius: 999px;
      overflow: hidden;
      margin: 0.25rem auto 0;
    }
    .tn-moon__bar-fill { height: 100%; background: linear-gradient(90deg, var(--tn-gold), var(--tn-gold-light)); border-radius: 999px; transition: width .6s ease; }

    /* Honesty note */
    .tn-honesty {
      max-width: 680px;
      margin: var(--space-10, 2.5rem) auto 0;
      padding: var(--space-5, 1.25rem) var(--space-6, 1.5rem);
      background: rgba(92, 74, 110, 0.08);
      border: 1px solid rgba(91, 127, 199, 0.22);
      border-radius: 16px;
      font-size: 0.82rem;
      color: var(--color-silver-dim, var(--ap-text-muted, #8891AA));
      line-height: 1.7;
    }
    .tn-honesty h3 {
      font-family: var(--font-display, 'Cinzel', serif);
      font-size: 0.95rem;
      color: var(--color-silver, var(--ap-text-secondary, #C8D0E8));
      margin: 0 0 0.5rem;
      letter-spacing: 0.04em;
    }
    .tn-honesty strong { color: var(--tn-gold); }

    /* Privacy band — the brand's private-by-design differentiator, promoted to a
       designed moment (design-audit fix): engraved seal, larger Cormorant heading,
       generous measure. */
    .tn-privacy-band {
      position: relative;
      z-index: 1;
      padding: var(--space-16, 5rem) 0;
      background: var(--color-bg-2, rgba(22, 28, 42, 0.4));
    }
    .tn-privacy-band::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(168, 176, 188, 0.10) 0%, transparent 70%);
      pointer-events: none;
    }
    .tn-privacy-band__inner {
      position: relative;
      max-width: 720px;
      margin: 0 auto;
      text-align: center;
      padding: 0 var(--space-4, 1rem);
    }
    .tn-privacy-band__seal {
      display: block;
      width: clamp(3.6rem, 10vw, 4.8rem);
      height: clamp(4.1rem, 11vw, 5.5rem);
      margin: 0 auto 1.4rem;
      line-height: 0;
      filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.5))
              drop-shadow(0 0 22px rgba(168, 176, 188, 0.18));
    }
    .tn-privacy-band__seal .ap-seal { width: 100%; height: 100%; }
    .tn-privacy-band__eyebrow {
      font-size: 0.66rem;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--tn-gold);
      margin: 0 0 0.5rem;
    }
    .tn-privacy-band h2 {
      font-family: 'Cormorant Garamond', var(--font-display, 'Cinzel', serif);
      font-size: clamp(2rem, 5.5vw, 3.1rem);
      font-weight: 600;
      line-height: 1.12;
      color: var(--color-white, #F8F4EE);
      max-width: 16ch;
      margin: 0 auto 1rem;
    }
    .tn-privacy-band p {
      color: var(--color-silver-dim, var(--ap-text-muted, #8891AA));
      line-height: 1.85;
      font-size: 1.02rem;
      max-width: 56ch;
      margin: 0 auto;
    }
    .tn-privacy-band ul {
      list-style: none;
      padding: 0;
      margin: 1.5rem auto 0;
      max-width: 540px;
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }
    .tn-privacy-band li {
      font-size: 0.85rem;
      color: var(--color-silver, var(--ap-text-secondary, #C8D0E8));
      padding-left: 1.6rem;
      position: relative;
      line-height: 1.6;
    }
    .tn-privacy-band li::before { content: '✦'; position: absolute; left: 0; color: var(--tn-gold); }

    .tn-empty {
      text-align: center;
      color: var(--color-silver-dim, var(--ap-text-muted, #8891AA));
      font-style: italic;
      padding: var(--space-8, 2rem);
    }

    @media (max-width: 600px) {
      .tn-planet-card { padding: 1rem; }
      .tn-moon { padding: 2rem 1.25rem; }
    }
