/*
 * Decline site styles. Tokens from projects/decline/DESIGN.md ("The Front Door"):
 * ultramarine enamel door panels with a raised moulding field, an enamel-white
 * ground, brass only for the porch lamp, and the house-number plate as the one
 * signature object (solid = rejected, dashed = silenced, outlined = allowed).
 * Flat, opaque colour: no shadows, gradients, glows or glass.
 * Barlow Semi Condensed for headings and numerals only; the system sans reads.
 */

@font-face {
    font-family: "Barlow SC";
    src: url("/decline/fonts/barlow-sc-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Barlow SC";
    src: url("/decline/fonts/barlow-sc-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;

    --ground: #F5F6F3;
    --plate-white: #FFFFFF;
    --ink: #141826;
    --ink-muted: #4A5068;
    --outline: #767C92;
    --outline-variant: #C6CAD6;
    --container-low: #EEF0F3;
    --primary: #24418F;
    --primary-container: #DDE3F8;
    --on-primary-container: #0F1F4F;

    --door: #24418F;
    --door-field: #314C96;
    --on-door: #FFFFFF;
    --on-door-muted: #D3DBF4;
    --door-rule: rgba(255, 255, 255, 0.22);

    --plate-solid: #24418F;
    --plate-solid-ink: #FFFFFF;
    --plate-open: #FFFFFF;
    --plate-open-ink: #24418F;

    --brass: #D9A93F;
    --brass-pale: #F6E3B4;
    --on-brass: #2B1E00;
    --lamp-glass-dark: rgba(255, 255, 255, 0.16);

    --display: "Barlow SC", "Barlow Semi Condensed", system-ui, sans-serif;
    /* DESIGN.md body is "Roboto, the platform default": use the platform sans (Roboto on Android) rather than bundling it */
    --body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    --gutter: 1.25rem;
    --wrap: 72rem;
    --r-xs: 6px;
    --r-sm: 8px;
    --r-plate: 10px;
    --r-md: 12px;
    --r-lg: 16px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ground: #0E1220;
        --plate-white: #141929;
        --ink: #E3E6F0;
        --ink-muted: #AEB4C8;
        --outline: #8F95AA;
        --outline-variant: #343B50;
        --container-low: #161B2B;
        --primary: #B4C5FF;
        --primary-container: #24346A;
        --on-primary-container: #DDE3F8;

        --door: #1E3577;
        --door-field: #2B417F;
        --on-door-muted: #D3DBF4;

        --plate-solid: #2B4596;
        --plate-solid-ink: #FFFFFF;
        --plate-open: #141929;
        --plate-open-ink: #C3D0FF;

        --brass: #E9BE5C;
        --brass-pale: #3A2F12;
        --on-brass: #F6E3B4;
    }
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 1rem;
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
    overflow-wrap: break-word;
}

::selection {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

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

svg {
    flex: none;
}

a {
    color: var(--primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}

h2 {
    font-size: clamp(min(1.75rem, 8vw), 1.35rem + 1.6vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.375rem;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem;
}

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

code {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05em;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 10;
    padding: 0.75rem 1.25rem;
    background: var(--plate-white);
    color: var(--ink);
    border: 1.5px solid var(--primary);
    border-radius: 999px;
    font-weight: 500;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Top bar ---------- */

.topbar {
    background: var(--ground);
    color: var(--ink);
    border-bottom: 1px solid var(--outline-variant);
}

.topbar .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 48px;
    color: inherit;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.wordmark {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.625rem;
    letter-spacing: -0.005em;
    line-height: 1;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.75rem;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
}

/* Home: the door runs up under the bar, as in the app */
.topbar-door {
    background: var(--door);
    color: var(--on-door);
    border-bottom: 0;
}

.topbar-door :focus-visible {
    outline-color: var(--on-door);
}

/* ---------- Door panel ---------- */

.door {
    background: var(--door);
    color: var(--on-door);
}

.door :focus-visible {
    outline-color: var(--on-door);
}

.door a:not(.play-badge) {
    color: var(--on-door);
}

.door-field {
    background: var(--door-field);
    color: var(--on-door);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.25rem 1.25rem;
}

.hero {
    padding: 0.5rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(min(2.5rem, 8.5vw), 1.7rem + 3vw, min(4.25rem, 10.5vw));
    hyphens: manual;
    line-height: 1.02;
    margin: 1.25rem 0 1rem;
    max-width: 15ch;
}

.hero .sub {
    color: var(--on-door-muted);
    font-size: 1.125rem;
    line-height: 1.55;
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.hero-shot {
    margin: 0 auto;
    width: 100%;
    max-width: 20rem;
}

.hero-shot img {
    border-radius: var(--r-lg);
}

/* Kick plate: the white strip at the foot of the door that carries the badge */
.kickplate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    background: #FFFFFF;
    color: #141826;
    border-radius: var(--r-plate);
    padding: 0.75rem;
    outline: 1px solid rgba(36, 65, 143, 0.55);
    outline-offset: -5px;
}

.kickplate p {
    margin: 0;
    color: #4A5068;
    font-size: 0.9375rem;
    line-height: 1.45;
    flex: 1 1 12rem;
    padding-right: 0.5rem;
}

.play-badge {
    display: inline-block;
    border-radius: 8px;
    line-height: 0;
}

.play-badge img {
    width: 188px;
    height: 56px;
}

.kickplate .play-badge:focus-visible,
.door .kickplate :focus-visible {
    outline-color: #24418F;
}

/* ---------- Porch lamp ---------- */

.lamp {
    width: 84px;
    height: 84px;
}

.lamp .ring {
    fill: none;
    stroke: var(--brass);
    transform-box: fill-box;
    transform-origin: center;
}

.lamp .metal {
    fill: #FFFFFF;
}

.lamp .glass {
    fill: var(--brass);
}

.lamp .bars {
    stroke: var(--door-field);
    stroke-width: 2.5;
}

@media (prefers-reduced-motion: no-preference) {
    .lamp .glass {
        animation: lamp-glass 450ms var(--ease-out) 150ms both;
    }

    .lamp .ring {
        animation: lamp-ring 450ms var(--ease-out) 150ms both;
    }
}

@keyframes lamp-glass {
    from {
        fill: var(--lamp-glass-dark);
    }
}

@keyframes lamp-ring {
    from {
        transform: scale(0.82);
        opacity: 0.4;
    }
}

/* ---------- House-number plates ---------- */

.plate {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 9px 14px;
    border-radius: var(--r-plate);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 1.18;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    overflow-wrap: anywhere;
}

.plate-solid {
    background: var(--plate-solid);
    color: var(--plate-solid-ink);
    border: 1.5px solid var(--plate-solid);
    outline: 1px solid rgba(255, 255, 255, 0.85);
    outline-offset: -5.5px;
}

.plate-outlined {
    background: var(--plate-open);
    color: var(--plate-open-ink);
    border: 1.5px solid var(--plate-open-ink);
    outline: 1px solid color-mix(in srgb, var(--plate-open-ink) 55%, transparent);
    outline-offset: -5.5px;
}

.plate-dashed {
    background: var(--plate-open);
    color: var(--plate-open-ink);
    border: 1.5px dashed var(--plate-open-ink);
}

/* Outcome tag: an icon and a word, never colour alone */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--ink-muted);
    white-space: nowrap;
}

.tag svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tag-rejected {
    color: var(--primary);
}

/* ---------- Sections ---------- */

.section {
    padding: 3.5rem 0;
}

.section + .section {
    padding-top: 1rem;
}

.section-rule {
    border-top: 1px solid var(--outline-variant);
}

.answer {
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 65ch;
}

.lead .answer {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    line-height: 1.55;
    max-width: 52ch;
}

.detail {
    color: var(--ink-muted);
    max-width: 65ch;
}

.split {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

.split > * {
    min-width: 0;
}

/* Rules read as sentences: lead, plate, note */
.rule-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    border-top: 1px solid var(--outline-variant);
}

.rule-list > li {
    display: grid;
    gap: 0.5rem 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.rule-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0;
}

.rule-kind {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--ink-muted);
    min-width: 0;
}

.rule-note {
    color: var(--ink-muted);
    font-size: 0.9375rem;
}

.rule-list p {
    margin: 0;
    max-width: 44ch;
}

/* Test box */
.testbox {
    margin: 0;
    background: var(--plate-white);
    color: var(--ink);
    border: 1px solid var(--outline-variant);
    border-radius: var(--r-lg);
    padding: 1.25rem;
}

.testbox-field {
    border: 1.5px solid var(--primary);
    border-radius: var(--r-sm);
    padding: 0.875rem 1rem;
    position: relative;
    margin: 0.5rem 0 1.25rem;
}

.testbox-label {
    position: absolute;
    top: -0.7rem;
    left: 0.75rem;
    padding: 0 0.25rem;
    background: var(--plate-white);
    color: var(--primary);
    font-size: 0.8125rem;
    line-height: 1.2rem;
}

.testbox-value {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.875rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.verdict {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
    margin-bottom: 0.75rem;
}

.testbox .why {
    margin-bottom: 0.25rem;
}

.testbox .digits {
    font-size: 0.875rem;
    color: var(--ink-muted);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--outline-variant);
    margin-bottom: 1rem;
}

.trace-title {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.trace {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.trace li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--r-sm);
}

.trace li.matched {
    background: var(--brass-pale);
    color: var(--on-brass);
}

.trace svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trace .rule-name {
    display: block;
    font-weight: 500;
    line-height: 1.35;
}

.trace small {
    display: block;
    font-size: 0.8125rem;
    color: inherit;
    opacity: 0.85;
}

.trace li > span:first-of-type {
    flex: 1 1 8rem;
    min-width: 0;
}

.trace .result {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 500;
}

figcaption {
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin-top: 0.75rem;
}

/* Outcome legend: the three plate forms */
.outcomes {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--outline-variant);
}

.outcomes li {
    display: grid;
    gap: 0.625rem 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.outcome-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
}

.outcomes p {
    margin: 0;
    max-width: 48ch;
}

/* Settings-style switch list (static description, not controls) */
.modes {
    margin: 2rem 0 0;
    padding: 0;
}

.modes div {
    padding: 1rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.modes div:first-child {
    border-top: 1px solid var(--outline-variant);
}

.modes dt {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.modes dd {
    margin: 0;
    max-width: 52ch;
}

.shot {
    margin: 0;
}

.shot img {
    border-radius: var(--r-md);
}

.shot-narrow {
    max-width: 18rem;
}

/* Privacy facts */
.facts {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--outline-variant);
}

.facts div {
    display: grid;
    gap: 0.125rem 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.facts dt {
    font-weight: 500;
}

.facts dd {
    margin: 0;
    color: var(--ink-muted);
}

/* "Doesn't do" list */
.nots {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.875rem;
    max-width: 62ch;
}

.nots li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.nots svg {
    width: 22px;
    height: 22px;
    margin-top: 0.15rem;
    fill: none;
    stroke: var(--ink-muted);
    stroke-width: 2;
    stroke-linecap: round;
}

.ruled {
    gap: 0;
    border-top: 1px solid var(--outline-variant);
}

.ruled li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

/* Gallery */
.gallery {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
}

.gallery figcaption {
    margin-top: 0.625rem;
    line-height: 1.45;
}

/* Question links */
.qlinks {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--outline-variant);
}

.qlinks a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--outline-variant);
    color: var(--ink);
    font-weight: 500;
    font-size: 1.0625rem;
    text-decoration: none;
}

