/* NatalDay's one stylesheet, linked by every page. System fonts only: privacy.html
   lists the processors, so this file must never request anything from another origin.

   The night sky of the Jarvis app's Astrology tab, on every page (2026-11-16): a deep navy
   page with a violet and a cyan glow and CSS stars, glass cards, light text, violet and
   cyan accents and the name in a gradient. Every text colour here is at least 4.5:1 on the
   lightest background it can sit on, glows included (scripts/theme_check.py measures every
   page). The wheel (src/wheel.js) and the share card (src/share-card.js) draw the same sky. */

:root {
  color-scheme: dark;
  --sky: #0d0b22;
  --ink: #ece8fb;
  --ink-soft: #a29dc9;
  --heading: #f4efd8;
  --night-soft: #d9d6ec;
  --star: #f1d9a0;
  --accent: #c9b6ff;
  --accent-strong: #e4dbff;
  --cyan: #7fdcff;
  --accent-tint: rgba(201, 182, 255, .09);
  --line: rgba(201, 182, 255, .14);
  /* Glass: the Astrology tab's card, over the page's sky. */
  --card: linear-gradient(160deg, rgba(31, 24, 70, .75), rgba(13, 11, 34, .85));
  /* The card's colour near its foot, opaque, for what scrolls over other text. */
  --card-solid: #110e2b;
  /* An inset night band inside a card: the example chart, the reading's band, a friend's signs. */
  --band: #120e30;
  --field: #15112f;
  --field-line: #847fb6;
  --danger: #ff9a9a;
  --danger-fill: #ef6b6b;
  --disabled-bg: #2a2650;
  --disabled-ink: #b9b4dc;
  --bar: #9d8cff;
  /* The elements, as the wheel colours them, made light enough to read on the night. */
  --fire: #ff9a80;
  --earth: #86e0a2;
  --air: #ffd166;
  --water: #6fd6f5;
  --title: linear-gradient(90deg, #f4efd8, #c9b6ff 50%, #7fdcff);
  --glyphs: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "DejaVu Sans", var(--sans);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Side padding that keeps full-width bands lined up with the centred column. */
  --gutter: max(1.25rem, calc((100% - 41.5rem) / 2));
  /* A scatter of stars for a band, positioned in its box. The page's own stars are below. */
  --band-stars:
    radial-gradient(1.5px 1.5px at 88% 22%, var(--star), transparent),
    radial-gradient(1px 1px at 72% 62%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 94% 74%, #fff, transparent),
    radial-gradient(1px 1px at 80% 12%, #fff, transparent),
    radial-gradient(2px 2px at 64% 28%, var(--star), transparent);
}

/* An author display rule would otherwise beat the attribute the page's script toggles. */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--sky);
  background-image:
    radial-gradient(900px 500px at 15% -10%, rgba(139, 123, 255, .14), transparent 60%),
    radial-gradient(700px 400px at 100% 10%, rgba(76, 201, 240, .08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* The stars: two tiles of CSS dots fixed behind the page, no image. Their sizes share no
   factor, so the two tiles never line up into a visible grid. The brighter tile twinkles,
   and holds still for anyone who asks for less motion. */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background-image:
    radial-gradient(1px 1px at 23px 41px, #fff, transparent),
    radial-gradient(1px 1px at 97px 163px, #fff, transparent),
    radial-gradient(1px 1px at 161px 27px, #fff, transparent),
    radial-gradient(1px 1px at 211px 121px, #fff, transparent),
    radial-gradient(1px 1px at 59px 211px, #fff, transparent),
    radial-gradient(1px 1px at 139px 233px, #fff, transparent);
  background-size: 241px 257px;
  opacity: .45;
}
body::after {
  background-image:
    radial-gradient(1.5px 1.5px at 71px 89px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 283px 37px, var(--star), transparent),
    radial-gradient(2px 2px at 331px 251px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 167px 307px, #c9b6ff, transparent),
    radial-gradient(1.5px 1.5px at 19px 331px, #7fdcff, transparent);
  background-size: 409px 373px;
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .3; }
  50% { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; opacity: .6; }
}

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h2 { margin: 0 0 .75rem; font-size: 1.5rem; color: var(--heading); }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--cyan); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

::selection { background: rgba(201, 182, 255, .35); color: #fff; }

.muted { color: var(--ink-soft); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.small { font-size: .9375rem; }

/* The top of every page: the name in the title gradient, on the page's own sky, with a
   few brighter stars of its own. */
header {
  padding: 2.25rem var(--gutter) 2rem;
  background-image: var(--band-stars);
  color: #fff;
}
/* The text colour stays for a browser that cannot clip a background to text. */
header h1 { margin: 0 0 .4rem; font-size: clamp(2rem, 7vw, 2.75rem); letter-spacing: .01em; color: var(--accent); }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  header h1 {
    width: fit-content;
    max-width: 100%;
    background-image: var(--title);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
/* The name, and on the signed-out landing page "Have an account? Sign in" on the same
   row, so the way in for a returning subscriber adds no height to the first screen. With
   the button hidden the row is the name alone, as it was. On a phone narrower than about
   375px the button's words wrap to two lines, right-aligned, rather than take a row. */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .4rem; }
.masthead h1 { margin: 0; }
header button.link.have-account {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 .1rem;
  font-size: .9375rem;
  line-height: 1.3;
  text-align: right;
  text-decoration: none;
}
.have-account-lead { color: var(--night-soft); font-weight: 400; }
.have-account-go { white-space: nowrap; text-decoration: underline; text-underline-offset: .15em; }
header p { margin: 0; }
header .muted { color: var(--night-soft); }
header a { color: var(--star); font-family: var(--serif); font-size: 1.125rem; }
header a:hover { color: #fff; }
header p:has(> a) { margin-bottom: .75rem; }
/* The price, the ad's headline, in the star colour so it reads as its own line. */
header .price { margin-top: .5rem; color: var(--star); font-weight: 600; line-height: 1.4; }
/* A paying reader's plan line, in the price's place and quieter than it. Manage plan is
   a button, as it asks the server for a portal link, drawn as a link in the line. */
header .plan-note { margin-top: .5rem; color: var(--night-soft); font-size: .9375rem; line-height: 1.45; }
header button.link {
  min-height: 0;
  padding: .1rem 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--star);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .15em;
}
header button.link:hover { background: none; color: #fff; }
header button.link:disabled { background: none; color: var(--night-soft); }
header .plan-note-msg { color: var(--star); font-size: .9375rem; line-height: 1.45; }
header .plan-note-msg:not(:empty) { margin-top: .35rem; }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}

/* The app page reads as a stack of glass cards. The legal pages stay plain running text. */
main > section {
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
main > section > :last-child { margin-bottom: 0; }
main > h2 { margin-top: 2rem; }

/* A first visit's example chart, above the birth form (src/sample-chart.js): the wheel
   beside its Sun, Moon and Rising and today's line, on a night band so the wheel's sky
   runs into it. Its size is set here, so it holds its room before the script fills it
   and the form under it does not move. */
.sample {
  display: grid;
  grid-template-columns: clamp(6.25rem, 30vw, 7.25rem) minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: .4rem .8rem .4rem .4rem;
  background-color: var(--band);
  background-image: var(--band-stars);
  /* A ring, not a border, so the band is no taller than the first screen allows for. */
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 10px;
  color: #fff;
}
.sample-wheel { aspect-ratio: 1; }
.sample-wheel .wheel { max-width: none; }
.sample-side { min-width: 0; }
.sample-tag {
  margin: 0 0 .25rem;
  color: var(--star);
  font-size: .8125rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sample-big3 { margin: 0 0 .3rem; padding: 0; list-style: none; line-height: 1.3; }
.sample-big3 li { display: flex; flex-wrap: wrap; column-gap: .35rem; align-items: baseline; }
.sample-label { flex: none; width: 2.9rem; color: var(--night-soft); font-size: .875rem; }
.sample-sign { font-family: var(--serif); font-weight: 700; white-space: nowrap; }
.sample-glyph { font-family: var(--glyphs); font-weight: 400; }
.sample-big3 .fire .sample-glyph, .chart-strip-signs .fire .sample-glyph { color: var(--fire); }
.sample-big3 .earth .sample-glyph, .chart-strip-signs .earth .sample-glyph { color: var(--earth); }
.sample-big3 .air .sample-glyph, .chart-strip-signs .air .sample-glyph { color: var(--air); }
.sample-big3 .water .sample-glyph, .chart-strip-signs .water .sample-glyph { color: var(--water); }
.sample-today { margin: 0; color: var(--star); font-size: .875rem; font-weight: 600; line-height: 1.35; }

/* The reader's own Sun, Moon and Rising under "Your reading is ready" (src/chart-strip.js),
   in the example chart's colours and type: in the header on the plans paywall, in the price
   line's place, and as a small night band at the top of Create your account. In the header
   the signs run in one row on most charts at 390px, two for the longest names, and must stay
   no taller than the price line, or Monthly leaves a 390x844 first screen
   (scripts/paywall_screen.py measures it). The box is narrower, so there each sign is a
   column, its label over it (scripts/signup_screen.py). */
.chart-strip { color: #fff; }
header .chart-strip { margin-top: .5rem; }
.signin-strip { margin: 0 0 1rem; padding: .55rem .8rem .6rem; background-color: var(--band); background-image: var(--band-stars); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; }
.chart-strip-ready {
  margin: 0 0 .15rem;
  color: var(--star);
  font-size: .8125rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chart-strip-signs {
  display: flex;
  flex-wrap: wrap;
  column-gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.35;
}
.chart-strip-signs li { display: flex; align-items: baseline; column-gap: .25rem; white-space: nowrap; }
.chart-strip-signs .sample-label { width: auto; color: var(--night-soft); font-size: .8125rem; }
.chart-strip-signs .sample-sign { font-size: 1rem; }
.signin-strip .chart-strip-signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .6rem; }
.signin-strip .chart-strip-signs li { flex-direction: column; align-items: flex-start; white-space: normal; }
.signin-strip .sample-sign { white-space: normal; line-height: 1.25; }
@media (min-width: 40rem) {
  .sample { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; }
  .sample-today { font-size: .9375rem; }
}

/* Today's sky */
#moon-sign { margin: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--heading); }
#retrogrades { margin: .25rem 0 1rem; color: var(--ink-soft); }
#sky-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#sky-list li { padding: .4rem 0; border-top: 1px solid var(--line); }
#sky-more summary { padding: .25rem 0; color: var(--accent); cursor: pointer; }
#sky-more[open] summary { margin-bottom: .5rem; }

/* Forms stack on a phone, and take a label column once there is room. */
form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 1rem; }
form > *, #manual > div > * { min-width: 0; }
form p { margin: 0; }
label { font-weight: 500; }
form .wide, form .actions { grid-column: 1 / -1; }

input:not([type="checkbox"]), textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  font: inherit;
}
input:not([type="checkbox"]):hover, textarea:hover { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: 1; }
input:disabled { background: var(--disabled-bg); color: var(--disabled-ink); }
/* A browser's autofill paints its own light box over a field: keep the field's colours. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 100px var(--field) inset;
}
input[type="checkbox"] {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: .2rem 0 0;
  accent-color: var(--accent);
}
label:has(> input[type="checkbox"]) { display: flex; gap: .6rem; align-items: flex-start; }

/* On a phone the birth date and time share a row, so the example chart above the form
   and the Show my chart button below it fit one screen. Everything else runs full width
   under them, in the page's order. From 360px, a common Android width, to an iPhone
   mini's 375px the landing card's narrower padding (the last block in this file) keeps
   each field wide enough for the date's mm/dd/yyyy. Narrower than 360px they would cut
   it off, so they stack there as before. */
@media (min-width: 22.5rem) and (max-width: 39.99rem) {
  #birth-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: .75rem; }
  #birth-form > #date, #birth-form > #time { padding-inline: .5rem; }
  #birth-form > * { grid-column: 1 / -1; }
  #birth-form > label[for="date"] { grid-area: 1 / 1; }
  #birth-form > #date { grid-area: 2 / 1; }
  #birth-form > label[for="time"] { grid-area: 1 / 2; }
  #birth-form > #time { grid-area: 2 / 2; }
}

@media (min-width: 40rem) {
  #birth-form, #signin-form, #forgot-form, #reset-form, #manual > div {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
  }
}

.place-box { position: relative; }
#place-list {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  margin: .25rem 0 0;
  padding: .25rem;
  max-height: 16rem;
  overflow-y: auto;
  list-style: none;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
#place-list li { padding: .45rem .6rem; border-radius: 6px; cursor: pointer; }
#place-list li:hover, #place-list li[aria-selected="true"] { background: #2a2257; }
/* On a phone the open list takes its own room under the box and pushes Show my chart
   down, rather than being drawn over it. Drawn over it, a tap meant for the button picked
   whatever place lay under the finger (360x780, 2026-11-14). A tap on the button still
   closes the list first (src/birth-form.js), and the typed place is used when it names one
   city. scripts/first_screen.py taps both. Wider screens keep the list over the page, as
   their label column sits beside the box and a mouse sees where it points. */
@media (max-width: 39.99rem) {
  #place-list { position: static; box-shadow: none; }
}

/* While the place list loads: a line under the box with a small turning ring. */
.place-status { display: flex; align-items: center; gap: .5rem; color: var(--accent-strong); font-weight: 500; }
.place-status::before {
  content: "";
  flex: none;
  width: .9rem;
  height: .9rem;
  border: 2px solid var(--accent-tint);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: turn .8s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .place-status::before { animation: none; border-color: var(--accent); }
}

#manual summary { padding: .25rem 0; color: var(--accent); cursor: pointer; }
#manual > div { display: grid; gap: .5rem 1rem; margin-top: .5rem; }

/* Off screen, for the bots this field exists to catch. */
.trap { position: absolute; left: -9999px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }

/* A filled button is the light violet with night text, and glows a little. */
button {
  min-height: 2.75rem;
  padding: .55rem 1.1rem;
  background: var(--accent);
  color: var(--sky);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(139, 123, 255, .28);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
button.quiet { background: transparent; color: var(--accent); border-color: rgba(201, 182, 255, .5); box-shadow: none; }
button.quiet:hover { background: var(--accent-tint); color: var(--accent-strong); border-color: var(--accent); }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); box-shadow: none; }
button.danger:hover { background: rgba(239, 107, 107, .12); color: var(--danger); }
/* The delete question under Your account (src/app.js), asked in the page, and the one
   button that deletes, filled so it cannot be mistaken for Keep my account. */
.delete-confirm { margin-top: .75rem; padding: .75rem 1rem; border: 1px solid var(--danger); border-radius: 8px; background: rgba(239, 107, 107, .08); }
.delete-confirm p { margin: 0; color: var(--danger); font-weight: 600; }
/* Start my plan now under Your account, with its question in the page as the delete's is. */
.start-now { margin-bottom: 1rem; }
.start-now > p { margin: 0 0 .5rem; color: var(--night-soft); line-height: 1.45; }
.start-now-confirm { margin-top: .75rem; padding: .75rem 1rem; border: 1px solid var(--star); border-radius: 8px; }
.start-now-confirm p { margin: 0; font-weight: 600; line-height: 1.45; }
.start-now-msg { color: var(--star); line-height: 1.45; }
.start-now-msg:empty { display: none; }
button.danger-go { background: var(--danger-fill); border-color: var(--danger-fill); color: var(--sky); box-shadow: none; }
button.danger-go:hover { background: var(--danger); border-color: var(--danger); }
/* A button drawn as a link, for a quiet way on such as Forgot password? under Sign in. */
main button.link {
  min-height: 2.5rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .15em;
}
main button.link:hover { background: none; color: var(--cyan); }
/* Sign in's line under its buttons: Forgot password? and Email me a code instead, side by
   side, each kept whole on a line of its own if the two do not fit. */
#forgot-line { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
#forgot-line button { white-space: nowrap; }
/* "Already have an account? Sign in" on Create your account stays one line at 360px: the
   button takes a row of its own under Email me a code rather than break its words
   (scripts/signup_screen.py measures it). */
#auth-switch { white-space: nowrap; max-width: 100%; }
/* The code screen (#code-form). The code box is its hero: 56px tall, the digits larger than
   any other text in the box, spaced and centred as a code reads. Confirm my account runs the
   box's width under it. The spam folder is one quiet line between them, and Send a new code
   and Use a different email are links on one line at the foot, each whole on a line of its
   own if the two do not fit. Then the reader's signs, the title, the note and the whole form
   fit a 390x700 and a 360x640 in-app browser (scripts/signup_screen.py measures it). */
#otp {
  min-height: 3.5rem;
  padding: .3rem .7rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .25em;
  /* The spacing also follows the last digit, so this keeps the code itself centred. */
  text-indent: .25em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#code-spam { margin: -.15rem 0 0; line-height: 1.35; }
#code-form .actions button { width: 100%; min-height: 3rem; }
/* Open Gmail, Open Outlook or Open Mail, first in the code form: a quiet button the width of
   the box, so Confirm my account stays the one filled button. It is a link, as it opens the
   mail app or the inbox (mailButton in src/signup.js). */
#code-mail { font-size: 1rem; }
a.button.quiet { background: transparent; color: var(--accent); border-color: rgba(201, 182, 255, .5); box-shadow: none; }
a.button.quiet:hover { background: var(--accent-tint); color: var(--accent-strong); border-color: var(--accent); }
#code-links { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
#code-links button { white-space: nowrap; }
main button.link:disabled { background: none; border: 0; color: var(--disabled-ink); text-decoration: none; }
button:disabled, button:disabled:hover {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  border-color: var(--line);
  box-shadow: none;
  cursor: not-allowed;
}

/* The preview's and the paywall's today: the planet line as a small eyebrow, the day's
   verdict in plain words as the largest text in the preview (larger than "Your chart"),
   then today's line from the reading library in body type, in its tinted box. */
.eyebrow { margin: 0; color: var(--accent); font-size: .875rem; font-weight: 600; line-height: 1.35; letter-spacing: .01em; }
.verdict {
  margin: .1rem 0 .5rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading);
  text-wrap: balance;
}
.headline {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}

/* Paywall. The renewal terms have a legal job: they are never smaller or fainter
   than body text, and they sit in plain view above the plan buttons. The price line
   above them is in larger type, so the terms are set off from it by their own box, darker
   than the card with a full border, which is how they stay clear and conspicuous (Cal. Bus.
   & Prof. Code 17601(c): "set off from the surrounding text ... by symbols or other
   marks"). The border is quiet so the price, not the box, leads the screen. */
.terms {
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  background: rgba(7, 6, 26, .55);
  border: 1px solid rgba(201, 182, 255, .45);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}
#paywall label { font-weight: 600; }
#paywall .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#paywall .actions button { min-height: 3.25rem; font-size: 1.125rem; }
#paywall-past-due .actions { grid-template-columns: 1fr; }
/* The plans paywall leads with the price line. Then the terms, at full size, the box, and
   the buttons right under it, so a phone's first screen holds all of them down to the
   trial button and a tick never needs a scroll. The reader's own today comes after. */
#paywall .today { margin: 1.5rem 0 .4rem; }
/* The price line stays the largest type on the paywall after its title, so the verdict in
   the reader's today, under the buttons, is set no larger than the title. */
#paywall .verdict { font-size: 1.25rem; }
#paywall .headline { margin-bottom: .5rem; }
#paywall .locked { margin-bottom: .75rem; }
#paywall .locked li { padding: .4rem 0; }
/* The price line leads the plans: what it costs, in the largest type on the card after
   the title and larger than the terms. One line, as the terms under it say when nothing
   is charged and how to cancel. */
.plan-line { margin: 0 0 .75rem; color: var(--heading); font-weight: 600; line-height: 1.45; }
.plan-lead { display: block; color: var(--accent-strong); font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
/* A first plan's paywall leads with the trial as three steps in the price line's place
   (trialTimeline in src/paywall.js): today, the reminder email, the first charge. A dot for
   each on a thin rail, today's filled, each day in bold. It is not the terms: those stay
   word for word in their own box under it. */
.trial-timeline { margin: 0 0 .75rem; padding: 0; list-style: none; color: var(--heading); font-weight: 600; line-height: 1.35; }
.trial-timeline li { position: relative; padding: 0 0 .3rem 1.5rem; }
.trial-timeline li:last-child { padding-bottom: 0; }
.trial-timeline li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .35em;
  width: .7em;
  height: .7em;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
}
.trial-timeline li + li::before { background: var(--sky); }
.trial-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(.15rem + .35em - 1px);
  top: 1.05em;
  bottom: -.35em;
  width: 2px;
  background: rgba(201, 182, 255, .35);
}
.trial-when { color: var(--accent-strong); font-weight: 700; }
/* The tick row is the gate to the plans (2026-11-18): the whole label is one bordered tap
   target, at least 44px tall, right above the buttons. Only the frame is drawn here. The
   words, and their size, are the label's as the legal sign-off saw them. */
#paywall .consent { margin: 0 0 .75rem; }
#paywall .consent label {
  align-items: center;
  min-height: 2.75rem;
  padding: .3rem .6rem;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}
#paywall .consent input { margin: 0; }
/* The two plans are equal: full-width filled buttons, Monthly over Yearly (index.html).
   Every row is as tall as the tallest, so a label that takes two lines on a narrow phone
   leaves both buttons the same size. */
#paywall .plans { grid-template-columns: 1fr; grid-auto-rows: 1fr; margin: 0 0 1.25rem; }
/* Until the box is ticked both plans read as locked (src/app.js syncConsent sets
   aria-disabled): a dim violet with no glow, not the bright fill, and no hover lift. It is
   colour, not opacity, so the label keeps 4.5:1 and the focus ring its full strength
   (scripts/theme_check.py). A tap still lands and says why in #consent-msg. Ticked, the
   attribute goes and the full fill is back. */
#paywall .plans button[aria-disabled="true"],
#paywall .plans button[aria-disabled="true"]:hover {
  background: #2e2758;
  border-color: rgba(201, 182, 255, .4);
  color: var(--night-soft);
  box-shadow: none;
}
/* While a plan's checkout is out, and while Stripe's page loads (src/app.js pickPlan), the
   tapped plan keeps the full fill and glow and reads "Opening secure checkout...", so the
   tap visibly took. It is disabled, as the other plan is, so a second tap sends nothing, and
   the other takes the plain disabled look. After the aria-disabled rule, so an untick while
   the request is out does not dim the one already opening. */
#paywall .plans button[aria-busy="true"],
#paywall .plans button[aria-busy="true"]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--sky);
  box-shadow: 0 0 18px rgba(139, 123, 255, .28);
  cursor: progress;
}
/* The status line under the plans while that checkout opens: "Taking you to Stripe." in the
   accent ink beside the place list's turning ring. Only while it holds words, so an answer
   that clears it leaves no ring behind. */
#paywall-msg[data-checkout="opening"]:not(:empty) { display: flex; align-items: center; gap: .5rem; color: var(--accent-strong); font-weight: 500; }
#paywall-msg[data-checkout="opening"]:not(:empty)::before {
  content: "";
  flex: none;
  width: .9rem;
  height: .9rem;
  border: 2px solid var(--accent-tint);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: turn .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  #paywall-msg[data-checkout="opening"]:not(:empty)::before { animation: none; border-color: var(--accent); }
}
/* One line under the dimmed buttons naming the tick. Hidden once the box is ticked. */
.plan-hint { margin: -.75rem 0 1rem; color: var(--night-soft); font-size: .9375rem; font-weight: 600; text-align: center; }
/* Between the tick row and the buttons, after an unticked tap. */
.consent-msg { margin: -.25rem 0 .75rem; color: var(--accent-strong); font-weight: 600; }
.consent-msg:empty { display: none; }
/* While the reason shows, the box it points at is ringed, as focus moved there from a tap
   draws no ring of its own. Ticking clears the reason and the ring with it. */
#paywall .consent:has(+ .consent-msg:not(:empty)) input { outline: 3px solid var(--accent); outline-offset: 2px; }

/* The chart: the big three, then the wheel. Shown in the preview and the reading.
   On a phone the big three are short rows, so a long sign like Sagittarius fits. */
.big3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .4rem;
  margin: 0 0 1rem;
}
.big3-card {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .45rem .75rem;
  background: var(--accent-tint);
  border-left: 3px solid var(--el, var(--accent));
  border-radius: 0 8px 8px 0;
  box-shadow: 0 0 18px color-mix(in srgb, var(--el, var(--accent)) 12%, transparent);
  line-height: 1.3;
}
.big3-card.fire, .portrait.fire { --el: var(--fire); }
.big3-card.earth, .portrait.earth { --el: var(--earth); }
.big3-card.air, .portrait.air { --el: var(--air); }
.big3-card.water, .portrait.water { --el: var(--water); }
.big3-label { flex: none; width: 3.5rem; }
.big3-degree { margin-left: auto; }
@media (min-width: 40rem) {
  .big3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .big3-card { flex-direction: column; gap: 0; padding: .6rem .8rem; border-left: 0; border-top: 3px solid var(--el, var(--accent)); border-radius: 8px; }
  .big3-label { width: auto; }
  .big3-degree { margin-left: 0; }
}
.big3-label { color: var(--ink-soft); font-size: .9375rem; font-weight: 600; }
.big3-sign { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: #fff; white-space: nowrap; }
.big3-glyph { color: var(--el); font-family: var(--glyphs); text-shadow: 0 0 12px var(--el); }
.big3-degree { color: var(--ink-soft); font-size: .9375rem; }
/* What the sign says about you there, on the preview's cards (src/sign-lines.js). */
.big3-line { margin-top: .2rem; color: var(--ink); font-size: .875rem; line-height: 1.3; }

/* The paid reading's portrait of each sign, under the cards (src/portraits.js): a title in
   the card's element colour, what that place speaks to, then five headed parts. Reading
   width, as it is the longest text on the site. */
.portraits { margin: 0 0 1.25rem; }
.portrait { margin: 0 0 1.5rem; padding: 0 0 0 .9rem; border-left: 3px solid var(--el, var(--accent)); max-width: 38rem; }
.portrait-title { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--heading); }
.portrait-glyph { color: var(--el); font-family: var(--glyphs); text-shadow: 0 0 12px var(--el); }
.portrait-role { margin: .1rem 0 .4rem; color: var(--ink-soft); font-size: .9375rem; font-weight: 600; }
.portrait h4 { margin: .8rem 0 .15rem; color: var(--el, var(--accent)); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.portrait p { margin: 0; }

.wheel-box { margin: 0 0 1rem; }
.wheel {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin: 0 auto;
  font-family: var(--glyphs);
}
/* The wheel's glow, as the Astrology tab has it, where a phone's GPU is not paying for it. */
@media (min-width: 40rem) {
  .wheel-box .wheel { filter: drop-shadow(0 0 40px rgba(139, 123, 255, .18)); }
}

/* The free preview (index.html), which the page scrolls to after Show my chart. Its
   first screen holds the chart, today's line, a locked row and the signup button. On a
   phone the heading and the wheel share the narrow left column, and the big three take
   the wider right one, each card with its sign line (src/sign-lines.js). A card puts its
   label and sign on one row, the sign wrapping under the label only when it must, and
   the line under them. The degree is left to the wheel's labels, so the cards stay short
   enough for a locked row to reach the first screen. */
#preview { --pad-x: 1.5rem; }
/* No birth time: why the Moon and Rising are missing, and Add my birth time, under the Sun
   card (index.html #preview-time-ask). */
.time-ask { margin: 0 0 1rem; }
.time-note { margin: 0 0 .35rem; color: var(--ink-soft); font-size: .8125rem; line-height: 1.3; }
@media (max-width: 39.99rem) {
  .chart-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "title cards" "wheel cards";
    column-gap: .6rem;
    margin: 0 0 1rem;
  }
  .chart-row > h2 { grid-area: title; margin: 0 0 .5rem; }
  .chart-row .wheel-box { grid-area: wheel; align-self: center; margin: 0; }
  /* Centred, so the Sun card alone (no birth time) keeps its height beside the wheel, with
     Add my birth time under it in the column's width. */
  .chart-row .chart-side { grid-area: cards; align-self: center; min-width: 0; }
  .chart-row .big3 { gap: .35rem; margin: 0; }
  .chart-row .time-ask { margin: .45rem 0 0; }
  .chart-row .time-ask button { width: 100%; padding-inline: .5rem; }
  .chart-row .big3-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; padding: .3rem .45rem; line-height: 1.2; }
  .chart-row .big3-label { width: auto; font-size: .8125rem; }
  .chart-row .big3-sign { font-size: 1rem; }
  .chart-row .big3-glyph { line-height: 1; }
  .chart-row .big3-degree { display: none; }
  .chart-row .big3-line { flex-basis: 100%; margin-top: .1rem; font-size: .8125rem; line-height: 1.25; }
}
/* Spaced as the paywall's today block is, so a locked row still clears the signup bar
   now the bar carries the trial line. */
#preview .headline { margin-bottom: .5rem; }
#preview .locked { margin-bottom: .75rem; }
#preview .locked li { padding: .4rem 0; }
#preview-more { margin: 0; }
/* What Share my chart did, when it saved the card instead of sharing it. */
#preview-share-msg { margin: .5rem 0 0; }
#preview-share-msg:empty { display: none; }
/* The signup bar: in its place under the count line when that is on screen, and stuck
   to the bottom of the screen while the rest of the preview is, so the button is never
   a scroll away. It spans the card, edge to edge. */
.signup-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: .75rem calc(-1 * var(--pad-x)) 0;
  padding: .5rem var(--pad-x) calc(.45rem + env(safe-area-inset-bottom, 0px));
  background: var(--card-solid);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .45);
}
.signup-bar button { width: 100%; min-height: 3rem; font-size: 1.125rem; }
/* The trial line under the button: a card, the date nothing is charged until, and
   cancel any time. Quiet and small, so the bar stays low enough for a locked row above.
   It is a heads-up, not the renewal wording, which the paywall shows at full size. */
