/* Send the follow-up after a call. Loaded after articles.css, for this article only.

   The colour rule does the arguing. Orange is a task that went wrong because nobody wrote it down: done by
   nobody, or done twice. Indigo is the week that came back. The follow-up itself is the one dark thing, because
   it is what this page produces, and a name that came from it turns dark too. A task done once is outlined in
   ink: the end of the loop, not a gain in itself. Everything else is grey. */

.a-hero h1, .a-body h2, .a-body h3 { text-wrap: balance; }
.a-hero .lead, .a-body p, .a-body li, .a-body td { text-wrap: pretty; }
.fu-nw { white-space: nowrap; }
.a-facts dd { text-wrap: balance; }
.a-rail li a > span:nth-child(2) { text-wrap: pretty; }

/* ---------- The set piece: one call, two weeks ----------
   Two lanes, one per way of ending the same call. In each, a grid: the three tasks down the side, what each
   person remembers across, and what happened a week later at the end of the row. Where the names in a row
   differ, the row ends in orange. On phones each task becomes its own small block. Armed by articles.js: the
   armed state is a complete picture on purpose (the names are grey, the follow-up's lines are dimmer and the
   time that came back is not drawn yet). On arrival the follow-up lights line by line, the names it gave turn
   dark, and the indigo draws in. Without JS, or with reduced motion, all of it is simply on. */
.fu-fig { margin: 36px 0 0; padding: clamp(14px, 2.2vw, 22px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); display: grid; gap: 18px; min-width: 0; }
.fu-top { display: grid; gap: 3px; padding: 0 2px; }
.a-hero .fu-head { color: var(--ink-hint); }
.fu-need { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); text-wrap: pretty; }

.fu-lane { display: grid; gap: 10px; min-width: 0; }
.fu-lane.is-after { padding-top: 18px; border-top: 1px solid var(--rule); }
.fu-lh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 0 2px; font-size: 0.9375rem; line-height: 1.3; color: var(--ink); }
.fu-lh b { font-weight: 700; }
.fu-lh span { font: 600 0.8125rem/1.3 var(--mono); color: var(--ink-2); }

/* No message: an absence, so it is dashed and holds nothing but the fact. */
.fu-none { padding: 11px 14px; border-radius: 12px; outline: 2px dashed #B9BFDB; outline-offset: -2px; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--ink-hint); }

.fu-msg { display: grid; gap: 6px; padding: 12px 14px 14px; border-radius: 12px; background: var(--night); min-width: 0; }
.fu-msg-t { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--on-night-2); }
.fu-ml { font: 500 0.8125rem/1.5 var(--mono); color: var(--on-night); transition: color 0.4s; transition-delay: calc(var(--n, 0) * 220ms + 150ms); }
.fu-ml.is-open { margin-top: 2px; padding-top: 7px; border-top: 1px solid var(--night-line); }

