/* ASTROLOGY — The chart, its readout and reference pages, the twelve signs, and the delineations read beneath a chart.

   One of ten stylesheets split out of a single 10,361-line tree.css.
   THE ORDER MATTERS AND IS NOT ALPHABETICAL. The layout links them as
   base → tree → correspondences → reference → tarot → chrome → astrology → history → sections → editing,
   and the rules inside this file keep the order they had in the original,
   so the cascade resolves exactly as it did before the split. */

/* --- astrology ----------------------------------------------------------- */

.astro {
  padding: clamp(0.75rem, 3vw, 2rem);
  max-width: 1600px;
  margin: 0 auto;
}

.astro--pending { opacity: 0.72; }

.astro__heading { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 0.35rem; }
.astro__lead { color: var(--ink-muted); max-width: 62ch; margin: 0 0 1.25rem; line-height: 1.55; }

.astro__layout {
  display: grid;
  grid-template-columns: minmax(260px, 20rem) minmax(320px, 1fr) minmax(280px, 24rem);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

@media (max-width: 1100px) { .astro__layout { grid-template-columns: 1fr; } }

/* --- the form ----------------------------------------------------------- */

.chartform { display: grid; gap: 1rem; }
.chartform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.chartform__field { display: grid; gap: 0.3rem; font-size: var(--type-small); }
.chartform__field > span { color: var(--ink-muted); }
.chartform__field small { color: var(--ink-faint); font-size: var(--type-label); line-height: 1.4; }

.chartform input,
.chartform select {
  background: var(--ground-lift);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  min-height: 2.5rem;
  width: 100%;
}

.chartform input:focus-visible,
.chartform select:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* --- the wheel ---------------------------------------------------------- */

.wheel { width: 100%; height: auto; display: block; }

.wheel__ring { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.wheel__spoke { stroke: var(--rule); stroke-width: 1; }

.wheel__sign { stroke: none; }
.wheel__sign--fire  { fill: #7a2f22; fill-opacity: 0.30; }
.wheel__sign--earth { fill: #3f5233; fill-opacity: 0.30; }
.wheel__sign--air   { fill: #3a4a63; fill-opacity: 0.30; }
.wheel__sign--water { fill: #2f4f57; fill-opacity: 0.30; }

/* A stack that actually covers the astrological symbols, ahead of anything
   that would substitute emoji. The glyphs also carry U+FE0E. */
.wheel__sign-glyph,
.wheel__planet-glyph {
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2",
    "Symbola", var(--serif), serif;
  font-variant-emoji: text;
}

.wheel__sign-glyph { fill: var(--ink); font-size: 34px; }

.wheel__cusp { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 4 4; }
.wheel__house-number { fill: var(--ink-faint); font-size: 20px; }

.wheel__angle { stroke: var(--ink); stroke-width: 2; }
.wheel__angle--ascendant,
.wheel__angle--midheaven { stroke-width: 3; }
.wheel__angle--descendant,
.wheel__angle--imumCoeli { stroke-opacity: 0.45; }
.wheel__angle-label {
  fill: var(--ink); font-size: 22px; font-family: var(--serif); letter-spacing: 0.06em;
}

.wheel__aspect { stroke-width: 1.2; fill: none; }
.wheel__aspect--conjunction { stroke: #d8c68a; }
.wheel__aspect--opposition  { stroke: #c2554a; }
.wheel__aspect--square      { stroke: #c2554a; stroke-opacity: 0.8; }
.wheel__aspect--trine       { stroke: #6f9e79; }
.wheel__aspect--sextile     { stroke: #6f9e79; stroke-opacity: 0.7; stroke-dasharray: 5 4; }

.wheel__planet { cursor: pointer; }
.wheel__planet-glyph { fill: var(--ink); font-size: 34px; }
.wheel__planet-tick { stroke: var(--ink); stroke-width: 1.5; }
.wheel__planet-retro { fill: var(--ink-muted); font-size: 18px; }
.wheel__planet--on .wheel__planet-glyph { fill: var(--accent); }
.wheel__planet:focus-visible { outline: 2px solid var(--ink); }

/* --- the readout -------------------------------------------------------- */

.readout { display: grid; gap: 1.25rem; font-size: var(--type-small); }
.readout__block h2 {
  font-family: var(--serif); font-size: 1.05rem; margin: 0 0 0.5rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid var(--rule);
}
.readout__qualifier { color: var(--ink-faint); font-size: 0.82rem; font-style: italic; }
.readout dl { margin: 0; }
.readout__row { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem; padding: 0.18rem 0; }
.readout__row dt { color: var(--ink-muted); }
.readout__row dd { margin: 0; }
.readout__mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; font-size: var(--type-small); }

.readout__cusps, .readout__planets, .readout__aspects {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem;
}
.readout__cusps li, .readout__planets li, .readout__aspects li {
  display: flex; gap: 0.6rem; align-items: baseline;
}
.readout__cusp-number, .readout__house {
  color: var(--ink-faint); font-variant-numeric: tabular-nums; min-width: 1.6rem;
}
.readout__planet-name, .readout__aspect-pair { text-transform: capitalize; }
.readout__aspect-symbol { color: var(--ink-muted); }
.readout__orb { color: var(--ink-faint); margin-left: auto; font-variant-numeric: tabular-nums; }
.readout__retro { color: var(--ink-muted); }

.readout__note { color: var(--ink-faint); font-size: var(--type-small); line-height: 1.5; margin: 0.4rem 0 0; }
.readout__warning {
  color: var(--ink-muted); font-size: var(--type-small); line-height: 1.55;
  border-left: 2px solid #c2554a; padding-left: 0.75rem; margin: 0.4rem 0 0;
}

/* --- the ambiguous hour ------------------------------------------------- */

.ambiguity { border: 1px solid #c2554a; padding: 1.25rem; }
.ambiguity__heading { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.5rem; }
.ambiguity__reason { color: var(--ink-muted); line-height: 1.55; margin: 0 0 1rem; }
.ambiguity__options { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ambiguity__option {
  display: grid; gap: 0.2rem; width: 100%; text-align: left;
  background: var(--ground-lift); color: var(--ink);
  border: 1px solid var(--rule); padding: 0.75rem; font: inherit; cursor: pointer;
}
.ambiguity__option:hover { border-color: var(--ink-muted); }
.ambiguity__utc { color: var(--ink-faint); font-size: 0.8rem; font-family: ui-monospace, monospace; }

.astro__problem {
  color: var(--ink-muted); border-left: 2px solid #c2554a; padding-left: 0.75rem;
}

/* --- place search -------------------------------------------------------- */

.placesearch { position: relative; }

.placesearch__results {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--ground-lift);
  border: 1px solid var(--rule);
  max-height: 17rem;
  overflow-y: auto;
  box-shadow: 0 8px 24px var(--shadow-strong);
}

.placesearch__hit {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: var(--type-small);
  cursor: pointer;
}

.placesearch__hit--on { background: var(--surface-hover); }
.placesearch__label { display: block; }
/* The zone is the reason the search exists, so it is always visible. */
.placesearch__zone {
  display: block;
  color: var(--ink-faint);
  font-size: var(--type-label);
  font-family: ui-monospace, monospace;
}

.placesearch__none {
  margin: 0.35rem 0 0;
  color: var(--ink-faint);
  font-size: var(--type-label);
  line-height: 1.45;
}

.placesearch__clear {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-muted);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.astro__credits {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: var(--type-label);
}
.astro__credits a { color: var(--ink-muted); }

/* --- astrology reference pages ---------------------------------------- */
.readout__reference { margin-left: 0.45rem; font-size: var(--type-label); font-weight: normal; }
.readout__planet-symbol { display: inline-block; width: 1.2em; font-size: 1.12em; text-align: center; }
.readout__planet-name, .readout__cusp-number { color: var(--ink); text-decoration-color: var(--rule); }
/* THE SAME SIZE AS THE ARCHANGEL TITLE NEXT DOOR, because they are the same
   kind of page. This was `clamp(2.2rem, 7vw, 4.8rem)` — 77px at a desktop
   width against the 42px of `.archangel-page__name` and the 32px of every
   section index — and with its own 51px of top margin the title block alone
   ran 170px, pushing Saturn's first sentence to 451px down a 900px screen.
   Large type is not the same thing as emphasis when nothing around it agrees. */
.astrology-reference__title {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
}
.astrology-reference__index { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0.75rem; padding: 0; list-style: none; }
.astrology-reference__index li { border: 1px solid var(--rule); background: var(--ground-lift); }
.astrology-reference__index a { display: grid; grid-template-columns: 3rem 1fr; gap: 0.75rem; align-items: start; height: 100%; padding: 1rem; color: var(--ink); text-decoration: none; }
.astrology-reference__index a:hover { border-color: var(--ink-muted); background: var(--surface-hover); }
.astrology-reference__index strong, .astrology-reference__index small { display: block; }
.astrology-reference__index small { margin-top: 0.3rem; color: var(--ink-muted); line-height: 1.45; }
.astrology-reference__symbol { font-size: 2.2rem; line-height: 1; text-align: center; }
.astrology-reference__number { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 1px solid var(--rule); border-radius: 50%; font-variant-numeric: tabular-nums; }
.astrology-reference .corr-card__value {
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.65;
}

/* --- the twelve signs ----------------------------------------------------- */

/* Every zodiac glyph on these pages inherits the symbol stack, or the browser
   draws them as emoji — the same trap the Tree's element glyphs document, with
   the opposite fix: there the word replaces the glyph, here the glyph IS the
   notation. */
.sign-card__glyph,
.sign-page__glyph,
.planet-chips .chip span[aria-hidden],
.spirit-chips .chip span[aria-hidden],
.rulers .chip span[aria-hidden] {
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2",
    "Symbola", var(--serif), serif;
  font-variant-emoji: text;
}

.sign-grid {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 620px) { .sign-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .sign-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .sign-grid { grid-template-columns: repeat(4, 1fr); } }

.sign-card { background: var(--ground); }
.sign-card__link {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}
.sign-card__link:hover { background: var(--ground-lift); }
.sign-card__glyph {
  flex: none;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink-muted);
}
.sign-card__link:hover .sign-card__glyph { color: var(--ink); }
.sign-card__body { display: block; min-width: 0; }
.sign-card__name { display: block; font-size: 1.02rem; }
.sign-card__meta,
.sign-card__dates,
.sign-card__ruler {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--type-label);
  color: var(--ink-faint);
}
.sign-card__ruler { color: var(--ink-muted); }

.sign-page__hero { display: flex; gap: 1.25rem; align-items: flex-start; margin: 1rem 0 0; }
.sign-page__glyph { flex: none; margin: 0; font-size: 3.4rem; line-height: 1; color: var(--ink-muted); }
.sign-page__also { margin: 0.2rem 0 0.5rem; font-size: var(--type-small); color: var(--ink-faint); }
.sign-page__overview { margin: 1.5rem 0; padding: 1.2rem 1.35rem; border: 1px solid var(--rule); border-radius: 0.75rem; background: var(--surface); }
.sign-page__overview .lens-page__heading { margin: 0 0 0.9rem; }
.sign-page__overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.sign-page__overview-grid > div + div { border-left: 1px solid var(--rule); padding-left: 1.35rem; }
.sign-page__overview-grid h3 { margin: 0 0 0.5rem; }
.sign-page__overview-grid p { margin: 0; line-height: 1.55; }
.sign-page__overview .rulers__note { margin: 1rem 0 0; max-width: 75ch; }
@media (max-width: 640px) {
  .sign-page__overview-grid { grid-template-columns: 1fr; gap: 1rem; }
  .sign-page__overview-grid > div + div { border-left: 0; border-top: 1px solid var(--rule); padding: 1rem 0 0; }
}
.sign-page__caveat {
  max-width: 68ch;
  font-size: var(--type-small);
  color: var(--ink-muted);
  border-left: 2px solid var(--rule);
  padding-left: 0.9rem;
}

.rulers { display: flex; flex-wrap: wrap; gap: 2rem; margin: 0 0 1.5rem; }
.rulers__col { min-width: 12rem; }
.rulers__col .chip { margin-top: 0.4rem; }
.rulers__note {
  margin: 0.5rem 0 0;
  max-width: 34ch;
  font-size: var(--type-label);
  line-height: 1.55;
  color: var(--ink-faint);
}

.planet-split { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 1.5rem 0; }
.planet-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0; padding: 0; }
.astrology-index__emphasis { border-left: 2px solid var(--ink-faint); padding-left: 0.9rem; }

/* ------------------------------------------------- Astrological delineations
   The one interpretive thing in a section that is otherwise arithmetic, so it
   is set apart: a quotation block with the astrologer's name under every one.
   Never styled as a fact panel — `.facts` and `.badge` belong to things this
   study asserts, and this is a thing it reports somebody else asserting. */
.delineations__lede { margin: 0.6rem 0 0; max-width: 68ch; line-height: 1.7; color: var(--ink-muted); }
.delineations__list { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.delineation { max-width: 72ch; margin: 0 0 1.5rem; padding: 0 0 0 1rem; border-left: 2px solid var(--rule); }
.delineation__heading {
  margin: 0 0 0.4rem; font-size: var(--type-label); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 400;
}
.delineation__quote {
  margin: 0; font-family: var(--serif, serif); font-size: 1rem;
  line-height: 1.75; color: var(--ink);
}
.delineation__source { margin: 0.45rem 0 0; color: var(--ink-faint); font-size: var(--type-small); line-height: 1.5; }
.delineations__missing {
  margin: 0.4rem 0 0; max-width: 68ch; font-size: var(--type-small);
  line-height: 1.65; color: var(--ink-muted); font-style: italic;
}
.astrology-readings { max-width: 100rem; margin: 0 auto; padding: 0 clamp(0.75rem, 3vw, 2rem) 3rem; }

/* The readings are swapped in when the wheel changes; while the new chart is
   in flight the old ones are stale, so they say so rather than sitting there
   looking current. */
.astrology-readings[aria-busy="true"] { opacity: 0.45; transition: opacity 120ms ease; }
@media (prefers-reduced-motion: reduce) {
  .astrology-readings[aria-busy="true"] { transition: none; }
}
/* The card's own link is `height: 100%`, which made anything after it land
   OUTSIDE the card and over the row below. Normal block flow puts the line
   under the link instead; the card still fills its grid row because the `li`
   is the grid item, not the link. Deliberately NOT a flex column — that put
   the two side by side and wrapped the line one word per row. */
.astrology-reference__index li > a { height: auto; }
.astrology-reference__readings {
  /* Aligned with the card's text column: 1rem of padding, a 3rem numeral and
     the 0.75rem gap between them. */
  margin: 0; padding: 0 1rem 0.9rem 4.75rem; font-size: 0.82rem;
}
/* `.astrology-reference__index a` styles EVERY anchor in the list as a two
   column grid — that is the card itself — so without this the readings link
   became a grid too and put each of its words in a row of its own. */
.astrology-reference__readings a {
  display: inline; padding: 0; color: var(--ink-muted);
}
.astrology-reference__readings a:hover { color: var(--ink); }

/* The chart's own readings. A pointer at the top, because the wheel and the
   readout put two thousand pixels between it and anyone looking for it. */
.astrology-jump {
  max-width: 100rem; margin: 0 auto; padding: 0.9rem clamp(0.75rem, 3vw, 2rem) 0;
  font-size: var(--type-small);
}
.chart-readings__count { margin: 0.8rem 0 0; color: var(--ink-muted); }
.chart-readings__list { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.chart-readings__placement {
  max-width: 72ch; padding: 1.1rem 0; border-top: 1px solid var(--rule);
}
.chart-readings__where {
  margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: baseline;
}
.chart-readings__planet { font-family: var(--serif, serif); font-size: 1.05rem; }
.chart-readings__position { color: var(--ink-muted); font-size: var(--type-small); }
.chart-readings__house {
  font-size: var(--type-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
/* A placement nobody wrote about is dimmed, not hidden: the silence is part
   of what the section is saying. */
.chart-readings__placement--silent .chart-readings__planet { color: var(--ink-muted); }
.chart-readings__silent {
  margin: 0; max-width: 68ch; font-size: var(--type-small); line-height: 1.65;
  color: var(--ink-faint); font-style: italic;
}
.chart-readings .delineation { margin: 0 0 1.1rem; }

/* The About pages, and the one list on this site that is openly an opinion.
   No new colours: the recommendation rows reuse the panel vocabulary so they
   sit beside the rest of Reference rather than announcing themselves. */
.about__section { max-width: 62ch; }

.recommendations {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.recommendation {
  border-left: 2px solid var(--rule);
  padding: 0 0 0 1rem;
}

.recommendation__name {
  margin: 0;
  font-size: 1.02rem;
}

/* The maker sits beside the name rather than under it, and recedes: the name
   is what a reader is scanning for. */
.recommendation__creator {
  color: var(--ink-faint);
  font-size: var(--type-small);
}

.recommendation__creator::before { content: "· "; }

.recommendation__summary {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.recommendation__note {
  margin: 0.35rem 0 0;
  color: var(--ink-faint);
  font-size: var(--type-small);
}

/* Only an editor in edit mode ever sees this: a note nobody has written is
   nothing at all to a reader, and somewhere to write one to an editor. */
.recommendation__note--empty {
  color: var(--ink-faint);
  font-style: italic;
}