.signup-trial { margin: .25rem 0 0; color: var(--ink-soft); font-size: .8125rem; line-height: 1.3; text-align: center; }

/* The preview's today block and the locked titles under it. */
.today { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.125rem; color: var(--heading); }
.locked { margin: 0 0 1rem; padding: 0; list-style: none; }
.locked li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .6rem;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 600;
  color: var(--heading);
}
/* The label keeps its place beside the lock and wraps there, as it did before the rows
   could wrap. Only the teaser, a full row wide, goes under it. */
.locked .lock + span { flex: 1 1 0; min-width: 0; }
/* The free preview's first locked row also shows the opening sentence of that row's paid
   text (src/preview.js lockedHtml), under its label and lined up with it. One line and
   the top of a second, whatever the sentence's length, fading out from the first line
   down, so the visitor reads the start of what the plan unlocks and watches the rest
   vanish under the lock. The fixed height keeps the row clear of the signup bar on a
   360x740 phone with the longest of everything above it (scripts/first_screen.py). */
.locked .teaser {
  flex-basis: calc(100% - 1.4rem);
  height: 2.2em;
  margin: .1rem 0 0 1.4rem;
  overflow: hidden;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, transparent);
}
/* A padlock drawn in CSS: the body, and the shackle as a rounded border above it. */
.lock {
  position: relative;
  flex: none;
  width: .8rem;
  height: .65rem;
  margin-top: .35rem;
  background: var(--accent);
  border-radius: 2px;
}
.lock::before {
  content: "";
  position: absolute;
  left: .14rem;
  bottom: 100%;
  width: .52rem;
  height: .4rem;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: .3rem .3rem 0 0;
}

