/* =========================================================
   半岛赛事 Site Kit 1.0
   设计语言：数据流运动 · 非对称编辑版
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

/* ---------- 2. CSS 变量 ---------- */
:root {
  --color-navy: #0B1D3A;
  --color-navy-deep: #071228;
  --color-orange: #F39C12;
  --color-orange-soft: #FFB74D;
  --color-cyan: #00E5FF;
  --color-bg: #F5F7FA;
  --color-surface: #FFFFFF;
  --color-ink: #1E2A3A;
  --color-muted: #607A8F;

  --font-display: Impact, "Haettenschweiler", "Arial Narrow Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;

  --container-max: 1440px;
  --container-pad: clamp(16px, 4vw, 40px);
  --header-height: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 160ms;
  --speed-base: 280ms;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 10px rgba(7, 18, 40, 0.08);
  --shadow-hover: 0 14px 30px rgba(7, 18, 40, 0.16);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  z-index: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-navy);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.2vw, 72px);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 44px);
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
}

p,
li {
  text-wrap: pretty;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--color-orange);
  text-decoration: none;
  transition: color var(--speed-fast) var(--ease-out);
}

a:hover {
  color: var(--color-navy);
}

/* ---------- 4. 可访问性与跳过链接 ---------- */
:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  background: var(--color-orange);
  color: var(--color-navy-deep);
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--speed-fast) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 5. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-cyan) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(7, 18, 40, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background var(--speed-base) var(--ease-out),
    border-color var(--speed-base) var(--ease-out),
    box-shadow var(--speed-base) var(--ease-out);
}

.site-header[data-scrolled] {
  background: rgba(7, 18, 40, 0.97);
  border-bottom-color: rgba(243, 156, 18, 0.55);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-cyan));
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity var(--speed-base) var(--ease-out);
}

.site-header[data-scrolled]::after {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  min-height: var(--header-height);
}

/* 品牌 */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  color: #FFFFFF;
  flex-shrink: 0;
}

.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-soft) 100%);
  color: var(--color-navy-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.5px;
  border-radius: var(--radius-sm) 0 var(--radius-sm) 0;
  transform: skewX(-6deg);
  box-shadow: 4px 4px 0 rgba(0, 229, 255, 0.4);
}

.site-header__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
}

.site-header__title small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    background var(--speed-fast) var(--ease-out),
    color var(--speed-fast) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-orange);
  background: rgba(243, 156, 18, 0.1);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
}

/* 同步状态 */
.site-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-sync__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

.site-sync__label {
  letter-spacing: 0.5px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
  color: #FFFFFF;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition:
    transform var(--speed-fast) var(--ease-out),
    opacity var(--speed-fast) var(--ease-out);
}

.nav-toggle__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 1px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.66);
  margin-top: auto;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-orange) 0%,
    var(--color-orange) 47.5%,
    var(--color-cyan) 47.5%,
    var(--color-cyan) 52.5%,
    var(--color-navy) 52.5%,
    var(--color-navy) 100%
  );
}

.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 56px var(--container-pad) 32px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-soft));
  color: var(--color-navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  border-radius: var(--radius-sm) 0 var(--radius-sm) 0;
  transform: skewX(-6deg);
  margin-bottom: 14px;
}

.site-footer__name {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.site-footer__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__heading {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(243, 156, 18, 0.5);
  display: inline-block;
}

.site-footer__links li {
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 14px;
  transition:
    color var(--speed-fast) var(--ease-out),
    padding-left var(--speed-fast) var(--ease-out);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--color-orange);
  padding-left: 4px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- 8. 布局类 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 56px;
}

.content-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.narrow-rail {
  font-size: 14px;
  color: var(--color-muted);
}

.wide-area {
  min-width: 0;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* 页面公共区块 */
.page-body {
  padding-block: 48px;
}

.page-head {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.86);
  padding-block: clamp(32px, 5vw, 64px);
  border-bottom: 5px solid var(--color-orange);
}

.page-head__title {
  color: #FFFFFF;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
}

.page-head__desc {
  margin-top: 8px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--color-orange);
  font-weight: 700;
}

.breadcrumb__link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--color-orange);
}

.breadcrumb__current {
  color: var(--color-orange);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--color-cyan);
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--speed-fast) var(--ease-out),
    background var(--speed-fast) var(--ease-out),
    border-color var(--speed-fast) var(--ease-out),
    color var(--speed-fast) var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-navy-deep);
  border-color: var(--color-orange);
}

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

