/* IoTAPS marketing site.
   One stylesheet, no build step. Plain layout: paper background, ink text, one accent,
   ruled sections. Components are few on purpose; reuse them before adding new ones. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/plex-sans-latin-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fafaf7;
  --paper-2: #f2f1ec;
  --white: #ffffff;
  --ink: #16181c;
  --ink-2: #3a3e45;
  --muted: #6a6e75;
  --rule: #e3e1da;
  --rule-strong: #cbc8bd;
  --link: #1a4fb4;
  --accent: #c2410c;
  --ok: #2f7a3a;
  --code-bg: #17191d;
  --code-fg: #e4e3de;
  --code-muted: #8a8e95;

  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 60px;
  --radius: 4px;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
}

p,
ul,
ol,
dl,
figure,
pre {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
}

code,
kbd,
pre,
.mono {
  font-family: var(--mono);
}

code {
  padding: 0.05em 0.3em;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-2);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  overflow-wrap: normal;
}

code.nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}

sup {
  line-height: 0;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.muted {
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-actions a:not(.btn) {
  color: var(--ink-2);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-actions a:not(.btn):hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #000;
  text-decoration: none;
}

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

.btn-plain:hover {
  background: var(--white);
  border-color: var(--ink);
}

.btn-sm {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ----------------------------------------------------------------- intro */

