@font-face { font-family: 'Barlow'; src: url('../../assets/fonts/Barlow-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('../../assets/fonts/BarlowSemiCondensed-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
:root {
  --paper: #f3efe6;
  --paper-deep: #ebe6dc;
  --ink: #292b25;
  --muted: #62665b;
  --rule: #aaa397;
  --green: #30523b;
  --green-pale: #dce3d9;
  --red: #aa2a24;
  --body: Bahnschrift, 'Barlow', sans-serif;
  --heading: 'Bahnschrift SemiCondensed', 'Barlow Semi Condensed', sans-serif;
  color: var(--ink);
  background: var(--paper-deep);
  font-family: var(--body);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); font-size: 16px; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .16em; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #a14632; outline-offset: 6px; }
.skip-link { position: fixed; z-index: 20; top: -80px; left: 20px; padding: 10px 14px; color: var(--paper); background: var(--ink); }
.skip-link:focus { top: 12px; }

.site-header-inner, .site-footer { width: min(900px, calc(100% - 64px)); margin-inline: auto; }
.site-header-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-wordmark { display: block; line-height: 0; flex-shrink: 0; }
.site-wordmark img { display: block; width: 255px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .site-download { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; color: #faf8ee; background: #36583e; border: 1px solid #29462f; border-radius: 9px; box-shadow: inset 0 1px 0 #ffffff25, 0 2px 0 #213e28; font-size: 16px; line-height: 1.25; text-decoration: none; }
.site-nav .site-download:hover { background: #29472f; text-decoration: none; }
.site-download:active { transform: translateY(1px); box-shadow: inset 0 1px 3px #0003; }

.manual-shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); width: min(1440px, 100%); min-height: 100vh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 28px rgb(35 36 31 / .10); }
.contents { position: sticky; top: 0; height: 100vh; padding: 44px 28px 32px 36px; overflow-y: auto; border-right: 1px solid var(--rule); background: #e9e4da; }
.contents-heading { margin-bottom: 20px; color: var(--muted); font: 600 12px/1 "Bahnschrift SemiCondensed", Bahnschrift, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.contents nav { display: grid; gap: 2px; }
.contents nav a { padding: 7px 10px 7px 13px; color: #4d4b44; border-left: 2px solid transparent; font: 600 13px/1.25 "Bahnschrift SemiCondensed", Bahnschrift, sans-serif; letter-spacing: .035em; text-decoration: none; }
.contents nav a:hover { color: var(--ink); background: rgb(255 255 255 / .28); }
.contents nav a.is-current { color: var(--green); border-left-color: var(--green); background: rgb(40 91 50 / .06); }
.contents-foot { margin-top: 32px; padding-top: 15px; color: #858078; border-top: 1px solid #c4beb3; font: 600 10px/1.45 "Bahnschrift SemiCondensed", Bahnschrift, sans-serif; letter-spacing: .06em; text-transform: uppercase; }

.manual-content { width: min(100%, 1030px); padding: 54px 72px 90px; }
.manual-title, .chapter-title, .section-title { font-family: var(--heading); font-weight: 500; }
.manual-title { max-width: 760px; margin: 0; font-size: 38px; line-height: 1.14; letter-spacing: -.35px; }
.manual-title + p { margin: 12px 0 54px; color: var(--muted); font-size: 14px; }
.edition { margin: 20px 0 82px !important; color: var(--muted); font: 600 12px/1.3 "Bahnschrift SemiCondensed", Bahnschrift, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.chapter-title { margin: 64px 0 26px; padding: 0 0 12px; border-bottom: 2px solid var(--ink); font-size: 26px; line-height: 1.22; scroll-margin-top: 24px; }
.section-title { margin: 42px 0 16px; font-size: 21px; line-height: 1.28; scroll-margin-top: 24px; }
.manual-content > p, .manual-content > ol, .manual-content > ul, .manual-content > blockquote, .manual-content > pre { width: min(100%, 720px); }
p, li { font-size: 17px; line-height: 1.62; }
p { margin: 0 0 19px; }
ol, ul { margin: 0 0 25px; padding-left: 27px; }
li { padding-left: 6px; }
li + li { margin-top: 7px; }
li ul { margin: 9px 0 3px; }
strong { font-family: "Bahnschrift SemiCondensed", Bahnschrift, sans-serif; font-weight: 650; letter-spacing: .018em; }
code { padding: .07em .28em; color: #30312c; background: #dfdad0; border-radius: 2px; font-family: "Cascadia Mono", Consolas, monospace; font-size: .87em; }
pre { margin: 26px 0 30px; padding: 22px 24px; color: #eae7de; background: #242520; border-left: 5px solid var(--green); overflow-x: auto; }
pre code { padding: 0; color: inherit; background: transparent; font-size: 14px; line-height: 1.55; }
blockquote { margin: 28px 0; padding: 16px 20px 16px 24px; color: #46463f; background: var(--green-pale); border-left: 4px solid var(--green); }
blockquote p, blockquote { font-size: 16px; line-height: 1.5; }

.manual-figure { width: min(100%, 860px); margin: 36px 0 54px; }
.manual-figure img { display: block; width: 100%; height: auto; background: var(--paper); }
.manual-figure--wide { width: min(100%, 940px); }
.manual-figure--bleed { width: min(100%, 1120px); }

.table-scroll { width: min(100%, 860px); margin: 26px 0 42px; overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
th, td { padding: 11px 13px; vertical-align: top; border-bottom: 1px solid #c9c3b8; text-align: left; }
th { color: var(--green); background: #e8e4da; font: 650 12px/1.3 "Bahnschrift SemiCondensed", Bahnschrift, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
td:first-child, th:first-child { width: 30%; }
tr:last-child td { border-bottom: 0; }

.manual-footer { display: flex; margin-top: 92px; padding-top: 18px; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--rule); font: 600 11px/1 "Bahnschrift SemiCondensed", Bahnschrift, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 22px 4px 28px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; font-size: inherit; }
.publisher { margin-left: 10px; }
.site-footer-links { display: flex; align-items: center; gap: 18px; }
.site-footer-links a { color: inherit; text-decoration: none; }
.site-footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .site-wordmark img { width: 230px; }
  .site-nav { gap: 20px; }
  .manual-shell { grid-template-columns: 1fr; }
  .contents { position: static; height: auto; padding: 26px 32px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .contents nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contents-foot { display: none; }
  .manual-content { padding: 58px 46px 82px; }
  .manual-figure--bleed { width: 100%; }
}

@media (max-width: 760px) {
  .site-header-inner, .site-footer { width: calc(100% - 40px); }
  .site-header-inner { flex-wrap: wrap; gap: 18px; padding: 25px 0 10px; }
  .site-wordmark img { width: 230px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 16px; white-space: nowrap; }
  .site-nav .site-download { padding: 10px 13px; font-size: 15px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 12px; }
  .site-footer-links { flex-wrap: wrap; gap: 10px 18px; }
  .contents { padding: 22px; }
  .contents nav { grid-template-columns: 1fr; }
  .manual-content { padding: 42px 24px 68px; }
  .manual-title { font-size: 34px; }
  .manual-title + p { margin-bottom: 44px; }
  .edition { margin-bottom: 52px !important; }
  .chapter-title { margin-top: 58px; font-size: 26px; }
  p, li { font-size: 17px; }
}

@media (max-width: 360px) {
  .site-nav { gap: 8px; font-size: 14px; }
  .site-nav .site-download { padding: 10px; font-size: 14px; }
  .manual-title { font-size: 32px; }
}

@media print {
  :root, body { background: #fff; }
  .site-masthead, .site-footer, .contents, .skip-link { display: none !important; }
  .manual-shell { display: block; width: auto; min-height: 0; padding: 0; background: #fff; box-shadow: none; }
  .manual-content { width: auto; padding: 16mm 15mm; }
  .manual-title { font-size: 42pt; }
  .chapter-title { break-before: page; margin-top: 0; scroll-margin: 0; }
  .section-title { break-after: avoid; }
  .manual-figure, .manual-figure--wide, .manual-figure--bleed, .table-scroll, blockquote, pre { width: 100%; break-inside: avoid; }
  .manual-figure { margin: 8mm 0 10mm; }
  .table-scroll { overflow: visible; }
  a { color: inherit; text-decoration: none; }
  .manual-footer { display: none; }
}
