/**
 * Layout layer
 * Page composition for: home, category, detail, play, about, legal.
 *
 * Structure note: the home page is composed as a printed catalogue —
 * plate → contents table → featured spread → drawer ledger → specimen
 * index. It deliberately avoids the shared "hero / feature row / grid"
 * rhythm so no two screens read as the same template recoloured.
 */

/* ==================================================================
   1 · HOME · Cabinet plate hero
   ================================================================== */
.mc-hero {
    position: relative;
    padding-block: var(--mc-space-lg) var(--mc-space-md);
    overflow: clip;
}

/* Masthead-style rule above the headline, like a newspaper nameplate */
.mc-hero__nameplate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    padding-block: 0.55rem;
    border-top: 3px double var(--mc-ink-pine);
    border-bottom: 1px solid var(--mc-rule);
    margin-bottom: var(--mc-space-md);
}

.mc-hero__nameplate-line {
    flex: 1;
    min-width: 40px;
    height: 1px;
    background: var(--mc-rule);
}

.mc-hero__grid {
    display: grid;
    gap: var(--mc-space-lg);
    align-items: start;
}

.mc-hero__copy {
    display: grid;
    gap: var(--mc-space-sm);
    min-width: 0;
}

.mc-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mc-font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
}

.mc-hero__kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--mc-marigold);
}

.mc-hero__title {
    font-family: var(--mc-font-display);
    font-size: var(--mc-text-plate);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.028em;
    color: var(--mc-ink);
    text-wrap: balance;
}

/* Italic second line in marigold-ink — the "printed title" flourish */
.mc-hero__title em {
    display: block;
    font-style: italic;
    color: var(--mc-ink-pine);
}

.mc-hero__title-rule {
    width: 72px;
    height: 3px;
    background: var(--mc-brick);
    margin-block: 0.35rem 0.15rem;
}

.mc-hero__lede {
    font-size: var(--mc-text-lead);
    line-height: 1.55;
    color: var(--mc-ink-soft);
    max-width: 44ch;
}

.mc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.3rem;
}

/* Catalogue stats as a dateline, not a metric band */
/* Dateline: three stats in a fixed three-column grid.
   A flex row that wraps is not stable here — the numbers are injected, so a
   wrap decision made before they arrive can be reversed afterwards, which
   resizes the block and pushes the hero art. A grid gives every stat the same
   track width and a fixed row height regardless of content. */
.mc-hero__dateline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem 0.9rem;
    margin-top: var(--mc-space-xs);
    padding-top: var(--mc-space-sm);
    border-top: 1px solid var(--mc-rule);
}

.mc-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    /* Number line + label line, fixed. */
    min-height: 3.3rem;
    min-width: 0;
}

.mc-hero__stat-value {
    font-family: var(--mc-font-display);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--mc-ink-pine);
    font-variant-numeric: tabular-nums;
    /* Placeholder dash and real digits occupy the same box. */
    display: block;
    min-height: 1.8125rem;
    margin: 0;
}

.mc-hero__stat-label {
    display: block;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.25rem;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
    overflow-wrap: anywhere;
}

/* Hero plate — framed specimen with a caption and a printed offset block */
.mc-hero__plate {
    position: relative;
    min-width: 0;
    padding-top: 0.75rem;
    /* The frame is square (aspect-ratio on the image) plus padding and
       caption. Reserving it here means the caption and stats below never
       move, whatever order the image and the catalogue arrive in. */
    contain: layout;
}

.mc-hero__plate::before {
    /* offset marigold block behind the frame */
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 76%;
    background: var(--mc-marigold);
    border-radius: var(--mc-radius-xs);
    z-index: 0;
}

.mc-hero__frame {
    position: relative;
    z-index: 1;
    background: var(--mc-paper-panel);
    border: 1.5px solid var(--mc-ink-pine);
    border-radius: var(--mc-radius-xs);
    padding: 8px;
    box-shadow: var(--mc-shadow-plate);
}

.mc-hero__frame img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1px;
}

.mc-hero__caption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--mc-rule);
    font-size: 0.66rem;
    line-height: 1.5;
    color: var(--mc-ink-muted);
}

.mc-hero__caption b {
    font-family: var(--mc-font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--mc-ink-pine);
}

.mc-hero__caption-no {
    flex-shrink: 0;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mc-ink-faint);
    font-variant-numeric: tabular-nums;
}

/* Short screens: the first ad slot occupies ~390px, so the hero must start
   tighter for its headline to stay on the first screen. */
@media (max-height: 700px) {
    .mc-hero {
        padding-block: 0 var(--mc-space-sm);
    }

    .mc-hero__nameplate {
        padding-block: 0.25rem;
        margin-bottom: 0.65rem;
    }

    .mc-hero__title {
        font-size: clamp(1.75rem, 6.4vw, 2.8rem);
    }

    .mc-hero__kicker {
        margin-bottom: -0.1rem;
    }

    .mc-hero__lede {
        font-size: 0.94rem;
    }

    .mc-hero__actions {
        margin-top: 0;
    }
}

/* Very short screens (<=520px tall): prioritise getting the headline into the
   first screen under slot 1. The hero art moves below the copy. */
@media (max-height: 520px) {
    .mc-hero__nameplate {
        display: none;
    }

    .mc-hero__grid {
        gap: var(--mc-space-sm);
    }

    .mc-hero__title {
        font-size: 1.6rem;
    }

    .mc-hero__lede {
        font-size: 0.88rem;
        max-width: none;
    }

    .mc-hero__plate {
        display: none;
    }

    .mc-hero__dateline {
        margin-top: 0;
        padding-top: 0.5rem;
    }
}

