/* ============================================================
   赌包指南 · 共享站点样式 /assets/site.css
   夜间路牌系统：深墨蓝底 / 信号橙指示 / 青瓷绿辅助
   ============================================================ */

:root {
  --ink-950: #050B14;
  --ink-900: #08111D;
  --ink-850: #0A1626;
  --ink-800: #0D1B2C;
  --ink-700: #132538;
  --ink-600: #1B334A;

  --line: rgba(126, 166, 208, 0.18);
  --line-strong: rgba(126, 166, 208, 0.34);

  --paper: #EDF3FA;
  --text: #C3D4E6;
  --muted: #7E96AE;

  --orange: #FF6B2C;
  --orange-hi: #FF8A57;
  --orange-soft: rgba(255, 107, 44, 0.14);
  --jade: #38C9A2;
  --jade-soft: rgba(56, 201, 162, 0.14);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --wrap: 1240px;
  --gap: clamp(14px, 2vw, 28px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image:
    linear-gradient(rgba(126, 166, 208, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 166, 208, 0.045) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
svg { max-width: 100%; }

::selection {
  background: var(--orange);
  color: #08111D;
}

#main-content { display: block; }

/* ---------- 中文排版 / 标题 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--paper);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.display-title {
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-title {
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  letter-spacing: -0.02em;
}

.lede {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
  color: var(--text);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- 无障碍工具 ---------- */
.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;
}

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

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  border-radius: 2px;
  background: var(--orange);
  color: #08111D;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* ============================================================
   页头 —— 悬浮胶囊浮岛
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px 0 10px;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 20, 0.96) 0%,
    rgba(5, 11, 20, 0.78) 62%,
    rgba(5, 11, 20, 0) 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: min(var(--wrap), 100% - 32px);
  min-height: 58px;
  margin-inline: auto;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 21, 36, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 48px -30px rgba(0, 0, 0, 0.95);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background:
    linear-gradient(148deg, rgba(255, 107, 44, 0.22), rgba(56, 201, 162, 0.1));
  transition: border-color 0.2s var(--ease);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  height: 2px;
  transform-origin: left center;
  transform: rotate(-40deg);
  transition: width 0.24s var(--ease);
}

.brand-mark::before {
  top: 13px;
  left: 8px;
  width: 17px;
  background: var(--orange);
}

.brand-mark::after {
  top: 21px;
  left: 13px;
  width: 9px;
  background: var(--jade);
}

.brand:hover .brand-mark { border-color: var(--orange); }
.brand:hover .brand-mark::before { width: 21px; }
.brand:hover .brand-mark::after { width: 13px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 导航外壳 */
.nav-shell {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width 0.22s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(126, 166, 208, 0.1);
}

.nav-link:hover::after { width: 14px; }

.nav-link[aria-current="page"] {
  background: var(--orange);
  color: #08111D;
  font-weight: 800;
}

.nav-link[aria-current="page"]::after { width: 0; }

.nav-link[aria-current="page"]:hover {
  background: var(--orange-hi);
  color: #08111D;
}

/* 头部铭牌 */
.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-meta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-soft);
}

.header-meta__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--muted);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  margin-left: auto;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5px) 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(-5px) rotate(-45deg);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* ============================================================
   页脚 —— 导视牌
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 130px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 22, 38, 0.55) 0%, rgba(5, 11, 20, 0.98) 46%);
}

.footer-inner {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 82px) 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(26px, 4vw, 56px);
}

.footer-brand { min-width: 0; }

.footer-tagline {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-coord {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--jade);
}

.footer-col { min-width: 0; }

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.footer-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-links a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line-strong);
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}

.footer-links a:hover { color: var(--paper); }
.footer-links a:hover::before {
  width: 20px;
  background: var(--orange);
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.footer-contact__label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 30px;
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-copy { margin: 0; }
.footer-icp { margin: 0; color: var(--jade); }

.footer-note {
  flex: 1 1 100%;
  margin: 0;
  max-width: 74ch;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ============================================================
   通用容器与章节
   ============================================================ */
.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.section { padding-block: clamp(44px, 6.5vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 72ch;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jade);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.chapter-no {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.3vw, 14px);
  letter-spacing: 0.26em;
  color: var(--orange);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }

.btn--primary {
  background: var(--orange);
  color: #08111D;
}
.btn--primary:hover { background: var(--orange-hi); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.btn--jade {
  background: var(--jade);
  color: #06231C;
}
.btn--jade:hover { background: #4FE0B9; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  width: min(var(--wrap), 100% - 40px);
  margin: 0 auto;
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--ink-600);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.breadcrumb a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(13, 27, 44, 0.72);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.32s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  background: rgba(19, 37, 56, 0.92);
  transform: translateY(-2px);
}

.card:hover::before { width: calc(100% + 2px); }

.card__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.card__title {
  margin: 10px 0 8px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  color: var(--paper);
}

.card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
}

.tag--orange {
  border-color: rgba(255, 107, 44, 0.42);
  color: var(--orange);
}

/* ---------- 图片容器基础 ---------- */
.figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.figure__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(140deg, var(--ink-800) 0%, var(--ink-950) 78%);
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(126, 166, 208, 0.06) 0 1px,
    transparent 1px 9px
  );
}

.figure__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 3 / 4; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

.figure__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--orange), var(--jade));
}

.timeline > li {
  position: relative;
  padding: 0 0 26px 34px;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background: var(--ink-950);
}

.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::before { border-color: var(--jade); }

/* ---------- 对照表 ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

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

.compare th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

.compare td { color: var(--text); }

.compare tbody tr:hover td {
  background: rgba(126, 166, 208, 0.06);
  color: var(--paper);
}

/* ---------- 仪表盘数值 ---------- */
.stat {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
}

.prose h2,
.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 1.22rem;
  color: var(--paper);
}

.prose p { margin: 0 0 1.1em; }

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.prose li { margin-bottom: 0.45em; }

.prose strong { color: var(--paper); }

.prose a {
  color: var(--jade);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 201, 162, 0.35);
}

.prose a:hover { border-bottom-color: var(--jade); }

/* ============================================================
   脚本注入元件
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--jade));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(13, 27, 44, 0.92);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease),
    transform 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .nav-link { padding: 8px 11px; font-size: 13.5px; }
  .header-meta { display: none; }
}

@media (max-width: 1023px) {
  .header-inner {
    flex-wrap: nowrap;
    border-radius: 26px;
    padding: 8px 10px 8px 14px;
  }

  .nav-shell {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(10, 22, 38, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.95);
  }

  .site-nav[data-open] { display: flex; }

  .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] { border-radius: 12px; }
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { background-attachment: scroll; }

  .site-header { padding-top: 10px; }
  .header-inner { width: calc(100% - 24px); }

  .brand-sub { display: none; }
  .brand-text strong { font-size: 15px; }

  .footer-inner { width: calc(100% - 32px); }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .wrap,
  .breadcrumb { width: calc(100% - 32px); }

  .btn { width: 100%; }
}

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

  .progress-bar { transition: none; }
  .btn:hover,
  .card:hover,
  .to-top { transform: none; }
}
