/* Visual system: vermilion celestial artwork, gold detailing, white reading surfaces. */
:root {
  --canvas: #fff;
  --surface: #fff;
  --surface-warm: #f8f9f6;
  --ink: #242d2b;
  --ink-soft: #4e5955;
  --muted: #646e68;
  --line: #dce1da;
  --line-strong: #b29b64;
  --gold: #b18c43;
  --gold-dark: #786025;
  --kumkum: #923b38;
  --kumkum-dark: #632b2b;
  --indigo: #345850;
}
body { background: #fff; }
body::before { display: none; }
* { letter-spacing: 0; }
.wrap { width: min(1240px, calc(100% - 96px)); }
.masthead { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; padding: 14px max(32px, calc((100% - 1240px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.masthead-brand { display: flex; align-items: center; gap: 14px; font-size: 20px; text-decoration: none; }
.masthead-brand > span { color: var(--gold-dark); font-size: 30px; }
.masthead-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.masthead-links a { text-decoration: none; border-bottom: 1px solid transparent; padding-block: 8px; }
.masthead-links a:hover { border-color: var(--gold); }
.motion-setting { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; cursor: pointer; }
.motion-setting input { appearance: none; width: 32px; height: 18px; min-height: 0; padding: 0; border: 1px solid #738278; border-radius: 18px; background: #e8ebe6; cursor: pointer; }
.motion-setting input::before { display: block; width: 12px; height: 12px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; content: ""; transition: transform 180ms ease; }
.motion-setting input:checked { background: #345850; }
.motion-setting input:checked::before { transform: translateX(14px); }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; scroll-behavior: auto !important; }
.site-header { min-height: 0; border-bottom: 1px solid var(--gold); }
.header-art { background-position: center; }
.site-header::after { background: linear-gradient(90deg, rgba(35, 6, 9, .3), transparent 70%); }
.header-topline { display: none; }
.header-inner { padding: 68px 0 58px; }
.brand-lockup { max-width: 700px; }
.brand-mark { display: none; }
.brand-script { margin-bottom: 20px; font-size: 14px; color: #f5dfb0; }
h1 { max-width: 680px; font-size: 76px; line-height: 1.05; }
.header-note { margin-top: 24px; font-size: 22px; line-height: 1.5; max-width: 610px; }
.header-principles { gap: 24px; margin-top: 30px; text-transform: none; font-size: 13px; color: #f4dfb3; }
.header-principles span + span::before { content: "·"; top: 0; left: -14px; font-size: 13px; }
.main-layout { gap: 0; padding-bottom: 0; }
.hero-graha-band { border-bottom: 1px solid var(--line); background: #fbfbf7; overflow: hidden; }
.hero-graha-band .graha-procession {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 36px);
  margin: 0;
  padding: 18px 0 16px;
  border: 0;
}
.hero-graha-band .graha-companion { flex: 0 0 52px; gap: 7px; color: #59645f; font-size: 10px; }
.hero-graha-band .procession-planet { width: 46px; height: 46px; }
.panel { border: 0; }
.entry-panel { overflow: visible; margin: 0; padding: 0 0 56px; background: transparent; box-shadow: none; }
.entry-panel::after, #analysis-output::after, #profile-output::after { display: none; }
.journey { display: flex; justify-content: space-between; margin: 0 0 52px; border-bottom: 1px solid var(--line); background: #fff; }
.journey-step { display: flex; flex: 1; gap: 12px; min-height: 72px; padding: 16px 0; font-size: 13px; }
.journey-step + .journey-step { border: 0; justify-content: center; }
.journey-step:last-child { justify-content: end; }
.journey-step.current, .journey-step.completed { background: transparent; }
.journey-number { font-size: 17px; }
.journey-step strong { display: inline; margin-right: 4px; color: var(--ink); font-weight: 400; }
.entry-heading {
  grid-template-columns: minmax(0, 780px);
  align-items: start;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 0;
  border: 0;
}
.eyebrow { color: var(--gold-dark); font-size: 11px; font-weight: 400; margin-bottom: 12px; }
h2 { font-size: 40px; line-height: 1.15; font-weight: 400; }
h3 { font-size: 27px; font-weight: 400; }
h4 { font-size: 17px; font-weight: 400; }
.section-intro { max-width: 680px; font-size: 16px; line-height: 1.75; }
.reading-modes { display: flex; width: max-content; max-width: 100%; gap: 0; border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.reading-modes button { min-height: 50px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 22px; color: var(--muted); font-size: 15px; }
.reading-modes button:first-child { padding-left: 0; padding-right: 28px; }
.reading-modes button[aria-pressed="true"] { color: var(--kumkum-dark); border-bottom-color: var(--kumkum); }
.reading-modes button:hover { background: transparent; color: var(--kumkum); }
.entry-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
  gap: 8px 28px;
  max-width: 780px;
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 26px;
  font-size: 12px;
}
.entry-note strong { font-weight: 400; color: var(--ink); }
.person-grid { gap: 64px; }
#demo-note { margin: 0 0 24px; padding: 12px 16px; border-left: 2px solid var(--gold); background: var(--surface-warm); }
.person-card { position: relative; gap: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.person-card:nth-child(2) { border: 0; }
.person-card legend { width: 100%; gap: 14px; margin-bottom: 26px; padding: 0 0 18px; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 400; }
.person-card legend small { font-size: 12px; margin-top: 6px; }
.person-index { width: 38px; height: 38px; border-radius: 50%; border-color: #cdb987; background: #fff; color: var(--gold-dark); font-size: 15px; font-weight: 400; }
.person-card:nth-child(2) .person-index { border-color: #91a89b; color: #345850; }
label { font-size: 13px; font-weight: 400; gap: 9px; }
input, select { border: 1px solid #d3d9d1; border-radius: 4px; min-width: 0; min-height: 50px; padding: 12px 14px; background: #fafbf8; font-size: 15px; }
input::placeholder { color: #7b837b; opacity: 1; }
.field-row { gap: 18px; }
.field-help { font-size: 12px; line-height: 1.6; }
.location-details { border-top: 1px solid var(--line); padding-top: 15px; }
.location-details summary { cursor: pointer; color: var(--ink-soft); font-size: 14px; min-height: 34px; }
.location-details summary span { color: var(--muted); font-size: 11px; margin-left: 10px; }
.location-details[open] summary { margin-bottom: 14px; }
.location-details .field-help { margin-top: 14px; }
.single-reading .person-grid { max-width: 740px; grid-template-columns: 1fr; }
.actions { grid-template-columns: 1fr auto; align-items: center; gap: 24px; margin-top: 36px; padding-top: 26px; }
.primary-action { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.primary-action p { font-size: 12px; }
button { border-radius: 4px; }
button.primary { display: inline-flex; gap: 28px; justify-content: space-between; align-items: center; border: 1px solid #24433b; background: #24433b; box-shadow: none; color: #fffdf5; min-height: 54px; padding: 14px 22px; font-weight: 400; font-size: 16px; }
button.primary:hover { background: #365e51; border-color: #365e51; box-shadow: 0 4px 16px #24433b20; }
button.primary span { color: #ebce8d; font-size: 23px; }
.secondary-actions { gap: 12px; }
.secondary-actions button { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; font-size: 12px; min-height: 44px; }
#analysis-output, #profile-output { overflow: visible; padding: 48px 0; border-top: 1px solid var(--line-strong); background: #fff; }
#analysis-output::before, #profile-output::before { display: none; }
.output-stack { gap: 24px; }
.section-heading { max-width: 900px; }
.section-heading > h2 { font-size: 44px; }
.section-heading > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.75; }
.reading-key { gap: 28px; margin-top: 30px; }
.reading-key-item { border-top: 1px solid var(--line); padding-top: 15px; }
.insight-label, .badge { border: 0; background: transparent !important; padding: 0; min-height: 20px; font-size: 11px; white-space: normal; }
.report-nav { top: 0; gap: 12px; margin-bottom: 12px; border-top: 0; background: #fffffff5; backdrop-filter: blur(12px); }
.report-nav a { padding: 18px 12px 16px; color: var(--ink-soft); font-size: 14px; }
.report-section { overflow: visible; padding: 20px 0 32px; scroll-margin-top: 86px; }
.report-section + .report-section { margin: 0; padding-top: 48px; }
.report-section::after { display: none; }
.report-section > .eyebrow::before { animation: none; }
.report-section > p:not(.eyebrow) { max-width: 850px; margin: 0; color: var(--muted); line-height: 1.75; }
.card { border-radius: 4px; padding: 24px; }
.card.compact { padding: 24px; }
.summary-grid { gap: 32px; }
.summary-grid .card { border: 0; border-top: 2px solid var(--gold); background: #f8faf7; }
.summary-grid .card:nth-child(2) { border-top: 2px solid #547366; background: #f8faf7; }
.meta-row { border-bottom-color: var(--line); padding-block: 10px; font-size: 14px; }
.meta-label { font-size: 12px; }
.synthesis-grid { border: 0; background: #f5f8f4; padding-block: 14px; }
.synthesis-item { padding: 24px; }
.synthesis-item h4 { color: #345850; }
.synthesis-item p { font-size: 15px; line-height: 1.8; }
.comparison-table { border: 1px solid var(--line); border-radius: 0; }
.comparison-header { background: #24433b; }
.comparison-cell { padding: 24px 20px; }
.comparison-cell p { font-size: 15px; line-height: 1.8; }
.comparison-aspect { background: #fafbf8; }
.groom-cell, .bride-cell { background: #fff; }
.interplay-cell { background: #f2f6f1; }
.score-grid { gap: 32px; }
.score-card { background: #24433b; color: #fff; border: 0; }
.score-card::before { opacity: .08; }
.score-card .score-number { color: #edcf8e; font-size: 80px; }
.score-card .score-number small, .score-card p { color: #fff !important; }
.progress { background: #587064; height: 3px; }
.progress span { background: #edcf8e; }
.planet-bond { border: 0; background: #f9f7f1; padding: 32px; }
.planet-bond::after { opacity: .025; }
.koota-grid, .factor-grid, .profile-grid, .narrative-grid, .impact-grid, .scenario-grid { gap: 0 36px; }
.koota-grid .card, .factor-grid .card, .profile-grid .card, .narrative-grid .card, .impact-grid .card, .scenario-grid .card { border: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
.reading-detail { border-color: var(--line); padding-top: 12px; margin-top: 14px; }
.reading-label { font-size: 10px; color: var(--gold-dark); }
.reading-detail p { font-size: 15px; line-height: 1.75; }
.portrait-grid { padding: 0; gap: 28px; }
.portrait-item { border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; }
.disclaimer { border: 0; border-left: 2px solid var(--gold); background: #fafbf8; }
.paired-charts { gap: 40px; }
.birth-chart-report { border: 0; padding: 0; background: #fff; gap: 28px; }
.birth-chart-report + .birth-chart-report { border-left: 1px solid var(--line); padding-left: 40px; }
.chart-title-row p:not(.eyebrow) { font-size: 14px; line-height: 1.7; }
.chart-method { border-left: 1px solid var(--line-strong); background: transparent; font-size: 11px; }
.house-mandala { background: #c8b780; border: 1px solid #b5a06b; gap: 1px; aspect-ratio: auto; grid-template-rows: repeat(4, minmax(145px, auto)); }
.house-cell { padding: 14px 10px; overflow: visible; gap: 12px; background: #fafbf8; }
.house-heading strong { font-size: 13px; }
.house-heading small { font-size: 10px; }
.house-number { background: transparent; color: var(--gold-dark); }
.house-occupants { gap: 14px 10px; }
.chart-planet-copy strong { font-size: 10px; }
.chart-planet-copy small { font-size: 9px; }
.chart-centre { position: relative; background: #fafbf8; isolation: isolate; }
.chart-centre::before { inset: 0; background: url('../assets/celestial-header.jpg') 77% center / auto 100% no-repeat; opacity: .055; }
.chart-centre strong { color: #345850; font-size: 28px; }
.centre-sun { width: 48px; height: 48px; margin-bottom: 20px; }
.planet-table { grid-template-columns: 1fr; border: 0; }
.planet-row, .planet-row + .planet-row { grid-template-columns: 46px 1fr 1.3fr 1.5fr; border: 0; border-bottom: 1px solid var(--line); gap: 18px; padding: 18px 10px; }
.planet-row strong { font-size: 15px; }
.planet-row small { font-size: 12px; overflow: visible; text-overflow: clip; }
.graha-reading-list { gap: 16px; }
.graha-reading { border-radius: 4px; }
.graha-reading-summary { padding: 20px 14px; min-height: 100px; }
.graha-reading-body { padding: 0 20px 20px; }
.graha-reading-summary strong { font-size: 15px; }
.graha-reading-summary small { font-size: 11px; line-height: 1.6; }
.graha-reading-summary:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 4px; }
.lordship-grid { gap: 0 40px; }
.lord-reading { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0; }
.lord-reading .reading-detail p { font-size: 15px; }
.partner-indications { border-top: 1px solid var(--line-strong); padding-top: 32px; }
.partner-summary { color: #345850; font-size: 19px; line-height: 1.7; max-width: 850px; }
.partner-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin-block: 24px; }
.partner-evidence-item { min-width: 0; padding-block: 24px; border-top: 1px solid var(--line); break-inside: avoid; }
.partner-evidence-item .lord-reading-heading { min-height: 50px; }
.compact-chart .partner-evidence { grid-template-columns: 1fr; }
@media (max-width: 780px) { .partner-evidence { grid-template-columns: 1fr; } }
.approach-section { padding: 72px 0 48px; border-top: 1px solid var(--line); }
.approach-heading { max-width: 740px; text-align: left; }
.approach-heading h2 { font-size: 38px; color: #345850; }
.approach-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-block: 1px solid var(--line);
  background: #f8faf7;
}
.approach-columns article {
  display: flex;
  min-height: 196px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 32px;
}
.approach-columns article + article { border-left: 1px solid var(--line); }
.approach-number { color: var(--gold-dark); font-size: 13px; }
.approach-columns h3 { margin-top: 12px; font-size: 22px; }
.approach-columns p { max-width: 300px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.graha-procession { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 36px; margin-top: 32px; }
.graha-companion { display: grid; justify-items: center; align-content: start; gap: 14px; font-size: 12px; color: var(--muted); }
.procession-planet { width: 38px; height: 38px; animation: planet-float 4s ease-in-out infinite; }
.graha-companion:nth-child(even) .procession-planet { animation-delay: -2s; }
.procession-planet .planet-arm { display: none; }
.site-footer { border-top: 1px solid var(--gold); background: #20372f; }
.site-footer::before { opacity: .04; }
.footer-inner { padding-block: 40px; }
.site-footer p { max-width: 600px; font-size: 13px; line-height: 1.7; }
.site-footer .footer-brand { font-size: 23px; font-weight: 400; }
.footer-contact { font-size: 13px; }
.reference-page .site-footer { min-height: 100vh; }
.reference-nav { position: relative; z-index: 1; padding-block: 24px; }
.privacy-copy h2 { margin-top: 28px; font-size: 21px; }
.privacy-copy p { margin-block: 12px; }
.knowledge-sources { position: relative; z-index: 1; padding-block: 40px 24px; border-bottom: 1px solid rgba(234, 213, 143, .25); }
.knowledge-sources h2 { color: #ead58f; font-size: 28px; margin: 8px 0 16px; }
.knowledge-sources .source-status { max-width: 850px; }
.source-list { margin: 26px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; }
.source-list dt { color: #f3e4b8; font-size: 18px; margin-bottom: 8px; }
.source-list dd { margin: 0; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.source-limits summary { cursor: pointer; padding-block: 12px; color: #ead58f; }
.source-limits p { margin-block: 12px; }
.footer-contact .copyright-scope { white-space: normal; max-width: 290px; font-size: 12px; }
@media (max-width: 700px) { .source-list { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .masthead { padding-inline: 32px; }
  .actions { grid-template-columns: 1fr; }
  .secondary-actions { justify-content: start; gap: 24px; }
  .person-grid { gap: 40px; }
  .graha-reading-list { grid-template-columns: 1fr 1fr; }
  .paired-charts { grid-template-columns: 1fr; }
  .birth-chart-report + .birth-chart-report { border-left: 0; padding: 40px 0 0; border-top: 1px solid var(--line); }
}
@media (max-width: 780px) {
  .masthead { min-height: 66px; }
  .masthead-brand { font-size: 17px; }
  .masthead-links { gap: 16px; }
  .masthead-links a { display: none; }
  .header-inner { padding: 48px 0; }
  h1 { font-size: 56px; max-width: 460px; }
  .header-art { background-position: 38% center; }
  .header-note { font-size: 19px; }
  .journey { margin-bottom: 32px; }
  .journey-step { min-height: 64px; font-size: 12px; gap: 8px; }
  .journey-step > span:last-child { max-width: 120px; }
  .entry-heading { grid-template-columns: 1fr; gap: 12px; }
  h2, .section-heading > h2 { font-size: 34px; }
  .entry-note { grid-template-columns: 1fr; gap: 6px; }
  .person-grid { gap: 36px; }
  .approach-columns { grid-template-columns: 1fr; }
  .approach-columns article { min-height: 0; padding: 24px 0; }
  .approach-columns article + article { border-top: 1px solid var(--line); border-left: 0; }
  .hero-graha-band .graha-procession { justify-content: flex-start; gap: 18px; overflow-x: auto; padding-inline: 4px; scrollbar-width: thin; }
  .hero-graha-band .graha-companion { flex-basis: 48px; }
  .hero-graha-band .procession-planet { width: 42px; height: 42px; }
  .approach-heading h2 { font-size: 30px; }
  .chart-title-row, .lordship-grid, .graha-reading-list { grid-template-columns: 1fr; }
  .house-mandala { grid-template-rows: repeat(4, minmax(125px, auto)); }
  .house-heading strong { font-size: 12px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { padding-inline: 18px; gap: 12px; }
  .masthead-brand { font-size: 15px; gap: 8px; }
  .motion-setting { font-size: 11px; gap: 5px; }
  .masthead-brand > span { font-size: 22px; }
  .site-header { min-height: 0; }
  .header-inner { padding: 36px 0; }
  .header-art { background-position: 25% center; }
  h1 { font-size: 46px; max-width: 310px; }
  .brand-script { font-size: 12px; margin-bottom: 14px; }
  .header-note { font-size: 17px; margin-top: 18px; }
  .header-principles { margin-top: 22px; font-size: 12px; gap: 20px; }
  .journey-step { align-items: start; padding: 18px 0; gap: 6px; }
  .journey-step > span:last-child { font-size: 10px; max-width: 74px; }
  .journey-step strong { display: block; }
  .journey-number { font-size: 14px; }
  .entry-panel { padding: 0 0 36px; }
  .entry-heading { margin-bottom: 16px; }
  h2, .section-heading > h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  .section-intro { font-size: 14px; }
  .reading-modes { width: 100%; }
  .reading-modes button, .reading-modes button:first-child { flex: 1; padding: 12px 6px; font-size: 12px; }
  .person-card legend { font-size: 22px; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  input, select { padding-inline: 8px; font-size: 14px; }
  .primary-action { display: grid; }
  button.primary { width: 100%; font-size: 15px; }
  .secondary-actions { display: flex; gap: 18px; }
  .secondary-actions button { font-size: 11px; }
  #analysis-output, #profile-output { padding: 32px 0; }
  .card, .card.compact { padding: 20px; }
  .planet-bond { padding: 20px 12px; }
  .birth-card-heading { align-items: start; }
  .planet-seal { flex-direction: column; gap: 8px; }
  .meta-row { gap: 2px; }
  .house-cell { padding: 10px 5px; }
  .house-heading strong { font-size: 10px; overflow-wrap: anywhere; }
  .house-heading small { font-size: 9px; }
  .chart-centre strong { font-size: 19px; }
  .chart-centre small { font-size: 9px; }
  .chart-planet-copy { display: grid; }
  .chart-planet { flex-direction: column; align-items: start; gap: 5px; }
  .chart-planet-copy strong { font-size: 9px; }
  .chart-planet-copy small { display: none; }
  .house-occupants { gap: 14px 6px; }
  .planet-row, .planet-row + .planet-row { grid-template-columns: 30px 1fr 1.3fr; gap: 12px; padding: 16px 0; }
  .table-planet-face { width: 26px; height: 26px; }
  .planet-row-house { grid-column: 2 / -1; }
  .planet-row strong { font-size: 14px; }
  .planet-row small { font-size: 11px; }
  .hero-graha-band .graha-procession { margin-inline: -2px; padding-block: 14px 12px; }
  .hero-graha-band .graha-companion { flex-basis: 44px; font-size: 9px; }
  .hero-graha-band .procession-planet { width: 38px; height: 38px; }
  .approach-section { padding-block: 48px 36px; }
  .approach-heading h2 { font-size: 27px; }
  .report-actions button { width: 100%; }
}
@media print {
  .masthead, .approach-section, .reading-modes { display: none !important; }
  .wrap { width: 100%; }
  .header-inner { padding: 0 0 20px; }
  h1 { font-size: 32px; }
  .report-section { padding: 16px 0; }
  .birth-chart-report, .house-cell { background: #fff; }
  .house-mandala { grid-template-rows: repeat(4, minmax(100px, auto)); }
  .planet-row, .lord-reading, .graha-reading { break-inside: avoid; }
}

/* Exploration and learning surfaces share the report typography. */
.house-heading { min-height: 44px; width: 100%; border: 0; border-radius: 2px; padding: 4px; text-align: left; background: transparent; }
.house-heading:hover { background: #ebeee5; }
.house-heading[aria-pressed="true"] { color: #24433b; background: #e5ecdf; }
.house-selected { box-shadow: inset 0 0 0 2px #55765c; }
.house-lord-destination::after { border-color: #927432; border-width: 2px; right: 4px; bottom: 4px; width: 8px; height: 8px; }
.chart-planet { min-width: 44px; min-height: 44px; border: 0; border-radius: 3px; padding: 6px; text-align: left; background: transparent; }
.chart-planet:hover { background: #e9eee4; color: var(--ink); }
.chart-planet:hover .planet-body { filter: brightness(1.06); }
.chart-inspector { border-left: 2px solid #55765c; padding: 24px; background: #f5f8f2; }
.chart-inspector h4 { font-size: 23px; text-transform: capitalize; }
.chart-inspector .field-help { margin-top: 16px; }
.time-explorer { border-block: 1px solid var(--line); padding: 22px 0; }
.time-explorer > summary { cursor: pointer; min-height: 44px; }
.time-explorer > summary .eyebrow { display: block; margin-bottom: 6px; }
.time-explorer > summary strong { font-weight: 400; font-size: 21px; }
.time-window { margin: 24px 0 16px; }
input[type="range"] { appearance: auto; accent-color: #345850; background: transparent; border: 0; box-shadow: none; padding: 0; min-height: 44px; width: 100%; cursor: pointer; }
.time-conclusion { font-size: 18px; color: #345850; }
.time-checkpoints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px 0; border-block: 1px solid var(--line); }
.time-checkpoints > div { display: grid; gap: 8px; }
.time-checkpoints strong { font-size: 15px; font-weight: 400; }
.time-results > p { line-height: 1.8; }
.learning-library { border-top: 1px solid var(--line-strong); padding: 56px 0; scroll-margin-top: 24px; }
.library-heading {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  align-items: start;
  gap: 14px;
  margin-bottom: 28px;
}
.library-heading > p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.75; }
.learning-controls { display: grid; grid-template-columns: 1fr 220px auto; align-items: end; gap: 20px; margin-bottom: 16px; }
.learning-controls button { min-height: 50px; border-color: var(--line); }
.learn-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin-top: 20px; align-items: start; }
.lesson { border-bottom: 1px solid var(--line); padding: 20px 0; min-width: 0; }
.lesson summary { position: relative; cursor: pointer; padding-right: 28px; list-style: none; min-height: 52px; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--gold-dark); font-size: 24px; transition: transform 200ms ease; }
.lesson[open] summary::after { transform: rotate(45deg); }
.lesson summary .eyebrow { display: block; margin-bottom: 6px; }
.lesson summary strong { font-size: 22px; font-weight: 400; }
.lesson-source { display: inline-block; margin-top: 20px; color: var(--gold-dark); text-underline-offset: 4px; font-size: 12px; }
.learn-empty { grid-column: 1 / -1; min-height: 100px; color: var(--muted); }
.offstage, .offstage *, .offstage::before, .offstage::after, .offstage *::before, .offstage *::after { animation-play-state: paused !important; }
.report-section.arrived { animation: reading-arrival 450ms ease-out both; }
.lesson[open] > .reading-detail, .graha-reading[open] .graha-reading-body { animation: reading-arrival 220ms ease-out both; }
@keyframes reading-arrival { from { opacity: .65; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
html:has(.motion-paused) { scroll-behavior: auto; }
@media (max-width: 780px) {
  .library-heading { grid-template-columns: 1fr; gap: 10px; }
  .learning-controls { grid-template-columns: 1fr 1fr; gap: 14px; }
  .learning-controls > label:first-child { grid-column: 1 / -1; }
  .learn-results { grid-template-columns: 1fr; }
  .masthead-links a[href="#learning-library"] { display: block; font-size: 12px; }
  .time-checkpoints { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masthead { flex-wrap: wrap; }
  .motion-setting { font-size: 11px; }
  .motion-setting input { margin: 0; }
  .masthead-links { gap: 12px; }
  .chart-inspector { padding: 18px; }
  .chart-inspector h4 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .report-section.arrived, .lesson[open] > .reading-detail, .graha-reading[open] .graha-reading-body { animation: none; } }
@media print {
  .learning-library { display: none !important; }
  .report-section, .planet-body { animation: none !important; opacity: 1 !important; transform: none !important; }
  .time-explorer input { display: none; }
}
