/* ARN Smart bar: one thin row above every product header (build-site.cjs, renderArnBar), the same on every site
   (user decision 2026-11-02). build-site.cjs puts this file in front of the product's site.css. The bar scrolls
   away with the page; the product header below it stays sticky. Values are fixed here, not taken from the product's
   variables, so the bar looks the same on all fourteen sites. */
.arn-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #18191c;
  color: #c9ccd2;
  font: 500 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.arn-bar__row {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1440px;
  min-height: 36px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.arn-bar a {
  color: #e7e9ec;
  text-decoration: none;
}

.arn-bar a:hover,
.arn-bar a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.arn-bar__home {
  display: flex;
  flex: none;
}

.arn-bar__home img {
  display: block;
  width: auto;
  height: 18px;
}

.arn-bar__contact {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.arn-bar__contact li {
  margin: 0;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.arn-bar__links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 999.98px) {
  .arn-bar__place,
  .arn-bar__extra {
    display: none;
  }
}

@media (max-width: 639.98px) {
  .arn-bar__row {
    gap: 10px;
  }

  .arn-bar__contact li {
    padding: 0 10px;
  }

  .arn-bar__mail {
    display: none;
  }
}

/* The narrowest phones keep the logo (arnsmart.com) and the phone number. */
@media (max-width: 359.98px) {
  .arn-bar__links {
    display: none;
  }
}

/* Vendix Theme mini site — "theme showcase" design.
   Source: _tools/site/products/vendix-theme/site.css; build-site.cjs copies it to site/vendix-theme/assets/site.css.
   The yellow of the Vendix logo carries the centred hero, which sits on the twelve column guides of a page builder;
   the rest of the site is white with charcoal text. Pictures, Explore cards and the hero's points sit in small
   browser windows (three dots on a title bar), like the theme's own illustrations. Type: ARN Smart Exuberant (rounded,
   close to the soft shapes of the Vendix wordmark) for headings, ARN Smart Utility for text and controls.
   Markup contract: site/README.md. */

@font-face {
  font-family: "ARN Smart Exuberant";
  src: url("fonts/ARNSmartExuberant-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ARN Smart Utility";
  src: url("fonts/ARNSmartUtility-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ARN Smart Utility";
  src: url("fonts/ARNSmartUtility-Demi.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ARN Smart Utility";
  src: url("fonts/ARNSmartUtility-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sun: #ffb600;
  --sun-light: #ffd466;
  --tint: #fff7e0;
  --orange: #e58d2e;
  --ink: #1f2329;
  --ink-soft: #3b414b;
  --muted: #5a606b;
  --surface: #ffffff;
  --canvas: #faf9f6;
  --line: #ebe8e1;
  --line-strong: #d6d1c6;
  --night-muted: #c9ccd2;
  --radius: 8px;
  --radius-card: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --toc-h: 56px;
  --shadow: 0 22px 40px -30px rgba(31, 35, 41, 0.5);
  --font: "ARN Smart Utility", "Segoe UI", system-ui, sans-serif;
  --font-display: "ARN Smart Exuberant", "ARN Smart Utility", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* The title bar of a small browser window: orange, yellow and grey dots on a light bar. */
  --window-bar:
    radial-gradient(circle, var(--orange) 3.5px, transparent 4px) 12px 50% / 10px 10px no-repeat,
    radial-gradient(circle, var(--sun) 3.5px, transparent 4px) 27px 50% / 10px 10px no-repeat,
    radial-gradient(circle, var(--line-strong) 3.5px, transparent 4px) 42px 50% / 10px 10px no-repeat,
    var(--canvas);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--ink);
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: 880px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--surface);
}

.btn--primary:hover {
  background: var(--ink-soft);
  color: var(--surface);
}

.btn--secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost-light {
  border-color: var(--night-muted);
  background: transparent;
  color: var(--surface);
}

.btn--ghost-light:hover {
  border-color: var(--sun);
  color: var(--sun);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.actions--center {
  justify-content: center;
}

/* ---------- Header: one row like the other mini sites (logo, the pages, the main button) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}

.site-header__row {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: var(--header-h);
  margin-right: auto;
  text-decoration: none;
}

.brand__wordmark {
  display: block;
  width: auto;
  height: 46px;
}

.site-header__action {
  flex: none;
  min-height: 42px;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.nav-open .nav-toggle__bars {
  background: transparent;
}

.nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

/* The "Site Types" group (templates.cjs, site.js): a menu item with a small chevron and its list of site types. */
.main-nav__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.main-nav__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.main-nav__toggle[aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.main-nav__toggle:hover,
.main-nav__group.is-current > .main-nav__toggle {
  color: var(--ink);
}

.main-nav__menu {
  display: none;
}

.main-nav__toggle[aria-expanded="true"] + .main-nav__menu {
  display: block;
}

/* Without the script the group opens on hover and keyboard focus. */
html:not(.js) .main-nav__group:hover > .main-nav__menu,
html:not(.js) .main-nav__group:focus-within > .main-nav__menu {
  display: block;
}

/* Below 1440px the pages do not fit beside the logo and the button: they open as a list below the header, with the
   site types in place under their group. */
@media (max-width: 1439px) {
  .main-nav {
    display: none;
  }

  .nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-top: 0;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav__list {
    display: grid;
  }

  .main-nav a,
  .main-nav__toggle {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius);
  }

  .main-nav a {
    display: block;
  }

  .main-nav__toggle {
    justify-content: space-between;
  }

  .main-nav a:hover,
  .main-nav__toggle:hover {
    background: var(--canvas);
    color: var(--ink);
  }

  .main-nav a[aria-current="page"] {
    background: var(--tint);
    box-shadow: inset 4px 0 0 var(--sun);
    color: var(--ink);
  }

  .main-nav__menu {
    margin: 2px 0 6px 14px;
    padding-left: 8px;
    border-left: 2px solid var(--line);
  }
}

@media (min-width: 768px) and (max-width: 1439px) {
  .nav-open .main-nav {
    left: auto;
    width: 380px;
  }
}

/* Wide screens: the pages sit between the logo and the button in a header row a little wider than the page; the
   current page, or the group that holds it, carries a yellow bar on the header's bottom edge, and the site types open
   in a panel below their group. */
@media (min-width: 1440px) {
  .site-header__row {
    max-width: 1520px;
    column-gap: 16px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    flex: 1 1 auto;
    align-self: stretch;
  }

  .main-nav__list {
    display: flex;
    justify-content: center;
    height: 100%;
  }

  .main-nav__list > li {
    display: flex;
  }

  .main-nav__list > li > a,
  .main-nav__toggle {
    display: flex;
    align-items: center;
    padding: 0 7px;
    font-size: 0.9125rem;
    white-space: nowrap;
  }

  .main-nav__list > li > a:hover {
    color: var(--ink);
  }

  .main-nav__list > li > a[aria-current="page"],
  .main-nav__group.is-current > .main-nav__toggle {
    box-shadow: inset 0 -4px 0 var(--sun);
    color: var(--ink);
  }

  .main-nav__group {
    position: relative;
  }

  .main-nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-top: 0;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav__menu a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 0.9625rem;
    white-space: nowrap;
  }

  .main-nav__menu a:hover {
    background: var(--canvas);
    color: var(--ink);
  }

  .main-nav__menu a[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
  }
}

@media (max-width: 599px) {
  .site-header__action {
    display: none;
  }
}

@media (max-width: 419px) {
  .nav-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */

/* Centred hero (site.json hero.layout "center"): eyebrow, title, summary, points and actions read as one block on the
   Vendix yellow, over the twelve column guides of a page builder that fade out towards the bottom. */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
  background: var(--sun);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter));
  margin: 0 auto;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.16) 0 calc((100% - 220px) / 12),
    transparent calc((100% - 220px) / 12) calc((100% - 220px) / 12 + 20px)
  );
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--ink);
}

