/* Rookparcel website. Hand-written, no framework (docs/WEBSITE.md).
   Colours: the Postal Rook app icon (D60: stamp red, navy, paper cream, kraft, badge gold) and
   the app's own state-icon colours; the toolbar, list view and status bar nod to the µTorrent
   2.2.1 window. */

:root {
  color-scheme: light dark;
  --bg: #f7f3ea;
  --surface: #ffffff;
  --sunken: #efe9dd;
  --text: #16202e;
  --muted: #4b5363;
  --border: #d8d0c2;
  --link: #1e4a8a;
  --link-hover: #14233d;
  --brand: #b8352a;
  --brand-deep: #8e271f;
  --accent: #b8352a;
  --cream: #f7eedc;
  --focus: #c4864a;
  --hero-1: #0f1b30;
  --hero-2: #1d3256;
  --hero-text: #f7eedc;
  --hero-muted: #cfd6e2;
  --hero-link: #f2c14e;
  --btn-bg: #b8352a;
  --btn-bg-hover: #8e271f;
  --btn-text: #ffffff;
  --lv-head-1: #ffffff;
  --lv-head-2: #ece6da;
  --lv-line: #e0d9cc;
  --lv-alt: #faf8f3;
  --lv-hover: #f6e4df;
  --bevel-hi: #ffffff;
  --bevel-lo: #ada596;
  --code-bg: #efe8da;
  --note-bg: #edf1f7;
  --note-line: #1d3256;
  --warn-bg: #fff5dc;
  --warn-line: #b7801a;
  --ico-teal: #006b50;
  --ico-blue: #1558c0;
  --ico-purple: #713fbb;
  --ico-amber: #895500;
  --ico-orange: #ab4200;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 6px 20px rgb(0 0 0 / 7%);
  --radius: 6px;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
  --bar: #8f8a80;
  --bar-pa: #b8352a;
  --tag-new-bg: #ddf1ea;
  --tag-fix-bg: #fbefd2;
  --tag-sec-bg: #fde3d3;
  --tag-plat-bg: #e1eafa;
  --tag-area-bg: #ece4f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1420;
    --surface: #151d2b;
    --sunken: #1b2433;
    --text: #ebe6dc;
    --muted: #aab2c0;
    --border: #2c3647;
    --link: #9cc0ff;
    --link-hover: #c6dbff;
    --brand: #e0675a;
    --brand-deep: #f2a79d;
    --accent: #e0675a;
    --focus: #f2c14e;
    --hero-1: #0a1222;
    --hero-2: #182a49;
    --hero-text: #f7eedc;
    --hero-muted: #c3cbd8;
    --hero-link: #f2c14e;
    --btn-bg: #e0675a;
    --btn-bg-hover: #f08a7e;
    --btn-text: #1a0d0b;
    --lv-head-1: #222c3c;
    --lv-head-2: #1b2433;
    --lv-line: #2e394b;
    --lv-alt: #182130;
    --lv-hover: #33262c;
    --bevel-hi: #334055;
    --bevel-lo: #070a10;
    --code-bg: #1d2636;
    --note-bg: #172338;
    --note-line: #6f8fc7;
    --warn-bg: #2b2414;
    --warn-line: #d9a441;
    --ico-teal: #51e0b2;
    --ico-blue: #83baff;
    --ico-purple: #ceadff;
    --ico-amber: #ffd17a;
    --ico-orange: #ffb078;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 6px 20px rgb(0 0 0 / 35%);
    --bar: #6d7380;
    --bar-pa: #e0675a;
    --tag-new-bg: #12302a;
    --tag-fix-bg: #302812;
    --tag-sec-bg: #36200f;
    --tag-plat-bg: #15253c;
    --tag-area-bg: #261f3a;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.02em; margin-top: 0; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; margin: 1.2em 0 .3em; }
p, ul, ol, pre, table, figure, details { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
li + li { margin-top: .3em; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--link-hover); }

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

code, pre, kbd { font-family: var(--mono); font-size: .9em; }
code {
  background: var(--code-bg);
  padding: .1em .35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75em 1em;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; padding: 0; overflow-wrap: normal; font-size: inherit; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

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

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 10;
  background: var(--surface);
  color: var(--link);
  padding: .5em 1em;
  border: 2px solid var(--focus);
  border-radius: var(--radius);
}
.skip:focus { top: 8px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow { max-width: 820px; }

main { display: block; padding-bottom: 3rem; }

/* ---- the app's symbols --------------------------------------------------------------------- */

.ico {
  width: 24px; height: 24px;
  flex: none;
  fill: currentColor;
  vertical-align: -6px;
}
.ico-sm { width: 16px; height: 16px; vertical-align: -3px; }
.ico-teal { color: var(--ico-teal); }
.ico-blue { color: var(--ico-blue); }
.ico-purple { color: var(--ico-purple); }
.ico-amber { color: var(--ico-amber); }
.ico-orange { color: var(--ico-orange); }

/* ---- top bar: a toolbar like 2.2.1's ------------------------------------------------------- */

.topbar {
  background: linear-gradient(var(--surface), var(--sunken));
  border-bottom: 1px solid var(--border);
}
.topbar-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -.01em;
  padding: .2rem 0;
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0 -6px;
  padding: 0;
}
.toolbar li + li { margin: 0; }
.toolbar a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  line-height: 1.3;
}
/* hot-tracked and pressed toolbar buttons */
.toolbar a:hover {
  border-color: var(--bevel-hi) var(--bevel-lo) var(--bevel-lo) var(--bevel-hi);
  background: var(--surface);
}
.toolbar a[aria-current="page"] {
  border-color: var(--bevel-lo) var(--bevel-hi) var(--bevel-hi) var(--bevel-lo);
  background: var(--sunken);
  font-weight: 600;
}
.toolbar .ext::after { content: " ↗"; font-size: .85em; color: var(--muted); }

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

