/* roulang page: index */
:root {
  --bg: #F3EEE6;
  --bg-alt: #E9E1D4;
  --card: #FFFCF7;
  --ink: #221C1A;
  --muted: #5E554F;
  --line: rgba(63, 79, 70, .28);
  --olive: #3F4F46;
  --side: #2C2422;
  --gold: #E7D7A1;
  --plum: #4E2A3A;
  --copper: #C4846A;
  --shadow: 0 12px 32px rgba(34, 28, 26, .08);
  --radius: 1.75rem;
  --btn-radius: .9rem;
  --side-w: 232px;
  --top-h: 56px;
  --ease: 180ms ease;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, "Sarasa Mono", "Noto Sans Mono", "Source Han Mono SC", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body.nav-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: .01em; line-height: 1.3; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num, .idx, time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-h);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 0 .75rem 0 1rem;
  background: var(--side);
  color: #FFFCF7;
  border-bottom: 1px solid rgba(231, 215, 161, .18);
}
.topbar .brand { font-size: .92rem; line-height: 1.25; }
.icon-btn, .nav-link, .btn, .chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.icon-btn {
  border: 1px solid rgba(231, 215, 161, .35);
  background: transparent;
  color: #FFFCF7;
  border-radius: 999px;
  padding: 0 1rem;
  cursor: pointer;
}
.icon-btn:hover, .icon-btn:focus-visible { background: rgba(231, 215, 161, .14); }
.shell {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 300px);
  background: var(--side);
  color: #F3EEE6;
  z-index: 60;
  transform: translateX(-105%);
  transition: transform var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1.1rem .9rem 0;
  box-shadow: var(--shadow);
}
.shell.is-open { transform: translateX(0); }
.brand {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  color: #FFFCF7;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.28;
  padding: .35rem .45rem .9rem;
}
.brand small { font-family: var(--sans); color: var(--gold); letter-spacing: .08em; font-size: .72rem; }
.shell-close { align-self: flex-start; margin: 0 .4rem .6rem; }
.side-nav { display: flex; flex-direction: column; gap: .35rem; }
.nav-link {
  border-radius: .9rem;
  padding: 0 .85rem;
  color: rgba(243, 238, 230, .86);
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.nav-link:hover { background: rgba(231, 215, 161, .1); color: var(--gold); }
.nav-link.is-active {
  background: rgba(231, 215, 161, .16);
  color: #FFFCF7;
  border-color: rgba(231, 215, 161, .28);
}
.side-foot {
  margin-top: auto;
  padding: 1.1rem .95rem 1.2rem;
  background: linear-gradient(160deg, var(--plum), var(--copper));
  border-radius: 1.2rem 1.2rem 0 0;
}
.side-foot strong { display: block; font-family: var(--serif); font-size: 1.02rem; }
.side-foot span { display: block; margin-top: .25rem; color: rgba(255, 252, 247, .88); font-size: .86rem; }
.mask {
  position: fixed;
  inset: 0;
  background: rgba(34, 28, 26, .46);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.mask.is-open { opacity: 1; pointer-events: auto; }
.mainwrap { padding-top: var(--top-h); }
.section { padding: 4.25rem 0; }
.band { background: var(--bg); }
.band-alt { background: var(--bg-alt); }
.idx {
  display: inline-block;
  color: var(--olive);
  font-size: .82rem;
  letter-spacing: .14em;
  margin-bottom: .7rem;
}
.section h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); max-width: 18em; }
.lead { max-width: 46rem; margin-top: 1rem; color: var(--muted); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 28, 26, .05);
  padding: 1.45rem 1.4rem 1.35rem;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(34, 28, 26, .1); }
