:root {
  --bg: #f3f0ea; --bg-alt: #e9e4dc; --text: #241d17; --muted: #6b5f55;
  --accent: #355070; --accent-soft: #d8e0ea; --border: #d9d2c7; --mark: #ffe9a8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916; --bg-alt: #26221e; --text: #ebe6de; --muted: #a89d90;
    --accent: #8fb4d9; --accent-soft: #2c3b4c; --border: #3a342e; --mark: #5a4a12;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
header.site { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding: 1rem 1.25rem; }
header.site .brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); margin-right: auto; }
header.site nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--accent); }
header.site nav a + a { margin-left: 1rem; }
main { padding: 2rem 0 3rem; }
footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; padding: 1.5rem 0 2.5rem; }
footer.site p { margin: .3rem 0; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.1rem; margin: 1.6rem 0 .3rem; line-height: 1.35; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }
p { margin: .4rem 0 .8rem; }
.meta { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.5rem; }
.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: .8rem 1rem; margin: 1.5rem 0; border-radius: 4px; }
.notice p { margin: .2rem 0; }
.item { margin-bottom: 1.4rem; }
.item .domain { color: var(--muted); font-size: .85rem; margin-left: .4rem; white-space: nowrap; }
.item .desc p:last-child { margin-bottom: 0; }
.item .footer-text { color: var(--muted); font-size: .9rem; }
.item.text { padding: .9rem 1rem; background: var(--bg-alt); border-radius: 6px; }
.item.text h3 { margin-top: 0; }
.cat-sponsorship .item { border: 1px solid var(--border); padding: .9rem 1rem; border-radius: 6px; background: transparent; }
.cat-sponsorship .item .desc p:last-child { margin-bottom: 0; }
nav.issue-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .95rem; }
nav.issue-nav a { text-decoration: none; }
ul.issues { list-style: none; padding: 0; margin: 0; }
ul.issues li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--border); }
ul.issues li .num { color: var(--muted); font-variant-numeric: tabular-nums; }
ul.issues li .d { color: var(--muted); font-size: .85rem; display: block; }
ul.issues li a { text-decoration: none; }
ul.issues li a:hover { text-decoration: underline; }
.years { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 1.5rem; font-size: .95rem; }
.years a { text-decoration: none; }
form.search { display: flex; gap: .5rem; margin: 0 0 1.2rem; }
form.search input[type=search] {
  flex: 1; font: inherit; padding: .55rem .8rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-alt); color: var(--text); min-width: 0;
}
form.search button {
  font: inherit; padding: .55rem 1rem; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer;
}
#results .r { margin: 0 0 1.3rem; }
#results .r h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
#results .r .meta a { text-decoration: none; }
#results .r .ex { margin: .2rem 0 0; font-size: .95rem; }
#status { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
mark { background: var(--mark); color: inherit; padding: 0 .1em; border-radius: 2px; }
.stats { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1.2rem 0 0; }
.stats div { color: var(--muted); font-size: .92rem; }
.stats strong { display: block; color: var(--text); font-size: 1.5rem; line-height: 1.1; }
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.55rem; }
  ul.issues li { grid-template-columns: 4.2rem 1fr; }
}
