/* ==========================================================================
   乐思体育安装 · 共享样式表 /assets/site.css
   赛场数据台：深空蓝命令栏 + 切角面板 + 窄体数字 + 荧光黄状态点
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0D1B2A;
  --ink-2: #16394F;
  --stone: #4A5259;
  --stone-2: #8B949B;
  --paper: #F4F0E6;
  --paper-soft: #EAE4D6;
  --white: #FFFFFF;
  --clay: #E4572E;
  --clay-hot: #FF7A3D;
  --grass: #2E9E63;
  --moss: #4F6B4F;
  --volt: #DFFF3C;

  --on-ink: rgba(244, 240, 230, .74);
  --on-ink-strong: rgba(244, 240, 230, .96);
  --on-ink-faint: rgba(244, 240, 230, .46);
  --hair: rgba(13, 27, 42, .14);
  --hair-soft: rgba(13, 27, 42, .08);
  --hair-ink: rgba(244, 240, 230, .16);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Barlow Condensed", "DIN Alternate", "Roboto Condensed", ui-monospace, SFMono-Regular, Menlo, monospace;

  --cut: 14px;
  --cut-sm: 8px;
  --clip-cut: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  --clip-cut-sm: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  --clip-cut-xs: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);

  --gut: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --rail: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shell-x: min(100% - 2 * var(--gut), var(--maxw));
}

/* ---------- 3. 中文基础排版 ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 800; line-height: 1.16; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p { max-width: 68ch; }
strong { font-weight: 800; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
.cmdbar :focus-visible, .sitefoot :focus-visible, .section--ink :focus-visible,
.panel--ink :focus-visible { outline-color: var(--volt); }

/* ---------- 4. 容器与分区 ---------- */
.wrap { width: var(--shell-x); margin-inline: auto; }
.section { position: relative; padding-block: clamp(48px, 7vw, 104px); }
.section--paper { background: var(--paper); }
.section--stone { background: var(--paper-soft); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink p, .section--ink li { color: var(--on-ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }

.texture-diag {
  background-image: repeating-linear-gradient(135deg, rgba(244, 240, 230, .045) 0 1px, transparent 1px 9px);
}
.texture-contour {
  background-image: repeating-linear-gradient(135deg, rgba(13, 27, 42, .035) 0 1px, transparent 1px 11px);
}

/* ---------- 5. 文本构件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--clay);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: 0 0 auto; }
.section--ink .eyebrow { color: var(--clay-hot); }

.lede { font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.78; color: var(--stone); max-width: 62ch; }
.note { font-size: 14px; line-height: 1.7; color: var(--stone); }
.section--ink .lede, .section--ink .note, .panel--ink .note { color: var(--on-ink); }

.num {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .01em;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  clip-path: var(--clip-cut-sm);
  background: var(--paper);
  color: var(--ink);
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--clay { background: var(--clay); color: var(--white); }
.btn--clay:hover { background: var(--clay-hot); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(13, 27, 42, .28); }
.btn--ghost:hover { background: rgba(13, 27, 42, .06); }
.btn--ghost-ink { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.btn--ghost-ink:hover { background: rgba(244, 240, 230, .1); }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ---------- 7. 头部命令栏 ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--volt);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  clip-path: var(--clip-cut-xs);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.cmdbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--hair-ink);
  --rail-h: var(--rail);
}
.cmdbar__rail {
  width: var(--shell-x);
  margin-inline: auto;
  height: var(--rail-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  transition: height .22s var(--ease);
}
.cmdbar[data-stuck] { --rail-h: 44px; }
.cmdbar[data-stuck] .ticker { display: none; }

/* 品牌 */
.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}
.brandmark__glyph {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background: var(--clay);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.brandmark__glyph::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 13px;
  height: 13px;
  background: var(--volt);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.brandmark__text { display: grid; line-height: 1.1; }
.brandmark__name { font-size: 15px; font-weight: 900; letter-spacing: -.01em; color: var(--white); }
.brandmark__sub { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--on-ink-faint); text-transform: uppercase; }

/* 索引式导航 */
.cmdnav { flex: 1 1 auto; min-width: 0; }
.cmdnav__list { display: flex; align-items: center; gap: 2px; }
.cmdnav__link {
  position: relative;
  display: block;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(244, 240, 230, .72);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.cmdnav__link:hover { color: var(--paper); background: rgba(244, 240, 230, .08); }
.cmdnav__link[aria-current="page"] { color: var(--white); }
.cmdnav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--clay);
}
.cmdnav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 3px;
  width: 5px;
  height: 5px;
  background: var(--volt);
}