.card h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.card p, .scene p, .rail p, .crowd p { color: var(--muted); }
.hero { padding: 1.25rem 0 1rem; }
.stage {
  position: relative;
  min-height: 430px;
  border-radius: 2rem;
  overflow: hidden;
  background:
    radial-gradient(1200px 320px at 80% 0%, rgba(196, 132, 106, .28), transparent 60%),
    repeating-linear-gradient(90deg, rgba(231, 215, 161, .08) 0 2px, transparent 2px 28px),
    var(--side);
  color: #FFFCF7;
  padding: 1.15rem 1.15rem 4.5rem;
  box-shadow: var(--shadow);
}
.stage::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: min(42%, 320px);
  height: 46%;
  border: 1px solid rgba(231, 215, 161, .35);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, transparent 0 18%, rgba(231, 215, 161, .8) 18% 22%, transparent 22% 42%, rgba(243, 238, 230, .75) 42% 46%, transparent 46%);
}
.series { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  border-radius: 999px;
  padding: 0 .95rem;
  background: rgba(243, 238, 230, .08);
  border: 1px solid rgba(231, 215, 161, .32);
  color: var(--gold);
  transition: background var(--ease), color var(--ease);
}
.chip:hover { background: var(--gold); color: var(--ink); }
.hero-copy { position: relative; z-index: 1; max-width: 40rem; padding: 2.2rem .5rem 0; }
.hero-copy h1 { font-size: clamp(1.85rem, 4vw, 3.15rem); }
.sub { margin-top: .85rem; color: var(--gold); font-size: 1.05rem; }
.accent { height: 5px; width: 7.5rem; margin-top: 1.2rem; border-radius: 999px; background: linear-gradient(90deg, var(--plum), var(--copper)); }
.hero-sheet { position: relative; z-index: 2; margin: -2.4rem .6rem 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.15rem; }
.btn {
  justify-content: center;
  padding: 0 1.15rem;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-position var(--ease), filter var(--ease), transform var(--ease), background var(--ease), border-color var(--ease);
}
.btn-primary {
  color: #FFFCF7;
  background-image: linear-gradient(120deg, var(--plum) 0%, var(--copper) 52%, var(--plum) 100%);
  background-size: 180% 100%;
  background-position: 0% 50%;
}
.btn-primary:hover, .btn-primary:focus-visible { background-position: 100% 50%; filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--olive); color: var(--olive); }
.btn-ghost:hover { background: rgba(63, 79, 70, .08); }
.scene li, .crowd li, .news li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: .8rem 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.scene li:first-child, .crowd li:first-child { border-top: 0; }
.scene .num, .rail .num, .news .num {
  color: var(--olive);
  font-size: 1.15rem;
}
.split {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.split .bar { background: linear-gradient(180deg, var(--plum), var(--copper)); }
.split .inner { padding: 1.6rem 1.45rem; }
.rail { display: flex; gap: 1rem; margin-top: 1.4rem; }
.rail li {
  flex: 1;
  background: var(--card);
  border-radius: 1.3rem;
  padding: 1.1rem 1rem 1.15rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.rail .num { display: block; margin-bottom: .45rem; }
.badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.badge {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  padding: .38rem .8rem;
  max-width: 100%;
}
.badge b { font-family: var(--mono); font-size: 1.05rem; font-weight: 650; }
.badge em, .caliber { font-style: normal; color: var(--olive); font-size: .78rem; }
.caliber { display: block; margin-top: .35rem; }
.quote { min-height: 100%; }
.quote span { display: block; margin-top: .9rem; color: var(--olive); font-size: .92rem; }
.news { margin-top: .4rem; }
.news li { align-items: start; background: transparent; }
.news h3 { font-size: 1.18rem; }
.news a { color: var(--olive); border-bottom: 1px solid rgba(63, 79, 70, .35); }
.news a:hover { color: var(--plum); }
.topic-main { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.faq details {
  background: var(--card);
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  padding: 0 1.1rem;
  margin-top: .75rem;
}
.faq summary { cursor: pointer; min-height: 44px; font-family: var(--serif); font-size: 1.05rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--olive); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  background: #E7E0D4;
}
.foot .links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--olive); }
.foot a:hover { color: var(--plum); }
.copy { margin-top: .8rem; color: var(--muted); font-size: .92rem; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
@media (min-width: 1024px) {
  .topbar, .shell-close { display: none; }
  .shell { width: var(--side-w); transform: none; box-shadow: none; }
  .mask { display: none !important; }
  .mainwrap { margin-left: var(--side-w); padding-top: 0; }
}
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .stage { min-height: 0; padding-bottom: 3.2rem; }
  .stage::after { display: none; }
  .hero-sheet { margin-left: 0; margin-right: 0; }
  .rail { flex-direction: column; }
  .scene li, .crowd li, .news li { grid-template-columns: 3.2rem 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 1.2rem, 1120px); }
  .brand, .topbar .brand { font-size: .98rem; }
  .hero-copy { padding-top: 1.4rem; }
  .card, .split .inner { padding: 1.15rem 1rem; }
  .actions .btn, .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* roulang page: category1 */
