:root {
    --ink: #333;
    --muted: #5e5e5e;
    --paper: #fff;
    --panel: #fff;
    --line: #ddd;
    --teal: #2f80ed;
    --teal-dark: #2f80ed;
    --amber: #f0b429;
    --coral: #d93025;
    --mint: #eef5ff;
    --shadow: none;
    --radius: 8px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family:
        "Google Sans",
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.55;
}

body::selection {
    color: #fff;
    background: var(--teal);
}

main {
    display: flex;
    flex-direction: column;
}

.demo-section {
    order: 3;
}

.leaderboard-section {
    order: 8;
}

.intro-section {
    order: 5;
}

.task-overview-section {
    order: 6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    left: auto;
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 8px 24px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #eee;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(10px);
    transform: none;
}

.brand {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 700;
}

.brand-mark {
    display: none;
    width: 0;
    height: 0;
    color: inherit;
    background: transparent;
    border-radius: 0;
    font-size: 0.76rem;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 8px;
    border-radius: 0;
    color: #444;
    font-size: 0.88rem;
    white-space: nowrap;
    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--teal);
    background: transparent;
}

.hero {
    order: 1;
    position: relative;
    display: grid;
    min-height: auto;
    align-content: center;
    justify-items: center;
    padding: 42px max(24px, calc((100vw - var(--max-width)) / 2)) 30px;
    color: var(--ink);
    overflow: visible;
    background: #fff;
}

.hero::after {
    content: none;
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(0deg, var(--paper) 0%, rgba(247, 244, 237, 0) 100%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    padding-bottom: 0;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--teal);
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    margin: 0 auto;
    max-width: 1180px;
    font-size: clamp(2rem, 3.5vw, 3.35rem);
    line-height: 1.14;
    letter-spacing: 0;
}

.hero-title-line {
    display: block;
}

@media (min-width: 981px) {
    .hero-title-line {
        white-space: nowrap;
    }
}

.hero-subtitle {
    max-width: 860px;
    margin: 18px auto 0;
    color: #555;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.hero-actions {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 18px;
    font-size: 0.92rem;
    font-weight: 760;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: none;
}

.button-placeholder {
    cursor: not-allowed;
}

.button-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-icon-huggingface {
    width: 22px;
    height: 20px;
    flex-basis: 22px;
}

.button-icon-fill {
    fill: currentColor;
    stroke: none;
}

.button-primary,
.button-secondary,
.button-ghost {
    color: #fff;
    background: #333;
    border-color: #333;
    box-shadow: none;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover,
.button-primary:focus-visible,
.button-secondary:focus-visible,
.button-ghost:focus-visible {
    background: #111;
    border-color: #111;
}

.hero-metrics {
    display: none;
}

.hero-metrics div {
    display: grid;
    gap: 2px;
    min-height: 92px;
    align-content: center;
    padding: 18px;
    background: rgba(13, 36, 35, 0.46);
}

.hero-metrics strong {
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1;
}

.hero-metrics span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.86rem;
}

.section {
    width: min(calc(100% - 48px), 1040px);
    margin: 0 auto;
    padding: 58px 0;
}

