/* ============================================================
   第四套 · 深色 Wiki 站样式表（零 JS）
   设计系统复刻自 grain-rot.online（Next.js 编译产物）
   改 :root 的 --orange / --cyan / --green 等即可换肤
   ============================================================ */

:root {
  --bg: #10120f;
  --bg-soft: #161814;
  --surface: #1b1d18;
  --surface-2: #22241e;
  --paper: #ece9df;
  --paper-muted: #d4d1c7;
  --ink: #151817;
  --text: #f4f1e8;
  --muted: #a6aaa3;
  --line: #31352c;
  --line-light: #c7c4ba;
  --orange: #d95f2b;
  --orange-dark: #9c3a16;
  --cyan: #4fb3a8;
  --green: #9ac466;
  --amber: #e0b64e;
  --danger: #e47760;
  --shell: 1180px;
  --header-height: 68px;
  --radius: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:hover { color: #fff; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 3px;
}

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

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

h1, h2, h3 { margin-top: 0; line-height: 1.05; text-wrap: balance; }

h1, h2 { font-family: Arial Black, Impact, ui-sans-serif, sans-serif; letter-spacing: 0.01em; }

p { margin-top: 0; }

img { max-width: 100%; }

/* ============ 小元件 ============ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper-muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.kicker > span { width: 24px; height: 2px; background: var(--orange); }

.section-index {
  color: var(--orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.button--primary { background: var(--orange); color: #130b08; }
.button--primary:hover { background: #ff7447; color: #130b08; }
.button--ghost { background: rgba(12, 15, 13, .64); color: var(--text); border-color: #6c726d; }
.button--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============ 顶栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 18, 17, .96);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1420px, 100% - 32px);
  height: 100%;
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; text-decoration: none; }

.brand__mark {
  display: grid;
  place-items: center;
  position: relative;
  width: 32px;
  height: 38px;
  overflow: visible;
}

.brand__mark svg { display: block; }

.brand__mark::before { content: none; }

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: Arial Black, Impact, sans-serif; font-size: 15px; }
.brand__text small { color: var(--muted); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }

.site-header__actions { display: flex; align-items: center; gap: 7px; }

/* —— 主导航 —— */
.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.primary-nav > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--paper-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-nav > a:hover,
.primary-nav > a.is-current,
.nav-trigger:hover {
  color: var(--orange);
  background: #241a15;
}

.header-steam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange);
  color: #1b0c07;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.header-steam:hover { background: #ff7447; color: #1b0c07; }

/* 语言切换（details 实现） */
.language-picker { position: relative; }

.language-picker > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: border-color .15s, color .15s, background .15s;
}

.language-picker > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: .65;
}

.language-picker > summary:hover { color: #fff; background: var(--surface-2); border-color: var(--orange); }

.language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 8rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

.language-menu a {
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.language-menu a:hover { color: #fff; background: var(--surface-2); }

/* Mobile menu with details */
.mobile-menu { position: relative; }

.mobile-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--paper-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 8px;
}

.mobile-menu > nav {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(84vw, 320px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}

.mobile-menu > nav a {
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.mobile-menu > nav a:hover { background: var(--surface-2); }

/* ============ Home hero ============ */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  padding: 40px 0 96px;
  border-bottom: 1px solid var(--line);
}

.home-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }

.home-hero__shade { position: absolute; inset: 0; background: rgba(9, 11, 10, .67); }

.home-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 100%;
  width: min(1420px, 100% - 64px);
  margin-inline: auto;
}

.home-hero__copy { width: 100%; max-width: 576px; padding-bottom: 14px; align-self: center; }

.home-hero__copy h1 {
  margin: 16px 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  line-height: 1.08;
}

.home-hero__copy h1 em { color: var(--orange); font-style: normal; }
.home-hero__copy h1 .h1-title { white-space: nowrap; }

.home-hero__copy > p { max-width: 670px; margin: 0; color: #dcddd7; font-size: 18px; line-height: 1.65; }

.home-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.home-hero__trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; color: #b8bbb5; font-size: 12px; }

.home-hero__trust span { display: inline-flex; align-items: center; gap: 7px; }

.home-hero__video {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(50%, 600px);
  min-width: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: #050605;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
}

.home-hero__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.home-hero__video .play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.home-hero__video .play-badge span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
}

.home-hero__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 82px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(12, 14, 13, .9);
}

.home-hero__rail > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 22px;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.home-hero__rail > div:last-child { border-right: 0; }

