:root {
  --parchment: #f3ead6;
  --parchment-deep: #e8dcbf;
  --cream: #faf6ec;
  --ink: #2b241d;
  --ink-soft: #5b5147;
  --muted: #86796a;
  --oxblood: #6e1f1f;
  --oxblood-deep: #4a1414;
  --olive: #5c6a43;
  --gold: #b38b3d;
  --line: #d8c9a6;
  --line-soft: #e9dfc8;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", Times, serif;
  --maxw: 1160px;
  --measure: 70ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at top, rgba(255, 252, 240, 0.9), rgba(255, 252, 240, 0) 60%),
    repeating-linear-gradient(0deg, rgba(120, 90, 40, 0.025) 0px, rgba(120, 90, 40, 0.025) 1px, transparent 1px, transparent 7px);
}

img, svg { max-width: 100%; }

a { color: var(--oxblood); text-decoration: underline; text-decoration-color: rgba(110, 31, 31, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--oxblood-deep); text-decoration-color: var(--oxblood-deep); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: normal; line-height: 1.2; color: var(--oxblood-deep); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--olive); }

p { margin: 0 0 1.15em; }

.wrap { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--oxblood-deep); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--olive);
  margin-bottom: 0.9rem;
}

.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }

.topline { background: var(--oxblood-deep); color: #efe3c8; }
.topline p { margin: 0; padding: 0.45rem 0; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; }

.masthead { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 0 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--oxblood-deep); }
.brand .seal { color: var(--oxblood); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.9rem; letter-spacing: 0.04em; }
.brand-name span { color: var(--gold); }
.brand-sub { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.26em; color: var(--muted); margin-top: 0.35rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  color: var(--oxblood-deep);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.nav-toggle span:not(.nav-toggle-label) { display: block; width: 18px; height: 1.5px; background: currentColor; }
.nav-toggle span + span:not(.nav-toggle-label) { margin-top: 4px; }
.nav-toggle .nav-toggle-label { margin-left: 0.3rem; line-height: 1; text-box: trim-both cap alphabetic; }

.site-nav { border-top: 1px solid var(--line-soft); }
.site-nav > ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; width: min(var(--maxw), 100% - 2.5rem); }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
  display: block;
  padding: 0.85rem 1.05rem;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav > ul > li > a:hover, .site-nav > ul > li.active > a { color: var(--oxblood-deep); }
.site-nav > ul > li.active > a { box-shadow: inset 0 -2px 0 var(--gold); }
.sub-toggle { display: none; }

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  box-shadow: 0 10px 24px rgba(60, 40, 10, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}
.has-children:hover > .submenu, .has-children:focus-within > .submenu, .has-children.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 0.45rem 1.1rem; font-size: 0.93rem; text-decoration: none; color: var(--ink); }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--parchment); color: var(--oxblood-deep); }
.submenu li:first-child a { color: var(--oxblood); font-style: italic; border-bottom: 1px solid var(--line-soft); margin-bottom: 0.3rem; padding-bottom: 0.6rem; }

.page-head { padding: 3rem 0 2.2rem; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(250, 246, 236, 0.7), rgba(250, 246, 236, 0)); }
.page-head h1 { max-width: 22ch; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; margin-top: 0.4rem; }

.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.2rem; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--oxblood); }
.breadcrumb .sep { margin: 0 0.35rem; color: var(--line); }

.epigraph { margin: 1.6rem 0 0; padding: 0 0 0 1.3rem; border-left: 2px solid var(--gold); max-width: 62ch; }
.epigraph p { font-style: italic; font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.epigraph cite, .footer-quote cite, .reflection cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 3.5rem; padding: 3rem 0 4rem; align-items: start; }
.single { padding: 3rem 0 4rem; }