/* 状态区 */
.cmdbar__side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.statustag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--on-ink-strong);
  white-space: nowrap;
}
.statustag__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--grass);
}
.ticker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--on-ink-faint);
  white-space: nowrap;
}
.cmdbar__tel {
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px dashed rgba(244, 240, 230, .34);
  white-space: nowrap;
}
.cmdbar__tel:hover { color: var(--volt); border-bottom-color: var(--volt); }
.cmdbar__sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-ink);
  text-decoration: none;
  white-space: nowrap;
}
.cmdbar__sub:hover { color: var(--clay-hot); }
.cmdbar__cta { flex: 0 0 auto; }

/* 移动导航按钮 */
.navtoggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  clip-path: var(--clip-cut-xs);
  box-shadow: inset 0 0 0 1px var(--hair-ink);
}
.navtoggle__bars {
  position: relative;
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
}
.navtoggle[aria-expanded="true"] { color: var(--ink); background: var(--volt); box-shadow: none; }

/* 滚动进度 */
.cmdbar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(244, 240, 230, .12);
  overflow: hidden;
}
.cmdbar__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--clay), var(--clay-hot) 60%, var(--volt));
}

/* ---------- 8. 页脚 ---------- */
.sitefoot {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--hair-ink);
}
.sitefoot__top {
  width: var(--shell-x);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(40px, 5vw, 60px) 0 clamp(28px, 3vw, 40px);
}
.sitefoot__brand { display: grid; align-content: start; gap: 10px; }
.sitefoot__wordmark {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--white);
  max-width: none;
}
.sitefoot__line { font-size: 14px; line-height: 1.7; color: var(--on-ink); max-width: 34ch; }
.sitefoot__meta { font-size: 13px; line-height: 1.7; color: var(--on-ink-faint); max-width: 34ch; }
.sitefoot__icp {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--on-ink-faint);
  max-width: none;
}
.sitefoot__col { display: grid; align-content: start; gap: 14px; }
.sitefoot__head {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--on-ink-faint);
  padding-left: 18px;
  line-height: 1.4;
}
.sitefoot__head::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 2px;
  background: var(--clay);
}
.sitefoot__list { display: grid; gap: 8px; }
.sitefoot__item { font-size: 14px; line-height: 1.65; color: var(--on-ink); max-width: 30ch; }
.sitefoot__link { text-decoration: none; color: var(--on-ink); transition: color .16s var(--ease); }
.sitefoot__link:hover { color: var(--clay-hot); }
.sitefoot__link:focus-visible { outline-color: var(--volt); }

.sitefoot__bottom {
  width: var(--shell-x);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--hair-ink);
}
.sitefoot__copy { font-size: 13px; color: var(--on-ink-faint); max-width: none; }
.sitefoot__actions { display: flex; align-items: center; gap: 16px; }
.footlink {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hair-ink);
  padding-bottom: 2px;
}
.footlink:hover { color: var(--volt); border-bottom-color: var(--volt); }
.totop {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
  clip-path: var(--clip-cut-xs);
  box-shadow: inset 0 0 0 1px var(--hair-ink);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.totop:hover { background: var(--volt); color: var(--ink); box-shadow: none; }

/* ---------- 9. 栅格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-3 { grid-template-columns: 8fr 3fr; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 10. 切角面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--paper);
  color: var(--ink);
  clip-path: var(--clip-cut);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(to bottom right,
      transparent calc(50% - .9px), var(--volt) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)
    ) 0 0 / var(--cut) var(--cut) no-repeat,
    linear-gradient(to bottom right,
      transparent calc(50% - .9px), var(--volt) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)
    ) 100% 100% / var(--cut) var(--cut) no-repeat;
  transition: opacity .2s var(--ease);
}
.panel:hover { transform: translateY(-2px); }
.panel:hover::after { opacity: 1; }
.panel--ink { background: var(--ink); color: var(--paper); }
.panel--ink p { color: var(--on-ink); }
.panel--stone { background: var(--paper-soft); }
.panel--flat { clip-path: none; }
.panel__title { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 800; letter-spacing: -.01em; }
.panel__meta { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--stone); }
.panel--ink .panel__meta { color: var(--on-ink); }

/* ---------- 11. 数据构件 ---------- */
.stat { display: grid; gap: 4px; align-content: start; }
.stat__value {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1;
  color: var(--clay);
}
.section--ink .stat__value { color: var(--clay-hot); }
.stat__unit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--stone);
  text-transform: uppercase;
}
.section--ink .stat__unit { color: var(--on-ink-faint); }
.stat__label { font-size: 14px; line-height: 1.6; color: var(--stone); max-width: 26ch; }
.section--ink .stat__label { color: var(--on-ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--stone);
}
.status__dot { width: 8px; height: 8px; flex: 0 0 auto; background: var(--grass); }
.status--warn .status__dot { background: var(--clay); }
.status--live .status__dot { background: var(--volt); }
.section--ink .status { color: var(--on-ink); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(13, 27, 42, .07);
  color: var(--stone);
  clip-path: var(--clip-cut-xs);
}
.tag--clay { background: var(--clay); color: var(--white); }
.tag--grass { background: rgba(46, 158, 99, .18); color: #1F7247; }
.tag--volt { background: var(--volt); color: var(--ink); }

/* ---------- 12. 步骤条 ---------- */
.stepbar { display: grid; gap: 0; }
.stepbar__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.section--ink .stepbar__item { border-top-color: var(--hair-ink); }
.stepbar__index {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.section--ink .stepbar__index { color: var(--volt); }
.stepbar__text { font-size: 15px; line-height: 1.7; color: var(--stone); max-width: 58ch; }
.section--ink .stepbar__text { color: var(--on-ink); }

/* ---------- 13. 筛选按钮组 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(13, 27, 42, .07);
  color: var(--stone);
  clip-path: var(--clip-cut-xs);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.chip:hover { background: rgba(13, 27, 42, .14); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--clay); color: var(--white); }
.chip[aria-pressed="true"]::after { content: ""; width: 6px; height: 6px; background: var(--volt); flex: 0 0 auto; }
.section--ink .chip { background: rgba(244, 240, 230, .1); color: var(--on-ink); }
.section--ink .chip:hover { background: rgba(244, 240, 230, .2); color: var(--white); }
.section--ink .chip[aria-pressed="true"] { background: var(--clay); color: var(--white); }

/* ---------- 14. 图像容器 ---------- */
.imgframe {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  clip-path: var(--clip-cut);
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 58%, var(--moss) 100%);
}
.imgframe img { width: 100%; height: 100%; object-fit: cover; }
.imgframe::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(223, 255, 60, .06) 0 1px, transparent 1px 9px);
}
.imgframe--wide { aspect-ratio: 21 / 9; }
.imgframe--tall { aspect-ratio: 4 / 5; }
.imgframe--square { aspect-ratio: 1 / 1; }
.imgframe__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--on-ink-strong);
  background: linear-gradient(to top, rgba(13, 27, 42, .86), rgba(13, 27, 42, 0));
}

