/* 首屏与跨通栏装置 */
.hero {
  position: relative;
  z-index: 2;
  isolation: isolate;
  background:
    radial-gradient(ellipse 560px 240px at 50% 70%, color-mix(in srgb, var(--accent) 13%, var(--clear)) 0%, var(--clear) 72%),
    radial-gradient(ellipse 980px 360px at 50% 76%, var(--halo) 0%, var(--clear) 74%),
    radial-gradient(ellipse 360px 200px at 77% 62%, color-mix(in srgb, var(--warn) 5%, var(--clear)) 0%, var(--clear) 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg)) 0%, var(--bg) 60%);
  color: var(--text);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 32%, var(--clear)) 0 1px, var(--clear) 1.6px);
  background-size: 22px 22px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 600px 300px at 50% 70%, var(--text) 8%, var(--clear) 78%);
  mask-image: radial-gradient(ellipse 600px 300px at 50% 70%, var(--text) 8%, var(--clear) 78%);
  color: var(--text);
}
.hero::after { background: linear-gradient(180deg, var(--clear) 74%, var(--bg) 100%); color: var(--text); }
.hero-copy { max-width: 920px; margin-inline: auto; padding: 32px var(--gutter) 0; text-align: center; }
.hero h1 { margin: 0; font-size: var(--title-size); line-height: 1.12; letter-spacing: var(--approved-track); }
.h1-key { color: var(--accent-ink); }
@supports (background-clip: text) {
  .h1-key {
    background: linear-gradient(95deg, var(--accent) 8%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--clear);
  }
}
.lede { max-width: 620px; margin: 14px auto 0; font-size: 16.5px; line-height: 1.75; color: var(--muted-ink); }
.lede strong { color: var(--surface-ink); font-weight: var(--weight-action); }
.lede code { color: var(--surface-ink); }
.hero .lede { color: var(--text-muted-panel); }
.hero .btn-primary:not(:disabled, [aria-disabled="true"]) {
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 62%, var(--accent-dark)) 100%);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-accent) 28%, var(--clear)),
    0 1px 2px color-mix(in srgb, var(--accent-dark) 32%, var(--clear)),
    0 12px 26px -12px color-mix(in srgb, var(--accent) 70%, var(--clear));
}
.hero .btn-ghost { background: color-mix(in srgb, var(--bg) 72%, var(--clear)); color: var(--text); }
.hero .btn { border-inline-width: 0; }
.hero .btn-ghost { border-inline-width: 1px; }
.stage {
  position: relative;
  z-index: 3;
  width: var(--stage-w);
  margin: 26px auto calc(var(--overlap) * -1);
}
.rig { display: block; width: 100%; height: auto; overflow: visible; }
.st-alu-top { stop-color: var(--alu-top); }
.st-alu-bot { stop-color: var(--alu-bottom); }
.st-alu-low { stop-color: var(--alu-low); }
.st-sky-1 { stop-color: var(--sky-1); }
.st-sky-2 { stop-color: var(--sky-2); }
.st-bg { stop-color: var(--bg); }
.st-accent { stop-color: var(--accent); }
.st-o0 { stop-opacity: 0; }
.st-o2 { stop-opacity: .22; }
.st-o5 { stop-opacity: .6; }
.fx-a { flood-color: var(--text); flood-opacity: .08; }
.fx-b { flood-color: var(--text); flood-opacity: .09; }
.fx-c { flood-color: var(--text); flood-opacity: .17; }
.fl { fill: var(--text); }
.fl-wide { opacity: .10; }
.fl-tight { opacity: .22; }
.lid, .phone { fill: url(#g-alu); stroke: var(--device-stroke); stroke-width: 1.5; }
.rig-base { fill: url(#g-base); stroke: var(--device-stroke); stroke-width: 1.5; }
.hl { fill: none; stroke: var(--bg); stroke-width: 1; opacity: .95; }
.hinge { fill: var(--bg-panel-2); }
.notch { fill: var(--alu-notch); }
.cam, .btn-side { fill: var(--device-stroke); }
.island { fill: var(--island); }
.home-bar { fill: var(--text); opacity: .32; }
.screen { fill: url(#g-sky); stroke: rgb(var(--shadow-rgb) / .07); stroke-width: 1; }
.glare { fill: url(#g-glare); opacity: .7; }
.wire-in, .wire { fill: none; stroke-width: 2; stroke-linecap: round; }
.wire-in { stroke: url(#g-wire); }
.wire { stroke: var(--accent); }
.node-halo { fill: var(--accent); opacity: .14; }
.node { fill: var(--accent); }
.node-hl { fill: var(--bg); opacity: .75; }
.wire-end { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.tag-box { fill: var(--bg); stroke: color-mix(in srgb, var(--accent) 38%, var(--clear)); stroke-width: 1; }
.tag-txt { fill: var(--accent-ink); font: 600 9.5px var(--font-mono); letter-spacing: .08em; }
.ring { fill: none; stroke: var(--accent); stroke-width: 1; }
.ring-1 { opacity: .32; }
.ring-2 { opacity: .20; }
.ring-3 { opacity: .11; }

.band { position: relative; z-index: 1; background: var(--bg-panel); color: var(--text); }
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--stage-w) + 40px) minmax(0, 1fr);
  align-items: center;
  min-height: var(--overlap);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.facts-side { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; }
.facts-side--l { grid-column: 1; justify-content: flex-end; }
.facts-side--r { grid-column: 3; justify-content: flex-start; }
.fact { display: flex; flex-direction: column-reverse; min-width: 0; }
.fact::after { content: ""; display: block; width: 14px; height: 2px; border-radius: var(--r-line); margin-bottom: 9px; background: var(--accent); color: var(--text); }
.fact dd { margin: 0; font: 600 15px/1.3 var(--font-mono); letter-spacing: -.01em; }
.fact dt { margin-top: 4px; font-size: var(--micro-size); line-height: 1.4; color: var(--text-muted-panel); }
.band-body { max-width: 720px; margin-inline: auto; padding: 72px var(--gutter) 80px; text-align: center; }
.band-body h2 { margin: 0; font-size: 30px; line-height: 1.25; }
.band-body p { margin: 12px 0 0; color: var(--text-muted-panel); }

/* 下载、设备与事实 */
.get-actions, .cta, .plat-actions, .fact-chips, .badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cta { justify-content: center; margin-top: 24px; }
.get-actions + .get-note { margin-top: 14px; }
.note-line { margin: 14px 0 0; line-height: 1; }
.get-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 13px 5px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--clear));
  border-radius: var(--r-note);
  background: color-mix(in srgb, var(--bg) 70%, var(--clear));
  color: var(--text-muted-panel);
  font-size: 12.5px;
  line-height: 18px;
}
.get-note > span:not(.status-dot) { min-width: 0; }
.get-note [data-pkg-ver] { font: 500 var(--micro-size) var(--font-mono); color: var(--text); }
.get-note [data-pkg-ver]:empty { display: none; }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--success) 35%, var(--bg)) 0%, var(--success) 68%);
  color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 14%, var(--clear));
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
  margin: 16px auto 0;
  padding: 0;
  color: var(--text-muted-panel);
  font-size: 13px;
  line-height: 1;
}
.platforms li, .platforms a { display: inline-flex; align-items: center; gap: 7px; }
.platforms a { color: inherit; text-decoration: none; }
.platforms a:hover { text-decoration: underline; }
.platforms svg { width: 15px; height: 15px; color: var(--text); opacity: .72; }
.platforms .pf-pill {
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 80%, var(--clear));
  color: var(--text-muted-panel);
  font-size: var(--micro-size);
  line-height: 1.2;
}
.fact-chips, .badge-row { justify-content: center; gap: 8px; padding: 0; list-style: none; }
.fact-chip, .badge, .step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
.fact-chip, .rule-pill { font-family: var(--font-mono); }
.fact-chip { border-radius: var(--r-note); }
.badge--blue { background: var(--tint); color: var(--accent-ink); }
.step-label {
  margin-bottom: 12px;
  border-color: var(--clear);
  background: var(--color-primary);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-weight: var(--weight-action);
}
.sec--ink .step-label { background: var(--ink-accent); color: var(--ink); }
.store-btn { min-height: 52px; background: var(--ink); color: var(--ink-text); text-align: start; }
.store-btn svg { width: 23px; height: 23px; }
.store-btn span { min-width: 0; }
.store-btn small, .store-btn strong { display: block; }
.store-btn small { font-size: var(--micro-size); color: var(--ink-muted); }
.store-why { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--gap); }
.store-why > div { flex: 1 1 240px; min-width: 0; }

