/* Source-backed static research pages, sharing the personal site's visual system. */
.analysis-main { padding-bottom: 32px; }
.analysis-heading { padding: 31px 0 27px; }
.analysis-back { display: inline-block; margin-bottom: 25px; font-size: 11px; color: var(--muted-low); }.analysis-back:hover { color: var(--accent); }
.analysis-title-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.analysis-heading .eyebrow { font-size: 8px; }.analysis-heading h1 { font-size: clamp(26px,3.2vw,39px); letter-spacing: -.04em; font-weight: 500; line-height: 1.45; margin-top: 10px; }
.analysis-subtitle { font-size: 11px; color: var(--muted); margin-top: 11px; }
.analysis-chip { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #c5f2d527; color: var(--accent); font-size: 10px; border-radius: 6px; background: #1a2b2055; white-space: nowrap; }.analysis-chip .status-dot { width: 4px; height: 4px; }
.analysis-status { color: var(--muted-low); font-size: 11px; margin-bottom: 20px; }
.metric-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(110deg,#1c2b2266,#10171b); }
.metric { padding: 22px; border-right: 1px solid var(--line); }.metric:last-child { border: 0; }.metric > span { font-size: 10px; color: var(--muted); }.metric strong { display: block; font: 29px var(--mono); letter-spacing: -.07em; margin-top: 9px; }.metric small { display: block; color: var(--muted-low); font-size: 9px; margin-top: 7px; }.metric:first-child strong { color: var(--accent); }
.analysis-jumps { display: flex; gap: 25px; flex-wrap: wrap; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); padding: 19px 0; }.analysis-jumps a:hover { color: var(--accent); }
.analysis-section { margin-top: 38px; }.analysis-section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }.analysis-section-head .eyebrow { font-size: 7px; }.analysis-section-head h2 { font-size: 23px; font-weight: 500; margin-top: 7px; letter-spacing: -.035em; }
.control-label { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted-low); }.control-label select { min-width: 110px; max-width: 100%; color: var(--text); background: #182328; border: 1px solid #c5f2d526; border-radius: 5px; padding: 8px 10px; font: 11px var(--font); }
.section-period { color: var(--muted-low); font: 9px var(--mono); }.section-note { font-size: 11px; line-height: 1.9; color: var(--muted); margin: -5px 0 19px; }
.analysis-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; }.analysis-grid:has(.chart-wide) { grid-template-columns: 1.45fr 1fr; }
.chart-card { min-width: 0; background: #11191e; border: 1px solid var(--line); border-radius: 10px; padding: 21px; }.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; margin-bottom: 17px; }.chart-head h3 { font-size: 13px; font-weight: 500; }.chart-head p { color: var(--muted-low); font-size: 9px; line-height: 1.8; margin-top: 6px; }.chart-unit { font: 8px var(--mono); color: var(--muted-low); margin-top: 4px; }
.chart-host { min-width: 0; width: 100%; }.chart-host svg { width: 100%; height: auto; overflow: visible; }.chart-host text { fill: #99a4a9; font-family: var(--font); font-size: 11px; }.chart-host .chart-value { fill: var(--text); font-family: var(--mono); font-size: 10px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 13px; font-size: 9px; color: var(--muted); }.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }.chart-legend span::before { content: ''; width: 11px; height: 2px; background: var(--series); }.chart-note { font-size: 9px; line-height: 1.9; color: var(--muted-low); margin-top: 13px; }
.matrix-select { justify-content: flex-end; margin-bottom: 12px; }.matrix-select select { min-width: 0; width: min(230px,100%); font-size: 10px; }
.table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #33433b transparent; }.table-wrap table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }.table-wrap th { font-weight: 400; color: var(--muted-low); text-align: right; font-size: 9px; padding: 11px 9px; border-bottom: 1px solid #ffffff1e; }.table-wrap td { text-align: right; padding: 12px 9px; border-bottom: 1px solid #ffffff09; color: var(--muted); }.table-wrap th:first-child,.table-wrap td:first-child { text-align: left; }.table-wrap td.numeric { font-family: var(--mono); color: var(--text); }.table-wrap tr:last-child td { border-bottom: 0; }.table-wrap tr:hover td { background: #c5f2d507; }
.analysis-control { background: #1d2d24; border: 1px solid #c5f2d52d; color: var(--accent); border-radius: 5px; padding: 8px 12px; font-size: 10px; white-space: nowrap; }.analysis-control:hover { background: #263d2e; }
.forecast-scores { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; gap: 12px; }.forecast-score span { display: block; color: var(--muted-low); font-size: 9px; }.forecast-score strong { display: block; color: var(--text); font: 24px var(--mono); margin-top: 7px; letter-spacing: -.06em; }.forecast-score small { font-size: 8px; color: var(--muted-low); }.comparison-card { margin-top: 19px; }.comparison-card + .section-note { margin-top: 17px; }
.method-panel { margin-top: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; background: #11171b; }.method-panel summary { list-style: none; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); cursor: pointer; }.method-panel summary::-webkit-details-marker { display: none; }.method-panel[open] summary > span { transform: rotate(45deg); }.method-entry { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }.method-entry strong { font-size: 10px; font-weight: 500; color: var(--accent); }.method-entry p { margin-top: 5px; font-size: 10px; line-height: 1.9; color: var(--muted); overflow-wrap: anywhere; }
.analysis-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 17px; color: var(--muted-low); font-size: 10px; margin-top: 25px; }.analysis-footer .mono { font-size: 8px; }.analysis-footer a:hover { color: var(--accent); }
.scope-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; }.scope-toolbar > .mono { font-size: 8px; color: var(--muted-low); }.scope-buttons { display: flex; padding: 4px; gap: 4px; background: #11191e; border: 1px solid var(--line); border-radius: 7px; }.scope-buttons button { color: var(--muted); font-size: 11px; border: 1px solid transparent; border-radius: 4px; padding: 8px 13px; background: transparent; }.scope-buttons button.is-selected { color: var(--accent); border-color: #c5f2d527; background: #26392d; }
.scenario-note { display: flex; gap: 13px; margin-top: 20px; background: #e5b69605; border: 1px solid #e5b69622; border-radius: 7px; padding: 15px 18px; color: var(--muted); font-size: 11px; line-height: 1.9; }.scenario-note > span:first-child { color: var(--warm); font-size: 20px; }.scenario-note strong { color: var(--warm); font-weight: 500; }
.regional-composition { margin-top: 19px; }
.risk-controls { display: flex; gap: 15px; flex-wrap: wrap; }.risk-archive-chip { color: var(--warm); border-color: #e5b69630; background: #30251d44; }.risk-description { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); margin-top: 22px; }.risk-description .metric { padding: 14px 8px; border-right: 0; }.risk-description .metric strong { font-size: 21px; }.risk-review-grid { gap: 14px; }.risk-review-grid h3 { margin-top: 11px; font-size: 14px; font-weight: 500; }.risk-review-grid p { font-size: 11px; line-height: 1.95; color: var(--muted); margin-top: 11px; }.risk-rerun-note { margin-top: 19px; }.analysis-control:disabled { opacity: .4; cursor: not-allowed; }#risk-unavailable { margin: 0; }.method-entry a { color: var(--accent); }
.chart-point { opacity: 0; }.chart-point:hover,.chart-point:focus { opacity: 1; outline: 1px solid var(--accent); }
.chart-host .matrix-count { font-size: 9px; fill: var(--text); pointer-events: none; }
#confusion-chart { overflow-x: auto; scrollbar-width: thin; }#confusion-chart svg { min-width: 408px; }
.region-chart { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #33433b transparent; }.region-chart svg { min-width: 640px; }
@media (max-width: 850px) { .analysis-grid:has(.chart-wide) { grid-template-columns: 1fr; }.metric { padding: 18px; }.metric strong { font-size: 26px; }.chart-head { flex-wrap: wrap; } }
@media (max-width: 640px) {
  .analysis-heading { padding-top: 23px; }.analysis-title-row { align-items: flex-start; flex-direction: column; gap: 17px; }.analysis-heading h1 { font-size: 28px; }.analysis-subtitle { font-size: 10px; line-height: 1.9; }.analysis-chip { font-size: 9px; padding: 7px 10px; }
  .metric-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }.metric:nth-child(2) { border-right: 0; }.metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.metric { padding: 17px; }.metric strong { font-size: 26px; }.metric small { font-size: 8px; }
  .analysis-section { margin-top: 29px; }.analysis-section-head { flex-wrap: wrap; gap: 14px; }.analysis-section-head h2 { font-size: 22px; }.analysis-grid { grid-template-columns: 1fr; gap: 14px; }.chart-card { padding: 16px; }.chart-host text { font-size: 12px; }.chart-head h3 { font-size: 13px; }.chart-head p { font-size: 9px; }
  .analysis-jumps { gap: 13px; font-size: 9px; }.control-label select { font-size: 10px; }.section-note { font-size: 10px; }.table-wrap table { font-size: 9px; }.forecast-score strong { font-size: 22px; }.forecast-score span { font-size: 8px; }.scope-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }.scenario-note { padding: 13px; font-size: 10px; }.analysis-footer { font-size: 9px; }.method-panel { padding: 15px; }
}

@media (min-width: 1200px) {
  #confusion-chart svg { max-width: 560px; margin-inline: auto; }
}
