
:root {
  color-scheme: dark;
  --night: #0E0A2B;
  --night-2: #151040;
  --surface: #1B1550;
  --line: #2E2770;
  --violet: #7B62F0;
  --lavender: #C9BBFF;
  --gold: #F2C14E;
  --gold-soft: #FFE39A;
  --text: #ECE8FF;
  --muted: #A49CCB;
  --ok: #52D6A8;
  --warn: #F2A34E;
  --bad: #FF6B8B;
  /* app mock, the real VS Code-like palette of DBine */
  --ide-bg: #1e1e1e;
  --ide-side: #252526;
  --ide-tab: #2d2d2d;
  --ide-line: #3c3c3c;
  --ide-text: #cccccc;
  --ide-dim: #8b8b8b;
  --ide-status: #007acc;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--night);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  padding-inline: 20px;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(123, 98, 240, .32), transparent 70%),
    radial-gradient(700px 480px at 4% 34%, rgba(90, 70, 220, .16), transparent 70%),
    var(--night);
}
canvas#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

/* ---------- nav ---------- */
nav.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  margin-inline: -20px; padding: 14px 20px;
  background: rgba(14, 10, 43, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 39, 112, .6);
}
nav.top .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
nav.top ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 14px; color: var(--muted); }
nav.top ul a { text-decoration: none; }
nav.top ul a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.btn.gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #2A1C00; box-shadow: 0 6px 24px rgba(242, 193, 78, .28); }
.btn.gold:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(242, 193, 78, .4); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--lavender); }
nav.top .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-block: 72px 48px; }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); display: flex; align-items: center; gap: 10px; }
.eyebrow .say { color: var(--muted); text-transform: none; letter-spacing: 0; }
h1 {
  font: 400 clamp(46px, 7.4vw, 92px)/.98 var(--serif);
  letter-spacing: -.01em; margin: 18px 0 22px; text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--gold-soft); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.lede b { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { margin-top: 18px; font-size: 13px; color: var(--muted); }
.halo { position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 1; max-width: 100%; }
.halo::before {
  content: ""; position: absolute; inset: 8%;
  background: radial-gradient(circle, rgba(185, 166, 255, .38), transparent 66%);
  filter: blur(8px);
  animation: breathe 6s ease-in-out infinite;
}
.halo img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(20, 10, 70, .6)); }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .75; } }

