/* Self-hosted for explainer. Regenerate with fetch_fonts.py. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.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: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/TK3IWkUHHAIjg75cFRf3bXL8LICs1_Fv40pKlN4NNSeSASz7FmlYHYjedg.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: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/TK3IWkUHHAIjg75cFRf3bXL8LICs1_Fv40pKlN4NNSeSASz7FmlWHYg.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;
}

/* What Is Döner — an answer desk. Sticky question rail, answer card, cards. */

:root {
    --bg: #ffffff;
    --bg-sink: #f4f5f7;
    --ink: #101418;
    --ink-soft: #5b6570;
    --line: #e2e6ea;
    --line-firm: #cbd2d9;
    --brand: #0f5c4a;
    --brand-tint: #e8f3ef;
    --brand-deep: #0a4033;
    --warn: #b4530f;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 20, 24, 0.05), 0 8px 24px -12px rgba(16, 20, 24, 0.18);
    --rail: 16rem;
    --gutter: clamp(1.1rem, 4vw, 2.5rem);
    --ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--ui);
    font-size: 17px;
    line-height: 1.62;
    font-feature-settings: "cv05", "ss01";
    -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ---------- top bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}

.topbar-in {
    max-width: 78rem;
    margin: 0 auto;
    padding: 0.7rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.brand-name {
    font-weight: 650;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.3rem;
}

.topbar-nav a {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.topbar-nav a:hover {
    background: var(--bg-sink);
    color: var(--ink);
}

.topbar-nav a[aria-current="page"] {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

/* ---------- shell ---------- */

.shell {
    max-width: 78rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.rail {
    position: sticky;
    top: 4.2rem;
    padding: 2rem 0;
    max-height: calc(100vh - 4.2rem);
    overflow-y: auto;
}

.rail-label {
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 0.7rem;
}

.rail ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--line);
}

.rail li {
    margin: 0;
}

.rail a {
    display: block;
    padding: 0.4rem 0 0.4rem 0.8rem;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 0.87rem;
    line-height: 1.35;
    color: var(--ink-soft);
    text-decoration: none;
}

.rail a:hover {
    color: var(--ink);
}

.rail a[aria-current="page"] {
    color: var(--brand-deep);
    font-weight: 600;
    border-left-color: var(--brand);
}

main {
    min-width: 0;
    padding: 2rem 0 0;
    max-width: 44rem;
}

/* ---------- question head ---------- */

h1 {
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}

.answer-card {
    margin: 1.4rem 0 0;
    padding: 1.15rem 1.35rem;
    background: var(--brand-tint);
    border: 1px solid #cfe4dc;
    border-radius: var(--radius);
}

.answer-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 0.4rem;
}

.answer-text {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.5;
    color: #10352c;
    font-weight: 450;
    text-wrap: pretty;
}

/* ---------- prose ---------- */

.prose {
    padding-top: 1.9rem;
}

.prose p {
    margin: 0 0 1.1em;
    text-wrap: pretty;
}

.prose h2 {
    font-size: 1.32rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    margin: 2.4rem 0 0.7rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    scroll-margin-top: 5rem;
}

.prose h3 {
    font-size: 1.03rem;
    font-weight: 650;
    margin: 1.7rem 0 0.4rem;
}

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

.prose li {
    margin: 0.3em 0;
}

.prose li::marker {
    color: var(--brand);
}

figure {
    margin: 1.8rem 0;
}

figure img {
    width: 100%;
    border-radius: var(--radius);
}

figcaption {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-soft);
    margin-top: 0.55rem;
}

.hero {
    margin: 1.6rem 0 0;
}

.hero img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Certification marks are marks, not photographs. */
.badge {
    width: min(11rem, 45%);
    margin: 1.6rem 0;
    border-radius: 0;
}

