/* Test your contact form. Loaded after articles.css, for this article only.

   One picture carries the page: the same form over one year, drawn twice, on one scale. The only
   difference is when the page says thanks. Orange is a message lost with nobody knowing, and
   nothing else on this page uses it: in the reader's map it marks a stop that can fail without a
   word. Indigo is the marked test, the habit that gives the time back. Ink is a message that
   arrived, and grey is what the visitor was shown, which is the same in both lanes on purpose.

   Every bar segment is a flex item sized by its months (--m), and every marker sits at its month
   (--at), so the same markup lies down on wide screens and stands up as columns on phones. */

:root { --ft-bar: 44px; --ft-col: 312px; }

.a-body p, .a-body li, .a-done span, .ft-cap, .a-rail li a > span { text-wrap: pretty; }
.a-sec[data-sec="why"] { border-top: 1px solid var(--rule); }

.a-body .ft-pull { padding-block: 6px; font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.ft-cap { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

@media (min-width: 641px) {
  .a-table { table-layout: fixed; }
  .a-table th:nth-child(1), .a-table td:nth-child(1) { width: 30%; }
  .a-table th:nth-child(2), .a-table td:nth-child(2) { width: 34%; }
}

/* ---------- The hero: one minute, two screens ----------
   What the visitor saw, the save failing between, and what reached the owner. The empty inbox is
   the leak, so it is the one orange surface up here. */
/* Both screens are built the same way, on the same rows, so the eye compares like with like: the
   label, the message, the time on one line across both. */
.ft-split { margin: 34px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1fr); align-items: stretch; }
.ft-screen { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: clamp(16px, 2.4vw, 22px); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-float); min-width: 0; }
.ft-sh { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hint); }
.ft-msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid transparent; border-radius: 12px; background: var(--paper); }
.ft-ico { box-sizing: border-box; width: 38px; height: 38px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ft-msg p { font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); }
.ft-msg b { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.ft-time { font: 500 0.75rem/1.3 var(--mono); color: var(--ink-hint); }
.ft-screen.is-inbox { background: var(--lift-tint); box-shadow: none; }
.is-inbox .ft-sh, .is-inbox .ft-time, .is-inbox .ft-msg p { color: var(--lift-ink); }
.is-inbox .ft-msg { border: 2px dashed var(--lift-ring); background: none; }
.is-inbox .ft-ico { background: none; border: 2px dashed var(--lift); }
/* The break between them: the message's path, cut. A thick orange line with a cut mark on it, and the
   words under the mark, so it reads as one drawing and not a label on a wire. */
.ft-break { position: relative; display: grid; place-items: center; min-width: 0; }
.ft-break::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--lift) 0 9px, transparent 9px 15px); }
.ft-cut { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--lift) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151A3B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7 17 17M17 7 7 17'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 5px var(--paper); }
.ft-break span { position: absolute; left: 0; right: 0; top: calc(50% + 26px); font-size: 0.8125rem; font-weight: 700; line-height: 1.25; text-align: center; color: var(--lift-ink); }
.ft-split figcaption { grid-column: 1 / -1; margin-top: 14px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-hint); }