/* The reading: a night band with today's line, the week strip, then the rows.
   The band runs to the card's edges, so the card's padding is a variable here. */
#reading-section { --pad-x: 1.5rem; padding-top: 0; overflow: hidden; }
.hero {
  margin: 0 calc(-1 * var(--pad-x)) 1rem;
  padding: 1rem var(--pad-x) 1rem;
  background-color: var(--band);
  background-image:
    radial-gradient(1.5px 1.5px at 90% 18%, var(--star), transparent),
    radial-gradient(1px 1px at 76% 40%, #fff, transparent),
    radial-gradient(1px 1px at 96% 62%, #fff, transparent),
    radial-gradient(2px 2px at 84% 8%, var(--star), transparent),
    radial-gradient(520px 240px at 0% 0%, rgba(139, 123, 255, .3), transparent 70%),
    radial-gradient(420px 220px at 100% 100%, rgba(76, 201, 240, .12), transparent 70%);
  box-shadow: inset 0 -1px 0 var(--line);
  color: #fff;
}
.hero p { margin: 0; }
.hero-date { color: var(--star); font-size: .9375rem; font-weight: 600; letter-spacing: .02em; }
.hero-label { margin-left: .4rem; padding-left: .55rem; border-left: 1px solid var(--night-soft); color: var(--night-soft); font-weight: 400; letter-spacing: 0; }
/* The planet line, small, over the day's verdict, which is the band's largest line. The eyebrow
   costs a line, so the band's padding, the verdict's margin and the text's leading are a
   little tighter, to keep the week strip on a 390x844 first screen (scripts/reading_screen.py). */
.hero .hero-eyebrow { margin-top: .2rem; color: var(--night-soft); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.hero .hero-line {
  margin: 0 0 .4rem;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
}
.hero-text { color: #f4f2fb; font-size: 1.0625rem; line-height: 1.5; }
/* Tomorrow's lead under today's, one quiet line. To keep the week strip on a phone's first
   screen with it (scripts/reading_screen.py), the band's bottom padding and margin and the
   strip's rows are a little tighter than before it came. */
.hero .hero-tomorrow { margin-top: .5rem; color: var(--night-soft); font-size: .9375rem; line-height: 1.4; }
.hero-tomorrow-label { color: var(--star); font-weight: 600; }
/* Share today's reading, drawn for the night band: an outline in the star colour. */
.hero button.hero-share {
  margin: .75rem 0 -.25rem;
  min-height: 2.25rem;
  padding: .3rem 1rem;
  background: transparent;
  color: var(--star);
  border: 1px solid var(--star);
  border-radius: 999px;
  box-shadow: none;
  font-size: .9375rem;
}
.hero button.hero-share:hover { background: rgba(241, 217, 160, .14); color: #fff; }
.hero button.hero-share:disabled { background: transparent; color: var(--night-soft); border-color: var(--night-soft); }
.hero .hero-share-msg { color: var(--star); font-size: .9375rem; line-height: 1.45; }
.hero .hero-share-msg:not(:empty) { margin-top: .5rem; }
/* How is it? Tell us: quiet, right under the band, at the right end of the "Your week"
   heading's row. It takes no height of its own, so the week strip stays on a phone's first
   screen (scripts/reading_screen.py). The paragraph is empty in the flow and the link is
   placed over the band's margin. */
.reading-feedback { position: relative; height: 0; margin: 0; font-size: .9375rem; }
.reading-feedback a { position: absolute; top: -.8rem; right: 0; padding: .2rem 0; line-height: 1.4; }

/* Compare with a friend on the paid reading, under the week strip so the strip keeps its
   place on a phone's first screen (scripts/reading_screen.py). */
.reading-compare { margin: -.5rem 0 1.25rem; }
.reading-compare button { min-height: 2.5rem; padding: .35rem 1rem; }
#reading-compare-msg { margin: .5rem 0 0; overflow-wrap: anywhere; }
#reading-compare-msg:empty { display: none; }
#preview-share-msg { overflow-wrap: anywhere; }

/* Email me my reading link (src/home-screen.js), in an in-app browser only: a tinted strip
   across the top of the reading's card, over the band, so the button is on the first screen
   at 360x740 (scripts/design_shots.py --in-app). */
.reading-link { margin: 0 calc(-1 * var(--pad-x)); padding: .75rem var(--pad-x) .8rem; background: var(--accent-tint); }
.reading-link button { width: 100%; min-height: 2.75rem; padding: .4rem 1rem; }
.reading-link-note { margin: .4rem 0 0; color: var(--heading); font-size: .9375rem; line-height: 1.4; }
.reading-link-msg { margin: .4rem 0 0; color: var(--heading); font-size: .9375rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.reading-link-msg:empty { display: none; }

/* Keep NatalDay on your home screen (src/home-screen.js): a tinted box under the week, so it
   reads as an offer and not as part of the reading. */
.home-screen { margin: 0 0 1.25rem; padding: .85rem .85rem 1rem; background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; }
.home-screen-title { margin: 0 0 .3rem; font-family: var(--serif); font-size: 1rem; color: var(--heading); }
.home-screen-text { margin: 0; line-height: 1.45; }
.home-screen button { margin-top: .7rem; min-height: 2.5rem; padding: .35rem 1rem; }
#home-screen-msg { margin: .5rem 0 0; overflow-wrap: anywhere; }
#home-screen-msg:empty { display: none; }

/* The full chart reading's buy box, at the end of the paid reading (index.html #reading-buy),
   and the reading itself (#full-reading). The tick row is framed as the paywall's is, since
   it is the same kind of gate: no checkout until it is ticked (src/app.js buyReading). */
.reading-buy { margin: 0 0 1.25rem; padding: .85rem .85rem 1rem; background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; }
.reading-buy-title { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.1rem; color: var(--heading); }
.reading-buy .consent { margin: 0 0 .75rem; }
/* A block, not the flex row a checkbox label gets (label:has(> input[type="checkbox"])): this
   label holds a link, and flex would lay its words out as separate columns around it. */
.reading-buy .consent label { display: block; position: relative; min-height: 2.75rem; padding: .55rem .6rem .55rem 2.3rem; line-height: 1.4; border: 1px solid var(--accent); border-radius: 8px; cursor: pointer; }
.reading-buy .consent input { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); margin: 0; }
.reading-buy .consent:has(+ .consent-msg:not(:empty)) input { outline: 3px solid var(--accent); outline-offset: 2px; }
.reading-buy button { width: 100%; min-height: 2.75rem; }
#reading-buy-msg:empty { display: none; }
.full-reading-line:empty { display: none; }
.full-reading-rewrite { margin: 0 0 1rem; padding: .75rem .85rem; background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; }
.full-reading-rewrite p { margin: 0 0 .5rem; }
.full-reading-body h3 { margin: 1.5rem 0 .5rem; font-family: var(--serif); color: var(--heading); }
.full-reading-body h4 { margin: 1.1rem 0 .4rem; color: var(--accent-strong); }
.full-reading-body p { line-height: 1.6; }

/* The week strip: seven columns, yesterday to five days on, today marked. */
.strip { margin: 0 0 1.25rem; }
.strip-title, .week-title { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.125rem; color: var(--heading); }
.strip-days, .strip-bar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.strip-days { margin-bottom: .25rem; }
.strip-day { color: var(--ink-soft); font-size: .8125rem; text-align: center; }
.strip-day.now { color: var(--accent-strong); font-weight: 700; }
.strip-rows { margin: 0; padding: 0; list-style: none; }
.strip-row { padding: .35rem 0; border-top: 1px solid var(--line); }
.strip-label { margin-bottom: .3rem; line-height: 1.3; }
/* A bar's small line: the planet title, then the tags. One line always, so the strip keeps
   its height: the title is cut short before the tags wrap (src/transit-strip.js stripHtml). */
.strip-top { display: flex; align-items: baseline; gap: 0 .75rem; min-width: 0; }
.strip-eyebrow { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: .875rem; font-weight: 600; }
.strip-name { display: block; font-family: var(--serif); font-weight: 600; color: var(--heading); }
.strip-tags { display: flex; flex: none; gap: 0 .75rem; }
.strip-tag { color: var(--ink-soft); font-size: .875rem; white-space: nowrap; }
.strip-tag.new { color: var(--cyan); font-weight: 700; }
.strip-bar { height: .75rem; }
.cell { position: relative; }
.cell.on { background: var(--bar); }
.cell.on.start { border-radius: 6px 0 0 6px; }
.cell.on.end { border-radius: 0 6px 6px 0; }
.cell.on.start.end { border-radius: 6px; }
.cell:not(.on) { margin: .3rem 0; background: var(--line); }
/* Today's marker: a line down the today column of every bar. */
.cell.now::after {
  content: "";
  position: absolute;
  top: -.3rem;
  bottom: -.3rem;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--star);
  box-shadow: 0 0 0 1px var(--sky), 0 0 6px rgba(241, 217, 160, .6);
}
.cell.now:not(.on)::after { top: -.6rem; bottom: -.6rem; }

/* This week, this season and the rest. */
.week { margin: 0 0 1rem; padding: 0; list-style: none; }
.week li { padding: .8rem 0; border-top: 1px solid var(--line); }
.week strong { display: block; font-family: var(--serif); font-size: 1.125rem; color: var(--heading); }
.week p { margin: .3rem 0 0; }
/* The planet title over a week row's plain heading, small, as the band's eyebrow is. */
.week .week-eyebrow { margin: 0 0 .1rem; color: var(--ink-soft); font-size: .875rem; font-weight: 600; line-height: 1.35; }
#reading-section details { margin: 0 0 1rem; border-top: 1px solid var(--line); }
#reading-section summary { padding: .7rem 0 .2rem; color: var(--accent); cursor: pointer; }
details.season summary { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; }
.fold { margin: .25rem 0 0; padding: 0; list-style: none; }
.fold li { padding: .6rem 0; }
.fold strong { display: block; font-family: var(--serif); color: var(--heading); }
.fold p { margin: .2rem 0 0; }
/* A folded row's planet title over its plain heading, small, as a week row's is. */
.fold .fold-eyebrow { margin: 0 0 .1rem; color: var(--ink-soft); font-size: .875rem; font-weight: 600; line-height: 1.35; }
#reading-chart { margin-top: .75rem; }

footer {
  margin-top: 2rem;
  padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9375rem;
}
footer a { display: inline-block; margin-right: .75rem; padding: .2rem 0; }

/* On a phone, give the text the width: the contact address fits the terms box on one line. */
@media (max-width: 30rem) {
  header { padding: 1.5rem var(--gutter) 1.25rem; }
  main { padding-top: 1rem; }
  main > section { padding: 1.25rem 1.1rem; }
  #reading-section { --pad-x: 1.1rem; padding-top: 0; }
  #preview { --pad-x: 1.1rem; }
  .terms { padding: .85rem; }
}

/* Narrower than an iPhone mini's 375px, such as a 360x740 Android phone: the signed-out
   landing page sits tighter, so the example chart with its Moon line on one row, the
   three fields and the whole Show my chart button share the first screen
   (scripts/first_screen.py measures it). The header is a little shorter on every screen
   here. On the landing card: its padding, the gaps, the example's wheel column, and the
   tagline's and the example Today line's type. Nothing is hidden. 375px and up are
   as above. */
@media (max-width: 23.399rem) {
  header { padding-top: 1rem; padding-bottom: 1rem; }
  header .masthead { margin-bottom: .25rem; }
  header #tagline { font-size: .9375rem; line-height: 1.45; }
  #birth { padding: .9rem .8rem 1rem; }
  #birth-title { margin-bottom: .4rem; }
  #birth-note { margin: 0 0 .75rem; }
  #birth .sample { grid-template-columns: 6.25rem minmax(0, 1fr); margin-bottom: .75rem; }
  #birth .sample-tag { margin-bottom: .15rem; }
  #birth .sample-big3 { margin-bottom: .2rem; }
  #birth .sample-today { font-size: .8125rem; line-height: 1.3; }
  #birth-form { row-gap: .4rem; column-gap: .5rem; }
  #birth-form > label { line-height: 1.35; }
  #birth-form > .actions { margin-top: .25rem; }
}

/* The landing card's note is one line on every phone, down to 360px. */
@media (max-width: 39.99rem) {
  #birth-note { font-size: .875rem; line-height: 1.4; }
}

/* A short phone screen, as TikTok's and Instagram's in-app browsers leave once their own
   bars take the top and bottom (360x640, 390x700): the signed-out landing page keeps the
   example chart, the three fields and the whole Show my chart button on the first screen
   with no scroll (scripts/first_screen.py measures it). The example drops its Today line
   and its wheel shrinks, but the wheel and the Sun, Moon and Rising stay. The header band,
   the card and the form's gaps sit as tight as on a 360x740 phone. At 375px and up this
   starts under 760px tall, below 375px under 680px, as above those the page fits with the
   Today line (360x740 and 390x844 keep it). Wider than a phone is as before. */
@media (min-width: 23.4rem) and (max-width: 39.99rem) and (max-height: 47.5rem), (max-width: 23.399rem) and (max-height: 42.5rem) {
  body:has(> main > #birth:not([hidden])) header { padding-top: .6rem; padding-bottom: .75rem; }
  body:has(> main > #birth:not([hidden])) header .masthead { margin-bottom: .2rem; }
  body:has(> main > #birth:not([hidden])) header #tagline { font-size: .9375rem; line-height: 1.4; }
  body:has(> main > #birth:not([hidden])) header .price { margin-top: .3rem; line-height: 1.35; }
  main:has(> #birth:not([hidden])) { padding-top: .75rem; }
  #birth { padding: .8rem .8rem 1rem; }
  #birth-title { margin-bottom: .3rem; }
  #birth-note { margin: 0 0 .6rem; }
  #birth .sample { grid-template-columns: 5rem minmax(0, 1fr); margin-bottom: .6rem; padding-block: .3rem; }
  #birth .sample-tag { margin-bottom: .15rem; }
  #birth .sample-big3 { margin-bottom: 0; }
  #birth .sample-today { display: none; }
  #birth > #birth-form { row-gap: .35rem; column-gap: .5rem; }
  #birth > #birth-form > label { line-height: 1.35; }
  #birth > #birth-form > .actions { margin-top: .25rem; }
}

/* The plans paywall on a phone, up to 480px wide: the price line or the trial's steps, the
   terms, the box and both plan buttons share the first screen with no scroll on a
   700px-tall screen at 360px and 390px, as an in-app browser's own bars leave (since
   2026-11-15. With the longest sign names at 360px, Monthly and at least half of Yearly).
   scripts/paywall_screen.py measures it. Before
   2026-11-14 only phones narrower than 375px had this, and at 390x700 Yearly was off the
   screen. Room comes from the frame, never the terms: the header band, the name and the
   reader's signs under it sit tighter, the column and the terms box give the text more
   width (at 360px the terms take 11 lines, not 14), the title takes one line (and on a
   first plan gives way to the trial's three steps), the box's label sits tighter, and the
   plan labels get more of their buttons' width. The terms
   stay at body size, line height 1.5, inside their border, and every word on the screen
   is as on a wider screen. */
@media (max-width: 30rem) {
  body:has(> main > #paywall:not([hidden])) header { padding-top: .6rem; padding-bottom: .6rem; }
  body:has(> main > #paywall:not([hidden])) header h1 { font-size: 1.75rem; }
  body:has(> main > #paywall:not([hidden])) header .masthead { margin-bottom: .25rem; }
  body:has(> main > #paywall:not([hidden])) header .chart-strip { margin-top: .25rem; }
  body:has(> main > #paywall:not([hidden])) header .chart-strip-ready { margin-bottom: 0; }
  body:has(> main > #paywall:not([hidden])) header .chart-strip-signs { line-height: 1.25; }
  main:has(> #paywall:not([hidden])) { padding: .75rem .75rem 0; }
  #paywall { padding: .6rem .85rem 1.25rem; }
  #paywall-title { margin-bottom: .4rem; font-size: 1.25rem; }
  #paywall .plan-line { margin-bottom: .5rem; }
  /* The trial's three steps take four lines at 360px and three at 390px, where the price
     line took two, so on a first plan the title gives way, as the steps' "Today: your
     reading unlocks" says what it says.
     It stays in the page for screen readers. Then the terms, the box and both buttons fit
     a 700px-tall screen at 360px and 390px (2026-11-15, scripts/paywall_screen.py). */
  #paywall:has(> #paywall-plans:not([hidden]) > #trial-timeline:not([hidden])) #paywall-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #paywall .trial-timeline { margin-bottom: .5rem; font-size: .9375rem; }
  #paywall .terms { margin-bottom: .5rem; padding: .6rem .7rem; }
  /* The tick row's frame (2026-11-18) costs its border and padding, so on a phone the label
     sits a touch tighter inside it, and its two lines still make it over 44px tall. Then
     Yearly stays whole on a 360x700 first screen. */
  #paywall .consent { margin-bottom: .5rem; line-height: 1.3; }
  #paywall .consent label { padding-top: .15rem; padding-bottom: .15rem; }
  /* .5rem at the sides, not 1.1rem, so "Start free trial, $18 a year, save $6" keeps to one
     line at 360px in the same 18px type, and both buttons are 52px, not 60px (2026-11-15). */
  #paywall .plans button { padding: .4rem .5rem; line-height: 1.25; }
}

/* The compare page (compare.html, src/compare-page.js). The friend's signs first, on the
   night band the example chart has, then the birth form, then both Big
   Threes side by side with the element match and Start my free trial. Laid out for a
   360px phone first (scripts/compare_screen.py). */
.compare-them { margin: 0 0 1rem; padding: .6rem .9rem .7rem; background-color: var(--band); background-image: var(--band-stars); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; color: #fff; }
.compare-tag {
  margin: 0 0 .35rem;
  color: var(--star);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.compare-theirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .6rem; margin: 0; padding: 0; list-style: none; line-height: 1.3; }
.compare-theirs li { display: flex; flex-direction: column; min-width: 0; }
.compare-label { color: var(--night-soft); font-size: .8125rem; }
.compare-sign { font-family: var(--serif); font-weight: 700; white-space: nowrap; }
.compare-glyph { font-family: var(--glyphs); font-weight: 400; }
.compare-page .fire .compare-glyph { color: var(--fire); }
.compare-page .earth .compare-glyph { color: var(--earth); }
.compare-page .air .compare-glyph { color: var(--air); }
.compare-page .water .compare-glyph { color: var(--water); }
.compare-note { margin: 0 0 .75rem; }

.compare-table { width: 100%; margin: 0 0 1rem; border-collapse: collapse; table-layout: fixed; line-height: 1.3; }
.compare-table thead td { width: 3.6rem; }
.compare-table thead th { padding: 0 .4rem .35rem; color: var(--ink-soft); font-size: .875rem; text-align: left; }
.compare-table tbody th { padding: .55rem .4rem .55rem 0; color: var(--ink-soft); font-size: .875rem; font-weight: 600; text-align: left; vertical-align: top; }
.compare-table tbody td { padding: .5rem .4rem; border-top: 1px solid var(--line); vertical-align: top; }
.compare-table tbody th { border-top: 1px solid var(--line); }
.compare-table .compare-sign { color: #fff; font-size: 1.05rem; }
.compare-line { display: block; margin-top: .15rem; color: var(--ink); font-size: .8125rem; line-height: 1.3; }
.compare-none { color: var(--ink-soft); font-size: .8125rem; }
.compare-match-title { margin: 0 0 .35rem; font-family: var(--serif); font-size: 1.125rem; color: var(--heading); }
.compare-match { margin: 0 0 1rem; padding: .75rem 1rem; background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; line-height: 1.45; }
.compare-cta { margin: 0 0 1rem; }

/* A link that does what a filled button does, such as the compare page's Start my free
   trial, which goes to the home page. Drawn as the preview's signup button is. */
a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .55rem 1.1rem;
  background: var(--accent);
  color: var(--sky);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(139, 123, 255, .28);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
a.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--sky); }

@media (max-width: 23.399rem) {
  .compare-page main > section { padding: 1rem .85rem; }
  .compare-table thead td { width: 3.2rem; }
}
