/* ------------------------------------------------------------------
   Nalmeok site

   Breakpoints (mobile-first):
     0–479      small phones, fold cover screens (280–344)
     480–767    large phones, fold inner portrait
     768–1023   tablets, fold landscape
     1024–1279  laptops: two-column hero, sticky section labels
     1280+      wide desktop; the container stops growing

   The page is built from rules, not boxes: sections are separated by
   hairlines, labels sit in a left rail on desktop, and the only filled
   block is the API-key band near the end.
   ------------------------------------------------------------------ */

/* Windows fallback for Hangul while Pretendard loads. Malgun Gothic sets
   Hangul 15.2% wider than Pretendard (measured in Chromium at 100px), so
   swapping fonts would rewrap lines and shift the page. Scaling it to
   85.7% matches Pretendard's Hangul width within 0.1%. Hangul only: Latin
   falls through to the system UI font (Segoe UI is within 0.3%). macOS has
   no Malgun Gothic, so this face is skipped there and Apple SD Gothic Neo,
   already within 1%, is used. */
@font-face {
  font-family: "Pretendard Fallback";
  src: local("Malgun Gothic"), local("MalgunGothic");
  size-adjust: 85.7%;
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF;
}

:root {
  color-scheme: light dark;

  /* Colour — every colour in the site is defined here. Components use
     var(--token); never a literal. The hero is the one dark surface in both
     colour schemes, so its colours are scheme-independent. */
  --bg: #f4f4f2;
  --bg-elevated: #ffffff;
  --paper-frame: #ffffff;
  --ink: #121212;
  --muted: #666a6e;
  --line: rgba(18, 18, 18, 0.12);
  --line-strong: rgba(18, 18, 18, 0.26);
  /* The original orange, darkened just enough for 4.5:1 on --bg (4.54) and white
     text on it (5.0). */
  --accent: #b35417;
  --accent-hover: #a84d10;
  --accent-contrast: #ffffff;
  --accent-tint: rgba(179, 84, 23, 0.1);
  --accent-tint-strong: rgba(179, 84, 23, 0.18);
  --accent-shadow: rgba(160, 74, 17, 0.22);
  --invert-bg: #121212;
  --invert-fg: #f7f7f7;
  --focus: #1a5fb4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  --menu-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
  /* Status levels (/status). The banner, the dots and the 7-day strip use these;
     the level is always written out too, so colour is never the only cue. */
  --level-good: #2f7d4f;
  --level-shaky: #8a6a12;
  --level-poor: #b35417;
  --level-bad: #b3261e;
  --level-none: rgba(18, 18, 18, 0.18);

  /* Hero */
  --hero-bg: #121212;
  --hero-fg: #f7f7f7;
  --hero-fg-muted: rgba(247, 247, 247, 0.74);
  --hero-fg-soft: rgba(247, 247, 247, 0.72);
  --hero-fg-faint: rgba(247, 247, 247, 0.66);
  --hero-line: rgba(247, 247, 247, 0.28);
  --hero-control-bg: rgba(0, 0, 0, 0.18);
  --hero-button-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  --hero-shade: linear-gradient(90deg, rgba(12, 12, 12, 0.94) 0%, rgba(12, 12, 12, 0.8) 42%, rgba(12, 12, 12, 0.28) 100%), linear-gradient(0deg, rgba(12, 12, 12, 0.55) 0%, transparent 50%);
  --hero-shade-narrow: linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.88) 55%, rgba(12, 12, 12, 0.95) 100%);

  /* Type */
  /* Pretendard Variable is self-hosted as a dynamic subset (imported in
     NalmeokLayout): the browser fetches only the unicode-range slices a page
     uses. The fallbacks follow Pretendard's recommended order, with the
     size-adjusted Windows face above first. */
  --font-sans: "Pretendard Variable", Pretendard, "Pretendard Fallback", -apple-system,
    BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-h3: clamp(1rem, 0.98rem + 0.12vw, 1.125rem);
  --text-h2: clamp(1.375rem, 1.25rem + 0.65vw, 1.75rem);
  --text-display: clamp(2.125rem, 1.2rem + 3.9vw, 4.25rem);
  --text-display-sm: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --text-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --page-max: 75rem;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --section-space: clamp(var(--space-7), 7vw, var(--space-9));
  /* Reading measures. Article text sits on --measure; wider page frames
     such as the download page use --measure-wide. */
  --measure: 48em;
  --measure-wide: 54em;
  /* The desktop rail is a share of the frame, not a pinned width: a label
     column that grows a little, and the content that takes the rest. */
  --rail-cols: minmax(9rem, 1fr) minmax(0, 5fr);
  --header-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --bg-elevated: #171717;
    --paper-frame: #1a1a1a;
    --ink: #f2f2f2;
    --muted: #a1a1a1;
    --line: rgba(242, 242, 242, 0.14);
    --line-strong: rgba(242, 242, 242, 0.3);
    --accent: #f09045;
    --accent-hover: #ffa55e;
    --accent-contrast: #1b1208;
    --accent-tint: rgba(240, 144, 69, 0.12);
    --accent-tint-strong: rgba(240, 144, 69, 0.2);
    --accent-shadow: rgba(0, 0, 0, 0.4);
    --invert-bg: #f2f2f2;
    --invert-fg: #0f0f0f;
    --focus: #9cc7f0;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
    --level-good: #6fcf97;
    --level-shaky: #e2c56a;
    --level-poor: #f09045;
    --level-bad: #f2857b;
    --level-none: rgba(242, 242, 242, 0.22);
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #3f4347;
    --line: rgba(18, 18, 18, 0.36);
    --line-strong: rgba(18, 18, 18, 0.58);
  }
}

