/* Keystore Studio website — secondary pages (downloads, privacy, 404).
   Builds on base.css tokens. Monochrome; hue appears only as status (ok / warn / bad / info). */

/* ======================================================================
   Shared page pieces
   ====================================================================== */
.page-hero-pad {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 104px));
}

/* Status pills */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.status .dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}
.status-ok {
  background: var(--ok-soft);
  color: color-mix(in srgb, var(--ok) 82%, var(--ink));
}
.status-warn {
  background: var(--warn-soft);
  color: color-mix(in srgb, var(--warn) 80%, var(--ink));
}

/* OS glyph badge */
.os-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--bg);
  flex: none;
  box-shadow: var(--shadow-sm);
}
.os-badge svg {
  width: 22px;
  height: 22px;
}
.os-badge-quiet {
  background: var(--bg-3);
  color: var(--ink);
  box-shadow: none;
}

/* Callouts */
.callout {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.callout p {
  margin: 0;
}
.callout svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.callout b,
.callout strong {
  color: var(--ink);
  font-weight: 600;
}
.callout-warn {
  background: var(--warn-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 22%, transparent);
}
.callout-warn svg {
  color: var(--warn);
}
.callout-info {
  background: var(--info-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 20%, transparent);
}
.callout-info svg {
  color: var(--info);
}

/* Numbered steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.steps > li + li {
  border-top: 1px solid var(--line);
}
.steps b {
  color: var(--ink);
  font-weight: 600;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-spring);
}
.steps > li > div > .term {
  margin-top: 12px;
}

/* Generic table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.spec-table th,
.spec-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.spec-table tr:last-child > * {
  border-bottom: 0;
}
.spec-table thead th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  background: var(--surface-2);
}
.spec-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.spec-table td {
  color: var(--ink-2);
}
.spec-table code {
  font-size: 0.82em;
  white-space: nowrap;
}
.spec-table tbody tr {
  transition: background-color var(--dur-1);
}
.spec-table tbody tr:hover {
  background: var(--surface-2);
}
.spec-table-lg tbody th {
  width: 18%;
}
.spec-table-lg td {
  width: 27%;
}
.spec-table-lg thead th {
  font-size: 15px;
  color: var(--ink);
}

/* ======================================================================
   Terminal blocks
   ====================================================================== */
.term {
  --term-bg: #161618;
  --term-bar: #1f1f22;
  --term-ink: #f5f5f7;
  --term-dim: #8e8e93;
  --term-line: rgba(255, 255, 255, 0.08);
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--term-bg);
  color: var(--term-ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), var(--shadow-md);
  overflow: hidden;
  text-align: left;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .term {
    --term-bg: #0f0f10;
    --term-bar: #161618;
    box-shadow: 0 0 0 1px var(--line-strong);
  }
}
:root[data-theme="dark"] .term {
  --term-bg: #0f0f10;
  --term-bar: #161618;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-line);
}
.term-lights {
  display: inline-flex;
  gap: 7px;
}
.term-lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.term-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--term-dim);
  letter-spacing: 0.01em;
}
.term-body {
  position: relative;
}
.term pre {
  margin: 0;
  padding: 18px 20px;
  padding-right: 96px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--term-ink);
  tab-size: 2;
  scrollbar-width: thin;
}
.term pre .p::before {
  content: "$ ";
  color: var(--term-dim);
  user-select: none;
  -webkit-user-select: none;
}
.term pre[data-shell="ps"] .p::before {
  content: "PS> ";
}
.term pre .k {
  color: var(--term-ink);
}
.term pre .c {
  color: var(--term-dim);
}
.term-inline pre {
  padding: 13px 16px;
  padding-right: 92px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Narrow columns: the copy button sits above the command instead of over it. */
.note .term-inline pre,
.verify-col .term-inline pre {
  padding-top: 44px;
  padding-right: 16px;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--term-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity var(--dur-1), background-color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.term-inline .copy-btn {
  top: 8px;
  right: 8px;
}
.term:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.copy-btn:active {
  transform: scale(0.95);
}
.copy-btn svg {
  width: 14px;
  height: 14px;
}
.copy-btn.is-copied {
  background: color-mix(in srgb, #34d399 26%, transparent);
  color: #d1fae5;
  opacity: 1;
}

/* Tabs inside a terminal */
.term-tablist {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -6px;
}
.term-tablist::-webkit-scrollbar {
  display: none;
}
.term-tablist [role="tab"] {
  position: relative;
  height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--term-dim);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-1);
}
.term-tablist [role="tab"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--term-ink);
  transform: scaleX(0);
  transition: transform var(--dur-2) var(--ease-out);
}
.term-tablist [role="tab"]:hover {
  color: var(--term-ink);
}
.term-tablist [role="tab"][aria-selected="true"] {
  color: var(--term-ink);
}
.term-tablist [role="tab"][aria-selected="true"]::after {
  transform: scaleX(1);
}
.term-panel {
  animation: panel-in var(--dur-3) var(--ease-out);
}
.term-note {
  margin: 0;
  padding: 16px 20px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #c7c7cc;
}
.term-note + .term-body pre {
  padding-top: 12px;
}
.term-body + .term-note {
  padding: 0 20px 18px;
  color: var(--term-dim);
  font-size: 13px;
}
.term-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.term-note b {
  color: #fff;
}
/* No-JS: show every tab panel stacked. */
.no-js .term-panel[hidden] {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ======================================================================
   Downloads — hero
   ====================================================================== */
.dl-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.dl-hero::before {
  /* faint dotted field behind the scene */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 52%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 52%, #000 20%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
}
.dl-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.dl-hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.dl-hero-copy h1 {
  max-width: 11ch;
}
.dl-hero-copy .lede {
  max-width: 32ch;
  margin: 0;
}
.dl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
/* The hero's primary button follows the visitor's OS (site.js sets :root[data-os]). */
.os-cta-macos,
.os-cta-linux {
  display: none;
}
:root[data-os="macos"] .os-cta-windows,
:root[data-os="linux"] .os-cta-windows {
  display: none;
}
:root[data-os="macos"] .os-cta-macos,
:root[data-os="linux"] .os-cta-linux {
  display: inline-flex;
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
}
.dl-meta > div {
  padding: 2px 22px 2px 0;
  margin-right: 22px;
  border-right: 1px solid var(--line-strong);
}
.dl-meta > div:last-child {
  border-right: 0;
  margin-right: 0;
}
.dl-meta dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.dl-meta dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dl-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dl-hero-copy,
.dl-hero-scene {
  min-width: 0;
}
.dl-hero-scene {
  position: relative;
  width: 100%;
  max-width: 720px;
  justify-self: end;
}
.dl-hero-scene .iso-scene {
  position: relative;
  width: 100%;
  /* The scene's stage is wider than a phone and scaled with a transform; keep it out of sizing. */
  contain: inline-size;
  aspect-ratio: 780 / 520;
  min-height: 300px;
}

/* ======================================================================
   Downloads — local sticky nav
   ====================================================================== */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--glass-strong);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
}
.subnav-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: none;
}
.subnav ul {
  display: flex;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar {
  display: none;
}
.subnav a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--dur-1), background-color var(--dur-1);
}
.subnav a:hover {
  color: var(--ink);
}
.subnav a[aria-current="true"] {
  color: var(--ink);
  background: var(--bg-3);
}
/* Sections land below both bars. */
.page-downloads section[id],
.page-downloads article[id],
.page-downloads [id="source-notes"],
.page-downloads [id="smartscreen"] {
  scroll-margin-top: calc(var(--nav-h) + 52px + 8px);
}