.section-heading {
    display: grid;
    gap: 8px;
    max-width: none;
    margin-bottom: 26px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2.6vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.section-heading p + h2 {
    margin-top: 0;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.abstract-card,
.analysis-grid article,
.resource-grid a,
.faq-list details,
.citation-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: none;
}

.analysis-grid article,
.resource-grid a {
    min-height: 190px;
    padding: 24px;
}

.abstract-card {
    padding: 28px;
}

.abstract-card p {
    max-width: 980px;
    margin: 0;
    color: #40504d;
    font-size: 1.02rem;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.snapshot-card {
    display: grid;
    min-height: 82px;
    align-content: center;
    gap: 3px;
    border: 1px solid var(--line);
    border-top: 3px solid #6f7785;
    border-radius: var(--radius);
    padding: 11px 13px;
    background: #fff;
}

.snapshot-card strong {
    color: #18253b;
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    line-height: 0.95;
}

.snapshot-card span {
    color: #25344e;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.25;
}

.snapshot-card-primary {
    border-top-color: #173f79;
    background: #f4f7fc;
}

.snapshot-card-word {
    border-top-color: #2f6edb;
}

.snapshot-card-ppt {
    border-top-color: #bd431a;
}

.snapshot-card-excel {
    border-top-color: #198844;
}

.snapshot-card-pdf {
    border-top-color: #ad6800;
}

.snapshot-card-multifile {
    border-top-color: #7459c8;
}

.task-overview-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.task-overview-section > .section-heading {
    margin-bottom: 16px;
}

.task-overview-section > .section-heading h2 {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
}

.task-overview-block {
    margin-top: 34px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.subsection-heading {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    text-align: center;
}

.subsection-heading .eyebrow {
    margin-bottom: 0;
    font-size: 0.78rem;
}

.subsection-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    line-height: 1.2;
}

.anatomy-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.anatomy-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
}

.anatomy-item {
    min-height: 152px;
    padding: 17px;
    background: #fff;
}

.anatomy-item span {
    display: inline-flex;
    margin-bottom: 11px;
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.anatomy-item h3 {
    margin: 0;
    color: #18253b;
    font-size: 0.92rem;
    line-height: 1.25;
}

.anatomy-item p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.anatomy-note {
    margin: 1px 0 0;
    padding: 13px 18px;
    color: #40504d;
    background: #f4f7fc;
    font-size: 0.8rem;
    text-align: center;
}

.analysis-grid h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.25;
}

.analysis-grid p,
.faq-list p,
.table-note {
    margin: 0;
    color: var(--muted);
}

.pipeline-section {
    order: 7;
    width: min(calc(100% - 48px), 1040px);
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    background: #fff;
    color: var(--ink);
}

.pipeline-section .section-heading h2 {
    color: var(--ink);
}

.pipeline-section .eyebrow {
    color: var(--teal);
}

.paper-figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.paper-figure > a:first-child {
    display: block;
    overflow-x: auto;
    border-radius: 8px;
    background: #fff;
    scrollbar-color: #aab3c2 #eef1f5;
    scrollbar-width: thin;
}

.paper-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.paper-figure figcaption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 6px 4px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.paper-figure figcaption a {
    flex: 0 0 auto;
    color: var(--teal);
    font-weight: 750;
    white-space: nowrap;
}

.figure-lightbox {
    width: min(96vw, 1600px);
    max-width: none;
    max-height: 94vh;
    overflow: visible;
    border: 0;
    border-radius: 12px;
    padding: 0;
    background: transparent;
}

.figure-lightbox::backdrop {
    background: rgba(10, 18, 29, 0.82);
    backdrop-filter: blur(4px);
}

.figure-lightbox-frame {
    position: relative;
    display: grid;
    max-height: 94vh;
    place-items: center;
    overflow: auto;
    border-radius: 12px;
    padding: 54px 18px 18px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.figure-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(94vh - 78px);
    object-fit: contain;
}

.figure-lightbox-close {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: #18253b;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.figure-lightbox-close:hover,
.figure-lightbox-close:focus-visible {
    color: #fff;
    background: #18253b;
    border-color: #18253b;
}

.figure-lightbox-close span {
    font-size: 1.2rem;
    line-height: 1;
}

.pipeline-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.pipeline-highlights article {
    min-height: 172px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    background: #fff;
}

.pipeline-highlights span {
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pipeline-highlights strong {
    display: block;
    color: #18253b;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.2;
}

.pipeline-highlights p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.distribution-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
    gap: 12px;
    align-items: stretch;
}

.distribution-summary {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    background: #fff;
}

.distribution-summary .eyebrow {
    margin-bottom: 6px;
    font-size: 0.7rem;
}

.distribution-summary h3 {
    margin: 0;
    color: #18253b;
    font-size: 1.08rem;
    line-height: 1.25;
}

.distribution-summary > p:not(.eyebrow) {
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 0.8rem;
}

.distribution-list {
    display: grid;
    flex: 1;
    grid-template-rows: repeat(7, minmax(38px, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.distribution-list li {
    --domain-color: #7da4df;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #eceff3;
    color: #344054;
    font-size: 0.78rem;
}

.distribution-list li::before {
    width: 10px;
    height: 10px;
    background: var(--domain-color);
    border-radius: 3px;
    content: "";
}

.distribution-list li:nth-child(2) {
    --domain-color: #f18800;
}

.distribution-list li:nth-child(3) {
    --domain-color: #2ba65a;
}

.distribution-list li:nth-child(4) {
    --domain-color: #7859c5;
}

.distribution-list li:nth-child(5) {
    --domain-color: #ed4652;
}

.distribution-list li:nth-child(6) {
    --domain-color: #edb700;
}

.distribution-list li:nth-child(7) {
    --domain-color: #929044;
}

.distribution-list strong {
    color: #18253b;
}

.distribution-block .paper-figure {
    padding: 8px;
}

.distribution-figure > a:first-child {
    display: grid;
    place-items: center;
}

.distribution-figure img {
    max-width: 390px;
}

.distribution-block .paper-figure figcaption {
    gap: 12px;
    padding: 10px 4px 2px;
    font-size: 0.76rem;
}

.tag,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--teal-dark);
    background: var(--mint);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 820;
}

.tag {
    margin-bottom: 16px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: none;
}

table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 18px;
    border-bottom: 1px solid #ece8dd;
    font-size: 0.92rem;
    text-align: left;
    vertical-align: middle;
}

thead th {
    color: #33413f;
    background: #fbfaf6;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fcf8ef;
}

.leaderboard-heading {
    max-width: none;
    display: block;
    text-align: center;
}

.leaderboard-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.scope-button,
.toolbar-button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 760;
    cursor: pointer;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.scope-button.active,
.scope-button:hover,
.scope-button:focus-visible,
.toolbar-button:hover,
.toolbar-button:focus-visible {
    color: #fff;
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.leaderboard-toolbar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    margin: -6px 0 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.58);
}

.toolbar-button {
    align-self: end;
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.metric-field {
    grid-column: 1 / span 3;
}

.search-field {
    grid-column: 4 / span 3;
}

.app-field {
    grid-column: 7 / span 2;
}

.type-field {
    grid-column: 9 / span 2;
}

.max-field {
    grid-column: 11 / span 2;
}

.scope-field {
    grid-column: 1 / span 4;
}

.sort-field {
    grid-column: 7 / span 3;
}

#clearLeaderboardFilters {
    grid-column: 10 / span 3;
}

.filter-field {
    display: grid;
    gap: 8px;
    margin: 0;
    min-width: 0;
    border: 0;
    padding: 0;
}

.filter-field span,
.filter-field legend {
    color: #3a4745;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.filter-field input[type="search"],
.filter-field select {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
}

.checkbox-field {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.checkbox-field legend {
    width: 100%;
}

.checkbox-field label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.metric-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.metric-button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    min-width: 0;
    padding: 0 8px;
    color: var(--muted);
    background: #fff;
    font-size: 0.84rem;
    font-weight: 820;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.metric-button.active,
.metric-button:hover,
.metric-button:focus-visible {
    color: #fff;
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.advanced-filter-panel {
    margin: -6px 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.5);
}

.advanced-filter-panel summary {
    padding: 12px 14px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 820;
    cursor: pointer;
}

.advanced-filter-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 14px 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.leaderboard-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.leaderboard-summary article {
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: none;
}

.leaderboard-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 760;
    text-transform: uppercase;
}

.leaderboard-summary strong {
    display: block;
    margin-top: 8px;
    color: var(--teal-dark);
    font-size: 1.45rem;
    line-height: 1;
}

.leaderboard-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.leaderboard-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.setting-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.setting-a11y,
.setting-a11y.setting-tag {
    background: #e0f2ec;
    color: #1d6b52;
}

.setting-code,
.setting-code.setting-tag {
    background: #e7effc;
    color: #235b9f;
}

.setting-multi,
.setting-multi.setting-tag {
    background: #fff0d4;
    color: #8c5b0e;
}

.setting-trace,
.setting-trace.setting-tag {
    background: #f1e8fa;
    color: #62407d;
}

.leaderboard-wrap {
    box-shadow: none;
}

.leaderboard-table {
    min-width: 1120px;
}

.leaderboard-results-toolbar .metric-field,
.leaderboard-results-toolbar .sort-field,
.leaderboard-results-toolbar .clear-field {
    grid-column: span 4;
}

.leaderboard-results-toolbar .filter-field {
    grid-template-rows: 18px 42px;
    gap: 8px;
}

.leaderboard-results-toolbar .metric-switch,
.leaderboard-results-toolbar select,
.leaderboard-results-toolbar .toolbar-button {
    height: 42px;
}

.leaderboard-results-toolbar .clear-field #clearLeaderboardFilters {
    grid-column: auto;
    align-self: stretch;
}

.toolbar-label-spacer {
    visibility: hidden;
}

.leaderboard-results-table {
    min-width: 900px;
}

.leaderboard-results-table th:nth-child(1) {
    width: 8%;
    text-align: center;
}

.leaderboard-results-table th:nth-child(2) {
    width: 27%;
}

.leaderboard-results-table th:nth-child(n + 3),
.leaderboard-results-table td:nth-child(n + 3) {
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.leaderboard-results-table th:nth-child(3),
.leaderboard-results-table td:nth-child(3) {
    width: 18%;
}

.leaderboard-results-table th:nth-child(4),
.leaderboard-results-table td:nth-child(4) {
    width: 23%;
}

.leaderboard-results-table th:nth-child(5),
.leaderboard-results-table td:nth-child(5) {
    width: 24%;
}

.leaderboard-results-table thead th:nth-child(n + 3) .sort-head {
    justify-content: center;
    text-align: center;
}

.leaderboard-results-table thead th:last-child .sort-head {
    white-space: nowrap;
}

.leaderboard-results-table .model-cell {
    min-width: 220px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.leaderboard-table td:nth-child(1),
.leaderboard-table td:nth-child(n + 4) {
    font-variant-numeric: tabular-nums;
}

.sort-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 850;
    text-align: left;
    text-transform: inherit;
    cursor: pointer;
}

.sort-head::after {
    content: "";
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.35;
}

.sort-head[data-direction="desc"]::after {
    border-top: 6px solid currentColor;
    opacity: 1;
}

.sort-head[data-direction="asc"]::after {
    border-bottom: 6px solid currentColor;
    opacity: 1;
}

.rank-cell {
    text-align: center;
    font-weight: 850;
}

.first-rank-row th,
.first-rank-row td {
    background: #fff8e7;
}

.first-rank-star {
    display: inline-block;
    margin-left: 5px;
    color: var(--amber);
    font-weight: 950;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.22);
    }

    100% {
        transform: scale(1);
    }
}

