/* Homepage: scoped; preserves navbar, About and Downloads styles. */
.home-page{color:#253349;line-height:1.65;font-size:17px;}
.home-page *{box-sizing:border-box}
.home-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(210px,.65fr);gap:clamp(24px,4vw,58px);align-items:center;margin-bottom:24px}
.home-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:#45719a;font-weight:700;margin:0 0 10px}
.home-hero h2{font-size:clamp(28px,3.1vw,42px);line-height:1.16;letter-spacing:-.025em;color:#142d4e;margin:0 0 20px}
.home-hero p{margin:0 0 14px}
.home-hero .home-lead{font-size:clamp(18px,1.7vw,22px);line-height:1.45;color:#172f4c;font-weight:600}
.home-math-note{font-weight:600;color:#285c82}
.home-cover-wrap{text-align:center}
.home-book-cover{display:block;max-width:100%;max-height:430px;width:auto;height:auto;margin:0 auto;box-shadow:0 9px 28px rgba(14,36,65,.16);border-radius:4px}
.home-path-section,.home-panel{background:#edf5fc;border:2px solid #a7c5de;border-radius:10px;padding:18px 22px;margin:18px 0}
.home-path-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.home-page h3{font-size:clamp(20px,2vw,24px);color:#173e62;line-height:1.3;margin:0 0 9px}
.home-path-intro{margin:0 0 12px}
.home-svg-frame{background:#f5f9fd;border:1px solid #c8d9e6;border-radius:9px;overflow:hidden}
#tim-home-visual{display:block;width:100%;height:auto}
.tim-contours{fill:none;stroke:#7097b4;stroke-width:1.15;opacity:.65}
.tim-svg-label{font:700 18px Arial,sans-serif;fill:#183c56;paint-order:stroke;stroke:#f5f9fd;stroke-width:4px}
.home-caption{text-align:center;font-size:14px;color:#536780;margin:8px 0 0}
.home-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:6px;background:#173e62;color:white!important;text-decoration:none;border:1px solid #173e62;cursor:pointer;font:600 15px Arial,sans-serif;text-align:center}
.home-button:hover{background:#285f8c}
.home-button:focus-visible{outline:3px solid #df8d32;outline-offset:3px}
.home-replay{min-height:36px;padding:7px 16px}
.home-lower{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-lower .home-panel{margin:0;display:flex;flex-direction:column;align-items:flex-start}
.home-panel p{margin:0 0 16px;flex:1}
@media(max-width:680px){.home-hero{grid-template-columns:1fr;gap:17px}.home-cover-wrap{max-width:235px;margin:auto}.home-book-cover{max-height:335px}.home-lower{grid-template-columns:1fr;gap:14px}.home-path-section,.home-panel{padding:16px 14px}.home-page{font-size:16px}.home-path-head{flex-wrap:wrap}.home-path-intro{font-size:15px}.tim-svg-label{font-size:21px}}
@media(prefers-reduced-motion:reduce){#tim-path-line{transition:none}}

/* Homepage disclosure design: shared visual language with Downloads and About. */
.home-disclosures{display:grid;gap:8px;margin:18px 0 24px}
.home-disclosure{border:1.5px solid #a6c5df;border-radius:7px;background:#e8f2fa;overflow:hidden}
.home-disclosure>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:11px 15px;min-height:52px;color:#142d4e;font-weight:700;font-size:clamp(17px,1.85vw,21px);line-height:1.35}
.home-disclosure>summary::-webkit-details-marker{display:none}
.home-disclosure>summary::before{content:'+';display:grid;place-items:center;flex:0 0 27px;height:27px;background:#d4e5f2;border-radius:5px;font-size:21px;line-height:1}
.home-disclosure[open]>summary::before{content:'−'}
.home-disclosure>summary:hover{background:#dcebf7}
.home-disclosure>summary:focus-visible{outline:3px solid #225d89;outline-offset:-3px}
.home-disclosure[open]>summary{border-bottom:1px solid #aac8df}
.home-disclosure-content{padding:14px 17px 18px;background:#f7fbfe;font-size:16px;line-height:1.55}
.home-disclosure-content p{margin:0 0 12px}
.home-path-center{max-width:560px;margin:0 auto;text-align:center}
.home-path-center .home-svg-frame{width:100%}
.home-path-center .home-caption{margin:9px 0 10px}
.home-path-center .home-replay{margin:0 auto}
@media(max-width:680px){.home-disclosure-content{padding:12px}.home-disclosure>summary{padding:10px 12px;min-height:48px}}

.home-hero{display:block;max-width:900px}.home-hero-text{max-width:900px}.tim-home-seed{font:600 16px Arial,sans-serif;fill:#456581;paint-order:stroke;stroke:#f5f9fd;stroke-width:3px}.tim-contours path{fill:none;stroke:#7097b4;stroke-width:1.1;opacity:.67}

/* More legible terrain contours and seed reference. */
.tim-contours path{stroke:#477ea6;stroke-width:1.55;opacity:.88}
.tim-home-seed{font:700 20px Arial,sans-serif;fill:#173e62;stroke:#f5f9fd;stroke-width:4px;paint-order:stroke}

.home-reader-actions{display:flex;flex-wrap:wrap;gap:10px}
