:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --navy: #142b3a;
  --muted: #4b5f66;
  --green: #24554a;
  --line: #c9d0c9;
  font: 16px/1.5 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--navy); background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-row { min-height: 80px; }
.back-logo { display: block; }
.back-logo img { width: 156px; max-width: 40vw; height: 52px; object-fit: contain; display: block; }
nav { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; }
nav span { color: var(--line); }
.language { min-width: 40px; min-height: 44px; display: inline-grid; place-items: center; color: var(--muted); text-decoration: none; }
.language[aria-current="page"] { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 22px; color: var(--muted); text-decoration: none; font-size: .88rem; }
.back-link:hover, footer a:hover { color: var(--green); text-decoration: underline; }
.intro { padding: 32px 0 44px; border-bottom: 1px solid var(--line); }
.kicker { color: var(--green); margin: 0; font-family: ui-monospace, monospace; font-size: .73rem; letter-spacing: .14em; }
h1, h2 { margin: 0; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); font-weight: 540; line-height: 1.13; letter-spacing: -.06em; margin: 14px 0 16px; }
html[lang="en"] h1 { font-family: Georgia, serif; font-weight: 500; }
.intro > p:last-child { margin: 0; color: var(--muted); }
.directory { padding-block: 36px 52px; }
.directory-header, .controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
h2 { font-size: 1.38rem; letter-spacing: -.04em; }
.search { width: min(415px, 55%); display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #fff; border: 1px solid #8f9c99; border-radius: 5px; }
.search:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.search svg { width: 19px; height: 19px; stroke: var(--muted); stroke-width: 1.8; fill: none; flex-shrink: 0; }
.search input { display: block; color: var(--navy); min-width: 0; width: 100%; padding: 12px 0; border: 0; background: transparent; }
.search input:focus-visible { outline: none; }
.controls { margin: 20px 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button, .more, #reset { min-height: 40px; padding: 7px 14px; background: transparent; color: var(--navy); border: 1px solid var(--line); border-radius: 50px; }
.filters button[aria-pressed="true"], .more:hover, #reset:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .88rem; margin: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; background: transparent; }
thead { background: #e9ece4; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: .76rem; font-weight: 650; color: var(--muted); }
tbody th { font-size: 1.02rem; font-weight: 620; overflow-wrap: anywhere; }
tbody td { color: var(--muted); font-size: .86rem; }
.original-name { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; font-size: .83rem; }
.ref { font-family: ui-monospace, "Cascadia Code", monospace; font-variant-numeric: tabular-nums; }
.more { display: block; margin: 24px auto 0; }
#empty { padding: 38px 16px; border-block: 1px solid var(--line); text-align: center; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .85rem; }
footer a { text-underline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .header-row { min-height: 62px; }
  .back-link { margin-top: 12px; }
  .intro { padding: 20px 0 26px; }
  .directory { padding: 22px 0 32px; }
  .directory-header, .controls { align-items: stretch; flex-direction: column; gap: 12px; }
  .search { width: 100%; }
  .controls { margin-block: 14px; }
  .filters button { font-size: .84rem; padding: 6px 10px; }
  table, tbody, tr, td, tbody th { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
  tbody th, td { padding: 0; border: 0; }
  tbody th { grid-column: 1 / -1; }
  tbody td:last-child { grid-column: 1 / -1; }
  td::before { content: attr(data-label) " "; font-family: Arial, sans-serif; color: var(--muted); }
}
