/* figures.css: Fig. 1 to 3 and Sources, scoped under .figures and .sources. */
.figures { --n0:#2e5c45; --n1:#4f7d63; --n2:#86a88a; --n3:#c4d0b0; --n4:#e6cfa9; --n5:#d9a579; --n6:#c27a4c; --n7:#a24f2c; --dur: 360ms; --ease: cubic-bezier(.3,.7,.2,1); margin: 8px 0 32px; }
.figures .fig { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); }
.figures .fig:first-child { margin-top: 0; }
.figures h2 { font: 400 26px/1.2 var(--serif); margin: 0 0 8px; }
.figures .fignum { font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 8px; vertical-align: 3px; }
.figures .how { color: var(--muted); font-size: 14.5px; max-width: 700px; margin: 0 0 18px; }
.figures .caption { font-size: 15px; max-width: 700px; margin: 14px 0 0; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.figures .caption b { font-weight: 600; }
/* Fig 1 */
.figures .fig1 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 900px; }
.figures .col1 { all: unset; box-sizing: border-box; min-width: 0; cursor: pointer; display: flex; flex-direction: column; padding: 8px 2px 10px; border: 1px solid transparent; border-radius: 3px; text-align: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.figures .col1:hover { background: var(--paper-2); }
.figures .col1[aria-checked="true"] { background: var(--card); border-color: var(--ink); }
.figures .col1:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.figures .track { position: relative; height: 200px; }
.figures .plot { position: absolute; inset: 24px 14% 0 14%; border-bottom: 1px solid var(--ink); }
.figures .bar { position: absolute; left: 0; right: 0; bottom: 0; background: var(--green); transition: height var(--dur) var(--ease); }
.figures .val { position: absolute; left: -12px; right: -12px; text-align: center; font: 500 13px var(--mono); transition: bottom var(--dur) var(--ease); padding-bottom: 3px; }
.figures .rlabel { font: 600 13px var(--mono); margin-top: 8px; }
/* Fig 2 */
.figures .fig2 { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); max-width: 900px; padding-top: 22px; }
.figures .hplot { position: relative; height: 210px; border-bottom: 1px solid var(--ink); }
.figures .hbar { position: absolute; left: 14%; right: 14%; bottom: 0; transition: height var(--dur) var(--ease); }
.figures .hbar.in { background: var(--green); } .figures .hbar.out { background: var(--rust); }
.figures .hval { position: absolute; left: -6px; right: -6px; text-align: center; font: 400 10.5px var(--mono); transition: bottom var(--dur) var(--ease); padding-bottom: 2px; color: var(--ink-2); overflow: hidden; }
.figures .hrank { text-align: center; font: 400 11.5px var(--mono); margin-top: 6px; color: var(--muted); }
.figures .cut { position: absolute; top: 0; bottom: 22px; border-left: 1.5px dashed var(--ink); pointer-events: none; }
.figures .cut span { position: absolute; top: 0; font: 400 11px var(--mono); white-space: nowrap; }
.figures .cut .l { right: 6px; color: var(--green); } .figures .cut .r { left: 6px; color: var(--rust); }
/* Fig 3 */
.figures .fig3 { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 36px; align-items: start; }
.figures .squares { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.figures .sq { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 1; border: 2px solid transparent; border-radius: 2px; background: var(--c); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur); }
.figures .sq.out { background: transparent; border-color: color-mix(in srgb, var(--c) 55%, var(--ink)); }
.figures .sq[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.figures .sq:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.figures .legend { margin-top: 14px; }
.figures .legend .sw { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.figures .legend .sw i { height: 10px; background: var(--c); }
.figures .legend .ticks { display: grid; grid-template-columns: repeat(8, 1fr); font: 400 10px var(--mono); color: var(--muted); text-align: center; margin-top: 3px; }
.figures .legend .ends { font: 400 11px/1.4 var(--mono); color: var(--muted); margin: 6px 0 0; }
.figures .season-panel { border-left: 1px solid var(--line); padding-left: 26px; min-width: 0; }
.figures .sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.figures .sp-head .t { font: 400 22px var(--serif); }
.figures .btns button { border: 1px solid var(--ink); background: var(--card); padding: 4px 12px; border-radius: 3px; font-size: 14px; }
.figures .btns button:hover { background: var(--paper-2); }
.figures .btns button:disabled { opacity: .4; cursor: default; }
.figures .sp-note { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.figures .stand { width: 100%; border-collapse: collapse; font-size: 14px; }
.figures .stand th { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; padding: 2px 6px; border-bottom: 1px solid var(--ink); }
.figures .stand td { padding: 2px 6px; border-top: 1px solid var(--line-soft); }
.figures .stand td:first-child { font: 12px var(--mono); width: 2.2em; color: var(--muted); }
.figures .stand .r { text-align: right; font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.figures .stand tr.ww td { background: var(--green-soft); color: var(--green); font-weight: 600; }
.figures .stand tr.cutrow td { border-top: 1.5px dashed var(--ink); }
@media (max-width: 860px) { .figures .fig3 { grid-template-columns: 1fr; gap: 24px; } .figures .season-panel { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; } }
@media (max-width: 719px) { .figures .val { left: -6px; right: -6px; font-size: 11.5px; } .figures .plot { inset: 24px 8% 0 8%; } .figures .hval { font-size: 9.5px; } .figures .track { height: 170px; } }
/* Sources */
.sources { max-width: 720px; margin: 24px 0 32px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.sources h2 { font: 400 26px/1.2 var(--serif); margin: 0 0 8px; }
.sources p { margin: 0 0 10px; }