@media (min-width: 860px) {
    .mc-hero {
        padding-block: var(--mc-space-lg) var(--mc-space-lg);
    }

    .mc-hero__grid {
        grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
        gap: var(--mc-space-xl);
        align-items: center;
    }

    .mc-hero__plate {
        padding-top: 1.1rem;
    }
}

/* ==================================================================
   2 · HOME · Contents table (book-style, dotted leaders)
   ================================================================== */
.mc-contents {
    padding-block: var(--mc-space-md) var(--mc-space-lg);
    border-top: 1px solid var(--mc-rule);
    border-bottom: 1px solid var(--mc-rule);
}

.mc-contents__grid {
    display: grid;
    gap: 0;
}

.mc-contents__row {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding-block: 0.7rem;
    border-bottom: 1px dotted var(--mc-rule);
    color: var(--mc-ink);
    transition: color var(--mc-dur-fast) var(--mc-ease-out),
        padding-left var(--mc-dur) var(--mc-ease-out);
}

.mc-contents__row:last-child {
    border-bottom: 0;
}

.mc-contents__row:hover {
    color: var(--mc-brick);
    padding-left: 0.4rem;
}

.mc-contents__no {
    font-family: var(--mc-font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mc-marigold-deep);
    min-width: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.mc-contents__name {
    font-family: var(--mc-font-display);
    font-size: 1.16rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.mc-contents__leader {
    flex: 1;
    height: 0;
    border-bottom: 1px dotted var(--mc-rule);
    transform: translateY(-4px);
    min-width: 16px;
}

.mc-contents__sum {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--mc-ink-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (min-width: 700px) {
    .mc-contents__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--mc-space-xl);
    }

    /* Keep the two-column contents reading order visually balanced */
    .mc-contents__row:nth-last-child(2) {
        border-bottom: 0;
    }
}

/* ==================================================================
   3 · HOME · Featured spread (newspaper three-column composition)
   ================================================================== */
.mc-spread {
    padding-block: var(--mc-space-xl) var(--mc-space-lg);
}

.mc-spread__grid {
    display: grid;
    gap: var(--mc-space-md);
    align-items: start;
}

.mc-spread__lead {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.mc-spread__lead-frame {
    position: relative;
    background: var(--mc-paper-panel);
    border: 1.5px solid var(--mc-ink-pine);
    border-radius: var(--mc-radius-xs);
    padding: 7px;
    box-shadow: var(--mc-shadow-card);
    display: block;
}

.mc-spread__lead-frame img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 1px;
}

.mc-spread__lead-no {
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    z-index: 2;
    padding: 0.22rem 0.6rem;
    background: var(--mc-ink-pine);
    color: var(--mc-paper);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    border-bottom-right-radius: var(--mc-radius-xs);
}

.mc-spread__lead-title {
    font-family: var(--mc-font-display);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--mc-ink);
}

.mc-spread__lead-title a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--mc-dur-fast) var(--mc-ease-out),
        color var(--mc-dur-fast) var(--mc-ease-out);
}

.mc-spread__lead-title a:hover {
    color: var(--mc-brick);
    border-color: var(--mc-marigold);
}

.mc-spread__lead-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
}

.mc-spread__stack {
    display: grid;
    gap: 0;
    border-top: 1.5px solid var(--mc-ink-pine);
}

/* Column rule — a newspaper vertical hairline, desktop only */
.mc-spread__column {
    display: grid;
    gap: var(--mc-space-sm);
    min-width: 0;
}

.mc-spread__column-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1.5px solid var(--mc-ink-pine);
}

.mc-spread__column-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mc-rule);
}

.mc-spread__note {
    font-size: 0.86rem;
    line-height: 1.66;
    color: var(--mc-ink-soft);
}

.mc-spread__note strong {
    color: var(--mc-ink);
}

.mc-spread__note::first-letter {
    float: left;
    font-family: var(--mc-font-display);
    font-size: 2.9rem;
    line-height: 0.86;
    font-weight: 600;
    color: var(--mc-ink-pine);
    padding-right: 0.35rem;
    padding-top: 0.12rem;
}

/* Two compact plates sharing one row */
.mc-spread__duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

@media (min-width: 900px) {
    .mc-spread__grid {
        grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.86fr) minmax(0, 0.96fr);
        gap: var(--mc-space-lg);
    }

    .mc-spread__column + .mc-spread__column {
        padding-left: var(--mc-space-lg);
        border-left: 1px solid var(--mc-rule);
    }
}

/* ==================================================================
   4 · HOME · Drawer ledger — categories as ledger rows
   ================================================================== */
.mc-ledger {
    padding-block: var(--mc-space-xl);
    background: var(--mc-paper-deep);
    border-block: 1.5px solid var(--mc-ink-pine);
}

.mc-ledger__intro {
    display: grid;
    gap: 0.5rem;
    margin-bottom: var(--mc-space-md);
}

.mc-ledger__rows {
    border-top: 1px solid var(--mc-rule);
}

.mc-drawer {
    display: grid;
    gap: 0.7rem;
    padding-block: var(--mc-space-sm);
    border-bottom: 1px solid var(--mc-rule);
}

.mc-drawer__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.7rem;
}

.mc-drawer__no {
    font-family: var(--mc-font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mc-marigold-deep);
    font-variant-numeric: tabular-nums;
}

.mc-drawer__name {
    font-family: var(--mc-font-display);
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--mc-ink);
    min-width: 0;
}

.mc-drawer__name a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    transition: color var(--mc-dur-fast) var(--mc-ease-out);
}

.mc-drawer__name a:hover {
    color: var(--mc-brick);
}

