/* Self-hosted for handbook. Regenerate with fetch_fonts.py. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/vEFI2_tTDB4M7-auWDN0ahZJW1gV8tenXg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/vEFI2_tTDB4M7-auWDN0ahZJW1gb8tc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/-F63fjptAgt5VM-kVkqdyU8n1iEq129k.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl5FgtIU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/-F6qfjptAgt5VM-kVkqdyU8n3vAOwl5FgtIU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/-F6qfjptAgt5VM-kVkqdyU8n3vAOwlBFgg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Teko';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/LYjNdG7kmE0gfa19pRtB.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Teko';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/LYjNdG7kmE0gfaN9pQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Teko';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/LYjNdG7kmE0gfa19pRtB.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Teko';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/LYjNdG7kmE0gfaN9pQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Teko';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/LYjNdG7kmE0gfa19pRtB.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Teko';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/LYjNdG7kmE0gfaN9pQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Buildout Index — a contractor takeoff sheet. Umber rail, rust rules, serif numbers. */

:root {
    --page: #cfc8bc;
    --card: #fffaf3;
    --slate: #3d2914;
    --slate-soft: #5a3d22;
    --ink: #1c1612;
    --ink-soft: #6a5a4c;
    --line: #e4d9c8;
    --line-firm: #cbbba4;
    --signal: #c45c26;
    --signal-deep: #8a3a14;
    --radius: 0;
    --rail: 16.5rem;
    --gutter: clamp(1.1rem, 3.5vw, 2.4rem);
    --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.58;
    overflow-x: clip;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 20;
    background: var(--signal);
    color: #fff;
    padding: 0.6rem 1rem;
}

a {
    color: var(--signal-deep);
    text-underline-offset: 0.15em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- takeoff sheet ---------- */

.sheet {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    min-height: 100vh;
    max-width: 92rem;
    margin: 0 auto;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line-firm);
}

.rail {
    background: var(--slate);
    color: #efe6d6;
    padding: 1.4rem 1.15rem 2.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.mark {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: #fff;
    margin: 0 0 1.6rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #6a4a2c;
}

.mark-kicker {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--signal);
}

.mark-name {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.rail-home {
    margin: 0 0 1rem;
}

.rail-home a {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d9cbb4;
    text-decoration: none;
}

.rail-home a[aria-current="page"],
.rail-home a:hover {
    color: #fff;
}

.rail-group {
    margin: 1.1rem 0 0.35rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal);
}

.rail-group.is-on {
    color: #ffd0b0;
}

.rail-nav ul {
    list-style: none;
    margin: 0 0 0.3rem;
    padding: 0;
}

.rail-nav li+li {
    border-top: 1px solid #5a3d22;
}

.rail-nav a {
    display: block;
    padding: 0.32rem 0;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #d9cbb4;
    text-decoration: none;
}

.rail-nav a:hover {
    color: #fff;
}

.rail-nav a[aria-current="page"] {
    color: #fff;
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--signal);
}

main {
    min-width: 0;
    padding: 2.2rem var(--gutter) 0;
    max-width: 48rem;
}

main.wide {
    max-width: none;
    padding: 2.2rem var(--gutter) 0;
}

.tag {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.tag-no {
    background: var(--slate);
    color: #fff;
    padding: 0.2rem 0.5rem;
}

h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}

.abstract {
    font-size: 1.12rem;
    line-height: 1.45;
    color: var(--ink-soft);
    margin: 0.7rem 0 0;
    max-width: 40rem;
    text-wrap: pretty;
}

.section>.plate {
    margin: 1.8rem 0 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.section>.plate img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border: 1px solid var(--line-firm);
}

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1.6rem 0 0;
    padding: 0.75rem 0;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.jump a {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line-firm);
    padding: 0.15rem 0;
}

.jump a:hover {
    color: var(--ink);
    border-bottom-color: var(--signal);
}

.prose {
    padding-top: 1.8rem;
}

.prose p {
    margin: 0 0 1.1em;
    max-width: 42rem;
    text-wrap: pretty;
}

