/* Forced landing article: static figures, worked examples and the
 * field-choice widget. Shares tokens with home.css / article.css. */
:root { --fl-land: #e3ead2; --fl-grass: #9cc27a; --fl-plough: #a9825a; --fl-stubble: #e2cf86; --fl-paved: #8b929b; --fl-green: #1f7a4d; --fl-red: #c0392b; --fl-amber: #c77a12; --fl-tree: #5f8250; --fl-road: #f4f1e8; --fl-water: #8fb7d8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fl-land: #1d2a20; --fl-grass: #3f6a35; --fl-plough: #6b5038; --fl-stubble: #7d6f3a; --fl-paved: #5b636d; --fl-green: #5fc493; --fl-red: #ef7b6c; --fl-amber: #f0b050; --fl-tree: #4d6b40; --fl-road: #34404c; --fl-water: #2e4f6b; } }
:root[data-theme="dark"] { --fl-land: #1d2a20; --fl-grass: #3f6a35; --fl-plough: #6b5038; --fl-stubble: #7d6f3a; --fl-paved: #5b636d; --fl-green: #5fc493; --fl-red: #ef7b6c; --fl-amber: #f0b050; --fl-tree: #4d6b40; --fl-road: #34404c; --fl-water: #2e4f6b; }

/* Static figures */
.prose .fig.fl-fig svg.ff { width: 100%; max-width: 760px; height: auto; margin: 0 auto; display: block; }
.ff text { font-family: var(--mono); }
.ff-h { font: 700 14px var(--mono); fill: var(--ink); }
.ff-s { font: 500 13px var(--mono); fill: var(--ink-soft); }
.ff-k { font: 700 14px var(--mono); fill: var(--magenta); }
.ff-b { font: 700 14px var(--mono); fill: var(--blue); }
.ff-r { font: 700 14px var(--mono); fill: var(--fl-red); }
.ff-land { fill: var(--fl-land); }
.ff-field { fill: var(--fl-grass); stroke: var(--ink-soft); stroke-width: 1; }
.ff-rwy { fill: var(--fl-paved); stroke: var(--ink-soft); stroke-width: 1; }
.ff-c0 { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-dasharray: 6 5; }
.ff-c1 { fill: color-mix(in srgb, var(--blue) 10%, transparent); stroke: var(--blue); stroke-width: 2.4; }
.ff-mag { stroke: var(--magenta); stroke-width: 2.4; fill: none; }
.ff-blue { stroke: var(--blue); stroke-width: 2.4; fill: none; }
.ff-red { stroke: var(--fl-red); stroke-width: 2.4; fill: none; }
.ff-dash { stroke: var(--ink-soft); stroke-width: 1.2; stroke-dasharray: 4 4; fill: none; }
.ff-arr { stroke: var(--ink); stroke-width: 2; fill: none; }
.ff-ah { fill: var(--ink); }
.ff-dot { fill: var(--magenta); }
.ff-dotb { fill: var(--blue); }
.ff-ac { fill: var(--ink); }
.ff-box { fill: var(--card); stroke: var(--rule); stroke-width: 1.4; }
.ff-bar0 { fill: var(--blue); opacity: 0.85; }
.ff-bar1 { fill: var(--magenta); opacity: 0.85; }
.ff-bar2 { fill: var(--fl-amber); opacity: 0.9; }

/* Worked example: one step per line, the "=" signs in one column */
.fl-calc { margin: 1.2em 0 0; padding: 14px 18px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--blue); border-radius: 10px; font: 500 15px/1.7 var(--mono); color: var(--ink); }
.fl-calc .row { display: grid; grid-template-columns: 5.2em 1.2em minmax(0, 1fr); align-items: baseline; }
.fl-calc .row > span:nth-child(1) { white-space: nowrap; text-align: right; padding-right: 0.3em; }
.fl-calc .row > span:nth-child(2) { text-align: center; }
.fl-calc .row b { font-weight: 600; }
.fl-calc .gap { height: 0.6em; }
.fl-calc .key { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--rule); font: 400 15px/1.5 var(--body); color: var(--ink-soft); }
.fl-calc .key p { margin: 0; font-size: 15px; }
.fl-calc .key p + p { margin-top: 3px; }
.fl-steps { margin: 1.2em 0 0; padding: 14px 18px 14px 2.4em; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--magenta); border-radius: 10px; }
.fl-steps li + li { margin-top: 6px; }

