/* CrossBus live demos — shared design system.
   Instrument-panel look: cool paper, ink, and one colour per message kind,
   the same colours the bus trace uses for requests, responses and signals. */

:root {
    --paper: #edf0f2;
    --panel: #f8f9fa;
    --sunken: #e3e8ec;
    --ink: #101820;
    --ink-2: #4a5866;
    --ink-3: #7a8793;
    --rule: #ced6dd;
    --req: #2f5bff;
    --res: #0e9f76;
    --sig: #c98a00;
    --bad: #d0342c;
    --focus: #2f5bff;
    --shadow: 0 1px 0 rgba(16, 24, 32, .04), 0 8px 24px -12px rgba(16, 24, 32, .18);
    --radius: 10px;
    --display: 'Schibsted Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
    --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0d141a;
        --panel: #131c24;
        --sunken: #0a1015;
        --ink: #e6ecf1;
        --ink-2: #9aa7b3;
        --ink-3: #6b7885;
        --rule: #24313c;
        --req: #7b95ff;
        --res: #33c79d;
        --sig: #e8b23a;
        --bad: #ff6b60;
        --focus: #7b95ff;
        --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.55 var(--body);
    /* Faint measurement grid: the page reads as an instrument's graph paper. */
    background-image:
        linear-gradient(var(--rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -1px -1px;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--paper);
    opacity: .82;
    pointer-events: none;
    z-index: -1;
}

a { color: inherit; }

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

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}

.topbar .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 56px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 17px/1 var(--display);
    letter-spacing: -.01em;
    text-decoration: none;
}

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

.brand small {
    font: 500 12px/1 var(--mono);
    color: var(--ink-3);
    letter-spacing: 0;
}

/* Site navigation, identical on every page. */
.site-nav { display: flex; gap: 2px; margin-left: auto; }

.site-nav a, .subnav a {
    padding: 7px 12px;
    border-radius: 7px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.site-nav a:hover, .subnav a:hover { color: var(--ink); background: var(--sunken); }

.site-nav a[aria-current], .subnav a[aria-current='page'] { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); }

.nav-ext { display: flex; gap: 6px; }

.pill {
    font: 500 12px/1 var(--mono);
    color: var(--ink-2);
    text-decoration: none;
    padding: 6px 8px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    white-space: nowrap;
}

.pill:hover { color: var(--ink); background: var(--sunken); }

/* Second row on the demo pages: the demos themselves. */
.subnav { border-top: 1px solid var(--rule); }

.subnav .wrap { min-height: 42px; gap: 2px; overflow-x: auto; scrollbar-width: none; }

.subnav .wrap > span {
    margin-right: 8px;
    font: 600 11px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.subnav a { padding: 5px 10px; font-size: 13px; }

/* ── Page header ─────────────────────────────────────────── */

.page-head { padding: 56px 0 28px; }

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.eyebrow li {
    font: 500 12px/1 var(--mono);
    color: var(--ink-2);
    padding: 6px 8px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--panel);
}

h1 {
    margin: 0;
    max-width: 18ch;
    font: 700 clamp(34px, 5.2vw, 60px)/1.02 var(--display);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.lede {
    max-width: 62ch;
    margin: 18px 0 0;
    color: var(--ink-2);
    font-size: 18px;
}

/* ── Workbench: stage + control rail ─────────────────────── */

.bench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.surface {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stage { position: relative; overflow: hidden; }

.stage canvas { display: block; width: 100%; height: auto; touch-action: none; }

.stage-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--rule);
    font: 400 12px/1.4 var(--mono);
    color: var(--ink-3);
}

.rail { display: grid; gap: 16px; }

.rail section { padding: 16px; }

.rail h2, .panel-title {
    margin: 0 0 12px;
    font: 600 11px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.field { display: grid; gap: 8px; margin-bottom: 14px; }

.field:last-child { margin-bottom: 0; }

.field > span { font-size: 13px; color: var(--ink-2); }

/* Segmented control built from radio inputs. */
.segmented {
    display: flex;
    padding: 3px;
    gap: 2px;
    background: var(--sunken);
    border-radius: 8px;
    border: 1px solid var(--rule);
}

.segmented label { flex: 1; position: relative; }

.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }

