:root {
  color-scheme: dark;
  --surface: #141813;
  --surface-alt: #1d231b;
  --surface-raised: #272e23;
  --text: #efe9d8;
  --muted: #b9beab;
  --accent: #c9d479;
  --line: #3b4035;
  --warning: #e9bc79;
  --prose: 65ch;
  --wide: 1280px;
  --space-1: .375rem;
  --space-2: .75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
  --space-6: 5rem;
  --radius-control: 5px;
  --radius-panel: 8px;
  --icon-inline: 18px;
  --icon-control: 22px;
  --icon-display: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--surface); color: var(--text); font: 18px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
::selection { background: var(--accent); color: var(--surface); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #e7efa6; }
button, input { font: inherit; }
button, input[type='search'] { border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-alt); color: var(--text); }
button { cursor: pointer; min-height: 44px; padding: .55rem .9rem; }
button:hover { background: var(--surface-raised); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.14; text-wrap: balance; }
h1 { margin: .35rem 0 1.25rem; font-size: clamp(2.35rem, 5vw, 4.4rem); letter-spacing: -.035em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.02em; }
h3 { margin: 1.65rem 0 .75rem; font-size: 1.4rem; }
p { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .5rem; }
.shell { width: min(calc(100% - 4rem), var(--wide)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; background: var(--accent); color: var(--surface); padding: .75rem 1rem; }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 2rem; }
.brand { color: var(--text); display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; line-height: 1; font: 600 21px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.025em; }
.brand-mark { width: 28px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 15px; text-decoration: none; padding-block: .8rem; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.search-toggle { display: inline-flex; align-items: center; gap: .55rem; font-size: 15px; }
.ui-icon { width: var(--icon-control); height: var(--icon-control); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }
.breadcrumb { list-style: none; padding: 0; margin: 2.2rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .55rem; font-size: 14px; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: .55rem; color: #75806b; }
.breadcrumb a { color: var(--muted); }
.eyebrow { margin: 0 0 .5rem; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.home-opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 3.5rem; padding-top: 3.25rem; }
.home-heading { max-width: 850px; }
.home-heading h1 { font-size: clamp(2.65rem, 5.2vw, 4.7rem); }
.lede { color: var(--muted); font-size: 20px; line-height: 1.6; max-width: 57ch; }
.home-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.home-actions button { display: inline-flex; align-items: center; gap: .5rem; font-size: 15px; }
.task-entry { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .6rem .9rem; background: var(--accent); color: var(--surface); font-size: 16px; font-weight: 600; text-decoration: none; border-radius: var(--radius-control); }
.task-entry:hover { background: #dbe695; color: var(--surface); }
.home-visual { margin: 0; }
.home-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-panel); }
figcaption { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: .8rem; max-width: var(--prose); }
.home-guides { margin-block: 3rem 5rem; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 4.5rem; }
.section-intro { color: var(--muted); font-size: 16px; }
.guide-group-jumps { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 1.5rem; font-size: 16px; }
.guide-group + .guide-group { margin-top: 3.5rem; }
.guide-group > header h3 { margin: 0; color: var(--accent); font-size: 1.8rem; }
.guide-group > header .section-intro { margin: .5rem 0 1.25rem; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-list li { margin: 0; border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.5rem; padding: 1.5rem 0; text-decoration: none; }
.guide-list :is(h3, h4) { margin: 0; color: var(--text); font-size: 1.6rem; }
.guide-list p { margin: 0; grid-column: 1; color: var(--muted); font-size: 16px; }
.guide-list .arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 26px; }
.guide-list a:hover :is(h3, h4) { color: var(--accent); }
.recipe-flow { margin: 1.5rem 0 2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface-alt); }
.recipe-flow figcaption { margin: 0 0 1.5rem; color: var(--text); font-size: 17px; }
.recipe-flow figcaption span { display: block; margin-top: .4rem; color: var(--muted); font-size: 15px; }
.recipe-path { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); gap: .75rem; list-style: none; margin: 0; padding: 0; }
.recipe-path li { margin: 0; }
.recipe-role { margin: 0 0 .75rem; color: var(--accent); font-size: 14px; font-weight: 600; }
.recipe-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; font-size: 16px; }
.recipe-item + .recipe-item { margin-top: 1rem; }
.recipe-plus { display: block; text-align: center; color: var(--accent); margin: .5rem 0; font-size: 21px; }
.recipe-or { text-align: center; color: var(--accent); font-weight: 600; }
.item-recognition img { max-width: 88px; max-height: 76px; width: auto; height: auto; }
.item-recognition { display: inline-block; vertical-align: top; margin-right: 1.5rem; }
.recipe-icon { display: flex; align-items: center; justify-content: center; width: 88px; height: 76px; flex: none; }
.recipe-icon img { max-width: 88px; max-height: 76px; width: auto; height: auto; }
.recipe-station-name { margin: 0; font-size: 17px; }
.recipe-connector { align-self: center; text-align: center; color: var(--accent); font-size: 28px; }
.recipe-arrow-narrow { display: none; }
.article-heading { max-width: 970px; }
.article-heading h1 { max-width: 20ch; }
.direct-answer { border-left: 3px solid var(--accent); padding: .35rem 0 .35rem 1.5rem; max-width: var(--prose); margin: 1.4rem 0 1.1rem; font-size: 20px; }
.direct-answer p:last-child { margin-bottom: 0; }
.version-note { color: var(--muted); font-size: 14px; margin-bottom: 2.7rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 830px) 230px; gap: 5rem; align-items: start; }
.article-body { min-width: 0; max-width: var(--prose); }
.article-body section { margin-bottom: 3.5rem; }
.article-body section + section { padding-top: 2rem; border-top: 1px solid var(--line); }
.article-body .task-figure { margin: 1.75rem 0 2rem; }
.task-figure img { width: auto; max-width: 100%; border-radius: var(--radius-panel); }
.task-figure.small { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.task-figure.small figcaption { margin-top: 0; }
.task-figure.icon-crop { grid-template-columns: 128px minmax(0, 1fr); }
.task-figure svg { display: block; width: 100%; height: auto; background: var(--surface-alt); border-radius: var(--radius-panel); }
.step-list { list-style: none; padding: 0; counter-reset: step; margin: 1.5rem 0; }
.step-list > li { counter-increment: step; position: relative; padding-left: 3rem; margin: 1.5rem 0; }
.step-list > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 15px; }
.step-list h3 { margin: 0 0 .5rem; font-family: inherit; font-size: 18px; font-weight: 600; }
.note { background: var(--surface-alt); padding: 1.1rem 1.35rem; border-radius: var(--radius-panel); border-left: 2px solid var(--warning); }
.note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
th, td { border-bottom: 1px solid var(--line); padding: .9rem .8rem; vertical-align: top; text-align: left; }
th { color: var(--accent); font-weight: 500; }
.table-wrap + p { margin-top: 1rem; }
.toc { position: sticky; top: 2rem; font-size: 14px; border-left: 1px solid var(--line); padding-left: 1.4rem; }
.toc summary { display: none; }
.toc-mobile, .no-js-navigation { display: none; }
.toc-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 .9rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.source-list { font-size: 14px; color: var(--muted); }
.source-list li { margin-bottom: .75rem; overflow-wrap: anywhere; }
.related { margin: 2.5rem 0 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding-block: 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; }
.site-footer p { margin: 0; max-width: 72ch; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { color: var(--muted); }
.search-dialog { width: min(680px, calc(100% - 2rem)); max-height: min(80vh, 750px); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); color: var(--text); padding: 1.5rem; }
.search-dialog::backdrop { background: #000b; }
.search-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.search-dialog h2 { margin: 0; font-size: 1.65rem; }
.search-label { display: block; font-size: 15px; color: var(--muted); margin-bottom: .5rem; }
.search-row { display: flex; gap: .6rem; }
input[type='search'] { width: 100%; min-width: 0; padding: .8rem 1rem; min-height: 48px; }
.search-state { color: var(--muted); font-size: 15px; margin: 1rem 0; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results a { display: block; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.search-results strong { display: block; font-size: 18px; color: var(--text); font-weight: 500; }
.search-results span { color: var(--muted); display: block; font-size: 14px; margin-top: .3rem; }
.error-page { padding: 5rem 0; max-width: var(--prose); }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 2.5rem; }
  .home-guides { grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 2rem; }
  .shell { width: min(calc(100% - 2rem), var(--wide)); }
  .header-inner { min-height: 76px; gap: .75rem; flex-wrap: wrap; padding-block: .6rem; }
  .brand { font-size: 19px; }
  .brand-mark { width: 24px; height: 28px; }
  .header-actions { margin-left: auto; }
  .search-toggle span { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 1.5rem; }
  .site-nav:not(.is-open) { display: none; }
  .no-js-navigation { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-block: .5rem; }
  .no-js-navigation a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .home-opening { display: block; padding-top: 2rem; }
  .home-heading h1 { font-size: clamp(2.7rem, 10.7vw, 4.2rem); }
  .lede { font-size: 18px; }
  .home-visual { margin: 1.5rem 0 2.5rem; }
  .home-visual img { aspect-ratio: 16 / 9; }
  .home-guides { display: block; margin-block: 2rem 3rem; }
  .home-guides > header { max-width: 32ch; margin-bottom: 1.5rem; }
  .guide-list a { gap: .4rem 1rem; padding-block: 1.25rem; }
  .guide-list :is(h3, h4) { font-size: 1.45rem; }
  .recipe-path { grid-template-columns: 1fr; gap: .5rem; }
  .recipe-role { margin-bottom: .35rem; }
  .recipe-item { flex-direction: row; justify-content: flex-start; text-align: left; gap: 1.25rem; }
  .recipe-item + .recipe-item { margin-top: .5rem; }
  .recipe-connector { justify-self: start; width: 88px; line-height: 1; }
  .recipe-plus { width: 88px; }
  .recipe-arrow-wide { display: none; }
  .recipe-arrow-narrow { display: inline; }
  .breadcrumb { margin-top: 1.5rem; font-size: 13px; }
  .article-heading h1 { font-size: clamp(2.3rem, 9.6vw, 3.7rem); }
  .direct-answer { padding-left: 1rem; font-size: 18px; }
  .version-note { margin-bottom: 1.5rem; }
  .article-layout { display: flex; flex-direction: column; gap: 2rem; }
  .toc { order: -1; width: 100%; position: static; border: 1px solid var(--line); border-radius: var(--radius-control); padding: 0; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; }
  .toc summary { display: block; cursor: pointer; padding: .85rem 1rem; min-height: 48px; color: var(--text); }
  .toc-title { display: none; }
  .toc ul { padding: .5rem 1rem .25rem; }
  .toc li { margin-bottom: .8rem; }
  .article-body section { margin-bottom: 2.5rem; }
  .article-body section + section { padding-top: 1.5rem; }
  .task-figure.small { display: block; }
  .task-figure.small figcaption { margin-top: .8rem; }
  .step-list > li { padding-left: 2.5rem; }
  .search-dialog { padding: 1rem; }
  .footer-inner { display: block; }
  .site-footer nav { margin-top: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
