/* slm-toolcall page layer: only what the shared kit does not cover.
   Colours come from the shared tokens; no new hues. */

.page-title {
    margin-bottom: var(--sp-4);
}

.verdict__more {
    max-width: 60ch;
    color: var(--ink-2);
}

/* Hero: the two dot fields beside a column of tiles */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: var(--sp-5);
    align-items: start;
}

.hero-grid__fields {
    display: grid;
    gap: var(--sp-2);
    min-width: 0;
}

.hero-grid__fields .figure__legend + .field-label {
    margin-top: var(--sp-4);
}

.field-label {
    color: var(--ink-2);
    font-size: var(--fs-small);
    font-weight: 500;
}

.tiles--stack {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 959.98px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tiles--stack {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    }
}

/* Leaderboard */
.table--lb th[scope="row"],
.table--lb td {
    white-space: nowrap;
}

.table--lb .model-name {
    font-weight: 500;
}

.cell-ci {
    display: block;
    color: var(--muted);
    font-size: var(--fs-caption);
    white-space: nowrap;
}

.tag {
    display: inline-block;
    margin-left: var(--sp-1);
    color: var(--muted);
    font-size: var(--fs-caption);
    font-weight: 400;
}

.table--lb tbody tr[data-key] {
    cursor: pointer;
}

.table tbody tr.is-hover > *,
.table tbody tr.is-pin > * {
    background: var(--raised);
}

.table tbody tr.is-pin > :first-child {
    box-shadow: inset 2px 0 0 var(--link);
}

.lb-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--sp-2) var(--sp-5);
    margin: 0;
}

.lb-detail div {
    min-width: 0;
}

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

.lb-detail dd {
    margin: 0;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* Source disclosure */
.src {
    margin: var(--sp-2) 0 0;
    padding-left: 1.1em;
    font-size: var(--fs-caption);
    overflow-wrap: anywhere;
}

.src li + li {
    margin-top: var(--sp-1);
}

.src__sha {
    color: var(--muted);
}

/* Rail: the appendix link sits after the numbered chapters */
.rail__item--out .rail__num {
    color: var(--muted);
}

/* Footer */
.page-foot {
    display: grid;
    gap: var(--sp-3);
    max-width: var(--measure);
    padding: var(--sp-7) 0 var(--sp-8);
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: var(--fs-small);
}

.page-foot .badge {
    margin-right: var(--sp-2);
}

/* Appendix */
.dl-glossary {
    display: grid;
    gap: var(--sp-3);
    max-width: var(--measure);
}

.dl-glossary dt {
    font-weight: 600;
    color: var(--ink);
}

.dl-glossary dd {
    margin: 2px 0 0;
    color: var(--ink-2);
}

.figure select.input {
    min-height: 32px;
}

code {
    overflow-wrap: anywhere;
}

/* Revision 1: every chapter opens with its question */
.chapter__question {
    max-width: 72ch;
    margin: var(--sp-2) 0 8px;
    color: var(--ink-2);
    font-family: var(--font-text);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
}

.chapter__head .chapter__question + .takeaway {
    margin-top: var(--sp-2);
}

/* Revision 1: how to read each figure, and the label that opens each explanation */
.figure__read {
    max-width: 72ch;
    margin-top: var(--sp-2);
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.figure__cue {
    color: var(--ink);
    font-weight: 600;
}

/* Revision 1: the introduction chapter and its tier diagram */
.chapter--intro {
    border-top: 0;
    padding-top: var(--sp-5);
}

.intro-diagram {
    display: grid;
    gap: var(--sp-5);
    max-width: var(--measure);
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
}

.intro-diagram__row {
    display: grid;
    gap: var(--sp-2);
    min-width: 0;
}

.intro-diagram__label {
    color: var(--ink);
    font-size: var(--fs-small);
    font-weight: 600;
}

.intro-diagram__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-2);
    font-size: var(--fs-caption);
    line-height: 1.35;
}

.intro-diagram__steps--one {
    grid-template-columns: minmax(0, 1fr);
}

.intro-diagram__steps li {
    min-width: 0;
    overflow-wrap: anywhere;
}