.qlinks a:hover span {
    text-decoration: underline;
}

.qlinks svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Closing door */
.door-end {
    padding: 2.5rem 0;
}

.door-end .door-field {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
    padding: 1.75rem 1.25rem 1.25rem;
}

.door-end h2 {
    margin: 0;
    max-width: 18ch;
}

.door-end .lamp {
    width: 64px;
    height: 64px;
}

/* ---------- Inner pages ---------- */

.page-head {
    padding: 1.5rem 0 2.5rem;
    border-bottom: 1px solid var(--outline-variant);
}

.page-head h1 {
    font-size: clamp(min(2.25rem, 9vw), 1.6rem + 2.6vw, 3.5rem);
    line-height: 1.05;
    margin: 1rem 0 1rem;
    max-width: 20ch;
}

.lede {
    font-size: 1.125rem;
    max-width: 62ch;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

.crumbs li {
    display: inline-flex;
    align-items: center;
}

.crumbs li + li::before {
    content: "/";
    padding: 0 0.5rem;
    color: var(--outline);
}

.crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: inherit;
}

.toc ul {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.toc a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid var(--outline-variant);
    border-radius: 999px;
    background: var(--plate-white);
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
}

.toc a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.steps > section {
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--outline-variant);
    scroll-margin-top: 1rem;
}

