:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1c1e21; --muted: #5c6168; --rule: #dedbd3;
  --link: #1f4f7a; --elicit: #2f5d62; --retell: #6b3a55; --interpret: #86651a; --retain: #2f4a78;
  --serif: "Source Serif 4", "Iowan Old Style", Charter, "Bitstream Charter", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a; --surface: #1d2024; --ink: #e8e6e1; --muted: #a3a7ad; --rule: #34383e;
    --link: #8fbbe6; --elicit: #7fc1c8; --retell: #d59abb; --interpret: #dcb968; --retain: #9db6e6;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
header.site, footer.site, main { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
body.rubricpage header.site, body.rubricpage footer.site, body.rubricpage main { max-width: 62rem; }
header.site { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 0.9rem; }
header.site .brand { font-weight: 650; color: var(--ink); text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); text-decoration: underline; }
.title { padding: 2.5rem 0 1rem; }
.kicker { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; margin: 0 0 0.75rem; font-weight: 650; text-wrap: balance; }
.sub { font-size: 1.15rem; color: var(--muted); margin: 0 0 0.5rem; text-wrap: pretty; }
.byline { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin: 0; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 2.75rem 0 0.75rem; font-weight: 650; text-wrap: balance; }
h2 span { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-left: 0.4rem; }
p, ul, ol, dl, blockquote, figure, table { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
blockquote { margin-left: 0; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 3px solid var(--rule); color: var(--ink); font-size: 1.02rem; }
figure { margin: 1.75rem 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
figcaption { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.actions { font-family: var(--sans); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; align-items: center; }
.button { display: inline-block; background: var(--ink); color: var(--bg); padding: 0.5rem 0.9rem; border-radius: 4px; text-decoration: none; font-weight: 600; }
.button:hover { opacity: 0.88; }
ul.cats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; font-family: var(--sans); font-size: 0.92rem; line-height: 1.45; }
ul.cats li { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--c); border-radius: 4px; padding: 0.8rem 0.9rem; color: var(--muted); }
ul.cats a { display: flex; justify-content: space-between; align-items: baseline; color: var(--c); text-decoration: none; margin-bottom: 0.25rem; }
ul.cats a strong { font-family: var(--serif); font-size: 1.2rem; }
ul.cats a span { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.c-elicit { --c: var(--elicit); } .c-retell { --c: var(--retell); } .c-interpret { --c: var(--interpret); } .c-retain { --c: var(--retain); }
p.ref { font-size: 0.95rem; line-height: 1.5; padding-left: 1.5rem; text-indent: -1.5rem; margin-bottom: 0.7rem; overflow-wrap: anywhere; }
.sig { margin-top: 2rem; font-family: var(--sans); font-size: 0.92rem; }
.citeas { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; overflow-wrap: anywhere; }
#cite ~ p { overflow-wrap: anywhere; }
nav.jump { font-family: var(--sans); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
nav.jump a { color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 0.2rem 0.75rem; text-decoration: none; font-weight: 600; }
section.cat h2 { color: var(--c); border-top: 4px solid var(--c); padding-top: 0.9rem; margin-bottom: 0.25rem; }
.catdesc { color: var(--muted); font-family: var(--sans); font-size: 0.92rem; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.92rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.rubric th[scope=row] { white-space: nowrap; width: 3.2rem; }
table.rubric th[scope=row] a { color: var(--c); text-decoration: none; font-weight: 700; }
table.rubric td:nth-child(2) { width: 34%; }
table.rubric strong { font-family: var(--serif); font-size: 1.05rem; }
table.rubric tr:target { background: color-mix(in srgb, var(--c) 12%, transparent); }
.desc { color: var(--muted); }
.both { display: inline-block; margin-top: 0.3rem; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c); border: 1px solid var(--c); border-radius: 3px; padding: 0 0.35rem; }
details { margin-top: 0.4rem; }
summary { cursor: pointer; color: var(--muted); font-size: 0.82rem; }
details dl { margin: 0.4rem 0 0; font-size: 0.85rem; }
details dt { font-weight: 600; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.4rem; }
details dd { margin: 0; }
dl.conv { font-family: var(--sans); font-size: 0.92rem; }
dl.conv dt { font-weight: 650; margin-top: 0.7rem; }
dl.conv dd { margin: 0; color: var(--muted); }
footer.site { margin-top: 4rem; padding-top: 1.25rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
footer.site p { margin-bottom: 0.4rem; }
@media (max-width: 40rem) {
  body { font-size: 1.05rem; }
  table.rubric thead { display: none; }
  table.rubric, table.rubric tbody, table.rubric tr, table.rubric th, table.rubric td { display: block; width: auto !important; }
  table.rubric tr { border-bottom: 1px solid var(--rule); padding: 0.8rem 0; }
  table.rubric th, table.rubric td { border: 0; padding: 0.1rem 0; }
  table.plain { display: block; overflow-x: auto; }
}
@media print {
  header.site nav, .actions, nav.jump, .sub a { display: none; }
  body { font-size: 11pt; background: #fff; color: #000; }
  details dl { display: block; }
  a { color: inherit; text-decoration: none; }
}
