/* ============================================================
   长乐坊安卓站 · 共享样式 /assets/site.css
   1 reset 2 变量 3 中文排版 4 工具类 5 版式骨架
   6 组件（按钮/标签/卡片/章节头/表格/图形） 7 头部 8 页脚
   9 进度与显现 10 响应式与动效偏好
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg, picture { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #FAF6EE;
  --paper-deep: #FFFDF8;
  --edge: #E7DFD2;
  --red: #B23327;
  --red-soft: #F3DBD5;
  --jade: #1F6F63;
  --jade-soft: #D5E8E3;
  --gold: #C08A2E;
  --gold-soft: #F0E2C6;
  --gold-ink: #7A5514;
  --ink: #1E1A16;
  --stone: #6E665C;
  --plateau: #2A2520;
  --glass: rgba(255, 255, 255, 0.62);
  --line: rgba(30, 26, 22, 0.14);
  --line-strong: rgba(30, 26, 22, 0.30);
  --shell: 1240px;
  --rail: 264px;
  --pad: 20px;
  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-editorial: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "FangSong", "STFangsong", serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", "Noto Sans Mono CJK SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-1: 0 10px 26px rgba(30, 26, 22, 0.10);
  --shadow-2: 0 20px 46px rgba(30, 26, 22, 0.16);
}

/* ---------- 3. 中文排版 ---------- */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(30, 26, 22, 0.03) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(30, 26, 22, 0.02) 0 1px, transparent 1px 7px);
  opacity: 0.7;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(28px, 4.6vw, 40px); }
h2 { font-size: clamp(23px, 3.2vw, 28px); }
h3 { font-size: 21px; }
h4 { font-size: 17px; }
p { margin: 0 0 1.1em; }
a { color: var(--red); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }

/* ---------- 4. 工具类 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--red);
  color: #FFF7F4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: 3px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; }
.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: var(--shadow-1);
}

/* ---------- 5. 版式骨架 ---------- */
.prose { max-width: 720px; }
.prose p { max-width: 38em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 1.5em; margin-bottom: 0.55em; max-width: 38em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--red);
}
.prose ol { counter-reset: prose-ol; }
.prose ol > li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.grid { display: grid; gap: 24px; }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
.breadcrumb { margin: 22px 0 6px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.breadcrumb__item:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.breadcrumb__link { color: var(--stone); }
.breadcrumb__link:hover { color: var(--red); }

/* 档案式双栏：左索引 + 右长卷 */
.ledger {
  display: block;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.ledger__rail { margin: 0 0 26px; }
.ledger__index {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line-strong);
}
.ledger__index li { flex: 0 0 auto; }
.ledger__index a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.ledger__index a:hover {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--red);
  text-decoration: none;
}
.ledger__index a[aria-current] {
  background: var(--red-soft);
  border-color: rgba(178, 51, 39, 0.4);
  color: var(--red);
}
.ledger__index-num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.ledger__index a[aria-current] .ledger__index-num { color: var(--red); }
.ledger__main { min-width: 0; }