/* ======================================================================
   Downloads — OS picker
   ====================================================================== */
.dl-get {
  padding-top: clamp(64px, 8vw, 112px);
}
.dl-get .section-head {
  margin-bottom: 36px;
}
.os-switch {
  --idx: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 420px);
  margin: 0 auto clamp(32px, 4vw, 48px);
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.os-pick[data-pick="macos"] .os-switch {
  --idx: 1;
}
.os-pick[data-pick="linux"] .os-switch {
  --idx: 2;
}
.os-switch-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  transform: translateX(calc(var(--idx) * 100%));
  transition: transform var(--dur-3) var(--ease-spring);
}
.os-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-2);
}
.os-switch button svg {
  width: 16px;
  height: 16px;
}
.os-switch button:hover,
.os-switch button[aria-pressed="true"] {
  color: var(--ink);
}
.no-js .os-switch {
  display: none;
}

.os-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.os-pick[data-pick="windows"] .os-panel:not([data-for="windows"]),
.os-pick[data-pick="macos"] .os-panel:not([data-for="macos"]),
.os-pick[data-pick="linux"] .os-panel:not([data-for="linux"]) {
  display: none;
}
.os-pick.is-switched .os-panel > * {
  animation: panel-in var(--dur-3) var(--ease-out) both;
}
.os-pick.is-switched .os-panel > *:nth-child(2) {
  animation-delay: 70ms;
}