.mc-drawer__count {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Drawer ledger composition.
   Each drawer gets a head, a one-line note, an image-card layout chosen from
   five variants (rotated in js/index.js), and an "open all" link.

   Two rules keep every variant proportionate:
     1. Every frame has a `max-height` ceiling, so a wide desktop column can
        never turn a preview thumbnail into a 700px hero.
     2. No card spans a row. Row spanning lets one card dictate the height of
        its row and inflates everything beside it.
   Desktop placement is explicit via grid-template-areas, never auto-placed. */
.mc-drawer {
    display: grid;
    gap: 0.75rem;
    padding-block: var(--mc-space-md);
    border-bottom: 1px solid var(--mc-rule);
}

.mc-drawer:last-child {
    border-bottom: 0;
}

.mc-drawer__blurb {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--mc-ink-muted);
    max-width: 64ch;
}

.mc-drawer__plates {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.15rem;
    min-width: 0;
    align-items: start;
}

/* The "open all N plates" affordance */
.mc-drawer__more {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mc-ink-pine);
    border-bottom: 2px solid var(--mc-marigold);
    transition: color var(--mc-dur-fast) var(--mc-ease-out),
        border-color var(--mc-dur-fast) var(--mc-ease-out),
        gap var(--mc-dur-fast) var(--mc-ease-out);
}

.mc-drawer__more:hover {
    color: var(--mc-brick);
    border-color: var(--mc-brick);
    gap: 0.65rem;
}

/* ------------------------------------------------------------------
   Mini image card — caption-light, artwork-first
   ------------------------------------------------------------------ */
.mc-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--mc-paper-panel);
    border: 1.25px solid var(--mc-ink-pine);
    border-radius: var(--mc-radius-xs);
    overflow: hidden;
    transition: transform var(--mc-dur) var(--mc-ease-out),
        box-shadow var(--mc-dur) var(--mc-ease-out);
}

.mc-mini:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(18, 54, 42, 0.16);
}

.mc-mini:active {
    transform: none;
    box-shadow: none;
}

/* The ceiling that keeps a ledger preview a preview. */
.mc-mini__frame {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    max-height: 220px;
    overflow: hidden;
    background: var(--mc-paper-deep);
}

.mc-mini__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* The dataset artwork is colourful and uneven; a slight knock-back keeps
       the ledger reading as print rather than as thumbnails. */
    filter: saturate(0.94) contrast(1.02);
    transition: transform var(--mc-dur-slow) var(--mc-ease-out),
        filter var(--mc-dur) var(--mc-ease-out);
}

.mc-mini:hover .mc-mini__frame img {
    transform: scale(1.04);
    filter: saturate(1) contrast(1.04);
}

/* Desk score as a small corner stamp */
.mc-mini__score {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    min-width: 1.9rem;
    padding: 0.14rem 0.4rem;
    background: var(--mc-marigold);
    border-left: 1.25px solid var(--mc-ink-pine);
    border-bottom: 1.25px solid var(--mc-ink-pine);
    font-family: var(--mc-font-body);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--mc-ink-on-marigold);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.mc-mini__body {
    display: grid;
    gap: 0.1rem;
    padding: 0.5rem 0.55rem 0.55rem;
    min-width: 0;
}