/* ---------- 15. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--clay); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--clay); }
.section--ink .breadcrumb { color: var(--on-ink-faint); }

/* ---------- 16. 进场揭示与动效降级 ---------- */
[data-reveal] { transition: opacity .32s var(--ease), clip-path .32s var(--ease); }
html.has-js [data-reveal] { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
html.has-js [data-reveal].is-in { opacity: 1; clip-path: polygon(0 0, 108% 0, 100% 100%, 0 100%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal],
  html.has-js [data-reveal],
  html.has-js [data-reveal].is-in {
    clip-path: none;
    opacity: 1;
    transition: opacity .16s linear;
  }
  html.has-js [data-reveal]:not(.is-in) { opacity: 0; }
  .btn, .chip, .panel, .totop, .cmdnav__link, .skip-link { transition-duration: .16s; }
  .btn:hover, .panel:hover { transform: none; }
  .cmdbar__rail { transition: none; }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1199px) {
  .ticker { display: none; }
}

@media (max-width: 1023px) {
  :root { --rail: 54px; }
  .statustag { display: none; }
  .cmdbar__sub { display: none; }
  .cmdnav__link { padding: 9px 8px; font-size: 13.5px; }
  .sitefoot__top { grid-template-columns: 1fr 1fr; }
  .grid--7-5, .grid--8-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .navtoggle { display: inline-flex; }
  .cmdbar__tel { display: none; }
  .brandmark__sub { display: none; }
  .cmdbar__rail { gap: 10px; }
  .cmdbar__side { gap: 8px; }
  .cmdbar__cta { padding: 9px 14px; font-size: 13px; }

  .cmdnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 90;
    max-height: 74vh;
    overflow-y: auto;
    padding: 8px var(--gut) calc(20px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 2px solid var(--clay);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, .5);
    transform: translateY(112%);
    transition: transform .28s var(--ease);
  }
  .cmdnav[data-open] { transform: translateY(0); }
  .cmdnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .cmdnav__item { width: 100%; }
  .cmdnav__link {
    width: 100%;
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--hair-ink);
  }
  .cmdnav__link[aria-current="page"]::after { left: 4px; right: 4px; bottom: 6px; }
  .cmdnav__link[aria-current="page"]::before { top: 18px; right: 6px; }

  .grid--3, .grid--2, .grid--auto { grid-template-columns: minmax(0, 1fr); }
  .sitefoot__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .sitefoot__top { grid-template-columns: minmax(0, 1fr); }
  .sitefoot__actions { width: 100%; justify-content: space-between; }
  .brandmark__glyph { width: 24px; height: 24px; }
  .brandmark__name { font-size: 14px; }
}
