/* Four places. Loaded after articles.css, for this article only.

   Tilt means loose: a folder with no place yet sits crooked. The moment it has a place it stands
   straight, so nothing in the four places is tilted and nothing tilted reads as sorted.
   Orange is the search: the places you open looking for one file, and a line still waiting for a
   place in the sort. Indigo is what came back: the opens you skip, and the decisions you never had
   to make. Nothing else here wears either colour. */

.a-hero h1, .a-body h2, .a-body h3 { text-wrap: balance; }
.a-hero .lead, .a-body p, .a-body li { text-wrap: pretty; }
.fp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* A person before the picture, in one line, so the four places still clear the fold. */
.fp-by { margin-top: 18px; }
.fp-by img { width: 32px; height: 32px; }
.fp-by strong { display: inline; margin-right: 0.6em; }

/* ---------- The set piece: one search, before and after ----------
   The four places are real markup, so no JS still gets the finished picture. tool.js adds is-before
   to show the pile and the orange trail, then flies a copy of each folder to where it belongs. */
.fp-fig { position: relative; margin: 22px 0 0; padding: clamp(14px, 2.6vw, 24px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); display: grid; gap: 16px; min-width: 0; }
/* The question the picture answers, and the answer, in words: a stranger reads this before any shape. */
.fp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.fp-q1 { display: grid; gap: 3px; min-width: 0; }
.fp-q1 b { font-family: var(--serif); font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); font-weight: 700; line-height: 1.15; color: var(--ink); }
.fp-q1 span { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.fp-q1 .fp-af { display: block; color: var(--primary-deep); }
.fp-q1 .fp-b4 { display: none; color: var(--lift-ink); }
.is-before .fp-q1 .fp-af { display: none; }
.is-before .fp-q1 .fp-b4 { display: block; }

.fp-sw { flex: none; display: grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 999px; background: var(--grid); }
.fp-sw[hidden] { display: none; }
.fp-sw button { padding: 0.45em 0.9em; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 700 0.8125rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.fp-sw button:hover { color: var(--ink); }
.fp-sw [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 26, 59, 0.16); }
.fp-sw button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Two sentences in one place, the finished one by default, so no JS still reads true. */
.fp-b4 { display: none; }
.is-before .fp-b4 { display: inline; }
.is-before .fp-af { display: none; }

/* The pile and the questions only exist before the sort. Once everything has a place they fold
   away, so the finished picture is the four places and nothing that needs explaining. */
.fp-stage { position: relative; display: grid; min-width: 0; }
.fp-pile { position: relative; height: 0; border-radius: 14px; background: var(--paper); overflow: hidden; transition: height 0.5s var(--ease); }
.is-before .fp-pile { height: 14rem; overflow: visible; transition: none; }
.fp-pilehead { position: absolute; left: 14px; top: 11px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-hint); }