.steps > section:last-child {
    border-bottom: 0;
}

.steps h2 {
    font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
}

/* Check order: a real sequence, so it is numbered */
.order {
    list-style: none;
    counter-reset: step;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0;
    max-width: 46rem;
}

.order > li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0 1rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.order > li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--plate-solid);
    color: var(--plate-solid-ink);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.order > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1.25rem - 1px);
    top: 2.75rem;
    bottom: 0.25rem;
    width: 2px;
    background: var(--outline-variant);
}

.order h3 {
    font-size: 1.25rem;
    margin: 0.4rem 0 0.375rem;
}

.order p {
    margin: 0 0 0.5rem;
}

.order .tag {
    white-space: normal;
}

.order .outcome-head {
    margin-top: 0.25rem;
}

/* Tables (stack into rows under 600px) */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 0;
    font-size: 0.9875rem;
}

.table caption {
    text-align: left;
    color: var(--ink-muted);
    font-size: 0.9375rem;
    padding-bottom: 0.75rem;
}

.table th,
.table td {
    text-align: left;
    vertical-align: top;
    padding: 0.875rem 1rem 0.875rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.table thead th {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--ink-muted);
    border-bottom-color: var(--outline);
}

.table tbody th {
    font-weight: 500;
}

.ledger > section {
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--outline-variant);
    scroll-margin-top: 1rem;
}

