/* roulang page: index */
:root {
  --paper: #F3EBDD;
  --paper-deep: #E9DFD0;
  --ink: #241C16;
  --lacquer: #8E2F2A;
  --lacquer-deep: #6E2420;
  --tea: #6F5344;
  --moss: #D9D3B8;
  --rose: #E7C8B8;
  --night: #2A211C;
  --line: #E2D5C3;
  --card: #F7F1E6;
  --shadow: 0 8px 24px rgba(36, 28, 22, .08);
  --radius-card: 6px;
  --radius-btn: 4px;
  --max: 1120px;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
h1 { font-size: clamp(1.85rem, 3vw, 2.55rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: .75rem; }
h3 { font-size: 1.08rem; margin-bottom: .45rem; }
p { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--lacquer); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--tea);
  outline-offset: 2px;
}
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(243, 235, 221, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-inner { height: var(--header-h); display: flex; align-items: center; gap: .75rem; }
.logo {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--ink);
}
.logo:hover { color: var(--lacquer); }
.nav-links { display: flex; align-items: center; gap: 1.05rem; margin-left: 1.25rem; flex: 1; min-width: 0; }
.nav-links a {
  font-size: .92rem;
  color: var(--tea);
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--lacquer); }
.nav-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: .08rem .48rem;
  border-radius: 4px;
  background: var(--rose);
  color: var(--ink);
  font-size: .75rem;
  line-height: 1.7;
  white-space: nowrap;
}
.badge-moss { background: var(--moss); }
.count-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  height: 32px;
  padding: 0 .55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--tea);
  font-size: .75rem;
  white-space: nowrap;
}
.count-chip strong, .remain {
  font-family: "Noto Sans Mono", "Sarasa Mono SC", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  font-size: .8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 .95rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  font-size: .92rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--lacquer); color: var(--ink); }