@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root {
    --muted: #d4d4d4;
    --line: rgba(242, 242, 242, 0.36);
    --line-strong: rgba(242, 242, 242, 0.58);
  }
}

/* Reset and base */

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

::selection {
  background: var(--accent-tint-strong);
}

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

.container {
  inline-size: 100%;
  max-inline-size: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
}

/* Language blocks (guide page) */

html[data-lang="ko"] [data-lang-block="en"],
html[data-lang="en"] [data-lang-block="ko"] {
  display: none !important;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* The homepage header starts transparent over the hero image and picks up
   the page background once the page scrolls. */
.site-header--hero:not(.is-scrolled):not(.is-open) {
  border-bottom-color: transparent;
  background: transparent;
  color: var(--hero-fg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header--hero:not(.is-scrolled):not(.is-open) .brand,
.site-header--hero:not(.is-scrolled):not(.is-open) .brand-name,
.site-header--hero:not(.is-scrolled):not(.is-open) .menu-toggle {
  color: var(--hero-fg);
}

.site-header--hero:not(.is-scrolled):not(.is-open) .brand-latin,
.site-header--hero:not(.is-scrolled):not(.is-open) .header-nav > a {
  color: var(--hero-fg-soft);
}

.site-header--hero:not(.is-scrolled):not(.is-open) .header-nav > a:hover {
  color: var(--hero-fg);
}

.site-header--hero:not(.is-scrolled):not(.is-open) .lang-switch {
  border-color: var(--hero-line);
  background: var(--hero-control-bg);
}

.site-header--hero:not(.is-scrolled):not(.is-open) .lang-switch button {
  color: var(--hero-fg-soft);
}

.site-header--hero:not(.is-scrolled):not(.is-open) .lang-switch button[aria-pressed="true"] {
  background: var(--hero-fg);
  color: var(--hero-bg);
}

.site-header--hero:not(.is-scrolled):not(.is-open) .menu-toggle {
  border-color: var(--hero-line);
}

.site-header--hero.is-open {
  border-bottom-color: var(--line);
  background: var(--bg);
  color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-latin {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 550;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.header-nav > a {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
}

.header-nav > a:hover,
.header-nav > a[aria-current="page"] {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.lang-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* Buttons and links */

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px var(--accent-shadow);
  transition: background-color 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}

.button-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
}

.button-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.button-title {
  font-size: var(--text-md);
  line-height: 1.3;
}

/* platform.js writes data-os on <html> before this stylesheet is applied, so
   the label for the visitor's machine is the one painted first. app.js only
   sets data-state when the release has no file for that machine (fallback)
   and replaces the dummy size, which is the same width. */
#primary-title > [data-title-for],
#primary-meta > [data-meta-for] {
  display: none;
}

html:not([data-os]) #primary-download:not([data-state]) [data-title-for="pending"],
html[data-os="other"] #primary-download:not([data-state]) [data-title-for="other"],
html[data-os="macos"] #primary-download:not([data-state]) [data-title-for="macos"],
html[data-os="windows"]:not([data-arch="arm64"]) #primary-download:not([data-state]) [data-title-for="windows-x64"],
html[data-os="windows"][data-arch="arm64"] #primary-download:not([data-state]) [data-title-for="windows-arm64"],
#primary-download[data-state="macos"] [data-title-for="macos"],
#primary-download[data-state="windows-x64"] [data-title-for="windows-x64"],
#primary-download[data-state="windows-arm64"] [data-title-for="windows-arm64"],
#primary-download[data-state="fallback"] [data-title-for="fallback"] {
  display: inline;
}

html:not([data-os]) #primary-meta [data-meta-for="other"],
html[data-os="other"] #primary-meta [data-meta-for="other"],
html[data-os="macos"] #primary-meta [data-meta-for="macos"],
html[data-os="windows"]:not([data-arch="arm64"]) #primary-meta [data-meta-for="windows-x64"],
html[data-os="windows"][data-arch="arm64"] #primary-meta [data-meta-for="windows-arm64"] {
  display: inline;
}

/* Windows' main button opens Microsoft Store, which has no file size. */
html[data-os="windows"] #primary-size {
  display: none;
}