.hero {
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(255 255 255 / 9%), transparent 55%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2));
  color: var(--hero-text);
  border-bottom: 3px solid var(--accent);
}
.hero-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.hero-icon { width: 112px; height: 112px; filter: drop-shadow(0 4px 10px rgb(0 0 0 / 35%)); }
.hero h1 { color: var(--hero-text); margin-bottom: .2rem; }
.hero .lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.5; max-width: 40em; margin-bottom: .6rem; }
.hero p { color: var(--hero-muted); max-width: 46em; }
.hero .lede { color: var(--hero-text); }
.hero a:not(.btn) { color: var(--hero-link); }
.hero a:not(.btn):hover { color: var(--hero-text); }
.hero :focus-visible { outline-color: var(--hero-link); }
.hero code { background: rgb(0 0 0 / 25%); color: var(--hero-text); }

.page-head {
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  color: var(--hero-text);
  border-bottom: 3px solid var(--accent);
  padding: 1.75rem 0 1.5rem;
}
.page-head h1 { color: var(--hero-text); font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 .3rem; }
.page-head p { color: var(--hero-muted); margin: 0; max-width: 46em; }
.page-head a { color: var(--hero-link); }
.page-head a:hover { color: var(--hero-text); }
.page-head :focus-visible { outline-color: var(--hero-link); }
.page-head .note {
  background: rgb(0 0 0 / 22%);
  border-inline-start-color: var(--hero-link);
  color: var(--hero-text);
  margin-top: .8rem;
  max-width: 40em;
}

