/*
 * mesangebleue.io marketing site.
 * Plain CSS, no build step. Palette borrows from the bird the product is
 * named after (the blue tit: cobalt cap, yellow breast, navy eye-stripe,
 * white cheek) and from the neon logo for small accents.
 */

:root {
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --surface: #ffffff;
  --ink: #0f2138;
  --ink-2: #263a55;
  --muted: #4e5e73;
  --rule: #d9d4c7;
  --rule-strong: #b9b2a1;
  --cobalt: #1d52bd;
  --cobalt-ink: #ffffff;
  --cobalt-soft: #e3ebfa;
  --yellow: #f2c230;
  --yellow-ink: #1a1503;
  --teal: #0f8fa3;
  --magenta: #b4329a;
  --band: #0c1a2e;
  --band-ink: #e8eef7;
  --band-muted: #a6b5cb;
  --band-rule: #22385a;
  --code-bg: #0b1626;
  --code-ink: #e3eaf5;
  --code-dim: #8597b1;
  --code-ok: #7ee2a8;
  --code-key: #8cc2ff;
  --tbd-bg: #fff3c4;
  --tbd-ink: #5a4500;
  --shadow: 0 1px 0 rgba(15, 33, 56, 0.04), 0 10px 30px -18px rgba(15, 33, 56, 0.35);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, ui-serif, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #09121f;
    --paper-2: #0d1828;
    --surface: #101d31;
    --ink: #e8eef7;
    --ink-2: #cdd7e6;
    --muted: #9eaec4;
    --rule: #1f3150;
    --rule-strong: #2f4670;
    --cobalt: #86aeff;
    --cobalt-ink: #08111e;
    --cobalt-soft: #142a4d;
    --yellow: #f2c230;
    --yellow-ink: #1a1503;
    --teal: #4fd1e3;
    --magenta: #e07acb;
    --band: #050b15;
    --band-ink: #e8eef7;
    --band-muted: #a6b5cb;
    --band-rule: #1c2e4b;
    --code-bg: #050c17;
    --tbd-bg: #3d3108;
    --tbd-ink: #ffe68a;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 32px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
code, pre, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
p code, li code, td code, dd code {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--yellow-ink);
  padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 8px; }

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

/* Placeholder content the founder still has to supply. Deliberately loud. */
.tbd {
  background: var(--tbd-bg); color: var(--tbd-ink);
  border: 1px dashed currentColor; border-radius: 4px;
  padding: 0 0.35em; font-size: 0.92em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 54px; height: 30px; border-radius: 8px; overflow: hidden;
  background: #071019; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; }

.nav { margin-left: auto; display: none; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.96rem; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
.nav .btn { margin-left: 8px; }
@media (min-width: 900px) { .nav { display: flex; } .menu { display: none; } }

.menu { margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  border: 1px solid var(--rule-strong); border-radius: 8px;
  padding: 7px 14px; font-weight: 600; font-size: 0.95rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--paper-2); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; display: grid;
}
.menu-panel a { color: var(--ink); text-decoration: none; padding: 11px 12px; border-radius: 8px; }
.menu-panel a:hover { background: var(--paper-2); }
.menu-panel .btn { margin-top: 6px; justify-content: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.98rem/1 var(--sans);
  padding: 13px 18px; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cobalt); color: var(--cobalt-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--cobalt) 88%, var(--ink)); }
.btn-ghost { color: var(--ink); border-color: var(--rule-strong); background: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-small { padding: 9px 14px; font-size: 0.92rem; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .hero { padding: 88px 0 72px; } }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 56px; } }
.eyebrow {
  font: 600 0.8rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.eyebrow span + span::before { content: "/"; margin-right: 14px; color: var(--rule-strong); }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 0.06em; }