.windows-only {
  display: none;
}

html[data-os="windows"] .windows-only {
  display: inline;
}

/* The dummy size is only for the moment before app.js replaces it; without
   JavaScript it would be a made-up fact, so it is hidden. */
html:not([data-os]) #primary-size,
html[data-os="other"] #primary-size {
  display: none;
}

.button-meta {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.82;
}

/* The size is filled in after /api/latest answers. The placeholder in
   app.js has the same digits as a real size, and tabular digits keep the
   button's width steady while it is replaced. */
.button-meta-size {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.button-meta-size:not(:empty)::before {
  content: " · ";
}

.button-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.text-underline {
  text-underline-offset: 3px;
}

/* Hero */

.hero {
  --hero-pad: clamp(var(--space-8), 9vw, var(--space-9));
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: min(72svh, 48rem);
  padding-block: var(--hero-pad);
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-fg);
}

.hero--under-header {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--hero-pad));
}

.hero-backdrop,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-shade {
  background: var(--hero-shade);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 var(--space-5);
  color: var(--hero-fg);
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lede {
  max-width: 46ch;
  margin: 0 0 var(--space-6);
  color: var(--hero-fg-muted);
  font-size: var(--text-lede);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.release-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.hero .release-line,
.hero .release-line a {
  color: var(--hero-fg-faint);
}

.hero .release-line a:hover,
.hero .version {
  color: var(--hero-fg);
}

.release-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.version {
  display: inline-block;
  min-inline-size: 6ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.release-sep {
  opacity: 0.5;
}

.release-line a {
  text-underline-offset: 2px;
}

.hero .button-primary {
  box-shadow: var(--hero-button-shadow);
}

/* Section frame */

.section {
  border-top: 1px solid var(--line);
  padding-block: var(--section-space);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.section-aside {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
}

.section-aside h2 {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-body {
  min-width: 0;
}

.section-lede {
  max-width: 60ch;
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: var(--text-md);
}

/* Cost comparison band */

.value-band {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.value-inner {
  padding-block: clamp(var(--space-6), 5vw, var(--space-8));
}

.value-inner h2 {
  max-width: 24ch;
  margin: 0 0 var(--space-4);
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: initial;
}

.value-inner p {
  max-width: 62ch;
  margin: 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.7;
}

/* Steps */

.step-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}

.step:first-child {
  padding-top: 0;
  border-top: 0;
}

.step-index {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-h3);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.75;
}

.step .step-link {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.step-link a {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 3px;
}

.step-link-sep {
  margin: 0 var(--space-2);
  color: var(--muted);
}

/* Download list */

.platform-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}

.platform-row:last-child {
  border-bottom: 1px solid var(--line);
}

.platform-identity h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-md);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.platform-detail {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.device-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
}

.device-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.platform-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--ink);
  text-decoration: none;
}

.platform-action::after {
  content: "";
  position: absolute;
  inset: 0;
}

.platform-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.platform-file {
  font-size: var(--text-sm);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.platform-size {
  min-block-size: 1lh;
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.platform-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.platform-row:hover .platform-file {
  color: var(--accent);
}

.platform-row:hover .platform-icon {
  color: var(--accent);
  transform: translateY(2px);
}

.platform-row:hover .platform-icon--external {
  transform: translate(2px, -2px);
}

.platform-row:has(.platform-action:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.platform-row:has(.platform-action:focus-visible) .platform-action:focus-visible {
  outline: none;
}

.platform-row.is-unavailable {
  opacity: 0.6;
}

/* The build for the visitor's own machine gets a tinted row so the "this
   device" mark is findable at a glance. */
.platform-row.is-current {
  margin-inline: calc(-1 * var(--space-4));
  padding-inline: var(--space-4);
  background: var(--accent-tint);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* The executables are the alternative to Microsoft Store, so they stay
   folded away until asked for. The summary reads as one more row. */
.platform-more {
  border-bottom: 1px solid var(--line);
}

.platform-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.platform-more summary:hover {
  color: var(--accent);
}

.platform-more summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.platform-more-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.platform-more summary:hover .platform-more-icon {
  color: var(--accent);
}

.platform-more details[open] .platform-more-icon {
  transform: rotate(180deg);
}

.platform-list--more .platform-row:last-child {
  border-bottom: 0;
}

/* Install notes */

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

.note {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.note:first-child {
  padding-top: 0;
  border-top: 0;
}

.note h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-h3);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.note p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.75;
}

/* Key band */

.key-band {
  background: var(--invert-bg);
  color: var(--invert-fg);
}

.key-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: clamp(var(--space-7), 6vw, var(--space-9));
}

.key-band h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.key-band p {
  max-width: 60ch;
  margin: 0;
  color: inherit;
  font-size: var(--text-md);
  opacity: 0.72;
}

.key-link {
  align-self: start;
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.key-link:hover {
  background: var(--accent-hover);
}

.key-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.key-link-secondary {
  color: inherit;
  font-size: var(--text-sm);
  opacity: 0.72;
  text-underline-offset: 3px;
}

.key-link-secondary:hover {
  opacity: 1;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-6);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 750;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.footer-latin {
  color: var(--muted);
  font-weight: 550;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* Guide article */

.article-page {
  padding-block: clamp(var(--space-6), 6vw, var(--space-8)) var(--section-space);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

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

.article-grid--single .article {
  width: 100%;
  margin-inline: auto;
}

.article-aside {
  display: none;
}

.article {
  max-inline-size: var(--measure);
  min-width: 0;
}

.article-head h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-display-sm);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.article-lede {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-lede);
  line-height: 1.75;
}

.article-note {
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Privacy page: plain paragraphs and lists, at the guide text size. */

.privacy-body {
  margin-top: var(--space-6);
}

.privacy-body h2 {
  margin: var(--space-6) 0 var(--space-3);
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.privacy-body p,
.privacy-body ul {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  line-height: 1.8;
}

.privacy-body ul {
  padding-left: 1.4em;
}

.privacy-body li + li {
  margin-top: var(--space-2);
}

.privacy-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.privacy-body a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.guide-steps {
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}

.guide-step {
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.guide-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.guide-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: baseline;
  margin-bottom: var(--space-3);
}

.guide-step-index {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.guide-step h2,
.guide-step h4 {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.guide-step p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

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

.guide-substeps {
  margin: 0 0 var(--space-4);
  padding-left: 1.4em;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

.guide-substeps li + li {
  margin-top: var(--space-2);
}

.guide-step strong {
  color: var(--ink);
  font-weight: 700;
}

.guide-step code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.guide-step a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.guide-figure {
  margin: var(--space-5) 0 0;
}

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

/* Window captures from macOS carry their own drop shadow and rounded corners
   in the alpha channel, so the image sits unframed on the page. A rectangular
   capture with no transparency (a Windows dialog) keeps a hairline frame so
   its edge does not blend into the background. */
.guide-figure--framed img {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.guide-figure figcaption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
}

.guide-note {
  margin: var(--space-5) 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

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

.guide-faq {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.guide-faq h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.guide-faq dl {
  margin: 0;
}

.guide-faq dt {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-md);
  font-weight: 750;
}

.guide-faq dd {
  margin: var(--space-1) 0 var(--space-4);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

/* Reference links at the end of an article: secondary to the article and
   to "read next", so they sit small, compact and right-aligned. */
.guide-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
}

.guide-links h2 {
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: 650;
}

.guide-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-links a {
  color: var(--muted);
  text-underline-offset: 3px;
}

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

.guide-cta {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.toc {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  text-decoration: none;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--ink);
}

.guide-index {
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.guide-index li {
  border-top: 1px solid var(--line);
}

.guide-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-5);
  text-decoration: none;
}

.guide-index a > span {
  min-width: 0;
}

.guide-index-title {
  display: block;
  font-size: var(--text-lg);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.guide-index-desc {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--text-sm);
}

.guide-index svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.guide-index a:hover .guide-index-title {
  color: var(--accent);
}

.guide-index a:hover svg {
  color: var(--accent);
  transform: translateX(3px);
}

/* 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-inline-size: var(--measure);
  min-height: 100vh;
  padding-block: var(--space-8);
}

.not-found img {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
}

.not-found h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-display-sm);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.not-found .article-lede {
  margin-bottom: var(--space-6);
}

/* Download page */

.download-page {
  padding-block: clamp(var(--space-6), 6vw, var(--space-8)) var(--section-space);
}

.download-inner {
  max-inline-size: var(--measure-wide);
}

.download-head h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-display-sm);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.download-kicker {
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.download-status-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
}

.download-status-icon svg {
  width: 22px;
  height: 22px;
}

.download-status-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* The file line keeps its height while the release is loading, so the
   install steps below do not move when the name arrives (CLS). It is only
   collapsed when there is no file to show. */
.download-file {
  min-block-size: 1lh;
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.download-file-name {
  color: var(--ink);
  font-weight: 650;
}

.download-file-size::before {
  content: " · ";
}

.download-file-size:empty {
  display: none;
}

.download-hint {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.download-status .button-primary {
  margin-top: var(--space-4);
}

/* The status text, hint and button label carry every language and state in
   the HTML; CSS shows the current one. guide.js hides the inactive language. */
.download-status-title [data-state-text],
.download-hint [data-state-text],
.download-status .button-title [data-state-text] {
  display: none;
}

#download-status[data-state="loading"] .download-status-title [data-state-text="loading"],
#download-status[data-state="ready"] .download-status-title [data-state-text="ready"],
#download-status[data-state="empty"] .download-status-title [data-state-text="empty"],
#download-status[data-state="error"] .download-status-title [data-state-text="error"],
#download-status[data-state="loading"] .download-hint [data-state-text="loading"],
#download-status[data-state="ready"] .download-hint [data-state-text="ready"],
#download-status[data-state="empty"] .download-hint [data-state-text="empty"],
#download-status[data-state="error"] .download-hint [data-state-text="error"],
#download-status[data-state="ready"] .button-title [data-state-text="ready"],
#download-status:not([data-state="ready"]) .button-title [data-state-text="fallback"] {
  display: inline;
}

#download-status:is([data-state="empty"], [data-state="error"]) .download-file {
  display: none;
}

.download-guide {
  margin-top: var(--space-8);
}

.download-guide > h2 {
  margin: 0 0 var(--space-5);
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.download-guide > [data-guide] > h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.download-guide .guide-steps {
  margin-top: var(--space-4);
}

html[data-os="macos"] [data-guide="windows"],
html[data-os="windows"] [data-guide="macos"] {
  display: none;
}

/* A small figure is capped at its image's display width, which the Figure
   component passes as --figure-w from the image's width, so the caption wraps
   at the image's width. min-content sizing is not used: Chromium counts an
   image with a percentage max-width as zero wide there, which collapsed the
   figure to a single word. */
.guide-figure--small {
  max-inline-size: min(100%, var(--figure-w, 100%));
}

/* ---------------------------- Breakpoints ---------------------------- */

/* Large phones and fold inner portrait */
@media (min-width: 480px) {
  .hero-lede {
    max-width: 52ch;
  }
}

/* Tablets, fold landscape */
@media (min-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .step {
    padding-block: 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-strong);
  }

  .step:first-child {
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-strong);
  }

  .platform-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-6);
  }

  .platform-action {
    justify-content: flex-end;
    text-align: right;
  }

  .notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .note {
    padding-block: 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-strong);
  }

  .note:first-child {
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-strong);
  }

  .key-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-7);
  }

  .key-link {
    align-self: center;
  }
}

/* Laptops: sticky section rails */
@media (min-width: 1024px) {
  /* The copy takes just over half the frame; the rest stays image. */
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .hero-copy {
    grid-column: 1;
  }

  .section-grid {
    grid-template-columns: var(--rail-cols);
    gap: var(--space-7);
  }

  .section-aside {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--space-2);
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
    align-self: start;
  }

  .article-grid {
    grid-template-columns: var(--rail-cols);
    gap: var(--space-7);
  }

  .article-aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
    align-self: start;
  }

  .guide-step p,
  .guide-substeps {
    font-size: var(--text-md);
  }
}