.mc-mini__name {
    font-family: var(--mc-font-display);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.22;
    color: var(--mc-ink);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-mini__meta {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
}

/* ------------------------------------------------------------------
   Variant A · LEAD — one wide hero plate, three thin companions
   ------------------------------------------------------------------ */
.mc-drawer--lead .mc-drawer__plates {
    /* Narrow screens: hero across the top, three companions in one row, so
       the drawer does not stack four full-width cards into 1000px of scroll. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "hero hero hero"
        "a b c";
}

.mc-drawer--lead .mc-mini--wide {
    grid-area: hero;
}

.mc-drawer--lead .mc-drawer__plates > .mc-mini:nth-child(2) {
    grid-area: a;
}

.mc-drawer--lead .mc-drawer__plates > .mc-mini:nth-child(3) {
    grid-area: b;
}

.mc-drawer--lead .mc-drawer__plates > .mc-mini:nth-child(4) {
    grid-area: c;
}

.mc-drawer--lead .mc-mini--wide .mc-mini__frame {
    aspect-ratio: 16 / 9;
    max-height: 250px;
}

.mc-drawer--lead .mc-mini--wide .mc-mini__name {
    font-size: 1.05rem;
}

/* Companions are artwork-only on narrow screens: three captions beneath a
   captioned hero would repeat the same information four times. */
.mc-drawer--lead .mc-drawer__plates > .mc-mini:not(.mc-mini--wide) .mc-mini__frame {
    aspect-ratio: 1 / 1;
    max-height: 150px;
}

.mc-drawer--lead .mc-drawer__plates > .mc-mini:not(.mc-mini--wide) .mc-mini__body {
    padding: 0.3rem 0.3rem 0.35rem;
}

.mc-drawer--lead .mc-drawer__plates > .mc-mini:not(.mc-mini--wide) .mc-mini__name {
    font-size: 0.68rem;
    -webkit-line-clamp: 1;
}

.mc-drawer--lead .mc-drawer__plates > .mc-mini:not(.mc-mini--wide) .mc-mini__meta {
    display: none;
}

@media (min-width: 700px) {
    .mc-drawer--lead .mc-drawer__plates {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        grid-template-areas:
            "hero a"
            "hero b"
            "hero c";
        grid-template-rows: repeat(3, auto);
        align-items: start;
    }

    .mc-drawer--lead .mc-mini--wide {
        grid-area: hero;
    }

    .mc-drawer--lead .mc-drawer__plates > .mc-mini:nth-child(2) {
        grid-area: a;
    }

    .mc-drawer--lead .mc-drawer__plates > .mc-mini:nth-child(3) {
        grid-area: b;
    }

    .mc-drawer--lead .mc-drawer__plates > .mc-mini:nth-child(4) {
        grid-area: c;
    }

    /* Companions are compact artwork strips: the hero already carries a full
       caption, so repeating it three more times would only add noise. */
    .mc-drawer--lead .mc-drawer__plates > .mc-mini:not(.mc-mini--wide) .mc-mini__frame {
        aspect-ratio: 16 / 6;
        max-height: 96px;
    }

    .mc-drawer--lead .mc-drawer__plates > .mc-mini:not(.mc-mini--wide) .mc-mini__body {
        padding: 0.3rem 0.45rem 0.35rem;
    }

    .mc-drawer--lead .mc-drawer__plates > .mc-mini:not(.mc-mini--wide) .mc-mini__name {
        font-size: 0.76rem;
        -webkit-line-clamp: 1;
    }

    .mc-drawer--lead .mc-drawer__plates > .mc-mini:not(.mc-mini--wide) .mc-mini__meta {
        display: none;
    }
}

/* ------------------------------------------------------------------
   Variant B · MOSAIC — zigzag: wide / narrow / narrow / wide across 3 cols.
   Every cell keeps its own ratio and none spans a row, so the block reads as
   a mosaic without any cell being able to inflate its neighbours.
   ------------------------------------------------------------------ */
.mc-drawer--mosaic .mc-drawer__plates {
    /* Narrow screens: a true 2×2 with alternating ratios. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(1) .mc-mini__frame,
.mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(4) .mc-mini__frame {
    aspect-ratio: 4 / 3;
}

.mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(2) .mc-mini__frame,
.mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(3) .mc-mini__frame {
    aspect-ratio: 1 / 1;
}

@media (min-width: 620px) {
    .mc-drawer--mosaic .mc-drawer__plates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    /* Row 1: a wide banner over two columns, then one square beside it. */
    .mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(1) {
        grid-column: 1 / 3;
    }

    .mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(1) .mc-mini__frame {
        aspect-ratio: 21 / 9;
    }

    .mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(2) .mc-mini__frame {
        aspect-ratio: 1 / 1;
    }

    /* Row 2: one square, then a wide banner over the last two columns. */
    .mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(3) .mc-mini__frame {
        aspect-ratio: 1 / 1;
    }

    .mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(4) {
        grid-column: 2 / 4;
    }

    .mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(4) .mc-mini__frame {
        aspect-ratio: 21 / 9;
    }

    /* The two wide cells carry the captions; the squares stay artwork-led. */
    .mc-drawer--mosaic .mc-drawer__plates > .mc-mini:nth-child(n + 1) .mc-mini__frame {
        max-height: 200px;
    }
}

/* ------------------------------------------------------------------
   Variant C · TRIO — three equal squares, matched heights
   ------------------------------------------------------------------ */
.mc-drawer--trio .mc-drawer__plates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.mc-drawer--trio .mc-mini {
    height: 100%;
}

.mc-drawer--trio .mc-mini__frame {
    aspect-ratio: 1 / 1;
    max-height: 200px;
}

/* ------------------------------------------------------------------
   Variant D · SPLIT — tall portrait beside two landscape cards
   ------------------------------------------------------------------ */
.mc-drawer--split .mc-drawer__plates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "tall a"
        "tall b";
    align-items: start;
}

.mc-drawer--split .mc-mini--tall {
    grid-area: tall;
}

.mc-drawer--split .mc-drawer__plates > .mc-mini:nth-child(2) {
    grid-area: a;
}

.mc-drawer--split .mc-drawer__plates > .mc-mini:nth-child(3) {
    grid-area: b;
}

.mc-drawer--split .mc-mini--tall .mc-mini__frame {
    aspect-ratio: 3 / 4;
    max-height: 260px;
}

@media (min-width: 700px) {
    .mc-drawer--split .mc-drawer__plates {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    }

    .mc-drawer--split .mc-drawer__plates > .mc-mini:nth-child(n + 2) .mc-mini__frame {
        aspect-ratio: 16 / 9;
        max-height: 150px;
    }
}

/* ------------------------------------------------------------------
   Variant E · STACK — wide banner over a row of three squares
   ------------------------------------------------------------------ */
.mc-drawer--stack .mc-drawer__plates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mc-drawer--stack .mc-drawer__plates > .mc-mini:first-child {
    grid-column: 1 / -1;
}

.mc-drawer--stack .mc-drawer__plates > .mc-mini:first-child .mc-mini__frame {
    aspect-ratio: 24 / 7;
    max-height: 200px;
}

.mc-drawer--stack .mc-drawer__plates > .mc-mini:first-child .mc-mini__name {
    font-size: 1.05rem;
}

.mc-drawer--stack .mc-drawer__plates > .mc-mini:nth-child(n + 2) .mc-mini__frame {
    aspect-ratio: 1 / 1;
    max-height: 180px;
}

/* ------------------------------------------------------------------
   Wide screens: alternate drawers into a two-column ledger rhythm so
   thirteen drawers never read as thirteen identical stacked blocks.
   ------------------------------------------------------------------ */
@media (min-width: 900px) {
    .mc-drawer--lead,
    .mc-drawer--split {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
        grid-template-areas:
            "head plates"
            "blurb plates"
            "more plates";
        align-items: start;
        column-gap: var(--mc-space-lg);
    }

    .mc-drawer--lead .mc-drawer__head,
    .mc-drawer--split .mc-drawer__head {
        grid-area: head;
    }

    .mc-drawer--lead .mc-drawer__blurb,
    .mc-drawer--split .mc-drawer__blurb {
        grid-area: blurb;
    }

    .mc-drawer--lead .mc-drawer__more,
    .mc-drawer--split .mc-drawer__more {
        grid-area: more;
        align-self: end;
    }

    .mc-drawer--lead .mc-drawer__plates,
    .mc-drawer--split .mc-drawer__plates {
        grid-area: plates;
        margin-top: 0;
    }

    /* Trio, mosaic and stack keep the head above a full-width plate row. */
    .mc-drawer--trio .mc-drawer__plates,
    .mc-drawer--mosaic .mc-drawer__plates,
    .mc-drawer--stack .mc-drawer__plates {
        margin-top: 0.35rem;
    }
}
/* ==================================================================
   5 · HOME · Specimen index — dense printed list + plate grid
   ================================================================== */
.mc-specimen {
    padding-block: var(--mc-space-xl) 0;
}

.mc-specimen__head {
    display: grid;
    gap: 0.6rem;
    margin-bottom: var(--mc-space-md);
}

.mc-specimen__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-block: 0.6rem;
    border-block: 1px solid var(--mc-rule);
    margin-bottom: var(--mc-space-md);
}

