.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.65rem 0 0.15rem;
  padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.brand-mark {
  width: 42px;
  height: auto;
}

.chart-main {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.55rem 0 3rem;
}

.chart-main h1 {
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.chart-main .intro {
  margin-top: 0.5rem;
  max-width: 36rem;
}

.privacy {
  margin-top: 0.65rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}

.privacy-more,
.hint,
.when-zone,
.card-disclaimer,
.note {
  color: var(--plum);
}

.privacy-more,
.hint {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.chart-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.field label,
.check {
  font-weight: 500;
}

.field input[type="date"],
.field input[type="time"],
.field input[type="search"],
.field input[type="email"],
.field input[type="text"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(28, 26, 51, 0.28);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
}

.field input[type="time"],
.field input[type="date"] {
  height: 52px;
  min-height: 52px;
}

.field input[type="time"]::-webkit-date-and-time-value,
.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.25em;
  margin: 0;
}

.field input:disabled {
  opacity: 0.55;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 44px;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--mulberry);
}

.city-field {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.city-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 1px solid rgba(28, 26, 51, 0.18);
  background: #fffdf8;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
}

.city-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.8rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(28, 26, 51, 0.08);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.city-list li:last-child .city-option {
  border-bottom: 0;
}

.city-option:hover,
.city-option:focus-visible {
  background: var(--clay);
}

.city-searching {
  margin: 0.3rem 0 0;
  color: var(--plum);
  font-size: 0.95rem;
}

.zone-note {
  min-height: 0;
  color: var(--plum);
  font-size: 0.95rem;
}

.zone-note:not(:empty) {
  margin-top: 0.25rem;
}

.form-error {
  margin: 0;
  color: var(--mulberry);
  font-weight: 500;
}

button.button,
.signup button.button {
  border: 0;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--radius);
}

.results {
  margin-top: 2.4rem;
  scroll-margin-top: 1rem;
}

.reading {
  background: #fffdf8;
  border: 1px solid rgba(217, 178, 122, 0.95);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.2rem 1.4rem;
}

.reading h2 {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 0.7rem;
}

.when,
.when-zone {
  margin: 0;
}

.when {
  color: var(--ink);
}

.placement {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(28, 26, 51, 0.1);
}

.marks {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}

.point-glyph,
.sign-glyph {
  font-family: var(--serif);
  font-variant-emoji: text;
}

.point-glyph {
  font-size: 1.7rem;
  color: var(--ink);
}

.sign-glyph {
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
}

.placement h3 {
  font-size: 1.85rem;
  line-height: 1.15;
}

.degree {
  margin: 0.15rem 0 0.45rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mulberry);
}

.line,
.note {
  margin: 0;
}

.note {
  margin-top: 0.45rem;
}

.card-disclaimer {
  margin-top: 1.3rem;
  font-size: 0.95rem;
}

.share-row {
  margin-top: 0.9rem;
}

.share-row .button {
  background: transparent;
  color: var(--mulberry);
  border: 1px solid var(--mulberry);
}

.share-row .button:hover,
.share-row .button:visited,
.share-row .button:visited:hover {
  background: var(--mulberry);
  color: var(--parchment);
}

.share-status,
.signup-status {
  margin-top: 0.55rem;
  color: var(--plum);
  white-space: pre-wrap;
}

.upsell {
  margin-top: 2.2rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(90, 61, 107, 0.45), transparent 62%),
    var(--ink);
  color: var(--parchment);
  border: 1px solid rgba(217, 178, 122, 0.6);
  padding: 1.8rem 1.2rem 1.5rem;
  border-radius: var(--radius-card);
  -webkit-font-smoothing: antialiased;
}

.upsell h2 {
  color: var(--parchment);
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.05;
}

.upsell .intro,
.upsell .signup-status,
.upsell .check {
  color: var(--parchment);
}

.upsell .field input {
  background: var(--parchment);
}

.upsell :focus-visible {
  outline-color: var(--gold-bright);
}

.upsell .signup-note a,
.upsell .signup-note a:visited {
  color: var(--gold-bright);
}

.upsell .signup-note a:hover {
  color: var(--parchment);
}

.chart-faq {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 26, 51, 0.1);
}

.chart-faq dl {
  margin: 0;
}

.chart-faq dt {
  margin-top: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.chart-faq dt:first-child {
  margin-top: 0;
}

.chart-faq dd {
  margin: 0.35rem 0 0;
  color: var(--plum);
  max-width: 36rem;
}

.chart-footer {
  border-top: 1px solid rgba(28, 26, 51, 0.12);
}

.chart-footer .chart-link {
  display: inline-block;
  margin-bottom: 0.8rem;
}

@media (min-width: 720px) {
  .chart-main,
  .chart-top {
    width: min(40rem, calc(100% - 4rem));
  }

  .chart-top {
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
  }

  .chart-main {
    padding-top: 0.85rem;
  }

  .chart-main .intro {
    margin-top: 0.7rem;
  }

  .chart-form {
    margin-top: 1.15rem;
    gap: 0.95rem;
  }

  .reading,
  .upsell {
    padding-left: 1.8rem;
    padding-right: 1.8rem;
  }

  button.button,
  .signup button.button,
  .share-row .button {
    width: auto;
    justify-self: start;
  }
}

/* Append to chart/chart.css with the offer block. Uses the existing .upsell dark panel. */
.offer-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}
.offer-price {
  margin-top: 1rem;
  font-size: 1.05rem;
}
.offer-amount {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--gold-bright);
}
.offer-button {
  margin-top: 0.6rem;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}
.offer-note {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
.offer-note a { color: inherit; }

/* 20261206j: birth date as three selects, plain labels, reading primer and closing */
.date-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.date-field legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.date-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.select-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--plum);
  border-bottom: 1.5px solid var(--plum);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0.7rem 2.2rem 0.7rem 0.8rem;
  border: 1px solid rgba(28, 26, 51, 0.28);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  border-radius: var(--radius);
  cursor: pointer;
  text-overflow: ellipsis;
}

.select-wrap select:required:invalid {
  color: var(--plum);
}

.select-wrap select[aria-invalid="true"] {
  border-color: var(--mulberry);
  box-shadow: inset 0 0 0 1px var(--mulberry);
}

.date-error {
  margin: 0.45rem 0 0;
  color: var(--mulberry);
  font-weight: 500;
}

.primer {
  margin-top: 1.1rem;
  color: var(--plum);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.35;
}

.gloss {
  margin: 0.1rem 0 0.3rem;
  color: var(--plum);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.25;
}

.closing {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(28, 26, 51, 0.1);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--ink);
}

.offer .offer-list {
  margin-top: 1.1rem;
}


/* Tight date-row padding on very narrow phones so "Day" does not ellipsize. */
@media (max-width: 374px) {
  .date-row {
    gap: 0.35rem;
  }
  .select-wrap::after {
    right: 0.65rem;
  }
  .select-wrap select {
    padding-left: 0.55rem;
    padding-right: 1.65rem;
  }
}