.fp-trail { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.is-before .fp-trail { display: block; }
.is-sorting .fp-trail { display: none; }
.fp-trail path { fill: none; stroke: var(--lift); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; stroke-linejoin: round; }

.fp-g { display: none; position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: rotate(calc(var(--r) * 1deg)); align-items: center; gap: 6px; padding: 0.42em 0.72em; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.is-before .fp-g { display: inline-flex; }
.is-before .fp-g, .fp-fly { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px #C9CEE3, 0 2px 5px -2px rgba(21, 26, 59, 0.22); }
.fp-g::before { content: ""; flex: none; width: 12px; height: 9px; border-radius: 2px; }
.fp-g.is-folder::before { background: #AEB5D6; border-top-left-radius: 0; box-shadow: 0 -2px 0 -0.5px #AEB5D6; clip-path: inset(-3px 0 0 0); }
.fp-g.is-note::before { width: 9px; height: 11px; box-shadow: inset 0 0 0 1.5px #AEB5D6; }
/* Opened in the search: orange, numbered in the order you opened it. */
.is-before .fp-g[data-n] { color: var(--lift-ink); background: var(--lift-tint); box-shadow: inset 0 0 0 1px var(--lift), 0 2px 5px -2px rgba(21, 26, 59, 0.22); }
.is-before .fp-g[data-n]::after { content: attr(data-n); position: absolute; top: -9px; right: -9px; width: 19px; height: 19px; border-radius: 50%; background: var(--lift-ink); color: #fff; font: 700 11px/19px var(--mono); text-align: center; }
.is-before .fp-g.is-found { box-shadow: inset 0 0 0 2px var(--lift-ink), 0 2px 5px -2px rgba(21, 26, 59, 0.22); font-weight: 800; }
/* Where a folder lay, once it has left: the pile visibly thins as the sort runs. */
.is-before .fp-g.is-left { color: transparent; background: none; box-shadow: inset 0 0 0 1px #DADDEC; }
.is-before .fp-g.is-left::before, .is-before .fp-g.is-left::after { visibility: hidden; }
.fp-fly { z-index: 5; display: inline-flex; margin: 0; overflow: hidden; pointer-events: none; }
.fp-fly::after { display: none; }

.fp-gate { position: relative; display: grid; place-items: center; height: 0; overflow: hidden; transition: height 0.5s var(--ease); }
.is-before .fp-gate { height: 2.75rem; overflow: visible; transition: none; }
.fp-gate::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #AEB5D6; }
.fp-gate span { position: relative; padding: 0.42em 1em; border-radius: 999px; background: var(--night); color: #fff; font: 700 0.8125rem/1.2 var(--sans); }

.fp-land { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.is-before .fp-land { padding-top: 14px; border-top: 2px solid #AEB5D6; }
.fp-dr { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 10px 10px 12px; border-radius: 14px; background: var(--paper); }
.fp-dh { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 0.9375rem; line-height: 1.2; color: var(--ink); }
.fp-dh b { font-weight: 700; overflow-wrap: anywhere; }
.fp-dn { font: 600 0.8125rem/1 var(--mono); color: var(--ink-hint); }
.fp-dm { margin-top: -2px; font-size: 0.75rem; line-height: 1.3; color: var(--ink-hint); }
.fp-items { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.fp-items li { position: relative; display: grid; gap: 4px; min-width: 0; }
.fp-items [data-from] { display: block; min-width: 0; padding: 5px 8px; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.fp-items .fp-sub { margin-left: 12px; background: var(--primary-tint); box-shadow: none; color: var(--primary-deep); font-weight: 700; }
.fp-items [data-from].is-wait { visibility: hidden; }

/* The short way to the lease, once everything has a place: indigo, the place you look first. */
.fp-dr.is-path { box-shadow: inset 0 0 0 2px var(--primary); background: var(--surface); }
.fp-items li.is-path > span:first-child { box-shadow: inset 0 0 0 2px var(--primary); }
.is-before .fp-dr.is-path { box-shadow: none; background: var(--paper); }
.is-before .fp-items li.is-path > span:first-child { box-shadow: inset 0 0 0 1px var(--rule); }

.fp-read { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "eye eye" "num txt"; align-items: baseline; gap: 2px 12px; padding: 12px 16px; border-radius: 12px; background: var(--paper); min-width: 0; }
.fp-read .eyebrow { grid-area: eye; color: var(--ink-hint); }
.fp-read b { grid-area: num; font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.2rem); font-weight: 700; line-height: 1.05; color: var(--primary-deep); }
.fp-read small { grid-area: txt; font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); text-wrap: balance; }
.is-before .fp-read b { color: var(--ink-hint); }
.fp-cap { margin-top: 14px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- Step 1: the list ---------- */
/* The one dark surface in the reading column: where the reader stops reading and writes. */
.fp-tool { padding: clamp(16px, 2.6vw, 26px); border-radius: 22px; background: var(--night); color-scheme: dark; display: grid; gap: 12px; min-width: 0; }
.fp-lab { font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--on-night); text-wrap: balance; }
.fp-tool textarea { width: 100%; min-width: 0; padding: 0.7em 0.85em; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night-2); color: var(--on-night); font: 500 1.0625rem/1.55 var(--sans); resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; }
.fp-tool textarea::placeholder { color: var(--on-night-2); }
.fp-tool textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.fp-count { font: 600 0.9375rem/1.4 var(--mono); color: var(--on-night); }
.fp-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.fp-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; }
.fp-text:hover { color: #fff; }
.fp-tool button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.a-body .fp-tool .fine { line-height: 1.5; color: var(--on-night-2); }

.fp-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); }
.fp-tool .fp-empty { background: var(--night-2); box-shadow: none; color: var(--on-night-2); }

/* ---------- Step 2: the three questions, as a path ---------- */
.fp-path { margin: 0; display: grid; gap: 0; }
.fp-q { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 8rem; align-items: center; }
.fp-q > span:first-child { padding: 13px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.fp-to { position: relative; height: 2px; background: #AEB5D6; font-size: 0.75rem; font-style: normal; font-weight: 700; color: var(--ink-hint); }
.fp-to::after { content: ""; position: absolute; right: 0; top: -4px; border-left: 7px solid #AEB5D6; border-block: 5px solid transparent; }
.fp-to span { position: absolute; left: 0; right: 7px; bottom: 5px; line-height: 1.2; text-align: center; }
.fp-out { padding: 10px 12px; border-radius: 12px; background: var(--night); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; text-align: center; color: #fff; white-space: nowrap; }
.fp-on { position: relative; height: 30px; margin-left: 28px; border-left: 2px solid #AEB5D6; font-size: 0.75rem; font-weight: 700; line-height: 30px; color: var(--ink-hint); }
.fp-on span { padding-left: 10px; }
/* No question left to ask: a statement, so it sits on the paper, not on a card. All four outcomes
   end in the same column. */
.fp-q.is-else > span:first-child { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 500; color: var(--ink-2); }

/* ---------- Step 2: a project ends, an area does not ---------- */
.fp-life { margin: 0; padding: clamp(16px, 2.6vw, 22px); border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 16px; position: relative; }
.fp-lr { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 14px; align-items: start; }
.fp-ln { display: grid; gap: 2px; line-height: 1.2; }
.fp-ln b { font-size: 1rem; font-weight: 700; color: var(--ink); }
.fp-ln small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-hint); }
.fp-track { position: relative; display: grid; align-items: center; min-height: 1.25rem; padding-bottom: 1.6rem; }
.fp-track.is-ends { grid-template-columns: 10px minmax(0, 0.68fr) 5px minmax(0, 0.32fr); }
.fp-track.is-runs { grid-template-columns: 10px minmax(0, 1fr) 10px; }
.fp-track i { display: block; }
.fp-start { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.fp-line { height: 2px; background: var(--ink-2); }
.fp-stop { width: 5px; height: 22px; border-radius: 2px; background: var(--night); }
.is-runs .fp-line { background: linear-gradient(var(--ink-2), var(--ink-2)) left / 72% 2px no-repeat, repeating-linear-gradient(90deg, var(--ink-2) 0 7px, transparent 7px 13px) right / 28% 2px no-repeat; }
.fp-more { width: 0; height: 0; border-left: 10px solid var(--ink-2); border-block: 6px solid transparent; }
.fp-tl { position: absolute; left: 0; bottom: 0; font-size: 0.875rem; line-height: 1.3; color: var(--ink-hint); }
.is-ends .fp-tl { left: auto; right: 32%; transform: translateX(50%); white-space: nowrap; }

/* ---------- Step 2: the sort ---------- */
#fp-sorter { display: grid; gap: 12px; min-width: 0; }
.fp-tally { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; line-height: 1.3; color: var(--ink-2); }
.fp-tally:empty { display: none; }
.fp-tally b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.fp-tally .is-open, .fp-tally .is-open b { color: var(--lift-ink); }

.a-body .fp-sort { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "q seg"; gap: 8px 14px; align-items: center; min-width: 0; padding: 11px 12px 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; line-height: 1.35; }
.fp-row > strong { grid-area: name; min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.fp-row .fp-ask { grid-area: q; min-width: 0; display: grid; gap: 2px; font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); }
.fp-row .fp-so { font-size: 0.8125rem; color: var(--ink-hint); }
.fp-row > .fp-seg { grid-area: seg; grid-auto-columns: 4.6rem; }
/* Still loose, so still orange: the mark goes the moment the line gets a place. */
.fp-row.is-open { box-shadow: inset 0 0 0 1px var(--rule), inset 3px 0 0 var(--lift); }
.fp-row.is-set { grid-template-areas: "name tag" "why why"; }
.fp-tag { grid-area: tag; justify-self: end; padding: 0.35em 0.8em; border-radius: 999px; background: var(--night); color: #fff; font: 700 0.875rem/1.2 var(--sans); white-space: nowrap; }
.fp-why { grid-area: why; min-width: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.fp-link { padding: 0.1em 0; border: 0; background: none; color: var(--primary-deep); font: 600 0.875rem/1.3 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.fp-why .fp-link { margin-left: 0.5em; }
.fp-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
/* The sample before there is a list. Recomputed colours, not opacity. */
.is-ghost .fp-row > strong { font-weight: 500; color: var(--ink-hint); }
.is-ghost .fp-seg button, .is-ghost .fp-link { color: var(--ink-hint); cursor: default; }
.is-ghost .fp-tag { background: #DFE1EC; color: var(--ink-2); }
.fp-try { justify-self: start; padding: 0.6em 1.05em; border: 0; border-radius: 999px; background: var(--primary-tint); color: var(--primary-deep); font: 700 0.9375rem/1.2 var(--sans); cursor: pointer; }
.fp-try:hover { background: #DFE4FD; }
.fp-try:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.fp-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.fp-seg button { min-height: 2.5rem; padding: 0.3em 0.7em; border: 0; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font: 700 0.9375rem/1.15 var(--sans); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.fp-seg button:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.fp-seg button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.fp-seg [aria-pressed="true"] { background: var(--night); box-shadow: none; color: #fff; }
.fp-seg [aria-pressed="true"]:hover { box-shadow: none; }

/* ---------- Step 4: the big pile, and the plan ---------- */
.fp-big { margin: 0; padding: clamp(16px, 2.6vw, 22px); border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; position: relative; }
.fp-bp { display: grid; gap: 10px; align-content: start; min-width: 0; }
/* The pile fills its half, so it looks like more than the tidy side, not like a gap under four rows. */
.fp-bp:first-child { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
.fp-bp:first-child .fp-heap { align-content: space-evenly; }
.fp-bh { font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.fp-heap { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px 6px; padding: 6px 2px; }
.fp-heap i { display: block; height: 14px; border-radius: 3px; background: #C3C8DE; transform: rotate(-5deg); }
.fp-heap i:nth-child(2n) { transform: rotate(6deg); }
.fp-heap i:nth-child(3n) { transform: rotate(-9deg) translateY(2px); }
.fp-heap i:nth-child(5n) { transform: rotate(11deg) translateY(-2px); }
.fp-heap i:nth-child(7n) { transform: rotate(2deg) translateX(3px); }
.fp-heap.is-filed { gap: 5px; padding: 0; }
.fp-heap.is-filed i { height: 10px; transform: none; background: #C9D2FC; }
.fp-out3 { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-bt { display: grid; gap: 1px; padding: 6px 10px; border-radius: 8px; background: var(--night); color: #fff; font-size: 0.875rem; font-weight: 600; line-height: 1.25; }
.fp-bt small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; color: var(--on-night-2); }
.fp-box { display: grid; gap: 9px; padding: 10px 12px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.fp-boxh { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); }
.fp-boxh b { margin-right: 0.45em; color: var(--ink); }
.fp-date { font-family: var(--mono); color: var(--ink); }
.fp-came { font-size: 0.9375rem; line-height: 1.35; font-weight: 600; color: var(--primary-deep); }
.fp-came b { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1; margin-right: 0.15em; }
.fp-cap2 { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.45; color: var(--ink-hint); }

.fp-mode { padding: clamp(14px, 2.4vw, 20px); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 10px; min-width: 0; }
.fp-ml { font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.fp-say { font-size: 1rem; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.fp-say:empty { display: none; }
.fp-say b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
/* The plan scrolls inside its box past about twenty lines: Copy takes all of it, and a long list
   should not turn the step into one dark wall. */
.a-step .a-code.is-tall pre { max-height: 22rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.a-step .a-code.is-lines pre { padding-right: 88px; }

/* ---------- Step 5: one folder, three places over time ---------- */
.fp-move { margin: 6px 0; padding: clamp(16px, 2.6vw, 22px); border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.fp-mv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-top: 6px; }
.fp-mc { display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 0.9375rem; font-weight: 600; line-height: 1.25; color: var(--ink); white-space: nowrap; }
.fp-mc small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-hint); }
.fp-ma { position: relative; display: block; height: 2px; min-width: 3.5rem; background: #AEB5D6; font-style: normal; }
.fp-ma::after { content: ""; position: absolute; right: 0; top: -4px; border-left: 7px solid #AEB5D6; border-block: 5px solid transparent; }
.fp-ma span { position: absolute; left: -6px; right: 1px; bottom: 10px; font-size: 0.8125rem; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-hint); }

/* ---------- Phones ----------
   Four columns at 390 leave no room to read, so the four places become a two by two grid. The pile
   loses its words: at this size it only has to look like too much, and the orange numbers carry the
   search. The path turns each answer into a row under its question. */
@media (max-width: 640px) {
  .is-before .fp-pile { height: 11.5rem; }
  .fp-g, .fp-fly { width: 3.3rem; height: 1rem; padding: 0; font-size: 0; }
  /* Clear of the pile's label, which the top row ran into at this height. */
  .fp-g { top: calc(28px + var(--y) * 0.8%); }
  .fp-g::before { display: none; }
  .is-before .fp-gate { height: 2.5rem; }
  /* The answer gets the full width under the question and the switch, or it breaks into three lines. */
  .fp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q sw" "a a"; align-items: center; gap: 4px 12px; }
  .fp-q1 { display: contents; }
  .fp-q1 b { grid-area: q; }
  .fp-q1 span { grid-area: a; }
  .fp-sw { grid-area: sw; }
  .fp-land { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .fp-dr { padding: 8px 8px 10px; gap: 5px; }
  .fp-items [data-from] { padding: 4px 7px; font-size: 0.75rem; }
  .fp-read { padding: 10px 12px; }
  .fp-sw button { padding-inline: 0.75em; }

  .fp-q { grid-template-columns: minmax(0, 1fr) 8rem; row-gap: 0; }
  .fp-q > span:first-child { grid-column: 1 / -1; }
  .fp-to { grid-column: 1; grid-row: 2; align-self: center; height: auto; margin-top: 6px; padding-right: 10px; background: none; text-align: right; }
  .fp-to::after { display: none; }
  .fp-to span { position: static; display: inline; }
  .fp-to span::after { content: " →"; }
  .fp-out { grid-column: 2; grid-row: 2; margin-top: 6px; }
  /* The next line has to leave from its question, so it runs up past the outcome beside it. */
  .fp-on { display: flex; align-items: flex-end; height: 74px; margin-top: -44px; line-height: 1.8; pointer-events: none; }

  .fp-lr { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fp-ln { grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 10px; }
  .is-ends .fp-tl { right: auto; left: 0; transform: none; white-space: normal; }
  .fp-track { padding-bottom: 1.5rem; }

  .fp-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "q" "seg"; padding: 11px 12px 12px 14px; }
  .fp-row > .fp-seg { grid-auto-columns: minmax(0, 1fr); }
  .fp-row.is-set { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "why why"; }

  .fp-big { grid-template-columns: minmax(0, 1fr); }
  .fp-mode .fp-seg { grid-auto-flow: row; }

  .fp-mv { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 0; padding-top: 0; }
  .fp-ma { width: 2px; height: 40px; min-width: 0; margin-left: 22px; }
  .fp-ma::after { right: -4px; top: auto; bottom: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #AEB5D6; border-bottom: 0; }
  .fp-ma span { left: 14px; right: auto; bottom: auto; top: 50%; transform: translateY(-50%); white-space: nowrap; text-align: left; }
}
@media (max-width: 340px) {
  .fp-g, .fp-fly { width: 2.8rem; }
  .fp-items [data-from] { padding-inline: 6px; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-sw button, .fp-seg button, .fp-pile, .fp-gate { transition: none; }
}