.prose h2 {
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 2.4rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--ink);
    scroll-margin-top: 1.5rem;
}

.prose h3 {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--signal-deep);
    margin: 1.8rem 0 0.5rem;
}

.prose ul,
.prose ol {
    margin: 0 0 1.2em;
    padding-left: 1.25em;
    max-width: 42rem;
}

.prose li {
    margin: 0.32em 0;
}

.prose li::marker {
    color: var(--signal);
    font-family: var(--mono);
}

.prose strong {
    font-weight: 600;
}

figure {
    margin: 2rem 0;
}

figure img {
    width: 100%;
    border: 1px solid var(--line-firm);
    background: var(--card);
}

figcaption {
    font-family: var(--mono);
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-top: 0.5rem;
}

.drawing img {
    width: min(100%, 27rem);
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #fff;
}

.spec {
    margin: 2rem 0;
    border: 1px solid var(--line-firm);
    background: #fff;
}

.spec>p:first-child {
    margin: 0;
    padding: 0.5rem 1rem;
    background: var(--slate);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.spec>*:not(:first-child) {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: none;
}

.spec>ul,
.spec>ol {
    padding-left: 2.3rem;
    padding-bottom: 0.9rem;
}

.spec>p:nth-child(2) {
    padding-top: 0.9rem;
}

.spec> :last-child {
    margin-bottom: 0;
    padding-bottom: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.88rem;
    background: #fff;
    border: 1px solid var(--ink);
    font-variant-numeric: tabular-nums;
}

th {
    background: var(--slate);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: left;
    color: #fff;
    padding: 0.5rem 0.75rem;
}

td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

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

.queries {
    margin-top: 3rem;
    border-top: 2px solid var(--ink);
    padding-top: 1.4rem;
}

.queries h2 {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.queries dl {
    margin: 0;
    border-top: 1px solid var(--line-firm);
}

.queries div {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.queries dt {
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
}

.queries dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 2px solid var(--ink);
    margin-top: 2.8rem;
}

.step a {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--ink);
}

.step a+a,
.step span+a {
    text-align: right;
    border-left: 1px solid var(--line-firm);
    padding-left: 1rem;
}

.step span:first-child,
.step a span {
    display: block;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal-deep);
    margin-bottom: 0.25rem;
}

.step strong {
    font-weight: 600;
}

.foot {
    margin-top: 2.4rem;
    padding: 1.3rem 0 2.8rem;
    border-top: 1px solid var(--line-firm);
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-bottom: 0.55rem;
    font-family: var(--mono);
    font-size: 0.72rem;
}

.foot p {
    margin: 0;
    max-width: 44rem;
}

@media (max-width: 64rem) {
    .sheet {
        grid-template-columns: 1fr;
        min-height: 0;
        box-shadow: none;
    }

    .rail {
        position: static;
        height: auto;
        max-height: none;
        padding: 1rem var(--gutter) 1.2rem;
    }

    .rail-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
        gap: 0 1.2rem;
    }

    .rail-home,
    .rail-group {
        grid-column: 1 / -1;
    }

    main,
    main.wide {
        max-width: none;
        padding-top: 1.6rem;
    }
}