.model-cell {
    min-width: 250px;
}

.model-cell strong,
.model-cell span {
    display: block;
}

.model-cell span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 520;
}

.model-date {
    display: block;
    margin-top: 4px;
    color: #8a8a8a;
    font-size: 0.84rem;
    font-weight: 520;
    line-height: 1.35;
}

.detail-toggle {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--teal-dark);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 780;
    cursor: pointer;
}

.score-cell strong {
    color: var(--teal-dark);
    font-size: 1.06rem;
}

.primary-metric-cell {
    color: var(--teal-dark);
    background: #effaf7;
    font-weight: 850;
}

.setting-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.setting-tag {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 0.72rem;
    font-weight: 820;
}

.setting-muted {
    color: var(--muted);
    background: #efebe1;
}

.leaderboard-detail-row td {
    padding: 0;
    background: #fbfaf6;
}

.leaderboard-detail {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    padding: 22px;
    border-top: 1px solid #ece8dd;
}

.leaderboard-detail h3 {
    margin: 0 0 14px;
    font-size: 0.95rem;
}

.domain-breakdown {
    display: grid;
    gap: 10px;
}

.domain-row {
    display: grid;
    grid-template-columns: 120px minmax(140px, 1fr) 54px;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.86rem;
}

.domain-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece7db;
}

