/* The same warm paper as the catalogue, with a quiet surface for reading. */
.portal-document .how-page {
  background: #f6efea;
  color: #222723;
  min-height: 100svh;
}
.portal-document .how-page main { padding-top: clamp(92px, 8vw, 138px); }
.how-page .scene-header { border-bottom: 1px solid #e6ded7; }
.guide-wrap {
  width: min(calc(100% - 64px), 1176px);
  margin-inline: auto;
  padding: 18px 0 clamp(48px, 8vw, 100px);
  font-family: Roundo, "Segoe UI", sans-serif;
}
.guide-path { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 15px; color: #60564f; }
.guide-path a { color: inherit; text-underline-offset: 3px; }
.guide-path span[aria-hidden] { color: #9a8a80; }
.guide-layout { display: grid; align-items: start; grid-template-columns: minmax(210px, .36fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 70px); }
.guide-nav { position: sticky; top: 126px; padding: 21px 0; }
.guide-nav h2 { margin: 0 0 20px; font: 750 25px/1.2 Roundo, sans-serif; letter-spacing: -.025em; }
.guide-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; margin-bottom: 4px; padding: 12px 14px;
  border-radius: 8px; color: #4a413b; font: 620 16px/1.4 Roundo, sans-serif; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.guide-nav a:hover { background: #efe1d8; }
.guide-nav a[aria-current="page"] { background: #f3d6c5; color: #682b16; font-weight: 760; }
.guide-nav a[aria-current="page"]::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border: solid currentColor; border-width: 1.7px 1.7px 0 0; transform: rotate(45deg);
}
.guide-article {
  min-width: 0; padding: clamp(26px, 4.3vw, 66px); border: 1px solid #e5dcd5;
  border-radius: 15px; background: #fff; overflow-wrap: break-word;
}
.guide-article h1 {
  margin: 0 0 30px; padding-bottom: 25px; border-bottom: 1px solid #e9e2dc;
  font: 780 clamp(32px, 3.25vw, 48px)/1.1 Roundo, sans-serif; letter-spacing: -.035em;
}
.guide-article h2 { margin: 36px 0 14px; font: 750 clamp(22px, 2vw, 28px)/1.22 Roundo, sans-serif; letter-spacing: -.025em; }
.guide-level h2 span { color: #934422; white-space: nowrap; }
.guide-article p { margin: 0 0 16px; max-width: 68ch; color: #443f39; font: 460 18px/1.62 Roundo, "Segoe UI", sans-serif; }
.guide-article .guide-lead { font-size: clamp(20px, 1.65vw, 24px); font-weight: 590; line-height: 1.45; color: #252925; }
.guide-level:first-of-type h2 { margin-top: 0; }
.guide-level + .guide-level { margin-top: 30px; padding-top: 30px; border-top: 1px solid #e9e2dc; }
.guide-level + .guide-level h2 { margin-top: 0; }
.guide-level p:last-child { margin-bottom: 0; }
.guide-audit { margin: 20px 0 0; padding-inline-start: 1.65rem; list-style: decimal outside; }
.guide-audit li + li { margin-block-start: 20px; }
.guide-audit li::marker { color: #934422; font-weight: 700; }
.guide-audit h3 { margin: 0 0 4px; font: 720 1.125rem/1.4 Roundo, "Segoe UI", sans-serif; }
.guide-next { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; color: #943f22; font-weight: 720; text-underline-offset: 4px; }
.guide-next:hover { color: #63290f; }
.guide-wrap a:focus-visible { outline: 2px solid #9c411e; outline-offset: 3px; }
@media (max-width: 760px) {
  .portal-document .how-page main { padding-top: 84px; }
  .guide-wrap { width: min(calc(100% - 32px), 620px); padding-top: 8px; }
  .guide-path { margin-bottom: 18px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guide-nav { position: static; padding: 0; }
  .guide-nav h2 { font-size: 22px; margin-bottom: 10px; }
  .guide-nav a { min-height: 44px; margin: 0; }
  .guide-article { padding: 25px 20px; }
  .guide-article h1 { margin-bottom: 20px; padding-bottom: 18px; }
  .guide-article p { font-size: 17px; line-height: 1.55; }
}
@media (prefers-reduced-motion: reduce) { .guide-nav a { transition: none; } }

.glossary-index ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .55rem 1.3rem; padding-inline-start: 1.2rem; }
.glossary-index li::marker { color: #934422; }
.guide-article a { text-underline-offset: .18em; }
.glossary-section { margin-block: 2.2rem; }
.glossary-section :is(h2, dt) { scroll-margin-top: 7.5rem; }
.glossary-section dl { margin: 0; }
.glossary-section dt { margin: 1.1rem 0 .2rem; font-weight: 750; font-size: 1.13rem; color: #252925; }
.glossary-section dd { margin: 0; max-width: 68ch; font-size: 1.06rem; line-height: 1.55; color: #443f39; }
.glossary-section .glossary-sources { margin-top: 1rem; font-size: .94rem; }
.glossary-index a, .glossary-sources a, .guide-article p a { color: #843b20; }
.glossary-section dt:target { text-decoration: underline; text-decoration-color: #d8875e; text-underline-offset: .23em; }

.glossary-alpha { margin: 1.25rem 0 2rem; }
.glossary-alpha summary { cursor: pointer; color: #843b20; font-weight: 720; padding-block: .5rem; }
.glossary-alpha summary:focus-visible { outline: 2px solid #9c411e; outline-offset: 3px; }
.glossary-alpha ul { columns: 2 14rem; padding-inline-start: 1.3rem; }
.glossary-alpha li { break-inside: avoid; margin-block-end: .45rem; }
.glossary-alpha a { color: #4a413b; }