/* ---------- app mock ---------- */
.window {
  border-radius: 12px; overflow: hidden;
  background: var(--ide-bg); color: var(--ide-text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 187, 255, .14);
  font: 12.5px/1.5 var(--mono);
}
.window .chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #2b2b2b; border-bottom: 1px solid #111; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #555; }
.dot:nth-child(1) { background: #ff5f57; } .dot:nth-child(2) { background: #febc2e; } .dot:nth-child(3) { background: #28c840; }
.window .chrome span.t { margin-left: 12px; color: var(--ide-dim); font-family: var(--sans); font-size: 12px; }
.ide { display: grid; grid-template-columns: 250px 1fr; min-height: 420px; }
.ide aside { background: var(--ide-side); padding: 10px 0; border-right: 1px solid #111; }
.ide aside h6 { margin: 0 14px 8px; font: 600 11px/1 var(--sans); letter-spacing: .08em; color: var(--ide-dim); text-transform: uppercase; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree li { padding: 2px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree .l1 { padding-left: 28px; } .tree .l2 { padding-left: 42px; } .tree .l3 { padding-left: 56px; }
.tree .sel { background: #04395e; color: #fff; }
.tree .q { color: var(--gold-soft); }
.tree .muted { color: var(--ide-dim); }
.eng { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.tabs { display: flex; background: var(--ide-side); overflow: hidden; }
.tabs div { padding: 8px 16px; background: var(--ide-tab); border-right: 1px solid #111; color: var(--ide-dim); white-space: nowrap; }
.tabs div.on { background: var(--ide-bg); color: #fff; border-top: 1px solid var(--violet); }
.tabs div i { font-style: italic; }
.editor { padding: 14px 18px; white-space: pre; overflow-x: auto; }
.ln { color: #5a5a5a; display: inline-block; width: 2ch; margin-right: 14px; text-align: right; }
.k { color: #569cd6; } .s { color: #ce9178; } .f { color: #dcdcaa; } .n { color: #b5cea8; } .c { color: #6a9955; }
.results { border-top: 1px solid var(--ide-line); overflow-x: auto; }
.results .bar { display: flex; gap: 18px; padding: 6px 14px; color: var(--ide-dim); font-family: var(--sans); font-size: 12px; background: var(--ide-side); }
.results .bar b { color: #fff; font-weight: 600; }
table.grid { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
table.grid th, table.grid td { padding: 5px 14px; border-bottom: 1px solid #2a2a2a; text-align: left; white-space: nowrap; }
table.grid th { color: var(--ide-dim); font-weight: 500; background: #232323; }
table.grid td.r { text-align: right; }
.status { background: var(--ide-status); color: #fff; padding: 3px 14px; display: flex; gap: 18px; font-family: var(--sans); font-size: 11.5px; }

/* ---------- sections ---------- */
section { padding-block: 96px 0; }
.kicker { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lavender); }
h2 { font: 400 clamp(36px, 5vw, 60px)/1.02 var(--serif); margin: 14px 0 18px; text-wrap: balance; }
.intro { color: var(--muted); font-size: 18px; max-width: 38em; margin: 0; }

/* engines */
.engines { margin-top: 40px; display: grid; gap: 14px; }
.fam { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); }
.fam h3 { margin: 0; font: 600 14px/1.3 var(--sans); color: var(--gold-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 13px/1 var(--mono); padding: 7px 11px; border-radius: 7px; background: rgba(123, 98, 240, .12); color: var(--lavender); box-shadow: inset 0 0 0 1px rgba(123, 98, 240, .25); }
.bignum { display: flex; align-items: baseline; gap: 16px; margin-top: 28px; }
.bignum strong { font: 400 clamp(72px, 12vw, 140px)/.9 var(--serif); color: var(--gold-soft); }
.bignum span { color: var(--muted); max-width: 22em; }

/* feature spotlight */
.spot { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.spot.flip { grid-template-columns: 1.1fr .9fr; }
.spot.flip .copy { order: 2; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { padding-left: 26px; position: relative; color: var(--muted); }
.points li b { color: var(--text); font-weight: 600; }
.points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.panel {
  background: linear-gradient(180deg, var(--night-2), var(--surface));
  border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden; font: 12.5px/1.5 var(--mono);
}
.panel .head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 13px; color: var(--muted); }
.panel .head b { color: var(--text); }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ok); font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(82, 214, 168, .6); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(82, 214, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(82, 214, 168, 0); } }
.scroll { overflow-x: auto; }
table.prof { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
table.prof th, table.prof td { padding: 7px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(46, 39, 112, .7); }
table.prof th { color: var(--muted); font-weight: 500; font-family: var(--sans); font-size: 12px; }
table.prof td.r { text-align: right; }
table.prof td.sql { max-width: 300px; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
table.prof tr.slow td.dur { color: var(--warn); }
table.prof tr.err td.sql { color: var(--bad); }
table.prof tr.new { animation: arrive .6s ease-out; }
@keyframes arrive { from { background: rgba(242, 193, 78, .18); } to { background: transparent; } }

/* compare */
.cmp { display: grid; grid-template-columns: 1fr auto 1fr; }
.cmp .side { padding: 14px 16px; min-width: 0; }
.cmp .side h5 { margin: 0 0 10px; font: 600 12px/1.3 var(--sans); color: var(--muted); }
.cmp .side h5 b { color: var(--text); }
.cmp .row { padding: 4px 8px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp .row.diff { background: rgba(242, 163, 78, .14); color: var(--gold-soft); }
.cmp .row.only { background: rgba(82, 214, 168, .12); color: var(--ok); }
.cmp .row.gone { color: rgba(164, 156, 203, .45); text-decoration: line-through; }
.cmp .arrows { display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 44px 6px 0; border-inline: 1px solid var(--line); }
.cmp .arrows span { height: 25.5px; display: grid; place-items: center; color: var(--gold); font-weight: 700; }
.cmp .foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 12px 16px; color: var(--muted); font-family: var(--sans); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.cmp .foot code { font-family: var(--mono); color: var(--lavender); }

/* monitor */
.mon { padding: 16px; display: grid; gap: 14px; }
.mon .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: rgba(14, 10, 43, .55); border-radius: 10px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.stat small { display: block; font: 500 11px/1.3 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat strong { font: 500 20px/1.4 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.mon svg { width: 100%; height: auto; display: block; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 44px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.feat { background: var(--night); padding: 28px 26px 30px; display: grid; gap: 10px; align-content: start; }
.feat h3 { margin: 0; font: 400 26px/1.1 var(--serif); }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.feat .tag { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 44px; }
.trust div { border-top: 2px solid var(--gold); padding-top: 18px; }
.trust h3 { margin: 0 0 8px; font: 600 17px/1.3 var(--sans); }
.trust p { margin: 0; color: var(--muted); font-size: 15px; }

/* download */
.dl {
  margin-top: 120px; border-radius: 22px; padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(242, 193, 78, .16), transparent 70%),
    linear-gradient(160deg, #2A1F7A, #16104A 60%);
  box-shadow: 0 0 0 1px rgba(201, 187, 255, .2);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.dl h2 { margin-top: 0; }
.os { display: grid; gap: 12px; }
.os div { display: flex; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 12px; background: rgba(14, 10, 43, .5); box-shadow: inset 0 0 0 1px rgba(201, 187, 255, .16); }
.os b { font-weight: 600; }
.os span { font: 13px/1.6 var(--mono); color: var(--lavender); text-align: right; }
footer { padding-block: 56px 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .brand { font-size: 16px; color: var(--text); }
footer .brand img { width: 24px; height: 24px; }
footer .sp { margin-left: auto; }

/* ---------- responsive ---------- */
.hero > *, .spot > *, .dl > *, .main, .window, .panel { min-width: 0; }
.window, .panel { max-width: 100%; }
.ide { grid-template-columns: 250px minmax(0, 1fr); }
@media (max-width: 960px) {
  .hero, .spot, .spot.flip, .dl { grid-template-columns: 1fr; }
  .spot.flip .copy { order: 0; }
  .halo { width: min(260px, 70%); grid-row: 1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; gap: 24px; }
  .ide { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 680px) {
  nav.top ul { display: none; }
  nav.top .btn { margin-left: auto; }
  .ide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ide aside { display: none; }
  .halo { width: min(200px, 60%); }
  .eyebrow { flex-wrap: wrap; }
  .features { grid-template-columns: 1fr; }
  .fam { grid-template-columns: 1fr; gap: 10px; }
  .mon .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-block: 40px 32px; }
  section { padding-block: 72px 0; }
  .cmp { grid-template-columns: 1fr; }
  .cmp .arrows { display: none; }
  .cmp .side + .arrows + .side { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .halo::before, .live::before, table.prof tr.new { animation: none; }
}

/* ---------- multi-page site ---------- */
/* downloads: each system links to the release */
.os a { display: flex; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 12px; background: rgba(14, 10, 43, .5); box-shadow: inset 0 0 0 1px rgba(201, 187, 255, .16); color: inherit; text-decoration: none; transition: box-shadow .15s, background .15s; }
.os a:hover { background: rgba(14, 10, 43, .75); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, .55); }
.dlnote { grid-column: 1 / -1; margin: 6px 0 0; color: var(--lavender); font-size: 14px; line-height: 1.6; }
.dlnote a, a.support { color: var(--gold-soft); }
nav.top ul a[aria-current="page"] { color: var(--gold-soft); }
.pagehead { padding-block: 64px 8px; }
.pagehead h1 { font-size: clamp(44px, 6.4vw, 80px); margin-bottom: 16px; }
.more { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; color: var(--gold-soft); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.logo { width: 40px; height: 40px; flex: none; border-radius: 9px; background: #F6F4FF; padding: 6px; object-fit: contain; }
.logo.badge { display: grid; place-items: center; padding: 0; background: hsl(var(--h) 55% 42%); color: #fff; font: 700 14px/1 var(--sans); letter-spacing: .02em; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 36px; }
.wall a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; background: rgba(27, 21, 80, .6); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; transition: box-shadow .15s ease, transform .15s ease; }
.wall a:hover { box-shadow: inset 0 0 0 1px var(--lavender); transform: translateY(-1px); }
.wall .logo { width: 34px; height: 34px; }
.famcount { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.famcount b { color: var(--text); font-variant-numeric: tabular-nums; }

/* engines page */
.toolbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 5; margin-top: 32px; padding-block: 14px; background: rgba(14, 10, 43, .88); backdrop-filter: blur(10px); display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--lavender); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 16px/1 var(--sans); padding: 14px 0; outline: none; }
.search input::placeholder { color: var(--muted); }
.search small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 600 13px/1 var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.filters button span { font-weight: 500; opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] { background: var(--gold); color: #2A1C00; box-shadow: none; }
.filters button:focus-visible, .search input:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.family { padding-block: 56px 0; scroll-margin-top: 170px; }
.family header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.family h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); }
.family header .n { font: 500 14px/1 var(--mono); color: var(--gold-soft); }
.family > p { color: var(--muted); max-width: 44em; margin: 10px 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(27, 21, 80, .55); box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { margin: 0; font: 600 15px/1.3 var(--sans); }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tagm { font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 5px; color: var(--lavender); background: rgba(123, 98, 240, .14); }
.tagm.odbc { color: var(--gold-soft); background: rgba(242, 193, 78, .12); }
.empty { color: var(--muted); padding-block: 40px; }
.note { margin-top: 64px; padding: 22px 24px; border-radius: 14px; background: rgba(27, 21, 80, .5); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.note b { color: var(--text); }

/* features page */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); align-self: start; display: grid; gap: 18px; font-size: 14px; }
.toc h4 { margin: 0 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.toc a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.group { padding-bottom: 32px; }
.group > .kicker { display: block; padding-top: 12px; }
.fitem { padding-block: 36px; border-top: 1px solid var(--line); scroll-margin-top: 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 44px; }
.fitem h3 { margin: 0; font: 400 34px/1.08 var(--serif); grid-column: 1 / -1; }
.fitem h3 em { font-style: italic; color: var(--gold-soft); }
.fitem > p { margin: 0; color: var(--muted); }
.fitem ul { margin: 0; }
@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .fitem { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .toolbar { top: calc(env(safe-area-inset-top, 0px) + 58px); }
  .cards { grid-template-columns: 1fr; }
}