.eyebrow {
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  text-wrap: balance;
}

.page-topic .hero h1 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.hero__summary {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero__summary p {
  margin: 0 0 0.8em;
}

.hero__summary p:last-child {
  margin-bottom: 0;
}

/* Overview's three points: small browser windows. */
.hero__points {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 1080px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.hero__point {
  position: relative;
  overflow: hidden;
  padding: 46px 20px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 18px 36px -24px rgba(31, 35, 41, 0.55);
  color: var(--ink-soft);
  font-size: 0.97rem;
  text-align: left;
}

.hero__point::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 28px;
  border-bottom: 1px solid var(--line);
  background: var(--window-bar);
}

.hero__point strong {
  color: var(--ink);
}

@media (min-width: 900px) {
  .hero__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- "On this page" bar ---------- */

.toc {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}

.toc__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: var(--toc-h);
}

.toc__toggle {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.toc__label {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc__current {
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.toc__toggle::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.toc--open .toc__toggle::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.toc__steps {
  display: flex;
  gap: 8px;
}

.toc__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.toc__step:hover {
  border-color: var(--ink);
}

.toc__step[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.toc__list {
  flex-basis: 100%;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
}

.js .toc__list {
  display: none;
  position: absolute;
  top: 100%;
  left: var(--gutter);
  width: min(560px, calc(100% - var(--gutter) * 2));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.js .toc--open .toc__list {
  display: block;
}

.toc__list a {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-decoration: none;
}

.toc__list a:hover {
  background: var(--canvas);
  color: var(--ink);
}

.toc__list a.is-active {
  background: var(--tint);
  box-shadow: inset 4px 0 0 var(--sun);
  color: var(--ink);
}

.toc__num {
  flex: none;
  min-width: 2ch;
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 559px) {
  .toc__label {
    display: none;
  }

  .toc__step {
    padding: 0 12px;
  }

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

/* ---------- Sections ---------- */

.block {
  padding: clamp(56px, 7vw, 96px) 0;
}

.tint {
  background: var(--tint);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

/* Every section without a picture beside its text stands on the centre line. */
.section-head--center,
.wrap--narrow > .section-head {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.wrap--narrow > .figure {
  max-width: 760px;
  margin: 40px auto 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.section-head__lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Prose ---------- */

.prose {
  color: var(--ink-soft);
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1em;
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 24px;
}

/* Bullets are small layout blocks. */
.prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sun);
}

.prose ol {
  counter-reset: vxt-item;
}

.prose ol > li {
  padding-left: 40px;
  counter-increment: vxt-item;
}

.prose ol > li::before {
  content: counter(vxt-item);
  position: absolute;
  top: 0.1em;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.prose code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.prose--center {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.table-wrap {
  margin: 0 0 1.4em;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
}

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

.table-wrap th {
  padding: 12px 16px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.table-wrap td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

/* ---------- Figures: small browser windows ---------- */

.figure {
  position: relative;
  margin: 0;
  padding-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.figure::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--window-bar);
}

.figure__link {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
}

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

/* With a picture on a topic page: the heading and the text on the left (7), the picture beside them (5). Without
   one, and on the Overview, where the theme cover runs large below the text: the heading stands on the centre line
   and the text sits in a centred column, lines left-aligned for reading. */

.feature {
  padding: clamp(48px, 6vw, 80px) 0;
}

.feature.tint {
  background: var(--tint);
}

.feature__grid {
  display: grid;
  gap: 24px;
  grid-template-areas:
    "head"
    "prose";
}

.feature--figure .feature__grid {
  grid-template-areas:
    "head"
    "prose"
    "media";
}

.feature__text {
  display: contents;
}

.feature__head {
  grid-area: head;
}

.feature__grid > .prose,
.feature__text > .prose {
  grid-area: prose;
  min-width: 0;
}

.feature__media {
  display: grid;
  grid-area: media;
  gap: 24px;
  align-self: start;
  min-width: 0;
}

.feature__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* The section number is a small yellow layout block. */
.feature__number {
  flex: none;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.feature__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.feature__title {
  max-width: 36ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.feature--text .feature__head,
.page-overview .feature__head {
  text-align: center;
}

.feature--text .feature__kicker,
.page-overview .feature__kicker {
  justify-content: center;
}

.feature--text .feature__title,
.page-overview .feature__title {
  margin-inline: auto;
}

.feature--text .feature__grid > .prose,
.feature--text .feature__text > .prose,
.page-overview .feature__text > .prose {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.page-overview .feature__media {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .feature__grid {
    gap: 28px 56px;
  }

  .page-topic .feature--figure .feature__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "head media"
      "prose media";
  }

  .page-topic .feature--figure .feature__media {
    position: sticky;
    top: calc(var(--header-h) + var(--toc-h) + 24px);
  }
}

/* ---------- Cards: one browser window per page ---------- */

.cards {
  display: grid;
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 14px 28px -24px rgba(31, 35, 41, 0.55);
  transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  flex: none;
  height: 26px;
  border-bottom: 1px solid var(--line);
  background: var(--window-bar);
}

.card:hover,
.card:focus-within {
  border-color: var(--sun);
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--canvas);
}

.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card__body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__link {
  margin-top: auto;
  font-weight: 600;
}

/* The whole card opens its page; the link stays the one focusable target. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ---------- Steps: numbered layout blocks ---------- */

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

.steps__item {
  position: relative;
  padding: 20px 20px 20px 74px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  counter-increment: vxt-step;
}

.steps__item::before {
  content: counter(vxt-step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.steps__item > p {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .steps {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }

  .steps__item {
    padding: 72px 20px 22px;
  }
}

/* ---------- Audience tiles ---------- */

.tiles {
  display: grid;
  gap: 16px;
}

.tile {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.tile::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 44px;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background: var(--sun);
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.tile p + p {
  margin-top: 10px;
}

.tile .tile__title {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 768px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* One row of equal tiles, however many audiences the section names. */
@media (min-width: 1100px) {
  .tiles {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }
}

/* ---------- Questions ---------- */

.faq {
  display: grid;
  gap: 0 48px;
}

.faq__item {
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}

.faq__item h3 {
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq__item h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.42em;
  border-radius: 2px;
  background: var(--sun);
}

.faq__item .prose {
  padding-left: 22px;
  color: var(--muted);
}

.faq__item .prose p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- A practical routine: a browser window with a checklist ---------- */

.workflow__panel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: calc(30px + clamp(28px, 4vw, 44px)) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workflow__panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--window-bar);
}

.workflow__panel > h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.workflow__panel > h3 {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.workflow__panel .prose ol > li {
  margin-bottom: 0;
  padding: 12px 0 12px 44px;
  border-bottom: 1px solid var(--line);
}

.workflow__panel .prose ol > li::before {
  top: 12px;
}

/* ---------- Closing: the one charcoal band ---------- */

.closing {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 6px solid var(--sun);
  background: var(--ink);
  color: var(--night-muted);
  text-align: center;
}

.closing h2 {
  max-width: 22ch;
  margin: 0 auto 16px;
  color: var(--surface);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.closing .prose {
  color: var(--night-muted);
}

.closing .btn--primary {
  background: var(--sun);
  color: var(--ink);
}

.closing .btn--primary:hover {
  background: var(--sun-light);
  color: var(--ink);
}

.closing :focus-visible {
  outline-color: var(--sun);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__grid {
  display: grid;
  gap: 32px;
}

.site-footer__brand img {
  display: block;
  width: 180px;
  height: auto;
}

.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
}

.site-footer__publisher img {
  display: block;
  width: 120px;
  height: auto;
}

.site-footer__publisher p {
  margin: 12px 0 0;
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  }

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

/* ---------- Badges, review line, image viewer ---------- */

.edition {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.7em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.page-review {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.lightbox {
  max-width: 94vw;
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.lightbox::backdrop {
  background: rgba(31, 35, 41, 0.86);
}

.lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  height: auto;
}

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Motion (only when the visitor allows it) ---------- */

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

  .card:hover {
    transform: translateY(-3px);
  }
}
