.res-page .doc__main, .res-section { min-width: 0; }
.res-section > h2, .res-section > hr, .res-section > figure, .res-section > details, .res-section > div, .res-section > pre { grid-column: 1 / -1; min-width: 0; }
.res-section > .doc-p { max-width: 65ch; overflow-wrap: anywhere; }
.res-figure { margin: 2rem 0; }
.res-figure figcaption { max-width: 66ch; margin-bottom: 1rem; }
.res-stamp { font: 500 .78rem/1.4 var(--mono); color: var(--ink-80); }
.res-figure h3 { margin: .45rem 0 .65rem; font-size: var(--h3-size); line-height: 1.12; font-weight: 450; }
.res-figure p, .res-section details, .res-section pre { line-height: 1.55; }
.res-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; margin: 1rem 0; }
.res-scroll table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; font-size: .92rem; }
.res-scroll caption { text-align: left; font-weight: 500; margin-bottom: .5rem; color: var(--ink-80); }
.res-table-same { grid-column: 1 / -1; max-width: 90ch; margin: -.25rem 0 1rem; font-size: var(--body-small-size); line-height: var(--body-small-lh); color: var(--ink-80); }
.res-scroll th, .res-scroll td { padding: .65rem .8rem; border-bottom: var(--stroke-hair) solid var(--ink-16); }
.res-scroll thead th { border-block: var(--stroke-hair) solid var(--ink); vertical-align: bottom; }
.res-scroll tbody th { font-weight: 500; }
.res-scroll td { white-space: nowrap; }
.res-section details { padding: .8rem 0; border-bottom: var(--stroke-hair) solid var(--ink-16); }
.res-section summary, .res-section button { cursor: pointer; }
.res-scroll[data-overflow]::before { content: "Scroll for all columns"; display: block; font-size: .78rem; color: var(--ink-80); margin-bottom: .5rem; }
.res-interval { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(9rem, 2fr) minmax(8rem, auto); align-items: center; column-gap: 1rem; padding: .42rem 0; border-bottom: var(--stroke-hair) solid var(--ink-16); font-variant-numeric: tabular-nums; }
.res-interval svg { width: 100%; height: 1.25rem; overflow: visible; }
.res-interval .zero { stroke: var(--ink-40); stroke-dasharray: 2 2; }
.res-interval .ci { stroke: var(--ink); stroke-width: 2; }
.res-interval circle { fill: var(--orange); }
.res-axis { color: var(--ink-80); font-size: .8rem; }
.res-ticks { display: flex; justify-content: space-between; }
.res-intervals { margin-bottom: 1.4rem; }
.res-pair { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.dp-totals { margin: 1.5rem 0; }
.dp-totals > div { border-top: var(--stroke-hair) solid var(--ink); padding-top: 1rem; }
.dp-totals h3 { font-size: var(--lede-size); font-weight: 500; margin-bottom: 1rem; }
.dp-totals .bench-card__fig { margin-bottom: .65rem; }
.dp-totals .res-sub { margin-top: .35rem; }
.res-pair h4 { margin: 1rem 0; }
.res-pair .res-interval { grid-template-columns: 1fr 1fr; }
.res-pair .res-interval svg, .res-pair .res-ticks { grid-column: 1 / -1; grid-row: 2; }
.res-pair .res-interval > :last-child { text-align: right; }
@media (max-width: 680px) {
  .res-interval { grid-template-columns: 1fr auto; }
  .res-interval svg, .res-ticks { grid-column: 1 / -1; grid-row: 2; }
}
[data-art] th[aria-sort="ascending"]::after { content: " ↑"; }
[data-art] th[aria-sort="descending"]::after { content: " ↓"; }
.res-score, .res-rowname { font-size: 1.05rem; font-weight: 500; }
.res-rowname { display: flex; align-items: baseline; gap: .4rem; }
.res-rowname .dev-mark { width: 1em; height: 1em; flex-shrink: 0; align-self: center; }
.res-sub, .res-ci { display: block; font-size: .82rem; color: var(--ink-80); }
.res-ci { white-space: nowrap; }
.res-scroll th small { font-weight: 400; }
.res-callout { display: block; margin-block: 2rem; max-width: 46rem; }
.res-callout li { display: grid; grid-template-columns: minmax(7rem, 1fr) 3fr; gap: 1.25rem; padding-block: 1rem; border-bottom: var(--stroke-hair) solid var(--ink-16); }
.res-callout strong { font-weight: 600; }
.res-section .bench-card__set { white-space: normal; }
.bench-card__reported, .bench-card__quote { margin-top: .6rem; font-size: .875rem; line-height: 1.5; }
.bench-card__quote { color: var(--ink-80); }
.res-related-copy { grid-column: 1 / 4; }
@media (min-width: 1200px) {
  .res-part.has-cited { grid-template-rows: auto 1fr; align-items: start; }
  .res-part.has-cited > .bench-cited { position: static; grid-column: 4; grid-row: 1 / span 2; width: auto; }
}
.res-section .bench-card__src, .res-section a { text-decoration: underline; text-underline-offset: .2em; }
.res-section pre { padding: 1rem; border: var(--stroke-hair) solid var(--ink-16); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.res-page [hidden] { display: none; }
.res-note { max-width: 65ch; margin: 1.25rem 0; padding: .3rem 1rem .1rem; border: var(--stroke-hair) solid var(--ink-16); }
.res-note h4 { margin: .4rem 0 .5rem; font-weight: 600; }

.dm-example, .res-entry-example { grid-column: 1 / -1; margin: 1.5rem 0 2rem; padding: 1.25rem 1.4rem; border: var(--stroke-hair) solid var(--ink-16); background: transparent; max-width: 72rem; }
.dm-example .label, .res-entry-example .label { font: 500 .74rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-80); margin: 0 0 .5rem; }
.dm-budget, .dm-drafts { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1rem 0; }
.dm-budget ul { margin: 0; padding-left: 1.1rem; line-height: 1.5; }
.dm-budget__col { border-top: 3px solid var(--ink-16); padding-top: .6rem; }
.dm-budget__col[data-kind="required"] { border-top-color: var(--ink); }
.dm-budget__col[data-kind="off"] { border-top-color: var(--orange); }
.dm-fact-field { max-width: 37rem; margin: 1.5rem 0; }
.dm-fact-field > [aria-hidden="true"] { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 3px; }
.dm-fact-field i { aspect-ratio: 1; border: var(--stroke-hair) solid var(--ink-16); }
.dm-fact-field [data-kind="required"] { background: var(--ink); border-color: var(--ink); }
.dm-fact-field [data-kind="allowed"] { background: repeating-linear-gradient(45deg, transparent 0 2px, var(--ink-80) 2px 3px); border-color: var(--ink-80); }
.dm-fact-field figcaption, .dm-grid-help { margin: .65rem 0; font-size: .9rem; line-height: 1.45; }
.dm-grid td[data-dm-outcome] { white-space: normal; min-width: 7rem; }
.dm-grid td[data-dm-outcome]:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.dm-grid th[scope="rowgroup"] { background: var(--ink-5); font-weight: 600; }
.dm-grid tbody th[scope="row"] { position: sticky; left: 0; background: var(--bg); }
.dm-related { grid-column: 1 / -1; line-height: 1.5; padding-left: 1.25rem; }
.dm-related li { margin: .45rem 0; }
@media (max-width: 560px) { .dm-fact-field > [aria-hidden="true"] { grid-template-columns: repeat(20, minmax(0, 1fr)); } }
.dm-draft { border-top: 3px solid var(--ink-16); padding-top: .6rem; }
.dm-draft[data-tone="good"] { border-top-color: var(--ink); }
.dm-draft[data-tone="harm"] { border-top-color: var(--orange); }
.dm-draft blockquote, .res-entry-example blockquote { margin: .4rem 0 .6rem; font-size: .95rem; line-height: 1.55; }
.dm-extra { background: color-mix(in srgb, var(--orange) 22%, transparent); color: inherit; padding: 0 .1em; }
.dm-tiles { grid-column: 1 / -1; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.dm-tiles li { border-top: 3px solid var(--ink-16); padding-top: .6rem; line-height: 1.45; }
.dm-tiles li[data-tone="harm"] { border-top-color: var(--orange); }
.dm-tiles li[data-tone="good"] { border-top-color: var(--ink); }
.dm-tiles b { display: block; font-size: 2rem; font-weight: 400; line-height: 1.1; }
.dm-kinds, .dm-checks { grid-column: 1 / -1; display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1.25rem 0; }
.dm-kinds dt, .dm-checks dt { font-weight: 500; margin-bottom: .3rem; }
.dm-kinds dd, .dm-checks dd { margin: 0; line-height: 1.5; }
.dm-kinds > div, .dm-checks > div { border-top: var(--stroke-hair) solid var(--ink); padding-top: .6rem; }
.dm-bars { margin: 1rem 0; max-width: 48rem; }
.dm-bar { display: grid; grid-template-columns: 8rem 1fr 2.5rem; align-items: center; gap: .75rem; margin: .35rem 0; }
.dm-bar i { display: block; height: 1rem; width: var(--w); background: var(--ink-80); }
.dm-bar b { font-weight: 500; font-variant-numeric: tabular-nums; }
.res-entry-example h3 { margin: 0 0 .75rem; }
.res-entry-example__steps { margin: 0 0 .75rem; padding-left: 1.2rem; line-height: 1.55; }
.res-entry-example blockquote.mono { font-family: var(--mono); font-size: .85rem; overflow-wrap: anywhere; }

.res-chat { grid-column: 1 / -1; margin: 1.5rem 0 2rem; max-width: 46rem; }
.res-chat__head h3 { margin: 0 0 .25rem; }
.res-chat__head p { margin: 0; }
.res-chat__turns { list-style: none; margin: 1rem 0 .75rem; padding: 0; display: grid; gap: var(--space-12); }
.res-chat__turn { max-width: 88%; padding: var(--space-12) var(--space-16); overflow-wrap: anywhere; }
.res-chat__turn p { margin: 0 0 .5rem; }
.res-chat__turn p:last-child { margin-bottom: 0; }
.res-chat__turn[data-role="user"] { justify-self: end; background: var(--ink-5); }
.res-chat__turn[data-role="assistant"] { justify-self: start; border: var(--stroke-hair) solid var(--ink-16); }
.res-chat__turn[data-caved] { border: var(--stroke-rule) solid var(--orange); }
.res-chat__tag { margin-left: .5rem; padding: 0 .35rem; border: var(--stroke-hair) solid var(--ink); }
.res-chat__note { margin: 0; color: var(--ink-80); }
@media (max-width: 600px) { .res-chat__turn { max-width: none; } .res-chat__turn[data-role="user"] { margin-left: var(--space-24); } }

.ipi-model-report text { text-decoration: underline; text-underline-offset: .16em; }
.ipi-model-report { cursor: pointer; }
.ipi-model-report:hover text, .ipi-model-report:focus-visible text { fill: var(--orange); }