/* ---------- 6. 组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--red { background: var(--red); border-color: var(--red); color: #FFF7F4; }
.btn--red:hover { background: #99291F; border-color: #99291F; }
.btn--jade { background: var(--jade); border-color: var(--jade); color: #F2FBF8; }
.btn--jade:hover { background: #175A50; border-color: #175A50; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--glass); border-color: var(--red); color: var(--red); }
.btn--block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  background: var(--edge);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.tag--red { background: var(--red-soft); border-color: rgba(178, 51, 39, 0.35); color: var(--red); }
.tag--jade { background: var(--jade-soft); border-color: rgba(31, 111, 99, 0.35); color: var(--jade); }
.tag--gold { background: var(--gold-soft); border-color: rgba(192, 138, 46, 0.4); color: var(--gold-ink); }

.card {
  position: relative;
  padding: 22px;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.card--red { border-top: 3px solid var(--red); }
.card--jade { border-top: 3px solid var(--jade); }
.card--gold { border-top: 3px solid var(--gold); }
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card__title { margin: 0; font-size: 19px; }
.card__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--stone); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line-strong);
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--red);
  white-space: nowrap;
}
.section-head__title { margin: 0; font-size: clamp(21px, 2.6vw, 28px); }
.section-head__aside { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--stone); }
.section-head--red .section-head__num { color: var(--red); }
.section-head--jade .section-head__num { color: var(--jade); }
.section-head--gold .section-head__num { color: var(--gold); }

.num-anchor {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 120px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--gold);
  font-feature-settings: "tnum";
}
.num-anchor--red { color: var(--red); }
.num-anchor--jade { color: var(--jade); }
.num-anchor__unit {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--stone);
  text-transform: uppercase;
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.rule--scale {
  height: 9px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 14px);
  background-repeat: repeat-x;
  background-size: 14px 5px;
  background-position: left bottom;
}

.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--edge);
  border: 1px solid var(--line-strong);
}
.figure > img, .figure > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--3x2 { aspect-ratio: 3 / 2; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  background: rgba(42, 37, 32, 0.74);
  color: #FAF6EE;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.figure__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--stone);
  background-image: repeating-linear-gradient(135deg, rgba(231, 223, 210, 0.95) 0 12px, rgba(250, 246, 238, 0.95) 12px 24px);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}
.ledger-table { width: 100%; font-size: 15px; line-height: 1.65; }
.ledger-table caption {
  caption-side: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-align: left;
}
.ledger-table th {
  padding: 10px 14px;
  background: var(--jade-soft);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-align: left;
  white-space: nowrap;
}
.ledger-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger-table tbody tr:nth-child(even) { background: rgba(231, 223, 210, 0.42); }
.ledger-table tbody tr:hover { background: var(--red-soft); }
.ledger-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 7. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 238, 0.95);
  border-bottom: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header-meta {
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, rgba(178, 51, 39, 0.10), rgba(192, 138, 46, 0.10) 48%, rgba(31, 111, 99, 0.12));
}
.header-meta__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.header-meta__sign { margin: 0; color: var(--ink); }
.header-meta__region { margin: 0; }
.header-meta__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.header-meta__mail { display: none; }
.header-meta__tel { color: var(--ink); }
.header-meta__link { color: var(--red); border-bottom: 1px solid currentColor; }
.header-meta__link:hover { color: var(--ink); text-decoration: none; }

.header-nav { position: relative; }
.header-nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding-block: 8px;
}
.brand { display: flex; flex-direction: column; gap: 1px; flex: 0 0 auto; color: var(--ink); }
.brand:hover { color: var(--red); text-decoration: none; }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--stone);
  white-space: nowrap;
}
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 70;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
}
.site-nav[data-open] { display: block; }
.site-nav__list { display: flex; flex-direction: column; padding: 6px 0 12px; }
.site-nav__item { display: block; }
.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.site-nav__link:hover, .site-nav__link:focus-visible { background: var(--red-soft); color: var(--red); text-decoration: none; }
.site-nav__num { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; color: var(--stone); }
.site-nav__label { display: block; }
.site-nav__link[aria-current="page"] { background: var(--red-soft); color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--red); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--glass); }
.nav-toggle__lines { display: grid; gap: 4px; width: 16px; }
.nav-toggle__lines span { display: block; height: 2px; background: currentColor; transition: transform 0.18s ease, opacity 0.18s ease; }
.nav-toggle[aria-expanded="true"] { background: var(--red-soft); border-color: rgba(178, 51, 39, 0.4); color: var(--red); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.batch { position: relative; }
.batch__toggle {
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
}
.batch__toggle:hover { background: var(--red-soft); }
.batch__toggle[aria-expanded="true"] { background: var(--red); border-color: var(--red); color: #FFF7F4; }
.batch__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: min(372px, calc(100vw - 2 * var(--pad)));
  padding: 20px;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.batch__title {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--stone);
  text-transform: uppercase;
}
.batch__hint { margin: 0 0 12px; font-size: 14px; line-height: 1.7; }
.batch__row { display: flex; gap: 8px; }
.batch__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.batch__input:focus-visible { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 1px; }
.batch__submit { flex: 0 0 auto; padding: 10px 18px; font-size: 14px; }
.batch__result {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}
.batch__result[data-state="miss"] { color: var(--red); }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--plateau);
  color: #D9D1C4;
  font-size: 15px;
  line-height: 1.75;
}
.footer-band {
  height: 4px;
  background-image: linear-gradient(90deg, var(--red) 0 25%, var(--gold) 25% 50%, var(--jade) 50% 75%, #E7DFD2 75% 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 44px 0 32px;
}
.footer-col { min-width: 0; }
.footer-h {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(231, 223, 210, 0.24);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #E7DFD2;
  text-transform: uppercase;
}
.footer-brand {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.4;
  color: var(--paper);
}
.footer-note { margin: 0 0 16px; max-width: 26em; color: #B5AC9E; font-size: 14px; }
.footer-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-list a { color: #D9D1C4; border-bottom: 1px solid transparent; }
.footer-list a:hover { color: var(--paper); border-bottom-color: var(--gold); text-decoration: none; }
.footer-codes li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(231, 223, 210, 0.2);
  font-size: 14px;
}
.footer-codes li:last-child { border-bottom: 0; }
.footer-codes__code {
  min-width: 58px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.footer-contact { margin: 0; display: grid; gap: 12px; }
.footer-contact__group { margin: 0; }
.footer-contact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #9C9385;
  text-transform: uppercase;
}
.footer-contact dd { margin: 2px 0 0; color: #E7DFD2; word-break: break-word; }
.footer-region { margin: 0 0 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: #E7DFD2; }
.footer-region--note { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; color: #B5AC9E; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(231, 223, 210, 0.2);
  font-size: 13px;
  color: #9C9385;
}
.footer-motto { margin: 0; font-family: var(--font-editorial); font-size: 15px; color: #CFC6B8; }
.footer-fine { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.site-footer a:focus-visible { outline-color: var(--gold); }

/* ---------- 9. 滚动进度与显现 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--red), var(--gold) 55%, var(--jade));
  transition: transform 0.12s linear;
}
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.js-enabled [data-reveal][data-visible] { opacity: 1; transform: none; }

/* ---------- 10. 响应式 ---------- */
@media (min-width: 560px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  :root { --pad: 32px; }
  .header-meta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 6px 0;
    font-size: 12px;
  }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}
