/* ==========================================================================
   德赢看台 / shared site.css
   看台红 + 警示黄 + 深夜墨绿 / 展览画册式留白 + 战术板分区
   ========================================================================== */

/* ---------- 0. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; }

table { width: 100%; border-collapse: collapse; }

hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- 1. tokens ---------- */
:root {
  --red: #C4162A;
  --red-deep: #78101C;
  --yellow: #F2C230;
  --amber: #D9821B;
  --ink: #0B241F;
  --ink-2: #0F2A23;
  --paper: #F6F3EC;
  --paper-2: #EFEBE1;
  --grey: #98A2A6;
  --char: #14181A;
  --char-soft: #3B4548;
  --teal: #2FA79B;
  --steel: #2C3A40;

  --paper-72: rgba(246, 243, 236, .72);
  --paper-45: rgba(246, 243, 236, .45);
  --paper-14: rgba(246, 243, 236, .14);
  --line: rgba(44, 58, 64, .26);
  --line-dark: rgba(44, 58, 64, .55);

  --u: 8px;
  --head-h: 72px;
  --wrap: min(1320px, calc(100% - 40px));

  --f-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", SimSun, Georgia, serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- 2. base typography（中文排版） ---------- */
body {
  background: var(--paper);
  color: var(--char);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(30px, 5.2vw, 54px); }
h2 { font-size: clamp(24px, 3.6vw, 36px); }
h3 { font-size: clamp(19px, 2.4vw, 23px); }

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

strong { font-weight: 700; }

time, table, .mono, .data-table, .stat__num, .eyebrow {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}

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

#main-content { display: block; }
#main-content:focus { outline: none; }

/* ---------- 3. skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--yellow);
  color: var(--char);
  font: 700 14px/1 var(--f-body);
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: 2px;
  transition: top .18s ease;
}

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

/* ---------- 4. header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--steel);
}

.head-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--paper-14);
  overflow: hidden;
}

.head-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--yellow);
}

.head-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  height: var(--head-h);
  transition: height .22s ease;
}

[data-head][data-shrink] .head-inner { height: 48px; }

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--red);
  color: var(--paper);
  font: 900 14px/1 var(--f-display);
  letter-spacing: .02em;
  border-radius: 2px;
  transition: width .22s ease, height .22s ease;
}

[data-head][data-shrink] .brand__mark { width: 28px; height: 28px; }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font: 900 18px/1.05 var(--f-display);
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand__meta {
  font: 400 10.5px/1.2 var(--f-mono);
  letter-spacing: .05em;
  color: var(--grey);
  white-space: nowrap;
}

/* 当前栏目印记（导航折叠后出现） */
.head-stamp {
  display: none;
  padding-left: 10px;
  border-left: 1px solid var(--steel);
  font: 600 12px/1 var(--f-mono);
  letter-spacing: .07em;
  color: var(--yellow);
  white-space: nowrap;
}

/* 编号索引式栏目命令 */
.cmdnav {
  min-width: 0;
  margin-inline: auto;
}

.cmdnav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}

.cmdnav__item { display: block; }

.cmdnav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--grey);
  font: 600 14px/1 var(--f-body);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease, opacity .18s ease, font-size .18s ease;
}

.cmdnav__idx {
  font: 700 10.5px/1 var(--f-mono);
  letter-spacing: .08em;
  color: var(--paper-45);
  transition: color .18s ease;
}

.cmdnav__link:hover { color: var(--paper); }
.cmdnav__link:hover .cmdnav__idx { color: var(--yellow); }

.cmdnav__link[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--red);
}

.cmdnav__link[aria-current="page"] .cmdnav__idx { color: var(--yellow); }

[data-head][data-shrink] .cmdnav__idx { display: none; }
[data-head][data-shrink] .cmdnav__link { font-size: 13px; opacity: .66; }
[data-head][data-shrink] .cmdnav__link[aria-current="page"] { opacity: 1; }
[data-head][data-shrink] .btn--ghost { display: none; }

/* 右侧动作区 */
.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--paper);
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: rgba(246, 243, 236, .04);
  font: 700 13px/1 var(--f-body);
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.nav-toggle:hover { border-color: var(--yellow); color: var(--yellow); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  flex: none;
  background: currentColor;
  transition: background-color .18s ease;
}

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { white-space: nowrap; }

