/* Rejected take-off article: static figures, worked example and the
 * abort-point widget. Shares tokens with home.css / article.css. */
:root { --ta-grass: #dfe8cf; --ta-strip: #b9bec6; --ta-snow: #eef3f8; --ta-green: #1f7a4d; --ta-red: #c0392b; --ta-amber: #c77a12; --ta-tree: #6f8f5a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ta-grass: #1f2c22; --ta-strip: #4a525c; --ta-snow: #5d6a78; --ta-green: #5fc493; --ta-red: #ef7b6c; --ta-amber: #f0b050; --ta-tree: #4d6b40; } }
:root[data-theme="dark"] { --ta-grass: #1f2c22; --ta-strip: #4a525c; --ta-snow: #5d6a78; --ta-green: #5fc493; --ta-red: #ef7b6c; --ta-amber: #f0b050; --ta-tree: #4d6b40; }

/* Static figures */
.prose .fig.ta-fig svg.tf { width: 100%; max-width: 760px; height: auto; margin: 0 auto; display: block; }
.tf text { font-family: var(--mono); }
.tf-h { font: 700 14px var(--mono); fill: var(--ink); }
.tf-s { font: 500 13px var(--mono); fill: var(--ink-soft); }
.tf-k { font: 700 14px var(--mono); fill: var(--magenta); }
.tf-b { font: 700 14px var(--mono); fill: var(--blue); }
.tf-r { font: 700 14px var(--mono); fill: var(--ta-red); }
.tf-grass { fill: var(--ta-grass); }
.tf-rwy { fill: var(--ta-strip); stroke: var(--ink-soft); stroke-width: 1; }
.tf-cl { stroke: #fff; stroke-width: 2; stroke-dasharray: 14 10; opacity: 0.8; }
.tf-tree { fill: var(--ta-tree); }
.tf-ax { stroke: var(--ink-soft); stroke-width: 1.4; fill: none; }
.tf-grid { stroke: var(--rule); stroke-width: 1; }
.tf-curve { fill: none; stroke: var(--blue); stroke-width: 3; }
.tf-curve2 { fill: none; stroke: var(--ta-red); stroke-width: 3; stroke-dasharray: 8 5; }
.tf-mag { stroke: var(--magenta); stroke-width: 2; fill: none; }
.tf-dash { stroke: var(--ink-soft); stroke-width: 1.2; stroke-dasharray: 4 4; fill: none; }
.tf-flag { fill: var(--magenta); }
.tf-dot { fill: var(--magenta); }
.tf-dotb { fill: var(--blue); }
.tf-zone-go { fill: color-mix(in srgb, var(--ta-green) 18%, transparent); }
.tf-zone-stop { fill: color-mix(in srgb, var(--magenta) 14%, transparent); }
.tf-zone-air { fill: color-mix(in srgb, var(--blue) 14%, transparent); }
.tf-box { fill: var(--card); stroke: var(--rule); stroke-width: 1.4; }
.tf-ah { fill: var(--ink-soft); }
.tf-arr { stroke: var(--ink-soft); stroke-width: 1.8; fill: none; }
.tf-ac { fill: var(--ink); }

/* Worked example: one step per line, the "=" signs in one column */
.ta-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); }
.ta-calc .row { display: grid; grid-template-columns: 4.6em 1.2em minmax(0, 1fr); align-items: baseline; }
.ta-calc .row > span:nth-child(1) { white-space: nowrap; text-align: right; padding-right: 0.3em; }
.ta-calc .row > span:nth-child(2) { text-align: center; }
.ta-calc .row b { font-weight: 600; }
.ta-calc .gap { height: 0.6em; }
.ta-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); }
.ta-calc .key p { margin: 0; font-size: 15px; }
.ta-calc .key p + p { margin-top: 3px; }
.ta-brief { margin: 1.2em 0 0; padding: 14px 18px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--magenta); border-radius: 10px; }
.ta-brief p { margin: 0; font: 500 16px/1.6 var(--mono); }
.ta-brief p + p { margin-top: 6px; }