/* ---- buttons, badges, call to action ------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  border: 2px solid transparent;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.btn-small { padding: .4rem .8rem; font-size: .95rem; }

/* on the navy hero the main button is the stamp's paper with a kraft rim */
.hero .btn-primary, .page-head .btn-primary {
  background: var(--cream);
  color: #14233d;
  border-color: #c4864a;
  box-shadow: 0 2px 0 rgb(0 0 0 / 25%);
}
.hero .btn-primary:hover, .page-head .btn-primary:hover { background: #ffffff; color: #14233d; }
.hero .btn-ghost { color: var(--hero-text); border-color: rgb(255 255 255 / 45%); }
.hero .btn-ghost:hover { border-color: var(--hero-text); background: rgb(255 255 255 / 8%); color: var(--hero-text); }

.cta { margin-top: 1.4rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.cta-meta { font-size: .95rem; margin-bottom: .4rem; }
.cta .direct { font-size: .95rem; margin: .2rem 0 0; }
.cta .direct a { overflow-wrap: anywhere; }

.badge {
  display: inline-block;
  padding: .05rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: .1em;
  white-space: nowrap;
}
.badge-pre { background: #f7d58a; color: #3d2a00; }
.badge-stable { background: #d6e6cf; color: #1d3a12; }

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

.section { padding-top: 1rem; }
.section > h2:first-child { margin-top: 2rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }

.callout {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-inline-start-width: 5px;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 2rem 0 0;
}
.callout p { margin: 0 0 .4rem; }
.callout p:last-child { margin: 0; }
.callout .ico { margin-top: 2px; }

.note {
  background: var(--note-bg);
  border-inline-start: 4px solid var(--note-line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .7rem 1rem;
}

/* screenshots */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.shot { margin: 0; }
.shot img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shot figcaption { color: var(--muted); font-size: .92rem; margin-top: .6rem; }
.shot-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 760px) {
  .shot-pair { grid-template-columns: minmax(0, 646px) minmax(0, 1fr); }
}

/* highlighted features */
.spotlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.spotlights li + li { margin: 0; }
.spotlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ico-teal);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.2rem;
}
.spotlight:first-child { border-top-color: var(--ico-purple); }
.spotlight h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.2rem;
  margin: 0 0 .6rem;
}
.spotlight p { margin: 0 0 .7rem; }
.spotlight .spotlight-fact { margin: 0; color: var(--muted); font-size: .95rem; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.features li + li { margin: 0; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* platform cards */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.platform-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.platform-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.platform-card p + p { margin-top: .5rem; }

/* ---- list view: the µTorrent torrent list -------------------------------------------------- */

.listview {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: .95rem;
  table-layout: fixed;
}
.listview th {
  text-align: start;
  font-weight: 600;
  font-size: .85rem;
  padding: .35rem .7rem;
  background: linear-gradient(var(--lv-head-1), var(--lv-head-2));
  border-bottom: 1px solid var(--lv-line);
  border-inline-end: 1px solid var(--lv-line);
}
.listview th:last-child { border-inline-end: 0; }
.listview td {
  padding: .55rem .7rem;
  vertical-align: top;
  border-bottom: 1px solid var(--lv-line);
}
.listview tbody tr:nth-child(even) td { background: var(--lv-alt); }
.listview tbody tr:hover td { background: var(--lv-hover); }
.listview tbody tr:last-child td { border-bottom: 0; }
.listview .size { width: 6.5rem; text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.listview .name a { font-family: var(--mono); font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.listview .what { display: block; color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.listview .kind { color: var(--text); font-weight: 600; }
.listview code { font-size: .85em; }

.listview.plain td:first-child { width: 34%; font-weight: 600; }
@media (max-width: 560px) {
  .listview .size { width: 5rem; padding-inline: .4rem; }
  .listview.plain, .listview.plain tbody, .listview.plain tr, .listview.plain td { display: block; width: auto; }
  .listview.plain thead { display: none; }
  .listview.plain td:first-child { width: auto; border-bottom: 0; padding-bottom: 0; }
}

/* ---- download page ------------------------------------------------------------------------- */

.release-line { font-size: 1.05rem; margin: .4rem 0 0; color: var(--hero-muted); }
.release-line strong { color: var(--hero-text); }

.platform { padding-top: .5rem; scroll-margin-top: 1rem; }
.platform > h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.platform .req { color: var(--muted); margin-top: -.2rem; }
.yours {
  font-size: .8rem;
  font-weight: 700;
  background: var(--note-bg);
  color: var(--brand-deep);
  border: 1px solid var(--note-line);
  border-radius: 999px;
  padding: .05rem .55rem;
  letter-spacing: .02em;
}
.steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.steps.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 1.5rem; }
.step { min-width: 0; }
.step h3, .step h4 { font-size: 1rem; margin-top: .6rem; }
.step pre { font-size: .85rem; }
.step .alt { color: var(--muted); font-size: .92rem; margin-top: -.4rem; }

.which {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: .8rem;
  list-style: none;
  padding: 0;
}
.which li + li { margin: 0; }
.which li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
}
.which strong { display: block; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem 1rem;
}
details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: .6rem; }
details pre { margin-bottom: .6rem; }
pre.sums { font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- FAQ and docs -------------------------------------------------------------------------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  margin-top: 2rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 .4rem; }
.toc ol { margin: 0; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }

.qa { scroll-margin-top: 1rem; }
.qa h2 { border-bottom: 1px solid var(--border); padding-bottom: .3rem; }

.doclist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.doclist li + li { margin: 0; }
.doclist a { font-weight: 600; }
.doclist span { display: block; color: var(--muted); font-size: .95rem; }

/* ---- news ---------------------------------------------------------------------------------- */

.page-head .feed-line { margin-top: .6rem; font-size: .95rem; }
.feed-line a { display: inline-flex; align-items: center; gap: .3rem; }

.news-entry { scroll-margin-top: 1rem; padding-bottom: .5rem; }
.news-entry + .news-entry { border-top: 1px solid var(--border); }
.news-entry h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-top: 1.4em; }
.news-entry h2 a { color: var(--text); text-decoration: none; }
.news-entry h2 a:hover { color: var(--link-hover); text-decoration: underline; }
.news-entry h2 time { color: var(--muted); font-weight: 600; }
.news-lede { font-size: 1.05rem; }
.news-note { color: var(--muted); font-size: .95rem; }
.news-links { font-size: .95rem; }

.changes { list-style: none; padding: 0; }
.changes li { display: flex; align-items: baseline; gap: .7rem; }
.changes li + li { margin-top: .45em; }
.changes li > span:last-child { min-width: 0; }
.tag {
  flex: none;
  width: 5.4rem;
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.6;
  padding: 0 .3rem;
  border: 1px solid var(--tag-line, var(--border));
  border-inline-start-width: 4px;
  border-radius: 3px;
  background: var(--tag-bg, var(--sunken));
  color: var(--text);
  position: relative;
  top: -.1em;
}
.tag-new { --tag-bg: var(--tag-new-bg); --tag-line: var(--ico-teal); }
.tag-fix { --tag-bg: var(--tag-fix-bg); --tag-line: var(--ico-amber); }
.tag-sec { --tag-bg: var(--tag-sec-bg); --tag-line: var(--ico-orange); }
.tag-plat { --tag-bg: var(--tag-plat-bg); --tag-line: var(--ico-blue); }
.tag-area { --tag-bg: var(--tag-area-bg); --tag-line: var(--ico-purple); }
@media (max-width: 420px) {
  .changes li { flex-direction: column; gap: .15rem; }
  .changes li + li { margin-top: .8em; }
  .tag { width: auto; top: 0; }
}

.latest-news {
  display: flex;
  gap: .6rem;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--ico-purple);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  margin: 1.5rem 0 0;
}
.latest-news .ico { position: relative; top: .15em; }

/* ---- footer: a status bar ------------------------------------------------------------------ */

.statusbar {
  border-top: 1px solid var(--border);
  background: var(--sunken);
  font-size: .85rem;
  color: var(--muted);
  padding: .5rem 0 .9rem;
}
.statusbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.statusbar li + li { margin: 0; }
.statusbar li {
  padding: .15rem .6rem;
  border: 1px solid;
  border-color: var(--bevel-lo) var(--bevel-hi) var(--bevel-hi) var(--bevel-lo);
  background: var(--bg);
}
.statusbar li.grow { flex: 1 1 14rem; }
.statusbar a { color: var(--link); }
.statusbar p { margin: .7rem 0 0; font-size: .8rem; }

/* ---- small screens ------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 1.75rem; padding-bottom: 2rem; }
  .hero-icon { width: 80px; height: 80px; }
  .toolbar a { padding: .3rem .45rem; }
  .toolbar .ico { width: 16px; height: 16px; vertical-align: -3px; }
  .btn { width: 100%; text-align: center; }
  .btn-small { width: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- benchmarks page ----------------------------------------------------------------------- */

.chart { margin: 1.6rem 0; }
.chart figcaption { margin-bottom: .6rem; }
.chart figcaption span { color: var(--muted); font-size: .92rem; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bars li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 6.5rem;
  align-items: center;
  gap: .6rem;
  margin: 0;
}
.bars .who { font-size: .95rem; }
.bars .pa .who { font-weight: 700; }
.bars .track { display: block; height: 20px; }
.bars .bar { display: block; height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; }
.bars .pa .bar { background: var(--bar-pa); }
.bars .val { text-align: end; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars .pa .val { font-weight: 700; }
@media (max-width: 560px) {
  .bars li { grid-template-columns: 6.2rem minmax(0, 1fr) 5.6rem; gap: .4rem; }
  .bars .who, .bars .val { font-size: .88rem; }
}
@media (forced-colors: active) {
  .bars .bar { background: CanvasText; }
  .bars .pa .bar { background: Highlight; }
}
.table-scroll { overflow-x: auto; margin: 0 0 1.2rem; }
.table-scroll .listview { margin: 0; }
.listview.bench { table-layout: auto; min-width: 34rem; }
.listview.bench td, .listview.bench th { white-space: nowrap; }
.listview.bench .client { font-weight: 600; }
.listview.bench .num { text-align: end; font-variant-numeric: tabular-nums; }
.findings { padding-inline-start: 1.2em; }
.findings li + li { margin-top: .6em; }

@media print {
  .topbar nav, .skip, .cta-buttons { display: none; }
  .hero, .page-head { background: none; color: #000; border: 0; }
  .hero h1, .page-head h1, .hero p, .page-head p { color: #000; }
}