@media (min-width: 900px) {
  .header-meta__mail { display: inline; }
}
@media (min-width: 1081px) {
  :root { --pad: 40px; }
  .header-nav__inner { min-height: 66px; }
  .site-nav {
    display: flex;
    position: static;
    max-height: none;
    overflow: visible;
    margin-left: 20px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav__list { flex-direction: row; align-items: stretch; padding: 0; }
  .site-nav__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 11px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
  }
  .site-nav__link:hover { background: var(--glass); color: var(--red); }
  .site-nav__link[aria-current="page"] { background: var(--red-soft); color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
  .nav-toggle { display: none; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 56px; align-items: start; }
  .ledger__rail { position: sticky; top: 132px; margin: 0; }
  .ledger__index { display: block; overflow: visible; padding: 0; border-bottom: 0; border-top: 1px solid var(--line-strong); }
  .ledger__index a { border: 0; border-bottom: 1px solid var(--line); padding: 11px 10px; white-space: normal; }
  .footer-grid { grid-template-columns: 1.15fr 1fr 1.35fr 1fr; gap: 48px; padding: 56px 0 40px; }
}
@media (max-width: 1080px) {
  .batch { position: static; }
  .batch__panel {
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    padding: 20px var(--pad);
    border-left: 0;
    border-right: 0;
  }
}
@media (max-width: 480px) {
  .batch__toggle { padding: 9px 10px; font-size: 12px; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 10px; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-enabled [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
  .btn:hover { transform: none; }
  .scroll-progress__bar { transition: none; }
  .skip-link { transition: none; }
}
