/* Research uses the site's existing type and palette; figures carry evidence. */
.research-main { width: min(1120px, calc(100% - 2 * var(--gutter))); margin: auto; padding: clamp(40px,7vw,88px) 0 96px; }
.research h1 { font-size: clamp(34px,5.2vw,64px); line-height: 1.06; letter-spacing: -.025em; font-weight: 600; margin: 20px 0 24px; max-width: 920px; color: var(--gold); }
.research h2 { font-size: clamp(25px,3vw,36px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; margin: 0 0 24px; }
.research h3 { font-size: 21px; font-weight: 500; margin: 0 0 16px; }
.research p { line-height: 1.7; max-width: 72ch; }
.research .lead { font-size: clamp(18px,2vw,22px); color: var(--muted); max-width: 66ch; }
.meta,.note,figcaption { color: var(--muted); font-size: 14px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.research a:not(.home):not(.button) { text-underline-offset: 5px; }
.research-main a { text-decoration: underline; text-decoration-color: var(--faint); }
.research-main a:hover { color: var(--gold); }
.research section { margin-top: 72px; scroll-margin-top: 24px; }
.research figure { margin: 24px 0; }
.research figcaption { margin-top: 14px; max-width: 80ch; }
.jump-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 28px; padding: 14px 0; border-block: 1px solid var(--line); }
.jump-links a,.back-link { display: inline-flex; align-items: center; min-height: 44px; }
.verdict { margin-top: 36px; padding: 8px 0 8px 24px; border-left: 3px solid var(--gold); }
.verdict p { margin: 8px 0; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 32px; }
.metric { min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.metric h3 { font-size: 17px; }
.bar-row { margin: 20px 0; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 9px; }
.bar-label strong { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.bar-track { height: 14px; background: var(--surface); }
.bar { display: block; height: 100%; background: var(--gold); }
.bar.pi { background: var(--muted); }
.bar.time-ctg { width: 74.83%; }.bar.cost-ctg { width: 68.10%; }.bar.tokens-ctg { width: 16.40%; }
.bar.full { width: 100%; }
.delta { font-size: 26px; margin-bottom: 0; letter-spacing: -.02em; }
.two-up { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.evidence-img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); }
.diagram { width: 100%; height: auto; display: block; background: var(--surface); border-radius: 8px; }
.diagram text { font-family: var(--sans); fill: var(--text); font-size: 16px; }
.diagram .quiet { fill: var(--muted); font-size: 14px; }
.diagram .gold { fill: var(--gold); }
.table-wrap { overflow-x: auto; max-width: 100%; }
.research table { width: 100%; border-collapse: collapse; font-size: 15px; }
.research th,.research td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.research th:first-child,.research td:first-child { padding-left: 0; }
.research th { color: var(--muted); font-weight: 500; }
.research caption { text-align: left; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.research td strong { font-weight: 600; }
.research details { border-block: 1px solid var(--line); margin: 24px 0; padding: 16px 0; }
.research summary { min-height: 44px; cursor: pointer; align-content: center; color: var(--text); }
.research pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.7 var(--mono); background: var(--surface); padding: 22px; }
.research li { margin: 12px 0; line-height: 1.65; }
/* Legal pages: lists read at the same measure as paragraphs; code is inline only. */
.legal ul,.legal ol { max-width: 72ch; padding-left: 22px; }
.legal code { font: 14px/1 var(--mono); color: var(--gold); }
.research .closing { border-top: 1px solid var(--line); padding-top: 32px; }
.post-list { margin-top: 56px; }
.post-link { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 32px 0; border-block: 1px solid var(--line); text-decoration: none !important; }
.post-link h2 { color: var(--text); margin: 20px 0; }
.post-link:hover h2 { color: var(--gold); }
.post-link img { width: 100%; height: auto; align-self: center; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 12px; }
@media(max-width:760px) { .metrics,.two-up,.post-link { grid-template-columns: 1fr; gap: 24px; } .research section { margin-top: 48px; } .metric { padding-top: 18px; } .post-link img { max-width: 480px; } }
@media print { .jump-links { display:none; } .research-main { width:100%;padding:0; } details { display:block; } }