/* Small phones and fold cover screens */
@media (max-width: 479px) {
  .brand-latin {
    display: none;
  }

  .button-primary {
    width: 100%;
    justify-content: space-between;
  }

  .button-meta {
    display: none !important;
  }

  .section-aside {
    gap: var(--space-2);
  }

  .platform-action {
    gap: var(--space-3);
  }
}

/* Tablets and fold landscape: the hero image becomes a vertical backdrop */
@media (max-width: 1023px) {
  .hero-backdrop img {
    object-position: 62% center;
  }

  .hero-shade {
    background: var(--hero-shade-narrow);
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: inline-grid;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 19;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--menu-shadow);
  }

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

  .header-nav > a {
    padding-block: var(--space-3);
    border-top: 1px solid var(--line);
    font-size: var(--text-base);
  }

  .header-nav > a:first-child {
    border-top: 0;
  }

  .header-nav .lang-switch {
    align-self: flex-start;
    margin-top: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Microsoft Store badge (web component from get.microsoft.com). The block
   keeps its height before the script draws it, so the note does not jump. */
.store-badge {
  display: block;
  min-block-size: 52px;
  margin-top: var(--space-4);
}

/* Status page, after incident.io status pages: an overall banner whose top
   strip is tinted by the free level, then a "last 7 days" box with one row
   per mode and a strip of 28 six-hour bars. Both boxes sit in the download
   page's frame (--measure-wide). A level is always written out in text; the
   dot and bar colours only repeat it. Each bar carries its numbers in
   aria-label and title. */

.status-box {
  margin-top: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.status-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.status-box-head h2 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 650;
}

.status-box-body {
  padding: var(--space-3) var(--space-4);
}

/* Banner */

.status-banner {
  --level-color: var(--level-none);
}

.status-banner[data-level="good"] {
  --level-color: var(--level-good);
}

.status-banner[data-level="shaky"] {
  --level-color: var(--level-shaky);
}

.status-banner[data-level="poor"] {
  --level-color: var(--level-poor);
}

.status-banner[data-level="bad"] {
  --level-color: var(--level-bad);
}

.status-banner .status-box-head {
  align-items: center;
  padding-block: var(--space-4);
}

/* Unknown and loading keep a neutral strip. */
.status-banner:is([data-level="good"], [data-level="shaky"], [data-level="poor"], [data-level="bad"]) .status-box-head {
  background: color-mix(in srgb, var(--level-color) 14%, var(--bg));
}

.status-box-head h2.status-banner-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.status-banner:not([data-level]) .status-banner-title {
  color: var(--muted);
}

.status-banner .status-dot {
  width: 10px;
  height: 10px;
  background: var(--level-color);
}

.status-updated {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.status-line {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}

.status-line-part {
  white-space: nowrap;
}

.status-line:empty {
  display: none;
}

.status-line + .status-line {
  margin-top: var(--space-1);
}

/* Optimistic placeholders. The page is drawn before /api/status answers, so
   every box already has its final size and the data lands without a jump.
   The pulse says "still loading"; the reduced-motion rule above turns it off. */

.status-banner[data-state="loading"] .status-updated:empty::before,
.status-systems[data-state="loading"] .status-system-rate:empty::before {
  content: "";
  display: inline-block;
  inline-size: 4.5rem;
  block-size: 0.8em;
  border-radius: 3px;
  background: var(--level-none);
  animation: status-pulse 1.6s ease-in-out infinite;
}

/* The empty detail line would otherwise be display:none; keep its line box so
   the banner body does not grow when the numbers arrive. */
.status-banner[data-state="loading"] .status-line[data-role="detail"]:empty {
  display: block;
  min-block-size: 1.65em;
}

.status-banner[data-state="loading"] .status-line[data-role="detail"]:empty::before {
  content: "";
  display: block;
  inline-size: min(22rem, 72%);
  block-size: 0.9em;
  border-radius: 3px;
  background: var(--level-none);
  animation: status-pulse 1.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.status-note {
  color: var(--ink);
}

/* Last 7 days */

.status-system-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-system {
  padding: var(--space-4);
}

.status-system + .status-system {
  border-top: 1px solid var(--line);
}

.status-system-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.status-system h3 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-base);
  font-weight: 650;
  white-space: nowrap;
}

.status-system-rate {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--level-none);
}