.mc-specimen__count {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
    font-variant-numeric: tabular-nums;
}

/* Plate grid: auto-fill, square thumbs, no ragged gaps.
   `align-content: start` keeps rows packed at the top.

   CLS guard: while the grid is `aria-busy="true"` it reserves more than a
   viewport of height. Without it the footer sits inside the first screen,
   then gets pushed thousands of pixels down when the real catalogue paints —
   which counts as a large shift even though the footer ends up off-screen. */
.mc-plates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.75rem;
    align-content: start;
}

.mc-plates[aria-busy="true"] {
    min-height: calc(100vh + 240px);
}

@media (min-width: 600px) {
    .mc-plates {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .mc-plates {
        grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
        gap: 1.15rem;
    }
}

/* Load-more sentinel, sized so it never causes a jump when it swaps */
.mc-sentinel {
    display: grid;
    place-items: center;
    min-height: 72px;
    margin-top: var(--mc-space-md);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mc-ink-faint);
}

.mc-sentinel[hidden] {
    display: none;
}

/* Skeleton plate — keeps grid height stable while data renders */
.mc-plate--skeleton {
    background: var(--mc-paper-deep);
    border-color: var(--mc-rule);
    box-shadow: none;
    min-height: 230px;
}

.mc-plate--skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(255, 251, 241, 0.72) 50%,
        transparent 80%
    );
    animation: mc-sheen 1.5s var(--mc-ease-in-out) infinite;
}

@keyframes mc-sheen {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

/* ==================================================================
   5b · HOME · Closing editorial note (content between ad slots 2 and 3)
   ================================================================== */
.mc-closing {
    padding-block: var(--mc-space-lg);
    border-top: 1px solid var(--mc-rule);
}

.mc-closing__grid {
    display: grid;
    gap: var(--mc-space-md);
    align-items: start;
}

.mc-closing__title {
    font-family: var(--mc-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.012em;
    color: var(--mc-ink);
    margin-bottom: 0.4rem;
}

.mc-closing__text {
    font-size: 0.88rem;
    line-height: 1.68;
    color: var(--mc-ink-soft);
}

.mc-closing__text a {
    color: var(--mc-ink-pine);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--mc-marigold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.mc-closing__text a:hover {
    color: var(--mc-brick);
    text-decoration-color: var(--mc-brick);
}

@media (min-width: 760px) {
    .mc-closing__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--mc-space-lg);
    }
}

/* ==================================================================
   6 · CATEGORY · Drawer opening
   ================================================================== */
.mc-drawer-page {
    padding-block: var(--mc-space-md) var(--mc-space-xl);
    /* Keeps the colophon below the fold during boot, matching the height the
       populated grid will occupy. Prevents a whole-page shift on first paint. */
    min-height: 100vh;
}

.mc-drawer-hero {
    position: relative;
    display: grid;
    gap: var(--mc-space-sm);
    padding-block: var(--mc-space-md);
    border-top: 3px double var(--mc-ink-pine);
    border-bottom: 1.5px solid var(--mc-ink-pine);
    margin-bottom: var(--mc-space-md);
    overflow: hidden;
}

.mc-drawer-hero__bg {
    position: absolute;
    right: -6%;
    top: -18%;
    width: 44%;
    max-width: 380px;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
}

.mc-drawer-hero__bg img {
    width: 100%;
    height: auto;
}

.mc-drawer-hero__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    max-width: 62ch;
}

/* Reserve the blurb's final height. Two lines covers most drawers, but at
   narrow widths the fallback face is wider than Bodoni and the longest blurb
   (Puzzle) wraps to three — so reserve three there. Measured: two-line
   reservation left 0.0177 CLS at 320px; three lines drops it to ~0.001. */
#mc-cat-blurb {
    min-height: calc(1.55em * 2);
}

@media (max-width: 460px) {
    #mc-cat-blurb {
        min-height: calc(1.55em * 3);
    }
}

.mc-drawer-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
}

.mc-drawer-hero__title {
    font-family: var(--mc-font-display);
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--mc-ink);
    overflow-wrap: anywhere;
}

.mc-drawer-hero__title em {
    font-style: italic;
    color: var(--mc-ink-pine);
}

.mc-drawer-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
}

.mc-drawer-hero__count {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
}

.mc-drawer-hero__count b {
    font-family: var(--mc-font-display);
    font-size: 1.05rem;
    color: var(--mc-ink-pine);
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.mc-drawer-layout {
    display: grid;
    gap: var(--mc-space-lg);
    align-items: start;
}

/* Sibling drawer rail — vertical index of other categories */
.mc-drawer-rail {
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem;
    background: var(--mc-paper-panel);
    border: 1.25px solid var(--mc-rule-ink);
    border-radius: var(--mc-radius-xs);
}

.mc-drawer-rail__title {
    padding-bottom: 0.45rem;
    margin-bottom: 0.35rem;
    border-bottom: 1.5px solid var(--mc-ink-pine);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
}

.mc-drawer-rail__link {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.3rem 0.35rem;
    border-radius: var(--mc-radius-xs);
    font-size: 0.84rem;
    color: var(--mc-ink-soft);
    transition: background-color var(--mc-dur-fast) var(--mc-ease-out),
        color var(--mc-dur-fast) var(--mc-ease-out);
}

.mc-drawer-rail__link:hover {
    background: var(--mc-marigold-pale);
    color: var(--mc-ink-pine);
}

.mc-drawer-rail__link[aria-current="page"] {
    background: var(--mc-ink-pine);
    color: var(--mc-paper);
}

.mc-drawer-rail__no {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--mc-marigold-deep);
    font-variant-numeric: tabular-nums;
}

