.life-map__label{font:600 17px system-ui;fill:#203a35;paint-order:stroke;stroke:#f6f3eb;stroke-width:4px}.life-map__regions{display:none}.time-screen{text-align:center}.time-screen .stage-title{font-size:30px;margin-bottom:10px}.time-screen .big-year{font-size:clamp(48px,7vw,80px);margin:15px 0;color:var(--accent);font-variant-numeric:tabular-nums}.time-population{font-size:15px;color:var(--muted)}.population-svg{display:block;width:100%;height:auto;min-height:150px;cursor:crosshair;overflow:visible}.chart-grid{stroke:#cdd1c4;stroke-width:1}.chart-axis{fill:#5b6961;font:12px system-ui}.chart-area{fill:#dae4d2;opacity:.9}.chart-line{fill:none;stroke:#45694e;stroke-width:2.5}.chart-marker{stroke:#a64029;stroke-width:1.5;stroke-dasharray:4 4}.chart-dot{fill:#a64029;stroke:#f6f3eb;stroke-width:2}.chart-year{fill:#a64029;font:600 13px system-ui}.chart-controls{display:flex;justify-content:center;gap:8px;margin:10px}.chart-controls button{min-height:44px;padding:8px 15px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:25px;font-size:12px}.chart-controls button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.time-actions,.place-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:20px 0}.visual-source{font-size:11px;color:var(--muted);max-width:800px;margin:20px auto}.visual-method{font-size:12px;color:var(--muted);max-width:700px;margin:auto}.visual-method summary{min-height:44px;cursor:pointer}.year-form{display:flex;justify-content:center;gap:12px;align-items:end;flex-wrap:wrap;padding:20px;border:1px solid var(--line);margin:20px auto;max-width:700px}.year-form label{text-align:left;font-size:12px}.year-form input,.year-form select{display:block;min-height:46px;background:var(--paper);border:1px solid #9da894;color:var(--ink);padding:10px;font-size:16px;max-width:160px}.year-form p{width:100%;margin:0;color:var(--accent)}.journey-active .place-layout{display:block;min-height:0}.map-heading{text-align:center}.map-heading .stage-text{max-width:720px;margin:10px auto 20px}.region-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0}.region-stats>div{border-top:1px solid var(--line);padding:12px 0}.region-stats span,.region-stats small{display:block;font-size:11px;color:var(--muted)}.region-stats strong{display:block;font:28px Georgia,serif;margin:5px 0}.living-stats{margin:35px 0}.living-stats>h3{text-align:center}.living-stats>.stage-text{text-align:center;max-width:700px;margin:0 auto 25px}.living-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.living-stat-grid article{min-width:0;border-block-start:1px solid var(--line);padding:16px 0}.living-stat-grid article>p{font-size:11px;text-transform:uppercase;letter-spacing:.8px;margin:0 0 10px}.living-stat-grid strong{display:block;font:25px/1.25 Georgia,serif;overflow-wrap:anywhere}.living-stat-grid small{display:block;font-size:11px;margin-top:8px;color:var(--muted)}.living-stat-grid details{font-size:12px;color:var(--muted);margin-top:10px}.living-stat-grid summary{min-height:44px;cursor:pointer}.living-stat-grid details p{font-size:12px}.personal-subtitle{margin-top:35px;padding-top:25px;border-top:1px solid var(--line)}@media(max-width:680px){.journey-active .journey-stage{padding-top:20px}.time-screen .stage-title{font-size:26px}.time-screen .big-year{font-size:48px}.time-population{font-size:13px}.population-svg{min-height:170px}.chart-axis{font-size:15px}.chart-year{font-size:16px}.time-actions .button{font-size:12px;padding:10px 15px}.region-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.region-stats strong{font-size:23px}.region-stats small{font-size:9px}.living-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.living-stat-grid strong{font-size:21px}.year-form{padding:15px}.year-form .button{width:100%}.visual-source{font-size:10px}}@media print{.time-actions,.place-actions,.chart-controls,.year-form,.visual-method{display:none}.living-stat-grid article{break-inside:avoid}}
.year-note{max-width:720px;margin:8px auto 16px;color:var(--accent);font-size:14px}
.era-scene{margin:18px auto;max-width:960px}.era-scene img{width:100%;height:auto;display:block;border-radius:8px}

.model-note{max-width:720px;margin:14px auto;padding:12px 14px;border-left:3px solid var(--accent);background:color-mix(in srgb,var(--card) 88%,transparent);color:var(--muted-foreground);font-size:13.5px;line-height:1.5}

.elite-names{max-width:720px;margin:10px auto;padding:10px 12px;border-left:3px solid var(--border);color:var(--muted-foreground);font-size:13.5px;line-height:1.5}

/* Inimene page: framed info cards, personal world separated from sourced context */
.card-block{margin:26px 0;padding:18px 16px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--card) 92%,transparent)}
.card-block>h3{margin:0 0 4px}
.card-block__lead{margin:0 0 14px;color:var(--muted-foreground);font-size:13.5px}
.card-block--personal{border-left:4px solid var(--accent)}
.card-block--context{border-left:4px solid var(--border)}
.info-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.info-card{border:1px solid var(--border);border-radius:10px;padding:12px 14px;background:var(--card)}
.info-card h4{margin:0 0 6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground)}
.info-card__value{margin:0;font-size:15px;line-height:1.45}
.info-card details{margin-top:10px;font-size:12.5px;color:var(--muted-foreground)}
.info-card details summary{cursor:pointer}
.info-card--personal{border-style:dashed}
@media (max-width:480px){.info-card-grid{grid-template-columns:1fr}.card-block{padding:14px 12px}}