:root {
  --bg: #F3EEE6;
  --bg-alt: #E9E1D4;
  --card: #FFFCF7;
  --ink: #221C1A;
  --muted: #5E554F;
  --line: rgba(63, 79, 70, .28);
  --olive: #3F4F46;
  --side: #2C2422;
  --gold: #E7D7A1;
  --plum: #4E2A3A;
  --copper: #C4846A;
  --shadow: 0 12px 32px rgba(34, 28, 26, .08);
  --radius: 1.75rem;
  --btn-radius: .9rem;
  --side-w: 232px;
  --top-h: 56px;
  --ease: 180ms ease;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, "Sarasa Mono", "Noto Sans Mono", "Source Han Mono SC", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body.nav-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.35; margin: 0; }
p { margin: 0; }
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-h);
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 0 .75rem 0 1rem;
  background: var(--side);
  color: #FFFCF7;
  border-bottom: 1px solid rgba(231, 215, 161, .18);
}
.topbar .brand { font-size: .82rem; line-height: 1.25; padding: 0; flex-direction: row; align-items: center; }
.icon-btn, .nav-link, .btn, .chip, .opt {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.icon-btn {
  border: 1px solid rgba(231, 215, 161, .35);
  background: transparent;
  color: #FFFCF7;
  border-radius: 999px;
  padding: 0 1rem;
  cursor: pointer;
}
.icon-btn:hover, .icon-btn:focus-visible { background: rgba(231, 215, 161, .14); outline: none; }
.brand {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  color: #FFFCF7;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.28;
  padding: .35rem .45rem .9rem;
}
.brand small { font-family: var(--sans); color: var(--gold); letter-spacing: .08em; font-size: .72rem; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side-w);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 1.15rem .85rem 1rem;
  background: var(--side);
  color: #FFFCF7;
  border-right: 1px solid rgba(231, 215, 161, .16);
}
.side-nav { display: flex; flex-direction: column; gap: .35rem; }
.nav-link {
  border-radius: .9rem;
  padding: 0 .85rem;
  color: rgba(243, 238, 230, .86);
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.nav-link:hover { background: rgba(231, 215, 161, .1); color: var(--gold); }
.nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-link.is-active {
  background: rgba(231, 215, 161, .16);
  color: #FFFCF7;
  border-color: rgba(231, 215, 161, .28);
}
.side-foot {
  margin-top: auto;
  padding: .95rem 1rem;
  border-radius: 1.2rem;
  background-image: linear-gradient(145deg, var(--plum), var(--copper));
  color: #FFFCF7;
  font-size: .88rem;
}
.side-foot b { display: block; font-family: var(--serif); font-weight: 650; }
.mask {
  position: fixed;
  inset: 0;
  background: rgba(34, 28, 26, .46);
  z-index: 48;
}
.mask[hidden] { display: none; }
.mainwrap { margin-left: var(--side-w); min-height: 100vh; }
.wrap { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; }
.section { padding: 4.25rem 0; }
.section h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); max-width: 18em; }
.lead { max-width: 46rem; margin-top: .85rem; color: var(--muted); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 28, 26, .05);
  padding: 1.45rem 1.4rem 1.35rem;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(34, 28, 26, .1); }