@media (max-width: 36rem) {
    .step {
        grid-template-columns: 1fr;
    }

    .step a+a,
    .step span+a {
        text-align: left;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* Rust on umber bands. Teko is the condensed stamp on a serif takeoff sheet. */
:root {
    --gold: #c45c26;
    --gold-lift: #e07a42;
    --gold-ink: #8a3a14;
    --black: #2a1c10;
    --poster: Teko, "Arial Narrow", Impact, sans-serif;
}

body {
    /* Bands bleed their background past the column with an over-wide pseudo
       element, which needs a clip that is not a scroll container, or a sticky
       header stops sticking. */
    overflow-x: clip;
}

.band {
    position: relative;
    isolation: isolate;
    margin: clamp(2.2rem, 5vw, 3.4rem) 0;
    padding: clamp(2.2rem, 5vw, 3.6rem) 0;
}

.band::before {
    content: "";
    position: absolute;
    inset: 0 -100vw;
    z-index: -1;
    background: var(--card);
    border-block: 1px solid var(--line);
}

.band.dark {
    color: #e6e8ea;
}

.band.dark::before {
    background: var(--black);
    border-block: 0;
    border-top: 4px solid var(--gold);
}

.band.dark a {
    color: var(--gold);
}

.band.dark strong {
    color: #fff;
}

.band> :first-child {
    margin-top: 0;
}

.band> :last-child {
    margin-bottom: 0;
}

.eyebrow {
    font-family: var(--poster);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin: 0 0 0.75rem;
}

.dark .eyebrow {
    color: var(--gold);
}

/* The poster heading: heavy condensed caps, with a gold clause inside it. */
.display,
.prose h2.display,
.prose h3.display {
    font-family: var(--poster);
    font-weight: 700;
    font-size: clamp(1.85rem, 1.2rem + 3.2vw, 3.3rem);
    line-height: 1;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
    text-wrap: balance;
    color: var(--ink);
}

.display b,
.display strong {
    color: var(--gold-ink);
    font-weight: inherit;
}

/* Two classes deep, because `.prose h2.display` above sets the light colour and
   would otherwise leave the non-gold half of the heading black on black. */
.band.dark .display {
    color: #fff;
}

.dark .display b,
.dark .display strong {
    color: var(--gold);
}

.lede {
    font-size: 1.06rem;
    max-width: 42rem;
    margin: 0 0 1.4rem;
}

/* ---------- stat rows ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1.6rem;
    margin: 2.2rem 0;
}

.stat {
    border-top: 4px solid var(--gold);
    padding-top: 0.85rem;
}

.stat b,
.stat strong {
    display: block;
    font-family: var(--poster);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--ink);
}

/* Needs both halves spelled out: `.band.dark strong` is more specific than
   `.stat strong` and would otherwise paint the number white. */
.dark .stat b,
.dark .stat strong {
    color: var(--gold);
}

.stat span {
    display: block;
    font-family: var(--poster);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 0.5rem;
}

.stat p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0.55rem 0 0;
}

.dark .stat span,
.dark .stat p {
    color: #a3a9b0;
}

/* ---------- diagram plates ---------- */

/* Detailed diagrams carry their own frame and dark ground, so they sit
   on a light panel rather than bleeding to the edge like a photograph. */
.plate {
    margin: 2.4rem 0;
    padding: clamp(0.85rem, 2.2vw, 1.5rem);
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: none;
}

.dark .plate {
    background: #131313;
    border-color: #2c2c2c;
    box-shadow: none;
}

.plate img {
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
}

.plate figcaption {
    border: 0;
    margin: 0;
    padding: 0.85rem 0.2rem 0.1rem;
    font-style: italic;
    font-size: 0.86rem;
    text-align: center;
    color: var(--ink-soft);
}

.dark .plate figcaption {
    color: #a3a9b0;
}

/* A portrait diagram would otherwise run past a full screen height. */
.plate.tall img {
    max-height: 44rem;
    width: auto;
    margin: 0 auto;
}

/* ---------- split: artwork one side, argument the other ---------- */

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: clamp(1.3rem, 3.5vw, 2.6rem);
    align-items: center;
    margin: 2.2rem 0;
}

.split figure {
    margin: 0;
}

.split img {
    width: 100%;
}

.split>div> :first-child {
    margin-top: 0;
}

.split>div> :last-child {
    margin-bottom: 0;
}

/* ---------- pill button ---------- */

.pill {
    display: inline-block;
    font-family: var(--poster);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    padding: 0.8rem 1.55rem;
    border-radius: 999px;
}

.pill:hover {
    background: var(--gold-lift);
}

.band.dark .pill {
    color: var(--black);
}

/* ---------- press row ---------- */

.press {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.3rem, 4vw, 2.8rem);
    margin: 1.8rem 0;
}

.press img {
    height: 2.3rem;
    width: auto;
}

.dark .press img {
    filter: grayscale(1) brightness(1.9);
    opacity: 0.9;
}