/* ---------- 5. buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font: 700 14px/1 var(--f-body);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn--ghost {
  border-color: var(--steel);
  background: rgba(246, 243, 236, .04);
  color: var(--paper);
}

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

.btn--outline {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn--outline:hover {
  background: var(--yellow);
  color: var(--char);
}

.btn__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--yellow);
}

/* ---------- 6. footer ---------- */
.site-foot {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--steel);
  background-image:
    linear-gradient(rgba(44, 58, 64, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 58, 64, .38) 1px, transparent 1px);
  background-size: 64px 64px;
}

.foot-top {
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--steel);
}

.foot-brand__mark {
  display: inline-block;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  font: 900 clamp(22px, 3vw, 28px)/1.1 var(--f-display);
  letter-spacing: -.01em;
  color: var(--paper);
  text-decoration: none;
}

.foot-brand__note {
  max-width: 34ch;
  margin: 14px 0 20px;
  color: var(--paper-72);
  font-size: 14.5px;
  line-height: 1.7;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
}

.foot-col__title {
  margin-bottom: 14px;
  font: 700 11.5px/1 var(--f-mono);
  letter-spacing: .14em;
  color: var(--yellow);
}

.foot-col__list {
  display: grid;
  gap: 2px;
}

.foot-col__list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--paper-72);
  font-size: 14.5px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.foot-col__list a:hover {
  color: var(--paper);
  border-bottom-color: var(--red);
}

.foot-meta {
  width: var(--wrap);
  margin-inline: auto;
  padding: 20px 0 clamp(28px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.foot-meta__contact {
  font: 400 13px/1.7 var(--f-mono);
  font-style: normal;
  letter-spacing: .02em;
  color: var(--paper-72);
  max-width: 62ch;
}

.foot-meta__legal {
  font: 400 12px/1.6 var(--f-mono);
  letter-spacing: .06em;
  color: var(--grey);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--ink);
  border: 1px solid var(--steel);
  border-radius: 2px;
  color: var(--paper);
  font: 700 12.5px/1 var(--f-mono);
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.to-top.is-visible { display: inline-flex; }
.to-top:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- 7. layout & shared components ---------- */
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: 240px minmax(0, 1fr); }

/* 面包屑 */
.breadcrumb {
  font: 600 12px/1 var(--f-mono);
  letter-spacing: .07em;
  color: var(--grey);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--grey);
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--grey);
  text-decoration: none;
  transition: color .18s ease;
}

.breadcrumb__link:hover { color: var(--char); }
.breadcrumb__link[aria-current="page"] { color: var(--char); }