/* Advance buttons sit with the redraw controls so they are visible without
   scrolling on both desktop and mobile. */
.time-actions,.place-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}
.time-actions .button,.place-actions .button{flex:0 1 auto}
@media (max-width:480px){
 .time-actions,.place-actions{gap:8px}
 .time-actions .button,.place-actions .button{flex:1 1 100%}
 .time-actions #advance-place,.place-actions #advance-person{order:-1}
}

/* Vital cards: two rows of three, before the personal world block. */
.card-block--vital{border-left:4px solid var(--accent)}
.info-card-grid--vital{grid-template-columns:repeat(3,1fr)}
.info-card-grid--vital+.info-card-grid--vital{margin-top:12px}
.info-card--vital .info-card__value{font-size:22px;font-weight:600;line-height:1.25}
.info-card__tag{margin:6px 0 0;font-size:10.5px;letter-spacing:.08em;font-weight:600;color:var(--muted-foreground)}
.info-card__tag--missing{opacity:.85}
.info-card--missing{border-style:dashed;opacity:.78}
.info-card--missing .info-card__value{font-size:15px;font-weight:500;color:var(--muted-foreground)}
@media (max-width:760px){.info-card-grid--vital{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.info-card-grid--vital{grid-template-columns:1fr}}

/* Breathing room between the biography button and the named-life recovery block. */
#read-biography{display:inline-block;margin:22px 0 6px}
.named-life-recovery{margin-top:34px;padding-top:26px;border-top:1px solid var(--border)}
.named-life-recovery>h3{margin-top:0}
@media (max-width:480px){
 #read-biography{margin:18px 0 4px;width:100%}
 .named-life-recovery{margin-top:26px;padding-top:20px}
}

/* Cause-of-death and disease cards: same frame language, distinct accent. */
.card-block--cause{border-color:var(--border)}
.info-card--cause{border-left:3px solid var(--accent)}
.card-block__sub{margin:20px 0 10px;font-size:.95rem;letter-spacing:.02em}
.info-card--cause .info-card__value{font-variant-numeric:tabular-nums}

/* Chapters drawn from probabilities say so, in small print under the text. */
.biography-chapter .chapter-note{margin:.4rem 0 0;font-size:.82rem;line-height:1.45;color:var(--muted-foreground,#6b6b6b);font-style:italic}
.biography-chapter--drawn{border-left:3px solid var(--accent,#b08a3e);padding-left:14px}
.biography-chapter--context{border-left:3px solid var(--border,#d8d2c4);padding-left:14px}

/* The one "Loosi asukoht" button sits under the chart, where the scale toggles were. */
.time-advance{display:flex;justify-content:center;margin:14px 0 6px}
.time-advance #next{min-width:220px}
.chart-controls{display:none}

/* "Loe tema elulugu" spans the text column so it cannot be missed. */
#read-biography{display:block;width:100%;max-width:none;text-align:center;padding-top:14px;padding-bottom:14px;font-size:1.05rem}
/* The draw announced in one sentence at the top of Inimene. */
.draw-lead{font-family:Georgia,serif;font-size:1.15rem;line-height:1.5;margin:0 0 14px;padding:12px 16px;border-left:4px solid var(--accent,#b08a3e);background:rgba(176,138,62,.07)}