@media (prefers-color-scheme: dark) { .hl { background: linear-gradient(transparent 66%, rgba(242, 194, 48, 0.55) 66%, rgba(242, 194, 48, 0.55) 92%, transparent 92%); } }
.hero h1 code { font-family: var(--mono); font-size: 0.8em; letter-spacing: -0.03em; font-weight: 600; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--ink-2); max-width: 36em; margin: 22px 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.install {
  margin-top: 26px; display: flex; align-items: stretch; max-width: 34rem;
  border: 1px solid var(--rule-strong); border-radius: 10px; overflow: hidden; background: var(--surface);
}
.install code {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 0.86rem;
  overflow-x: auto; white-space: nowrap; border: 0; background: none;
}
.install code::before { content: "$ "; color: var(--muted); }
.copy {
  border: 0; border-left: 1px solid var(--rule); background: var(--paper-2); color: var(--ink);
  font: 600 0.82rem var(--sans); padding: 0 14px; cursor: pointer; min-width: 72px;
}
.copy:hover { background: var(--cobalt-soft); }
.install-note { font-size: 0.88rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- figures / terminal ---------- */

.figure { margin: 0; }
.figcap {
  font: 0.8rem/1.4 var(--mono); color: var(--muted); margin-top: 10px;
  display: flex; gap: 10px; align-items: baseline;
}
.figcap b { color: var(--ink); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.term {
  background: var(--code-bg); color: var(--code-ink);
  border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a52; }
.term-bar span { margin-left: 8px; font: 0.76rem var(--mono); color: var(--code-dim); }
.term pre {
  margin: 0; padding: 18px 18px 20px; overflow-x: auto;
  font-size: 0.84rem; line-height: 1.75; tab-size: 2;
}
.term .p { color: var(--code-dim); user-select: none; }
.term .c { color: var(--code-dim); }
.term .ok { color: var(--code-ok); }
.term .k { color: var(--code-key); }
.term .y { color: var(--yellow); }

/* ---------- sections ---------- */

.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 760px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.kicker {
  font: 600 0.78rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cobalt); display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--yellow); }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > li {
  counter-increment: step; position: relative;
  padding: 28px 0 32px; border-top: 1px solid var(--rule-strong);
  min-width: 0;
}
@media (min-width: 900px) { .steps > li { padding: 28px 28px 8px 0; } .steps > li + li { padding-left: 28px; border-left: 1px solid var(--rule); } }
.steps > li::before {
  content: "0" counter(step);
  font: 600 0.82rem var(--mono); color: var(--muted); letter-spacing: 0.08em;
  display: block; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
.snippet {
  background: var(--code-bg); color: var(--code-ink); border-radius: 10px;
  padding: 14px 16px; font-size: 0.82rem; line-height: 1.7; margin: 14px 0 0; overflow-x: auto;
}
.snippet .p, .snippet .c { color: var(--code-dim); }
.snippet .ok { color: var(--code-ok); }

/* capability plates */
.plates { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
@media (min-width: 640px) { .plates { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plates { grid-template-columns: repeat(3, 1fr); } }
.plate { background: var(--surface); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plate .tag {
  align-self: flex-start;
  font: 600 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 10px;
}
.plate p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.plate .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.94rem; }
.plate-wide { background: var(--paper-2); }
@media (min-width: 1000px) { .plate-wide { grid-column: span 2; } }

/* runtimes strip */
.runtimes { display: grid; gap: 16px; }
@media (min-width: 900px) { .runtimes { grid-template-columns: repeat(3, 1fr); } }
.runtime {
  border: 1px solid var(--rule); border-radius: 16px; background: var(--surface);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.runtime .file { font: 600 0.84rem var(--mono); color: var(--teal); }
.runtime p { margin: 0; color: var(--ink-2); }
.runtime ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: 0.95rem; }
.runtime li { margin: 4px 0; }

/* security band (dark in both schemes) */
.band { background: var(--band); color: var(--band-ink); border-bottom: 0; }
.band .kicker { color: #8cc2ff; }
.band .section-head p { color: var(--band-muted); }
.band a { color: #a9c8ff; }
.band p code, .band li code { background: rgba(255, 255, 255, 0.06); border-color: var(--band-rule); color: var(--band-ink); }
.guard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: g; }
@media (min-width: 800px) { .guard-list { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.guard-list li { counter-increment: g; padding: 22px 0 22px 52px; border-top: 1px solid var(--band-rule); position: relative; min-width: 0; }
.guard-list li::before {
  content: counter(g, decimal-leading-zero);
  position: absolute; left: 0; top: 24px;
  font: 600 0.8rem var(--mono); color: var(--yellow);
}
.guard-list h3 { font-size: 1.12rem; margin-bottom: 6px; }
.guard-list p { margin: 0; color: var(--band-muted); font-size: 0.97rem; }
.band .btn-ghost { color: var(--band-ink); border-color: var(--band-rule); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* split layout */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px;
  border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg);
}

/* call to action */
.cta { padding: 80px 0; }
.cta-box {
  border: 1px solid var(--rule-strong); border-radius: 20px; background: var(--surface);
  padding: 36px 24px; display: grid; gap: 24px; position: relative; overflow: hidden;
}
@media (min-width: 800px) { .cta-box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 52px; } }
.cta-box::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 26px solid var(--yellow); opacity: 0.22; pointer-events: none;
}
.cta-box p { color: var(--ink-2); margin: 12px 0 0; }
.cta-box .actions { position: relative; z-index: 1; }

/* ---------- inner pages ---------- */

.page-head { padding: 56px 0 44px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .page-head { padding: 84px 0 60px; } }
.page-head .lede { margin-bottom: 0; }

.with-toc { display: grid; gap: 32px; padding-top: 32px; }
@media (min-width: 1000px) { .with-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 0; } }
.toc { font-size: 0.94rem; }
.toc p { font: 600 0.74rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.toc a { color: var(--ink-2); text-decoration: none; display: block; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--rule); }
.toc a:hover { color: var(--ink); background: var(--paper-2); }
@media (min-width: 1000px) {
  .toc { position: sticky; top: 96px; align-self: start; padding-top: 64px; }
  .toc ol { display: block; border-left: 1px solid var(--rule); }
  .toc a { border: 0; border-radius: 0; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; }
  .toc a:hover { border-left-color: var(--yellow); background: none; }
}

.offer { padding: 56px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.offer:last-child { border-bottom: 0; }
@media (min-width: 1000px) { .offer { padding: 64px 0; } }
.offer > h2 { margin: 10px 0 14px; }
.offer > p, .offer .intro { color: var(--ink-2); max-width: 46em; }
.offer h3 { margin: 28px 0 10px; }

.cols { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); padding: 22px; min-width: 0; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0 0 0.6em; color: var(--ink-2); font-size: 0.97rem; }
.card p:last-child { margin-bottom: 0; }
.card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.93rem; }
.card dt { color: var(--muted); }
.card dd { margin: 0; color: var(--ink-2); min-width: 0; }
.card .snippet { margin-top: 14px; }

.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; padding: 14px 16px 0; color: var(--muted); font-size: 0.88rem; caption-side: bottom; padding-bottom: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font: 600 0.78rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }

.plans-table th[scope="col"]:not(:first-child), .plans-table td { text-align: center; }
.plans-table thead th { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--ink); }
.plans-table tbody th { font-weight: 500; color: var(--ink-2); white-space: normal; min-width: 11em; }
.plans-table .yes { color: var(--teal); font-weight: 700; }
.plans-table .no { color: var(--muted); }

.note {
  border-left: 3px solid var(--yellow); background: var(--paper-2);
  padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink-2); margin: 24px 0 0; font-size: 0.96rem;
}
.note p:last-child { margin: 0; }

/* pipeline diagram (security page) */
.pipeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: stage; }
@media (min-width: 760px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .pipeline { grid-template-columns: repeat(6, 1fr); } }
.pipeline li {
  counter-increment: stage; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface);
  padding: 16px; position: relative; min-width: 0;
}
.pipeline li::before { content: "Stage " counter(stage); display: block; font: 600 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pipeline b { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: 4px; }
.pipeline span { font-size: 0.9rem; color: var(--ink-2); }
.pipeline li.mark { border-color: var(--yellow); box-shadow: inset 0 3px 0 var(--yellow); }

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

.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 0.94rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-grid h2 { font: 600 0.76rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about p { color: var(--muted); margin: 14px 0 0; max-width: 28em; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- 404 ---------- */

.lost { padding: 96px 0 120px; }
.lost .code { font: 600 0.9rem var(--mono); color: var(--muted); letter-spacing: 0.1em; }
.lost h1 { margin: 12px 0 18px; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header, .site-footer, .cta, .menu { display: none; }
  .band { background: none; color: inherit; }
}
.band-more { margin-top: 36px; }

/* Buttons inside nav lists keep button colours. */
.nav a.btn-primary, .menu-panel a.btn-primary { color: var(--cobalt-ink); background: var(--cobalt); }
.nav a.btn-primary:hover, .menu-panel a.btn-primary:hover { background: color-mix(in srgb, var(--cobalt) 88%, var(--ink)); color: var(--cobalt-ink); }
.figcap b { white-space: nowrap; }
.card dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.card dt { font: 600 0.74rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }
.install code { scrollbar-width: none; }
.install code::-webkit-scrollbar { display: none; }
pre code { background: none !important; border: 0 !important; padding: 0 !important; color: inherit; overflow-wrap: normal !important; }

/* Grid items default to min-width:auto, which lets a long code line widen
   the whole page on phones. Single-column grids get a shrinkable track. */
.hero-grid, .with-toc, .split, .cols, .runtimes, .footer-grid { grid-template-columns: minmax(0, 1fr); }
.hero-grid > *, .with-toc > *, .split > *, .cta-box > * { min-width: 0; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .with-toc { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .runtimes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
