:root {
  --text: #0b0c0c;
  --muted: #484949;
  --bg: #ffffff;
  --panel: #f3f2f1;
  --brand: #1f4e3d;        /* themes and sites override these */
  --brand-dark: #153629;
  --link: #1a4f8b;
  --link-visited: #4c2c92;
  --focus: #ffdd00;
  --border: #b1b4b6;
  --fail: #b3261e;
  --warn: #7a4b00;
  --ok: #00703c;
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.1875rem; line-height: 1.5;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
main { padding-top: 1.5rem; padding-bottom: 3rem; display: block; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.5em 0 .5em; }
h1 { font-size: 2.25rem; margin-top: .5em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1875rem; }
p, ul, ol, table, blockquote { margin: 0 0 1em; }
.prose, .lede, main > p { max-width: 42em; }
.lede { font-size: 1.375rem; }
.meta { color: var(--muted); font-size: 1rem; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
blockquote { border-left: 5px solid var(--border); padding-left: 1em; }

a { color: var(--link); text-decoration-thickness: max(1px, .0625rem); text-underline-offset: .15em; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--brand-dark); text-decoration-thickness: max(3px, .1875rem); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible, [contenteditable]:focus-visible {
  outline: 3px solid transparent; background-color: var(--focus); color: var(--text);
  box-shadow: 0 -2px var(--focus), 0 4px var(--text); text-decoration: none;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible, .table-wrap:focus-visible {
  background-color: #fff; outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--text);
}

.skip-link { position: absolute; left: -9999px; top: 0; padding: .5em 1em; background: var(--focus); color: var(--text); z-index: 10; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.sitemap ul ul { margin-bottom: .5em; }

.site-footer { background: var(--panel); border-top: 1px solid var(--border); padding: 1.5rem 0; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; font-size: 1rem; }
.breadcrumb li + li::before { content: "›"; margin: 0 .5em; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--panel); padding: 1rem 1.25rem; border-top: 5px solid var(--brand); }
.card h2 { margin-top: 0; }
.big { font-size: 1.5rem; font-weight: 700; margin-bottom: .25em; }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: .5em; }
.link-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .75rem; }
.link-grid a { display: block; padding: 1rem; border: 1px solid var(--border); font-weight: 600; min-height: 44px; }
.notices li { border-bottom: 1px solid var(--border); padding-bottom: 1em; }
.notices h2 { font-size: 1.25rem; margin: .5em 0 .25em; }

.people { list-style: none; padding: 0; }
.person { display: flex; gap: 1.5rem; align-items: flex-start; border-bottom: 1px solid var(--border); padding: 1rem 0; }
.person img { flex: 0 0 160px; border-radius: 4px; }
.person h2 { margin-top: 0; }
.role { font-weight: 600; }
@media (max-width: 600px) { .person { flex-direction: column; } }

.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; max-width: none; }
.gallery li { margin: 0; }
.gallery a { display: block; line-height: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose:has(> .gallery:only-child) { max-width: none; }

details.year { border-top: 1px solid var(--border); }
details.year summary { cursor: pointer; padding: .25rem 0; }
details.year summary h2 { display: inline; font-size: 1.375rem; margin: 0; color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
details.year[open] summary { margin-bottom: .75rem; }

table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .5em .75em .5em 0; border-bottom: 1px solid var(--border); }
th { font-weight: 700; }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.table-wrap table { margin: 0; }
.updated { margin-top: 2em; }

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 1.75rem; }
  .lede { font-size: 1.1875rem; }
}
@media print {
  .site-footer nav, .skip-link, .breadcrumb { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