.domain-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--amber));
}

.domain-row b {
    color: var(--ink);
    text-align: right;
}

.detail-meta {
    color: var(--muted);
}

.detail-meta p {
    margin: 0 0 8px;
}

.empty-row td {
    padding: 34px;
    color: var(--muted);
    text-align: center;
}

.table-note {
    margin-top: 14px;
    font-size: 0.92rem;
}

.protocol-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 28px;
    color: #fff;
    background: var(--coral);
    border-radius: 50%;
    font-weight: 850;
}

.analysis-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.resource-grid a {
    display: grid;
    align-content: space-between;
    min-height: 150px;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.resource-grid a:hover,
.resource-grid a:focus-visible {
    border-color: #bbb;
    box-shadow: none;
    transform: none;
}

.resource-grid span {
    color: var(--muted);
    font-size: 0.86rem;
}

.resource-grid strong {
    font-size: 1.22rem;
    line-height: 1.18;
}

.submission-grid,
.team-grid,
.sample-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.submission-grid article,
.team-grid article,
.sample-task-grid article,
.download-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.submission-grid article,
.team-grid article,
.sample-task-grid article {
    padding: 22px;
}

.submission-grid h3,
.team-grid strong,
.sample-task-grid h3,
.download-panel h3 {
    margin: 0 0 10px;
}

.submission-grid p,
.sample-task-grid p,
.download-panel p,
.acknowledgement {
    margin: 0;
    color: var(--muted);
}

.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
    padding: 22px;
}

.download-panel pre {
    background: #102522;
}