/* ---------- components ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.9rem;
    margin: 1.9rem 0;
}

.cards a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    font-weight: 550;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.cards a::after {
    content: "→";
    color: var(--brand);
    font-size: 0.95rem;
    flex: none;
}

.cards a:hover {
    border-color: var(--line-firm);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.callout {
    margin: 1.8rem 0;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: #fdf6ec;
    border: 1px solid #f0dfc4;
    font-size: 0.96rem;
}

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

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

.callout strong {
    color: var(--warn);
}

/* ---------- tables ---------- */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.9rem 0;
    font-size: 0.92rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

th {
    background: var(--bg-sink);
    text-align: left;
    font-weight: 650;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--line);
}

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

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

/* ---------- faq accordion ---------- */

.faq {
    margin-top: 2.8rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.faq h2 {
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    margin: 0 0 0.9rem;
}

details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 0.55rem;
    background: var(--bg);
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 0.8rem 2.4rem 0.8rem 1rem;
    font-weight: 550;
    font-size: 0.97rem;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 1.15rem;
    line-height: 1;
}

details[open] summary::after {
    content: "–";
}

details[open] summary {
    border-bottom: 1px solid var(--line);
}

details p {
    margin: 0;
    padding: 0.85rem 1rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* ---------- footer ---------- */

.foot {
    margin-top: 2.5rem;
    padding: 1.5rem 0 3rem;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-bottom: 0.6rem;
}

.foot p {
    margin: 0;
}

@media (max-width: 60rem) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .rail {
        position: static;
        max-height: none;
        padding: 1.4rem 0 0;
        order: 2;
        border-top: 1px solid var(--line);
    }

    .rail ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
        border-left: 0;
    }

    .rail a {
        border-left: 0;
        padding-left: 0;
    }

    main {
        max-width: none;
    }
}

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

    .cards a:hover {
        transform: none;
    }
}

/* The bright gold is used on black; the deeper value keeps contrast on light
   backgrounds. */
:root {
    --gold: #f7b001;
    --gold-lift: #ffc93a;
    --gold-ink: #9a6a00;
    --black: #0b0b0b;
    --poster: Oswald, "Arial Narrow", Impact, sans-serif;
}

/* ---------- editorial components: bands, posters, stats, plates ---------- */

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(--bg-sink);
    border-block: 1px solid var(--line);
}

.band.dark {
    color: #e8ecef;
}

.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: 600;
    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: 600;
    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: 600;
    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: 600;
    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: #a7b0b8;
}

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

/* The commissioned 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: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.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: #a7b0b8;
}

/* 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%;
}

/* Two photographs side by side only look deliberate at a matched height. A
   diagram must never take this, which is why it is opt-in. */
.split.pair {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
}

.split.pair img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.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: 600;
    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: 600;
    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: 600;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

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

/* ---------- answer-desk shell treatment ---------- */

:root {
    --brand: #8a5f00;
    --brand-tint: #fdf5e2;
    --brand-deep: #6b4a00;
}

.brand-mark {
    background: var(--gold);
    color: var(--black);
}

.brand-name,
.rail-label,
.answer-label,
.topbar-nav a {
    font-family: var(--poster);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.answer-card {
    border-left: 4px solid var(--gold);
}

.faq details summary {
    font-family: var(--poster);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.qa-head h1 {
    font-family: var(--poster);
    font-weight: 600;
    font-size: clamp(2rem, 1.3rem + 3.2vw, 3.2rem);
    line-height: 1;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

/* FAQ sections use a solid black bar of poster caps. */
.faq h2 {
    font-family: var(--poster);
    font-weight: 600;
    font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    background: var(--black);
    color: #fff;
    padding: 0.85rem 1rem;
    margin: 0 0 1.5rem;
    border: 0;
}

/* The logo row arrives from markdown as one paragraph of images, so the flex
   container has to be the paragraph as well as the wrapper. */
.press p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: inherit;
    margin: 0;
}

/* Every press logo is a 100px square tile, so the row is a row of badges
   rather than a row of wordmarks. */
.press img {
    height: 3.4rem;
    width: 3.4rem;
    border-radius: 6px;
}

.dark .press img {
    filter: none;
    opacity: 1;
}

/* The number and its label share one paragraph; only the sentence under them
   wants the caption margin. */
.stat>p:first-child {
    margin: 0;
}