/* hbkit's landing page. Dark only, like the terminal it lives in; mint is the "verified" colour. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Arial sized to Outfit's metrics, so headings keep their size and lines while the font loads. */
@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 99%;
  ascent-override: 101%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --night: #06090c;
  --deep: #0b171c;
  --tide: #12303a;
  --term: #0a1216;
  --mint: #5fe0b7;
  --mint-hi: #93f0cf;
  --frost: #88c0d0;
  --amber: #f2b45a;
  --snow: #ecf3f1;
  --ink-on-mint: #04150f;

  --text: var(--snow);
  --text-body: rgb(236 243 241 / .8);
  --text-muted: rgb(236 243 241 / .62);
  --line: rgb(95 224 183 / .14);
  --card: linear-gradient(180deg, rgb(18 48 58 / .38), rgb(11 23 28 / .14));

  --font-display: "Outfit", "Outfit Fallback", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --content: 1160px;
  --section: clamp(80px, 10vw, 136px);
  --radius: 16px;

  --z-below: -1;
  --z-header: 2;
  --z-skip: 10;

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text-body);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }
strong { color: var(--text); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

::selection { background: rgb(95 224 183 / .3); color: var(--text); }

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

code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .1em .4em;
  border-radius: 6px;
  background: rgb(236 243 241 / .08);
  color: var(--text);
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.08; }
h3 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem); line-height: 1.12; }

h4 {
  margin: 0 0 8px;
  color: var(--text);
  font: 600 1.0625rem/1.35 var(--font-body);
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.center { text-align: center; }

.lead {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-body);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--mint);
  font-size: .9375rem;
  font-weight: 600;
}

.text-link {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgb(95 224 183 / .45);
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--mint-hi); text-decoration-color: currentColor; }

/* Skip link */

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: var(--z-skip);
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--snow);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 16px; }

/* Header */

.top { position: relative; z-index: var(--z-header); }

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: var(--text);
  font: 600 1.5rem/1 var(--font-display);
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }

.nav {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-body);
  font-size: .9375rem;
  text-decoration: none;
  transition: color .15s ease-out, background-color .15s ease-out;
}

.nav a:hover { color: var(--text); background: rgb(236 243 241 / .06); }

@media (max-width: 559px) {
  .nav-wide { display: none; }
  .nav a { padding: 0 9px; }
  .brand { font-size: 1.375rem; }
  .brand img { width: 30px; height: 30px; }
}

/* Buttons and the install command */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  transition: background-color .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
}

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

.btn-primary {
  background: var(--mint);
  color: var(--ink-on-mint);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 12px 32px -12px rgb(95 224 183 / .55);
}

.btn-primary:hover { background: var(--mint-hi); }

.btn-secondary {
  border-color: rgb(236 243 241 / .22);
  background: rgb(236 243 241 / .03);
  color: var(--text);
}

.btn-secondary:hover { border-color: rgb(236 243 241 / .38); background: rgb(236 243 241 / .08); }

/* The command is the call to action: a copyable pill, lit like the primary button. */
.cmd {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 52px;
  padding: 0 6px 0 18px;
  border: 1px solid rgb(95 224 183 / .45);
  border-radius: 14px;
  background: rgb(95 224 183 / .07);
  box-shadow: 0 12px 32px -14px rgb(95 224 183 / .45);
}

.cmd code {
  overflow-x: auto;
  padding: 14px 0;
  background: none;
  font-size: .9375rem;
  white-space: nowrap;
  scrollbar-width: none;
}

.cmd code::-webkit-scrollbar { display: none; }

.cmd .prompt { margin-right: .6em; color: var(--mint); user-select: none; }

.copy {
  flex: none;
  min-width: 72px;
  min-height: 40px;
  margin-left: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--mint);
  color: var(--ink-on-mint);
  font: 600 .875rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .15s ease-out;
}

.copy:hover { background: var(--mint-hi); }

@media (max-width: 479px) {
  .actions .btn, .actions .cmd { flex: 1 1 100%; }
  .cmd { padding-left: 14px; }
  .cmd .prompt { display: none; }
  .cmd code { flex: 1; font-size: .78rem; }
  .copy { min-width: 60px; margin-left: 8px; }
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(24px, 4.5vw, 64px);
}

/* Cold light at the top of the page, like a terminal left open in a dark room */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  z-index: var(--z-below);
  height: 110%;
  background: radial-gradient(45% 55% at 50% 30%, rgb(18 48 58 / .75), rgb(11 23 28 / .3) 55%, transparent 80%);
  pointer-events: none;
}

.hero-copy {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 16px 36px rgb(95 224 183 / .25));
}

.hero .lead { max-width: 660px; margin-inline: auto; }

.meta {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: .875rem;
}

.meta span { margin-inline: 6px; }

/* Screenshots */

.shot { position: relative; margin: 0; }

.shot img {
  width: 100%;
  border-radius: 12px;
  background: #2e3440;
  box-shadow: 0 0 0 1px rgb(236 243 241 / .08), 0 28px 64px -28px rgb(0 0 0 / .9);
}

