/* Guide composition only. All commands use the shared site's keys and mechanics. */
.fg-guide { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 40px 0 64px; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); column-gap: 48px; align-items: start; color: var(--ink); }
.fg-guide :is(p,li,dd) { font-size: 1.125rem; line-height: 1.65; overflow-wrap: anywhere; }
.fg-guide :is(h1,h2,h3,figcaption) { overflow-wrap: anywhere; }
.fg-guide :is(p,ul,ol,dl,figure) { margin: 0; }
.fg-guide > :not(.fg-intro,.fg-app) { grid-column: 1 / -1; }
.fg-guide h1 { font-size: clamp(2.5rem,4.4vw,3.75rem); line-height: 1.1; margin: 0 0 24px; max-width: 20ch; }
.fg-guide h2 { font-size: clamp(1.75rem,2.8vw,2.35rem); line-height: 1.2; margin: 8px 0 18px; }
.fg-guide h3 { font-size: 1.25rem; line-height: 1.35; margin: 0 0 14px; }
.fg-guide .fg-overline { font: 600 .85rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; margin: 0 0 16px; color: var(--muted); }
.fg-intro { align-self: center; grid-column: 1; grid-row: 1; }
.fg-intro-copy > p { max-width: 50ch; margin-bottom: 20px; }
.fg-guide .fg-lede { font-size: 1.35rem; line-height: 1.55; }
.fg-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 16px; }
.fg-guide .fg-edition-line { font-size: 1rem; color: var(--muted); }
.fg-app { display: grid; gap: 16px; align-self: center; grid-column: 2; grid-row: 1; }
.fg-app-window { width: 100%; aspect-ratio: 945 / 660; overflow: hidden; border-radius: 10px; border: 8px solid #3a3328; box-shadow: 0 2px 0 #a89b85, 0 7px 16px rgb(51 42 28 / .16); }
.fg-app-window img { display: block; width: 100%; height: auto; transform: translateY(-24%); }
.fg-guide figcaption { font: 400 1rem/1.5 "Open Sans",sans-serif; color: var(--muted); max-width: 40ch; }
.fg-topics { padding: 48px 0; border-top: 1px solid var(--line); margin-top: 36px; scroll-margin-top: 16px; }
.fg-topic-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: 24px 20px; margin-top: 28px; }
.fg-topic { min-width: 0; }
.fg-topic .btn { width: 100%; }
.fg-guide .fg-topic > p { font-size: 1rem; line-height: 1.5; margin-top: 12px; }
.fg-guide .btn,.fg-guide .btn .key-face { font-size: 1.125rem; }
.fg-checklist { padding: 28px 32px; margin: 0 0 48px; background: var(--paper-deep); border-left: 5px solid var(--orange-deep); border-radius: 0 12px 12px 0; }
.fg-checklist ul { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; padding-left: 22px; }
.fg-chapter { padding: 48px 0 40px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.fg-chapter-heading { max-width: 70ch; }
.fg-guide .fg-entry { display: inline-block; margin-top: 20px; padding: 8px 14px; background: var(--paper-deep); font: 500 1rem/1.5 var(--sans); border-radius: 5px; }
.fg-chapter-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 48px; margin-top: 28px; align-items: start; }
.fg-chapter-grid > * { min-width: 0; }
.fg-instructions { padding: 26px; background: rgb(255 253 248 / .92); border: 1px solid #cfc4b0; border-radius: 10px; box-shadow: 0 3px 0 rgb(142 124 94 / .12); }
.fg-text-only { grid-template-columns: minmax(0,70ch); }
.fg-steps { counter-reset: none; padding-left: 34px; }
.fg-steps > li { padding: 0 0 20px 8px; }
.fg-steps > li::marker { font: 700 1.125rem/1.6 var(--mono); color: var(--muted); }
.fg-finish { margin-top: 12px; }
.fg-notes { margin-top: 24px; padding: 24px; background: rgb(255 253 248 / 70%); border-left: 4px solid var(--orange-deep); border-radius: 0 8px 8px 0; }
.fg-notes ul { padding-left: 20px; }
.fg-notes li + li { margin-top: 14px; }
.fg-details { margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; overflow: visible; }
.fg-details > div { padding: 24px; background: rgb(255 253 248 / 50%); }
.fg-guide .fg-details summary .key-face { font-size: 1.125rem; }
.fg-diagram,.fg-route-figure,.fg-reference { padding: 24px; background: var(--paper-deep); border-radius: 12px; }
.fg-diagram > img { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.fg-route-figure svg { width: 100%; height: auto; margin-bottom: 16px; }
.fg-route-figure path { fill: none; stroke: var(--orange-deep); stroke-width: 8; stroke-linecap: round; }
.fg-route-figure circle { fill: var(--ink); stroke: var(--paper); stroke-width: 4; }
.fg-flow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-size: 1.125rem; }
.fg-flow span:not(:last-child)::after { content: ' →'; color: var(--muted); }
.fg-reference p + p { margin-top: 18px; }
.fg-lamp-guide { padding: 24px; margin-top: 24px; background: rgb(255 253 248 / 70%); border-radius: 12px; }
.fg-lamp-guide dl > div { margin-bottom: 20px; }
.fg-lamp-guide dl > div:last-child { margin-bottom: 0; }
.fg-lamp-guide dt { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 700; }
.fg-lamp-guide dd { margin: 4px 0 0 32px; }
.fg-lamp { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.fg-red { background: #bb2c26; }.fg-yellow { background: #dfb436; }.fg-dark { background: #2a241c; }
.fg-chapter-end { display: flex; justify-content: flex-end; margin-top: 24px; }
.fg-edition { max-width: 70ch; }
.fg-guide .release-stamp { font: 500 1rem/1.65 var(--mono); overflow-wrap: anywhere; margin-bottom: 16px; }
@media (min-width: 821px) and (max-width: 1100px) {
 .fg-guide .fg-chapter-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
 .fg-guide .fg-visual { width: min(100%,700px); justify-self: center; }
}
@media (max-width: 820px) {
 .fg-guide { width: min(100%,640px); padding-top: 32px; display: flex; flex-direction: column; }
 .fg-intro { width: 100%; }
 .fg-topics { width: 100%; margin-top: 16px; padding-block: 28px; }
 .fg-app { margin: 12px 0 36px !important; }
 .fg-chapter,.fg-edition { width: 100%; }
 .fg-guide h1 { max-width: 16ch; font-size: clamp(2rem,8vw,3rem); }
 .fg-app { width: 100%; gap: 16px; }

 .fg-app figcaption { font-size: 1rem; }
 .fg-app > .btn { justify-self: start; }
 .fg-topic-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: 20px 16px; }
 .fg-chapter-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
 .fg-instructions { padding: 22px 18px; }
 .fg-checklist { padding: 24px; }
 .fg-checklist ul { grid-template-columns: 1fr; }
 .fg-chapter { padding-top: 36px; }

}
@media (max-width: 370px) { .fg-topic-grid { grid-template-columns: 1fr; } }
@media print { .fg-guide { width: 100%; }.fg-chapter { break-before: page; }.fg-chapter-grid { display: block; }.fg-visual { margin-top: 24px; }.fg-details > div { display: block; }.fg-chapter-end { display: none; } }
