:root {
  --bg: #fbfaf7; --fg: #1d1d1b; --muted: #6b6a66; --line: #e3e1da;
  --accent: #1f5f8b; --row: #f3f1ec;
  --notice-bg: #fff4d6; --notice-line: #d9a419;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --fg: #ecebe6; --muted: #9a9892; --line: #2f2e2b;
          --accent: #7cb7e0; --row: #1e1e1c;
          --notice-bg: #2b2414; --notice-line: #b8891a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
header, main, footer { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 40px; }
h1 { margin: 0 0 10px; font-size: 1.75rem; line-height: 1.25; max-width: 30ch; }
h2 { font-size: 1.35rem; margin: 48px 0 8px; }
h3 { font-size: 1rem; margin: 24px 0 4px; }
a { color: var(--accent); }
.lede { color: var(--muted); max-width: 70ch; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

.notice .report { display: block; width: fit-content; margin-top: 10px; font-size: .9rem; }
.notice { margin: 16px 0 0; padding: 12px 14px; max-width: 75ch; font-size: .925rem;
          background: var(--notice-bg); border-left: 4px solid var(--notice-line); border-radius: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 4px; }
#search { flex: 1 1 240px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
          background: var(--bg); color: var(--fg); font: inherit; }
#count { color: var(--muted); font-size: .9rem; }
.button { padding: 8px 14px; border-radius: 6px; background: var(--accent); color: var(--bg);
          text-decoration: none; font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--row); }
tbody tr:nth-child(even) { background: var(--row); }
td.journal { font-weight: 600; width: 38%; }
td ul { margin: 0; padding-left: 18px; }
td li + li { margin-top: 4px; }
.desc { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }

.about { max-width: 75ch; }
.about p { margin: 0 0 8px; }
.cite { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--row); border-radius: 4px; }
.cite p { margin: 0 0 10px; overflow-wrap: anywhere; }
#copy-cite { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
             background: var(--bg); color: var(--fg); font: inherit; font-size: .85rem; }

footer { color: var(--muted); font-size: .85rem; padding: 40px 16px; }

@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  td.journal { width: auto; }
  thead { display: none; }
  tr, td { display: block; }
  td.journal { border-bottom: 0; padding-bottom: 0; }
}

/* Accessibility helpers */
.visually-hidden { position: absolute !important; 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; left: 16px; top: -48px; padding: 8px 12px; z-index: 10;
  background: var(--accent); color: var(--bg); border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Author byline under the title */
.byline { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 14px 0 20px; padding: 0; list-style: none; }
.byline li { line-height: 1.35; }
.byline .name { display: block; font-size: 1rem; font-weight: 500; }
.byline .affil { display: block; font-size: .85rem; color: var(--muted); }
