/* ICM Web Paper only. Static text, native MathML, and original paper figures. */
@font-face {
  font-family: "ICM Paper Math";
  src: url("/icm-2026/paper/fonts/STIXTwoMath-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.icm-paper { width: min(40rem, calc(100vw - 2.5rem)); min-width: 0; margin-inline: auto; }
.icm-paper .post-title { font-size: clamp(1.65rem, 5vw, 2.15rem); line-height: 1.28; }
.icm-paper .paper-eyebrow,
.icm-paper .paper-team { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .035em; }
.icm-paper .paper-eyebrow { margin: 1.5rem 0 .8rem; }
.icm-paper .paper-team { margin: 1.2rem 0; }
.icm-paper .paper-edition-note { font-size: .88rem; color: var(--muted); line-height: 1.8; }
.icm-paper .paper-actions { margin: 1rem 0 0; font-size: .85rem; }
.icm-paper .paper-toc { margin: 2.5rem 0 3.5rem; padding: 1rem 0 1.25rem; border-block: 1px solid var(--hairline); }
.icm-paper .paper-toc .paper-eyebrow { margin: 0 0 .75rem; }
.icm-paper .paper-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.5rem; list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.icm-paper .paper-body { line-height: 1.85; }
.icm-paper .paper-body p { margin: 1rem 0; }
.icm-paper .paper-body h2 { font-size: 1.55rem; font-weight: 600; line-height: 1.4; margin: 3.5rem 0 1.3rem; }
.icm-paper .paper-body h3 { font-size: 1.18rem; font-weight: 600; line-height: 1.5; margin: 2.5rem 0 1rem; }
.icm-paper .paper-body h4 { font-size: 1rem; font-weight: 600; line-height: 1.6; margin: 2rem 0 .75rem; }
.icm-paper .paper-section-number { font-family: var(--mono); font-size: .8em; color: var(--muted); font-weight: 400; margin-right: .3em; }
.icm-paper .paper-body ul,
.icm-paper .paper-body ol { padding-left: 1.4rem; margin: 1rem 0; }
.icm-paper .paper-body li { margin: .5rem 0; }
.icm-paper .paper-body li > p:first-child { margin-top: 0; }
.icm-paper .paper-body li > p:last-child { margin-bottom: 0; }
.icm-paper .paper-figure { margin: 2rem 0 2.5rem; }
.icm-paper .paper-figure-link { display: block; border: 0; }
.icm-paper .paper-figure img { display: block; width: 100%; height: auto; background: white; }
.icm-paper figcaption { margin: .7rem 0 0; font-size: .8rem; line-height: 1.65; }
.icm-paper .paper-caption-number { color: var(--muted); font-family: var(--mono); font-size: .95em; }
.icm-paper .paper-table-scroll { max-width: 100%; overflow-x: auto; margin: 1.75rem 0; padding-bottom: .35rem; }
.icm-paper .paper-table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: .83rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.icm-paper .paper-table caption { text-align: left; padding: 0 0 .8rem; font-size: .8rem; line-height: 1.65; }
.icm-paper .paper-table th,
.icm-paper .paper-table td { border-bottom: 1px solid var(--hairline); padding: .6rem .65rem; vertical-align: top; text-align: left; }
.icm-paper .paper-table thead th { font-weight: 600; border-bottom-color: var(--muted); }
.icm-paper .paper-table tbody th { font-weight: 400; }
.icm-paper #table-3 { min-width: 48rem; }
.icm-paper #table-6,
.icm-paper #task-classification { min-width: 45rem; }
.icm-paper #table-8,
.icm-paper #table-9 { min-width: 38rem; }
.icm-paper .paper-table-note { font-size: .78rem; line-height: 1.7; color: var(--muted); }
.icm-paper .paper-equation { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; align-items: center; margin: 1.7rem 0; }
.icm-paper .paper-math-scroll { min-width: 0; max-width: 100%; overflow-x: auto; padding: .35rem 0 .5rem; }
.icm-paper .paper-math-scroll math { width: max-content; min-width: 100%; }
.icm-paper math { font-size: 1em; font-family: "ICM Paper Math", "Cambria Math", math; }
.icm-paper .paper-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icm-paper math[display="block"] { margin: 0; font-size: 1.05em; }
.icm-paper .paper-equation-number { font-family: var(--mono); font-size: .78rem; color: var(--muted); border: 0; white-space: nowrap; }
.icm-paper .paper-references { font-size: .85rem; line-height: 1.8; }
.icm-paper .paper-references a { overflow-wrap: anywhere; }
.icm-paper .paper-references li { margin: 1.1rem 0; }
.icm-paper :is(h2,h3,h4,figure,table,.paper-equation) { scroll-margin-top: 1.5rem; }
.icm-paper :is(a,.paper-table-scroll,.paper-math-scroll):focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.icm-paper .post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 500px) {
  .icm-paper .paper-toc ol { grid-template-columns: 1fr; }
  .icm-paper .paper-body h2 { font-size: 1.35rem; }
  .icm-paper .paper-body h3 { font-size: 1.1rem; }
  .icm-paper .paper-table { font-size: .85rem; }
}
@media print {
  .icm-paper .paper-toc,
  .icm-paper .paper-actions { display: none; }
  .icm-paper .paper-table-scroll,
  .icm-paper .paper-math-scroll { overflow: visible; }
}
