body[data-page="projects-shapley-pruning"] { --surface-l: 86%; --surface-c: .065; --surface-h: 295; }
body[data-page="projects-palmnet"] { --surface-l: 87%; --surface-c: .073; --surface-h: 57; }
.research-study { --study-fill: oklch(96% .015 var(--surface-h) / .5); --study-solid: oklch(39% .09 var(--surface-h)); }
[data-theme="evening"] .research-study { --study-fill: oklch(33% .035 var(--surface-h)); --study-solid: oklch(83% .09 var(--surface-h)); }
.research-study .research-figure { margin: 72px 0 84px; padding: clamp(24px, 4vw, 52px); background: var(--study-fill); }
.study-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
.study-heading h2 { font-size: clamp(25px, 3vw, 37px); line-height: 1.18; max-width: 22ch; }
.study-heading > p { font-size: 15px; max-width: 31ch; color: var(--muted); }
.pruning-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(26px, 6vw, 90px); align-items: center; }
.filter-bank { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.filter-unit { display: block; aspect-ratio: 1; border: 1px solid var(--study-solid); background: var(--study-solid); color: var(--paper); transition: opacity .18s ease-out, background .18s ease-out; }
.filter-unit svg { display: block; width: 100%; height: 100%; stroke: currentColor; stroke-width: 2.5; }
.filter-unit.is-pruned { background: transparent; opacity: .22; }
.filter-unit.is-pruned svg { visibility: hidden; }
.pruning-count { display: flex; align-items: baseline; gap: 13px; margin-bottom: 12px; }
.pruning-count output { font-size: clamp(48px, 6vw, 76px); line-height: 1; letter-spacing: -.065em; font-weight: 600; font-variant-numeric: tabular-nums; }
.pruning-count span { font-size: 14px; color: var(--muted); }
.method-label { font-size: 20px; font-weight: 700; margin-top: 20px; }
#method-description { margin-top: 12px; font-size: 16px; min-height: 6.6em; }
.pruning-control { margin-top: 34px; }
.pruning-control label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pruning-control output { font-variant-numeric: tabular-nums; }
.pruning-control input { width: 100%; min-height: 44px; margin: 8px 0 0; accent-color: var(--study-solid); cursor: pointer; }
.pruning-control input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.range-endpoints { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.research-study .research-figure figcaption { max-width: 80ch; margin-top: 30px; }
.auc-chart { margin: 42px 0; }
.auc-row { display: grid; grid-template-columns: 145px minmax(0, 1fr) 48px; align-items: center; gap: 20px; margin: 21px 0; font-size: 16px; }
.auc-row strong { font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.auc-track { height: 28px; background: var(--line); }
.auc-track i { display: block; width: var(--value); height: 100%; background: var(--muted); }
.auc-highlight .auc-track i { background: var(--study-solid); }
.auc-highlight { font-weight: 700; }
.auc-axis { display: flex; justify-content: space-between; margin: 0 68px 0 165px; color: var(--muted); font-size: 12px; }
.research-details { border-top: 1px solid var(--line); margin-top: 28px; }
.research-details summary { padding: 18px 0; cursor: pointer; font-size: 15px; font-weight: 600; }
.research-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.research-details p { font-size: 15px; line-height: 1.65; margin: 0 0 20px; }
.research-study .research-details p { font-size: 15px; }
.table-wrap { overflow-x: auto; }
.research-details table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; font-variant-numeric: tabular-nums; }
.research-details caption { text-align: left; color: var(--muted); margin-bottom: 12px; }
.research-details th, .research-details td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
.research-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.research-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; display: inline-flex; min-height: 44px; align-items: center; gap: 8px; }
.ring-study { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0 60px; align-items: center; }
.ring-drawing { width: min(100%, 320px); justify-self: center; }
.ring-drawing svg { width: 100%; display: block; }
.hand-outline { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.palm-lines { stroke: var(--muted); stroke-width: 1.5; }
.ring-focus { fill: oklch(64% .17 40 / .17); stroke: var(--study-solid); stroke-dasharray: 4 6; }
.ring-band { fill: var(--study-solid); stroke: var(--ink); stroke-width: 1; }
.ring-leader { stroke: var(--study-solid); stroke-width: 1; }
.ring-dot { fill: var(--study-solid); }
.study-kicker { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.ring-story h2 { font-size: clamp(31px, 3.8vw, 47px); line-height: 1.12; }
.ring-story > p:not(.study-kicker) { margin-top: 24px; font-size: 18px; }
.ring-story > .ring-note { font-size: 14px !important; color: var(--muted); }
.ring-study figcaption { grid-column: 1 / -1; }
.research-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; padding: 0; margin: 42px 0 0; list-style: none; }
.research-flow li { border-top: 1px solid var(--study-solid); padding-top: 20px; }
.research-flow h3 { font-size: 20px; margin-bottom: 14px; }
.research-flow p { font-size: 16px; }
.saliency-hero img, .saliency-secondary img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.saliency-hero .study-heading, .saliency-secondary .study-heading { margin-bottom: clamp(44px, 5vw, 68px); }
.saliency-hero .study-heading { align-items: end; }
.saliency-hero .study-heading > div { min-width: 0; }
.saliency-hero .study-heading .study-kicker { margin-bottom: 10px; }
.saliency-annotation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; margin-top: 28px; }
.saliency-annotation p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.palm-results { width: 100%; max-width: 100%; min-width: 0; margin: 28px 0; overflow-x: auto; }
.case-section > div { min-width: 0; }
.palm-results table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.palm-results caption { margin-bottom: 13px; color: var(--muted); text-align: left; }
.palm-results th, .palm-results td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.palm-results th { font-weight: 700; }
.palm-results td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 650px) {
  body[data-page="projects-shapley-pruning"] main > h1 { font-size: clamp(21px, 5.8vw, 29px); }
  .research-study .research-figure { padding: 24px 19px; margin: 42px 0 50px; }
  .study-heading { display: block; margin-bottom: 28px; }
  .study-heading > p { margin-top: 18px; max-width: none; }
  .pruning-layout { grid-template-columns: 1fr; gap: 28px; }
  .filter-bank { max-width: 340px; width: 100%; }
  .filter-unit { aspect-ratio: 1.25; }
  .filter-unit svg { max-height: 64px; }
  #method-description { min-height: 6.6em; }
  .auc-row { grid-template-columns: minmax(0, 1fr) 45px; gap: 7px; margin: 25px 0; }
  .auc-row > span { grid-column: 1 / -1; font-size: 14px; }
  .auc-track { height: 23px; }
  .auc-axis { margin: 0 52px 0 0; }
  .research-details table { font-size: 12px; }
  .ring-study { grid-template-columns: 1fr; gap: 25px; }
  .ring-drawing { width: min(100%, 250px); }
  .ring-story h2 { font-size: 33px; }
  .research-flow { grid-template-columns: 1fr; gap: 28px; }
  .saliency-annotation { grid-template-columns: 1fr; gap: 18px; }
  .saliency-hero img, .saliency-secondary img { width: calc(100% + 38px); max-width: none; margin-left: -19px; }
  .palm-results { overscroll-behavior-inline: contain; }
}
@media (prefers-reduced-motion: reduce) { .filter-unit { transition: none; } }
