/* Article follows the site theme; orbital illustrations use a dedicated dark palette. */
.learn-page { max-width: 68rem; margin-inline: auto; color: var(--t1); }
.learn-heading { padding: clamp(1.2rem, 4vw, 3rem) 0 2rem; max-width: 54rem; }
.learn-heading h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.06; margin-top: 0.8rem; text-wrap: balance; }
.learn-intro { color: var(--t3); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.75; max-width: 44rem; margin-top: 1.3rem; }
.learn-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--t3); font-size: 0.8rem; margin-top: 0.6rem; }
.learn-breadcrumb a, .learn-reading-link, .learn-directory-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.25em; }
.learn-reading-link { display: inline-block; margin-top: 1rem; font-size: 0.85rem; }
.learn-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border: 1px solid var(--line-mid); border-radius: 1rem; overflow: hidden; background: var(--card); }
.learn-feature:hover { border-color: var(--accent-line); }
.learn-feature-art { background: var(--head); padding: 1rem; }
.learn-feature-art svg { width: 100%; height: auto; }
.learn-feature-copy { padding: clamp(1.3rem, 3vw, 3rem); }
.learn-feature h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 650; line-height: 1.15; letter-spacing: -0.025em; margin: 0.8rem 0 1rem; text-wrap: balance; }
.learn-feature-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.7; color: var(--t3); }
.learn-feature-link { display: inline-block; color: var(--accent-text); margin-top: 1.7rem; font-size: 0.9rem; font-weight: 600; }
.learn-collection { display: grid; gap: 1.5rem; }
.learn-directory-note { max-width: 42rem; margin: 2.5rem 0; color: var(--t3); line-height: 1.7; }
.learn-directory-note h2 { font-size: 1.1rem; font-weight: 650; color: var(--t1); margin-bottom: 0.5rem; }
.learn-cover-word { display: block; text-align: center; font-size: 2rem; padding: 4rem 1rem; }
.learn-reading { max-width: 43rem; margin: 3.5rem auto 1rem; font-size: 1.05rem; }
.learn-reading h2 { font-size: 1.65rem; letter-spacing: -0.025em; margin-top: 2.6rem; }
.learn-reading h3 { margin-top: 1.8rem; }
.learn-reading p, .learn-reading li { line-height: 1.8; }
.learn-reading li + li { margin-top: 0.7rem; }
.learn-reading strong { color: var(--t1); }
.learn-reading > :first-child { margin-top: 0; }
.learn-inline-figure { max-width: 34rem; margin: 1.8rem auto 2rem; break-inside: avoid; }
.learn-inline-figure svg { display: block; width: 100%; height: auto; background: #0d1729; border: 1px solid #8eabc333; border-radius: 0.75rem; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.learn-inline-figure figcaption { margin-top: 0.7rem; color: var(--t3); font-size: 0.85rem; line-height: 1.65; }
.node-explorer { border: 1px solid var(--line-mid); border-radius: 1rem; overflow: hidden; background: var(--card); }
.node-explorer [hidden] { display: none !important; }
.node-explorer-top { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.node-scene-count { font-size: 0.75rem; font-variant-numeric: tabular-nums; letter-spacing: 0.12em; color: var(--t4); }
.node-steps { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.node-steps button { padding: 0.9rem 0.5rem; font-size: 0.75rem; color: var(--t4); border-bottom: 2px solid transparent; cursor: pointer; }
.node-steps button span { margin-left: 0.3rem; }
.node-steps button:hover { color: var(--t1); background: var(--head); }
.node-steps button[aria-pressed="true"] { color: var(--accent-text-strong); border-bottom-color: var(--accent-ink); background: var(--accent-soft); font-weight: 650; }
.node-workspace { display: grid; grid-template-columns: minmax(0, 2fr) minmax(20rem, 1fr); }
.node-visual { background: #0d1729; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.node-figure { min-width: 0; width: 100%; padding: 0 0 1.2rem; background: #0d1729; align-self: center; }
.node-figure svg { display: block; width: 100%; height: auto; max-height: 500px; }
.node-figure figcaption { font-size: 0.72rem; color: #a5b5cc; text-align: center; padding: 0 1rem; min-height: 2.5em; }
.node-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.73rem; color: #bfcde0; margin-top: 0.65rem; }
.node-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.node-key { width: 0.6rem; height: 0.6rem; border: 2px solid; border-radius: 50%; }
.node-key-rahu { border-color: var(--accent-ink); }
.node-key-ketu { border-color: #7c5eab; }
.node-scene-copy { padding: 1.8rem 1.5rem; border-left: 1px solid var(--line); }
.node-scene-copy h2 { font-size: 1.65rem; line-height: 1.18; font-weight: 650; letter-spacing: -0.03em; margin: 0.75rem 0 1rem; text-wrap: balance; }
.node-scene-copy > p:not(.eyebrow) { font-size: 0.9rem; line-height: 1.75; color: var(--t3); }
.node-readout { border-block: 1px solid var(--line); padding: 1rem 0; margin: 1.3rem 0; }
.node-readout span { display: block; font-size: 0.7rem; color: var(--t4); margin-bottom: 0.45rem; }
.node-readout strong { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; display: block; min-height: 2.8em; line-height: 1.4; }
.node-options { display: grid; gap: 0.9rem; }
.node-options label { display: grid; gap: 0.35rem; font-size: 0.8rem; color: var(--t3); }
.node-options select { padding: 0.55rem 0.6rem; color: var(--t1); border: 1px solid var(--line-mid); border-radius: 0.4rem; background: var(--card-solid); width: 100%; }
.node-options .node-check { display: flex; align-items: center; gap: 0.5rem; }
.node-check input { accent-color: var(--accent-ink); width: 1rem; height: 1rem; }
.node-scene-copy .node-scene-hint { margin-top: 1.1rem; font-size: 0.75rem; }
.node-playback { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.4rem; border-top: 1px solid #8eabc333; background: #0a1424; }
.node-transport { display: flex; gap: 0.5rem; }
.node-playback button { white-space: nowrap; font-size: 0.8rem; padding: 0.65rem 0.9rem; border-radius: 0.45rem; border: 1px solid #8eabc355; color: #d1e0ed; background: #18283e; cursor: pointer; }
.node-playback .node-play { background: #e2b967; color: #142033; border-color: transparent; min-width: 5.5rem; }
.node-playback button:hover { filter: brightness(0.94); }
.node-timeline { flex: 1; min-width: 0; }
.node-timeline label { display: block; font-size: 0.7rem; color: #b5c5d9; margin-bottom: 0.35rem; }
.node-timeline input { display: block; width: 100%; accent-color: #e2b967; cursor: pointer; }
.node-motion-note { font-size: 0.8rem; color: var(--t3); padding: 0.8rem 1.4rem; border-top: 1px solid var(--line); }
.node-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.learn-page :is(button, select, input, a):focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.node-plane { fill: var(--line-soft); stroke: var(--line-strong); stroke-width: 1.5; }
.node-plane-grid { stroke: var(--line-mid); stroke-width: 1; fill: none; }
.node-orbit-north { fill: none; stroke: #247e83; stroke-width: 3; }
.node-orbit-south { fill: none; stroke: #247e83; stroke-width: 2.5; stroke-dasharray: 6 6; opacity: 0.65; }
.node-axis { stroke: var(--t4); stroke-width: 1.5; stroke-dasharray: 5 6; fill: none; opacity: 0.55; }
.node-axis-strong { stroke-width: 2; opacity: 0.9; }
.node-earth { fill: #267480; stroke: #195763; stroke-width: 1.5; }
.node-earth-grid { fill: none; stroke: #a2d3ce; stroke-width: 0.8; opacity: 0.7; }
.node-rahu { fill: var(--card-solid); stroke: var(--accent-ink); stroke-width: 3; }
.node-ketu { fill: var(--card-solid); stroke: #7c5eab; stroke-width: 3; }
.node-moon { fill: #e8dcc1; stroke: #83765d; stroke-width: 1.5; }
.node-label, .node-moon-label { fill: var(--t2); font-size: 20px; font-weight: 500; }
.node-label-rahu { fill: var(--accent-text); }
.node-label-ketu { fill: #7c5eab; }
.node-moon-label { font-size: 18px; }
.node-cover-caption { fill: var(--t4); font-size: 12px; letter-spacing: 3px; }
.node-direction { fill: none; stroke: var(--t2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.node-zodiac-ring, .node-zodiac-tick { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.node-sign-label { fill: var(--t3); font-size: 18px; }
.node-half-circle { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-dasharray: 3 5; }
.node-angle-label { fill: var(--t1); font-size: 24px; font-weight: 600; }
.node-alignment { fill: none; stroke: var(--t4); stroke-width: 1.5; stroke-dasharray: 5 6; }
.node-offset { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-dasharray: 3 5; }
.node-sun { fill: #f4bf54; stroke: #bd7b11; stroke-width: 1.5; }
.node-sunlight { fill: none; stroke: #bd7b11; stroke-width: 1.5; }
.node-shadow { fill: var(--t4); opacity: 0.2; }
.node-eclipse-heading { fill: var(--t2); font-size: 19px; }
:root[data-theme="dark"] .node-orbit-north, :root[data-theme="dark"] .node-orbit-south { stroke: #71c2bd; }
:root[data-theme="dark"] .node-ketu, :root[data-theme="dark"] .node-key-ketu { stroke: #bca2e8; border-color: #bca2e8; }
:root[data-theme="dark"] .node-label-ketu { fill: #bca2e8; }
.node-stage { position: relative; height: 500px; overflow: hidden; background: radial-gradient(ellipse at 50% 47%, #192b42 0%, #101c30 55%, #0d1729 100%); color-scheme: dark; }
.node-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.node-stage canvas:active { cursor: grabbing; }
.node-stage canvas:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: -3px; }
.node-stage > svg { height: 100%; }
.node-world-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.node-crossing-glow { position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle, #ffffffb3 0, currentColor 24%, transparent 70%); pointer-events: none; }
.node-world-label { position: absolute; left: 0; top: 0; padding: 3px 6px; border-radius: 4px; color: #e6edf6; background: #0d1729dc; font-size: 12px; line-height: 1.35; white-space: pre; border: 1px solid #ffffff0d; }
.node-label-gold { color: #e2bf7d; }
.node-label-teal { color: #8ce9da; }
.node-label-muted { color: #94b6be; }
.node-world-label.node-label-rahu { color: #ffd08b; }
.node-world-label.node-label-ketu { color: #d4b9fa; }
.node-label-sign { font-size: 10px; padding: 2px 3px; }
.node-stage-hud { position: absolute; left: 1rem; right: 0.8rem; top: 0.9rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; pointer-events: none; }
#node-view-caption { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: #adbed5; max-width: 60%; }
#node-context { pointer-events: auto; display: grid; justify-items: center; width: 118px; padding: 0.3rem; border: 1px solid #8eabc333; background: #0c1729d9; border-radius: 0.5rem; cursor: pointer; }
#node-context svg { width: 104px; height: 57px; }
#node-context text { fill: #bdcee2; font-size: 11.5px; }
#node-context ellipse { fill: none; stroke: #b99152; stroke-width: 1.2; }
#node-context circle { fill: #e6b75b; }
#node-context circle + circle { fill: #3c8c97; }
#node-context rect { fill: none; stroke: #3c8c97; stroke-dasharray: 2 2; }
#node-context span { font-size: 0.6rem; color: #c3d1e4; white-space: nowrap; }
.node-camera-tools { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; padding: 0.2rem 1rem 0.9rem; font-size: 0.7rem; color: #a5b5cc; }
.node-camera-tools button { color: #d6e4f5; cursor: pointer; padding: 0.4rem; text-decoration: underline; text-underline-offset: 0.2em; }
.node-key-ecliptic { border-radius: 2px; border-color: #b99152; background: #b9915233; }
.node-key-lunar { border-radius: 2px; border-color: #3baca8; background: #3baca833; }
.node-figure .node-key-rahu { border-color: #ffc16b; }
.node-figure .node-key-ketu { border-color: #c4a3f1; }
.node-stage .node-label { fill: #e6edf6; }
.node-stage .node-orbit-north { stroke: #70e1ce; }
.node-stage .node-orbit-south { stroke: #4a9f9b; }
.node-stage .node-rahu { fill: #0d1729; stroke: #ffc16b; }
.node-stage .node-ketu { fill: #0d1729; stroke: #c4a3f1; }
.node-story-section { margin-bottom: clamp(3rem, 6vw, 5rem); scroll-margin-top: 1.5rem; }
.node-story-heading { max-width: 43rem; margin: 0 auto 1.5rem; }
.node-story-heading h2 { margin: 0.7rem 0 1rem; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.2; font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
.node-story-heading > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.8; color: var(--t3); }
.node-story-view { max-width: 54rem; margin-inline: auto; border: 1px solid #8eabc333; border-radius: 1rem; overflow: hidden; background: #0d1729; }
.node-story-view [hidden] { display: none !important; }
.node-story-view .node-stage { height: 440px; }
.node-story-view .node-figure { max-width: none; }
.node-story-view canvas { cursor: auto; touch-action: pan-y; }
.node-story-view figcaption { padding-top: 0.6rem; line-height: 1.6; max-width: 43rem; margin-inline: auto; }
.node-story-caption { position: absolute; top: 1rem; left: 1rem; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: #adbed5; pointer-events: none; }
.node-story-note { max-width: 43rem; margin: 1rem auto 0; font-size: 0.9rem; line-height: 1.75; color: var(--t3); }
@media (max-width: 64rem) {
  .node-workspace { grid-template-columns: 1fr; }
  .node-figure { max-width: 43rem; width: 100%; margin: auto; }
  .node-scene-copy { border-left: 0; border-top: 1px solid var(--line); padding: 1.3rem; }
  .node-scene-copy h2 { font-size: 1.55rem; }
  .node-readout strong { min-height: 0; }
  .node-options { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
}
@media (max-width: 40rem) {
  .node-story-heading, .node-story-note { padding-inline: 0.6rem; }
  .node-story-view .node-stage { height: 350px; }
  .learn-heading { padding-inline: 0.4rem; }
  .learn-feature { grid-template-columns: 1fr; }
  .learn-feature-art { padding: 0; }
  .learn-feature-art svg { max-height: 16rem; }
  .learn-reading { padding-inline: 0.6rem; font-size: 1rem; margin-top: 2.5rem; }
  .node-steps button { padding: 0.7rem 0.3rem; }
  .node-playback { flex-wrap: wrap; gap: 0.8rem; padding: 0.9rem; }
  .node-timeline { flex-basis: 100%; order: -1; }
  #node-next { margin-left: auto; }
  .node-options { grid-template-columns: 1fr; }
  .node-figure { padding-top: 0; }
  .node-stage { height: 390px; }
  .node-world-label { font-size: 10px; }
  .node-crossing-glow { width: 32px; height: 32px; }
  .node-label-sign { font-size: 9px; }
  .node-steps { grid-template-columns: repeat(3, 1fr); }
  .node-steps button span { display: block; margin-left: 0; }
  .node-camera-tools { font-size: 0.65rem; }
}
@media print {
  .node-steps, .node-options, .node-playback, .node-motion-note, .node-camera-tools, .node-stage-hud, .node-world-labels { display: none !important; }
  #node-diagram[hidden] { display: block !important; }
  .node-stage canvas { display: none; }
  .node-story-view [data-node="diagram"][hidden] { display: block !important; }
  .node-story-caption { display: none; }
  .node-story-section { break-inside: avoid; }
  .node-stage, .node-figure { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .node-explorer, .learn-feature { break-inside: avoid; }
  .node-workspace { display: block; }
  .node-scene-copy { border-left: 0; }
}