.shot figcaption, .term-caption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: .875rem;
}

.shot-hero {
  max-width: var(--content);
  margin: clamp(40px, 5.5vw, 72px) auto 0;
}

.shot-hero img { border-radius: clamp(8px, 1vw, 12px); }

.shot-panel { max-width: 428px; margin-inline: auto; }

/* A soft mint glow under the hero screenshot */
.shot-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -38%;
  z-index: var(--z-below);
  width: 120%;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(95 224 183 / .2), rgb(136 192 208 / .08) 45%, transparent);
  pointer-events: none;
}

/* What it reads from, under the hero */

.sources {
  margin-top: clamp(36px, 4.5vw, 56px);
  text-align: center;
}

.sources p {
  color: var(--text-muted);
  font-size: .875rem;
  letter-spacing: .04em;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(18 48 58 / .3);
  color: var(--text-body);
  font-size: .9375rem;
}

/* Terminal windows */

.term {
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  background: var(--term);
  box-shadow: 0 0 0 1px rgb(236 243 241 / .09), 0 28px 64px -28px rgb(0 0 0 / .9);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgb(236 243 241 / .07);
  background: rgb(236 243 241 / .03);
}

.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgb(236 243 241 / .16);
}

.term-bar span {
  margin-left: auto;
  color: var(--text-muted);
  font: .8125rem/1 var(--font-mono);
}

.term-figure { margin: 0; }

.term pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px 18px 20px;
  color: var(--text-body);
  font: .78rem/1.65 var(--font-mono);
  tab-size: 2;
}

.term .p { color: var(--mint); user-select: none; }
.term .cmd-line { color: var(--text); }
.term .k { color: var(--text-muted); }
.term .cm { color: rgb(236 243 241 / .5); }
.term .ok { color: var(--mint); font-weight: 700; }
.term .v { color: var(--text); font-weight: 600; }

/* Sections */

main { padding-bottom: var(--section); }

.section { position: relative; padding-top: var(--section); }

.intro { text-align: center; }

.feature { padding-top: clamp(72px, 8vw, 112px); }
.intro + .feature { padding-top: clamp(40px, 5vw, 64px); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .lead { margin-top: 16px; }

.feature-head { max-width: 760px; margin-bottom: 32px; }

/* Cards */

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

@media (min-width: 600px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.card p { font-size: 1rem; }

.support .card h3 {
  margin-bottom: 16px;
  font-size: 1.375rem;
}

/* Feature rows: copy beside a screenshot */

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

.split > * { min-width: 0; }

@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; }
  .split.reverse { grid-template-columns: 7fr 5fr; }
  .split.reverse .split-copy { order: 2; }
}

.split-copy > p:not(.eyebrow) { margin-top: 18px; }

.ticks, .dots {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li, .dots li { position: relative; padding-left: 26px; }

.ticks li::before, .dots li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgb(95 224 183 / .5);
}

.dots { gap: 8px; margin: 0; font-size: 1rem; }
.dots li { padding-left: 22px; }
.dots li::before { top: .6em; width: 6px; height: 6px; background: var(--frost); box-shadow: none; }

.note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .9375rem;
}

/* The R2 measurements */

.stats {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.stats h4 { margin-bottom: 4px; }
.stats > p { color: var(--text-muted); font-size: .9375rem; }

.stat-rows {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.stat-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.stat-label { color: var(--text); font-weight: 600; }

.stat-before {
  grid-column: 1;
  color: var(--text-muted);
  font-size: .9375rem;
}

.stat-after {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--mint);
  font: 500 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem)/1 var(--font-display);
}

/* Install steps */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border: 1px solid rgb(95 224 183 / .45);
  border-radius: 12px;
  background: rgb(95 224 183 / .08);
  color: var(--mint);
  font: 500 1.125rem/1 var(--font-display);
}

.step h3 { margin-bottom: 12px; font-size: 1.25rem; line-height: 1.25; }
.step p + p, .step pre + p, .step p + pre { margin-top: 12px; }
.step p { font-size: 1rem; }

.step pre {
  overflow-x: auto;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--term);
  box-shadow: 0 0 0 1px rgb(236 243 241 / .08);
  color: var(--text);
  font: .8125rem/1.6 var(--font-mono);
}

.step pre .p { color: var(--mint); user-select: none; }

.small { color: var(--text-muted); font-size: .9375rem; }
.small code { white-space: nowrap; }

.after-steps { max-width: 760px; margin-top: 28px; }

/* FAQ */

.faq-layout { display: grid; gap: 32px; }

@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease-out;
}

.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover::after { border-color: var(--text); }
.faq details p { max-width: 680px; padding-bottom: 22px; }

/* Closing call to install */

.closing { overflow-x: clip; }

.closing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: var(--z-below);
  width: min(900px, 140%);
  aspect-ratio: 1.6 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(95 224 183 / .12), rgb(18 48 58 / .2) 55%, transparent);
  pointer-events: none;
}