/* 章节 */
.section {
  padding: clamp(40px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.section__num {
  display: inline-block;
  padding: 4px 8px;
  font: 800 12.5px/1 var(--f-mono);
  letter-spacing: .14em;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 2px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.section__title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.25;
  letter-spacing: .01em;
}

.section__lede {
  flex: 1 1 320px;
  color: var(--char-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

[data-chapter] { position: relative; }

[data-chapter].is-active .section__num {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

.eyebrow {
  display: inline-block;
  font: 700 11.5px/1 var(--f-mono);
  letter-spacing: .16em;
  color: var(--grey);
}

/* 标签与筛选 */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: transparent;
  color: var(--char-soft);
  font: 600 12px/1 var(--f-mono);
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.tag:hover { border-color: var(--red); color: var(--red); }
.tag--red { border-color: var(--red); color: var(--red); }
.tag--yellow { border-color: var(--amber); color: #8A5A12; }
.tag--teal { border-color: var(--teal); color: #1D6F67; }

.tag[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* 卡片 */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: var(--paper-2);
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card__title {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.card__meta {
  font: 400 12px/1 var(--f-mono);
  letter-spacing: .04em;
  color: var(--grey);
  white-space: nowrap;
}

.card__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--char-soft);
}

/* 横向滑动卡片条 */
.card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
}

.card-row > * {
  flex: 0 0 min(360px, 78vw);
  scroll-snap-align: start;
}

/* 数据块 */
.stat {
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--yellow);
}

.stat__num {
  display: block;
  font: 900 clamp(28px, 5vw, 46px)/1 var(--f-display);
  letter-spacing: -.02em;
  color: var(--char);
}

.stat__label {
  display: block;
  margin-top: 6px;
  font: 600 11.5px/1.4 var(--f-mono);
  letter-spacing: .08em;
  color: var(--grey);
}

/* 图片容器（页面阶段放图） */
.media {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: var(--ink-2);
}

.media__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(135deg, #0B241F 0%, #2C3A40 58%, #78101C 100%);
}

.media--tall .media__img { aspect-ratio: 3 / 4; }

.media__caption {
  padding: 8px 10px;
  background: var(--ink);
  border-top: 1px solid var(--steel);
  font: 400 12px/1.6 var(--f-mono);
  letter-spacing: .03em;
  color: var(--grey);
}

/* 数据表 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.data-table {
  min-width: 640px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .03em;
}

.data-table caption {
  caption-side: top;
  padding: 10px 12px;
  text-align: left;
  font: 600 12px/1 var(--f-mono);
  letter-spacing: .08em;
  color: var(--grey);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.data-table tbody th {
  position: sticky;
  left: 0;
  background: var(--paper-2);
  white-space: nowrap;
}

/* 内联提示 */
.callout {
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.7;
}

.callout--red { border-left-color: var(--red); }
.callout--yellow { border-left-color: var(--yellow); }

/* 长文阅读区 */
.prose {
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  margin: 32px 0 12px;
}

.prose h3 {
  font-size: 17.5px;
  line-height: 1.5;
  margin: 24px 0 8px;
}

.prose p { margin: 0 0 16px; }

.prose ul { margin: 0 0 16px; }

.prose ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 2px;
  background: var(--red);
}

.prose blockquote {
  margin: 20px 0;
  padding-left: 16px;
  border-left: 3px solid var(--yellow);
  font-family: var(--f-serif);
  color: var(--char-soft);
}

.prose a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.prose a:hover { color: var(--red-deep); }

/* ---------- 8. 深色分区与动效钩子 ---------- */
.on-dark {
  background: var(--ink);
  color: var(--paper);
}

.on-dark .section { border-top-color: var(--steel); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
.on-dark .section__title { color: var(--paper); }
.on-dark .section__lede { color: var(--paper-72); }
.on-dark .stat__num { color: var(--paper); }
.on-dark .card {
  background: var(--ink-2);
  border-color: var(--steel);
  color: var(--paper);
}
.on-dark .card__body { color: var(--paper-72); }
.on-dark .section__num { border-color: var(--yellow); color: var(--yellow); }
.on-dark .tag { border-color: var(--steel); color: var(--paper-72); }
.on-dark .tag:hover { border-color: var(--yellow); color: var(--yellow); }
.on-dark .breadcrumb__link:hover { color: var(--paper); }
.on-dark .data-table { background: transparent; }
.on-dark .data-table tbody th { background: var(--ink-2); color: var(--paper); }
.on-dark .data-table th, .on-dark .data-table td { border-bottom-color: var(--steel); }

html.is-js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

html.is-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 9. responsive ---------- */
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }

  .cmdnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    display: none;
    max-height: 78vh;
    overflow-y: auto;
    background: var(--ink);
    border-top: 1px solid var(--steel);
    border-bottom: 1px solid var(--steel);
  }

  .cmdnav[data-open] { display: block; }

  .cmdnav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: var(--wrap);
    margin-inline: auto;
    padding: 8px 0 16px;
  }

  .cmdnav__link {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 10px;
    border-bottom: 1px solid var(--steel);
    border-left: 2px solid transparent;
    font-size: 15px;
  }

  .cmdnav__link[aria-current="page"] {
    border-bottom-color: var(--steel);
    border-left-color: var(--red);
    background: rgba(196, 22, 42, .08);
  }

  [data-head][data-shrink] .cmdnav__link { font-size: 15px; opacity: 1; }
  [data-head][data-shrink] .cmdnav__idx { display: inline; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 1140px) and (min-width: 641px) {
  [data-head][data-shrink] .head-stamp { display: inline-block; }
}

@media (max-width: 1080px) {
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .head-actions .btn--ghost { display: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col__list a { min-height: 44px; }
  .to-top { right: 12px; bottom: 12px; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .brand__meta { display: none; }
  [data-head][data-shrink] .head-stamp { display: inline-block; }
}

@media (max-width: 460px) {
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0 10px; }
  .head-actions .btn { padding: 0 12px; font-size: 13px; }
  .card { padding: 16px; }
}

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

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

  html.is-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
