/* App documents: a reading room, a field manual, and a quiet notebook. */
.app-docs {
  --doc-bg: #f5f0e6;
  --doc-surface: #fbf8f1;
  --doc-soft: #e9ecdf;
  --doc-ink: #223229;
  --doc-muted: #596456;
  --doc-line: #cfd4c4;
  --doc-accent: #45623b;
  --doc-display: var(--serif);
  --doc-radius: 18px;
  background: var(--doc-bg);
  color: var(--doc-ink);
}
.app-docs.apron-page {
  --doc-bg: #09121d;
  --doc-surface: #101e2d;
  --doc-soft: #172939;
  --doc-ink: #f0f4fa;
  --doc-muted: #afbed0;
  --doc-line: #344759;
  --doc-accent: #ffc21c;
  --doc-display: var(--sans);
  --doc-radius: 5px;
}
.app-docs.sacred-page {
  --doc-bg: #0d1930;
  --doc-surface: #f7f2e9;
  --doc-soft: #eae2d4;
  --doc-ink: #233453;
  --doc-muted: #586174;
  --doc-line: #d1c5b2;
  --doc-accent: #80602a;
  --doc-radius: 4px;
}
.docs-shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.docs-masthead { color: var(--doc-ink); }
.sacred-page .docs-masthead { color: #f7f2e9; --doc-line: #46516a; --doc-muted: #c0c7d6; --doc-accent: #e3c07e; }
.docs-appbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 19px; border-block: 1px solid var(--doc-line); }
.docs-app-link { display: inline-flex; align-items: center; gap: 12px; font: 400 26px/1.2 var(--doc-display); color: inherit; }
.docs-app-link img { width: 36px; height: 36px; border-radius: 9px; }
.apron-page .docs-app-link { font: 600 18px/1.2 var(--sans); letter-spacing: .02em; }
.docs-back { color: var(--doc-muted); font-size: 13px; display: inline-flex; gap: 16px; align-items: center; min-height: 40px; }
.docs-hero { display: grid; grid-template-columns: 1fr 300px; align-items: end; gap: 40px; padding: 48px 0 36px; }
.docs-kicker { margin: 0 0 15px; color: var(--doc-accent); font: 500 11px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.apron-page .docs-kicker { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.docs-hero h1 { font: 400 clamp(40px, 4.8vw, 62px)/1.08 var(--doc-display); letter-spacing: -.025em; color: inherit; margin: 0 0 15px; }
.apron-page .docs-hero h1 { font-weight: 600; font-size: clamp(38px, 4.5vw, 57px); }
.docs-lead { color: var(--doc-muted); font-size: 17px; line-height: 1.65; max-width: 540px; margin: 0; text-wrap: pretty; }
.docs-edition { border-left: 1px solid var(--doc-line); padding-left: 24px; margin: 0 0 3px; font-size: 12px; line-height: 1.8; color: var(--doc-muted); }
.docs-edition strong { display: block; font-weight: 500; color: inherit; }
.docs-edition span { display: block; }
.docs-status { display: inline-flex; align-items: center; gap: 8px; color: var(--doc-accent); margin-bottom: 9px; font-size: 12px; }
.docs-status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.docs-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--doc-line); }
.docs-tabs a { color: var(--doc-muted); padding: 16px 0; min-height: 52px; font-size: 14px; position: relative; }
.docs-tabs a[aria-current="page"] { color: var(--doc-accent); font-weight: 600; }
.docs-tabs a[aria-current="page"]::after { content: ""; position: absolute; height: 3px; bottom: -1px; inset-inline: 0; background: currentColor; }
.docs-masthead a:hover { color: var(--doc-accent); }
.docs-reading { background: var(--doc-bg); padding: 40px 0 64px; }
.sacred-page .docs-reading { background: var(--doc-surface); }
.docs-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--doc-line); border-radius: var(--doc-radius); overflow: hidden; background: var(--doc-surface); margin-bottom: 45px; }
.docs-summary > div { padding: 25px 27px; }
.docs-summary > div + div { border-left: 1px solid var(--doc-line); }
.docs-summary dt { color: var(--doc-accent); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.docs-summary dd { margin: 0; color: var(--doc-muted); font-size: 14px; line-height: 1.65; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 65px; align-items: start; }
.docs-toc { position: sticky; top: 28px; font-size: 13px; }
.docs-toc > p { margin: 0 0 15px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--doc-muted); }
.docs-toc ol { list-style: none; padding: 0; margin: 0; }
.docs-toc li { margin: 0; }
.docs-toc a { display: flex; gap: 13px; color: var(--doc-muted); padding: 9px 0; line-height: 1.45; }
.docs-toc a span { color: var(--doc-accent); font: 400 10px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; }
.docs-toc a:hover { color: var(--doc-ink); text-decoration: underline; text-underline-offset: 4px; }
.docs-toc .docs-help-link { border-top: 1px solid var(--doc-line); margin-top: 19px; padding-top: 19px; color: var(--doc-accent); }
.docs-article { min-width: 0; max-width: 800px; color: var(--doc-ink); }
.docs-section { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--doc-line); scroll-margin-top: 24px; }
.docs-section:last-child { margin-bottom: 0; }
.docs-section h2 { font: 400 31px/1.2 var(--doc-display); color: var(--doc-ink); letter-spacing: -.01em; margin: 0 0 19px; }
.apron-page .docs-section h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.docs-section h3 { color: var(--doc-ink); font: 600 16px/1.5 var(--sans); margin: 25px 0 10px; }
.docs-section p, .docs-section li { font-size: 15px; line-height: 1.85; color: var(--doc-muted); }
.docs-section p { margin: 0 0 15px; }
.docs-section p:last-child { margin-bottom: 0; }
.docs-section ul, .docs-section ol { padding-left: 21px; margin: 12px 0 17px; }
.docs-section li { padding-left: 3px; margin: 8px 0; }
.docs-section li::marker { color: var(--doc-accent); }
.docs-section strong { color: var(--doc-ink); font-weight: 600; }
.docs-section a, .docs-bottom a { color: var(--doc-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.docs-section a:hover, .docs-bottom a:hover { text-decoration-thickness: 2px; }
.docs-callout { padding: 20px 24px; background: var(--doc-soft); border-left: 3px solid var(--doc-accent); margin: 22px 0; border-radius: 0 var(--doc-radius) var(--doc-radius) 0; }
.docs-callout p { font-size: 14px; line-height: 1.75; }
.docs-provider-list { margin: 15px 0 0; }
.docs-provider-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--doc-line); }
.docs-provider-list dt { font-size: 14px; font-weight: 600; padding-top: 2px; }
.docs-provider-list dd { margin: 0; color: var(--doc-muted); font-size: 14px; line-height: 1.8; }
.docs-faq { border: 1px solid var(--doc-line); border-radius: var(--doc-radius); padding: 0 20px; background: var(--doc-surface); margin: 12px 0; }
.docs-faq summary { cursor: pointer; padding: 20px 0; color: var(--doc-ink); font: 500 15px/1.6 var(--sans); }
.docs-faq summary::marker { color: var(--doc-accent); }
.docs-faq[open] summary { border-bottom: 1px solid var(--doc-line); margin-bottom: 17px; }
.docs-faq > div { padding-bottom: 20px; }
.docs-contact { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; background: var(--doc-soft); border-radius: var(--doc-radius); padding: 26px; margin: 22px 0; }
.docs-contact p { margin: 0; font-size: 14px; }
.docs-contact .docs-mail { color: var(--doc-bg); background: var(--doc-accent); padding: 12px 18px; border-radius: 30px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 22px; align-items: center; }
.wawata-page .docs-contact .docs-mail,.sacred-page .docs-contact .docs-mail { color: #fffaf0; }
.apron-page .docs-contact .docs-mail { border-radius: 4px; }
.docs-contact .docs-mail:hover { filter: brightness(1.12); }
.docs-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; font-size: 13px; line-height: 1.7; color: var(--doc-muted); }
.docs-reading :focus-visible { outline: 2px solid var(--doc-accent); outline-offset: 5px; }
.app-docs .site-header { position: relative; }
@media (max-width: 1000px) {
  .docs-shell { width: calc(100% - 48px); }
  .docs-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 35px; }
  .docs-summary > div { padding: 21px; }
  .docs-hero { grid-template-columns: 1fr 240px; }
  .docs-contact { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 760px) {
  .docs-shell { width: calc(100% - 40px); }
  .docs-hero { grid-template-columns: 1fr; gap: 25px; padding: 34px 0 22px; }
  .docs-edition { border-left: 0; padding-left: 0; font-size: 11px; }
  .docs-edition span { display: inline; }
  .docs-edition strong { display: inline; margin-right: 10px; }
  .docs-status { margin: 0 0 5px; }
  .docs-app-link { font-size: 23px; }
  .docs-back { font-size: 12px; gap: 8px; }
  .docs-summary { grid-template-columns: 1fr; margin-bottom: 28px; }
  .docs-summary > div { padding: 17px 20px; }
  .docs-summary > div + div { border-left: 0; border-top: 1px solid var(--doc-line); }
  .docs-summary dt { margin-bottom: 4px; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-toc { position: static; border-bottom: 1px solid var(--doc-line); padding-bottom: 22px; }
  .docs-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .docs-toc a { padding: 8px 0; font-size: 12px; gap: 8px; }
  .docs-toc .docs-help-link { display: none; }
  .docs-reading { padding-top: 25px; padding-bottom: 38px; }
  .docs-section { margin-bottom: 27px; padding-bottom: 27px; }
  .docs-section h2 { font-size: 29px; }
  .docs-provider-list > div { grid-template-columns: 1fr; gap: 5px; }
  .docs-bottom { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .docs-shell { width: calc(100% - 32px); }
  .docs-app-link { gap: 8px; font-size: 21px; }
  .apron-page .docs-app-link { font-size: 16px; }
  .docs-appbar { gap: 14px; }
  .docs-toc ol { grid-template-columns: 1fr; }
  .docs-tabs { gap: 27px; }
  .docs-callout,.docs-contact { padding: 18px; }
}
@media print {
  .app-docs { background: white; }
  .app-docs .site-header,.app-docs .site-footer,.docs-toc,.docs-tabs,.docs-back,.docs-bottom,.docs-contact { display: none; }
  .docs-shell { width: 100%; }
  .app-docs .docs-masthead,.docs-reading { background: white; color: black; --doc-ink: #111; --doc-muted: #333; --doc-accent: #333; --doc-line: #bbb; --doc-surface: white; --doc-soft: #eee; }
  .docs-hero { padding: 25px 0; }
  .docs-layout { display: block; }
  .docs-article { max-width: none; }
  .docs-section h2 { break-after: avoid; }
  .docs-summary { break-inside: avoid; margin-bottom: 30px; }
  .docs-section a { color: black; }
}
