/* Birth chart page (/birth-chart/). Tokens only; see nocturne.css. The drawings come from chart-svg.js (kundli,
   zodiacWheel) and colour themselves with token presentation attributes. */

/* ---- Top: the form beside "What you get" ---- */
.bc-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px clamp(32px, 6vw, 88px); padding-top: calc(var(--hero-pad) - var(--section-pad)); }
.bc-intro { flex: 1 1 400px; }
.bc-lead { max-width: 52ch; }
.bc-form { max-width: 540px; padding: 20px; }
.bc-gets { flex: 1 1 300px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.bc-gets .meta { margin-top: 6px; line-height: 1.6; }
.bc-get-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bc-get-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; background: var(--rule) no-repeat bottom / 100% 1px; }
.bc-get-list .icon { width: 22px; height: 22px; }
.bc-get-t { flex: 1; font-size: 16px; font-weight: 500; color: var(--text-strong); }
.bc-get-list .meta { text-align: right; }

/* ---- Result ---- */
.bc-result { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); scroll-margin-top: 96px; }
.bc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.bc-title { font-size: clamp(30px, 3.6vw, 46px); }
.bc-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(32px, 5vw, 72px); }
.bc-main > .stack { flex: 1.2 1 380px; }
.bc-figure { flex: 1 1 320px; max-width: 460px; min-width: 0; margin: 0 auto; }
.bc-figure svg { display: block; width: 100%; height: auto; }
.bc-figure .rd-nudge .rd-nudge-planet { width: 40px; height: 40px; }
.bc-figure .rd-nudge > .icon { width: 18px; height: 18px; }
.bc-nudge { max-width: 640px; }
.bc-figure figcaption { margin-top: 12px; text-align: center; line-height: 1.55; }

.bc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: var(--gap-grid); }
.bc-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 340px) { .bc-cards.four { grid-template-columns: minmax(0, 1fr); } }
.bc-card { padding: 16px; gap: 6px; }
.bc-card-value { font: var(--font-heading-weight) 26px/1.15 var(--font-heading); letter-spacing: -0.02em; color: var(--text-strong); overflow-wrap: break-word; }

.planet.bc-p { width: 28px; height: 28px; }
.planet.bc-p-dasha { width: 30px; height: 30px; }
.bc-table .planet-cell { gap: 10px; }
.bc-table .planet-cell .icon { width: 22px; height: 22px; margin-inline: 3px; }
.bc-table td:first-child { color: var(--text-strong); }
.bc-retro { font-size: 12px; color: var(--color-accent); }
@media (min-width: 561px) { .bc-table { min-width: 420px; } }

/* Life periods: one row each, the bar as long as the period; the period running today is lit. */
.bc-lower { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px clamp(32px, 5vw, 72px); }
.bc-lower > section:first-child { flex: 1.3 1 380px; }
.bc-lower > section + section { flex: 1 1 300px; max-width: 460px; }
.dasha-list, .aspect-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dasha-row, .aspect-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 12px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.dasha-row.is-now { background: var(--fill-selected); box-shadow: var(--ring-selected); }
.dasha-name { width: 72px; flex: none; font-size: 15px; font-weight: 500; color: var(--text-strong); }
.dasha-track { flex: 1; min-width: 40px; height: 4px; border-radius: 2px; background: var(--color-neutral-800); }
.dasha-fill { display: block; height: 100%; width: var(--w, 0%); border-radius: 2px; background: var(--color-accent-700); }
.is-now .dasha-fill { background: var(--color-accent-300); }
.dasha-span { font-size: 13px; color: var(--text-body); white-space: nowrap; }
.bc-sub-table tr.current td { background: var(--fill-selected); color: var(--text-strong); }

/* Aspects (Western) */
.aspect-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.aspect-pair { display: flex; flex: none; }
.aspect-pair .planet + .planet { margin-left: -18px; }
.aspect-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; color: var(--text-strong); }
.aspect-row .meta { white-space: nowrap; }

/* ---- Reading prompt: one quiet panel after the result ---- */
.bc-reading { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 28px clamp(28px, 5vw, 64px); padding: clamp(22px, 3vw, 36px); }
.bc-reading[hidden] { display: none; }
.bc-reading-main { flex: 1.2 1 360px; }
.bc-reading-main h2 { line-height: 1.1; }
.bc-related { flex: 1 1 280px; min-width: 0; }
.bc-related ul { list-style: none; margin: 6px 0 0; padding: 0; }
.bc-related a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-radius: var(--radius-md); color: var(--text-strong); text-decoration: none; transition: background-color var(--dur) var(--ease); }
.bc-related a:hover { background: color-mix(in srgb, var(--color-accent) 8%, transparent); color: var(--text-strong); }
.bc-related a span { flex: 1; font-size: 15px; font-weight: 500; }
.bc-related .planet { width: 36px; height: 36px; }

@media (max-width: 560px) {
  .bc-form { padding: 16px; }
  .dasha-row, .aspect-row { gap: 10px; padding-inline: 10px; }
  .dasha-name { width: 62px; }
  .bc-card { padding: 14px; }
  .bc-card-value { font-size: 22px; }
}

/* Plain explanations: what the chart on screen is, and short notes under section headings. */
.bc-varga-what { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text-body); text-align: left; }
.bc-explain { max-width: 68ch; line-height: 1.6; }
.bc-seg-sub { font-weight: 400; color: var(--text-meta); }
@media (max-width: 560px) { .bc-seg-sub { display: none; } }
/* How to read the chart that is selected (library/chart-guides.json). */
.bc-howto { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); text-align: left; }
.bc-howto summary { cursor: pointer; font-weight: 600; color: var(--text-strong); }
.bc-howto ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--text-body); }
.bc-howto .meta { margin-top: 10px; }