.fu-grid { display: grid; grid-template-columns: minmax(0, 7.4rem) repeat(3, minmax(0, 0.7fr)) minmax(0, 1.9fr); gap: 6px; min-width: 0; }
.fu-row { display: contents; }
.fu-colh { align-self: end; padding: 0 2px 2px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; color: var(--ink-hint); }
.fu-colh:not(.is-task):not(.is-later) { text-align: center; }
.fu-task { display: flex; align-items: center; padding: 0 2px; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.fu-m { display: grid; place-content: center; padding: 8px 4px; border-radius: 10px; background: var(--grid); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-2); }
.fu-m small { display: none; }
.fu-m.is-same { background: var(--night); color: #fff; transition: background-color 0.4s, color 0.4s; transition-delay: calc(var(--n, 0) * 120ms + 900ms); }
.fu-m.is-same small { color: var(--on-night-2); }

.fu-out { display: grid; align-content: center; gap: 2px; padding: 8px 12px 9px; border-radius: 10px; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; min-width: 0; }
.fu-out small { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; }
.fu-out.is-leak { background: var(--lift-tint); color: var(--lift-ink); }
.fu-out.is-done { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.fu-out.is-done small { color: var(--ink-2); }
.fu-out.is-done b { display: flex; align-items: baseline; gap: 8px; }
.fu-out.is-done b::before { content: ""; flex: none; width: 0.7rem; height: 0.38rem; margin-bottom: 0.18rem; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

.fu-back { grid-column: 2 / -1; display: grid; place-items: center; margin-top: 2px; padding: 10px 12px; border-radius: 10px; background: var(--primary-deep); clip-path: inset(0 0 0 0 round 10px); transition: clip-path 0.9s var(--ease) 1.4s; }
.fu-back span { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; text-align: center; color: #fff; transition: opacity 0.4s 2.1s; }

.a-hero .fu-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.fu-key li { display: flex; align-items: center; gap: 7px; }
.fu-key i { display: block; width: 14px; height: 10px; border-radius: 3px; }
.k-msg { background: var(--night); }
.k-leak { background: var(--lift-tint); box-shadow: inset 0 0 0 1px var(--lift); }
.k-done { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.k-back { background: var(--primary-deep); }

.is-armed:not(.is-cut) .fu-back { clip-path: inset(0 100% 0 0 round 10px); transition: none; }
.is-armed:not(.is-cut) .fu-back span { opacity: 0; transition: none; }
.is-armed:not(.is-cut) .fu-ml { color: #6C739A; transition: none; }
.is-armed:not(.is-cut) .fu-m.is-same { background: var(--grid); color: var(--ink-2); transition: none; }

.fu-cap { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- A line someone owns ----------
   Two columns: how a call ends, and the same line as the follow-up writes it. The left one is dashed, because
   it is an absence: no person, no day. The right one names what it now holds. */
.fu-sort { margin: 0; padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--grid); display: grid; gap: 14px; min-width: 0; }
.fu-sort-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 34px; row-gap: 10px; align-items: stretch; min-width: 0; }
.fu-sort-h { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; color: var(--ink-hint); }
.fu-sort-h.is-own { color: var(--ink); }
.fu-v { position: relative; display: flex; align-items: center; padding: 12px 14px; border-radius: 12px; outline: 2px dashed #B9BFDB; outline-offset: -2px; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.35; color: var(--ink-hint); min-width: 0; }
.fu-v::after { content: "→"; position: absolute; left: 100%; top: 50%; width: 34px; margin-top: -0.7em; font: 700 1.125rem/1.4 var(--sans); font-style: normal; text-align: center; color: var(--ink-hint); }
.fu-f { display: grid; gap: 7px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); min-width: 0; }
.fu-f b { font: 600 0.875rem/1.45 var(--mono); color: var(--ink); }
.fu-f > span { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: var(--ink-hint); }
.fu-sort figcaption, .fu-order figcaption, .fu-read figcaption { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- The order of the follow-up ----------
   The message as one white card, one row per part: its number, the part with an example line, and why it sits
   where it sits. On phones the reason moves under its part. */
.fu-order { margin: 0; padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--grid); display: grid; gap: 12px; min-width: 0; }
.fu-order-t { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; color: var(--ink-hint); }
.fu-order-in { display: grid; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-float); min-width: 0; }
.fu-part { display: grid; grid-template-columns: 1.7rem minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px 16px; min-width: 0; }
.fu-part + .fu-part { box-shadow: inset 0 1px 0 var(--rule); }
.fu-part > i { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--night); color: #fff; font: 700 0.8125rem/1 var(--mono); font-style: normal; }
.fu-pl { display: grid; gap: 3px; min-width: 0; }
.fu-pl b { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase; color: var(--ink); }
.fu-pl > span { font: 500 0.8125rem/1.5 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.fu-part > em { font-size: 0.9375rem; font-style: normal; font-weight: 600; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }

/* ---------- What a read-back catches ----------
   Three columns: the summary's line, what was really said, and the line in the follow-up. The summary's line is
   struck through in grey: a mistake, not a leak, so it is never orange. */
.fu-read { margin: 0; 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; }
.fu-read-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; min-width: 0; }
.fu-read-h { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; color: var(--ink-hint); }
.fu-read-h.is-own { color: var(--ink); }
.fu-tag { grid-column: 1 / -1; margin-top: 10px; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.fu-said, .fu-heard, .fu-fix { display: grid; align-content: start; gap: 4px; padding: 11px 13px; border-radius: 12px; font-size: 0.9375rem; line-height: 1.4; min-width: 0; }
.fu-said small, .fu-heard small, .fu-fix small { display: none; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; }
.fu-said { background: var(--grid); color: var(--ink-hint); }
.fu-said s { text-decoration-thickness: 1.5px; text-decoration-color: #8E94B4; }
.fu-heard { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink); background: var(--paper); }
.fu-heard small { font-family: var(--sans); font-style: normal; color: var(--ink-hint); }
.fu-fix { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); font: 600 0.8125rem/1.5 var(--mono); color: var(--ink); }
.fu-fix small { font-family: var(--sans); color: var(--ink-hint); }
.fu-fix.is-out { font-family: var(--sans); font-size: 0.9375rem; font-weight: 700; }

/* ---------- The tool ----------
   No panel: the questions sit in the reading column, with only their fields on white. The follow-up in step 6
   is the one dark surface, because it is what all of this produces. */
.fu-tool { display: grid; gap: 18px; margin-top: 10px; min-width: 0; }
.a-body .fu-tool .fine { line-height: 1.5; color: var(--ink-hint); }
.fu-q { display: grid; gap: 8px; min-width: 0; }
.fu-label, .fu-q > label { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.fu-tool input[type="text"], .fu-tool textarea { min-width: 0; width: 100%; padding: 0.65em 0.8em; border: 1px solid #D5D9EA; border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 1rem/1.4 var(--sans); text-overflow: ellipsis; transition: border-color 0.2s, box-shadow 0.2s; }
.fu-tool textarea { resize: vertical; }
#fu-paste { min-height: 17rem; font: 500 0.9375rem/1.5 var(--mono); }
.fu-tool input[type="text"]::placeholder, .fu-tool textarea::placeholder { color: var(--ink-hint); font-weight: 400; font-family: var(--sans); }
.fu-tool input[type="text"]:focus, .fu-tool textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.fu-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; min-width: 0; }

/* One line of a list: its fields side by side, the wide one in the middle, and the remove button in its own
   column at the end, never inside a field. */
.fu-rows { display: grid; gap: 10px; min-width: 0; }
.fu-r { display: grid; gap: 8px; align-items: center; min-width: 0; }
.fu-r.k-decs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2rem; }
.fu-r.k-tasks, .fu-r.k-needs { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 0.9fr) 2rem; }
.fu-r.k-opens { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr) 2rem; }
.fu-r.k-decs:not(.has-x) .is-last { grid-column: 2 / -1; }
.fu-r.k-tasks:not(.has-x) .is-last, .fu-r.k-needs:not(.has-x) .is-last, .fu-r.k-opens:not(.has-x) .is-last { grid-column: 3 / -1; }
.fu-x { width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-hint); font: 600 1.125rem/1 var(--sans); cursor: pointer; }
.fu-x:hover { background: var(--grid); color: var(--ink); }

.fu-opt-line { display: grid; gap: 4px; }
.fu-opt-line label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); font-size: 0.9375rem; font-weight: 700; line-height: 1.3; cursor: pointer; }
.fu-opt-line input { width: 20px; height: 20px; margin: 0; accent-color: var(--night); }

