/* OBOR Historical Evidence research environment. Independent page, source-bound rendering. */
.history-page{padding:0 0 84px}
.history-hero{padding:42px 0 24px;display:flex;align-items:end;justify-content:space-between;gap:24px}
.history-eyebrow{font-size:10px;letter-spacing:.145em;color:#52788a;font-weight:800}
.history-hero h1{font-size:clamp(33px,5vw,57px);line-height:1.04;max-width:780px;letter-spacing:-.052em;margin:12px 0 14px;color:#133849}
.history-hero p{margin:0;max-width:770px;font-size:14px;line-height:1.68;color:#56717d}
.history-nav-back{flex:0 0 auto;padding:11px 15px;border:1px solid #cbdce1;background:#fff;border-radius:9px;color:#245a70;text-decoration:none;font-size:12px;font-weight:750}
.history-nav-back:hover{background:#eaf3f6}
.history-rule{border-left:3px solid #648ca0;background:#edf4f6;padding:13px 16px;border-radius:0 9px 9px 0;font-size:12px;line-height:1.6;color:#426879;margin-bottom:24px}
.history-controls{border:1px solid #d3e1e7;border-radius:14px;background:linear-gradient(140deg,#fff,#f8fbfc);padding:24px 25px 23px;box-shadow:0 9px 25px rgba(23,63,81,.055);display:grid;gap:17px}
.history-controls-header{display:flex;justify-content:space-between;align-items:baseline;gap:15px}
.history-controls-header h2{margin:0;font-size:21px;letter-spacing:-.03em;color:#173f50}
.history-controls-header span{font-size:10px;color:#6b858f;text-transform:uppercase;letter-spacing:.1em;font-weight:700}
.history-control-grid{display:grid;grid-template-columns:1fr 1.25fr 1.35fr;gap:13px}
.history-control-grid label{display:grid;gap:7px;color:#5e7b88;font-size:10px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}
.history-control-grid select{width:100%;min-height:46px;background:#fff;color:#1b4759;border:1px solid #bdd3db;border-radius:8px;padding:11px 12px;font-size:13px;font-family:inherit;font-weight:600;letter-spacing:0;text-transform:none}
.history-control-grid select:focus-visible,.history-ranges button:focus-visible{outline:3px solid #80b9cb;outline-offset:2px}
.history-ranges{display:flex;flex-wrap:wrap;gap:5px;align-items:center;background:#e9f1f4;border:1px solid #ccdee3;border-radius:10px;padding:5px;width:max-content;max-width:100%}
.history-ranges button{appearance:none;border:0;border-radius:7px;padding:9px 15px;background:transparent;color:#53717e;font-family:inherit;font-size:12px;font-weight:750;cursor:pointer}
.history-ranges button[aria-pressed=true]{background:#1b5268;color:#fff}
.history-ranges button:hover:not([aria-pressed=true]){background:#d9e8ee}
.history-result-status{border:1px solid #d8e7eb;background:#f1f7f9;border-radius:10px;padding:13px 16px;color:#426575;font-size:12px;line-height:1.6;margin:18px 0}
.history-result-status[data-error=true]{border-color:#e3c8b5;background:#fbf4ee;color:#805945}
.history-visual{border:1px solid #cbdfe6;background:#fff;border-radius:15px;padding:27px;margin:21px 0;box-shadow:0 8px 29px rgba(23,63,81,.05)}
.history-visual-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:17px}
.history-visual-top h2{font-size:23px;letter-spacing:-.038em;color:#173f50;margin:0 0 5px}
.history-visual-top p{margin:0;font-size:12px;color:#64818e}
.history-visual-top small{font-size:11px;color:#66818d;text-align:right;max-width:310px}
.history-chart{position:relative;border:1px solid #c9dce4;background:linear-gradient(180deg,#f9fcfd,#eaf3f6);border-radius:11px;padding:10px 12px 8px;touch-action:pan-y;outline-offset:3px}
.history-chart:focus-visible{outline:3px solid #3c859f}
.history-chart-svg{width:100%;height:230px;display:block;overflow:visible}
.history-chart-line{fill:none;stroke:#276980;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.history-chart-base{stroke:#a6bdc8;stroke-width:1;stroke-dasharray:3 5}
.history-chart-guide{stroke:#397b8e;stroke-width:1.4;stroke-dasharray:4 3}
.history-chart-dot{fill:#fff;stroke:#25687f;stroke-width:3}
.history-chart-single{fill:#25687f}
.history-chart-tooltip{position:absolute;right:12px;top:13px;border:1px solid #b9d5dd;background:rgba(255,255,255,.97);border-radius:9px;padding:10px 15px;color:#244b5c;pointer-events:none;box-shadow:0 8px 21px rgba(19,62,81,.1);min-width:158px}
.history-chart-tooltip.is-left{left:12px;right:auto}
.history-chart-tooltip small{font-size:10px;letter-spacing:.025em;color:#537785;display:block}
.history-chart-tooltip strong{font-size:22px;letter-spacing:-.03em;display:block;font-variant-numeric:tabular-nums;margin:4px 0}
.history-chart-tooltip span{font-size:10px;color:#68808a}
.history-chart-hint{font-size:10px;color:#698590;margin:5px 0 1px}
.history-plot-axis{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#67828d;margin:11px 3px 0}
.history-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0}
.history-card{border:1px solid #d6e4e8;background:#f6fafb;padding:20px 19px;border-radius:11px;min-width:0}
.history-card span{font-size:10px;letter-spacing:.06em;color:#5f7b88;font-weight:750;text-transform:uppercase}
.history-card strong{display:block;font-size:clamp(22px,2.9vw,32px);line-height:1.12;color:#1c4a5d;letter-spacing:-.04em;margin:10px 0;font-variant-numeric:tabular-nums}
.history-card p{margin:0;font-size:11px;line-height:1.6;color:#5b7682}
.history-reading{border-top:1px solid #dce6e9;margin-top:22px;padding-top:18px}
.history-reading h3{margin:0 0 10px;color:#214a5a;font-size:18px;letter-spacing:-.02em}
.history-reading p{font-size:12px;line-height:1.7;color:#4f6d7a}
.history-record{border:1px solid #d5e3e9;background:#fff;border-radius:12px;padding:0 19px;margin-top:20px}
.history-record>summary{cursor:pointer;padding:17px 0;font-size:13px;font-weight:760;color:#24556a}
.history-record p{color:#587582;font-size:11px}
.history-table-wrap{max-height:520px;overflow:auto;margin-bottom:20px;border:1px solid #d7e4e9;border-radius:8px}
.history-table{width:100%;border-collapse:collapse;font-size:12px}
.history-table th,.history-table td{padding:10px 15px;text-align:left;border-bottom:1px solid #e6edf0}
.history-table th:last-child,.history-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.history-table thead th{background:#e9f2f5;color:#486978;font-size:10px;letter-spacing:.05em;text-transform:uppercase;position:sticky;top:0}
.history-method{margin:19px 0 0;padding:16px 18px;background:#f1f6f8;border-left:3px solid #6a91a1;font-size:11px;line-height:1.73;color:#4f6e7c}
.history-method a{color:#24637d}
.history-next{display:flex;flex-wrap:wrap;gap:9px;margin:24px 0}
.history-next a{border:1px solid #cbdfe5;border-radius:9px;padding:10px 13px;text-decoration:none;font-size:12px;font-weight:750;color:#235e74;background:#fff}
.history-next a:hover{background:#e7f1f5}
@media(max-width:760px){.history-hero{padding:29px 0 18px;flex-direction:column;align-items:stretch}.history-nav-back{width:max-content}.history-control-grid{grid-template-columns:1fr}.history-controls{padding:17px}.history-visual{padding:16px}.history-visual-top{display:block}.history-visual-top small{display:block;text-align:left;margin-top:10px}.history-cards{grid-template-columns:1fr}.history-chart-svg{height:182px}.history-chart-tooltip strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){.history-ranges button{transition:none}}