.mc-drawer-rail__link[aria-current="page"] .mc-drawer-rail__no {
    color: var(--mc-marigold);
}

.mc-drawer-rail__n {
    margin-left: auto;
    font-size: 0.62rem;
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 940px) {
    .mc-drawer-layout {
        grid-template-columns: 232px minmax(0, 1fr);
    }

    .mc-drawer-rail {
        position: sticky;
        top: 1.25rem;
    }
}

/* ==================================================================
   7 · DETAIL · Specimen record
   ================================================================== */
.mc-record {
    padding-block: var(--mc-space-sm) var(--mc-space-xl);
}

.mc-record__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-bottom: var(--mc-space-sm);
    margin-bottom: var(--mc-space-md);
    border-bottom: 1px solid var(--mc-rule);
}

.mc-record__layout {
    display: grid;
    gap: var(--mc-space-lg);
    align-items: start;
}

/* Left identity card */
.mc-record__card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    background: var(--mc-paper-panel);
    border: 1.5px solid var(--mc-ink-pine);
    border-radius: var(--mc-radius-xs);
    box-shadow: var(--mc-shadow-card);
    min-width: 0;
}

.mc-record__plate-no {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mc-rule);
}

.mc-record__no {
    font-family: var(--mc-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--mc-ink-pine);
    font-variant-numeric: tabular-nums;
}

.mc-record__title {
    font-family: var(--mc-font-display);
    font-size: clamp(1.5rem, 4.2vw, 2.25rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--mc-ink);
    overflow-wrap: anywhere;
}

.mc-record__desc {
    font-size: 0.9rem;
    line-height: 1.62;
    color: var(--mc-ink-soft);
}

/* Facts list — ruled rows like a museum label */
.mc-record__facts {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--mc-rule);
}

.mc-record__fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.45rem;
    border-bottom: 1px dotted var(--mc-rule);
    font-size: 0.78rem;
}

.mc-record__fact dt {
    color: var(--mc-ink-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

.mc-record__fact dd {
    color: var(--mc-ink);
    font-weight: 600;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mc-record__actions {
    display: grid;
    gap: 0.45rem;
}

.mc-record__actions .mc-btn {
    width: 100%;
}

/* Right stage column */
.mc-record__stage {
    display: grid;
    gap: var(--mc-space-md);
    min-width: 0;
}

.mc-stage {
    position: relative;
    background: var(--mc-paper-panel);
    border: 1.5px solid var(--mc-ink-pine);
    border-radius: var(--mc-radius-xs);
    padding: 7px;
    box-shadow: var(--mc-shadow-plate);
}

/* Registration marks at the four corners — printer's crop marks */
.mc-stage__mark {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--mc-ink-pine);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
    z-index: 2;
}

.mc-stage__mark--tl {
    top: -6px;
    left: -6px;
    border-top-width: 1.5px;
    border-left-width: 1.5px;
}

.mc-stage__mark--tr {
    top: -6px;
    right: -6px;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
}

.mc-stage__mark--bl {
    bottom: -6px;
    left: -6px;
    border-bottom-width: 1.5px;
    border-left-width: 1.5px;
}

.mc-stage__mark--br {
    bottom: -6px;
    right: -6px;
    border-bottom-width: 1.5px;
    border-right-width: 1.5px;
}

/* The stage frame is a fixed 16:9 box. The artwork and the CTA are both
   absolutely positioned inside it, so neither can push the other out of the
   clipped area — previously the image resolved to a square (percentage height
   against an aspect-ratio box) and shunted the Play button below the fold of
   its own container. */
.mc-stage__inner {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mc-ink-pine);
    border-radius: 1px;
    display: block;
}

.mc-stage__inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark scrim behind the play CTA keeps the label legible on any art */
.mc-stage__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 40, 30, 0.82) 0%,
        rgba(11, 40, 30, 0.3) 46%,
        rgba(11, 40, 30, 0.12) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.mc-stage__cta {
    position: absolute;
    left: 50%;
    bottom: clamp(0.85rem, 5%, 2rem);
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
}

.mc-stage__cta:hover {
    transform: translateX(-50%) translate(-1px, -1px);
}

.mc-stage__cta:active {
    transform: translateX(-50%) translate(1px, 1px);
}

/* Empty / loading state sits centred in the same box. */
.mc-stage__inner > .mc-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding-inline: 1rem;
}

.mc-stage__caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.8rem;
    padding-top: 0.55rem;
    margin-top: 0.55rem;
    border-top: 1px solid var(--mc-rule);
    font-size: 0.66rem;
    line-height: 1.5;
    color: var(--mc-ink-muted);
    /* The game name arrives after first paint and can wrap to a second line at
       narrow widths. A fixed two-row box means neither the fallback face nor a
       long title can change the frame's height. */
    min-height: 3.1rem;
    align-content: start;
}

.mc-stage__caption b {
    font-family: var(--mc-font-display);
    font-style: italic;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mc-ink-pine);
}

/* Guide — sectioned prose with hanging marginal labels */
.mc-guide {
    display: grid;
    gap: 0;
    border-top: 1.5px solid var(--mc-ink-pine);
}