.prose { max-width: var(--measure); }
.prose-wide { max-width: none; }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.75; }
.prose > p:first-child::first-letter, .prose .dropcap::first-letter { float: left; font-size: 3.4em; line-height: 0.85; padding: 0.08em 0.12em 0 0; color: var(--oxblood); }
.prose h2 { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); position: relative; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--gold); }
.prose h2:first-child::before { display: none; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 1.8rem 0; padding: 0.3rem 0 0.3rem 1.4rem; border-left: 2px solid var(--gold); }
.prose blockquote p { font-style: italic; color: var(--ink-soft); }
.prose blockquote cite { display: block; font-style: normal; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-top: -0.5rem; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4rem 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-weight: normal; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--olive); }
.prose .note { background: var(--cream); border: 1px solid var(--line); padding: 1.1rem 1.3rem; margin: 1.8rem 0; }
.prose .note p:last-child { margin-bottom: 0; }
.prose .note h3, .prose .note h4 { margin-top: 0; }

.lection { background: var(--cream); border: 1px solid var(--line); padding: 1.6rem 1.8rem; margin: 1.8rem 0; }
.lection h3 { margin-top: 0; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }
.lection p { font-size: 1.08rem; }
.lection p:last-child { margin-bottom: 0; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold); margin: 2.4rem auto; }
.ornament span { display: block; height: 1px; width: 64px; background: var(--gold); }

.page-aside { position: sticky; top: 1.5rem; font-size: 0.95rem; }
.page-aside h2 { font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.8rem; }
.page-aside > div { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.page-aside > div:first-child { border-top: 0; padding-top: 0; }
.page-aside > div[hidden] + div { border-top: 0; padding-top: 0; }
.page-aside ul, .page-aside ol { list-style: none; margin: 0; padding: 0; }
.page-aside li { margin: 0 0 0.45rem; }
.page-aside a { text-decoration: none; color: var(--ink-soft); display: block; padding: 0.15rem 0 0.15rem 0.8rem; border-left: 2px solid transparent; }
.page-aside a:hover { color: var(--oxblood-deep); }
.page-aside .current > a, .page-aside a.is-active { border-left-color: var(--gold); color: var(--oxblood-deep); }
.aside-path p { margin-bottom: 0.5rem; font-size: 0.92rem; }
.aside-path a { padding: 0; border: 0; color: var(--oxblood); text-decoration: underline; display: inline; }

.pager { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; color: var(--oxblood-deep); max-width: 48%; font-size: 1.02rem; }
.pager a span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 0.25rem; }
.pager-next { margin-left: auto; text-align: right; }

.hero { padding: 4.5rem 0 4rem; text-align: center; border-bottom: 1px solid var(--line-soft); background: radial-gradient(ellipse at center top, rgba(250, 246, 236, 0.95), rgba(250, 246, 236, 0) 70%); }
.hero .eyebrow { margin-bottom: 1.2rem; }
.hero h1 { max-width: 20ch; margin: 0 auto 1.2rem; }
.hero .lede { margin: 0 auto 2rem; text-align: center; }
.hero .epigraph { border: 0; padding: 0; margin: 2.4rem auto 0; max-width: 58ch; }
.hero .epigraph p { font-size: 1.22rem; }
.hero-seal { color: var(--oxblood); margin: 0 auto 1.4rem; width: 72px; height: 72px; display: block; }

.btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.85rem calc(1.5rem - 0.2em) 0.85rem 1.5rem;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.btn:hover { background: var(--oxblood); color: #fff; }
.btn-solid { background: var(--oxblood); color: #fff; }
.btn-solid:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); }

.section { padding: 3.8rem 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 64ch; margin: 0 auto 2.4rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.tilde-title { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--oxblood-deep); }
.tilde-title::before { content: "~ "; color: var(--gold); }
.tilde-title::after { content: " ~"; color: var(--gold); }