.segmented span {
    display: block;
    padding: 6px 4px;
    border-radius: 6px;
    text-align: center;
    font: 500 13px/1.2 var(--mono);
    color: var(--ink-2);
}

.segmented input:checked + span { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 32, .12); }

.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }

.segmented input:disabled + span { opacity: .45; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font: 600 14px/1.2 var(--body);
    cursor: pointer;
    text-decoration: none;
    transition: transform .08s ease, background .15s ease;
}

.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--req)); }

.btn:active { transform: translateY(1px); }

.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }

.btn.ghost:hover { background: var(--sunken); }

.btn.block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Readouts: instrument-style numeric display. */
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }

.readout { background: var(--panel); padding: 10px 12px; min-width: 0; }

.readout dt { font-size: 12px; color: var(--ink-3); }

.readout dd {
    margin: 2px 0 0;
    font: 500 20px/1.2 var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.readout dd small { font-size: 12px; color: var(--ink-3); margin-left: 2px; }

.readout.wide { grid-column: 1 / -1; }

/* Readout band under a stage. */
.band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr) minmax(0, 1.3fr);
    gap: 1px;
    margin: 0;
    background: var(--rule);
    border-top: 1px solid var(--rule);
}

.band .readout { padding: 12px 14px; }
.band .readout dd { font-size: 18px; }

.zoom-row { margin-top: 8px; }
.zoom-row .btn { flex: 1; }
.zoom-row #reset { flex: 2; }

.note { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }

.readout[data-state='warn'] dd { color: var(--sig); }
.readout[data-state='bad'] dd { color: var(--bad); }

/* Main-thread heartbeat: a dot driven by requestAnimationFrame. */
.beat { position: relative; height: 22px; margin-top: 10px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--rule); }
.beat::before { content: ''; position: absolute; inset: 10px 12px auto; height: 1px; background: var(--rule); }
.beat-track { position: absolute; inset: 0 11px; }
.beat-dot { position: absolute; top: 5px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--req); will-change: transform; }
.beat-dot-wrap { position: absolute; inset: 0; }

/* ── Bus trace (signature) ───────────────────────────────── */

.trace { margin-top: 16px; }

.trace-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--rule);
}

.trace-head .panel-title { margin: 0; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; font: 500 12px/1 var(--mono); color: var(--ink-2); }

.legend li { display: inline-flex; align-items: center; gap: 6px; }

.legend i { width: 10px; height: 3px; border-radius: 2px; background: currentColor; }

.legend .k-req i { background: var(--req); }
.legend .k-res i { background: var(--res); }
.legend .k-sig i { background: var(--sig); }
.legend .k-bad i { background: var(--bad); }

.legend b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.trace canvas { display: block; width: 100%; height: 168px; }

.trace-foot { padding: 8px 14px; border-top: 1px solid var(--rule); font: 400 12px/1.4 var(--mono); color: var(--ink-3); }

/* ── Source panels ───────────────────────────────────────── */

.wiring { padding: 56px 0 24px; }

.wiring > h2 {
    margin: 0 0 6px;
    font: 700 28px/1.1 var(--display);
    letter-spacing: -.02em;
}

.wiring > p { margin: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

.sources { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }

.source { overflow: hidden; }

.source header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
    font: 500 12px/1.4 var(--mono);
    color: var(--ink-2);
}

.source header a { color: var(--ink-3); }

.source pre {
    margin: 0;
    padding: 14px;
    max-height: 460px;
    overflow: auto;
    background: var(--sunken);
    font: 400 12.5px/1.6 var(--mono);
    tab-size: 4;
}

.tok-c { color: var(--ink-3); font-style: italic; }
.tok-s { color: var(--res); }
.tok-k { color: var(--req); }
.tok-n { color: var(--sig); }

/* ── Footer ──────────────────────────────────────────────── */

.foot {
    margin-top: 72px;
    border-top: 1px solid var(--rule);
    background: color-mix(in srgb, var(--panel) 70%, transparent);
    color: var(--ink-3);
    font-size: 14px;
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 40px 0 28px;
}

