/* The tools' look, taken from the main site: night blue, red and Helvetica, with a serif for the long texts. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(source-serif-4-greek.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(source-serif-4-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --night: #0d3b6e;
  --night-deep: #0a2d54;
  --sky: #1b6fb3;
  --link: #155a94;
  --red: #cf000f;
  --ink: #1d2733;
  --text: #27313c;
  --muted: #46515c;
  --line: #cfd6dd;
  --page: #f3f5f7;
  --card: #ffffff;
  --tint: #e6f0f9;
  --error: #b00012;
  --error-bg: #fdf0f1;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --symbols: "Noto Sans Symbols", "Apple Symbols", "Segoe UI Symbol", sans-serif;
  /* Controls: the owner asked for smaller ones on a phone. These are the wide-screen sizes, and the media query at the end has the phone's. */
  --small-h: 44px;
  --small-font: 0.9375rem;
  --main-h: 52px;
  --main-font: 1.0625rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: var(--link); }
a:hover { color: var(--night); }
img { max-width: 100%; height: auto; }
h1, h2 { color: var(--ink); line-height: 1.25; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.astro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, var(--night-deep), var(--sky));
  border-bottom: 4px solid var(--red);
  padding: 6px 14px;
}
.astro-top img { display: block; height: 36px; width: auto; }
/* The two languages, side by side, with the chosen one filled in. */
.lang-switch { display: inline-flex; flex: none; overflow: hidden; font-size: 0.875rem; border: 1px solid #fff; border-radius: 6px; }
.lang-switch form { display: contents; }
.lang-current, .lang-other { display: flex; align-items: center; min-height: 32px; padding: 3px 11px; }
.lang-current { font-weight: 700; color: var(--night); background: #fff; }
.lang-other { color: #fff; background: none; border: 0; font: inherit; text-decoration: none; cursor: pointer; }
.lang-other:hover { color: #fff; background: rgba(255, 255, 255, 0.2); }
/* Astrology terms: the page's language, and the other whole beneath it. */
.both { display: block; }
.both > span { display: block; }
.both > span + span { font-size: 0.8125rem; font-weight: 400; line-height: 1.3; color: var(--muted); }
h1 .both > span + span { font-size: 0.9375rem; margin-top: 1px; }
summary > .both { display: inline-block; max-width: calc(100% - 1.25em); vertical-align: top; }
.check .both { display: block; }
.both + br { display: none; }
/* Long texts: the other language directly under the text, behind a small closed button. */
.text-credit { font-size: 0.9375rem; color: var(--muted); margin: 12px 0 0; }

.astro-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 20px 16px 8px;
}
h1 { font-size: 1.6rem; margin: 4px 0 8px; }
/* A form's way back: small, beside the heading, so it takes no row of its own. The owner found a button on its own row too big. */
/* Navigation has two looks. Anything that only moves the reader around is a small text link, and the next step of reading is the one button, .btn-next. */
.back-link, .nav-link { padding: 2px 0; font-size: 0.875rem; line-height: 20px; }
.nav-link { display: inline-block; }
.back-link { float: right; margin: 6px 0 0 12px; white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 8px; z-index: 10; padding: 8px 14px; font-size: 0.9375rem; color: var(--night); background: #fff; border: 2px solid var(--night); border-radius: 6px; }
.skip-link:focus { top: 8px; }
main:focus, .reader-step:focus { outline: none; }
.lead { margin: 0 0 18px; }

/* The form */
.astro-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 16px;
}
.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
legend, .field > label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row > div { min-width: 0; }
.row .small { flex: 0 0 4rem; }
.row .medium { flex: 0 0 5rem; }
.row .grow { flex: 1 1 8rem; }
.row label { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 3px; }
input[type="text"], input:not([type]), select {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8a96a3;
  border-radius: 6px;
}
input::placeholder { color: var(--muted); opacity: 1; }
.check, .choice, .field > label.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; margin: 4px 0 0; cursor: pointer; font-weight: 400; color: var(--text); }
.check input, .choice input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.choice { border-top: 1px solid var(--line); }
.choice small { display: block; color: var(--muted); }
.choices { border: 0; padding: 0; margin: 14px 0 0; }
.choices legend { margin-bottom: 8px; }
.hint { font-size: 0.875rem; color: var(--muted); margin: 6px 0 0; }
.error { color: var(--error); font-weight: 700; font-size: 0.9375rem; margin: 8px 0 0; }
.has-error input:not([type="checkbox"]):not([type="radio"]), .has-error select { border: 2px solid var(--error); }
.error-summary {
  background: var(--error-bg);
  border: 2px solid var(--error);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px 16px;
}
.error-summary p { margin: 0 0 4px; font-weight: 700; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); }
.person-title {
  font-size: 1.1875rem;
  color: var(--night);
  margin: 26px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}
.person-title:first-of-type { margin-top: 0; }
.target { border-top: 1px solid var(--line); padding-top: 16px; }

.place-box { position: relative; }
.place-results {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #8a96a3;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(13, 59, 110, 0.18);
  max-height: 24rem;
  overflow-y: auto;
}
.place-results[hidden] { display: none; }
.place-results li { padding: 10px 12px; border-top: 1px solid var(--line); }
.place-results li:first-child { border-top: 0; }
.place-results [role="option"] { cursor: pointer; }
.place-results [role="option"]:hover, .place-results [aria-selected="true"] { background: var(--tint); }
.place-results strong { display: block; color: var(--ink); }
.place-results span { display: block; font-size: 0.875rem; color: var(--muted); }
.place-none { color: var(--muted); font-size: 0.9375rem; }
.place-preview {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--tint);
  border-radius: 6px;
}
.place-preview[hidden] { display: none; }
.manual { border-top: 1px solid var(--line); margin: 0 0 18px; padding-top: 14px; }
.manual summary { cursor: pointer; color: var(--link); font-weight: 700; padding: 6px 0; }
.manual[open] summary { margin-bottom: 10px; }
.actions input {
  width: 100%;
  min-height: var(--main-h);
  padding: 8px 18px;
  font: inherit;
  font-size: var(--main-font);
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.actions input:hover { background: #a90010; }
.privacy { font-size: 0.875rem; color: var(--muted); margin: 14px 2px 0; }
.privacy p { margin: 0 0 6px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }

/* The footer */
.astro-foot {
  margin-top: 32px;
  background: linear-gradient(180deg, var(--sky), var(--night-deep));
  border-top: 4px solid var(--red);
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.astro-foot a { color: #fff; }
.astro-foot a:hover { color: #dcecff; }
.foot-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 24px 16px 16px;
  display: grid;
  gap: 14px;
}
.foot-brand img { display: block; height: 56px; width: auto; }
.foot-brand p { margin: 8px 0 0; max-width: 24rem; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.5; }
.foot-links { min-width: 0; }
.foot-links h2 { margin: 0 0 4px; font-size: 0.9375rem; font-weight: 700; color: #fff; }
.foot-links div { display: flex; flex-wrap: wrap; column-gap: 16px; }
.foot-links a { display: flex; align-items: center; min-height: 34px; }
/* As on astrolife.gr: the astrologer's photo under «Κλείστε ραντεβού», with the number for booking. */
.foot-book { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.foot-brand .foot-book-photo { flex: none; box-sizing: border-box; width: 64px; height: 64px; object-fit: cover; object-position: 50% 18%; border: 2px solid #fff; border-radius: 50%; }
.foot-book > div { min-width: 0; }
.foot-book h2 { margin: 0; font-size: 0.9375rem; font-weight: 700; color: #fff; }
.foot-brand .foot-book p { margin: 2px 0 0; max-width: none; font-family: inherit; font-size: 0.875rem; line-height: 1.4; color: #dcecff; }
.foot-brand .foot-book .foot-book-links { margin-top: 4px; font-size: 0.9375rem; color: #fff; }
.foot-credit { background: var(--night-deep); border-top: 1px solid var(--sky); }
.foot-credit > div {
  max-width: 72rem;
  margin: 0 auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  font-size: 0.875rem;
  color: #dcecff;
}
.credit { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.credit strong { color: #fff; }
.credit img { display: block; height: 24px; width: auto; border-radius: 4px; }
.foot-credit .credit:last-child { display: block; }
@media (min-width: 48rem) {
  .foot-main { padding: 32px 24px 24px; gap: 32px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .foot-main.no-tool { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
  .foot-links div { display: block; }
  .foot-links a { min-height: 30px; }
  .foot-credit > div { padding: 14px 24px; }
}

/* The list of tools: 8 equal cards in three groups. The whole card is the link, so it's easy to press on a phone. */
.astro-list .astro-main, .astro-results .astro-main { max-width: 72rem; }
.tool-grid { margin-top: 20px; }
.tool-section { min-width: 0; margin-top: 22px; }
.tool-section:first-child { margin-top: 0; }
.tool-group {
  font-size: 1.25rem;
  color: var(--night);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-list li { margin: 0 0 10px; }
.tool-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  column-gap: 12px;
  height: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.tool-list a:hover { border-color: var(--sky); }
.tool-list a:hover strong { text-decoration: underline; }
.tool-thumb { grid-column: 1; grid-row: 1; display: block; width: 52px; height: 52px; }
.tool-list strong { grid-column: 2; grid-row: 1; font-size: 1.0625rem; line-height: 1.25; color: var(--night); }
.tool-list strong .both > span + span { color: var(--muted); }
.tool-popular { grid-column: 3; grid-row: 1; align-self: start; padding: 3px 8px; font-size: 0.75rem; font-weight: 700; line-height: 1.2; color: var(--night); background: var(--tint); border-radius: 6px; }
.tool-about { grid-column: 1 / -1; grid-row: 2; display: block; margin-top: 8px; font-size: 0.9375rem; line-height: 1.4; }
.tool-meta { grid-column: 1 / -1; grid-row: 3; align-self: end; display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; font-size: 0.8125rem; line-height: 1.35; }
.tool-needs { flex: 1 1 auto; min-width: 0; }
.tool-list .popular a { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
/* Who the free programs are from, under the list's heading, and the astrologer's banner under the list. */
.lead-by { display: flex; align-items: center; gap: 12px; margin: -8px 0 18px; font-size: 0.9375rem; line-height: 1.4; }
.lead-by-photo { flex: none; display: block; width: 44px; height: 44px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.banner { margin: 32px 0 0; }
.banner-wide { display: none; }
.banner-wide img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
/* The banner's words, for phones and for readers who ask for less motion: its look, with numbers that call and charges that can be read. */
.banner-text { max-width: 650px; margin: 0 auto; padding: 14px 14px 12px; color: #fff; background-color: #000; border-radius: 8px;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 33% 64%, #c9d6e8 50%, transparent 51%), radial-gradient(1px 1px at 58% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 71% 82%, #c9d6e8 50%, transparent 51%), radial-gradient(1px 1px at 86% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 90%, #fff 50%, transparent 51%); }
.banner-head { display: flex; align-items: flex-start; gap: 12px; }
.banner-head > div { flex: 1 1 auto; min-width: 0; }
.banner-head img { flex: none; display: block; width: 76px; height: 92px; object-fit: cover; object-position: 50% 15%; border-radius: 6px; }
.banner-text p { margin: 0; }
.banner-text .banner-name { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.5px; color: #e3262b; }
.banner-text .banner-role { margin-top: 4px; font-size: 0.8125rem; line-height: 1.35; color: #dcecff; }
.banner-text .banner-tagline { margin-top: 8px; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.3; }
.banner-text .banner-call { margin-top: 10px; font-size: 0.875rem; }
.banner-text .banner-phones { display: flex; flex-wrap: wrap; column-gap: 20px; }
.banner-phones a { display: inline-flex; align-items: center; min-height: 36px; font-size: 1.1875rem; font-weight: 700; color: #fff; }
.banner-phones a:hover { color: #dcecff; }
.banner-text .banner-small { margin-top: 6px; font-size: 0.75rem; line-height: 1.4; color: #cfd6dd; }
@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  .banner-wide { display: block; }
  .banner-text { display: none; }
}
.arrow { flex: none; color: var(--sky); font-size: 1.25rem; line-height: 1.2; }
@media (min-width: 48rem) {
  /* The groups' contents share one grid, so every card is the same size and the rows line up across the groups. */
  .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(3, 1fr); gap: 10px 24px; }
  .tool-section, .tool-list, .tool-list li { display: contents; }
  .tool-group { margin: 0; }
  .col-1 { grid-column: 1; } .col-2 { grid-column: 2; } .col-3 { grid-column: 3; }
  .tool-group { grid-row: 1; }
  .row-2 { grid-row: 2; } .row-3 { grid-row: 3; } .row-4 { grid-row: 4; }
  /* A group that runs across under the others: its heading on row 5, and its cards side by side on row 6. */
  .tool-group.across { grid-column: 1 / -1; grid-row: 5; margin-top: 12px; }
  .row-6 { grid-row: 6; }
  .tool-list a { grid-column: inherit; grid-row: inherit; padding: 12px 14px; }
  .tool-thumb { width: 60px; height: 60px; }
}

/* Shared on the result pages */
.astro-results .astro-main { padding: 16px 16px 8px; }
.astro-results h1 { font-size: 1.75rem; line-height: 1.2; margin: 0; color: var(--ink); }
.astro-results .back-link { margin-top: 7px; }
.card { min-width: 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.card img { display: block; width: 100%; height: auto; }
/* The aspect grid takes the page's whole width. It's drawn large enough to stay sharp there. */
img[src*="aspect_grid"] { display: block; width: 100%; height: auto; }
.btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--small-h);
  padding: 4px 16px;
  font-size: var(--small-font);
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: var(--night);
  border-radius: 6px;
}
.btn-next:hover { color: #fff; background: var(--night-deep); }
.chapter-list + .btn-next { margin-top: 16px; }
.card > .btn-next { display: flex; margin-top: 12px; }
.change-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.875rem; }
.band-title {
  margin: 0;
  padding-bottom: 6px;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--night);
  border-bottom: 2px solid var(--red);
}
/* The long texts are the darkest ink, a little heavier than regular, on white: the owner found grey text on the grey page hard to read. */
.long-text, .reading-text { font-family: var(--serif); font-size: 1.0625rem; font-weight: 450; line-height: 1.7; color: var(--ink); }
.chapter, .short-layout > .analysis { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.long-text { margin: 0; }

/* The person cards, and the checks inside them */
/* The links stay at the top of the card, whatever opens. On a small screen they have the first row, and everything else follows. */
.summary-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 24px; margin-top: 10px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.summary-people { display: grid; gap: 8px; min-width: 0; }
.summary-links { grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 36px; }
.summary-more-space { visibility: hidden; padding-left: 1.1em; font-size: 0.875rem; line-height: 20px; white-space: nowrap; }
.summary-links .nav-link { white-space: nowrap; }
.summary-person + .summary-person { padding-top: 8px; border-top: 1px solid var(--line); }
.chart-name { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.summary-line { margin: 1px 0 0; font-size: 0.9375rem; line-height: 1.35; }
.summary-warnings { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; max-width: 46rem; margin-top: 6px; }
.summary-more { font-size: 0.9375rem; }
/* The toggle has to be inside what it opens, so it's lifted to the top of the card, into the space held for it. */
.summary-more > summary { position: absolute; top: 10px; right: 14px; min-height: 36px; padding: 8px 0; font-size: 0.875rem; line-height: 20px; white-space: nowrap; color: var(--link); cursor: pointer; }
.summary-more[open] { margin-top: 6px; }
.more-body { padding: 4px 0 8px; border-top: 1px solid var(--line); }
.more-people { display: grid; gap: 12px; margin-top: 8px; }
.more-person { min-width: 0; }
.more-name { margin: 0; font-weight: 700; color: var(--ink); }
.birth-line { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.zone-check, .date-check { font-size: 0.9375rem; }
.more-person .zone-check { margin-top: 2px; }
.zone-check > summary { min-height: 36px; padding: 6px 0; color: var(--link); cursor: pointer; }
.date-check, .zone-check.doubt { padding: 3px 10px; background: #fff3cd; border: 1px solid #c98f00; border-radius: 6px; }
.notice-icon { flex: none; margin: 0 5px 0 2px; vertical-align: -4px; color: #b45f00; }
.date-check[open], .zone-check.doubt[open] { flex: 1 1 100%; padding: 8px 12px; }
.date-check > summary, .zone-check.doubt > summary { min-height: 0; padding: 0; font-weight: 700; color: #6b5000; cursor: pointer; }
/* What's on the page. It stays in view, so a reader always knows there's more. */
/* Quiet tabs. The current one is marked by colour and a line, not by weight, so the words don't shift as the reader scrolls. */
.section-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 20px; margin: 10px -16px 0; padding: 0 16px; background: var(--page); border-bottom: 1px solid var(--line); }
.section-bar a { display: flex; align-items: center; min-height: 40px; margin-bottom: -1px; padding-top: 3px; font-size: 0.9375rem; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.section-bar a:hover { color: var(--night); border-bottom-color: var(--line); }
.section-bar a.on { color: var(--night); border-bottom-color: var(--night); }
/* A jump stops under the bar, so the heading it goes to isn't hidden behind it. */
#reading, #chart, #aspect-grid, #positions, #all-aspects, #data, .reading, .reader-step, .chart-data, details[id], h2[id], h3[id] { scroll-margin-top: 60px; }
.screen-reader { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zone-check p, .date-check p { margin: 8px 0; }
/* A time zone we're sure of, though other programs differ. Quieter than the yellow tag, which asks the visitor to check. */
.zone-check.differs { padding: 3px 10px; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; }
.zone-check.differs[open] { flex: 1 1 100%; padding: 8px 12px; }
.zone-check.differs > summary { min-height: 0; padding: 0; font-weight: 700; }
.zone-check .notice-sources, .date-check .notice-sources { font-size: 0.875rem; line-height: 1.45; }
/* How to add the tools to an iPhone's Home Screen. Only iPhones ever see it. */
.install-hint { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; padding: 10px 4px 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 0.9375rem; line-height: 1.4; }
.install-hint[hidden] { display: none; }
.install-hint img { flex: none; border-radius: 9px; }
.install-hint div { flex: 1 1 auto; min-width: 0; }
.install-hint p { margin: 0; }
.install-hint strong { color: var(--ink); }
.install-close { flex: none; width: 44px; height: 44px; margin: -6px 0 -6px; padding: 0; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
.zone-why { display: block; margin-top: 4px; font-size: 0.875rem; }
.zone-form, .date-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding-bottom: 6px; }
.zone-form button, .date-form button {
  min-height: var(--small-h);
  padding: 4px 12px;
  font: inherit;
  font-size: var(--small-font);
  color: var(--night);
  background: #fff;
  border: 1px solid var(--night);
  border-radius: 6px;
  cursor: pointer;
}
.zone-form button.current { color: #fff; background: var(--night); }
.house-form { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.summary-card > .house-form { margin-top: 8px; }
.house-form label { font-size: 0.9375rem; color: var(--text); }
.house-form select { width: auto; min-width: 8rem; min-height: 36px; padding: 2px 8px; }
/* An offer's link to the astrologer's work has this same look, so the page still has one navigation button. */
.house-form input[type="submit"], .offer-button {
  min-height: 36px;
  padding: 4px 12px;
  font: inherit;
  font-size: var(--small-font);
  color: var(--night);
  background: #fff;
  border: 1px solid var(--night);
  border-radius: 6px;
  cursor: pointer;
}
.offer-button { display: inline-flex; align-items: center; text-decoration: none; }

/* The astrologer's own work, offered where it fits: after what the reader came for, one to a screen, never on a form or in a warning. */
.offer { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "text" "act" "more"; column-gap: 12px; align-items: center; margin: 20px 0 0; padding: 14px; background: var(--tint); border-radius: 8px; }
.offer.has-photo { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "pic title" "text text" "act act" "more more"; }
.offer.has-cover { grid-template-columns: 62px minmax(0, 1fr); grid-template-areas: "pic title" "pic text" "pic act" "pic more"; align-items: start; }
.offer-photo { grid-area: pic; display: block; width: 56px; height: 56px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.offer-cover { grid-area: pic; display: block; width: 62px; height: 93px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 3px rgba(13, 59, 110, 0.25); }
.offer-title { grid-area: title; margin: 0; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.offer-text { grid-area: text; margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--text); }
.offer.has-photo .offer-text { margin-top: 10px; }
.offer-button, .offer-link { grid-area: act; justify-self: start; margin-top: 10px; }
.offer-link { font-size: 0.9375rem; line-height: 20px; }
.offer.has-cover .offer-link, .offer-tile .offer-link { margin-top: 6px; }
.offer-more { grid-area: more; display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 0.875rem; line-height: 1.4; }
.offer-more img { flex: none; display: block; width: 30px; height: 43px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 3px rgba(13, 59, 110, 0.25); }
.tiles > .offer-tile { margin: 0; padding: 12px 14px; }
.offer-tile .offer-text { margin-top: 4px; }
.print-credit { display: none; }

/* A planet's symbol: drawn here because it's only decoration */
.chips { display: flex; flex: none; gap: 4px; }
.chip::before, .glyph::before { content: attr(data-g); }
.chip {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--night);
  background: var(--tint);
  font-family: var(--symbols);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}
.chip[data-g="AC"], .chip[data-g="MC"], .chip[data-g="Vx"] { font-family: inherit; font-size: 0.8125rem; font-weight: 700; }
.chip-solid { color: #fff; background: var(--night); }
/* The line that shows an aspect's tone, the same in the lists and on the wheel */
.tone { flex: none; display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--sky); }
.tone-tense { border-top: 2px dashed var(--red); }
.tone-neutral { border-top: 2px dotted var(--muted); }

/* A reading */
.reading { padding: 16px 0 0; border-top: 1px solid var(--line); margin-top: 16px; }
.reading:first-of-type { margin-top: 0; }
.long-text + .reading { margin-top: 16px; }
.reading-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.reading-fold > summary { position: relative; padding-right: 26px; list-style: none; cursor: pointer; }
.reading-fold > summary::-webkit-details-marker { display: none; }
.reading-fold > summary::after { content: "▾"; position: absolute; top: 2px; right: 2px; color: var(--sky); font-size: 1.125rem; line-height: 1; }
.reading-fold:not([open]) > summary { margin-bottom: 0; }
.reading-fold:not([open]) > summary::after { content: "▸"; }
.reading-title { min-width: 0; margin: 0; font-size: 1.125rem; line-height: 1.3; color: var(--ink); }
.reading-title b { display: block; font-weight: 700; }
.reading-title > .both { margin-top: 2px; font-size: 0.9375rem; font-weight: 400; line-height: 1.35; color: var(--text); }
.reading-title.has-tone { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; }
.reading-title.has-tone b { grid-column: 1 / -1; }
.reading-title.has-tone .tone { grid-column: 1; grid-row: 2; }
.reading-title.has-tone > .both { grid-column: 2; grid-row: 2; }
.reading-text { overflow-wrap: anywhere; }
/* One line's height between paragraphs, in the readings and the static texts alike. */
.reading-text p, .long-text p { margin: 0; }
.reading-text p + p, .long-text p + p { margin-top: 1.7em; }
.philosophy .long-text, .explain .long-text, .notes .long-text { padding-bottom: 12px; }

/* The chart data */
.chart-data { margin-top: 24px; }
.chart-data .band-title { margin-bottom: 10px; }
.chart-data > .chapter-title { margin-bottom: 12px; }
.group-cards { display: grid; gap: 10px; align-items: start; }
.data-card { min-width: 0; margin-top: 10px; padding: 4px 14px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.group-cards .data-card { margin-top: 0; }
.data-title { min-height: 44px; padding: 10px 0; font-weight: 700; color: var(--ink); cursor: pointer; }
h3.data-title { min-height: 0; margin: 0 0 6px; padding: 0; font-size: 1.0625rem; color: var(--night); cursor: auto; }
.table-scroll { overflow-x: auto; }
.positions, .aspects { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.3; }
.positions th { padding: 4px 8px 6px 0; text-align: left; vertical-align: bottom; color: var(--ink); border-bottom: 2px solid var(--red); }
.positions td { padding: 4px 8px 4px 0; vertical-align: top; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.positions .num { padding-right: 0; text-align: right; }
.positions td > .both > span[lang="en"], .positions td > .both > span + span { white-space: nowrap; }
.glyph { width: 26px; padding-right: 4px; color: var(--night); font-family: var(--symbols); font-size: 1rem; font-weight: 500; }
.glyph[data-g="Vx"], .glyph[data-g="AC"], .glyph[data-g="MC"] { font-family: inherit; font-size: 0.75rem; font-weight: 700; }
.cusps { margin-top: 14px; }
.cusp-title { margin: 0 0 4px; font-size: 0.9375rem; line-height: 1.3; color: var(--night); }
.legend { margin: 6px 0 10px; font-size: 0.875rem; color: var(--muted); }
.aspect-key { margin: 0 0 6px; font-size: 0.875rem; }
.aspects td { padding: 4px 8px 4px 0; vertical-align: middle; border-bottom: 1px solid var(--line); }
.aspects td:last-child { padding-right: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aspects td:last-child::after { content: "°"; }
.kind-line { display: flex; align-items: center; gap: 6px; }
.notes, .philosophy, .explain { padding: 4px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.notes { margin-top: 16px; }
.notes summary, .philosophy summary, .explain summary { min-height: 44px; padding: 10px 0; font-weight: 700; color: var(--ink); cursor: pointer; }
.philosophy summary h2, .explain summary h3 { display: inline-block; max-width: calc(100% - 1.25em); margin: 0; font-size: 1rem; line-height: 1.3; color: var(--ink); vertical-align: top; }
.closing-title { margin: 20px 0 8px; padding-top: 16px; font-size: 1.125rem; line-height: 1.3; color: var(--ink); border-top: 1px solid var(--line); }
h2.section { margin: 0 0 10px; padding-bottom: 6px; font-size: 1.25rem; line-height: 1.25; color: var(--night); border-bottom: 2px solid var(--red); }
.philosophy summary h2.section, .explain summary h3.section { padding-bottom: 0; color: var(--ink); border-bottom: 0; }

/* Sabian and transits: the chart beside the short texts */
.short-layout { display: grid; gap: 24px; margin-top: 20px; align-items: start; }
.chart-layout { display: grid; gap: 16px; margin-top: 20px; align-items: start; }
.card-title { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.3; color: var(--night); }
.wide-only { display: none; }

/* Natal: the cover */
.boxes-title { margin: 14px 0 10px; font-size: 1.125rem; line-height: 1.3; color: var(--night); }
.tiles { display: grid; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.tile:hover { color: inherit; border-color: var(--sky); }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-title { flex: 1 1 auto; min-width: 0; font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.tile-title .both > span + span { font-size: 0.875rem; }
.tile-text { display: block; font-family: var(--serif); font-weight: 450; font-size: 0.875rem; line-height: 1.45; }
.tile-text > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.philosophy { margin-top: 10px; }
.cover-grid { display: grid; gap: 24px; margin-top: 14px; align-items: start; }
.under-button { margin: 8px 0 0; text-align: center; font-size: 0.875rem; }
.chapter-list { list-style: none; margin: 0; padding: 0; }
.chapter-list li { border-bottom: 1px solid var(--line); }
.chapter-list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 4px; color: inherit; text-decoration: none; }
.chapter-list a:hover { background: var(--tint); }
.number { display: flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; color: var(--night); background: var(--tint); }
.chapter-names { flex: 1 1 auto; min-width: 0; }
.chapter-name { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.chapter-sub { display: block; font-size: 0.875rem; line-height: 1.35; }
.minutes { flex: none; font-size: 0.875rem; line-height: 1.3; text-align: right; white-space: nowrap; color: var(--muted); }

/* Natal: the wheel switch. It needs no script: two inputs at the top of the page decide which wheel shows, everywhere. */
.wheel-input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; }
.wheel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.wheel-bar-label { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.wheel-switch { display: inline-flex; border: 1px solid var(--night); border-radius: 6px; overflow: hidden; }
.wheel-switch label { display: flex; align-items: center; min-height: var(--small-h); padding: 4px 14px; font-size: var(--small-font); color: var(--night); background: #fff; cursor: pointer; }
.wheel-new { display: none; }
#wheel-classic:checked ~ * .wheel-switch label[for="wheel-classic"],
#wheel-new:checked ~ * .wheel-switch label[for="wheel-new"] { font-weight: 700; color: #fff; background: var(--night); }
#wheel-new:checked ~ * .wheel-new { display: block; }
#wheel-new:checked ~ * .wheel-classic { display: none; }
#wheel-classic:focus-visible ~ * .wheel-switch label[for="wheel-classic"],
#wheel-new:focus-visible ~ * .wheel-switch label[for="wheel-new"] { outline: 3px solid var(--sky); outline-offset: -3px; }
.new-wheel { display: block; width: 100%; height: auto; }
.new-wheel text { text-anchor: middle; dominant-baseline: central; }
/* Line widths are in screen pixels, so lines don't turn faint when the chart is shown small. */
.new-wheel line, .new-wheel circle { vector-effect: non-scaling-stroke; }
.wheel-sign { fill: var(--night); font-family: var(--symbols); font-size: 32px; }
.wheel-house { fill: var(--ink); font-size: 18px; font-weight: 700; }
.wheel-mark { fill: var(--night); font-family: var(--symbols); font-size: 26px; font-weight: 500; }
.wheel-mark.word { font-family: inherit; font-size: 16px; font-weight: 700; }
.wheel-point { fill: var(--text); font-family: var(--symbols); font-size: 22px; }
.wheel-point.word { font-family: inherit; font-size: 15px; font-weight: 700; }
.wheel-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0 0; font-size: 0.8125rem; }
.wheel-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.wheel-legend .both > span + span { font-size: 0.75rem; }

/* Natal: one step at a time. A browser that can't do this shows them all in order, which reads fine. */
/* The page's whole width, so a chapter lines up with the tabs above it, as the owner chose. */
.chapter { margin: 12px 0 0; padding: 12px 28px 24px; }
.progress-label { margin: 8px 0 0; font-size: 0.875rem; color: var(--muted); }
.progress { display: flex; gap: 4px; margin-top: 6px; }
.progress span { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--line); }
.progress .done { background: var(--night); }
.chapter-title { margin: 18px 0 2px; font-size: 1.75rem; line-height: 1.2; color: var(--night); }
.chapter-about { margin: 6px 0 14px; }
.chapter-about .both > span + span { font-size: 0.875rem; margin-top: 1px; }
.chapter-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--red); }
.closing { margin-top: 6px; }
.explains { display: grid; gap: 8px; min-width: 0; margin-top: 12px; }
/* As large as fits on the screen, so the whole chart can be seen at once. */
.chart-big .wheel-classic img, .chart-big .new-wheel { max-width: calc(100vh - 120px); margin-inline: auto; }
.natal-data { margin-top: 24px; }
.natal-tables { display: grid; gap: 24px; align-items: start; }
.natal-left, .natal-right, .natal-grid { min-width: 0; }
.natal-grid { margin: 0; }
.natal-left .cusps { margin-top: 24px; }

@supports selector(:has(*)) {
  .reader-step { display: none; }
  .reader-step:target, .reader-step:has(:target) { display: block; }
  .reader:has(.reader-step:target, .reader-step :target) .reader-cover,
  .reader:has(.chapter:target, .chapter :target) .reader-top,
  .reader:has(.chapter:target, .chapter :target) .reader-title .back-link { display: none; }
  /* The heading stays for screen readers, so a chapter's headings still start at the top level. */
  .reader:has(.chapter:target, .chapter :target) .reader-title h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@supports not selector(:has(*)) {
  .chart-data, .chapter { margin-top: 32px; }
}

/* Wide screens */
/* On the narrowest phones both links still fit on the card's first row. */
@media (max-width: 22.5rem) {
  .summary-links { gap: 8px; }
  .summary-links .nav-link, .summary-more-space, .summary-more > summary { font-size: 0.8125rem; }
}

/* With room to spare, one person, the house system and the links share the first row, and anything that opens goes underneath at full width. */
@media (min-width: 64rem) {
  .summary-card:not(.several) { grid-template-columns: minmax(0, 1fr) auto auto; }
  .summary-card:not(.several) > .summary-people, .summary-card:not(.several) .summary-person { display: contents; }
  .summary-card:not(.several) .chart-name { grid-column: 1; grid-row: 1; }
  .summary-card:not(.several) .summary-line { grid-column: 1; grid-row: 2; }
  .summary-card:not(.several) .summary-warnings { grid-column: 1 / -1; grid-row: 3; }
  .summary-card:not(.several) > .house-form { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 0; }
  .summary-card:not(.several) > .summary-links { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
  .summary-card:not(.several) > .summary-more { grid-column: 1 / -1; }
}

@media (min-width: 48rem) {
  .astro-results .astro-main, .astro-list .astro-main { padding: 24px 24px 8px; }
  .astro-results h1 { font-size: 2rem; }
  /* With several people, the house system and the links have the first row, and the people have a row of their own under it. */
  .summary-card.several { grid-template-columns: minmax(0, 1fr) auto; }
  .summary-card.several > .house-form { grid-column: 1; grid-row: 1; margin-top: 0; }
  .summary-card.several > .summary-links { grid-column: 2; grid-row: 1; align-self: start; }
  .summary-card.several > .summary-people { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
  .summary-card.several > .summary-more { grid-column: 1 / -1; }
  .summary-people:has(.summary-person + .summary-person) { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
  .summary-people:has(.summary-person + .summary-person) .summary-person + .summary-person { padding-top: 0; border-top: 0; }
  .more-people.people-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-people.people-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-bar { gap: 28px; margin: 10px 0 0; padding: 0; }
  .groups-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groups-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .groups-1 .data-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
  .groups-1 .cusps { margin-top: 4px; }
  .aspects tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .aspects tr { display: grid; grid-template-columns: minmax(0, 1fr) 8.4rem 3.2rem; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
  .aspects td { display: block; padding: 4px 0; border-bottom: 0; }
  .natal-right .aspects tbody { grid-template-columns: minmax(0, 1fr); }
  .short-layout { grid-template-columns: 420px minmax(0, 1fr); gap: 24px 32px; }
  .short-layout > .analysis { padding: 12px 24px 20px; }
  .sticky-chart { position: sticky; top: 52px; }
  /* The wheel has its own row, so the grid below it isn't squeezed beside it. */
  .chart-layout > .card:first-child img { max-width: 440px; margin-inline: auto; }
  /* Never taller than the screen, so the whole grid can be seen at once. */
  img[src*="aspect_grid"] { max-height: calc(100vh - 72px); object-fit: contain; object-position: left top; }
  .wide-only { display: block; }
  .phone-only, .section-bar a.phone-only { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { padding: 14px 16px; gap: 6px; }
  .tile-title { font-size: 1.0625rem; }
  .tile-text { font-size: 0.9375rem; line-height: 1.5; }
  .cover-grid { grid-template-columns: 420px minmax(0, 1fr); gap: 32px; }
  .natal-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .natal-grid { grid-column: 1 / -1; }
  /* An offer's button goes to the right of its words; a link stays under them. */
  .offer { padding: 18px 20px; }
  .offer.with-button { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title act" "text act" "more act"; column-gap: 20px; }
  .offer.has-photo.with-button { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "pic title act" "pic text act" "pic more act"; }
  .offer.has-cover { column-gap: 16px; }
  .offer-photo { width: 72px; height: 72px; }
  .offer-title { font-size: 1.125rem; }
  .offer.with-button .offer-text { margin-top: 4px; }
  .offer.with-button .offer-button { margin-top: 0; justify-self: end; }
  /* Without a birth time, the offer takes the two boxes the Moon and the Ascendant would have had. */
  .tiles > .offer-tile { grid-column: span 2; padding: 14px 18px; }
}
/* Phones: smaller controls and tighter spacing, as the owner asked. */
@media (max-width: 47.99rem) {
  :root { --small-h: 36px; --small-font: 0.875rem; --main-h: 42px; --main-font: 0.9375rem; }
  .zone-form button, .date-form button { padding: 4px 10px; }
  /* All the boxes stay in view, as short rows, and each still goes to its full text. */
  .tiles { gap: 8px; }
  .tile { padding: 8px 12px; }
  .tile-text { display: none; }
  /* On a phone the white surface runs to the screen's edges, so the text keeps its width. */
  .chapter, .short-layout > .analysis { max-width: none; margin-inline: -16px; padding: 10px 16px 20px; border-width: 1px 0; border-radius: 0; }
  .house-form { flex: 1 1 100%; }
  .house-form label { flex: none; }
  .house-form select { flex: 1 1 6rem; min-width: 0; }
  .wide-only, .section-bar a.wide-only { display: none; }
  .aspects td:first-child { width: 48%; }
}

@media print {
  .astro-top, .astro-foot, .section-bar, .summary-links, .summary-more, .zone-check, .date-check, .house-form, .skip-link, .back-link, .nav-link, .btn-next, .chapter-nav, .wheel-bar, .progress { display: none; }
  body { background: #fff; font-size: 11pt; }
  .astro-results .astro-main { max-width: none; padding: 0; }
  .reader-step, .reader-cover { display: block !important; }
  .chapter, .short-layout > .analysis { max-width: none; margin: 0; padding: 0; border: 0; }
  .reading { break-inside: avoid-page; }
  a { color: inherit; text-decoration: none; }
  /* The chart's own button sits in a card, and that rule is more specific than the list above, so it's named here as well. */
  .card > .btn-next, .under-button, .offer, .banner, .lead-by { display: none; }
  .print-credit { display: block; margin: 24px 0 0; padding-top: 8px; font-size: 10pt; color: var(--ink); border-top: 2px solid var(--red); }
}