.sample-task-grid {
    margin-top: 16px;
}

.sample-task-grid p + p {
    margin-top: 8px;
}

.submission-grid .protocol-number {
    margin-bottom: 22px;
}

.team-grid article {
    display: grid;
    min-height: 140px;
    align-content: space-between;
}

.team-grid span {
    color: var(--muted);
    font-size: 0.86rem;
}

.team-grid strong {
    font-size: 1.15rem;
    line-height: 1.2;
}

.acknowledgement {
    max-width: 860px;
    margin-top: 18px;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.faq-list details {
    padding: 20px 22px;
}

.faq-list summary {
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.faq-list p {
    margin-top: 12px;
}

.citation-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 20px;
}

pre {
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    color: #f4f3eb;
    background: #102522;
    border-radius: var(--radius);
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.copy-button {
    min-width: 140px;
}

.site-footer {
    display: flex;
    width: min(calc(100% - 48px), var(--max-width));
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 34px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--ink);
    font-weight: 760;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
        border-radius: 24px;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
        background: #fff;
    }

    .hero-metrics,
    .analysis-grid,
    .download-panel,
    .submission-grid,
    .team-grid,
    .sample-task-grid,
    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .snapshot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .anatomy-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .distribution-layout {
        grid-template-columns: 1fr;
    }

    .leaderboard-heading {
        grid-template-columns: 1fr;
    }

    .leaderboard-tabs {
        justify-content: flex-start;
    }

    .leaderboard-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leaderboard-results-toolbar .metric-field {
        grid-column: 1 / -1;
    }

    .leaderboard-results-toolbar .sort-field,
    .leaderboard-results-toolbar .clear-field {
        grid-column: span 1;
    }

    .metric-field,
    .search-field {
        grid-column: 1 / -1;
    }

    .checkbox-field,
    .scope-field,
    .compact-field,
    #clearLeaderboardFilters {
        grid-column: span 1;
    }

    .leaderboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leaderboard-detail {
        grid-template-columns: 1fr;
    }

    .citation-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        top: 10px;
        width: min(calc(100% - 20px), var(--max-width));
        gap: 8px;
        padding: 10px;
    }

    .brand {
        font-size: 0.88rem;
    }

    .site-nav a {
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .hero {
        min-height: 0;
        padding: 44px 20px 28px;
        background: #fff;
    }

    h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .hero-copy {
        padding-bottom: 0;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hero-metrics,
    .analysis-grid,
    .leaderboard-toolbar,
    .leaderboard-summary,
    .download-panel,
    .submission-grid,
    .team-grid,
    .sample-task-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .snapshot-card-primary {
        grid-column: 1 / -1;
    }

    .anatomy-grid {
        grid-template-columns: 1fr;
    }

    .snapshot-card,
    .anatomy-item {
        min-height: 0;
    }

    .pipeline-highlights {
        grid-template-columns: 1fr;
    }

    .paper-figure {
        padding: 8px;
    }

    .paper-figure > a:first-child {
        touch-action: pan-x;
    }

    .demo-figure img {
        width: 900px;
        max-width: none;
    }

    .pipeline-figure img {
        width: 760px;
        max-width: none;
    }

    .distribution-figure img {
        width: 600px;
        max-width: none;
    }

    .paper-figure figcaption {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 12px 4px 4px;
    }

    .paper-figure figcaption a {
        white-space: normal;
    }

    .hero-metrics div {
        min-height: 78px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .section,
    .site-footer {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .section {
        padding: 58px 0;
    }

    .pipeline-section,
    .analysis-section {
        padding-right: 16px;
        padding-left: 16px;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading h2 {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
    }

    .analysis-grid article,
    .submission-grid article,
    .team-grid article,
    .sample-task-grid article,
    .resource-grid a {
        min-height: 0;
        padding: 20px;
    }

    .metric-switch {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metric-field,
    .search-field,
    .checkbox-field,
    .scope-field,
    .compact-field,
    #clearLeaderboardFilters {
        grid-column: 1 / -1;
    }

    .checkbox-field {
        gap: 8px;
    }

    .domain-row {
        grid-template-columns: 1fr 54px;
    }

    .domain-row span {
        grid-column: 1 / -1;
    }

    th,
    td {
        padding: 14px;
    }

    .leaderboard-results-toolbar .metric-field,
    .leaderboard-results-toolbar .sort-field,
    .leaderboard-results-toolbar .clear-field {
        grid-column: 1 / -1;
    }
}