.mc-guide__section {
    display: grid;
    gap: 0.4rem;
    padding-block: var(--mc-space-md);
    border-bottom: 1px solid var(--mc-rule);
}

.mc-guide__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mc-marigold-deep);
}

.mc-guide__label::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--mc-marigold);
}

.mc-guide__title {
    font-family: var(--mc-font-display);
    font-size: var(--mc-text-h3);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--mc-ink);
}

.mc-guide__body {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--mc-ink-soft);
}

.mc-guide__body p + p {
    margin-top: 0.75rem;
}

.mc-guide__body strong {
    color: var(--mc-ink);
}

/* FAQ rendered as definition pairs */
.mc-faq {
    display: grid;
    gap: 0.85rem;
}

.mc-faq__q {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mc-ink);
    margin-bottom: 0.15rem;
}

.mc-faq__a {
    display: block;
    font-size: 0.88rem;
    color: var(--mc-ink-soft);
}

@media (min-width: 980px) {
    .mc-record__layout {
        grid-template-columns: 328px minmax(0, 1fr);
        gap: var(--mc-space-xl);
    }

    .mc-record__card {
        position: sticky;
        top: 1.25rem;
    }

    .mc-guide__section {
        grid-template-columns: 148px minmax(0, 1fr);
        gap: var(--mc-space-md);
    }

    .mc-guide__section > .mc-guide__label {
        align-self: start;
        position: sticky;
        top: 1.5rem;
        display: block;
    }

    .mc-guide__label::after {
        display: block;
        margin-top: 0.4rem;
        width: 32px;
    }

    .mc-guide__section > .mc-guide__main {
        min-width: 0;
    }
}

/* Related strip — horizontal scroll of ticket stubs */
.mc-related {
    padding-block: var(--mc-space-lg) 0;
}

/* Three per row, always vertical — never a horizontal scroller. Two rows of
   three are requested from the renderer, so the grid is usually complete.
   Below 560px the cards stay three-up but tighten their captions; they do not
   collapse to one column, because three small plates remain scannable. */
.mc-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    align-items: start;
}

@media (min-width: 700px) {
    .mc-related__grid {
        gap: 0.9rem;
    }
}

/* Very narrow phones: keep three columns but shrink the type so the caption
   still fits two lines without clipping. */
@media (max-width: 400px) {
    .mc-related__grid {
        gap: 0.45rem;
    }

    .mc-related__grid .mc-relcard__body {
        padding: 0.4rem 0.42rem 0.5rem;
    }

    .mc-related__grid .mc-relcard__name {
        font-size: 0.8rem;
    }

    .mc-related__grid .mc-relcard__meta {
        font-size: 0.5rem;
        letter-spacing: 0.07em;
    }
}

/* ==================================================================
   8 · PLAY · Full-screen stage
   ================================================================== */
body[data-page="play"] {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--mc-ink-pine);
    background-image: none;
}

.mc-play {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mc-play__stage {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.mc-play__stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: var(--mc-ink-pine);
}

.mc-play__exit {
    position: fixed;
    top: max(0.7rem, env(safe-area-inset-top));
    left: max(0.7rem, env(safe-area-inset-left));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-family: var(--mc-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mc-ink-pine);
    background: var(--mc-marigold);
    border: 1.5px solid var(--mc-ink-pine);
    border-radius: var(--mc-radius-xs);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    transition: transform var(--mc-dur-fast) var(--mc-ease-out),
        background-color var(--mc-dur-fast) var(--mc-ease-out);
}

.mc-play__exit:hover {
    background: var(--mc-marigold-hover);
    transform: translate(-1px, -1px);
}

.mc-play__loading {
    flex: 1;
    display: grid;
    place-content: center;
    gap: 0.7rem;
    justify-items: center;
    padding: 2rem;
    text-align: center;
    color: rgba(251, 242, 223, 0.8);
}

/* A printed "loading plate" keeps the empty state on-brand */
.mc-play__loading-card {
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    padding: 1.6rem 2.2rem;
    border: 1.5px dashed rgba(251, 242, 223, 0.4);
    border-radius: var(--mc-radius-xs);
}

.mc-play__loading-card b {
    font-family: var(--mc-font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--mc-paper);
}

/* ==================================================================
   9 · ABOUT · Manifesto spread
   ================================================================== */
.mc-about {
    padding-block: var(--mc-space-md) var(--mc-space-xl);
}

.mc-about__nameplate {
    display: grid;
    gap: 0.6rem;
    padding-block: var(--mc-space-sm) var(--mc-space-md);
    border-top: 3px double var(--mc-ink-pine);
    border-bottom: 1.5px solid var(--mc-ink-pine);
    margin-bottom: var(--mc-space-lg);
}

.mc-about__title {
    font-family: var(--mc-font-display);
    font-size: clamp(2.2rem, 6.5vw, 4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.028em;
    color: var(--mc-ink);
    text-wrap: balance;
}

.mc-about__title em {
    font-style: italic;
    color: var(--mc-ink-pine);
}

.mc-about__grid {
    display: grid;
    gap: var(--mc-space-lg);
    align-items: start;
}

.mc-about__figure {
    position: relative;
    order: -1;
}

.mc-about__figure img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1.5px solid var(--mc-ink-pine);
    border-radius: var(--mc-radius-xs);
    box-shadow: var(--mc-shadow-card);
}

.mc-about__figcaption {
    margin-top: 0.5rem;
    font-size: 0.68rem;
    line-height: 1.55;
    color: var(--mc-ink-muted);
    padding-left: 0.65rem;
    border-left: 2px solid var(--mc-marigold);
}

/* Numbered principles list */
.mc-principles {
    display: grid;
    gap: 0;
    border-top: 1.5px solid var(--mc-ink-pine);
    margin-top: var(--mc-space-md);
}

.mc-principle {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.7rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--mc-rule);
}