a.btn-primary, a.btn-primary:hover, button.btn-primary { color: var(--ink); }
.btn-primary:hover { background: var(--lacquer-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--tea); }
.btn-ghost:hover { background: var(--rose); transform: translateY(-1px); color: var(--ink); }
.menu-btn { display: none; min-height: 36px; padding: 0 .7rem; }
.drawer {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: .9rem 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.drawer.open { display: block; }
.drawer a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer .btn { width: 100%; margin-top: .8rem; }
.hero { padding: 1.6rem 0 2.4rem; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.4rem; align-items: start; }
.status-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.lead { color: var(--tea); font-size: 1.02rem; margin-bottom: .85rem; }
.icon-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.icon-cell {
  background: var(--card);
  border: 1px solid var(--tea);
  border-left: 3px solid var(--lacquer);
  border-radius: var(--radius-card);
  padding: .55rem .5rem .6rem;
}
.icon-mark {
  width: 28px;
  height: 28px;
  margin-bottom: .35rem;
  background: var(--moss);
  position: relative;
}
.icon-mark i { position: absolute; background: var(--lacquer); }
.icon-mark.m1 i { width: 14px; height: 18px; left: 7px; top: 5px; }
.icon-mark.m2 i { width: 18px; height: 4px; left: 5px; top: 8px; box-shadow: 0 6px 0 var(--lacquer), 0 12px 0 var(--tea); }
.icon-mark.m3 { background: var(--rose); }
.icon-mark.m3 i { width: 12px; height: 12px; border-radius: 50%; left: 8px; top: 8px; }
.icon-mark.m4 i { width: 16px; height: 3px; left: 6px; top: 7px; box-shadow: 0 5px 0 var(--tea), 0 10px 0 var(--lacquer), 0 15px 0 var(--tea); }
.icon-cell strong { display: block; font-size: .82rem; }
.icon-cell span { display: block; color: var(--tea); font-size: .75rem; line-height: 1.5; }
.note-panel {
  background: var(--card);
  border: 1px solid var(--tea);
  border-left: 3px solid var(--lacquer);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.05rem .95rem;
}
.panel-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.swatch { height: 132px; border-radius: 4px; position: relative; overflow: hidden; background: #E7D3C4; margin-bottom: .8rem; }
.swatch span { position: absolute; display: block; }
.swatch span:nth-child(1) { width: 42%; height: 68%; left: 10%; top: 16%; background: var(--lacquer); }
.swatch span:nth-child(2) { width: 26%; height: 36%; right: 12%; bottom: 14%; background: var(--tea); }
.swatch span:nth-child(3) { width: 18%; height: 18%; right: 16%; top: 16%; background: var(--rose); border-radius: 50%; }
.panel-line { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.panel-line span { color: var(--tea); }
.panel-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.section { padding: 2.8rem 0; }
.section-b { background: var(--paper-deep); }
.section-tight { padding: 1rem 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-head { max-width: 46rem; margin-bottom: 1.2rem; }
.block-head p { color: var(--ink); }
.matrix { display: grid; grid-template-columns: 1.45fr .95fr .82fr; grid-template-rows: auto auto; gap: .75rem; }
.big-card { grid-row: 1 / span 2; min-height: 100%; display: flex; flex-direction: column; }
.vindex { grid-row: 1 / span 2; }
.card {
  background: var(--card);
  border: 1px solid var(--tea);
  border-left: 3px solid var(--lacquer);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1rem .95rem 1rem .9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(36, 28, 22, .08); color: var(--ink); }
.card p { color: var(--tea); font-size: .94rem; }
.vindex ol { list-style: none; margin: 0; padding: 0; }
.vindex li { border-top: 1px solid var(--line); }
.vindex a { display: flex; justify-content: space-between; gap: .5rem; padding: .72rem 0; }
.vindex a em { font-style: normal; color: var(--tea); font-size: .8rem; }
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--tea);
  border-left: 3px solid var(--lacquer);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.stat-bar article { padding: 1rem 1.05rem 1.05rem; }
.stat-bar article + article { border-left: 1px solid var(--line); }
.stat-bar b {
  display: block;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: 1.7rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-bar span { color: var(--tea); font-size: .88rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.step { position: relative; }
.step i {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-style: normal;
  color: var(--lacquer);
  font-size: 1.2rem;
}
.wall { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: minmax(120px, auto); gap: .75rem; }
.wall-main { grid-row: 1 / span 2; display: flex; flex-direction: column; }
.cover { height: 120px; border-radius: 4px; position: relative; overflow: hidden; margin-bottom: .7rem; }
.wall-main .cover { height: 230px; }
.cover span { position: absolute; display: block; }
.cover-a { background: #E7D3C4; }
.cover-a span:nth-child(1) { width: 46%; height: 72%; left: 8%; top: 14%; background: var(--lacquer); }
.cover-a span:nth-child(2) { width: 24%; height: 34%; right: 10%; bottom: 12%; background: var(--tea); }
.cover-a span:nth-child(3) { width: 16%; height: 16%; right: 14%; top: 14%; border-radius: 50%; background: var(--rose); }
.cover-b { background: var(--moss); }
.cover-b span:nth-child(1) { width: 70%; height: 8px; left: 12%; top: 28%; background: var(--tea); }
.cover-b span:nth-child(2) { width: 48%; height: 8px; left: 12%; top: 48%; background: var(--lacquer); }
.cover-b span:nth-child(3) { width: 30%; height: 36%; right: 10%; bottom: 12%; background: var(--rose); }
.cover-c { background: #EFE4D4; }
.cover-c span:nth-child(1) { width: 38%; height: 78%; left: 0; top: 0; background: var(--tea); }
.cover-c span:nth-child(2) { width: 22%; height: 22%; right: 16%; top: 20%; background: var(--lacquer); }
.cover-c span:nth-child(3) { width: 40%; height: 10px; right: 10%; bottom: 22%; background: var(--moss); }
.cover-d { background: var(--rose); }
.cover-d span:nth-child(1) { width: 54%; height: 54%; left: 18%; top: 16%; background: var(--card); border: 8px solid var(--lacquer); }
.cover-d span:nth-child(2) { width: 20%; height: 20%; right: 8%; bottom: 10%; background: var(--tea); }
.cover-d span:nth-child(3) { display: none; }
.cover-e { background: #E5D7C8; }
.cover-e span:nth-child(1) { width: 18%; height: 80%; left: 14%; top: 10%; background: var(--lacquer); }
.cover-e span:nth-child(2) { width: 18%; height: 58%; left: 40%; bottom: 10%; background: var(--tea); }
.cover-e span:nth-child(3) { width: 18%; height: 40%; right: 14%; bottom: 10%; background: var(--moss); }
.tag-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem; margin-bottom: .9rem; }
.tag-row a {
  flex: 0 0 auto;
  padding: .35rem .7rem;
  background: var(--moss);
  border-radius: 4px;
  color: var(--ink);
  font-size: .9rem;
}
.tag-row a:hover { background: var(--rose); color: var(--ink); }
.scene-list { border-top: 1px solid var(--line); }
.scene-list article {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.scene-list h3 { margin: 0; font-size: 1rem; }
.scene-list p { margin: 0; color: var(--tea); }
.table-wrap { overflow-x: auto; border: 1px solid var(--tea); border-left: 3px solid var(--lacquer); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow); }
table.idx { width: 100%; border-collapse: collapse; min-width: 640px; }
table.idx th, table.idx td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.idx th { font-weight: 600; color: var(--tea); font-size: .86rem; background: #F3EBDD; }
table.idx tr:last-child td { border-bottom: 0; }
table.idx tbody tr:hover td { background: rgba(231, 200, 184, .35); }
.news-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.news-item time { color: var(--tea); font-variant-numeric: tabular-nums; }
.news-item h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.news-item p { margin: 0; color: var(--tea); font-size: .94rem; }
.more-row { display: flex; justify-content: flex-end; padding-top: .9rem; }
.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
  align-items: center;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  filter: grayscale(1);
  opacity: .72;
}
.partner-row span {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  color: var(--tea);
  letter-spacing: .12em;
}
.serial-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; }
.rail a {
  display: flex;
  justify-content: space-between;
  padding: .62rem 0;
  border-bottom: 1px solid var(--line);
}
.serial-entry { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.serial-entry h3 { margin-bottom: .2rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: .85rem 0;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "展"; color: var(--tea); font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: .82rem; }
.qa[open] summary::after { content: "收"; }
.qa p { color: var(--ink); padding-bottom: .85rem; }
.assure-row { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: .75rem; align-items: center; }
.assure-row strong { font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif; }
.assure-item { border-left: 3px solid var(--lacquer); padding-left: .7rem; }
.assure-item span { display: block; color: var(--tea); font-size: .88rem; }
.h-scroll { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
.h-card { min-width: 250px; scroll-snap-align: start; }
.h-card .cover { height: 110px; }
.form-card {
  background: var(--card);
  border: 1px solid var(--tea);
  border-left: 3px solid var(--lacquer);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem .8rem; }
.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .3rem; color: var(--tea); font-size: .88rem; }
input, textarea {
  width: 100%;
  background: #FBF7F0;
  border: 1px solid var(--tea);
  border-radius: var(--radius-btn);
  padding: .55rem .7rem;
  line-height: 1.6;
}
textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.form-state { min-height: 1.6em; color: var(--lacquer); }
.site-footer { background: var(--night); color: var(--paper); padding: 1.6rem 0 1.3rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--rose); }
.footer-row { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; justify-content: space-between; }
.footer-name { font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif; font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.copyright { margin-top: .8rem; color: rgba(243, 235, 221, .72); font-size: .78rem; }
@media (max-width: 1024px) {
  .hero-grid, .matrix, .wall, .serial-grid, .assure-row { grid-template-columns: 1fr 1fr; }
  .big-card, .vindex, .wall-main { grid-row: auto; grid-column: auto; }
  .vindex { grid-column: 1 / -1; }
  .wall-main { grid-column: 1 / -1; }
  .assure-row { grid-template-columns: 1fr; }
  .nav-links { gap: .65rem; }
  .nav-links a { font-size: .84rem; }
}
@media (max-width: 768px) {
  .nav-links, .count-chip, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .steps, .stat-bar { grid-template-columns: 1fr 1fr; }
  .stat-bar article:nth-child(3), .stat-bar article:nth-child(4) { border-top: 1px solid var(--line); }
  .stat-bar article:nth-child(odd) { border-left: 0; }
  .stat-bar article:nth-child(even) { border-left: 1px solid var(--line); }
  table.idx { min-width: 0; }
  table.idx thead { display: none; }
  table.idx, table.idx tbody, table.idx tr, table.idx td { display: block; width: 100%; }
  table.idx tr { border-bottom: 1px solid var(--line); padding: .35rem 0 .5rem; }
  table.idx td { border: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .28rem .9rem; }
  table.idx td::before { content: attr(data-label); color: var(--tea); }
  .scene-list article, .news-item { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .hero-grid, .matrix, .wall, .steps, .form-grid { grid-template-columns: 1fr; }
  .icon-matrix { grid-template-columns: 1fr 1fr; }
  .full { grid-column: auto; }
}
@media (max-width: 520px) {
  .logo { font-size: 12px; }
  .stat-bar, .assure-row { grid-template-columns: 1fr; }
  .stat-bar article + article { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 2.2rem 0; }
  h1 { font-size: 1.7rem; }
}

/* roulang page: category2 */
:root {
  --paper: #F3EBDD;
  --paper-deep: #E9DFD0;
  --ink: #241C16;
  --lacquer: #8E2F2A;
  --lacquer-deep: #6E2420;
  --tea: #6F5344;
  --moss: #D9D3B8;
  --rose: #E7C8B8;
  --night: #2A211C;
  --line: #E2D5C3;
  --card: #F7F1E6;
  --shadow: 0 8px 24px rgba(36, 28, 22, .08);
  --radius-card: 6px;
  --radius-btn: 4px;
  --max: 1120px;
  --header-h: 64px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--lacquer); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--tea);
  outline-offset: 2px;
}
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
h1, h2, h3, .logo, .footer-name, .entry-name {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
}
h1 { font-size: 1.9rem; line-height: 1.35; margin: 0 0 .4rem; font-weight: 700; }
h2 { font-size: 1.35rem; line-height: 1.45; margin: 0 0 .8rem; font-weight: 700; }
h3 { font-size: 1.05rem; line-height: 1.5; margin: 0 0 .35rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(243, 235, 221, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-inner { height: var(--header-h); display: flex; align-items: center; gap: .75rem; }
.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--ink);
}
.logo:hover { color: var(--lacquer); }
.nav-links { display: flex; align-items: center; gap: 1.05rem; margin-left: 1.25rem; flex: 1; min-width: 0; }
.nav-links a {
  font-size: .92rem;
  color: var(--tea);
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--lacquer); }
.nav-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: .08rem .48rem;
  border-radius: 4px;
  background: var(--rose);
  color: var(--ink);
  font-size: .75rem;
  line-height: 1.7;
  white-space: nowrap;
}
.badge-moss { background: var(--moss); }
.count-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  height: 32px;
  padding: 0 .55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--tea);
  font-size: .75rem;
  white-space: nowrap;
}
.count-chip strong, .remain {
  font-family: "Noto Sans Mono", "Sarasa Mono SC", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  font-size: .8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 .95rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  font-size: .92rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--lacquer); color: var(--ink); font-weight: 650; }
a.btn-primary, a.btn-primary:hover, button.btn-primary { color: var(--ink); }
.btn-primary:hover { background: var(--lacquer-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--tea); }
.btn-ghost:hover { background: var(--rose); transform: translateY(-1px); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.menu-btn { display: none; min-height: 36px; padding: 0 .7rem; }
.drawer {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: .9rem 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.drawer.open { display: block; }
.drawer a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer .btn { width: 100%; margin-top: .8rem; }
.section { padding: 2.6rem 0; }
.section-b { background: var(--paper-deep); }
.section-tight { padding: 1rem 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card {
  background: var(--card);
  border: 1px solid var(--tea);
  border-left: 3px solid var(--lacquer);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1rem .95rem 1rem .9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(36, 28, 22, .08); color: var(--ink); }
.card p, .lead, .meta, .term-card p, .cont-item p { color: var(--tea); }
.narrow-head { padding: 1.15rem 0 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.brand-kicker { margin: 0 0 .15rem; color: var(--lacquer); font-size: .82rem; letter-spacing: .04em; }
.crumb { margin: 0 0 .35rem; color: var(--tea); font-size: .86rem; }
.crumb a { color: var(--tea); }
.lead { font-size: 1rem; margin: 0; max-width: 38rem; }
.table-wrap {
  background: var(--card);
  border: 1px solid var(--tea);
  border-left: 3px solid var(--lacquer);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.idx { width: 100%; border-collapse: collapse; }
.idx th {
  text-align: left;
  font-weight: 650;
  font-size: .86rem;
  color: var(--tea);
  padding: .72rem .8rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.idx td {
  padding: .78rem .8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: .95rem;
}
.idx tbody tr:last-child td { border-bottom: 0; }
.idx tbody tr:hover td { background: rgba(231, 200, 184, .35); }
.entry-cell { display: flex; align-items: center; gap: .7rem; }
.entry-name { font-weight: 700; color: var(--ink); }
.swatch { width: 44px; height: 32px; border-radius: 4px; position: relative; overflow: hidden; flex: 0 0 auto; background: #E7D3C4; }
.swatch i { position: absolute; display: block; }
.s1 i:nth-child(1) { width: 46%; height: 70%; left: 8%; top: 15%; background: var(--lacquer); }
.s1 i:nth-child(2) { width: 22%; height: 28%; right: 10%; bottom: 12%; background: var(--tea); }
.s2 i:nth-child(1) { width: 18%; height: 100%; left: 0; background: var(--tea); }
.s2 i:nth-child(2) { width: 34%; height: 34%; right: 12%; top: 18%; border-radius: 50%; background: var(--rose); }
.s3 i:nth-child(1) { width: 70%; height: 8px; left: 8%; top: 38%; background: var(--lacquer); }
.s3 i:nth-child(2) { width: 18px; height: 18px; right: 10%; bottom: 6px; background: var(--moss); }
.s4 i:nth-child(1) { width: 50%; height: 100%; right: 0; background: var(--tea); }
.s4 i:nth-child(2) { width: 14px; height: 14px; left: 8px; top: 8px; background: var(--rose); }
.filter-block { display: grid; gap: .85rem; }
.filter-line { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .5rem; }
.filter-label { color: var(--tea); font-size: .86rem; min-width: 2.5rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 4px;
  min-height: 32px;
  padding: 0 .7rem;
  cursor: pointer;
  font-size: .86rem;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.chip:hover { transform: translateY(-1px); background: var(--moss); }
.chip.chip-on { background: var(--rose); border-color: var(--tea); }
.cont-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cont-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.cont-item h3 { margin: 0; font-size: 1.05rem; }
.cont-item p { margin: .15rem 0 0; font-size: .9rem; }
.more-row { margin-top: 1rem; }
.news-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.news-item time { color: var(--tea); font-variant-numeric: tabular-nums; }
.news-item a { font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif; font-weight: 700; }
.term-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.term-card h3 { display: inline-block; background: var(--moss); padding: 0 .4rem; border-radius: 4px; }
.term-card p { margin: .55rem 0 0; font-size: .94rem; }
.boundary-row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; justify-content: space-between; }
.b-item { color: var(--ink); font-size: .92rem; }
.b-item span { display: inline-block; width: .45rem; height: .45rem; margin-right: .4rem; background: var(--lacquer); vertical-align: middle; }
.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.empty-line { margin: .8rem 0 0; color: var(--tea); }
.is-hidden { display: none !important; }
.site-footer { background: var(--night); color: var(--paper); padding: 1.6rem 0 1.4rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--rose); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-name { font-size: 1.05rem; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.copyright { margin: .8rem 0 0; color: #D9D3B8; font-size: .78rem; }
@media (min-width: 640px) {
  .term-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .term-grid { grid-template-columns: 1.15fr .85fr 1fr .9fr; }
  h1 { font-size: 2rem; }
}
@media (max-width: 767px) {
  .nav-links, .count-chip { display: none; }
  .menu-btn { display: inline-flex; }
  .head-row, .cta-panel { flex-direction: column; align-items: flex-start; }
  .idx thead { display: none; }
  .idx, .idx tbody, .idx tr, .idx td { display: block; width: 100%; }
  .idx tr {
    margin: .75rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--lacquer);
    border-radius: 6px;
    background: var(--paper);
  }
  .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .idx td {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    border-bottom: 1px solid var(--line);
    padding: .55rem .75rem;
  }
  .idx td:last-child { border-bottom: 0; }
  .idx td::before {
    content: attr(data-th);
    color: var(--tea);
    flex: 0 0 4.2rem;
  }
  .idx tbody tr:hover td { background: transparent; }
  .cont-item, .news-item { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  .logo { font-size: 13px; }
  .container { width: min(var(--max), calc(100% - 1.2rem)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip, .card { transition: none; }
}

/* roulang page: category1 */
:root {
 --paper: #F3EBDD;
 --paper-deep: #E9DFD0;
 --ink: #241C16;
 --lacquer: #8E2F2A;
 --lacquer-deep: #6E2420;
 --tea: #6F5344;
 --moss: #D9D3B8;
 --rose: #E7C8B8;
 --night: #2A211C;
 --line: #E2D5C3;
 --card: #F7F1E6;
 --shadow: 0 8px 24px rgba(36, 28, 22, .08);
 --radius-card: 6px;
 --radius-btn: 4px;
 --max: 1120px;
 --header-h: 64px;
}
/* roulang page: category1 */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
 margin: 0;
 background: var(--paper);
 color: var(--ink);
 font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
 font-size: 16px;
 line-height: 1.8;
 text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { background: transparent; border: 0; padding: 0; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--lacquer); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
 outline: 2px solid var(--tea);
 outline-offset: 2px;
}
::selection { background: var(--rose); color: var(--ink); }
h1, h2, h3 {
 font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
 font-weight: 700;
 line-height: 1.35;
 color: var(--ink);
 margin: 0 0 .75rem;
}
h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); max-width: 16em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.08rem; margin-bottom: .35rem; }
p { margin: 0 0 .75rem; }
.container {
 width: min(var(--max), calc(100% - 2rem)) !important;
 max-width: var(--max) !important;
 margin-inline: auto !important;
 padding-left: 0 !important;
 padding-right: 0 !important;
}
.site-header {
 position: sticky;
 top: 0;
 z-index: 40;
 height: var(--header-h);
 background: rgba(243, 235, 221, .96);
 border-bottom: 1px solid var(--line);
 backdrop-filter: blur(8px);
}
.nav-inner { height: var(--header-h); display: flex; align-items: center; gap: .75rem; }
.logo {
 font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
 font-size: 15px;
 font-weight: 700;
 letter-spacing: .01em;
 white-space: nowrap;
 color: var(--ink);
 max-width: 46vw;
 overflow: hidden;
 text-overflow: ellipsis;
}
.logo:hover { color: var(--lacquer); }
.nav-links { display: flex; align-items: center; gap: 1.05rem; margin-left: 1.25rem; flex: 1; min-width: 0; }
.nav-links a {
 font-size: .92rem;
 color: var(--tea);
 padding: .2rem 0;
 border-bottom: 2px solid transparent;
 white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--lacquer); }
.nav-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.badge {
 display: inline-flex;
 align-items: center;
 padding: .08rem .48rem;
 border-radius: 4px;
 background: var(--rose);
 color: var(--ink);
 font-size: .75rem;
 line-height: 1.7;
 white-space: nowrap;
}
.badge-moss { background: var(--moss); }
.count-chip {
 display: inline-flex;
 align-items: center;
 gap: .35rem;
 height: 32px;
 padding: 0 .55rem;
 border: 1px solid var(--line);
 border-radius: 4px;
 background: var(--card);
 color: var(--tea);
 font-size: .75rem;
 white-space: nowrap;
}
.count-chip strong, .remain, .num {
 font-family: "Noto Sans Mono", "Sarasa Mono SC", monospace;
 font-variant-numeric: tabular-nums;
 font-weight: 600;
 color: var(--ink);
 font-size: .8rem;
}
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 40px;
 padding: 0 .95rem;
 border-radius: var(--radius-btn);
 border: 1px solid transparent;
 cursor: pointer;
 line-height: 1.2;
 font-size: .92rem;
 transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--lacquer); color: var(--ink); }
a.btn-primary, a.btn-primary:hover, button.btn-primary { color: var(--ink); }
.btn-primary:hover { background: var(--lacquer-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--tea); }
.btn-ghost:hover { background: var(--rose); transform: translateY(-1px); color: var(--ink); }
.btn:disabled { opacity: .65; cursor: default; transform: none; }
.menu-btn { display: none; min-height: 36px; padding: 0 .7rem; }
.drawer {
 display: none;
 position: absolute;
 left: 0;
 right: 0;
 top: var(--header-h);
 background: var(--paper);
 border-bottom: 1px solid var(--line);
 padding: .9rem 1rem 1.1rem;
 box-shadow: var(--shadow);
}
.drawer.open { display: block; }
.drawer a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer a.active { color: var(--lacquer); }
.drawer .btn { width: 100%; margin-top: .8rem; }
.section { padding: 2.8rem 0; }
.section-b { background: var(--paper-deep); }
.section-tight { padding: 1.15rem 0; background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mast { padding-top: 1.7rem; padding-bottom: 1.8rem; background: var(--paper); }
.mast-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.crumb { color: var(--tea); font-size: .88rem; margin-bottom: .45rem; }
.crumb a { color: var(--tea); border-bottom: 1px solid var(--line); }
.crumb span { margin: 0 .2rem; }
.lead { color: var(--tea); font-size: 1.02rem; margin: 0; max-width: 38em; }
.mast-panel { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.mast-panel p { margin: 0; color: var(--tea); }
.panel-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.count-line strong { font-variant-numeric: tabular-nums; }
.card {
 background: var(--card);
 border: 1px solid var(--tea);
 border-left: 3px solid var(--lacquer);
 border-radius: var(--radius-card);
 box-shadow: var(--shadow);
 padding: 1rem .95rem 1rem .9rem;
}
.filter-title { font-size: 1.05rem; margin: 0 0 .7rem; }
.filter-row { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; }
.filter-row + .filter-row { border-top: 1px solid var(--line); }
.filter-label { flex: 0 0 4.5rem; color: var(--tea); font-size: .9rem; }
.chips { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .15rem; }
.chip {
 flex: 0 0 auto;
 min-height: 32px;
 padding: 0 .7rem;
 border-radius: 4px;
 border: 1px solid var(--line);
 background: var(--card);
 color: var(--ink);
 cursor: pointer;
 font-size: .88rem;
 transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.chip:hover { background: var(--rose); transform: translateY(-1px); }
.chip.is-on { background: var(--lacquer); border-color: var(--lacquer); color: var(--ink); }
.list-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.list-head p { margin: 0; color: var(--tea); }
.note-card {
 display: grid;
 grid-template-columns: 1fr 148px;
 gap: 1rem;
 align-items: stretch;
 background: var(--card);
 border: 1px solid var(--tea);
 border-left: 3px solid var(--lacquer);
 border-radius: var(--radius-card);
 box-shadow: var(--shadow);
 padding: .95rem;
 margin-bottom: .8rem;
 transition: transform .2s ease, box-shadow .2s ease;
}
.note-card:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(36, 28, 22, .08); }
.note-card h3 a { border-bottom: 1px solid transparent; }
.note-card h3 a:hover { border-bottom-color: var(--lacquer); }
.note-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; color: var(--tea); font-size: .85rem; font-variant-numeric: tabular-nums; }
.note-copy p { margin: 0; color: var(--tea); font-size: .94rem; }
.cover { position: relative; overflow: hidden; border-radius: 4px; min-height: 112px; height: 100%; }
.cover span { position: absolute; display: block; }
.cover-a { background: #E7D3C4; }
.cover-a span:nth-child(1) { width: 46%; height: 72%; left: 8%; top: 14%; background: var(--lacquer); }
.cover-a span:nth-child(2) { width: 24%; height: 34%; right: 10%; bottom: 12%; background: var(--tea); }
.cover-a span:nth-child(3) { width: 16%; height: 16%; right: 14%; top: 14%; border-radius: 50%; background: var(--rose); }
.cover-b { background: #E7C8B8; }
.cover-b span:nth-child(1) { width: 18%; height: 100%; left: 0; top: 0; background: var(--night); }
.cover-b span:nth-child(2) { width: 42%; height: 28%; right: 8%; top: 18%; background: var(--lacquer); }
.cover-b span:nth-child(3) { width: 22%; height: 22%; right: 12%; bottom: 14%; background: var(--moss); }
.cover-c { background: #D9D3B8; }
.cover-c span:nth-child(1) { width: 70%; height: 16%; left: 10%; top: 22%; background: var(--tea); }
.cover-c span:nth-child(2) { width: 34%; height: 46%; left: 12%; bottom: 12%; background: var(--lacquer); }
.cover-c span:nth-child(3) { width: 18%; height: 34%; right: 12%; bottom: 16%; background: var(--night); }
.cover-d { background: #E2D5C3; }
.cover-d span:nth-child(1) { width: 28%; height: 78%; left: 14%; top: 11%; background: var(--lacquer); }
.cover-d span:nth-child(2) { width: 18%; height: 78%; left: 48%; top: 11%; background: var(--tea); }
.cover-d span:nth-child(3) { width: 14%; height: 14%; right: 10%; top: 14%; border-radius: 50%; background: var(--rose); }
.js .is-extra { display: none; }
.js .is-extra.show { display: grid; }
.note-card.is-hidden { display: none !important; }
.empty-note { color: var(--tea); margin: .4rem 0 0; }
.more-sec { display: none; padding-top: 0; padding-bottom: 2.2rem; background: var(--paper); }
.js .more-sec { display: block; }
.more-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.more-row p { margin: 0; color: var(--tea); }
.news-list { border-top: 1px solid var(--line); }
.news-item {
 display: grid;
 grid-template-columns: 92px 1fr auto;
 gap: .75rem;
 align-items: center;
 padding: .95rem 0;
 border-bottom: 1px solid var(--line);
 color: var(--ink);
 transition: background .2s ease;
}
.news-item time { color: var(--tea); font-variant-numeric: tabular-nums; }
.news-item strong { display: block; font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif; font-weight: 700; }
.news-item em { font-style: normal; color: var(--tea); font-size: .88rem; }
.news-item:hover { background: rgba(231, 200, 184, .35); color: var(--ink); }
.rail-list { border-top: 1px solid var(--line); }
.rail-list a {
 display: grid;
 grid-template-columns: 3rem minmax(0, 1fr) auto;
 gap: .75rem;
 align-items: center;
 padding: .85rem 0;
 border-bottom: 1px solid var(--line);
 color: var(--ink);
}
.rail-list a:hover { color: var(--lacquer); }
.rail-list .num { color: var(--lacquer); }
.rail-list em { font-style: normal; color: var(--tea); font-size: .86rem; white-space: nowrap; }
.faq-list { display: grid; gap: .7rem; }
.faq {
 background: var(--card);
 border: 1px solid var(--tea);
 border-left: 3px solid var(--lacquer);
 border-radius: var(--radius-card);
 box-shadow: var(--shadow);
 padding: .15rem .95rem .15rem .85rem;
}
.faq summary {
 list-style: none;
 cursor: pointer;
 min-height: 48px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: .75rem;
 font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
 font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .mark { color: var(--lacquer); font-family: "Noto Sans Mono", "Sarasa Mono SC", monospace; }
.faq .mark::before { content: "＋"; }
.faq[open] .mark::before { content: "－"; }
.faq p { color: var(--tea); margin: 0 0 .85rem; }
.cta-band {
 display: flex;
 justify-content: space-between;
 gap: 1rem;
 align-items: center;
 border: 1px solid var(--tea);
 border-left: 3px solid var(--lacquer);
 border-radius: var(--radius-card);
 background: var(--card);
 box-shadow: var(--shadow);
 padding: 1.1rem 1rem;
}
.cta-band h2 { margin-bottom: .25rem; }
.cta-band p { margin: 0; color: var(--tea); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.site-footer { background: var(--night); color: var(--paper); padding: 1.6rem 0 1.4rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--rose); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: .8rem; border-bottom: 1px solid rgba(243, 235, 221, .2); }
.footer-name { font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: .9rem; }
.copyright { margin: .75rem 0 0; color: var(--rose); font-size: .8rem; }
@media (min-width: 640px) {
 .filter-board { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
 .filter-board .filter-row:last-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
 .logo { max-width: none; }
 .menu-btn { display: none !important; }
}
@media (max-width: 767px) {
 .nav-links { display: none; }
 .nav-tools .count-chip, .nav-tools .btn-primary { display: none; }
 .menu-btn { display: inline-flex; }
 .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) {
 .mast-grid { grid-template-columns: 1.28fr .72fr; gap: 1.4rem; }
 .filter-board { grid-template-columns: 1fr; }
 .list-layout { display: grid; grid-template-columns: 1fr 220px; gap: 1.2rem; align-items: start; }
 .side-note { position: sticky; top: 80px; }
}
@media (max-width: 639px) {
 .note-card { grid-template-columns: 1fr; }
 .cover { height: 120px; }
 .news-item { grid-template-columns: 72px 1fr; }
 .news-item .badge { grid-column: 2; justify-self: start; }
 .rail-list a { grid-template-columns: 2.4rem minmax(0, 1fr); }
 .rail-list em { grid-column: 2; white-space: normal; }
 .more-row, .cta-band, .list-head { flex-direction: column; align-items: flex-start; }
 .filter-row { align-items: flex-start; flex-direction: column; gap: .35rem; }
}
@media (max-width: 520px) {
 .container { width: min(var(--max), calc(100% - 1.25rem)) !important; }
 h1 { font-size: 1.5rem; }
 .logo { font-size: 13px; max-width: 52vw; }
 .section { padding: 2.1rem 0; }
}