.home-hero__rail small { color: #b8bbb5; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.home-hero__rail strong { color: #fff; font-size: 15px; font-weight: 750; }

/* ============ 色带分区 ============ */
.section-band { border-bottom: 1px solid var(--line); padding: 84px 0; }

.section-band--paper { background: var(--paper); color: var(--ink); }
.section-band--paper .section-heading--dark .section-index { color: var(--orange-dark); }
.section-band--paper .section-heading--dark h2 { color: var(--ink); }
.section-band--paper .section-heading--dark p { color: var(--ink); opacity: .72; }
.section-band--ink { background: #0b0d0c; }
.section-band--signal { background: var(--cyan); color: var(--ink); }
.section-band--signal .section-index { color: var(--orange-dark); }

.section-heading {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading--stacked { grid-template-columns: 1fr; align-items: start; gap: 8px; }

.section-heading h2 { margin: 4px 0 0; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }

/* 快捷路线 */
.quick-route { padding: 66px 0; }

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.route-grid > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 13px;
  min-height: 128px;
  padding: 22px;
  border-right: 1px solid var(--line-light);
  text-decoration: none;
}

.route-grid > a:last-child { border-right: 0; }
.route-grid > a:hover { background: rgba(0, 0, 0, .05); }

.route-grid > a span { display: grid; gap: 4px; }
.route-grid > a strong { font-size: 14px; }
.route-grid > a small { color: var(--muted); font-size: 12px; }
.route-grid > a svg { color: var(--orange); }

/* ============ 目录分组 ============ */
.home-directory__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 42px;
  border-block: 1px solid var(--line);
}

.home-directory__summary span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
}

.home-directory__summary span:last-child { border-right: 0; }
.home-directory__summary strong { color: var(--orange); }

.home-directory__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 46px 38px; }

.home-directory__group { min-width: 0; border-top: 2px solid var(--line); }
.home-directory__group--wide { grid-column: 1 / -1; }

.home-directory__group h3 { margin: 16px 0 10px; }

.home-directory__links { display: grid; grid-template-columns: 1fr; }
.home-directory__group--wide .home-directory__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.home-directory__links a,
.home-directory__links > div > a {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.home-directory__links a:hover { color: var(--orange); }

.home-directory__links a small { display: block; color: var(--muted); font-size: 11px; }

/* 文章栅格 */
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
}

.article-card:hover { border-color: #59605b; transform: translateY(-2px); }

.article-card__media { position: relative; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); overflow: hidden; }

.article-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .22s; }

.article-card:hover .article-card__media img { transform: scale(1.04); }

.article-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }

.article-card__eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--orange); text-transform: uppercase; font-size: 9px; font-weight: 850; letter-spacing: .05em; }

.article-card__time { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-transform: none; font-size: 10px; font-weight: 600; }

.article-card__body h3 { margin: 10px 0 8px; font-size: 16px; }
.article-card__body p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.article-card__footer span { color: var(--cyan); font-size: 11px; font-weight: 750; }

.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.evidence-badge--official { color: var(--green); }
.evidence-badge--observed { color: var(--amber); }
.evidence-badge--mixed { color: var(--orange); }

/* ============ Article pages ============ */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: #8f918b; font-size: 11px; }

.breadcrumb a { color: #8f918b; text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .is-current { color: var(--text); }

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 360px;
  border-bottom: 1px solid var(--line);
  background: #151918;
}