.foot-brand .brand { color: var(--ink); }

.foot-brand p { max-width: 34ch; margin: 12px 0 0; }

.foot-grid h2 {
    margin: 2px 0 12px;
    font: 600 11px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.foot-grid nav a { display: block; width: fit-content; padding: 4px 0; color: var(--ink-2); text-decoration: none; }

.foot-grid nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.foot-legal { padding: 16px 0 32px; border-top: 1px solid var(--rule); font-size: 13px; }

.foot-legal a { color: var(--ink-2); }

/* Link to the next demo, at the end of each demo page. */
.next-demo {
    display: grid;
    gap: 4px;
    width: min(100%, 440px);
    margin: 48px 0 0 auto;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease;
}

.next-demo:hover { border-color: var(--ink-3); }

.next-demo .panel-title { margin: 0 0 4px; }

.next-demo strong { font: 700 19px/1.2 var(--display); letter-spacing: -.015em; }

.next-demo span:last-child { color: var(--ink-2); font-size: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font: 500 12px/1.3 var(--mono);
    border: 1px solid currentColor;
    white-space: nowrap;
}

.badge.ok { color: var(--res); }
.badge.bad { color: var(--bad); }
.badge.req { color: var(--req); }
.badge.sig { color: var(--sig); }
.badge.idle { color: var(--ink-3); }

@media (max-width: 920px) {
    .bench { grid-template-columns: 1fr; }
    .band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .band .beat-cell, .band .readout:last-child { grid-column: 1 / -1; }
    .page-head { padding-top: 36px; }
}

@media (max-width: 760px) {
    /* Two or three rows would take too much of a phone screen to stay pinned. */
    .topbar { position: static; }
    .topbar > .wrap { flex-wrap: wrap; gap: 0 12px; min-height: 52px; }
    .nav-ext { margin-left: auto; }
    /* Links move to their own scrollable row under the brand. */
    .site-nav { order: 3; width: calc(100% + 16px); margin: 0 -8px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .lede { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Tabs demo ───────────────────────────────────────────── */

.board-wrap {
    position: relative;
    background-color: var(--panel);
    background-image: radial-gradient(var(--rule) 1px, transparent 1.2px);
    background-size: 20px 20px;
}

.board-wrap canvas { cursor: crosshair; }

#cursors { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.cursor { position: absolute; display: flex; align-items: flex-start; gap: 4px; transition: left .06s linear, top .06s linear; }

.cursor svg { width: 16px; height: 16px; fill: currentColor; stroke: var(--panel); stroke-width: 1.2; }

.cursor span { margin-top: 12px; padding: 2px 6px; border-radius: 4px; background: currentColor; font: 500 11px/1.4 var(--mono); }

.cursor span::first-line { color: #fff; }

.board-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    margin: 0;
    padding: 10px 14px;
    border: 1px dashed var(--rule);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel) 80%, transparent);
    color: var(--ink-2);
    font-size: 14px;
    pointer-events: none;
    text-align: center;
}

.linklike {
    border: 0;
    padding: 0;
    background: none;
    color: var(--ink-2);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.me { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.me i { width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.me strong { display: block; font: 600 16px/1.2 var(--display); }

.me code, .tab-list code { font: 400 12px/1.4 var(--mono); color: var(--ink-3); }

.tab-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.tab-list li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }

.tab-list i { width: 12px; height: 12px; border-radius: 3px; }

/* ── Secure channel demo ─────────────────────────────────── */

.channel { display: grid; grid-template-columns: 216px minmax(0, 1fr) 216px; min-height: 460px; }

.endpoint { padding: 16px; }

.endpoint + .wire-col, .wire-col + .endpoint { border-left: 1px solid var(--rule); }

.btn-row.stack { flex-direction: column; }

.result { margin: 14px 0 0; font: 400 13px/1.45 var(--mono); color: var(--ink-2); }

.balance-label { margin: 0; font-size: 13px; color: var(--ink-3); }

.balance { margin: 2px 0 14px; font: 700 30px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.balance[data-state='bad'] { color: var(--bad); }

.ledger { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font: 400 13px/1.3 var(--mono); }

.ledger li { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--rule); }
.ledger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger b { font-weight: 500; white-space: nowrap; }

.ledger li.is-attack { color: var(--bad); }

.wire-col { display: flex; flex-direction: column; min-width: 0; background: var(--sunken); }

.wire-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 16px 16px 10px; }

.wire-head .panel-title { margin: 0; }

.mode { font: 500 12px/1 var(--mono); color: var(--res); }

body[data-encrypted='false'] .mode { color: var(--bad); }

.wire { flex: 1; margin: 0; padding: 0 12px 12px; list-style: none; display: grid; align-content: start; gap: 6px; max-height: 520px; overflow-y: auto; }

.env details { background: var(--panel); border: 1px solid var(--rule); border-left: 3px solid var(--sig); border-radius: 6px; }

.env.k-req details { border-left-color: var(--req); }
.env.k-res details { border-left-color: var(--res); }
.env.k-bad details { border-left-color: var(--bad); }
.env.is-injected details { border-style: dashed; border-left-style: solid; border-left-color: var(--bad); }
.env.is-injected .dir { color: var(--bad); }

.env summary {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 2px 10px;
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
    font: 400 12px/1.4 var(--mono);
    animation: arrive .35s ease-out;
}

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

.env .dir { color: var(--ink-3); }

.env .kind { color: var(--ink-2); }

.env .name { color: var(--ink); font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.env .body { grid-column: 1 / -1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.env pre { margin: 0; padding: 10px; border-top: 1px solid var(--rule); max-height: 240px; overflow: auto; font: 400 11.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }

@keyframes arrive { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.empty { margin: 4px 16px 16px; font-size: 13px; color: var(--ink-3); }

.endpoint .empty { margin: 0; }

.attacks { display: grid; gap: 8px; }

.attack {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.attack:hover { border-color: var(--bad); }

.attack b { font-weight: 600; font-size: 14px; }

.attack span { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

.attempts { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }

.attempts li { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 13px; }

.attempts .badge { justify-self: start; white-space: normal; }

@media (max-width: 760px) {
    .channel { grid-template-columns: 1fr; }
    .endpoint + .wire-col, .wire-col + .endpoint { border-left: 0; border-top: 1px solid var(--rule); }
    .wire { max-height: 360px; }
}

/* ── Demos index ─────────────────────────────────────────── */

.hero h1 { max-width: 20ch; font-size: clamp(38px, 6vw, 72px); }

.hero-trace { margin-top: 8px; }

.hero-trace canvas { height: 140px; }

.demos { display: grid; gap: 16px; margin-top: 56px; }

.demo-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.demo-kind { margin: 0 0 10px; font: 500 12px/1.4 var(--mono); color: var(--ink-3); }

.demo-copy h2 { margin: 0 0 10px; font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.025em; }

.demo-copy h2 a { text-decoration: none; }

.demo-copy h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.demo-copy > p:not(.demo-kind) { margin: 0 0 18px; color: var(--ink-2); max-width: 56ch; }

.demo-figure { margin: 0; padding: 12px; border-radius: 8px; background: var(--sunken); border: 1px solid var(--rule); }

.demo-figure svg { display: block; width: 100%; height: auto; }

.demo-figure .lane { stroke: var(--rule); stroke-dasharray: 2 4; }

.demo-figure .fan path, .demo-figure .cross { fill: none; stroke-width: 2; stroke-linecap: round; }

.demo-figure .dashed { stroke-dasharray: 4 4; }

.demo-figure .nodes rect { fill: var(--panel); stroke: var(--ink-3); }

.demo-figure text { fill: var(--ink-2); font: 500 11px var(--mono); text-anchor: middle; }

.demo-figure text.lbl { fill: var(--ink-3); text-anchor: start; }

.demo-figure text.lbl[text-anchor='middle'] { text-anchor: middle; }

.more { margin-top: 40px; max-width: 72ch; color: var(--ink-2); }

.more code { font: 400 14px var(--mono); }

@media (max-width: 760px) {
    .demo-row { grid-template-columns: 1fr; padding: 20px; }
}