.pick-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pick-primary {
  display: grid;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.pick-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "tag tag"
    "badge title"
    "badge sub";
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
}
.pick-head .pick-tag {
  grid-area: tag;
  justify-self: start;
  margin-bottom: 16px;
}
.pick-head .os-badge {
  grid-area: badge;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.pick-head .os-badge svg {
  width: 28px;
  height: 28px;
}
.pick-head h3 {
  grid-area: title;
  align-self: end;
}
.pick-sub {
  grid-area: sub;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  align-self: start;
}
.pick-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pick-tag .dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}
.pick-tag-quiet {
  background: transparent;
  padding: 0;
  color: var(--muted);
}
.pick-note {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}
.pick-note b {
  color: var(--ink);
}
.pick-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dl-button {
  height: 60px;
  padding: 0 30px;
  font-size: 18px;
}
.dl-button svg {
  transition: transform var(--dur-2) var(--ease-spring);
}
.dl-button:hover svg,
.dl-button-sm:hover svg,
.os-cta-windows:hover svg {
  transform: translateY(2px);
}
.pick-file {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.pick-file .mono:first-child {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.pick-file .mono {
  font-size: 12px;
}
.pick-alt {
  display: grid;
  gap: 12px;
  justify-items: start;
  align-content: start;
  background: var(--bg-2);
  box-shadow: none;
}
.pick-alt .os-badge {
  margin-top: 4px;
}
.pick-alt p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.pick-alt p.small {
  font-size: 14px;
  color: var(--muted);
}
.pick-alt hr {
  width: 100%;
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.pick-alt .btn {
  height: 42px;
  font-size: 15px;
  padding: 0 18px;
  margin-top: 4px;
}
.pick-alt-links {
  display: flex;
  gap: 8px;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.chip-link svg {
  width: 15px;
  height: 15px;
}
.chip-link:hover {
  background: var(--bg-3);
}
.chip-link:active {
  transform: scale(0.97);
}
.pick-card code {
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

/* ======================================================================
   Downloads — platform cards
   ====================================================================== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.platform-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  /* Keeps the .reveal stagger and adds a hover lift on the independent `translate` property. */
  transition: opacity var(--dur-4) var(--ease-out) calc(var(--i, 0) * 70ms),
    transform var(--dur-4) var(--ease-out) calc(var(--i, 0) * 70ms), translate var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out);
}
.platform-card:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-lg);
}
.platform-card:target {
  box-shadow: 0 0 0 2px var(--ink), var(--shadow-lg);
}
.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kv {
  margin: 0;
  display: grid;
  align-content: start;
}
.kv > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.kv .status {
  height: 22px;
  font-size: 11.5px;
}
.dl-button-sm {
  justify-self: start;
  height: 42px;
  font-size: 15px;
  padding: 0 20px;
}

/* ======================================================================
   Downloads — build from source
   ====================================================================== */
.prereq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: 0;
  list-style: none;
}
.prereq {
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: opacity var(--dur-4) var(--ease-out) calc(var(--i, 0) * 70ms),
    transform var(--dur-4) var(--ease-out) calc(var(--i, 0) * 70ms), translate var(--dur-3) var(--ease-out),
    background-color var(--dur-2);
}
.prereq:hover {
  translate: 0 -3px;
  background: var(--surface);
}
.prereq-k {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.prereq-v {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}
.source-steps {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}
.source-step {
  display: grid;
  grid-template-columns: minmax(200px, 0.34fr) minmax(0, 1fr);
  gap: 16px 40px;
  align-items: start;
}
.source-step-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}
.source-step-label .step-n {
  background: var(--ink);
  color: var(--bg);
}
.source-aside {
  grid-column: 2;
  margin: -4px 0 0;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
}
.note {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.note p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.note .term {
  margin-top: 6px;
}
.more-link {
  margin: clamp(28px, 4vw, 40px) 0 0;
  text-align: center;
}

/* ======================================================================
   Downloads — verify
   ====================================================================== */
.hash-card > * {
  min-width: 0;
}
.hash-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 20px;
}
.hash-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.hash-algo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.hash-value {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 4px clamp(12px, 2vw, 22px);
  margin: 0;
  font-size: clamp(17px, 2.5vw, 30px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hash-value span {
  font-variant-numeric: tabular-nums;
}
.hash-value span:nth-child(even) {
  color: var(--ink-2);
}
.hash-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.copy-btn-lg svg {
  width: 15px;
  height: 15px;
}
.copy-btn-lg.is-copied {
  --btn-bg: var(--ok);
  --btn-fg: #fff;
}
.hash-check {
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hash-check label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hash-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hash-check input {
  flex: 1 1 280px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  font: 500 14px/1 var(--font-mono);
  transition: border-color var(--dur-1), box-shadow var(--dur-2);
}
.hash-check input::placeholder {
  color: var(--faint);
}
.hash-check input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--bg-3);
}
.hash-check[data-result="match"] input {
  border-color: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}
.hash-check[data-result="mismatch"] input {
  border-color: var(--bad);
  box-shadow: 0 0 0 4px var(--bad-soft);
}
.hash-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.hash-result:empty {
  display: none;
}
.hash-check[data-result="match"] .hash-result {
  color: color-mix(in srgb, var(--ok) 85%, var(--ink));
}
.hash-check[data-result="mismatch"] .hash-result {
  color: var(--bad);
}
.hash-check[data-result="partial"] .hash-result {
  color: var(--muted);
}
.hash-result svg {
  width: 18px;
  height: 18px;
}
.no-js .hash-check {
  display: none;
}

.verify-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}
.verify-col {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.verify-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.verify-col h3 svg {
  width: 20px;
  height: 20px;
}
.verify-col p {
  margin: 0;
}

/* SmartScreen walkthrough */
.smartscreen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(72px, 9vw, 128px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.smartscreen-copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.smartscreen-copy > p {
  margin: 0;
  color: var(--ink-2);
}
.steps-tight > li {
  padding: 14px 0;
  font-size: 15px;
}
.steps > li.is-active .step-n {
  background: var(--ink);
  color: var(--bg);
  transform: scale(1.08);
}
.replay {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
}
.no-js .replay {
  display: none;
}
.ss-figure {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.ss-figure figcaption {
  text-align: center;
}
.ss-mock {
  --ss-bg: #0f5fb5;
  --ss-ink: #ffffff;
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1.38;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 10px;
  background: var(--ss-bg);
  color: var(--ss-ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", var(--font-sans);
  letter-spacing: 0;
  box-shadow: 0 50px 90px -40px rgba(10, 60, 130, 0.55), var(--shadow-lg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.ss-titlebar {
  display: flex;
  justify-content: flex-end;
  height: 30px;
  padding: 0 12px;
  align-items: center;
  font-size: 12px;
  opacity: 0.8;
}
.ss-content {
  padding: 4px clamp(20px, 6%, 36px) 0;
  display: grid;
  align-content: start;
  gap: clamp(8px, 2.2vw, 14px);
}
.ss-h {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.15;
  font-weight: 300;
}
.ss-p {
  margin: 0;
  font-size: clamp(11.5px, 1.5vw, 14px);
  line-height: 1.45;
  max-width: 44ch;
  opacity: 0.94;
}
.ss-more {
  margin: 0;
  font-size: clamp(11.5px, 1.5vw, 14px);
  transition: opacity var(--dur-2);
}
.ss-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ss-details {
  display: grid;
  gap: 4px;
  font-size: clamp(11.5px, 1.5vw, 14px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.ss-details p {
  margin: 0;
}
.ss-details span {
  display: inline-block;
  min-width: 78px;
  opacity: 0.8;
}
.ss-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.16);
}
.ss-btn {
  display: inline-grid;
  place-items: center;
  min-width: 108px;
  height: 32px;
  padding: 0 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  font-size: clamp(11.5px, 1.4vw, 13px);
  transition: background-color var(--dur-1), opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.ss-run {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
}
.ss-mock[data-state="b"] .ss-details,
.ss-mock[data-state="c"] .ss-details {
  opacity: 1;
  transform: none;
}
.ss-mock[data-state="b"] .ss-more,
.ss-mock[data-state="c"] .ss-more {
  opacity: 0.45;
}
.ss-mock[data-state="b"] .ss-run,
.ss-mock[data-state="c"] .ss-run {
  opacity: 1;
  transform: none;
}
.ss-mock[data-state="c"] .ss-run {
  background: rgba(255, 255, 255, 0.24);
}
.ss-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: #000;
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transform: translate3d(var(--cx, 80%), var(--cy, 90%), 0);
  transition: transform 900ms var(--ease-in-out), opacity var(--dur-2);
  pointer-events: none;
}
.ss-mock.has-cursor .ss-cursor {
  opacity: 1;
}
.ss-ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate3d(var(--cx, 0), var(--cy, 0), 0) scale(0.3);
  pointer-events: none;
}
.ss-mock.is-clicking .ss-ripple {
  animation: ss-ripple 520ms var(--ease-out);
}
@keyframes ss-ripple {
  0% {
    opacity: 0.9;
    transform: translate3d(var(--cx, 0), var(--cy, 0), 0) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--cx, 0), var(--cy, 0), 0) scale(1.4);
  }
}

/* ======================================================================
   Downloads — data, release notes, closing
   ====================================================================== */
.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.data-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.data-card p {
  margin: 0;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.ticks li {
  position: relative;
  padding-left: 20px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.ticks b {
  color: var(--ink);
}
.path-list {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: grid;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}
.path-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  transition: background-color var(--dur-1);
}
.path-list li + li {
  border-top: 1px solid var(--line);
}
.path-list li:hover {
  background: var(--bg-2);
}
.path-os {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.path-os svg {
  width: 15px;
  height: 15px;
}
.path-list code {
  background: none;
  padding: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
:root[data-os="windows"] .path-list li:nth-child(1),
:root[data-os="macos"] .path-list li:nth-child(2),
:root[data-os="linux"] .path-list li:nth-child(3) {
  background: var(--bg-2);
}

.release-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.release-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.release-item:nth-child(odd) {
  padding-right: clamp(16px, 3vw, 40px);
}
.release-item:nth-child(even) {
  padding-left: clamp(16px, 3vw, 40px);
  border-left: 1px solid var(--line);
}
.release-k {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.release-item p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.release-item b {
  color: var(--ink);
}
.known-limits {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.known-limits p {
  margin: 0;
}

.closing {
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.closing-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.closing-inner .lede {
  margin: 0;
}
.closing-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 8px;
}
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

/* ======================================================================
   Privacy — long-form layout
   ====================================================================== */
.doc-hero {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.doc-hero-inner {
  display: grid;
  gap: 22px;
  max-width: 900px;
}
.doc-hero .lede {
  max-width: 40ch;
  margin: 0;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 4vw, 56px);
}
.promise {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.promise-v {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.promise p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(56px, 7vw, 104px);
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 64px);
  overflow: auto;
}
.toc-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.toc a {
  position: relative;
  display: block;
  padding: 7px 0 7px 16px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  transition: color var(--dur-1);
}
.toc a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleY(0);
  transition: transform var(--dur-2) var(--ease-out);
}
.toc a:hover {
  color: var(--ink);
}
.toc a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}
.toc a[aria-current="true"]::before {
  transform: scaleY(1);
}
.toc-progress {
  height: 2px;
  margin-top: 20px;
  border-radius: 2px;
  background: var(--bg-3);
  overflow: hidden;
}
.toc-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.prose {
  max-width: 720px;
  min-width: 0;
}
.prose > section {
  padding-bottom: clamp(48px, 6vw, 72px);
  margin-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.prose h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.prose h2 .sec-n {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.prose h3 {
  font-size: 19px;
  letter-spacing: -0.016em;
  margin: 32px 0 10px;
}
.prose p,
.prose li {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}
.prose p {
  margin: 0 0 16px;
}
.prose strong,
.prose b {
  color: var(--ink);
  font-weight: 600;
}
.prose ul.list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.prose ul.list > li {
  position: relative;
  padding-left: 24px;
}
.prose ul.list > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.prose code {
  font-size: 0.82em;
  overflow-wrap: anywhere;
}
.prose a:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-underline-offset: 3px;
}
.prose a:not(.btn):hover {
  text-decoration-color: currentColor;
}
.prose .table-wrap {
  margin: 8px 0 20px;
}
.prose .spec-table {
  font-size: 15px;
}
.prose .spec-table code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.prose .callout {
  margin: 8px 0 20px;
}
.prose .callout p {
  font-size: 15px;
  line-height: 1.55;
}

/* Never / only-when lists */
.net-list {
  list-style: none;
  margin: 8px 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.net-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur-2), transform var(--dur-3) var(--ease-out);
}
.net-item:hover {
  border-color: var(--line-strong);
}
.net-item .os-badge {
  width: 44px;
  height: 44px;
}
.net-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.net-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.net-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.net-meta span::before {
  content: "→ ";
  color: var(--faint);
}
.never-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
}
.never-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 15px;
  color: var(--ink-2);
}
.never-grid li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
  background: linear-gradient(135deg, transparent 45%, var(--faint) 45%, var(--faint) 57%, transparent 57%);
}

/* Vault diagram */
.vault-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin: 12px 0 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  counter-reset: vf;
}
.vf-node {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 14px;
  margin-right: 22px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.vf-node:last-child {
  margin-right: 0;
}
.vf-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 1.8px solid var(--faint);
  border-right: 1.8px solid var(--faint);
  transform: translateY(-50%) rotate(45deg);
}
.vf-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.vf-v {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.vf-s {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.vf-node.is-secret {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.vf-node.is-secret .vf-v {
  color: var(--bg);
}
.vf-node.is-secret .vf-k,
.vf-node.is-secret .vf-s {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}
.csp {
  display: block;
  margin: 8px 0 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.csp b {
  color: var(--ink);
  font-weight: 600;
}

/* ======================================================================
   404
   ====================================================================== */
.nf {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
  text-align: center;
}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1100px) {
  .verify-grid {
    grid-template-columns: 1fr 1fr;
  }
  .verify-grid .verify-col:first-child {
    grid-column: 1 / -1;
  }
  .data-grid {
    grid-template-columns: 1fr 1fr;
  }
  .data-card-wide {
    grid-column: 1 / -1;
    order: -1;
  }
  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .dl-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-hero-scene {
    justify-self: center;
    max-width: 620px;
  }
  .dl-hero-copy h1 {
    max-width: none;
  }
  .os-panel {
    grid-template-columns: 1fr;
  }
  .platform-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }
  .prereq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .source-step {
    grid-template-columns: 1fr;
  }
  .source-aside {
    grid-column: 1;
  }
  .note-grid {
    grid-template-columns: 1fr;
  }
  .smartscreen {
    grid-template-columns: 1fr;
  }
  .release-list {
    grid-template-columns: 1fr;
  }
  .release-item:nth-child(n) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    max-height: none;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--bg-2);
    border: 1px solid var(--line);
  }
  .toc ol {
    grid-template-columns: 1fr 1fr;
    border-left: 0;
    column-gap: 16px;
  }
  .toc a {
    padding-left: 0;
  }
  .toc a::before,
  .toc-progress {
    display: none;
  }
  .subnav-title {
    display: none;
  }
  .subnav ul {
    margin-left: calc(var(--gutter) * -0.5);
  }
}
@media (max-width: 700px) {
  .subnav-inner {
    height: 46px;
  }
  .page-downloads section[id],
  .page-downloads article[id],
  .page-downloads [id="source-notes"],
  .page-downloads [id="smartscreen"] {
    scroll-margin-top: calc(var(--nav-h) + 46px + 8px);
  }
  .dl-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    width: 100%;
  }
  .dl-meta > div {
    padding: 0 0 0 12px;
    margin: 0;
    border-right: 0;
    border-left: 1px solid var(--line-strong);
  }
  .dl-hero-cta .btn {
    flex: 1 1 100%;
  }
  .dl-hero-scene .iso-scene {
    min-height: 240px;
  }
  .pick-head {
    grid-template-areas:
      "tag tag"
      "badge title"
      "sub sub";
  }
  .pick-head .os-badge {
    width: 48px;
    height: 48px;
  }
  .pick-sub {
    margin-top: 8px;
  }
  .pick-download {
    padding: 16px;
  }
  .dl-button {
    width: 100%;
  }
  .steps > li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
  .path-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .verify-grid {
    grid-template-columns: 1fr;
  }
  .hash-card {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }
  .hash-value {
    grid-template-columns: repeat(4, auto);
    font-size: clamp(13px, 3.6vw, 18px);
    gap: 4px 8px;
  }
  .release-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .kv > div {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .spec-table th,
  .spec-table td {
    padding: 12px 14px;
  }
  .promise-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .promise {
    padding: 16px;
  }
  .never-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vault-flow {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 16px;
  }
  .vf-node {
    margin-right: 0;
  }
  .vf-node:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -17px;
    transform: translateX(-50%) rotate(135deg);
  }
  .prose p,
  .prose li {
    font-size: 17px;
  }
  .toc ol {
    grid-template-columns: 1fr;
  }
  .term pre {
    font-size: 12.5px;
    padding-right: 20px;
    padding-top: 46px;
  }
  .term-inline pre {
    padding-right: 16px;
    padding-top: 42px;
  }
  .term-tabs .term-panel .term-body pre,
  .term:has(.term-bar) .term-body pre {
    padding-top: 46px;
  }
}
@media (max-width: 360px) {
  .hash-value {
    grid-template-columns: repeat(2, auto);
    font-size: 16px;
  }
}
@media (max-width: 340px) {
  .never-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .os-switch button {
    font-size: 14px;
    gap: 6px;
  }
}

/* Reduced motion: keep layout, drop movement. */
@media (prefers-reduced-motion: reduce) {
  .ss-cursor,
  .ss-ripple {
    display: none;
  }
  .platform-card:hover,
  .prereq:hover {
    translate: none;
  }
}

/* Privacy: closing actions */
.prose .doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.prose .doc-actions a.btn {
  text-decoration: none;
}
.nowrap {
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .os-switch-thumb {
    background: #2a2a2e;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] .os-switch-thumb {
  background: #2a2a2e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