.mc-principle__no {
    font-family: var(--mc-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--mc-marigold-deep);
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.mc-principle__title {
    font-family: var(--mc-font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mc-ink);
    margin-bottom: 0.15rem;
}

.mc-principle__body {
    font-size: 0.86rem;
    line-height: 1.62;
    color: var(--mc-ink-soft);
}

/* Contact ledger table */
.mc-contact {
    margin-top: var(--mc-space-lg);
    border: 1.5px solid var(--mc-ink-pine);
    border-radius: var(--mc-radius-xs);
    background: var(--mc-paper-panel);
    overflow: hidden;
}

.mc-contact__head {
    padding: 0.7rem 1rem;
    background: var(--mc-ink-pine);
    color: var(--mc-paper);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mc-contact__row {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px dotted var(--mc-rule);
    font-size: 0.86rem;
}

.mc-contact__row:last-child {
    border-bottom: 0;
}

.mc-contact__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
}

.mc-contact__value {
    color: var(--mc-ink);
    overflow-wrap: anywhere;
}

.mc-contact__value a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--mc-brick);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 900px) {
    .mc-about__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
        gap: var(--mc-space-xl);
    }

    .mc-about__figure {
        order: 0;
        position: sticky;
        top: 1.25rem;
    }
}

/* ==================================================================
   10 · LEGAL · Prose with sticky section ledger
   ================================================================== */
.mc-legal {
    padding-block: var(--mc-space-md) var(--mc-space-xl);
}

.mc-legal__head {
    display: grid;
    gap: 0.5rem;
    padding-block: var(--mc-space-sm) var(--mc-space-md);
    border-top: 3px double var(--mc-ink-pine);
    border-bottom: 1.5px solid var(--mc-ink-pine);
    margin-bottom: var(--mc-space-lg);
}

.mc-legal__title {
    font-family: var(--mc-font-display);
    font-size: clamp(1.9rem, 5.2vw, 3rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--mc-ink);
}

.mc-legal__stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
}

.mc-legal__stamp::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--mc-marigold);
    border-radius: 50%;
}

.mc-legal__grid {
    display: grid;
    gap: var(--mc-space-lg);
    align-items: start;
}

/* Section ledger — the table of contents for the policy */
.mc-legal__toc {
    display: grid;
    gap: 0.05rem;
    padding: 0.85rem;
    background: var(--mc-paper-panel);
    border: 1.25px solid var(--mc-rule-ink);
    border-radius: var(--mc-radius-xs);
}

.mc-legal__toc-title {
    padding-bottom: 0.45rem;
    margin-bottom: 0.35rem;
    border-bottom: 1.5px solid var(--mc-ink-pine);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
}

.mc-legal__toc a {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.3rem 0.35rem;
    border-radius: var(--mc-radius-xs);
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--mc-ink-soft);
    transition: background-color var(--mc-dur-fast) var(--mc-ease-out),
        color var(--mc-dur-fast) var(--mc-ease-out);
}

.mc-legal__toc a:hover {
    background: var(--mc-marigold-pale);
    color: var(--mc-ink-pine);
}

.mc-legal__toc-no {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--mc-marigold-deep);
    font-variant-numeric: tabular-nums;
}

.mc-legal__body {
    min-width: 0;
}

.mc-legal__body .mc-prose h2 {
    scroll-margin-top: 1.5rem;
}

.mc-legal__footlink {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding-top: var(--mc-space-md);
    margin-top: var(--mc-space-lg);
    border-top: 1px solid var(--mc-rule);
}

@media (min-width: 940px) {
    .mc-legal__grid {
        grid-template-columns: 236px minmax(0, 1fr);
        gap: var(--mc-space-xl);
    }

    .mc-legal__toc {
        position: sticky;
        top: 1.25rem;
        max-height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* ==================================================================
   11 · Shared band padding helper
   ================================================================== */
/* Editorial pull quote used on home + about */
.mc-pullquote {
    position: relative;
    padding: var(--mc-space-sm) 0 var(--mc-space-sm) 1.4rem;
    border-left: 4px solid var(--mc-marigold);
    font-family: var(--mc-font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    line-height: 1.4;
    color: var(--mc-ink-pine);
    max-width: 44ch;
}

.mc-pullquote cite {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--mc-font-body);
    font-style: normal;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mc-ink-muted);
}

/* Narrow phones: tighten the dateline so all three labels hold one line.
   Keeps the block's height identical to wider screens. */
@media (max-width: 400px) {
    .mc-hero__stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.02em;
    }

    .mc-hero__dateline {
        gap: 0.3rem 0.5rem;
    }
}

/* ==================================================================
   12 · Decorative motif band + cabinet diagram
   ================================================================== */

/* A strip of the cabinet's screen-print motif sheet. Cropped to a fixed
   height so it reads as a printed rule between sections, and so it can never
   contribute to layout shift. */
.mc-motif-band {
    height: clamp(56px, 8vw, 88px);
    overflow: hidden;
    border-block: 1.5px solid var(--mc-ink-pine);
    background: var(--mc-paper-deep);
}

.mc-motif-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* Cabinet diagram on the About page. */
.mc-diagram {
    margin-top: var(--mc-space-lg);
    padding: 0.7rem;
    background: var(--mc-paper-panel);
    border: 1.25px solid var(--mc-rule-ink);
    border-radius: var(--mc-radius-xs);
}

.mc-diagram img {
    width: 100%;
    height: auto;
    border-radius: 1px;
}

.mc-diagram figcaption {
    margin-top: 0.55rem;
    padding-left: 0.6rem;
    border-left: 2px solid var(--mc-marigold);
    font-size: 0.68rem;
    line-height: 1.55;
    color: var(--mc-ink-muted);
}