/* Widget */
.widget.fl { grid-template-columns: 1fr; gap: 14px; align-items: start; }
.fl-map { margin: 0; min-width: 0; }
.fl-svg { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); background: var(--fl-land); touch-action: manipulation; }
.fl-svg text { font-family: var(--mono); }
.fl-bg { fill: var(--fl-land); }
.fl-road { fill: none; stroke: var(--fl-road); stroke-width: 5; }
.fl-river { fill: none; stroke: var(--fl-water); stroke-width: 4; }
.fl-house { fill: var(--ink-soft); opacity: 0.7; }
.fs-grass { fill: var(--fl-grass); stroke: var(--ink-soft); stroke-width: 0.8; }
.fs-plough { fill: var(--fl-plough); stroke: var(--ink-soft); stroke-width: 0.8; }
.fs-furrow { stroke: color-mix(in srgb, var(--fl-plough) 60%, #000); stroke-width: 0.8; }
.fs-stubble { fill: var(--fl-stubble); stroke: var(--ink-soft); stroke-width: 0.8; }
.fs-crop { fill: #b7c96a; stroke: var(--ink-soft); stroke-width: 0.8; }
.fs-paved { fill: var(--fl-paved); stroke: var(--ink); stroke-width: 0.8; }
.fl-wire { stroke: var(--fl-red); stroke-width: 1.6; stroke-dasharray: 3 2; }
.fl-pylon { fill: var(--fl-red); }
.fl-tree { fill: var(--fl-tree); }
.fl-slope { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.fl-hit { fill: transparent; cursor: pointer; }
.fl-field.on .fs-grass, .fl-field.on .fs-plough, .fl-field.on .fs-stubble, .fl-field.on .fs-paved { stroke: var(--magenta); stroke-width: 2.4; }
.fl-tag { fill: var(--card); stroke: var(--ink); stroke-width: 1.4; cursor: pointer; }
.fl-tag.on { fill: var(--magenta); stroke: var(--magenta); }
.fl-tagt { font: 700 13px var(--mono); fill: var(--ink); pointer-events: none; }
.fl-tag.on + .fl-tagt { fill: #fff; }
.fl-c-out { fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-dasharray: 7 5; }
.fl-c-in { fill: color-mix(in srgb, var(--blue) 12%, transparent); stroke: var(--blue); stroke-width: 2.4; }
.fl-path { fill: none; stroke: var(--magenta); stroke-width: 2.6; stroke-linejoin: round; }
.fl-path.short { stroke: var(--fl-red); }
.fl-path.tight, .fl-path.shortp { stroke: var(--fl-amber); }
.fl-key { fill: var(--magenta); }
.fl-aim { fill: #fff; stroke: var(--magenta); stroke-width: 2; }
.fl-x { stroke: var(--fl-red); stroke-width: 3; }
.fl-ac { fill: var(--ink); stroke: var(--paper); stroke-width: 0.8; }
.fl-rose { fill: color-mix(in srgb, var(--card) 85%, transparent); stroke: var(--rule); }
.fl-warrow { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fl-scale { stroke: var(--ink); stroke-width: 2; fill: none; }
.fl-small { font: 600 13px var(--mono); fill: var(--ink); }
.fl-small.b { font-weight: 700; }
.fl-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-soft); }
.fl-legend li { display: flex; align-items: center; gap: 6px; }
.fl-legend i { display: inline-block; width: 26px; height: 0; }
.fl-legend i.lg-out { border-top: 2px dashed var(--ink-soft); }
.fl-legend i.lg-in { border-top: 3px solid var(--blue); }
.fl-legend i.lg-ac { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.fl-out { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; background: var(--paper-2); border-radius: 10px; padding: 10px 12px; }
.fl-out > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.fl-out dt { font-size: 14px; color: var(--ink-soft); min-width: 0; }
.fl-out dd { margin: 0; font: 600 14px/1.3 var(--mono); color: var(--ink); text-align: right; }
.w-note.fl-say { font-size: 16px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--fl-green); background: color-mix(in srgb, var(--fl-green) 9%, transparent); color: var(--ink); min-height: 3.2em; margin: 0; }
.w-note.fl-say.warn { border-left-color: var(--magenta); background: color-mix(in srgb, var(--magenta) 8%, transparent); }
.fl-pre, .fl-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fl-hint { font-size: 14px; color: var(--ink-soft); }
.fl-ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.fl-lbl { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.fl-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-seg button, .fl-btn { font: 600 14px var(--body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; }
.fl-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fl-seg button:focus-visible, .fl-btn:focus-visible, .fl-range input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.fl-range { display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); align-content: start; }
.fl-range b { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.fl-range input { width: 100%; accent-color: var(--magenta); }
.fl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-btn.fl-go { background: var(--magenta); border-color: var(--magenta); color: #fff; min-width: 10em; text-align: center; }
.fl-res { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; }
.fl-res-h { margin: 0 0 6px; font-weight: 700; }
.fl-res-h.good { color: var(--fl-green); }
.fl-res-h.fair { color: var(--fl-amber); }
.fl-res-h.poor { color: var(--fl-red); }
.fl-ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.fl-ck li { padding-left: 1.5em; position: relative; }
.fl-ck li::before { position: absolute; left: 0; font-weight: 700; }
.fl-ck li.ok::before { content: "✓"; color: var(--fl-green); }
.fl-ck li.caut::before { content: "!"; color: var(--fl-amber); left: 0.3em; }
.fl-ck li.bad::before { content: "✗"; color: var(--fl-red); }
.w-note.fl-note { font-size: 13px; }

@media (max-width: 720px) {
  .fl-ctl, .fl-out { grid-template-columns: 1fr; }
  .fl-out dt, .fl-out dd { font-size: 13px; }
  .fl-calc { font-size: 13.5px; padding: 12px; }
  .fl-calc .row { grid-template-columns: 4.4em 1.1em minmax(0, 1fr); }
  .fl-calc .key p { font-size: 14px; }
}
/* Decorative layers drawn over the fields must not swallow taps on them. */
.fl-c-out, .fl-c-in, .fl-path, .fl-key, .fl-aim, .fl-x, .fl-ac, .fl-rose, .fl-warrow, .fl-scale, .fl-small { pointer-events: none; }