/* ---------- card row ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: clamp(1.2rem, 3vw, 2.1rem);
    margin: 2.2rem 0;
}

.card {
    border-top: 4px solid var(--ink);
}

.card:nth-child(even) {
    border-top-color: var(--gold);
}

.dark .card {
    border-top-color: var(--gold);
}

.card h3 {
    font-family: var(--poster);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0.85rem 0 0.5rem;
    color: inherit;
}

.card p {
    font-size: 0.95rem;
    margin: 0 0 0.6rem;
}

.card p:last-child {
    margin-bottom: 0;
}

/* A gold-caps status line closes each card. */
.card .status {
    font-family: var(--poster);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.dark .card .status {
    color: var(--gold);
}

/* ---------- directory and Item 7 tables ---------- */

main.wide {
    max-width: 68rem;
    margin: 0 auto;
    padding: 2rem var(--gutter) 0;
}

.table-wrap {
    margin: 2.2rem 0 0;
}

.table-head h2 {
    font-family: var(--poster);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(1.3rem, 1rem + 1.4vw, 1.8rem);
    line-height: 1.05;
    margin: 0;
}

.table-head p {
    margin: 0.45rem 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

table.rank {
    width: 100%;
    margin: 1.1rem 0 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

table.rank thead th {
    background: var(--slate);
    color: #fff;
    text-align: left;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.55rem 0.65rem;
    white-space: nowrap;
}

table.rank tbody tr {
    border-bottom: 1px solid var(--line);
}

table.rank tbody tr:nth-child(even) {
    background: var(--card);
}

table.rank td,
table.rank tbody th {
    padding: 0.65rem;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}

.c-rank {
    font-family: var(--mono);
    color: var(--ink-soft);
    width: 2.2rem;
}

.c-name a {
    font-weight: 700;
    color: var(--ink);
    text-decoration-color: var(--line-firm);
}

.row-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.c-lead {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 700;
    color: var(--signal-deep);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1px;
    background: var(--line-firm);
    border: 1px solid var(--line-firm);
    margin: 0 0 1.6rem;
}

.fact {
    background: var(--card);
    padding: 0.85rem 1rem;
}

.fact b {
    display: block;
    font-family: var(--mono);
    font-size: 1.15rem;
    line-height: 1.15;
}

.fact span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.callout {
    margin: 0 0 1.4rem;
    padding: 0.8rem 1rem;
    background: #e4edf5;
    border-left: 4px solid var(--signal);
    font-size: 0.95rem;
}

table.spec {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.8rem;
    font-size: 0.9rem;
}

table.spec th,
table.spec td {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

table.spec th[scope="row"] {
    font-weight: 600;
    color: var(--ink-soft);
}

table.spec tr.total th,
table.spec tr.total td {
    border-top: 1px solid var(--slate);
    border-bottom: 2px solid var(--slate);
    color: var(--ink);
    font-weight: 700;
}

.league {
    margin: 1.6rem 0 2rem;
    overflow-x: auto;
}

.league table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.league caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 0.6rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.league thead th {
    background: var(--slate);
    color: #fff;
    text-align: left;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.5rem 0.6rem;
    white-space: nowrap;
}

.league tbody tr {
    border-bottom: 1px solid var(--line);
}

.league td,
.league tbody th {
    padding: 0.5rem 0.6rem;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}

.league tbody th {
    font-weight: 700;
}

.league .lead-cell {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--signal-deep);
    font-weight: 700;
}

.league .labels {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.alsolist {
    margin: 2rem 0 0;
}

.alsolist-label {
    margin: 0 0 0.45rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.alsolist ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.alsolist a {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--line-firm);
    font-size: 0.82rem;
    text-decoration: none;
    color: var(--ink);
}

.alsolist a:hover {
    border-color: var(--slate);
}

.commentary {
    margin: 1.6rem 0 0;
    padding: 0 0 0.2rem;
    border-top: 2px solid var(--signal);
}

.commentary h2 {
    font-family: var(--poster);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.15rem;
    margin: 1.1rem 0 0.4rem;
}

.commentary p,
.commentary ul {
    margin: 0.55rem 0 0;
}