.card h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.card p { color: var(--muted); }
.dossier { padding: 2.1rem 0 1.35rem; background: var(--bg); }
.dossier h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 16em; }
.scope-line {
  margin-top: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: .75rem;
  max-width: 46rem;
}
.band-alt { background: var(--bg-alt); }
.band-paper { background: var(--bg); }
.tool {
  background: var(--card);
  border: 1px solid rgba(34, 28, 26, .06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: .75rem 1rem;
  align-items: center;
  padding: .85rem 1.15rem;
  border-top: 1px solid var(--line);
}
.tool-row:first-child { border-top: 0; }
.tool-label { font-family: var(--serif); color: var(--olive); }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 .95rem;
  cursor: default;
  color: var(--ink);
}
.opt.is-on {
  background: var(--olive);
  color: #FFFCF7;
  border-color: var(--olive);
}
.opt:focus-visible, .btn:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.tool-note { padding: 0 1.15rem 1rem; color: var(--muted); font-size: .92rem; }
.entry-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.35rem; }
.entry {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: .4rem 1rem;
  align-items: start;
}
.entry:nth-child(even) { width: min(100%, 78%); margin-left: auto; }
.entry:nth-child(odd) { width: 100%; }
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--olive);
  font-size: 1.15rem;
  padding-top: .35rem;
}
.entry-top { display: flex; flex-wrap: wrap; gap: .45rem .6rem; align-items: center; margin-bottom: .35rem; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 .65rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: .78rem;
}
.meta-line { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--olive); font-size: .86rem; }
.entry-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.btn {
  justify-content: center;
  padding: 0 1.15rem;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-position var(--ease), filter var(--ease), transform var(--ease), background var(--ease), border-color var(--ease);
}
.btn-primary {
  color: #FFFCF7;
  background-image: linear-gradient(120deg, var(--plum) 0%, var(--copper) 52%, var(--plum) 100%);
  background-size: 180% 100%;
  background-position: 0% 50%;
}
.btn-primary:hover, .btn-primary:focus-visible { background-position: 100% 50%; filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--olive); color: var(--olive); }
.btn-ghost:hover { background: rgba(63, 79, 70, .08); }
.more-row {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  padding-top: .4rem;
}
.read-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.25rem;
  align-items: stretch;
}
.strip {
  border-radius: var(--radius);
  background: var(--side);
  color: #FFFCF7;
  min-height: 280px;
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .55rem;
  position: relative;
  overflow: hidden;
}
.strip::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  height: 42%;
  border: 1px solid rgba(231, 215, 161, .4);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, transparent 0 30%, rgba(231, 215, 161, .85) 30% 38%, transparent 38% 62%, rgba(243, 238, 230, .8) 62% 70%, transparent 70%);
}
.strip p, .strip strong { position: relative; z-index: 1; }
.strip strong { font-family: var(--serif); font-size: 1.25rem; }
.points { margin-top: 1rem; display: flex; flex-direction: column; }
.points li {
  list-style: none;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: .8rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.points li:first-child { border-top: 0; }
.points b { font-family: var(--mono); color: var(--olive); font-weight: 650; }
.badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.badge {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  padding: .42rem .85rem;
  max-width: 100%;
}
.badge b { font-family: var(--mono); font-size: 1.05rem; font-weight: 650; }
.badge em, .caliber { font-style: normal; color: var(--olive); font-size: .78rem; }
.news { margin-top: 1.1rem; display: flex; flex-direction: column; }
.news li {
  list-style: none;
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: .8rem 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.news time { font-family: var(--mono); color: var(--olive); font-variant-numeric: tabular-nums; }
.news a { color: var(--olive); border-bottom: 1px solid rgba(63, 79, 70, .35); }
.news a:hover { color: var(--plum); }
.boundary {
  border-radius: 2rem;
  padding: 1.4rem 1.3rem;
  color: #FFFCF7;
  background-image: linear-gradient(120deg, var(--plum) 0%, var(--copper) 100%);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.boundary p { color: rgba(255, 252, 247, .88); max-width: 40rem; margin-top: .45rem; }
.boundary .btn-primary { background-image: none; background: #FFFCF7; color: var(--plum); }
.boundary .btn-primary:hover { filter: brightness(1.05); }
.foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
}
.foot .wrap { display: flex; flex-direction: column; gap: .2rem; }
.foot .brand { color: var(--ink); font-size: 1.08rem; padding: 0 0 .6rem; }
.links { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--olive);
  border-bottom: 1px solid transparent;
}
.links a:hover { color: var(--plum); border-bottom-color: var(--olive); }
.copy { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
@media (max-width: 1023px) {
  .topbar { display: flex; }
  .sidebar {
    transform: translateX(-105%);
    transition: transform var(--ease);
    width: min(86vw, 320px);
    box-shadow: var(--shadow);
  }
  .sidebar.is-open { transform: translateX(0); }
  .mainwrap { margin-left: 0; padding-top: var(--top-h); }
}
@media (max-width: 768px) {
  .wrap { width: min(1120px, calc(100% - 1.5rem)); }
  .section { padding: 3rem 0; }
  .read-grid, .boundary, .tool-row, .news li { grid-template-columns: 1fr; display: grid; }
  .boundary { align-items: flex-start; }
  .entry:nth-child(even) { width: 100%; margin-left: 0; }
  .dossier { padding-top: 1.4rem; }
}
@media (max-width: 520px) {
  .entry { grid-template-columns: 3.2rem 1fr; }
  .tool-row { padding: .85rem; }
  .card { padding: 1.15rem 1rem; }
  .topbar .brand { font-size: .74rem; max-width: 68%; }
}