.status-strip {
  display: flex;
  gap: 2px;
  block-size: 32px;
}

.status-strip-bar {
  flex: 1 1 0;
  min-inline-size: 0;
  border-radius: 2px;
  background: var(--level-none);
}

.status-strip-placeholder {
  animation: status-pulse 1.6s ease-in-out infinite;
}

/* History could not be loaded: hide the saved grid rather than let 28 grey
   bars read as "no requests". The box keeps its height. */
.status-systems[data-state="error"] .status-strip-placeholder {
  opacity: 0;
}

.status-system[data-level="good"] .status-dot,
.status-strip-bar[data-level="good"] {
  background: var(--level-good);
}

.status-system[data-level="shaky"] .status-dot,
.status-strip-bar[data-level="shaky"] {
  background: var(--level-shaky);
}

.status-system[data-level="poor"] .status-dot,
.status-strip-bar[data-level="poor"] {
  background: var(--level-poor);
}

.status-system[data-level="bad"] .status-dot,
.status-strip-bar[data-level="bad"] {
  background: var(--level-bad);
}

.status-axis {
  display: flex;
  justify-content: space-between;
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* Footnote */

.status-footnote {
  margin: var(--space-5) 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.65;
}

.status-footnote-link {
  white-space: nowrap;
}

.status-footnote a {
  color: var(--muted);
  text-underline-offset: 3px;
}

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