/* Dokkaebi field guide: shared editorial system. */
:root {
  color-scheme: light;
  --ivory: #f6f5ee;
  --paper: #fffef9;
  --forest: #19382c;
  --forest-deep: #11291f;
  --lime: #c2dd8c;
  --orange: #d37843;
  --ink: #28382f;
  --muted: #6b746b;
  --line: #dfe2d6;
  --line-strong: #ccd2c3;
  --wash: #ecefe3;
  --sidebar-width: 224px;
  --content-width: 1220px;
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --serif: "Noto Serif KR", "Iowan Old Style", "Batang", "바탕", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--forest-deep); }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .52; }
button, input, select, textarea { max-width: 100%; }
img, picture, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
iframe { border: 0; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--forest); line-height: 1.35; }
h1 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(32px, 3.1vw, 44px); font-weight: 700; letter-spacing: -.05em; }
h2 { margin-bottom: 14px; font-size: 25px; font-weight: 750; letter-spacing: -.045em; }
h3 { margin-bottom: 10px; font-size: 19px; font-weight: 730; letter-spacing: -.035em; }
h4 { font-size: 16px; font-weight: 700; }
p { margin-bottom: 16px; }
small { font-size: 12px; }
strong { font-weight: 750; }
hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 12px; font-weight: 700; }
input, select, textarea { min-width: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--forest); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
[hidden], .search-overlay[hidden], .modal-backdrop[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The left rail is deliberately quiet: type and rules, not icon furniture. */
.sidebar { position: fixed; z-index: 90; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); height: 100vh; height: 100dvh; padding: 32px 18px 22px; overflow-y: auto; background: var(--forest); color: #e8edde; scrollbar-width: thin; scrollbar-color: #55705c var(--forest); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; margin: 0 4px 32px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 42px; border: 1px solid #7b9a61; border-radius: 8px; background: var(--lime); color: var(--forest); font-size: 21px; font-weight: 850; line-height: 1; }
.brand-mark img, .brand-mark svg { width: 26px; height: 26px; object-fit: contain; }
.brand-name { display: block; color: var(--ivory); font-size: 17px; font-weight: 780; letter-spacing: -.06em; line-height: 1.4; }
.brand-sub { display: block; margin-top: 3px; color: #b0c0a9; font-size: 10px; font-weight: 500; letter-spacing: .09em; line-height: 1.5; }
.nav-section { margin-bottom: 24px; }
.nav-label { margin: 0 12px 8px; color: #9eb39d; font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: .12em; }
.nav-link { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 43px; margin: 3px 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 7px; color: #d2dccd; font-size: 13px; font-weight: 550; line-height: 1.6; transition: background-color .16s ease, color .16s ease; }
.nav-link.active { border-color: #d0e4a4; background: var(--lime); color: var(--forest-deep); font-weight: 750; }
.nav-link svg { flex: 0 0 17px; width: 17px; height: 17px; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; margin-left: auto; padding: 0 5px; border: 1px solid #58715b; border-radius: 4px; color: #b8caae; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 20px; }
.nav-link.active .nav-count { border-color: #8bab65; color: var(--forest); }
.sidebar-foot { margin: auto 10px 0; padding-top: 22px; border-top: 1px solid #35513d; color: #a7baa3; font-size: 10px; line-height: 1.9; }
.sidebar-foot p { margin-bottom: 7px; }
.sidebar-foot a { color: #d2dfc6; text-decoration: underline; }
.sidebar :focus-visible { outline-color: var(--lime); }
.nav-link.active:focus-visible { outline-color: var(--ivory); }

.app-main { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 60; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 15px clamp(24px, 3.3vw, 48px); border-bottom: 1px solid #38513d; background: var(--forest); color: #e4ebdc; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; color: #aabd9f; font-size: 11px; line-height: 1.65; }
.breadcrumb a { color: #c6d5bb; }
.breadcrumb [aria-current="page"], .breadcrumb > :last-child { color: #f0f3e8; }
.top-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; font-size: 11px; }
.top-actions .muted { color: #b1c0a8; }
.top-actions .button, .top-actions .search-open { min-height: 34px; border-color: #56714f; background: transparent; color: #edf2e3; font-size: 11px; }
.top-actions kbd { padding: 1px 5px; border: 1px solid #60745a; border-radius: 3px; color: #bacead; font: 10px var(--sans); }
.status-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }
.mobile-toggle { display: none; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 44px; min-height: 40px; padding: 7px 11px; border: 1px solid #65805b; border-radius: 6px; background: transparent; color: var(--ivory); font-size: 12px; font-weight: 650; line-height: 1.4; }
.topbar :focus-visible { outline-color: var(--lime); }
.content { width: 100%; max-width: var(--content-width); min-width: 0; margin: 0 auto; padding: 40px clamp(24px, 3.3vw, 48px) 64px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { max-width: 25ch; }
.page-heading .lead { max-width: 740px; }
.eyebrow { display: block; margin-bottom: 11px; color: #658039; font-size: 10px; font-weight: 800; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; }
.muted { color: var(--muted); }
.lead { margin-bottom: 0; color: #667062; font-size: 15px; line-height: 1.85; letter-spacing: -.015em; }

/* The split is a real image window. No filters or decorative image layers. */
.hero { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); height: 300px; min-height: 300px; overflow: hidden; border: 1px solid #cbd4bf; border-radius: var(--radius); background: var(--forest); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; min-height: 0; padding: 30px 34px; color: #e4ebd9; }
.hero-copy h1, .hero-copy h2 { margin-bottom: 14px; color: var(--ivory); font-family: var(--serif); font-size: clamp(27px, 2.5vw, 36px); font-weight: 700; line-height: 1.4; letter-spacing: -.055em; }
.hero-copy .eyebrow { margin-bottom: 13px; color: var(--lime); font-size: 9px; }
.hero-copy p, .hero-copy .lead { max-width: 43ch; margin-bottom: 20px; color: #c4d0ba; font-size: 13px; line-height: 1.85; }
.hero-copy .button-row { margin-top: 0; }
.hero-copy .button.secondary { border-color: #6f8560; background: transparent; color: #eef3e4; }
.hero-art { position: relative; min-width: 0; min-height: 0; height: 100%; margin: 0; overflow: hidden; background: #283d2a; }
.hero-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
.hero-art > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hero-caption { position: absolute; right: 12px; bottom: 12px; left: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0; padding: 5px 9px; border: 1px solid #60745a; border-radius: 4px; background: #19382cf2; color: #e4ebd9; font-size: 10px; line-height: 1.65; }
.pill { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 4px 9px; border: 1px solid #cddaba; border-radius: 5px; background: #e8efd9; color: #4a652f; font-size: 10px; font-weight: 700; line-height: 1.55; }
.pill.light { border-color: #dedfd3; background: #f2f3e9; color: #67725d; }
.pill.warn { border-color: #e7c6ae; background: #f8e9dc; color: #8a4c27; }
.pill.dark { border-color: #45613d; background: var(--forest); color: #d7e8bf; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 42px; padding: 10px 17px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--forest); font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.button.primary { border-color: var(--forest); background: var(--forest); color: var(--ivory); }
.hero-copy .button.primary { border-color: var(--lime); background: var(--lime); color: var(--forest-deep); }
.button.secondary { border-color: #bfcab0; background: transparent; color: var(--forest); }
.button.small { min-height: 32px; padding: 6px 11px; font-size: 11px; }
.button.ghost { border-color: transparent; background: transparent; color: #526548; }
.button svg, .copy-button svg, .save-toggle svg { flex: 0 0 16px; width: 16px; height: 16px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.quick-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcf5; }
.stat { min-width: 0; padding: 18px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-label { display: block; margin-bottom: 5px; color: #75806b; font-size: 10px; line-height: 1.6; }
.stat-value { display: block; color: var(--forest); font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.05em; line-height: 1.35; }
.stat-value small { margin-left: 3px; color: #75806b; font-size: 10px; font-weight: 500; letter-spacing: 0; }

.section { margin-top: 48px; scroll-margin-top: 104px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head > :first-child { min-width: 0; }
.section-head h2, .section-head h3 { margin-bottom: 5px; }
.section-head > h2, .section-head > h3 { margin-bottom: 0; }
.section-sub { max-width: 720px; margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.text-link { display: inline; flex-shrink: 0; padding-bottom: 2px; border-bottom: 1px solid #95ab79; color: #486036; font-size: 11px; font-weight: 700; line-height: 1.7; }
.grid-2, .grid-3, .grid-4, .two-col, .split { display: grid; gap: 20px; min-width: 0; }
.grid-2, .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.full-width { grid-column: 1 / -1; width: 100%; min-width: 0; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .16s ease; }
.card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 22px; }
.card-image { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; object-fit: cover; background: #dce2d1; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-kicker { display: block; margin-bottom: 9px; color: #718447; font-size: 9px; font-weight: 800; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; }
.card-title { margin: 0 0 10px; color: var(--forest); font-size: 18px; font-weight: 750; line-height: 1.5; letter-spacing: -.04em; }
.card-title a { text-decoration-thickness: 1px; }
.card-description { margin: 0; color: #707769; font-size: 12px; line-height: 1.9; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 18px; padding-top: 13px; border-top: 1px solid #ebede3; color: #7c8573; font-size: 10px; line-height: 1.65; }
.card-body > .card-meta:last-child { margin-top: auto; }
.card-body > .card-description + .card-meta:last-child { margin-top: 18px; }
.number { display: block; margin-bottom: 14px; color: #8a9d63; font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.065em; line-height: 1.2; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; margin-left: 6px; padding: 2px 6px; border: 1px solid #d3ddc2; border-radius: 4px; background: #eaf0dd; color: #556e39; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.5; vertical-align: middle; }
.callout { margin: 24px 0; padding: 19px 22px; border: 1px solid #d5ddc6; border-left: 3px solid #819f54; border-radius: 0 9px 9px 0; background: #eef2e5; color: #4c6040; font-size: 13px; line-height: 1.85; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h3, .callout strong { color: inherit; }
.callout.warn { border-color: #e5d3bf; border-left-color: var(--orange); background: #f6ede2; color: #795439; }
.callout.good { border-color: #cbd9ba; border-left-color: #6e8e46; background: #eaf1df; color: #42603c; }

/* Forms and useful, inspectable result states. */
.finder { padding: 28px; border: 1px solid #cbd5bc; border-radius: var(--radius); background: var(--paper); }
.finder-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { display: block; color: var(--forest); font-size: 12px; font-weight: 750; line-height: 1.65; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #cfd6c2; border-radius: 6px; background: #fffef9; color: var(--forest); font-size: 14px; line-height: 1.5; }
.field select { padding-right: 10px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .search-input::placeholder { color: #929a88; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6f8b50; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b66d40; background: #fff8ef; }
.field small { display: block; color: #78816f; font-size: 10px; line-height: 1.7; }
.field input[type="checkbox"], .field input[type="radio"] { width: 18px; min-height: 18px; height: 18px; padding: 0; }
.finder-results { display: grid; gap: 12px; margin-top: 26px; }
.result-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 15px; min-width: 0; padding: 20px; border: 1px solid #d8dfca; border-radius: 9px; background: #f5f8ee; }
.result-card h3 { margin-bottom: 7px; font-size: 17px; }
.result-card p { margin-bottom: 10px; color: #69765c; font-size: 12px; line-height: 1.9; }
.result-card p:last-child { margin-bottom: 0; }
.result-card > .button, .result-card > .button-row { grid-column: 2; justify-self: start; margin-top: 2px; }
.result-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--forest); color: var(--lime); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty-state { padding: 36px 20px; border: 1px dashed #c9d2bc; border-radius: 9px; background: #f5f6ee; color: #77836a; font-size: 13px; line-height: 1.85; text-align: center; }
.empty-state p:last-child { margin-bottom: 0; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; padding: 7px 13px; border: 1px solid #d8decc; border-radius: 999px; background: transparent; color: #6c795f; font-size: 11px; font-weight: 600; line-height: 1.5; }
.filter-chip.active { border-color: var(--forest); background: var(--forest); color: #eaf2de; }

.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b7c3a4 #eff1e6; }
.data-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 12px; line-height: 1.8; text-align: left; }
.data-table caption { padding: 16px; color: #68745c; font-size: 11px; text-align: left; }
.data-table th { padding: 13px 17px; border-bottom: 1px solid #d8dfcb; background: #ebefe2; color: #536646; font-size: 10px; font-weight: 750; vertical-align: middle; }
.data-table td { padding: 15px 17px; border-bottom: 1px solid #e6e9dc; color: #65715b; vertical-align: top; }
.data-table td:first-child { color: var(--forest); font-weight: 650; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #f8f9f1; }
.data-table td a { color: #486333; text-decoration: underline; }
.step-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 17px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 4px; }
.step:last-child { border-bottom: 0; }
.step-index { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #c6d2b6; border-radius: 50%; background: #eaf0dd; color: #546e38; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.step-body { min-width: 0; }
.step-body h3 { margin: 2px 0 10px; font-size: 17px; }
.step-body p { margin-bottom: 12px; color: #6e7864; font-size: 13px; line-height: 1.9; }
.step-body p:last-child { margin-bottom: 0; }
.progress-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #637451; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.progress-track { width: 100%; height: 6px; overflow: hidden; border-radius: 999px; background: #e3e8d7; }
.progress-fill { width: 0; max-width: 100%; height: 100%; border-radius: inherit; background: #77954e; transition: width .2s ease; }
.check-item { display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 13px 0; border-bottom: 1px solid #e3e7d8; font-size: 13px; line-height: 1.8; cursor: pointer; }
.check-item:last-child { border-bottom: 0; }
.check-item input { flex: 0 0 17px; width: 17px; height: 17px; margin: 4px 0 0; accent-color: #56783b; }
.check-item > span { min-width: 0; }
.check-item input:checked + span { color: #7c8870; }

/* Long-form pages use one reading measure and a low-noise contents rail. */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: start; gap: 38px; }
.article-body { min-width: 0; color: #4a5848; font-size: 15px; line-height: 1.95; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 42px 0 16px; padding-top: 5px; color: var(--forest); font-size: 24px; font-weight: 750; line-height: 1.45; letter-spacing: -.045em; scroll-margin-top: 106px; }
.article-body h3 { margin: 28px 0 12px; color: var(--forest); font-size: 18px; font-weight: 750; line-height: 1.6; letter-spacing: -.035em; scroll-margin-top: 106px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 21px; }
.article-body li { margin: 7px 0; padding-left: 3px; }
.article-body li::marker { color: #8b9d6d; }
.article-body a:not(.button):not(.pill):not(.image-button):not(.save-toggle):not(.copy-button) { color: #436733; text-decoration: underline; }
.article-body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--orange); background: #f0eee2; color: #726049; font-size: 14px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code { padding: 2px 5px; border-radius: 3px; background: #e9eddf; color: #4d6639; font-size: .85em; overflow-wrap: anywhere; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 8px; background: #e9eddf; white-space: pre-wrap; overflow-wrap: anywhere; }
.article-toc { position: sticky; top: 100px; min-width: 0; max-height: calc(100dvh - 128px); padding-left: 20px; overflow-y: auto; border-left: 1px solid #cdd6bd; scrollbar-width: thin; }
.article-toc h2, .article-toc h3 { margin: 0 0 12px; color: #687b54; font-size: 10px; font-weight: 750; line-height: 1.7; letter-spacing: .1em; }
.toc-link { display: block; padding: 7px 0; color: #7a856e; font-size: 11px; line-height: 1.8; }
.toc-link.active, .toc-link[aria-current="true"], .toc-link[aria-current="location"] { color: var(--forest); font-weight: 750; }
.source-box { margin-top: 32px; padding: 22px; border: 1px solid #d9dfcd; border-radius: 10px; background: #eef1e6; }
.source-box h2, .source-box h3 { margin: 0 0 10px; padding: 0; font-size: 15px; }
.source-list { margin: 0 !important; padding: 0 !important; list-style: none; }
.source-item { display: block; min-width: 0; margin: 0 !important; padding: 12px 0 !important; border-bottom: 1px solid #dce3cf; color: #6f7b63; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; word-break: normal; }
.source-item:last-child { padding-bottom: 0 !important; border-bottom: 0; }
.source-item a { color: #476638; text-decoration: underline; }
.source-item small { display: block; margin-top: 3px; color: #869079; font-size: 10px; }
.image-figure { min-width: 0; margin: 26px 0; }
.image-figure img { display: block; width: 100%; height: auto; border: 1px solid #d8decc; border-radius: 9px; }
.image-figure figcaption { padding: 9px 2px 0; color: #7a836e; font-size: 10px; line-height: 1.8; }
.image-button { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: zoom-in; }
.image-button img { display: block; width: 100%; }
.guide-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #d5ddc7; border-radius: 10px; background: #e5e9dc; object-fit: cover; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 1px solid #cfd8c0; border-radius: 10px; background: var(--forest); text-align: left; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-label { position: absolute; right: 12px; bottom: 12px; left: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 7px 11px; border: 1px solid #647b55; border-radius: 4px; background: #19382cf5; color: var(--ivory); font-size: 11px; font-weight: 600; line-height: 1.6; }
.video-container { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--forest-deep); }
.video-container iframe, .video-container video { position: absolute; inset: 0; width: 100%; height: 100%; }
.tabs { display: flex; align-items: center; gap: 24px; max-width: 100%; margin: 24px 0; overflow-x: auto; border-bottom: 1px solid #d8dfca; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 6px; min-height: 44px; padding: 10px 2px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #7a856e; font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.tab.active { border-bottom-color: var(--forest); color: var(--forest); font-weight: 800; }
.tab:focus-visible { outline-offset: -4px; }
.rights-note { padding-left: 11px; border-left: 2px solid #d4a579; color: #7e7e6c; font-size: 10px; line-height: 1.85; }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.keyword-tag { display: inline-block; max-width: 100%; padding: 4px 8px; border: 1px solid #dce2d0; border-radius: 4px; background: #edf0e4; color: #6a7a58; font-size: 10px; line-height: 1.6; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 5px 9px; border: 1px solid #ccd6bb; border-radius: 5px; background: #fafbf4; color: #5c7443; font-size: 10px; font-weight: 650; line-height: 1.5; }
.timeline-item { min-width: 0; margin-left: 4px; padding: 0 0 27px 21px; border-left: 1px solid #c9d4b7; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item h3 { margin-bottom: 8px; font-size: 17px; }
.timeline-item p { margin-bottom: 10px; color: #728064; font-size: 12px; line-height: 1.9; }
.timeline-date { display: block; margin-bottom: 8px; color: #8a9a70; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.6; letter-spacing: .04em; }
.faq { border-top: 1px solid #d7dfca; }
.faq details { padding: 18px 0; border-bottom: 1px solid #dfe5d4; }
details.faq { padding: 18px 0; border-bottom: 1px solid #dfe5d4; }
.faq summary { color: var(--forest); font-size: 14px; font-weight: 700; line-height: 1.7; cursor: pointer; }
.faq summary::marker { color: #819b5d; font-size: .8em; }
.faq details > p, details.faq > p { margin: 13px 0 0; color: #707e64; font-size: 13px; line-height: 1.95; }
.save-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px 11px; border: 1px solid #ccd6bd; border-radius: 5px; background: transparent; color: #6d7c5e; font-size: 11px; font-weight: 650; line-height: 1.5; }
.save-toggle.saved, .save-toggle[aria-pressed="true"] { border-color: #9db779; background: #e6efd7; color: #3e5a2e; }
.notice-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 18px; border: 1px solid #d9e1c9; border-radius: 7px; background: #edf2e2; color: #677b51; font-size: 11px; line-height: 1.8; }
.notice-bar p { margin: 0; }
.footer { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; margin-top: 52px; padding-top: 24px; border-top: 1px solid #d9dfce; color: #879078; font-size: 10px; line-height: 1.9; }
.footer > * { min-width: 0; max-width: 100%; }
.footer p { margin-bottom: 5px; }
.footer a { color: #6d8059; text-decoration: underline; }
.footer .rights-note { max-width: 660px; }
.bottom-nav { display: none; }

/* Search, image inspection, and transient feedback. */
.search-overlay { position: fixed; z-index: 200; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 100px 24px 24px; overflow-y: auto; background: #11291fbf; }
.search-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 680px; min-width: 0; max-height: calc(100vh - 136px); max-height: calc(100dvh - 136px); padding: 24px; overflow: hidden; border: 1px solid #dbe2ce; border-radius: 12px; background: var(--ivory); box-shadow: 0 18px 60px #0a201b40; }
.search-dialog h2 { padding-right: 42px; font-size: 21px; }
.search-input { display: block; flex: 0 0 auto; width: 100%; min-width: 0; min-height: 52px; padding: 13px 50px 13px 15px; border: 1px solid #bdcbaa; border-radius: 7px; background: #fffef8; color: var(--forest); font-size: 16px; line-height: 1.5; }
.search-close { position: absolute; z-index: 1; top: 28px; right: 28px; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 5px 7px; border: 1px solid #d1dac2; border-radius: 5px; background: var(--ivory); color: #60764b; font-size: 11px; line-height: 1.4; }
.search-dialog h2 + .search-close { top: 20px; right: 20px; }
.search-results { display: grid; align-content: start; gap: 8px; min-height: 0; margin-top: 18px; padding: 2px 3px 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.search-result { display: block; min-width: 0; padding: 14px 16px; border: 1px solid #e0e5d6; border-radius: 7px; background: #fffef8; color: var(--forest); font-size: 13px; line-height: 1.75; }
.search-result h3 { margin-bottom: 6px; font-size: 15px; }
.search-result p, .search-result small { display: block; margin: 5px 0 0; color: #7b866e; font-size: 11px; line-height: 1.8; }
.search-result mark { padding: 0 2px; border-radius: 2px; background: #e1ebcd; color: inherit; }
.search-hint { flex: 0 0 auto; margin: 12px 0 0; color: #89937b; font-size: 10px; line-height: 1.8; }
.modal-backdrop { position: fixed; z-index: 220; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: #0e2218ed; }
.image-modal { position: relative; width: fit-content; max-width: 1200px; min-width: 0; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; color: var(--ivory); }
.image-modal img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); margin: 0 auto; border-radius: 6px; object-fit: contain; }
.image-modal figcaption, .image-modal p { margin: 10px 0 0; color: #c4d1b7; font-size: 11px; line-height: 1.8; }
.modal-close { position: absolute; z-index: 1; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 36px; padding: 7px 11px; border: 1px solid #9aaf87; border-radius: 5px; background: var(--forest); color: var(--ivory); font-size: 11px; line-height: 1.4; }
.toast { position: fixed; z-index: 300; bottom: 24px; left: calc(50% + 112px); width: max-content; max-width: calc(100vw - 48px); padding: 12px 18px; border: 1px solid #56704d; border-radius: 7px; background: var(--forest); color: #edf4df; box-shadow: 0 8px 25px #1734231a; font-size: 12px; line-height: 1.7; text-align: center; visibility: hidden; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.toast.show { visibility: visible; opacity: 1; transform: translate(-50%, 0); }

@media (hover: hover) {
  .nav-link:hover { background: #2b4935; color: #f3f5e9; }
  .nav-link.active:hover { background: #cbe59b; color: var(--forest-deep); }
  .card:hover, .card:focus-within { border-color: #aebb98; }
  .card-title a:hover { text-decoration: underline; }
  .button:hover, .copy-button:hover, .save-toggle:hover { border-color: #92a678; background: #edf2e2; }
  .button.primary:hover { border-color: #2e5137; background: #2e5137; color: var(--ivory); }
  .hero-copy .button.primary:hover { border-color: #d1e8a8; background: #d1e8a8; color: var(--forest-deep); }
  .hero-copy .button.secondary:hover { background: #2c4833; }
  .top-actions .button:hover { border-color: #88a86a; background: #2c4833; }
  .button.ghost:hover { background: #e8eddd; }
  .filter-chip:hover { border-color: #a5b78b; background: #ebf0df; color: #4b6337; }
  .filter-chip.active:hover { border-color: #2e5137; background: #2e5137; color: #edf3e3; }
  .search-result:hover { border-color: #afc293; background: #f8faef; }
  .toc-link:hover, .text-link:hover, .breadcrumb a:hover { color: #7f9e53; }
  .tab:hover { color: var(--forest); }
}

/* Intermediate screens keep the image split and reduce secondary columns. */
@media (min-width: 801px) and (max-width: 1180px) {
  .content { padding-right: 28px; padding-left: 28px; }
  .topbar { padding-right: 28px; padding-left: 28px; gap: 16px; }
  .hero-copy { padding: 27px 25px; }
  .hero-copy h1, .hero-copy h2 { font-size: 29px; }
  .hero-copy p { font-size: 12px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { gap: 15px; }
  .card-body { padding: 18px; }
  .card-title { font-size: 16px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 170px; gap: 25px; }
  .article-toc { padding-left: 15px; }
  .stat { padding: 16px; }
  .top-actions > .muted { display: none; }
}

/* Five small, equal navigation targets reserve their own safe-area space. */
@media (max-width: 800px) {
  html { scroll-padding-top: 86px; }
  body { font-size: 14px; }
  .sidebar { z-index: 150; width: min(82vw, 292px); max-width: calc(100vw - 36px); padding: 27px 20px 24px; visibility: hidden; transform: translateX(-100%); pointer-events: none; transition: transform .2s ease, visibility .2s ease; }
  .sidebar.open { visibility: visible; transform: translateX(0); pointer-events: auto; box-shadow: 14px 0 45px #0e251d40; }
  .sidebar .brand { margin-bottom: 26px; }
  .sidebar .nav-link { min-height: 45px; font-size: 14px; }
  .sidebar-foot { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .app-main { margin-left: 0; padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .topbar { z-index: 80; gap: 11px; min-height: 64px; padding: 11px 20px; }
  .mobile-toggle { display: inline-flex; }
  .breadcrumb { display: block; flex: 1 1 auto; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .breadcrumb > * + * { margin-left: 4px; }
  .top-actions { flex: 0 0 auto; gap: 6px; }
  .top-actions > .muted, .top-actions .status-dot, .top-actions kbd { display: none; }
  .top-actions .button, .top-actions .search-open { min-height: 39px; padding: 7px 10px; font-size: 11px; }
  .content { padding: 30px 24px 36px; }
  h1 { font-size: 32px; line-height: 1.45; }
  h2 { font-size: 23px; }
  .page-heading { margin-bottom: 23px; }
  .eyebrow { margin-bottom: 10px; font-size: 9px; }
  .lead { font-size: 14px; line-height: 1.9; }
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .hero-copy { min-height: 0; padding: 28px; }
  .hero-copy h1, .hero-copy h2 { max-width: 21ch; font-size: 31px; line-height: 1.45; }
  .hero-copy p, .hero-copy .lead { max-width: none; font-size: 13px; }
  .hero-art, .hero-image, .hero-art > img { min-height: 0; height: 240px; }
  .hero-image, .hero-art > img { width: 100%; object-fit: cover; }
  .hero-caption { font-size: 9px; }
  .quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
  .stat { padding: 17px 19px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-value { font-size: 24px; }
  .section { margin-top: 38px; scroll-margin-top: 87px; }
  .section-head { align-items: flex-start; gap: 12px; margin-bottom: 17px; }
  .section-head .text-link { margin-top: 6px; }
  .section-sub { font-size: 11px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .grid-4, .two-col { gap: 16px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card-body { padding: 19px; }
  .card-title { font-size: 18px; }
  .card-description { font-size: 12px; }
  .finder { padding: 23px; }
  .finder-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .article-toc { position: static; grid-row: 1; max-height: none; padding: 16px 18px; border: 1px solid #d5dfc6; border-radius: 9px; background: #eef2e4; }
  .article-toc h2, .article-toc h3 { margin-bottom: 7px; }
  .toc-link { padding: 6px 0; font-size: 12px; }
  .article-body { font-size: 14px; line-height: 2; }
  .article-body h2 { margin-top: 34px; font-size: 23px; scroll-margin-top: 86px; }
  .article-body h3 { font-size: 18px; scroll-margin-top: 86px; }
  .tabs { gap: 19px; margin: 21px 0; }
  .tab { font-size: 12px; }
  .footer { margin-top: 40px; padding-top: 22px; }
  .bottom-nav { position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; width: 100%; padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px)); border-top: 1px solid #ccd6bc; background: #fbfcf5; }
  .bottom-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-width: 0; min-height: 62px; padding: 11px 2px 10px; border-top: 2px solid transparent; color: #7c896d; font-size: 10px; font-weight: 600; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
  .bottom-nav a.active { border-top-color: #4f7037; background: #eef4e2; color: var(--forest); font-weight: 800; }
  .bottom-nav a svg { width: 18px; height: 18px; }
  .bottom-nav a:focus-visible { outline-offset: -5px; }
  .search-overlay { padding: 28px 18px; }
  .search-dialog { max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); padding: 18px; }
  .search-close { top: 23px; right: 23px; }
  .search-dialog h2 + .search-close { top: 15px; right: 15px; }
  .search-result { padding: 13px; }
  .modal-backdrop { padding: 16px; }
  .image-modal { max-width: 100%; max-height: calc(100dvh - 32px); }
  .image-modal img { max-height: calc(100dvh - 88px); }
  .modal-close { top: 8px; right: 8px; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); left: 50%; max-width: calc(100vw - 32px); font-size: 11px; }
}

@media (max-width: 520px) {
  .content { padding: 27px 20px 32px; }
  .topbar { padding: 10px 16px; gap: 9px; }
  .mobile-toggle { min-width: 43px; padding: 7px 9px; }
  h1 { font-size: 30px; letter-spacing: -.055em; }
  h2 { font-size: 22px; }
  .hero-copy { padding: 26px 23px; }
  .hero-copy h1, .hero-copy h2 { font-size: 29px; }
  .hero-copy .button { min-height: 40px; padding: 9px 13px; font-size: 11px; }
  .hero-art, .hero-image, .hero-art > img { height: 202px; }
  .hero-caption { right: 9px; bottom: 9px; left: 9px; max-width: calc(100% - 18px); }
  .quick-stats { margin-top: 16px; }
  .stat { padding: 15px 17px; }
  .grid-2, .grid-3, .grid-4, .two-col { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .card-body { padding: 21px; }
  .card-image { aspect-ratio: 16 / 8.5; }
  .card-title { font-size: 19px; }
  .card-description { font-size: 13px; }
  .section-head { flex-wrap: wrap; row-gap: 8px; }
  .section-head h2 { font-size: 22px; }
  .section-head .text-link { margin-top: 0; }
  .button-row { gap: 8px; }
  .button { padding: 10px 14px; }
  .finder { padding: 21px; }
  .finder-fields { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .finder-results { margin-top: 21px; }
  .result-card { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .result-number { width: 29px; height: 29px; font-size: 11px; }
  .result-card h3 { font-size: 16px; }
  .filter-bar { gap: 7px; margin-bottom: 19px; }
  .filter-chip { min-height: 36px; padding: 7px 12px; font-size: 11px; }
  .callout { padding: 17px; font-size: 12px; }
  .step { grid-template-columns: 31px minmax(0, 1fr); gap: 13px; padding: 22px 0; }
  .step-index { width: 29px; height: 29px; font-size: 11px; }
  .step-body h3 { font-size: 16px; }
  .source-box { padding: 19px; }
  .image-figure { margin: 22px 0; }
  .video-label { right: 9px; bottom: 9px; left: 9px; max-width: calc(100% - 18px); font-size: 10px; }
  .notice-bar { flex-direction: column; gap: 7px; padding: 13px 15px; }
  .footer { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .sidebar, .topbar, .bottom-nav, .search-overlay, .modal-backdrop, .toast, .mobile-toggle, .save-toggle, .copy-button { display: none !important; }
  .app-main { margin: 0; padding: 0; }
  .content { max-width: none; padding: 0; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-layout { display: block; }
  .article-toc { display: none; }
  .card, .callout, .image-figure, .step { break-inside: avoid; }
  .hero { border-color: #aaa; }
  .hero-copy { background: #fff; color: #000; }
  .hero-copy h1, .hero-copy h2, .hero-copy p, .hero-copy .eyebrow { color: #000; }
  .footer { margin-top: 24px; }
}