/* ---------- The set piece: one form, one year, twice ---------- */
.ft-year { margin: 0; padding: clamp(16px, 2.6vw, 26px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); display: grid; gap: 20px; min-width: 0; }
.ft-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.ft-unit { font: 500 0.75rem/1.3 var(--mono); color: var(--ink-hint); }
.ft-lanes { display: grid; gap: 26px; min-width: 0; }
.ft-lane { display: grid; gap: 10px; min-width: 0; }
.ft-lh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 1rem; line-height: 1.25; color: var(--ink); }
.ft-lh small { font-size: 0.875rem; font-weight: 500; color: var(--ink-hint); }
.ft-lb { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 6px 12px; align-items: center; min-width: 0; }
.ft-tn { grid-column: 1; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: var(--ink-hint); }
.ft-bar { grid-column: 2; position: relative; display: flex; gap: 2px; height: var(--ft-bar); min-width: 0; }
.ft-bar > i { flex: var(--m) 1 0px; display: flex; align-items: center; min-width: 0; overflow: hidden; border-radius: 3px; font-style: normal; }
.ft-bar > i:first-of-type { border-radius: 10px 3px 3px 10px; }
.ft-bar > i:last-of-type { border-radius: 3px 10px 10px 3px; }
.ft-bar > i:only-of-type { border-radius: 10px; }
.ft-bar span { padding: 0 10px; font-size: 0.8125rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.ft-bar .s-lost span { white-space: normal; }
.ft-bar .s-lost span b { font-weight: 800; }

/* Grey is what the visitor was shown: the same flat bar in both lanes. Ink arrived. Orange was lost. */
.s-saw { background: var(--grid); color: var(--ink); }
.s-in { background: var(--ink); color: #fff; }
.s-lost { background: var(--lift); color: var(--ink); }
.is-after .ft-bar > i { justify-content: flex-end; }

/* A marker sits at its month. The error line is what the visitor sees, so it wears the page's own ink. */
.ft-mk { position: absolute; z-index: 1; top: 50%; left: calc(var(--at) / 12 * 100% + 4px); transform: translateY(-50%); padding: 0.3em 0.6em; border-radius: 8px; font-style: normal; font-size: 0.75rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.ft-mk.is-err { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.ft-mk.is-fix { background: var(--surface); color: var(--primary-deep); }

/* The marked test, once a month. Indigo, and nowhere else on the page but the reader's own tests. */
.b-test { height: 22px; }
.b-test:not(.is-none)::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--primary-tint); }
.ft-bar.b-test > i { position: absolute; top: 50%; left: calc((var(--at) + 0.5) / 12 * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50% !important; background: var(--primary-deep); }
.b-test.is-none { align-items: center; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #B5BAD2; }
.b-test.is-none span { font-size: 0.75rem; font-weight: 600; color: var(--ink-hint); }

.ft-axis { grid-column: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font: 500 0.6875rem/1 var(--mono); color: var(--ink-hint); }
.ft-axis span { padding: 4px 0 0 3px; border-left: 1px solid var(--rule); }

/* The one motion moment. Armed by articles.js. The year with thanks first is drawn; then the same
   year, saving first, draws in over it from January. Without JS, or with reduced motion, both are
   simply there. */
.ft-year .is-after { transition: clip-path 1.5s var(--ease) 0.3s; clip-path: inset(0 0 0 0); }
.is-armed:not(.is-cut) .is-after { clip-path: inset(0 100% 0 0); transition: none; }

.ft-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* The three numbers share one ink. Their colour sits in a bar at the left, the same as the key below. */
.ft-read > div { display: grid; gap: 3px; align-content: start; padding: 12px 14px 12px 17px; border-radius: 12px; background: var(--paper); box-shadow: inset 4px 0 0 var(--ink); min-width: 0; }
.ft-read .eyebrow { color: var(--ink-hint); }
.ft-read b { font: 700 1.3125rem/1.15 var(--sans); color: var(--ink); }
.ft-read small { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-hint); }
.ft-read .is-lost { box-shadow: inset 4px 0 0 var(--lift); }
.ft-read .is-test { box-shadow: inset 4px 0 0 var(--primary-deep); }

.a-body .ft-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; line-height: 1.3; color: var(--ink-2); }
.ft-key li { display: flex; align-items: center; gap: 7px; }
.ft-key i { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); }
.ft-key .k-saw { background: var(--grid); box-shadow: inset 0 0 0 1px #D3D7EA; }
.ft-key .k-lost { background: var(--lift); }
.ft-key .k-test { border-radius: 50%; background: var(--primary-deep); }

/* ---------- Step 1: the four kinds of stop ---------- */
.ft-kinds { margin: 0; display: grid; gap: 12px; min-width: 0; }
.a-body .ft-kinds ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ft-kinds li { position: relative; display: grid; gap: 5px; align-content: start; padding: 14px 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 0.875rem; line-height: 1.4; }
.ft-kinds li + li::before { content: ""; position: absolute; left: -17px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-top: 2px solid #AEB5D6; border-right: 2px solid #AEB5D6; transform: rotate(45deg); }
.ft-kn { font: 700 1.6rem/1 var(--serif); color: var(--ink); }
.ft-kinds b { font-size: 0.9375rem; line-height: 1.25; color: var(--ink); }
.ft-kinds small { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-hint); }
.ft-kinds figcaption { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-hint); }

/* ---------- The tool, step 1: the one dark surface in the reading column ---------- */
.ft-tool { padding: clamp(16px, 2.6vw, 26px); border-radius: 22px; background: var(--night); color-scheme: dark; display: grid; gap: 20px; min-width: 0; }
.a-body .ft-tool .fine { line-height: 1.5; color: var(--on-night-2); }
.ft-group { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.ft-group legend { padding: 0 0 10px; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-2); }
.ft-seg { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--night-2); }
.ft-seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ft-seg label { padding: 0.6em 0.3em; border-radius: 9px; text-align: center; font: 700 0.9375rem/1.2 var(--sans); color: var(--on-night-2); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.ft-seg label:hover { color: #fff; }
.ft-seg input:checked + label { background: var(--surface); color: var(--ink); }
.ft-seg input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }

.a-body .ft-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
/* Every row spans the panel, so the fields end where the tabs end. A dropdown always sits on the right. */
.ft-row { display: grid; gap: 6px; min-width: 0; }
.ft-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ft-row-top label { font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--on-night); }
.ft-row-n { display: inline-block; min-width: 1.5em; font: 600 0.8125rem/1 var(--mono); color: var(--on-night-2); }
.ft-row-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.ft-row-in.has-pick { grid-template-columns: minmax(0, 1fr) minmax(0, 12.5rem); }
.ft-tool input[type="text"], .ft-tool select {
  min-width: 0; width: 100%; padding: 0.6em 0.7em; border: 1px solid var(--night-line); border-radius: 10px;
  background: var(--night-2); color: var(--on-night); font: 500 1rem/1.3 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ft-tool input::placeholder { color: var(--on-night-2); opacity: 0.85; }
.ft-tool input:focus, .ft-tool select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.ft-tool select {
  -webkit-appearance: none; appearance: none; padding-right: 2.1em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23A8AED2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75em center; background-size: 12px 8px;
}
.ft-x { padding: 0.1em 0; border: 0; background: none; color: var(--on-night-2); font: 600 0.8125rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ft-x:hover { color: #fff; }
.ft-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ft-text { padding: 0.2em 0; border: 0; background: none; color: var(--on-night); font: 600 0.9375rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ft-text:hover { color: #fff; }
.ft-text[disabled] { color: var(--on-night-2); text-decoration: none; cursor: default; }
.ft-tool button:focus-visible, .ft-result button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ft-paper { color: var(--on-night); font-size: 1rem; line-height: 1.5; }

/* ---------- Step 2: one question about the form, a table of stops, one about the person ---------- */
.ft-qs { display: grid; gap: 12px; min-width: 0; }
.ft-card { padding: 16px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.ft-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ft-lab { display: grid; gap: 7px; align-content: end; min-width: 0; font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.ft-qt { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; line-height: 1.4; }
.ft-qt th, .ft-qt td { padding: 12px 14px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.ft-qt thead th { padding-block: 14px 10px; border-top: 0; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; color: var(--ink-hint); vertical-align: bottom; }
.ft-qt { table-layout: fixed; }
.ft-qt thead th:nth-child(1) { width: 30%; }
.ft-qt thead th:nth-child(2) { width: 38%; }
.ft-qt thead th:nth-child(3) { width: 32%; }
.ft-qt tr > :first-child { padding-left: 18px; }
.ft-qt tr > :last-child { padding-right: 18px; }
.ft-q-role { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.35; color: var(--ink-hint); }
.ft-q-name { display: block; margin-top: 2px; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.ft-qs select {
  -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; padding: 0.55em 2em 0.55em 0.75em;
  border: 1px solid var(--rule); border-radius: 10px; color: var(--ink); font: 600 0.875rem/1.3 var(--sans); cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23474E73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.75em center / 12px 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ft-qs select.is-empty { color: var(--ink-hint); font-weight: 500; }
.ft-qs select:hover { border-color: #B5BAD2; }
.ft-qs select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.ft-qt thead th, .ft-lh, .ft-rh, .ft-node-n, .ft-q-name { text-wrap: balance; }

/* ---------- Step 3: the reader's map ---------- */
.ft-out { display: grid; gap: 14px; min-width: 0; }
.ft-map { display: grid; gap: 18px; padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); min-width: 0; }
.ft-map .eyebrow { color: var(--ink-hint); }
/* The path reads left to right in rows of up to four, so five stops sit three and two, never four and one stretched. */
/* Each card spans five rows of the path's grid and shares them (subgrid), so in a row of cards the
   names, the tags, the reasons and the test lines start at the same height, whatever their length. */
.a-body .ft-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px 32px; }
.ft-node { position: relative; min-width: 0; display: grid; gap: 7px; align-content: start; padding: 12px 13px 14px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 4px 0 var(--ink); }
@supports (grid-template-rows: subgrid) {
  .ft-node { grid-row: span 5; grid-template-rows: subgrid; row-gap: 7px; }
}
.ft-node + .ft-node::before { content: ""; position: absolute; left: -21px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-top: 2px solid #AEB5D6; border-right: 2px solid #AEB5D6; transform: rotate(45deg); }
.ft-node.is-open { box-shadow: inset 0 4px 0 #C9CDE0; }
.ft-node.is-silent { background: var(--lift-tint); box-shadow: inset 0 4px 0 var(--lift); }
.ft-node-r { padding-top: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; color: var(--ink-hint); }
.ft-node.is-silent .ft-node-r { color: var(--lift-ink); }
.ft-node-n { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.ft-chip { justify-self: start; padding: 0.22em 0.6em; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
.ft-chip.is-silent { background: var(--lift); color: var(--ink); }
.ft-chip.is-heard { background: var(--ink); color: #fff; }
.ft-chip.is-open { background: var(--grid); color: var(--ink-2); }
.ft-why { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); }
.ft-tested { align-self: end; font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: var(--ink-hint); }
.ft-node.is-silent .ft-tested { color: var(--lift-ink); }
.ft-tested.is-ok { color: var(--primary-deep); }
.ft-sum { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.ft-sum b { font-family: var(--mono); font-weight: 600; }
.ft-note { padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 0.9375rem; line-height: 1.45; color: var(--ink-hint); }

.ft-trap[hidden] { display: none; }
.ft-trap { padding: 16px 18px 16px 22px; border-radius: 14px; background: var(--lift-tint); box-shadow: inset 4px 0 0 var(--lift); font-size: 1rem; line-height: 1.55; color: var(--ink); }
.ft-trap strong { display: block; margin-bottom: 2px; }
.ft-trap.is-unsure { background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule), inset 4px 0 0 #B5BAD2; }
.ft-trap.is-ok { background: var(--primary-tint); box-shadow: inset 4px 0 0 var(--primary-deep); }

/* ---------- Step 4: the plan ---------- */
.ft-empty[hidden], .ft-result[hidden] { display: none; }
.ft-empty { padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; line-height: 1.5; color: var(--ink-hint); }
.ft-result { padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 14px; min-width: 0; }
.ft-result .a-code.is-tall pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.ft-send { justify-self: start; }
.ft-sent { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- Step 5: thanks first, or save first ----------
   Two timelines, one failed save. The long orange stretch is the time nobody knew. */
.ft-two { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.ft-route { padding: clamp(16px, 2.6vw, 22px); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 14px; align-content: start; min-width: 0; }
.ft-rh { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.a-body .ft-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ft-tl li { position: relative; display: grid; gap: 2px; padding: 0 0 14px 24px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.ft-tl li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.ft-tl li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: #AEB5D6; }
.ft-tl li:last-child { padding-bottom: 0; }
.ft-tl li:last-child::after { display: none; }
.ft-tl time { font: 600 0.8125rem/1.4 var(--mono); color: var(--ink); }
.ft-tl q { font-weight: 700; color: var(--ink); }
.ft-tl .ft-gap { min-height: 96px; padding-block: 4px 18px; }
.ft-tl .ft-gap::before { display: none; }
.ft-tl .ft-gap::after { top: 0; left: 7px; width: 4px; border-radius: 2px; background: var(--lift); }
.ft-tl .ft-gap span { font-size: 0.875rem; font-weight: 600; color: var(--lift-ink); }
.ft-err { display: block; margin-top: 4px; padding: 9px 11px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.ft-rr { font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); }
.ft-rr b { font: 600 1.25rem/1.2 var(--mono); color: var(--ink); }
.is-lost .ft-rr b { color: var(--lift-ink); }

/* ---------- Phones ----------
   The year stands up: months run down the left, and each lane's three tracks become columns, the
   way a calendar reads on a phone. The kinds and the reader's path turn into a list read top to
   bottom. A different drawing of the same thing, not a smaller one. */
@media (max-width: 640px) {
  .ft-split { grid-template-columns: minmax(0, 1fr); }
  .ft-break { height: 76px; }
  .ft-break::before { left: 50%; right: auto; top: 8px; bottom: 8px; width: 4px; height: auto; margin: 0 0 0 -2px; background: repeating-linear-gradient(180deg, var(--lift) 0 9px, transparent 9px 15px); }
  .ft-break span { left: calc(50% + 28px); right: auto; top: 50%; transform: translateY(-50%); text-align: left; }
  .ft-pair { grid-template-columns: minmax(0, 1fr); }
  .a-body .ft-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .ft-node { grid-row: auto; grid-template-rows: none; }
  .ft-split figcaption { margin-top: 12px; }

  .ft-lb { grid-template-columns: 2.1rem minmax(0, 1fr) minmax(0, 1fr) 2.6rem; grid-template-rows: auto var(--ft-col); gap: 6px; align-items: stretch; }
  .ft-tn { grid-row: 1; align-self: end; font-size: 0.75rem; }
  .t-saw { grid-column: 2; }
  .t-got { grid-column: 3; }
  .t-test { grid-column: 4; text-align: center; }
  .ft-axis { grid-column: 1; grid-row: 2; grid-template-columns: none; grid-template-rows: repeat(12, minmax(0, 1fr)); }
  .ft-axis span { padding: 3px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .b-saw { grid-column: 2; grid-row: 2; }
  .b-got { grid-column: 3; grid-row: 2; }
  .b-test { grid-column: 4; grid-row: 2; height: auto; }
  .ft-bar { flex-direction: column; height: auto; }
  .ft-bar > i { align-items: flex-start; }
  .is-after .ft-bar > i { justify-content: flex-start; }
  .ft-bar > i:first-of-type { border-radius: 10px 10px 3px 3px; }
  .ft-bar > i:last-of-type { border-radius: 3px 3px 10px 10px; }
  .ft-bar > i:only-of-type { border-radius: 10px; }
  .ft-bar span { padding: 7px 7px; font-size: 0.75rem; white-space: normal; }
  .ft-mk { left: 4px; right: 4px; top: calc(var(--at) / 12 * 100% + 4px); transform: none; white-space: normal; text-align: center; font-size: 0.6875rem; }
  .b-test:not(.is-none)::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; }
  .ft-bar.b-test > i { left: 50%; top: calc((var(--at) + 0.5) / 12 * 100%); }
  .b-test.is-none { align-items: center; justify-content: flex-start; }
  .b-test.is-none span { padding: 7px 0; font-size: 0.6875rem; }
  .is-armed:not(.is-cut) .is-after { clip-path: inset(0 0 100% 0); }

  .ft-read { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ft-read > div { grid-template-columns: 6.25rem minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 0 10px; padding: 10px 12px; }
  .ft-read b { font-size: 1rem; }
  .ft-read .eyebrow { letter-spacing: 0.08em; }

  .a-body .ft-kinds ol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ft-kinds li { grid-template-columns: 2rem minmax(0, 1fr); gap: 2px 10px; padding: 12px 14px; }
  .ft-kn { grid-row: 1 / span 2; font-size: 1.4rem; }
  .ft-kinds li + li::before { left: 22px; top: -11px; margin: 0; transform: rotate(135deg); }

  .ft-row-in.has-pick { grid-template-columns: minmax(0, 1fr); }

  /* The table becomes one card a stop, each answer under its own label. */
  .ft-qt, .ft-qt tbody, .ft-qt tr, .ft-qt th, .ft-qt td { display: block; width: 100%; }
  .ft-qt { background: none; box-shadow: none; }
  .ft-qt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ft-qt tbody { display: grid; gap: 10px; }
  .ft-qt tr { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
  .ft-qt th, .ft-qt td, .ft-qt tr > :first-child, .ft-qt tr > :last-child { padding: 0; border: 0; }
  .ft-qt tbody th { width: 100%; }
  .ft-qt td::before { content: attr(data-l); display: block; margin-bottom: 5px; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; color: var(--ink-hint); }

  .a-body .ft-path { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ft-node { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; }
  .ft-node > * { grid-column: 1 / -1; }
  .ft-node .ft-node-r { grid-column: 1; }
  .ft-node .ft-chip { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin-top: 2px; }
  .ft-node + .ft-node::before { left: 22px; top: -12px; margin: 0; transform: rotate(135deg); }

  .ft-two { grid-template-columns: minmax(0, 1fr); }
  .ft-tl .ft-gap { min-height: 72px; }
}
@media (max-width: 360px) {
  .ft-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-read > div { grid-template-columns: minmax(0, 1fr); }
  .ft-lb { grid-template-columns: 1.9rem minmax(0, 1fr) minmax(0, 1fr) 2.3rem; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .ft-year .is-after, .ft-seg label, .ft-qs select, .ft-tool input, .ft-tool select { transition: none !important; }
}