.page-hero--hub { background-color: #171512; background-image: url("./assets/media/hero.jpg"); background-position: 50% 42%; background-size: cover; }

.page-hero__shade { position: absolute; inset: 0; z-index: 0; background: rgba(10, 12, 11, .6); }

.page-hero .shell { position: relative; z-index: 1; }

.page-hero .kicker { color: var(--cyan); }
.page-hero h1 { margin: 14px 0 18px; color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.page-hero__details p { max-width: 640px; color: #dcddd7; font-size: 17px; }
.page-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.page-hero__stats span { padding: 8px 12px; border-left: 2px solid var(--cyan); background: rgba(10, 12, 11, .62); color: var(--muted); font-size: 11px; }

.article-shell { display: grid; grid-template-columns: minmax(0, 780px) 260px; justify-content: space-between; gap: 70px; padding-block: 64px 92px; }

.article-body { min-width: 0; color: #d7dad3; font-size: 16px; line-height: 1.78; }

.article-body h2 { margin: 58px 0 18px; padding-top: 12px; color: var(--text); font-size: 28px; line-height: 1.25; }
.article-body h3 { margin: 30px 0 12px; color: var(--text); font-size: 19px; }
.article-body p { margin: 0 0 1.1rem; }
.article-body a { color: var(--cyan); font-weight: 650; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin: .4rem 0; }
.article-body strong { color: #fff; }

.article-body .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.article-body table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body thead th { background: var(--surface-2); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.article-body tr:last-child td { border-bottom: 0; }

.article-sidebar { min-width: 0; }

.article-sidebar nav { position: sticky; top: 90px; display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 18px; }

.article-sidebar .toc-title { margin: 0 0 12px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.article-sidebar nav a { padding: 7px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.article-sidebar nav a:hover { color: var(--orange); }

.direct-answer { margin-bottom: 46px; padding: 22px 24px; border-left: 3px solid var(--cyan); background: #171c1a; }
.direct-answer span { display: block; margin-bottom: 8px; color: var(--cyan); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.direct-answer p { margin: 0; color: #e6e8e3; font-size: 19px; line-height: 1.5; }

.field-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 28px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field-note strong { display: block; margin-bottom: 4px; color: #fff; }
.field-note p { margin: 0; color: var(--muted); font-size: 14px; }
.field-note--verified { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }

.evidence-strip { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 20px 0; }
.evidence-strip > div { margin-right: auto; }
.evidence-strip p { margin: 0; color: var(--muted); font-size: 13px; }

.loop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.loop-step { position: relative; min-height: 240px; padding: 26px 24px; border-right: 1px solid var(--line); }
.loop-step:last-child { border-right: 0; }
.loop-step .step-num { display: block; margin-bottom: 16px; color: var(--orange); font-size: 11px; font-weight: 850; }
.loop-step h3 { font-size: 16px; }
.loop-step p { color: var(--muted); font-size: 13px; }

.visual-panel { position: relative; overflow: hidden; min-height: 540px; border: 1px solid var(--line); border-radius: var(--radius); }
.visual-panel img { width: 100%; height: 100%; object-fit: cover; }
.visual-panel__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 12px; }

.article-review-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.contact-box { margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; }

/* ============ CTA / 页脚 ============ */
.final-cta { padding: 92px 0; background: #131716; }

.final-cta .shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.final-cta h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.site-footer { color: var(--paper-muted); background: #090b0a; }

.site-footer__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; padding: 66px 0 50px; }

.site-footer__lead p { max-width: 440px; margin: 20px 0 0; color: var(--muted); font-size: 13px; }

.site-footer__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.site-footer__links > div { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links h3 { margin: 0 0 6px; color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer__links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.site-footer__links a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 54px;
  padding: 0 max(24px, calc((100% - var(--shell)) / 2));
  border-top: 1px solid var(--line);
  color: #737872;
  font-size: 10px;
}

/* ============ 响应式 ============ */
@media (max-width: 1050px) {
  .primary-nav { display: none; }
}

@media (max-width: 900px) {
  .home-hero__content { grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr); gap: 26px; }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-grid > a:nth-child(2) { border-right: 0; }
  .route-grid > a:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .home-directory__groups { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { grid-template-columns: 1fr; align-items: start; gap: 8px; }
  .final-cta .shell { grid-template-columns: 1fr; }
  .site-footer__inner { gap: 50px; }
}

@media (max-width: 620px) {
  .shell, .site-header__inner { width: calc(100% - 36px); }
  .home-hero { height: auto; min-height: 560px; }
  .home-hero__content { grid-template-columns: 1fr; height: auto; padding: 90px 0 130px; gap: 22px; }
  .home-hero__copy > p { font-size: 16px; }
  .home-hero__rail { grid-template-columns: repeat(2, 1fr); height: auto; position: static; margin-top: 24px; }
  .home-hero__rail > div { border-bottom: 1px solid rgba(255,255,255,.12); }
  .route-grid { grid-template-columns: 1fr; }
  .route-grid > a { border-right: 0; border-top: 1px solid var(--line-light); }
  .route-grid > a:first-child { border-top: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .loop-grid { grid-template-columns: 1fr; }
  .loop-step { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .loop-step:last-child { border-bottom: 0; }
  .home-directory__summary { grid-template-columns: 1fr; }
  .home-directory__summary span { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-directory__summary span:last-child { border-bottom: 0; }
  .home-directory__group--wide .home-directory__links { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__links { grid-template-columns: repeat(2, 1fr); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 18px; }
  .final-cta { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Mobile menu language section (added 2026-08-22) */
.mobile-menu .mobile-lang-label {
  display: block; margin: 0.6rem 0 0.2rem; padding-top: 0.6rem;
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.12));
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; opacity: 0.75;
}
.mobile-menu nav a.mobile-lang { display: inline-block; margin-right: 0.75rem; }
