/* Project-specific layout; colors, typography and navigation come from styles.css. */
.identity-name { font-size: 27px; letter-spacing: -1.1px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.analysis-intro { padding: 30px 0 40px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; padding-block: 8px; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.analysis-intro h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -1.5px; }
.analysis-intro .project-label { margin-bottom: 12px; }
.analysis-deck { font-size: 20px; line-height: 1.5; color: var(--ink); margin: 10px 0 24px; max-width: 32ch; }
.analysis-intro p + .annotation { margin-top: 14px; }
.analysis-main section > p { max-width: 66ch; }
.analysis-main h2 { margin-bottom: 16px; }
.analysis-main section > p + p { margin-top: 14px; }
.annotation, figcaption, .source-note { color: var(--muted); font-size: 13px; line-height: 1.75; }
.analysis-figure { margin: 28px 0 22px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font: 12px 'IBM Plex Mono', monospace; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linejoin: round; }
.chart-area { fill: var(--accent); opacity: .06; }
.chart-marker { fill: var(--accent); stroke: var(--page); stroke-width: 2; }
.chart-guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-bar { fill: var(--accent); opacity: .7; }
.chart-bar.is-active { opacity: 1; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-tooltip { position: absolute; transform: translate(-50%, -100%); background: var(--button); color: var(--button-text); border-radius: 6px; padding: 6px 10px; font: 11px/1.5 var(--mono); white-space: nowrap; pointer-events: none; z-index: 2; }
.chart-readout { margin: 14px 0 9px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 12px/1.8 var(--mono); color: var(--ink); min-height: 48px; }
.chart-controls { margin-top: 14px; }
.chart-controls .year-label { display: flex; justify-content: space-between; font-size: 13px; }
.chart-controls output { font-family: var(--mono); }
input[type="range"] { width: 100%; height: 32px; accent-color: var(--accent); cursor: pointer; }
.weight-controls { border: 0; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
.weight-controls legend { font: 11px/1.7 var(--mono); color: var(--muted); margin-bottom: 5px; }
.weight-controls label { display: flex; gap: 8px; align-items: center; min-height: 44px; font-size: 13px; cursor: pointer; }
.weight-controls input { accent-color: var(--accent); width: 16px; height: 16px; }
.chart-key { font-size: 12px; color: var(--muted); margin-bottom: 15px; }
.chart-key span { display: inline-block; margin-left: 12px; }
.designation-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; padding: 12px 0; background: none; color: var(--text); border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.designation-row:hover, .designation-row[aria-pressed="true"] { color: var(--accent); background: var(--surface); }
.designation-label { font-size: 12px; line-height: 1.5; }
.designation-label small { display: block; font: 10px/1.8 var(--mono); color: var(--muted); }
.designation-plot { position: relative; height: 20px; background: repeating-linear-gradient(to right, var(--line-soft) 0 1px, transparent 1px 33.333%); }
.designation-interval { position: absolute; height: 3px; top: 9px; background: var(--accent); }
.designation-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; top: 6px; transform: translateX(-50%); background: var(--accent); }
.designation-axis { margin: 9px 0 0 206px; display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--muted); }
details { margin-top: 18px; }
summary { cursor: pointer; color: var(--accent); font-size: 13px; min-height: 44px; padding-block: 10px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); padding-bottom: 12px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); }
thead th { color: var(--ink); }
tbody th { font-weight: 500; }
.model-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 18px; border-block: 1px solid var(--line); }
.model-results > div { padding: 16px 12px 16px 0; }
.model-results dt { font: 12px/1.6 'Manrope', sans-serif; }
.model-results dd { font: 24px/1.6 var(--mono); color: var(--ink); }
.notes-subtitle { margin: 28px 0 12px; font-size: 17px; }
.source-note { margin-top: 22px; font-size: 12px; }
.source-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .identity-name { font-size: 24px; }
  .analysis-deck { font-size: 18px; }
  .analysis-intro { padding-bottom: 30px; }
  .designation-row { grid-template-columns: 135px minmax(0, 1fr); gap: 12px; }
  .designation-axis { margin-left: 147px; }
  .model-results dt { font-size: 11px; }
  .model-results dd { font-size: 21px; }
}