.btn--outline {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(243, 156, 18, 0.12);
  color: var(--color-orange);
}

.btn--light {
  background: #FFFFFF;
  color: var(--color-navy);
  border-color: #FFFFFF;
}

.btn--light:hover {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-navy);
}

/* ---------- 10. 标签与装饰 ---------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(243, 156, 18, 0.14);
  color: var(--color-navy);
  border-left: 3px solid var(--color-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.brand-line::after {
  content: "";
  flex: 0 0 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-cyan));
  border-radius: 2px;
}

.diagonal-band {
  position: relative;
  background: var(--color-navy);
  color: #FFFFFF;
  padding-block: clamp(40px, 7vw, 88px);
  overflow: hidden;
}

.diagonal-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 229, 255, 0.05);
  clip-path: polygon(0 0, 46% 0, 30% 100%, 0 100%);
  pointer-events: none;
}

.dotted-rule {
  border: 0;
  border-top: 2px dotted var(--color-cyan);
  margin: 24px 0;
  opacity: 0.5;
}

/* ---------- 11. 卡片 ---------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  border-top: 4px solid var(--color-navy);
  position: relative;
}

.card--hover {
  transition:
    transform var(--speed-base) var(--ease-out),
    box-shadow var(--speed-base) var(--ease-out);
}

.card--hover:hover,
.card--hover:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card--accent {
  border-top-color: var(--color-orange);
}

.card--cyan {
  border-top-color: var(--color-cyan);
}

.card__media {
  margin: -24px -24px 20px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.card__body {
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 12. 数据展示 ---------- */
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

.stat-value--orange {
  color: var(--color-orange);
}

.stat-value--cyan {
  color: var(--color-cyan);
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-muted);
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

.data-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(11, 29, 58, 0.15);
}

/* ---------- 13. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(11, 29, 58, 0.08);
}

.data-table th {
  background: var(--color-navy);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(0, 229, 255, 0.05);
}

/* ---------- 14. 研究板组件 ---------- */
.study-block {
  background: var(--color-surface);
  border: 1px solid rgba(11, 29, 58, 0.1);
  border-left: 6px solid var(--color-orange);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.evidence-card {
  position: relative;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(11, 29, 58, 0.12);
  border-radius: var(--radius-sm);
}

.evidence-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-orange-soft);
  border-bottom: 2px solid var(--color-orange-soft);
}

.term-tag {
  display: inline-block;
  margin: 4px 4px 4px 0;
  padding: 4px 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 600;
}

.further-reading {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.further-reading a {
  color: var(--color-orange);
  font-weight: 700;
}

.aside-note {
  border-left: 4px solid var(--color-orange);
  padding: 10px 16px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  background: rgba(243, 156, 18, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- 15. 图片占位 ---------- */
.image-placeholder {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.06), rgba(243, 156, 18, 0.1));
  border: 1px solid rgba(11, 29, 58, 0.1);
  border-radius: var(--radius-sm);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 1px;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0, 229, 255, 0.04) 8px,
    rgba(0, 229, 255, 0.04) 16px
  );
}

/* ---------- 16. 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-navy);
  color: var(--color-orange);
  box-shadow: var(--shadow-card);
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity var(--speed-base) var(--ease-out),
    transform var(--speed-base) var(--ease-out),
    background var(--speed-fast) var(--ease-out);
}

.back-to-top[data-show] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-orange);
  color: var(--color-navy);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1023.98px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    margin-left: 0;
    padding: 32px 24px;
    background: rgba(7, 18, 40, 0.98);
    border-left: 3px solid var(--color-orange);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(102%);
    transition:
      transform var(--speed-base) var(--ease-out),
      visibility 0s linear var(--speed-base);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition:
      transform var(--speed-base) var(--ease-out),
      visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav__link {
    font-size: 17px;
    padding: 12px 16px;
  }

  .site-nav__link[aria-current="page"]::after {
    left: auto;
    right: auto;
    bottom: auto;
    top: 50%;
    left: 16px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding-block: 40px;
  }

  .page-body {
    padding-block: 32px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__inner {
    padding-top: 40px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639.98px) {
  .site-sync__label {
    display: none;
  }

  .site-sync {
    padding: 6px 8px;
  }

  .site-header__title small {
    display: none;
  }

  .site-header__title {
    font-size: 18px;
  }
}

/* ---------- 18. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .nav-toggle__bar {
    transition: none;
  }

  .site-header,
  .site-header[data-scrolled],
  .site-header::after {
    transition: none;
  }

  .back-to-top {
    transition: none;
  }
}