.closing-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 18px 44px rgb(95 224 183 / .25));
}

.closing .lead { max-width: 560px; margin-inline: auto; }

/* An archive it can't read */

.report-card {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(120% 160% at 0% 0%, rgb(18 48 58 / .7), rgb(11 23 28 / .25) 60%, transparent);
}

@media (min-width: 880px) {
  .report-card { grid-template-columns: 1fr auto; gap: 48px; }
}

.report-card h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem); }
.report-card p { max-width: 640px; margin-top: 12px; }

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* Footer */

.footer {
  padding-block: 48px 56px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .875rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-body);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer p { max-width: 820px; }
.footer p + p { margin-top: 12px; }

.footer p a {
  color: var(--text-body);
  text-decoration: underline;
  text-decoration-color: rgb(236 243 241 / .3);
  text-underline-offset: 3px;
}

.footer p a:hover { color: var(--text); }

/* 404 */

.lost {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 76px);
  padding-block: 48px 96px;
  text-align: center;
}

.lost .lead { max-width: 520px; margin-inline: auto; }

/* Shared guide navigation, using the browser's keyboard-accessible disclosure. */

.guide-menu { position: relative; }
.guide-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-body);
  font-size: .9375rem;
  list-style: none;
  cursor: pointer;
}
.guide-menu summary::-webkit-details-marker { display: none; }
.guide-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.guide-menu[open] summary::after { transform: translateY(3px) rotate(225deg); }
.guide-menu summary:hover { color: var(--text); background: rgb(236 243 241 / .06); }
.guide-menu > ul {
  position: absolute;
  right: 0;
  z-index: var(--z-header);
  width: 242px;
  margin: 4px 0 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--deep);
  box-shadow: 0 12px 32px rgb(0 0 0 / .35);
}
.guide-menu > ul a { display: flex; width: 100%; padding: 10px 12px; line-height: 1.4; }
.footer .guide-menu summary { padding-inline: 0; font-size: inherit; }
.footer .guide-menu > ul { top: auto; bottom: 100%; left: 0; right: auto; }
.hero-note { max-width: 660px; margin: 18px auto 0; color: var(--text-muted); font-size: .9375rem; }
.split-copy h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem); line-height: 1.12; }

/* Guide pages use the landing page's type, colours and terminal blocks. */

.guide { max-width: calc(920px + 2 * var(--gutter)); padding-top: clamp(32px, 5vw, 64px); }
.guide-header { max-width: 860px; margin-bottom: 28px; }
.guide-header h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 1.08; }
.guide-body { overflow-wrap: anywhere; }
.guide-body > p, .guide-body > ul, .guide-body > ol { max-width: 780px; }
.guide-body > p + p { margin-top: 18px; }
.guide-body > p:first-child { font-size: 1.1875rem; color: var(--text-body); }
.guide-body h2 { margin: 64px 0 22px; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.15; }
.guide-body h3 { margin: 32px 0 18px; font-size: 1.5rem; line-height: 1.25; }
.guide-body > ul, .guide-body > ol { padding-left: 24px; margin-block: 20px; }
.guide-body li + li { margin-top: 12px; }
.guide-body li::marker { color: var(--mint); }
.guide-body .term, .guide-body .term-figure { margin-block: 24px; }
.guide-body .term-figure .term { margin: 0; }
.guide-body .term pre { font-size: .8125rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-body pre code { padding: 0; border-radius: 0; background: none; font-size: inherit; }
.guide-warning { margin-block: 24px; padding: 18px 22px; border-left: 3px solid var(--amber); background: var(--card); color: var(--text); }
.guide-table { margin-block: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; line-height: 1.55; }
.guide-table th, .guide-table td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead { background: var(--deep); color: var(--text); }
.guide-table tbody th { color: var(--text); font-weight: 600; }
.guide-table tbody tr:nth-child(even) { background: rgb(18 48 58 / .2); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }

@media (max-width: 559px) {
  .top-inner { flex-wrap: wrap; gap: 0 8px; padding-block: 10px; }
  .nav a, .guide-menu summary { padding-inline: 7px; font-size: .875rem; }
  .guide-menu summary { gap: 5px; }
  .nav .guide-menu > ul { right: -24px; }
}

/* Keep long comparison tables readable without sideways scrolling on a phone. */
@media (max-width: 699px) {
  .guide-table table, .guide-table tbody, .guide-table tr { display: block; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-table tbody tr { padding: 16px; border-bottom: 1px solid var(--line); }
  .guide-table tbody tr:last-child { border-bottom: 0; }
  .guide-table tbody th, .guide-table tbody td { display: block; padding: 0; border: 0; }
  .guide-table tbody th { margin-bottom: 12px; font-size: 1.0625rem; }
  .guide-table tbody td + td { margin-top: 12px; }
  .guide-table td::before { content: attr(data-label); display: block; color: var(--text-muted); font-size: .8125rem; margin-bottom: 3px; }
  .term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

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