/* Shared public layout — neutral typography on warm paper */
@font-face {
  font-family: "Heading Ink";
  src: local("STKaiti"), local("KaiTi"), url('/assets/heading-ink.ttf?v=20261118-cloud-type') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Menu WenKai";
  src: url('/assets/heading-ink.ttf?v=20261118-cloud-type') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #F8F6EF;
  --paper-2: #EFEDE4;
  --card: #FFFFFF;
  --heading: #222222;
  --ink: #444444;
  --ink-2: #666666;
  --muted: #888888;
  --surface-muted: #F5F5F3;
  --line: #E3D9C6;
  --line-soft: #EFE8DA;
  --brand: #2F5D50;
  --brand-dk: #1D3F35;
  --brand-lt: #E9F1ED;
  --gold: #B68B36;
  --gold-br: #B68B36;
  --gold-lt: #F4E9CF;
  --radius: 10px;
  --width: 1020px;
  --shadow-sm: 0 1px 2px rgba(96, 76, 44, .05), 0 10px 22px -18px rgba(96, 76, 44, .32);
  --control-bg: linear-gradient(180deg, #FFFEFB, #F9F7F1);
  --control-shadow: 0 1px 2px rgba(82, 70, 50, .07);
  --control-pressed-shadow: inset 0 1px 2px rgba(82, 70, 50, .07);
  --tag-bg: #F8F7F3;
  --tag-border: #ECE9E1;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", SimSun, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(45deg, rgb(114 104 91 / 3%) 0 1px, transparent 1px 5px);
  position: relative;
  isolation: isolate;
  color: var(--ink);
  font: 14px/1.65 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media print, (forced-colors: active) {
  body { background-image: none; }
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, h4, h5, h6, strong, b { color: var(--heading); }
a { color: inherit; text-decoration: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
a:hover { color: var(--heading); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
svg { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; vertical-align: middle; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #8A9BA7;
  outline-offset: 2px;
}
::selection { background: var(--gold-lt); color: var(--heading); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: -9999px; padding: 8px 14px; background: var(--brand); color: #fff; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 12px; }
.page-body { flex: 1; min-width: 0; }
.wrap, .navbar-wrap, .footer-inner { width: calc(100% - 40px); max-width: var(--width); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(248 246 239 / 94%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 7px 18px -17px rgba(56, 62, 54, .42);
}
.site-header::after {
  content: "";
  position: absolute;
  left: max(20px, calc((100% - var(--width)) / 2));
  right: max(20px, calc((100% - var(--width)) / 2));
  bottom: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(190, 176, 151, .7) 8%, rgba(190, 176, 151, .7) 92%, transparent);
  pointer-events: none;
}
.navbar-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 58px;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  container: nav-links / inline-size;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 20px/1.4 var(--serif);
  letter-spacing: 1px;
  color: var(--heading);
  flex-shrink: 0;
  white-space: nowrap;
}
.navbar-brand img { display: block; flex-shrink: 0; }
.nav-menu a {
  position: relative;
  display: block;
  padding: 10px 4px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav-menu a:hover { color: var(--heading); background: rgb(190 176 151 / 10%); }
.nav-menu a[aria-current] { color: var(--heading); font-weight: 600; }
.nav-menu a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 25% 0;
  height: 2px;
  background: #b8a587;
  border-radius: 2px;
}
.nav-menu a:not(.nav-board):nth-child(n+8) { display: none; }
@container nav-links (width < 676px) {
  .nav-menu a:not(.nav-board):nth-child(n+7) { display: none; }
}
@container nav-links (width < 606px) {
  .nav-menu a:not(.nav-board):nth-child(n+6) { display: none; }
}
@container nav-links (width < 536px) {
  .nav-menu a:not(.nav-board):nth-child(n+5) { display: none; }
}
@container nav-links (width < 466px) {
  .nav-menu a:not(.nav-board):nth-child(n+4) { display: none; }
}
@container nav-links (width < 396px) {
  .nav-menu a:not(.nav-board):nth-child(n+3) { display: none; }
}
@container nav-links (width < 326px) {
  .nav-menu a:not(.nav-board):nth-child(n+2) { display: none; }
}
.nav-tools { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; margin-left: auto; flex-shrink: 0; }
.nav-fav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 5px 11px;
  background: var(--control-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.nav-fav svg { width: 13px; height: 13px; color: var(--muted); }
.nav-fav:hover { border-color: var(--gold); color: var(--heading); }
.nav-cat-btn {
  display: none;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--heading);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.nav-cat-btn svg { width: 14px; height: 14px; }
.nav-fav, .nav-cat-btn { box-shadow: var(--control-shadow); transition: color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.nav-fav:active, .nav-cat-btn:active { background: #F4F2EB; box-shadow: var(--control-pressed-shadow); }

/* Footer */
.footer {
  position: relative;
  margin-top: 48px;
  padding: 30px 0 26px;
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.footer::before {
  content: none;
}
.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 34px;
  font-size: 16px;
  line-height: 1.5;
}
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--brand-dk);
  white-space: nowrap;
}
.footer nav a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-decoration-color: #8b907b;
  text-underline-offset: 4px;
}
.footer-copy { font-size: 13px; margin: 12px 0 0; color: var(--ink-2); }
.footer-note { max-width: 700px; margin: 8px auto 0; color: var(--ink-2); font-size: 13px; line-height: 1.8; }

/* Shared buttons & breadcrumbs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 20px;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--brand-dk);
  border-color: var(--brand-dk);
  color: #fff;
  box-shadow: 0 4px 10px -7px rgba(41, 56, 66, .5);
}
.btn-primary:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; }
.btn-ghost { border-color: var(--line); background: #FFFEFA; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--heading); }

.text-link { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.text-link > span { margin-left: 4px; }

.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; padding: 18px 0 14px; font-size: 13.5px; color: var(--muted); }
.crumb-sep { color: var(--muted); }
.crumb [aria-current] { color: var(--ink-2); overflow-wrap: anywhere; }

/* Xieyi brushwork carries real HTML titles within its central negative space. */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px) minmax(0, 1fr);
  align-items: center;
  position: relative;
  min-height: 96px;
  margin: 0 0 12px;
}
.section-composition {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 96px;
  isolation: isolate;
}
.section-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.section-heading h2 {
  position: absolute;
  left: 57%;
  top: 41%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding-left: .12em;
  font: 400 29px/1.2 "Heading Ink", "STKaiti", "KaiTi", var(--serif);
  letter-spacing: .12em;
  color: var(--heading);
  white-space: nowrap;
  text-shadow: none;
}
.section-rule {
  grid-row: 1;
  height: 1px;
  min-width: 0;
  align-self: center;
  opacity: .35;
}
.section-rule-l { grid-column: 1; background: linear-gradient(90deg, transparent, rgba(89,111,128,.2)); }
.section-rule-r { grid-column: 3; margin-inline-end: 8ch; background: linear-gradient(90deg, rgba(89,111,128,.2), transparent); }
.section-heading > .text-link {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  position: relative;
  padding: 8px 0 8px 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}
.section-heading > .text-link > span { display: inline-block; margin-left: 4px; color: var(--muted); transition: transform .16s ease; }
.section-heading > .text-link:hover { color: var(--heading); }
.section-heading > .text-link:hover > span { transform: translateX(3px); }

/* Panels & tables */
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 13px;
  margin: 0 0 16px;
  overflow: hidden;
  scroll-margin-top: 72px;
  box-shadow: var(--shadow-sm);
}
.panel-hd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.panel-hd::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: linear-gradient(90deg, rgba(182, 139, 54, .24), transparent 85%);
}
.panel-hd h2 { font: 700 16px/1.4 var(--serif); letter-spacing: .8px; color: var(--heading); margin: 0; white-space: nowrap; }
.panel-bd { padding: 18px 20px; min-width: 0; }

.empty-state { padding: 44px 16px; text-align: center; color: var(--muted); }
.empty-state a { color: var(--heading); }
.empty-state .btn-primary { color: #fff; }
.empty-state h1, .empty-state h2 { color: var(--heading); }

.spec-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-tb th, .spec-tb td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.spec-tb tr:last-child > * { border-bottom: 0; }
.spec-tb th { width: 98px; background: var(--surface-muted); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.spec-tb td { overflow-wrap: anywhere; background: #fff; }
@media (min-width: 641px) {
  .spec-tb, .spec-tb tbody { display: block; width: 100%; }
  .spec-tb tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-tb tr { display: grid; grid-template-columns: 94px minmax(0, 1fr); border-bottom: 1px solid var(--line-soft); }
  .spec-tb tr:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .spec-tb tr:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .spec-tb tr:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .spec-tb tr:last-child { border-bottom: 0; }
  .spec-tb th, .spec-tb td { width: auto; border-bottom: 0; display: flex; align-items: center; }
}
.spec-tb a { color: var(--heading); font-weight: 500; }
.spec-tb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The bookmark sits on the rule like a ribbon hanging from a page. */
.pager { --folio-paper: color-mix(in srgb, var(--paper) 87%, var(--ink)); margin: 24px auto 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.pager:not(.folio) { display: flex; align-items: center; justify-content: safe center; overflow-x: auto; gap: 5px; white-space: nowrap; }
.pager:not(.folio) > * { flex: none; padding: 8px 4px; }
.pager:not(.folio) .pg-on { color: var(--heading); font-weight: 700; border-bottom: 2px solid; }
.pager .pg-off { color: #797872; }
.folio { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; width: min(100%, 370px); min-height: 50px; border-top: 1px solid var(--line); white-space: nowrap; }
.folio-turn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; width: max-content; color: var(--ink); font-weight: 500; }
.folio-turn:last-child { justify-self: end; }
.folio a.folio-turn:hover, .folio a.folio-turn:focus-visible { color: var(--heading); text-decoration: underline; text-underline-offset: 4px; }
.folio-picker { align-self: start; }
.folio-trigger { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px; cursor: pointer; list-style: none; }
.folio-trigger::-webkit-details-marker { display: none; }
.folio-mark { display: inline-grid; place-items: center; align-self: start; min-width: 28px; height: 34px; padding: 0 5px 4px; background: var(--folio-paper); color: var(--heading); font: 700 17px/1 Georgia,serif; clip-path: polygon(0 0,100% 0,100% 100%,50% calc(100% - 5px),0 100%); }
.folio-slash { color: #888a8a; }
.folio-total { color: var(--ink-2); }
.folio-caret { width: 6px; height: 6px; border: solid var(--ink-2); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.folio-picker[open] .folio-caret { transform: translateY(1px) rotate(225deg); }
.folio :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.folio-sheet { position: absolute; z-index: 4; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: min(272px, 100%); padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); }
.folio-pages { display: grid; grid-template-columns: repeat(auto-fit,minmax(36px,1fr)); gap: 3px; max-height: min(230px, 48vh); padding: 2px; overflow-y: auto; }
.folio-pages > * { display: grid; place-items: center; min-height: 36px; border-radius: 4px; color: var(--ink); }
.folio-pages > [aria-current] { background: var(--folio-paper); color: var(--heading); font-weight: 700; }
.folio-pages > a:is(:hover,:focus-visible) { color: var(--heading); background: var(--paper); }
.folio-jump { display: flex; gap: 8px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.folio-jump input, .folio-jump button { min-width: 0; min-height: 36px; font: inherit; border-radius: 4px; }
.folio-jump input { flex: 1; padding: 0 8px; border: 1px solid var(--line); }
.folio-jump button { padding: 0 12px; background: var(--folio-paper); color: var(--heading); border: 0; cursor: pointer; }

/* Documents & errors */
.document-main { padding-bottom: 4px; }
.doc { max-width: 820px; margin: 6px auto 0; padding: 34px 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.doc h1 { font: 700 26px/1.45 var(--serif); color: var(--heading); margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.doc-updated { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.doc .doc-updated + .doc-intro { margin-top: 14px; }
.doc .doc-intro { margin: 20px 0 0; padding: 13px 16px; border-radius: 5px; background: var(--surface-muted); color: var(--ink); font-size: 14px; line-height: 1.9; }
.doc-contents { margin: 18px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.doc-contents-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.doc-contents ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.doc-contents a { display: flex; align-items: baseline; gap: 8px; min-height: 28px; color: var(--brand-dk); font-size: 13px; text-decoration: none; }
.doc-contents a span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.doc-contents a:hover { text-decoration: underline; text-decoration-color: #a6ac98; text-underline-offset: 3px; }
.doc-group { padding: 22px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 88px; }
.doc-group h2 { margin: 0; color: var(--heading); font: 600 18px/1.5 var(--serif); }
.doc-group-intro { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.doc-section { margin-top: 18px; scroll-margin-top: 88px; }
.doc-section h3 { margin: 0 0 8px; color: var(--heading); font: 600 15px/1.55 var(--serif); }
.doc-section p { max-width: 72ch; margin: 0 0 10px; color: var(--ink); font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { margin: 8px 0 0; padding-inline-start: 1.4em; }
.doc-section li { margin: 8px 0 0; color: var(--ink); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.doc .btn { margin-top: 22px; }
.doc-contact-action { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.doc-contact-action label { color: var(--ink-2); font-size: 13px; }
.doc-contact-action select { width: auto; min-width: min(240px,100%); min-height: 38px; padding: 6px 30px 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--control-bg); color: var(--ink); }
.doc-contact-action .btn { margin: 0; }
@media (max-width: 560px) { .doc-contents ol { grid-template-columns: minmax(0,1fr); gap: 2px; } .doc-group { padding: 18px 0; } .doc-contact-action { align-items: stretch; } .doc-contact-action label { width: 100%; } .doc-contact-action select, .doc-contact-action .btn { flex: 1 1 100%; justify-content: center; } }
.error-page { padding: 70px 16px; }
.error-code { display: inline-block; font: 700 68px/1 var(--serif); color: var(--muted); letter-spacing: 4px; }
.error-page h1 { font: 700 24px/1.4 var(--serif); color: var(--heading); margin: 10px 0; }
.error-page p { margin-bottom: 24px; color: var(--ink-2); }
.error-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Native dialogs */
dialog { color: var(--ink); padding: 0; border: 0; }
dialog::backdrop { background: rgba(16, 30, 30, .44); backdrop-filter: blur(2px); }
.overlay {
  --menu-font: "Menu WenKai", "STKaiti", "KaiTi", var(--serif);
  margin: auto;
  width: 480px;
  max-width: calc(100% - 28px);
  max-height: calc(100dvh - 48px);
  background: #FFFCF6;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  box-shadow: 0 22px 60px rgba(16, 30, 30, .28);
  opacity: 0;
  transform: translateY(9px) scale(.97);
  transform-origin: top center;
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .75, .25, 1), display .24s allow-discrete, overlay .24s allow-discrete;
}
.overlay[open] { opacity: 1; transform: translateY(0) scale(1); }
.overlay::backdrop {
  background: rgba(16, 30, 30, .44);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .2s ease, display .24s allow-discrete, overlay .24s allow-discrete;
}
.overlay[open]::backdrop { opacity: 1; }
@starting-style {
  .overlay[open] { opacity: 0; transform: translateY(9px) scale(.97); }
  .overlay[open]::backdrop { opacity: 0; }
}
.overlay-close { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 4px; }
.overlay-close button, .fav-x {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-2);
}
.overlay nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.overlay :is(nav a, .overlay-latest) { display: flex; align-items: center; min-width: 0; min-height: 54px; padding: 10px 8px; color: var(--heading); font: 400 22px/1.45 var(--menu-font); letter-spacing: .035em; white-space: nowrap; transition: color .16s ease, background-color .16s ease; }
.overlay nav a[aria-current] { color: var(--heading); font-weight: 600; background: var(--surface-muted); }
.overlay nav a { border-bottom: 1px solid var(--line-soft); }
.overlay nav a:nth-last-child(-n+2) { border-bottom: 0; }
.overlay nav a:hover, .overlay nav a:focus-visible { color: var(--heading); background: linear-gradient(90deg, var(--surface-muted), transparent 92%); }
.overlay-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.overlay-boards a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--heading);
  font: 500 16px/1.35 var(--serif);
  letter-spacing: .04em;
  background: var(--paper-2);
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.overlay-boards a:is(:hover, :focus-visible, [aria-current]) {
  color: var(--heading);
  background: var(--surface-muted);
  border-color: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .overlay, .overlay::backdrop { transition: none; }
}
.fav-dialog {
  margin: auto;
  width: 440px;
  max-width: calc(100% - 28px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FFFCF6;
  box-shadow: 0 22px 60px rgba(16, 30, 30, .28);
}
.fav-x { position: absolute; top: 16px; right: 16px; }
.fav-dialog h3 { font: 700 21px/1.4 var(--serif); color: var(--heading); margin: 0 28px 14px 0; }
.fav-sub { font-size: 13px; color: var(--muted); }
.fav-steps { padding-left: 20px; font-size: 14px; }
.fav-steps li { padding: 6px 0; }
.fav-copy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.fav-copy code { flex: 1; font-size: 11px; overflow-wrap: anywhere; background: var(--paper); padding: 4px 8px; border-radius: 4px; }
.fav-copy button { border: 1px solid #C3D8D7; padding: 7px 12px; background: var(--surface-muted); color: var(--heading); border-radius: 6px; font-weight: 600; white-space: nowrap; }
#favMessage { font-size: 12px; color: var(--heading); margin: 10px 0 0; }
#favMessage:empty { display: none; }
[hidden] { display: none!important; }

@media (max-width: 767px) {
  .wrap, .navbar-wrap, .footer-inner { width: calc(100% - 28px); }
  .site-header { background: rgba(247, 242, 231, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .site-header::after { left: 14px; right: 14px; }
  .navbar-wrap { display: flex; gap: 10px; min-height: 52px; }
  .nav-menu { display: none; }
  .navbar-brand { font-size: 18px; color: var(--heading); }
  .navbar-brand:hover { color: var(--heading); }
  .nav-tools { gap: 8px; }
  .nav-fav {
    padding: 5px 10px;
    font-size: 13px;
    background: var(--control-bg);
    border-color: var(--line);
    color: var(--ink-2);
  }
  .nav-fav svg { color: var(--heading); }
  .nav-fav:hover { background: var(--surface-muted); color: var(--heading); border-color: var(--brand); }
  .nav-cat-btn {
    font-size: 13px;
    padding: 5px 10px;
    background: var(--control-bg);
    border-color: var(--line);
    color: var(--heading);
  }
  .crumb { padding: 14px 0 10px; font-size: 13px; gap: 6px; }
  .section-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    column-gap: 8px;
    margin: 0 0 10px;
  }
  .section-composition {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    height: 58px;
    justify-self: stretch;
    overflow: clip;
  }
  .section-heading h2 { font-size: 20px; }
  .section-rule { display: none; }
  .section-heading > .text-link {
    grid-column: 2;
    grid-row: 1;
    padding: 10px 0 10px 4px;
    font-size: 13px;
    margin: 0;
    align-self: center;
  }
  .panel { margin-bottom: 13px; }
  .panel-hd { padding: 11px 14px; }
  .panel-hd h2 { font-size: 15.5px; }
  .panel-bd { padding: 15px 14px; }
  .spec-tb th { width: 88px; }
  .spec-tb th, .spec-tb td { padding: 9px 12px; }
  .footer { margin-top: 34px; padding: 22px 0; }
  .footer nav { column-gap: clamp(7px, 13vw - 34px, 22px); font-size: clamp(13px, 3.6vw, 14px); }
  .footer-note { max-width: 520px; font-size: 13px; }
  .doc { padding: 24px 18px; }
  .doc h1 { font-size: 22px; }
  .doc-updated { margin-top: 7px; }
  .doc .doc-updated + .doc-intro { margin-top: 12px; }
  .doc .doc-intro { margin-top: 16px; padding: 11px 13px; font-size: 13px; }
  .doc-group { padding: 18px 0; }
  .doc-group h2 { font-size: 16px; }
  .doc-section h3 { font-size: 15px; }
  .doc-section p, .doc-section li { font-size: 13px; }
}
@media (max-width: 430px) {
  .section-heading h2 { left: 50%; }
}
@media (max-width: 359px) {
  .section-heading {
    grid-template-rows: 58px 18px;
    min-height: 76px;
    column-gap: 4px;
  }
  .section-heading > .text-link {
    grid-row: 2;
    padding: 0 0 0 4px;
    align-self: start;
  }
  .section-heading h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none!important; transition: none!important; }
}

/* Standalone feedback form */
.feedback-page { min-height: 100svh; padding: 36px 16px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.feedback-shell { width: 100%; max-width: 720px; margin: 0 auto; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); }
.form-card header { text-align: center; margin-bottom: 22px; }
.form-card header h1 { font: 700 30px/1.4 var(--serif); margin: 0; color: var(--heading); }
.form-card header p { color: var(--ink-2); margin: 7px 0 0; font-size: 14px; }
.report-guide { margin: 0 0 18px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; font-size: 13px; }
.report-guide summary { color: var(--heading); cursor: pointer; font-weight: 600; }
.report-guide ol { margin: 8px 0; padding-inline-start: 1.5em; }
.report-guide li { margin: 4px 0; }
.report-guide p { margin: 0; }
.report-privacy { margin: 14px 0 0; color: var(--ink-2); font-size: 12px; }
.form-card form { display: grid; gap: 16px; }
.form-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-card label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.form-card input, .form-card textarea, .form-card select { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); margin-top: 6px; font-size: 16px; line-height: 1.6; font-weight: 400; }
.form-card textarea { resize: vertical; min-height: 120px; height: 120px; }
.form-card small { display: block; font-weight: 400; color: var(--ink-2); font-size: 11px; margin-top: 5px; }
.form-card button { padding: 8px 18px; border: 1px solid var(--brand); border-radius: 6px; background: var(--brand); color: #fff; font-size: 14px; white-space: nowrap; }
.form-card button:disabled { opacity: .5; cursor: default; }
.report-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-images { display: flex; flex-wrap: wrap; gap: 12px; }
.report-images > div { display: flex; flex-direction: column; gap: 4px; }
.report-images img { width: 100px; height: 80px; object-fit: cover; border-radius: 6px; }
.report-images button, .report-captcha-image button { padding: 4px 8px; color: var(--heading); background: transparent; border: 0; }
.report-captcha-image { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-captcha-image img { width: 200px; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.report-captcha-input { display: flex; gap: 10px; margin-top: 10px; }
.report-captcha-input input { min-width: 0; flex: 1; margin: 0; }
.report-captcha-input button { border-color: var(--line); background: #FCF8EF; color: var(--heading); }
.report-verified { color: #167344; margin: 0; }
.report-error { color: #b42318; font-size: 14px; }
.report-error:empty { display: none; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.form-actions button[type=submit] { min-height: 44px; border-radius: 10px; padding: 0 18px; font-weight: 700; font-size: 14px; background: var(--brand); border-color: var(--brand); }
.form-actions p { font-size: 14px; margin: 0; }
.feedback-unavailable { background: #fff; color: #666; }
.feedback-unavailable main { min-height: 100svh; display: grid; place-items: center; padding: 0 24px; }
.feedback-unavailable p { text-align: center; }

@media (max-width: 360px) {
  .navbar-wrap, .nav-tools { gap: 6px; }
  .navbar-brand { gap: 5px; font-size: 17px; }
  .navbar-brand img { width: 20px; height: 20px; }
}