/* Widget */
.widget.ta { grid-template-columns: 1fr; gap: 14px; align-items: start; }
.ta-rwy { margin: 0; min-width: 0; }
.ta-svg { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); background: var(--ta-grass); }
.ta-svg text { font-family: var(--mono); }
.ta-grass { fill: var(--ta-grass); }
.ta-strip { fill: var(--ta-strip); stroke: var(--ink-soft); stroke-width: 1; }
.ta-strip[data-s="gd"], .ta-strip[data-s="gw"] { fill: color-mix(in srgb, var(--ta-tree) 55%, var(--ta-grass)); }
.ta-strip[data-s="gw"] { fill: color-mix(in srgb, var(--ta-tree) 70%, #3f6f8f); }
.ta-strip[data-s="pw"] { fill: color-mix(in srgb, var(--ta-strip) 70%, #2f4f6f); }
.ta-strip[data-s="snow"] { fill: var(--ta-snow); }
.ta-strip[data-s="slush"] { fill: color-mix(in srgb, var(--ta-snow) 55%, #7d8a96); }
.ta-cl { stroke: #fff; stroke-width: 2; stroke-dasharray: 14 10; opacity: 0.85; }
.ta-strip[data-s="snow"] + .ta-cl, .ta-strip[data-s="slush"] + .ta-cl { stroke: var(--ink-soft); opacity: 0.4; }
.ta-thr { stroke: var(--ink); stroke-width: 3; }
.ta-t { font: 600 13px var(--mono); fill: var(--ink); }
.ta-tree { fill: var(--ta-tree); }
.ta-mk { stroke-width: 1.6; stroke-dasharray: 3 3; }
.ta-dot { stroke: none; }
.ta-n { font: 700 12px var(--mono); fill: #fff; }
.m1 { stroke: var(--magenta); fill: var(--magenta); }
.m2 { stroke: var(--blue); fill: var(--blue); }
.m3 { stroke: var(--ink); fill: var(--ink); }
.m4 { stroke: var(--ink-soft); fill: var(--ink-soft); }
.mS { stroke: var(--ta-red); fill: var(--ta-red); }
.ta-bstop { fill: var(--magenta); opacity: 0.75; }
.ta-basd { fill: var(--ta-amber); opacity: 0.85; }
.ta-ac path { fill: var(--ink); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.ta-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-soft); }
.ta-legend li { display: flex; align-items: center; gap: 6px; }
.ta-legend i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 700 11px/1 var(--mono); font-style: normal; color: #fff; }
.ta-legend i.bar-stop, .ta-legend i.bar-asd { width: 26px; height: 7px; border-radius: 2px; }
.ta-legend i.bar-stop { background: var(--magenta); opacity: 0.75; }
.ta-legend i.bar-asd { background: var(--ta-amber); }
.ta-legend i.m1 { background: var(--magenta); } .ta-legend i.m2 { background: var(--blue); } .ta-legend i.m3 { background: var(--ink); color: var(--paper); } .ta-legend i.m4 { background: var(--ink-soft); color: var(--paper); } .ta-legend i.mS { background: var(--ta-red); }
.ta-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; }
.ta-out > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.ta-out dt { font-size: 14px; color: var(--ink-soft); min-width: 0; }
.ta-out dd { margin: 0; font: 600 14px/1.3 var(--mono); color: var(--ink); text-align: right; }
.ta-out dd.bad { color: var(--ta-red); }
.ta-out dd.ok { color: var(--ta-green); }
.w-note.ta-say { font-size: 16px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--ta-green); background: color-mix(in srgb, var(--ta-green) 9%, transparent); color: var(--ink); min-height: 3.2em; }
.w-note.ta-say.warn { color: var(--ink); font-weight: 500; border-left-color: var(--magenta); background: color-mix(in srgb, var(--magenta) 8%, transparent); }
.ta-pre { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ta-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.ta-group { display: grid; gap: 6px; align-content: start; }
.ta-wide, .ta-btns { grid-column: 1 / -1; }
.ta-lbl { font-size: 15px; color: var(--ink-soft); }
.ta-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ta-seg button, .ta-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; }
.ta-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ta-seg button:focus-visible, .ta-btn:focus-visible, .ta-range input:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.ta-range { display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); align-content: start; }
.ta-range b { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.ta-range b.bad { color: var(--ta-red); }
.ta-range input { width: 100%; accent-color: var(--magenta); }
.ta-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ta-btn.ta-go { background: var(--magenta); border-color: var(--magenta); color: #fff; min-width: 9em; text-align: center; }
.ta-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.w-note.ta-note { font-size: 13px; }

@media (max-width: 720px) {
  .ta-ctl, .ta-out { grid-template-columns: 1fr; }
  .ta-out dt, .ta-out dd { font-size: 13px; }
  .ta-calc { font-size: 13.5px; padding: 12px; }
  .ta-calc .row { grid-template-columns: 3.8em 1.1em minmax(0, 1fr); }
}