.fu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* One quiet pill for every control: the one filled button on the page is the consult. */
.fu-add, .fu-text { padding: 0.5em 0.95em; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px #D5D9EA; color: var(--ink); font: 700 0.875rem/1.2 var(--sans); cursor: pointer; transition: box-shadow 0.2s; }
.fu-add::before { content: "+ "; color: var(--ink-hint); }
#fu-use::before { content: none; }
.fu-add:hover, .fu-text:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.fu-add[disabled] { color: var(--ink-hint); cursor: default; box-shadow: inset 0 0 0 1px var(--rule); }
.fu-tool button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.fu-nojs { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

.a-proof { grid-template-columns: minmax(0, 1fr); }
/* The table above ends this section's run; one section's padding between them is enough. */
.a-sec[data-sec="checked"] { padding-top: 4px; }

.fu-lint, .fu-gaps { display: grid; gap: 8px; min-width: 0; }
.fu-lint:empty, .fu-gaps:empty { display: none; }
.fu-flag { padding: 12px 14px; border-radius: 12px; background: var(--lift-tint); font-size: 0.9375rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.fu-flag b { display: block; font-weight: 700; color: var(--lift-ink); }
.fu-flag .fu-qt { display: block; margin: 2px 0 3px; font: 500 0.875rem/1.5 var(--mono); color: var(--ink); }
.fu-clean { padding: 12px 14px; border-radius: 12px; background: var(--primary-tint); font-size: 0.9375rem; line-height: 1.45; color: var(--ink); }
.fu-clean b { display: block; font-weight: 700; color: var(--primary-deep); }
/* A hint is helper text, not another box: the boxes on this page are the fields and the follow-up. */
.fu-wait { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* What this step writes into the follow-up, live. Until the reader types it is not a box at all: the example
   sits in grey behind a thin rule, the same promise a field's "e.g." makes. It turns into the dark box the
   moment it holds their words. */
.fu-says { display: grid; gap: 6px; padding: 12px 16px 14px; border-radius: 12px; background: var(--night); min-width: 0; transition: background-color 0.3s; }
.fu-says-l { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--on-night-2); }
.fu-says pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 0.875rem/1.6 var(--mono); color: var(--on-night); }
.fu-says[hidden] { display: none; }
.fu-says.is-ex { padding: 2px 0 2px 16px; border-radius: 0; background: none; box-shadow: inset 2px 0 0 #C9CEE3; }
.fu-says.is-ex .fu-says-l, .fu-says.is-ex pre { color: var(--ink-hint); }

/* ---------- The follow-up ---------- */
.fu-result { display: grid; gap: 12px; min-width: 0; }
.fu-result .a-code.is-tall pre, #fu-mebox pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.fu-size { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }
.fu-size.is-short { color: var(--lift-ink); }

/* ---------- Phones ----------
   Side by side leaves no room for a sentence here, so each picture gets its own phone layout. */
@media (max-width: 640px) {
  /* Each task becomes a block: its name, the three memories in a row, then what happened. */
  .fu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .fu-colh { display: none; }
  .fu-task { grid-column: 1 / -1; margin-top: 10px; padding: 0 2px; }
  .fu-row:first-of-type .fu-task { margin-top: 0; }
  .fu-m { padding: 7px 4px 8px; font-size: 0.9375rem; }
  .fu-m small { display: block; margin-bottom: 1px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; text-transform: uppercase; color: var(--ink-hint); }
  .fu-out { grid-column: 1 / -1; }
  .fu-back { grid-column: 1 / -1; margin-top: 8px; padding: 12px; }
  .fu-lh { display: grid; gap: 2px; }

  .fu-sort-in { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .fu-sort-h { display: none; }
  .fu-v { margin-top: 14px; }
  .fu-sort-h.is-own + .fu-v { margin-top: 0; }
  .fu-v::after { content: "↓"; left: 50%; top: 100%; width: 2rem; margin: 0 0 0 -1rem; line-height: 1.6; }
  .fu-f { margin-top: 30px; }

  .fu-part { grid-template-columns: 1.7rem minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: start; padding: 12px 14px; }
  .fu-part > em { grid-column: 2; font-size: 0.875rem; }

  .fu-read-in { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fu-read-h { display: none; }
  .fu-tag { margin-top: 14px; }
  .fu-tag:first-of-type { margin-top: 0; }
  .fu-said small, .fu-heard small, .fu-fix small { display: block; }

  .fu-pair { grid-template-columns: minmax(0, 1fr); }
  /* Two field columns and the remove button's own column. The wide field takes both field columns; for a task,
     who and when sit on the first line, so it reads the way the follow-up writes it. The remove button always
     ends the first line. */
  /* Each line of a list is its own small block, ruled off from the next, so the remove button reads as
     removing the whole block. The second line always runs to the edge; the first runs to the edge too when
     there is no button. */
  .fu-rows { gap: 0; }
  .fu-r.k-decs, .fu-r.k-tasks, .fu-r.k-needs, .fu-r.k-opens { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2rem; gap: 6px; padding: 10px 0; }
  .fu-r:first-child { padding-top: 0; }
  .fu-r + .fu-r { border-top: 1px solid var(--rule); }
  /* Every list the same way: the wide field first, with the remove button beside it, then the short fields
     (who, and when) on the line under it. */
  .fu-r .fu-x { grid-row: 1; grid-column: 3; }
  .fu-r .is-wide { grid-row: 1; grid-column: 1 / 3; }
  .fu-r:not(.has-x) .is-wide { grid-column: 1 / -1; }
  .fu-r .is-who { grid-row: 2; grid-column: 1; }
  .fu-r .is-when, .fu-r.k-tasks:not(.has-x) .is-last, .fu-r.k-needs:not(.has-x) .is-last, .fu-r.k-opens:not(.has-x) .is-last { grid-row: 2; grid-column: 2 / -1; }
  .fu-r.k-decs .is-who, .fu-r.k-decs:not(.has-x) .is-last { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .fu-m { font-size: 0.875rem; }
  .fu-m small { font-size: 0.5625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fu-back, .fu-back span, .fu-ml, .fu-m.is-same { transition: none; }
}