.band { background: var(--parchment-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--oxblood-deep); color: #efe3c8; border: 0; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: #f1dca4; }
.band-dark .eyebrow { color: #d4b36a; }
.band-dark .section-head p { color: #efe3c8; }
.band-dark .btn { border-color: #e9d8ad; color: #f6ecd2; }
.band-dark .btn:hover { background: #f6ecd2; color: var(--oxblood-deep); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card { background: var(--cream); border: 1px solid var(--line); padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; position: relative; }
.card::before { content: ""; position: absolute; top: 0; left: 1.6rem; width: 40px; height: 2px; background: var(--gold); }
.card .eyebrow { font-size: 0.68rem; margin-bottom: 0.6rem; flex: none; }
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { text-decoration: none; color: var(--oxblood-deep); }
.card h3 a:hover { color: var(--oxblood); text-decoration: underline; }
.card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.card .more { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.card-num { font-size: 2.2rem; color: var(--line); line-height: 1; position: absolute; right: 1.2rem; top: 1rem; }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.path { text-align: center; padding: 2rem 1.4rem; border: 1px solid var(--line); background: var(--cream); display: flex; flex-direction: column; align-items: center; }
.path svg { color: var(--gold); margin-bottom: 1rem; flex: none; }
.path h3 { margin-bottom: 0.6rem; }
.path p { color: var(--ink-soft); flex: 1; margin-bottom: 1.4rem; }
.path .btn { margin-top: auto; }

.reflection { text-align: center; max-width: 64ch; margin: 0 auto; }
.reflection blockquote { margin: 0 0 1.4rem; }
.reflection p { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-style: italic; line-height: 1.5; color: var(--oxblood-deep); min-height: 3.2em; }
.reflection cite { display: block; margin-top: 0.8rem; }
.reflection .hour-word { color: var(--muted); font-style: italic; font-size: 0.98rem; margin: 0 0 1.4rem; min-height: 1.4em; }

.directory { margin: 0; }
.directory dt { margin-top: 1.6rem; font-size: 1.15rem; }
.directory dt a { color: var(--oxblood); text-decoration: none; }
.directory dt a:hover { text-decoration: underline; }
.directory dd { margin: 0.3rem 0 0; color: var(--ink-soft); }
.directory dd + dt { border-top: 1px dotted var(--line); padding-top: 1.4rem; }

.numbered { counter-reset: teaching; list-style: none; padding: 0; margin: 0; }
.numbered > li { counter-increment: teaching; position: relative; padding: 1.6rem 0 1.6rem 4rem; border-top: 1px solid var(--line-soft); }
.numbered > li::before { content: counter(teaching, upper-roman); position: absolute; left: 0; top: 1.55rem; font-size: 1.3rem; color: var(--gold); letter-spacing: 0.05em; }
.numbered > li h3 { margin-bottom: 0.4rem; }
.numbered > li h3 a { text-decoration: none; color: var(--oxblood-deep); }
.numbered > li h3 a:hover { text-decoration: underline; }
.numbered .nutshell { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); display: block; margin-bottom: 0.3rem; }

.timeline { list-style: none; padding: 0; margin: 2rem 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 0.55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline .when { display: block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.2rem; }
.timeline h3 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { padding: 1.6rem 0; border-top: 1px solid var(--line-soft); }
.article-list li:first-child { border-top: 0; padding-top: 0; }
.article-list .meta { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.3rem; }
.article-list h3 { margin-bottom: 0.4rem; }
.article-list h3 a { text-decoration: none; color: var(--oxblood-deep); }
.article-list h3 a:hover { text-decoration: underline; }
.article-list p { margin: 0; color: var(--ink-soft); }

details.qa { border-top: 1px solid var(--line-soft); padding: 0.4rem 0; }
details.qa:last-of-type { border-bottom: 1px solid var(--line-soft); }
details.qa summary { cursor: pointer; padding: 0.9rem 2rem 0.9rem 0; font-size: 1.12rem; color: var(--oxblood-deep); list-style: none; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.75rem; color: var(--gold); font-size: 1.3rem; }
details.qa[open] summary::after { content: "-"; }
details.qa .qa-body { padding: 0 0 1rem; }

.glossary-filter { margin: 0 0 2rem; }
.glossary-filter label { display: block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.5rem; }
.glossary-filter input { width: 100%; max-width: 420px; padding: 0.7rem 0.9rem; font: inherit; border: 1px solid var(--line); background: var(--cream); color: var(--ink); }
.glossary dt { font-size: 1.15rem; color: var(--oxblood-deep); margin-top: 1.5rem; }
.glossary dd { margin: 0.25rem 0 0; color: var(--ink-soft); }
.glossary-letter { display: block; margin-top: 2.5rem; font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line-soft); padding-bottom: 0.3rem; }
.glossary-empty { color: var(--muted); font-style: italic; }

.path-box { background: var(--cream); border: 1px solid var(--line); padding: 1.6rem 1.8rem; margin: 1.8rem 0; }
.path-box h3 { margin-top: 0; }
.path-progress { height: 6px; background: var(--parchment-deep); border: 1px solid var(--line); margin: 0.8rem 0 1rem; }
.path-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.4s ease; }
.path-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.path-list li { font-size: 0.96rem; padding-left: 1.4rem; position: relative; break-inside: avoid; margin-bottom: 0.4rem; }
.path-list li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 9px; height: 9px; border: 1px solid var(--gold); border-radius: 50%; }
.path-list li.done::before { background: var(--gold); }
.path-list a { text-decoration: none; color: var(--ink-soft); }
.path-list li.done a { color: var(--oxblood-deep); }

.stewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; margin: 1.5rem 0; }
.steward { border-top: 2px solid var(--gold); padding-top: 0.9rem; }
.steward h3 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.steward .role { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.5rem; }
.steward p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }

.tree { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.6rem 0; }
.tree div { background: var(--cream); border: 1px solid var(--line); padding: 1.3rem 1.5rem; }
.tree h3 { margin-top: 0; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.tree ol { margin: 0; padding-left: 1.3rem; }
.tree li { margin-bottom: 0.3rem; }

.site-footer { background: var(--oxblood-deep); color: #e8dcc0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: #d4b36a; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.96rem; }
.site-footer a { color: #f1e6cc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: 0.96rem; color: #e1d3b3; }
.footer-note { font-size: 0.86rem; color: #c9b893; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer .seal { color: #d4b36a; }
.footer-quote { margin: 0; }
.footer-quote p { font-style: italic; font-size: 1.05rem; color: #f3e9d2; }
.footer-quote cite { color: #d4b36a; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.2rem 0; }
.footer-base p { margin: 0; font-size: 0.82rem; color: #c9b893; text-align: center; }

.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; background: var(--cream); border: 1px solid var(--line); color: var(--oxblood-deep); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.6rem 0.9rem; box-shadow: 0 6px 18px rgba(60, 40, 10, 0.15); z-index: 30; }
.to-top[hidden] { display: none; }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.sitemap-grid h2 { font-size: 1.1rem; margin-top: 0; padding-top: 0; border: 0; }
.sitemap-grid h2::before { display: none; }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; }
.sitemap-grid li { margin-bottom: 0.4rem; font-size: 0.98rem; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-aside { position: static; border-top: 1px solid var(--line); padding-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tree { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; border-top: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; width: 100%; padding: 0.5rem 0 1rem; }
  .site-nav > ul > li > a { padding: 0.8rem 1.25rem; }
  .site-nav li.has-children { display: grid; grid-template-columns: 1fr auto; }
  .sub-toggle { display: block; background: none; border: 0; width: 3rem; cursor: pointer; position: relative; }
  .sub-toggle::before { content: "+"; color: var(--gold); font-size: 1.4rem; font-family: var(--serif); }
  .has-children.open .sub-toggle::before { content: "-"; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 1px solid var(--line); margin: 0 0 0.6rem 1.4rem; padding: 0; display: none; grid-column: 1 / -1; min-width: 0; }
  .has-children.open .submenu { display: block; }
  .has-children:hover > .submenu, .has-children:focus-within > .submenu { display: none; }
  .has-children.open:hover > .submenu, .has-children.open:focus-within > .submenu { display: block; }
  .submenu li:first-child a { border-bottom: 0; margin-bottom: 0; padding-bottom: 0.45rem; }
  .masthead { padding: 1rem 0 0.9rem; }
  .brand-name { font-size: 1.5rem; }
  .brand-sub { display: none; }
  .hero { padding: 3rem 0 2.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.6rem; }
  .path-list { columns: 1; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
  .pager-next { margin-left: 0; text-align: left; }
}

@media print {
  .site-header, .site-footer, .page-aside, .pager, .to-top, .btn-row { display: none; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}