.intro {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.intro-copy {
  max-width: 34rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.lede {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.12rem;
  line-height: 1.6;
}

.intro .actions {
  margin-top: 28px;
}

.intro-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Page intro without a side panel (inner pages). */
.intro-simple .intro-copy {
  max-width: 44rem;
}

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

.sec {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

.sec-alt {
  background: var(--paper-2);
}

/* Label column on the left, content on the right. */
.sec-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
}

.sec-head h2 + p,
.sec-head p + p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.sec-head .actions {
  margin-top: 18px;
}

.sec-head-wide {
  max-width: 44rem;
  margin-bottom: 32px;
}

.sec-head-wide h2 + p {
  margin-top: 10px;
  color: var(--ink-2);
}

.prose {
  max-width: 44rem;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 14px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

/* ----------------------------------------------------- definition lists */

.defs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.defs > div {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.defs dt {
  font-weight: 600;
}

.defs dd {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.defs-1 {
  grid-template-columns: minmax(0, 1fr);
}

/* Key/value rows, e.g. connection settings. */
.kv {
  border-top: 1px solid var(--rule);
}

.kv > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
}

/* -------------------------------------------------------- numbered steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  counter-reset: step;
  border-top: 2px solid var(--ink);
}

.steps-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.steps > li {
  padding: 16px 20px 4px 0;
  counter-increment: step;
}

.steps > li + li {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
}

.steps h3 {
  font-size: 1rem;
}

.steps p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.steps .tag {
  margin-top: 10px;
}

.tag {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.76rem;
}

/* ------------------------------------------------------------ code blocks */

.code {
  position: relative;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-fg);
  font-size: 0.84rem;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid #2a2d33;
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.code-head .code-file {
  margin-right: auto;
}

.code pre {
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.65;
  tab-size: 2;
}

.code pre code {
  white-space: pre;
}

.code-tabs {
  display: flex;
  gap: 2px;
  margin-right: auto;
}

.code-tabs [role="tab"] {
  padding: 9px 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--code-muted);
  font: inherit;
  cursor: pointer;
}

.code-tabs [role="tab"]:hover {
  color: var(--code-fg);
}

.code-tabs [role="tab"][aria-selected="true"] {
  color: var(--code-fg);
  border-bottom-color: var(--accent);
}

.code-panel:focus-visible {
  outline-offset: -2px;
}

.copy-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1;
  padding: 4px 9px;
  border: 1px solid #3a3e45;
  border-radius: 3px;
  background: var(--code-bg);
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--code-fg);
  border-color: #5a5e66;
}

.copy-btn.is-copied {
  color: #b5d99c;
}

.code-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.t-c { color: var(--code-muted); }
.t-k { color: #9ecbff; }
.t-s { color: #b5d99c; }
.t-n { color: #e8b67a; }
.t-ok { color: #b5d99c; }
.t-warn { color: #e8b67a; }
.t-dim { color: var(--code-muted); }

/* ---------------------------------------------------------------- tables */

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

tbody th {
  font-weight: 500;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.tbl-matrix {
  min-width: 620px;
}

.tbl-matrix td,
.tbl-matrix thead th + th {
  text-align: center;
}

td.y {
  color: var(--ok);
}

td.n {
  color: var(--muted);
}

td.soon {
  color: var(--accent);
}

.tbl-codes tbody th {
  white-space: nowrap;
}

.tbl-title {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.req {
  margin-left: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

/* ------------------------------------------------------------- columns */

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.95rem;
}

.cols ul {
  list-style: none;
}

.cols li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.94rem;
}

.cols p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.plan + .plan {
  border-left: 1px solid var(--rule-strong);
}

.plan-primary {
  box-shadow: inset 0 3px 0 var(--accent);
}

.plan h3 {
  font-size: 1.05rem;
}

.plan-for {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-price {
  margin: 18px 0 18px;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-price small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
}

.plan ul {
  margin-top: 20px;
  padding-left: 1.1em;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.plan li + li {
  margin-top: 6px;
}

.plan .btn {
  align-self: flex-start;
}

/* ------------------------------------------------------------------ notes */

.note {
  margin-top: 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--rule-strong);
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.93rem;
}

/* -------------------------------------------------------------------- FAQ */

.faq {
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  position: relative;
  padding: 14px 32px 14px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.05rem;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 0 16px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ------------------------------------------------- docs layout with TOC */

.doc {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

.toc-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.toc ul {
  list-style: none;
  border-left: 1px solid var(--rule);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.9rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 500;
}

.doc-body > section {
  padding-bottom: 48px;
}

.doc-body > section + section {
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.doc-body h2 {
  margin-bottom: 12px;
}

.doc-body h2 + p,
.doc-body .prose {
  margin-bottom: 20px;
}

.doc-body > section > p {
  max-width: 44rem;
  color: var(--ink-2);
}

.doc-body > section > p + p {
  margin-top: 12px;
}

.doc-body .defs,
.doc-body .tbl-wrap,
.doc-body .code,
.doc-body .two-col,
.doc-body .steps {
  margin-top: 20px;
}

/* --------------------------------------------------- solutions entries */

.uses > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

.uses > article:first-child {
  border-top: 0;
  padding-top: 0;
}

.uses h2 {
  font-size: 1.35rem;
}

.uses p {
  margin-top: 10px;
  color: var(--ink-2);
}

.uses ul {
  margin-top: 14px;
  padding-left: 1.1em;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.uses li + li {
  margin-top: 4px;
}

/* ----------------------------------------------------------------- closer */

.closer {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}

.closer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.closer h2 {
  font-size: 1.35rem;
}

.closer p {
  margin-top: 4px;
  color: var(--muted);
}

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

.site-footer {
  padding: 40px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-grid h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.85rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li + li {
  margin-top: 6px;
}

.footer-grid a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-about p {
  margin-top: 10px;
  max-width: 22rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------ not found */

.notfound {
  padding: 96px 0 112px;
}

.notfound .code {
  max-width: 34rem;
  margin-top: 28px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .intro-grid,
  .sec-grid,
  .uses > article,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .sec-grid {
    gap: 20px;
  }

  .steps,
  .steps-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps > li,
  .steps > li + li {
    padding: 16px 16px 12px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* The table of contents becomes a plain list at the top of the page. */
  .toc {
    position: static;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
  }

  .toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    border-left: 0;
  }

  .toc a {
    margin: 0;
    padding: 2px 0;
    border: 0;
  }

  .toc a.is-active {
    border: 0;
    text-decoration: underline;
    text-decoration-color: var(--accent);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle .icon-close,
  .site-header.is-open .nav-toggle .icon-open {
    display: none;
  }

  .site-header.is-open .nav-toggle .icon-close {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
  }

  .js .site-nav {
    display: none;
  }

  .js .site-header.is-open .site-nav {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }

  .nav-links a[aria-current="page"] {
    text-underline-offset: 4px;
  }

  .nav-actions {
    margin: 16px 0 0;
    justify-content: space-between;
  }

  /* Without JavaScript the links are shown under the header bar. */
  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
  }

  html:not(.js) .site-nav {
    position: static;
    padding: 0;
    border: 0;
  }

  html:not(.js) .site-header {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  .intro {
    padding: 40px 0 40px;
  }

  .sec {
    padding: 40px 0;
  }

  .defs,
  .cols,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
  }

  .steps,
  .steps-5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .kv > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .code {
    font-size: 0.8rem;
  }
}

/* The open mobile menu owns the viewport; the page behind it should not scroll. */
@media (max-width: 860px) {
  html.nav-open {
    overflow: hidden;
  }
}

/* Without JavaScript every code sample is shown, one after another. */
html:not(.js) .code-tabs,
html:not(.js) .copy-btn {
  display: none;
}

html:not(.js) .code-panel[hidden] {
  display: block !important;
}

html:not(.js) .code-panel + .code-panel {
  border-top: 1px solid #2a2d33;
}

@media print {
  .site-header,
  .toc {
    position: static;
  }

  .skip-link,
  .nav-toggle,
  .copy-btn,
  .code-tabs {
    display: none !important;
  }

  .code-panel[hidden] {
    display: block !important;
  }
}
