* { box-sizing:border-box }
:root { color-scheme:light }
html { scroll-behavior:smooth; scroll-padding-top:28px }
body { margin:0; background:#FFFDF9; color:#3D3D3D; font:18px/1.75 Arial,sans-serif }
main { max-width:1000px; margin:40px auto; padding:56px 76px; background:#FFFDF9; border:1px solid #E6DFD4; border-radius:14px }
h1,h2,h3 { line-height:1.22; color:#222222 }
h1 { font-size:clamp(2rem,4.5vw,3.25rem); letter-spacing:-.035em; margin:16px 0 24px }
h2 { font-size:1.65rem; margin:2.3em 0 .9em; position:relative }
h3 { font-size:1.13rem; margin:1.5em 0 .5em; overflow-wrap:anywhere }
p { margin:1.1em 0 }
a { color:#A13F32; text-underline-offset:3px }
a:hover { color:#743029 }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #743029; outline-offset:3px }
::selection { background:#FFE4A7; color:#222222 }
.eyebrow { color:#A13F32; font-size:.72rem; font-weight:750; letter-spacing:.12em }
.lead { font-size:1.23rem; line-height:1.6; color:#6B655F }
.meta { font-size:.85rem; color:#6B655F; border-bottom:1px solid #E6DFD4; padding-bottom:20px }
.meta span { margin:0 7px }
.statline { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px }
.statline span { font-size:.78rem; background:#F5F1E9; border:1px solid #E6DFD4; padding:5px 10px; border-radius:5px }
nav { background:#F5F1E9; border:1px solid #E6DFD4; border-radius:14px; padding:24px 30px; margin:32px 0 }
nav h2 { margin:0 0 16px; font-size:1.3rem }
nav ol { margin:0; padding-left:24px; columns:2; column-gap:34px; font-size:.9rem }
nav li { break-inside:avoid; margin-bottom:8px; line-height:1.45 }
nav a { text-decoration:none; overflow-wrap:anywhere }
nav a:hover { color:#743029; text-decoration:underline }
.toc-count { color:#6B655F; margin-left:4px; font-size:.75rem }
button,input,select { font:inherit }
button,select { font-size:.8rem; border:1px solid #D4BEB3; background:#FFFDF9; color:#743029; border-radius:5px; padding:6px 10px; cursor:pointer }
button:hover { border-color:#743029; background:#F5F1E9 }
.tools { margin:28px 0; padding:18px; background:#F5F1E9; border:1px solid #E6DFD4; border-radius:10px }
.tools form { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end }
.search-field { flex:1; min-width:180px }
.tools label { display:block; font-size:.85rem; font-weight:bold; margin-bottom:8px }
.tools input[type=search] { width:100%; min-width:0; font-size:.9rem; padding:10px 12px; border:1px solid #D4BEB3; border-radius:5px; background:#FFFDF9; color:#3D3D3D }
.tools input::placeholder { color:#6B655F }
.reset-button { min-height:44px; margin-bottom:8px }
.filter-row { display:flex; flex-wrap:wrap; gap:12px 22px; align-items:center; width:100%; margin-top:2px }
.filter-row label { margin:0 }
.filter-row select { max-width:100%; margin-left:8px; min-height:40px }
.filter-row .check-label { display:flex; align-items:center; gap:8px; font-weight:normal; cursor:pointer }
input[type=checkbox] { accent-color:#A13F32; width:18px; height:18px; margin:0 }
.tool-hint { font-size:.78rem; line-height:1.6; color:#6B655F; margin:14px 0 7px }
.tools output { display:block; font-size:.8rem; color:#6B655F }
.catalog-note { display:flex; gap:12px; align-items:baseline; margin:26px 0 36px; color:#6B655F; font-size:.82rem; line-height:1.6 }
.catalog-note p { margin:0 }
.tag { display:inline-block; border:1px solid #D4BEB3; border-radius:4px; padding:1px 6px; font-size:.72rem; white-space:nowrap }
.warn { background:#FBEDE6 }
.domain-group { border-top:1px solid #E6DFD4; padding-top:32px; margin-top:38px; scroll-margin-top:28px }
.domain-group:first-child { margin-top:0 }
.group-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:22px }
.group-heading .eyebrow { margin:0 0 8px }
.group-heading h2 { margin:0 0 12px; overflow-wrap:anywhere }
.group-intro { color:#6B655F; font-size:.88rem; line-height:1.6; margin:0 }
.group-count { flex-shrink:0; font-size:.75rem; color:#6B655F; margin-top:30px }
.domain-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px }
.domain-card { background:#F5F1E9; border:1px solid #E6DFD4; border-radius:10px; padding:20px; min-width:0; display:flex; flex-direction:column }
.primary-card { padding:22px 24px; border-left:4px solid #A13F32 }
.card-meta { display:flex; gap:8px; justify-content:space-between; align-items:center; min-height:32px; margin-bottom:8px }
.card-topic { color:#6B655F; font-size:.75rem; line-height:1.5 }
.domain-card h3 { margin:0 0 14px }
.domain-link { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; padding:10px 12px; background:#A13F32; color:#FFFDF9; border:1px solid #A13F32; border-radius:6px; font-size:.84rem; line-height:1.55; font-weight:600; text-decoration:none }
.domain-link span:first-child { overflow-wrap:anywhere; min-width:0 }
.domain-link span:last-child { flex-shrink:0 }
.domain-link:hover { color:#FFFDF9; background:#743029; border-color:#743029 }
.primary-card .domain-link { align-self:flex-start; min-width:260px; max-width:100% }
.favorite { border:1px solid #D4BEB3; background:#FFFDF9; color:#A13F32; padding:2px 7px; min-width:34px; min-height:34px; font-size:1.2rem; line-height:1.3; flex-shrink:0 }
.favorite[aria-pressed=true] { background:#A13F32; color:#FFFDF9; border-color:#A13F32 }
.favorite:hover { border-color:#743029 }
.description { font-size:.88rem; line-height:1.7; margin:16px 0 18px }
.card-foot { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:auto }
.source-link { color:#6B655F; font-size:.71rem; line-height:1.6 }
.subdomain-heading { color:#6B655F; font-size:.82rem; letter-spacing:.04em; margin:25px 0 14px; font-weight:600 }
.section-top { font-size:.75rem; text-decoration:none; display:block; margin-top:22px }
.infobox { background:#F5F1E9; border-left:4px solid #A13F32; border-radius:14px; padding:4px 24px 20px; margin:36px 0 }
.infobox h2 { font-size:1.25rem; margin:22px 0 }
.infobox p { font-size:.86rem; line-height:1.7 }
.infobox p:first-child { margin-top:15px }
.research-section { margin:32px 0 }
details { border:1px solid #E6DFD4; border-radius:8px; padding:16px 20px }
summary { font-size:.86rem; cursor:pointer; color:#A13F32; font-weight:600 }
summary:hover { color:#743029 }
.sources-intro,.source-list { font-size:.83rem; line-height:1.7 }
.source-list { padding-left:24px }
.source-list li { margin:24px 0; overflow-wrap:anywhere; scroll-margin-top:28px }
.source-list li p { margin:.35em 0 }
.sources { font-size:.78rem; color:#6B655F; overflow-wrap:anywhere }
footer { margin-top:45px; border-top:1px solid #E6DFD4; padding-top:20px; font-size:.8rem; color:#6B655F }
footer p { margin:.8em 0 }
.footer-actions { display:flex; gap:10px; flex-wrap:wrap }
#action-status { min-height:1.75em }
.manual-copy { display:block; width:100%; min-height:12em; margin-top:12px; border:1px solid #D4BEB3; border-radius:5px; background:#FFFDF9; color:#3D3D3D; font:inherit; padding:10px }
.top { position:fixed; bottom:18px; right:18px; border:1px solid #A13F32; border-radius:8px; background:#A13F32; color:#FFFDF9; padding:8px 14px; font-size:.82rem; text-decoration:none }
.top:hover { background:#743029; border-color:#743029; color:#FFFDF9 }
.skip-link { position:absolute; top:8px; left:8px; background:#FFFDF9; border:1px solid #A13F32; border-radius:5px; padding:8px 12px; transform:translateY(-160%) }
.skip-link:focus { transform:translateY(0) }
.empty-state { padding:20px; border-left:4px solid #A13F32; background:#FBEDE6; border-radius:8px; font-size:.9rem }
mark { background:#FFE4A7; color:#302724 }
[hidden] { display:none!important }
.no-js { padding:18px 24px; font-size:.85rem }
@media(max-width:700px) {
  body { font-size:17px }
  main { margin:0; padding:30px 22px; border:0; border-radius:0; overflow-wrap:break-word }
  h2 { font-size:1.45rem }
  h3 { line-height:1.4 }
  nav { padding:20px }
  nav ol { columns:1; padding-left:20px }
  .tools { padding:14px }
  .tools form { align-items:flex-end }
  .reset-button { min-height:43px }
  .filter-row { flex-direction:column; align-items:flex-start }
  .filter-row label:first-child { width:100% }
  .filter-row select { margin:6px 0 0; width:100%; display:block }
  .domain-grid { grid-template-columns:1fr; gap:14px }
  .domain-card { padding:18px }
  .primary-card { padding:18px }
  .primary-card .domain-link { align-self:stretch; min-width:0 }
  .group-heading { display:block }
  .group-count { display:inline-block; margin-top:10px }
  .group-heading h2 { font-size:1.45rem }
  .domain-group { padding-top:26px; margin-top:30px }
  .catalog-note { align-items:flex-start }
  .infobox { padding:4px 17px 18px }
  .top { bottom:10px; right:10px }
  details { padding:14px }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto } }
@media print {
  body { background:#FFFDF9; font-size:11pt }
  main { max-width:none; width:100%; padding:0; margin:0; border:0; border-radius:0 }
  .tools,.top,.favorite,.section-top,.footer-actions,.skip-link,#action-status { display:none!important }
  .empty-state { display:none!important }
  .domain-group[hidden],.domain-card[hidden],.subdomain-heading[hidden] { display:block!important }
  .domain-grid[hidden] { display:grid!important }
  nav { margin:20px 0; padding:15px }
  nav ol { columns:2; font-size:9pt }
  .domain-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
  .domain-group { margin-top:24px; padding-top:20px }
  .domain-card { break-inside:avoid; padding:14px }
  .group-heading,.subdomain-heading,h2,h3 { break-after:avoid }
  .domain-link { background:#FFFDF9; border:1px solid #D4BEB3; color:#A13F32; min-height:0; padding:7px 9px; font-size:9pt }
  .description { font-size:9pt; line-height:1.55 }
  .source-link { font-size:8pt }
  a { overflow-wrap:anywhere }
  mark { background:none; color:inherit }
}