.plat-grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.plat-card {
  position: relative;
  flex: 1 1 calc((100% - 2 * var(--gap)) / 3);
  max-width: calc((100% - var(--gap)) / 2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plat-card > :not(.plat-actions) { order: -1; }
.plat-card h3, .plat-card p { margin: 0; }
.plat-actions { margin-top: auto; padding-top: 12px; }
.plat-card[data-mine]::before {
  display: none;
  align-self: flex-start;
  order: -2;
  content: attr(data-mine);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--accent-ink);
  font-size: var(--micro-size);
  font-weight: var(--weight-action);
}
html[data-visitor-os="ios"] .plat-card[data-plat="ios"] { order: -1; }
html[data-visitor-os="mac"] .plat-card[data-plat="mac"] { order: -1; }
html[data-visitor-os="windows"] .plat-card[data-plat="windows"] { order: -1; }
html[data-visitor-os="android"] .plat-card[data-plat="android"] { order: -1; }
html[data-visitor-os="linux"] .plat-card[data-plat="linux"] { order: -1; }
html[data-visitor-os="ios"] .plat-card[data-plat="ios"][data-mine]::before,
html[data-visitor-os="mac"] .plat-card[data-plat="mac"][data-mine]::before,
html[data-visitor-os="windows"] .plat-card[data-plat="windows"][data-mine]::before,
html[data-visitor-os="android"] .plat-card[data-plat="android"][data-mine]::before,
html[data-visitor-os="linux"] .plat-card[data-plat="linux"][data-mine]::before { display: block; }
.wx-open-tip {
  position: fixed;
  z-index: 40;
  inset-inline: 0;
  bottom: max(var(--gutter), env(safe-area-inset-bottom, 0px));
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  max-height: 70dvh;
  overflow: auto;
  margin-inline: auto;
  padding: 12px 18px;
  border-radius: var(--r-note);
  background: var(--ink);
  color: var(--ink-text);
  --link-ink: var(--ink-accent);
  box-shadow: var(--shadow-soft);
}
.dl-fab {
  position: fixed;
  z-index: 12;
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  min-height: var(--fab-size);
  border-radius: var(--r-pill);
  padding-inline: 16px;
}
.article-with-fab .site-foot { padding-bottom: calc(var(--fab-size) + 34px + env(safe-area-inset-bottom, 0px)); }
.article-with-fab main .wrap { padding-inline-end: max(var(--gutter), 210px); }
.article-with-fab main .read-wrap { max-width: calc(var(--read) + max(0px, 210px - var(--gutter))); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 内容索引与正文 */
.feature-tabs, .chapter-split, .shot-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: start;
}
.feature-tabs [role="tablist"] { display: flex; flex-direction: column; gap: 4px; }
.feature-tabs [role="tab"] {
  min-height: var(--tap);
  padding: 8px 14px;
  border: 0;
  border-inline-start: 2px solid var(--clear);
  background: var(--clear);
  color: var(--muted-ink);
  text-align: start;
}
.feature-tabs [role="tab"]:hover { color: var(--surface-ink); }
.feature-tabs [role="tab"][aria-selected="true"] {
  color: var(--surface-ink);
  font-weight: var(--weight-action);
  border-inline-start-color: var(--accent);
}
.feature-tabs [role="tabpanel"] { min-width: 0; }
.feature-tabs [role="tabpanel"] > p { max-width: 66ch; }
.feature-tabs .official-shot { margin-top: 24px; }
.toc {
  position: sticky;
  top: calc(var(--head-h) + 12px);
  z-index: 8;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  --link-ink: var(--accent-ink);
  box-shadow: var(--shadow-hair);
}
.toc.is-static { position: static; }
.toc ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 5px 10px; border-radius: var(--r-btn); text-decoration: none; }
.toc a:hover, .toc a[aria-current] { background: var(--tint); color: var(--accent-ink); text-decoration: underline; }
.chapter-split > .toc {
  width: 100%;
  max-height: calc(100dvh - var(--head-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chapter-split > .toc ul { flex-direction: column; }
.chapter-copy > section + section { margin-block-start: 48px; }
.faq { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.faq + .faq { margin-top: 8px; }
.faq summary {
  display: flex;
  align-items: center;
  position: relative;
  min-height: var(--tap);
  padding: 12px 44px 12px 16px;
  list-style: none;
  cursor: pointer;
  font-weight: var(--weight-action);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 18px;
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: translateY(-70%) rotate(45deg);
}
.faq[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq-body { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.faq-body > :last-child { margin-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tiles--articles, .tiles--terms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(5):last-child) > * { grid-column: span 2; }
.tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
.tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(7):last-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(7):last-child) > * { grid-column: span 3; }
.tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(7):last-child) > :nth-child(n+5) { grid-column: span 4; }
.term-card dl, .term-card dd { margin: 0; }
.term-card dt { font: 600 17px/1.4 var(--font-mono); }
.term-card dd { margin-top: 8px; }
.article-card, .device-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.article-card h3, .article-card p, .device-card h3, .device-card p { margin: 0; }
.article-card > .badge, .article-card time { color: var(--text-muted-panel); }
.article-card time { font: 400 var(--micro-size) var(--font-mono); }
.article-card > .article-more { margin-top: auto; }
.device-card { text-decoration: none; }
.device-card:hover h3 { text-decoration: underline; }
.device-icon { width: 30px; height: 30px; color: var(--accent-ink); }
.callout {
  margin: 16px 0;
  padding: 14px 18px;
  border-inline-start: 2px solid var(--accent);
  border-radius: var(--r-btn);
  background: var(--tint);
  color: var(--text);
  --link-ink: var(--accent-ink);
}
.callout > :last-child { margin-bottom: 0; }
.official-shot { width: min(100%, 280px); max-width: 100%; flex-shrink: 0; margin: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot :is(img, .shot-placeholder) { outline: 1px solid var(--border); outline-offset: -1px; box-shadow: var(--shadow-soft); }
.official-shot figcaption { margin-top: 10px; color: var(--muted-ink); font-size: var(--small-size); }
.shot-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }

.table-scroll, .prose table, .chapter-copy table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll { margin-block: 16px; border: 1px solid var(--border); border-radius: var(--r-card); }
.table-scroll > table { display: table; overflow: visible; max-width: none; }
.data-table, .prose table, .chapter-copy table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  color: var(--text);
}
:is(.data-table, .prose table, .chapter-copy table) :is(th, td) {
  min-width: 7em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
:is(.data-table, .prose table, .chapter-copy table) th {
  background: var(--bg-panel);
  color: var(--text);
  font-weight: var(--weight-action);
}
:is(.data-table, .prose table, .chapter-copy table) th[scope="row"] { width: 1%; white-space: nowrap; }
:is(.data-table, .prose table, .chapter-copy table) td code { display: inline-block; max-width: 30ch; overflow-wrap: anywhere; }

/* 根目录静态预览专用 */
.preview .brand-en { color: var(--accent); }
.preview-mark {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg), var(--bg-panel));
  color: var(--text);
}
.preview .lang-switch summary, .preview-menu summary { list-style: none; cursor: pointer; }
.preview .lang-switch summary::-webkit-details-marker, .preview-menu summary::-webkit-details-marker { display: none; }
.preview-menu { display: none; }
.preview-menu .nav-drawer { display: block; }
.preview-menu:not([open]) .nav-drawer { display: none; }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.swatch { border: 1px solid var(--border); border-radius: var(--r-btn); padding: 8px; background: var(--bg); color: var(--text); }
.swatch::before { content: ""; display: block; height: 36px; margin-bottom: 5px; border-radius: var(--r-focus); border: 1px solid var(--border); background: var(--sample, var(--bg)); color: var(--text); }
.swatch code { font-size: var(--micro-size); }
.sw-panel { --sample: var(--bg-panel); }
.sw-panel2 { --sample: var(--bg-panel-2); }
.sw-border { --sample: var(--border); }
.sw-accent { --sample: var(--accent); }
.sw-accent-dark { --sample: var(--accent-dark); }
.sw-accent-ink { --sample: var(--accent-ink); }
.sw-text { --sample: var(--text); }
.sw-muted { --sample: var(--text-muted); }
.sw-muted-panel { --sample: var(--text-muted-panel); }
.sw-success { --sample: var(--success); }
.sw-warn { --sample: var(--warn); }
.sw-error { --sample: var(--error); }
.sw-on { --sample: var(--on-accent); }
.sw-tint { --sample: var(--tint); }
.sw-ink { --sample: var(--ink); }
.sw-ink-text { --sample: var(--ink-text); }
.sw-ink-muted { --sample: var(--ink-muted); }
.sw-ink-accent { --sample: var(--ink-accent); }
.sw-stroke { --sample: var(--device-stroke); }
.sw-alu-top { --sample: var(--alu-top); }
.sw-alu-bottom { --sample: var(--alu-bottom); }
.sw-alu-low { --sample: var(--alu-low); }
.sw-notch { --sample: var(--alu-notch); }
.sw-sky1 { --sample: var(--sky-1); }
.sw-sky2 { --sample: var(--sky-2); }
.sw-halo { --sample: var(--halo); }
.sw-island { --sample: var(--island); }
.sw-veil { --sample: var(--veil); }
.sw-shadow { --sample: rgb(var(--shadow-rgb)); }
.sw-clear { --sample: var(--clear); }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border-radius: var(--r-shot);
  background: var(--bg-panel-2);
  color: var(--text-muted-panel);
  font: 500 var(--small-size) var(--font-mono);
}

@media (max-width: 1180px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: calc(var(--overlap) + 32px); gap: 24px; }
  .facts-side--l, .facts-side--r { grid-column: auto; justify-content: center; }
}
@media (max-width: 1024px) {
  .preview-menu { display: block; }
  .preview-menu .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .feature-tabs { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .feature-tabs [role="tablist"] { flex-direction: row; overflow-x: auto; gap: 8px; padding: 5px; }
  .feature-tabs [role="tab"] {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--bg);
    color: var(--text-muted-panel);
  }
  .feature-tabs [role="tab"][aria-selected="true"] { border-color: var(--accent); background: var(--tint); color: var(--accent-ink); }
  .plat-card { flex-basis: 300px; max-width: 100%; }
  .tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(5):last-child),
  .tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(7):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(5):last-child) > *,
  .tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(7):last-child) > * { grid-column: auto; }
  .tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(5):last-child) > :last-child,
  .tiles:is(.tiles--articles, .tiles--terms):has(> :nth-child(7):last-child) > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hero h1 { letter-spacing: var(--title-track); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts-side { justify-content: space-around; }
  .hero .lede { font-size: 15px; }
  .platforms { gap: 10px 16px; }
  .band-body { padding-block: 48px; }
  .band-body h2 { font-size: 24px; }
  .chapter-split, .shot-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .chapter-split > .toc { width: fit-content; max-height: none; overflow: visible; }
  .chapter-split > .toc ul { flex-direction: row; }
  .official-shot { margin-inline: auto; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .cta .btn { width: 100%; }
  .plat-card { flex-basis: 100%; max-width: 100%; }
  .tiles, .tiles:is(.tiles--articles, .tiles--terms):has(> :last-child) { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #install table { display: block; }
  #install thead { display: none; }
  #install :is(tbody, tr, th, td) { display: block; width: 100%; min-width: 0; white-space: normal; }
  #install td[data-label]::before { content: attr(data-label); display: block; font-weight: var(--weight-action); }
  #install :is(td, th) code {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
    vertical-align: bottom;
  }
  .article-with-fab main .wrap { padding-inline-end: calc(var(--fab-size) + 20px + env(safe-area-inset-right, 0px)); }
  .article-with-fab main .read-wrap { max-width: var(--read); }
  .dl-fab {
    width: var(--fab-size);
    height: var(--fab-size);
    min-height: var(--fab-size);
    padding: 0;
    border-radius: var(--r-pill);
  }
  .dl-fab svg { width: 22px; height: 22px; }
  .dl-fab .fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (forced-colors: active) {
  .h1-key { background: none; color: inherit; }
}