:root { --ink: #1b2922; --muted: #5e6f63; --green: #244d38; --lime: #daf583; --paper: #f4f5ef; --line: #dce3d8; }
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { color: #48754c; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #658c42; outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 20px; top: -100px; z-index: 10; padding: 10px; background: white; }
.skip:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; padding: 28px 23px 20px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; z-index: 3; }
.brand { color: var(--ink); text-decoration: none; font-size: 26px; line-height: 1; letter-spacing: -0.07em; font-weight: 850; }
.brand span { display: block; color: var(--muted); letter-spacing: 0.15em; font-size: 10px; margin-top: 12px; font-weight: 650; }
.languages { display: flex; gap: 8px; font-size: 12px; align-items: center; }
.languages a { text-decoration: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; }
.languages a[aria-current='page'] { background: var(--green); color: #fff; border-color: var(--green); }
.search-label { font-size: 12px; font-weight: 650; display: block; margin-bottom: 7px; }
.search-row { display: flex; align-items: center; gap: 6px; }
.search-row input { min-width: 0; width: 100%; border: 1px solid #b6c6b6; border-radius: 6px; padding: 9px 10px; font-size: 13px; background: #f9faf7; }
.search-row button { border: 1px solid var(--line); background: white; border-radius: 5px; width: 34px; flex-shrink: 0; height: 38px; color: var(--muted); }
.search-status { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; min-height: 16px; }
.toc { overflow-y: auto; flex: 1; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 1px 0; }
.toc a { display: flex; gap: 10px; padding: 7px 9px; border-radius: 5px; text-decoration: none; color: #4e6053; font-size: 12px; line-height: 1.5; }
.toc a span { color: #879680; font-size: 10px; min-width: 17px; padding-top: 1px; }
.toc a:hover, .toc a.active { background: #edf3e6; color: #203b28; }
.side-footer { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; line-height: 1.6; }
.side-footer button { display: block; border: 0; background: none; color: var(--green); padding: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 5px; }
.menu-toggle { display: none; }
main { margin-left: 280px; padding: 38px clamp(24px, 4vw, 72px) 50px; max-width: 1520px; }
.hero { position: relative; background: radial-gradient(ellipse at right top, #3b5940, #17281f 75%); color: #f7f8f0; border-radius: 16px; padding: 44px; margin-bottom: 30px; overflow: hidden; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.17em; color: #d1ee99; text-transform: uppercase; }
.hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4.5vw, 66px); font-weight: 400; line-height: 1.08; letter-spacing: -0.05em; margin: 19px 0; max-width: 640px; }
.hero p { max-width: 620px; font-size: 15px; line-height: 1.8; color: #d2ddce; }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.hero-links a { padding: 9px 15px; background: var(--lime); color: #203121; border: 1px solid var(--lime); border-radius: 6px; font-size: 13px; text-decoration: none; font-weight: 650; }
.hero-links a.secondary { color: #f2f6e9; background: transparent; border-color: #71866b; }
.version-bar { font-size: 11px; color: #b9c9b2; border-top: 1px solid #ffffff28; padding-top: 19px; margin-top: 28px; line-height: 1.8; }
.chapter { scroll-margin-top: 30px; border: 1px solid var(--line); background: #fff; padding: 34px clamp(22px, 3vw, 42px); border-radius: 12px; margin-bottom: 23px; }
.chapter-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid #e6ebe1; padding-bottom: 20px; margin-bottom: 22px; }
.chapter-number { font: 12px/1.5 ui-monospace, monospace; color: #6b845b; }
h2 { font-size: 28px; line-height: 1.3; letter-spacing: -0.035em; margin: 0; }
h3 { font-size: 19px; line-height: 1.4; margin: 29px 0 10px; letter-spacing: -0.025em; }
p { margin: 13px 0; }
.lead { font-size: 18px; color: #3b5542; line-height: 1.8; }
.chapter ul, .chapter ol { padding-left: 24px; }
.chapter li { margin-bottom: 9px; }
.steps { padding-left: 25px !important; list-style: decimal; }
.steps li { padding: 3px 0 12px 9px; margin-bottom: 8px; }
.steps li::marker { color: #4b7240; font-weight: 700; }
.callout { background: #f1f6e9; border: 1px solid #cfdfbe; border-left: 4px solid #88aa57; border-radius: 7px; padding: 18px 21px; margin: 23px 0; }
.callout strong { font-size: 15px; }
.callout p { margin: 7px 0 0; font-size: 14px; }
.note, .resource { font-size: 13px; color: var(--muted); line-height: 1.8; }
.resource { padding-top: 13px; border-top: 1px solid #e8ede2; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.75; text-align: left; }
th { background: #eef3e9; color: #35503a; font-size: 12px; font-weight: 700; }
th, td { vertical-align: top; padding: 14px 16px; border-bottom: 1px solid #e5ebdf; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; min-width: 160px; }
code { font: 0.85em/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 2px 5px; border-radius: 4px; background: #f0f3ec; overflow-wrap: anywhere; }
pre { background: #1d2d23; color: #e2efce; border-radius: 8px; padding: 22px; overflow-x: auto; font-size: 13px; line-height: 1.7; }
pre code { background: transparent; padding: 0; color: inherit; overflow-wrap: normal; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.home-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fafcf7; }
.home-card img { display: block; width: 100%; height: auto; aspect-ratio: 1265 / 712; object-fit: cover; }
.home-card div { padding: 13px 15px; }
.home-card strong { font-size: 14px; }
.home-card p { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.screen { margin: 25px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.screen img { width: 100%; max-height: 420px; display: block; object-fit: cover; object-position: top; }
figcaption { font-size: 11px; color: var(--muted); padding: 12px 16px; background: #f7f9f2; line-height: 1.6; }
.checklist { display: grid; gap: 8px; }
.checklist label { display: flex; align-items: start; gap: 12px; padding: 12px 15px; background: #f5f8f0; border-radius: 5px; font-size: 14px; cursor: pointer; }
.checklist input { margin-top: 7px; accent-color: var(--green); }
.no-results { background: #fff; padding: 35px; border: 1px solid var(--line); border-radius: 9px; }
footer { color: var(--muted); font-size: 12px; margin: 30px 0 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (min-width: 1500px) { main { margin-right: auto; } }
@media (max-width: 1000px) { .sidebar { width: 240px; padding: 25px 17px; } main { margin-left: 240px; padding: 26px; } .hero { padding: 30px; } .home-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .sidebar { position: relative; inset: auto; width: auto; padding: 18px 20px; gap: 13px; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { font-size: 24px; }
    .brand span { display: inline; font-size: 9px; margin-left: 14px; }
    .languages { position: absolute; top: 58px; right: 20px; }
    .search { margin-top: 28px; }
    .search-row input { padding: 10px; }
    .toc { display: none; max-height: 50vh; }
    .sidebar.is-open .toc { display: block; }
    .menu-toggle { display: block; width: 100%; text-align: left; border: 1px solid #c7d5bd; background: #f2f7ec; color: var(--green); border-radius: 5px; padding: 9px 12px; font-size: 13px; }
    .side-footer { display: none; }
    main { margin-left: 0; padding: 20px 14px; }
    .hero { padding: 28px 24px; }
    .hero h1 { font-size: 39px; }
    .chapter { padding: 25px 20px; }
    .chapter-head { gap: 10px; }
    h2 { font-size: 24px; }
    body { font-size: 15px; }
    .lead { font-size: 17px; }
    th, td { padding: 11px 12px; }
    .table-wrap table { min-width: 500px; }
    .home-grid { grid-template-columns: 1fr; }
}
@media print {
    @page { margin: 18mm; }
    html { scroll-behavior: auto; }
    body { background: #fff; color: #111; font-size: 10pt; }
    .sidebar, .hero-links, .skip, .no-results { display: none !important; }
    main { margin: 0; padding: 0; max-width: none; }
    .hero { padding: 0 0 22px; background: none; color: #111; border-radius: 0; border-bottom: 2px solid #333; }
    .hero h1 { font-size: 30pt; }
    .hero p, .eyebrow, .version-bar { color: #333; }
    .chapter { display: block !important; padding: 22px 0; border: 0; border-bottom: 1px solid #aaa; border-radius: 0; }
    .chapter-head, h3 { break-after: avoid; }
    h2 { font-size: 18pt; }
    h3 { font-size: 13pt; }
    .screen { display: none; }
    .home-grid { grid-template-columns: repeat(2, 1fr); }
    .home-card { break-inside: avoid; }
    .table-wrap { overflow: visible; }
    table { font-size: 8.5pt; min-width: 0 !important; }
    pre { white-space: pre-wrap; background: #eee; color: #111; }
    footer { font-size: 8pt; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.tutorial-shot { margin: 26px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f9fbf6; }
.tutorial-shot img { display: block; width: 100%; height: auto; }
.tutorial-shot figcaption { font-size: 13px; line-height: 1.7; }
.tutorial-shot figcaption span { display: block; margin-top: 5px; font-size: 11px; }
@media print { .tutorial-shot { break-inside: avoid; } .tutorial-shot img { max-height: 135mm; object-fit: contain; object-position: top; } }

.shot-window { position: relative; overflow: hidden; width: 100%; margin: 0 auto; background: #fff; }
.tutorial-shot .shot-window img { position: absolute; top: 0; max-width: none; height: auto; }
@media print { .tutorial-shot .shot-window img { max-height: none; object-fit: fill; } }