.ledger > section:last-child {
    border-bottom: 0;
}

.ledger h2 {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
    margin-bottom: 0.875rem;
    max-width: 32ch;
}

.prose-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 70ch;
    border-top: 1px solid var(--outline-variant);
}

.prose-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.prose-list strong {
    font-weight: 600;
}

.prose {
    max-width: 65ch;
}

/* ---------- Footer ---------- */

.footer {
    background: var(--container-low);
    color: var(--ink);
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--outline-variant);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.25rem;
}

.footer-top p {
    margin: 0;
}

.footer-top strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.375rem;
}

.footer-links {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
}

.footer-links a {
    overflow-wrap: anywhere;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--ink);
}

.fine {
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.fine p {
    margin-bottom: 0.375rem;
}

.fine a {
    color: inherit;
    display: inline-block;
    padding: 0.75rem 0;
    margin: -0.75rem 0;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 37.5rem) {
    .table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .table,
    .table tbody,
    .table tr,
    .table th,
    .table td {
        display: block;
        width: 100%;
    }

    .table caption {
        display: block;
        width: 100%;
    }

    .table tr {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--outline-variant);
    }

    .table th,
    .table td {
        border: 0;
        padding: 0.25rem 0;
    }

    .table [data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.8125rem;
        font-weight: 500;
        color: var(--ink-muted);
    }
}

@media (min-width: 40rem) {
    :root {
        --gutter: 2rem;
    }

    .door-field {
        padding: 2rem 2rem 1.5rem;
    }

    .rule-list > li {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }

    .outcomes li {
        grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
        align-items: center;
    }

    .facts div {
        grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    }

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

    .door-end .door-field {
        padding: 2.5rem 2rem 1.75rem;
    }
}

@media (min-width: 60rem) {
    .hero {
        padding: 1rem 0 3.5rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        gap: 3rem;
    }

    .hero .door-field {
        padding: 2.5rem 2.5rem 2rem;
    }

    .hero-shot {
        max-width: 22rem;
    }

    .section {
        padding: 5rem 0;
    }

    .section + .section {
        padding-top: 1.5rem;
    }

    .split {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 4rem;
    }

    .split-media {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

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

    .door-end .door-field {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 2rem;
        padding: 2rem 2.5rem;
    }

    .page-head {
        padding: 2rem 0 3.5rem;
    }
}
