/* The weekly review. Loaded after articles.css, for this article only.

   Two properties carry the argument. Tilt means loose: a line with no place yet sits crooked and
   orange, because an open loop is a small leak. The moment it has a place it stands straight and
   goes grey, so nothing on the finished week is tilted and nothing tilted can be read as finished.
   Indigo is room, the part of the week nobody claimed. That is the only time that comes back here. */

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

/* ---------- The set piece: one pile, one sort, one week ----------
   The finished week is real markup, so no JS still gets the whole picture. tool.js adds is-before to
   show the pile, and flies a copy of each slip to where the real one already sits. */
/* A person before the picture, in one line, so the finished week still clears the fold. */
.wr-by { margin-top: 18px; }
.wr-by img { width: 32px; height: 32px; }
.wr-by strong { display: inline; margin-right: 0.6em; }

.wr-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; }
.wr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wr-toggle { padding: 0.5em 0.95em; border: 0; border-radius: 999px; background: var(--grid); color: var(--ink); font: 700 0.8125rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s; }
.wr-toggle:hover { background: var(--rule); }
.wr-toggle[hidden] { display: none; }
.wr-toggle:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

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

.wr-stage { position: relative; display: grid; min-width: 0; }
/* At rest the sort has happened and the head is empty, so the pile folds to one line and the
   finished week takes the room. An empty box this size held the payoff below the fold. It only
   animates shut: opening it instantly means the slips measure a settled layout before they fly. */
.wr-pile { position: relative; height: 2.75rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-inline: 14px; border-radius: 14px; background: var(--paper); overflow: hidden; transition: height 0.5s var(--ease); }
.is-before .wr-pile { height: 13.5rem; display: block; padding: 0; transition: none; }
.wr-pilehead { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-hint); }
.is-before .wr-pilehead { position: absolute; left: 14px; top: 11px; }
.wr-emptied { font-size: 0.9375rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.is-before .wr-emptied { display: none; }

.wr-g { display: none; position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: rotate(calc(var(--r) * 1deg)); padding: 0.42em 0.72em; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.is-before .wr-g { display: block; }
.is-before .wr-g, .wr-fly { 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); }
/* Where a slip lay, once it has left: the pile visibly thins as the sort runs. */
.is-before .wr-g.is-left { color: transparent; background: none; box-shadow: inset 0 0 0 1px #DADDEC; }
.wr-fly { z-index: 5; display: block; margin: 0; overflow: hidden; pointer-events: none; }

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

.wr-land { display: grid; grid-template-columns: minmax(0, 1fr) 9.75rem; gap: 16px 20px; padding-top: 14px; border-top: 2px solid #AEB5D6; }
.wr-land-h { display: flex; align-items: baseline; gap: 0.5em; margin-bottom: 9px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.2; text-transform: uppercase; color: var(--ink-hint); }
.wr-land-h b { font: 600 0.8125rem/1 var(--mono); letter-spacing: 0; color: var(--ink); }
.wr-land-side { display: grid; gap: 16px; align-content: start; }

.wr-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.wr-day { display: grid; gap: 6px; align-content: start; min-width: 0; }
.wr-dn { display: flex; align-items: baseline; gap: 6px; font-size: 0.75rem; line-height: 1.2; color: var(--ink-hint); }
.wr-dn b { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.wr-slots { display: grid; gap: 4px; grid-auto-rows: minmax(3.35rem, auto); min-width: 0; }
.wr-s { display: flex; align-items: center; min-width: 0; padding: 5px 7px; border-radius: 7px; background: #EFF0F6; color: var(--ink); font-size: 0.8125rem; font-weight: 600; line-height: 1.18; overflow-wrap: anywhere; }
.wr-s.is-goal { background: var(--night); color: #fff; }
.wr-s.is-room { background: var(--primary-tint); box-shadow: inset 0 0 0 1px #C9D2FC; color: var(--primary-deep); font-weight: 700; }
.wr-s.is-off { background: repeating-linear-gradient(135deg, #F1F2F9 0 5px, #E4E6F1 5px 10px); }
.wr-s.is-over { background: var(--lift-tint); box-shadow: inset 0 0 0 1px var(--lift); color: var(--lift-ink); }

/* Waiting for its slip: the place is there, nothing is in it yet. */
.wr-s.is-wait, .is-before .wr-s.is-room { background: none; box-shadow: inset 0 0 0 1px var(--rule); color: transparent; }

.wr-later, .wr-drop { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.wr-later li.is-wait, .wr-drop li.is-wait { visibility: hidden; }
/* A real line-through, in the cut gradient's middle colour. A drawn line sat between the rows once a
   long line wrapped on a narrow phone, and crossed out neither of them. */
.wr-drop li { color: var(--ink-2); text-decoration: line-through; text-decoration-color: #A79EFB; text-decoration-thickness: 1.5px; }

.wr-read { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wr-read > div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--paper); min-width: 0; }
.wr-read .eyebrow { color: var(--ink-hint); }
.wr-read b { font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.2rem); font-weight: 700; line-height: 1.05; color: var(--ink); }
.wr-read small { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-hint); }
.wr-free b { color: var(--primary-deep); }
.is-before .wr-open b, .is-before .wr-free b { color: var(--lift-ink); }

.wr-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); }
.wr-key li { display: flex; align-items: center; gap: 7px; }
.wr-key i { width: 14px; height: 14px; border-radius: 4px; }
.wr-key .k-goal { background: var(--night); }
.wr-key .k-sec { background: #DFE1EC; }
.wr-key .k-room { background: var(--primary-tint); box-shadow: inset 0 0 0 1px #AEBBFA; }
.wr-key .k-off { background: repeating-linear-gradient(135deg, #F1F2F9 0 3px, #D9DCEB 3px 6px); }
.wr-cap { margin-top: 14px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* The one number in the opening, lifted out of the paragraph it would otherwise be buried in. Orange,
   because notes nobody closes are a leak. */
.a-body .wr-pull { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px clamp(16px, 3vw, 26px); align-items: center; padding-block: clamp(16px, 2.6vw, 22px); border-block: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.55; }
.wr-pull b { font-family: var(--serif); font-size: clamp(3.6rem, 2.8rem + 3vw, 5rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.02em; color: var(--lift-ink); }

/* ---------- Cards and fields ---------- */
.wr-card, .wr-mine { padding: clamp(14px, 2.4vw, 20px); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 12px; min-width: 0; }
.wr-lab { font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.wr-card textarea, .wr-moves input { width: 100%; min-width: 0; padding: 0.65em 0.8em; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); font: 500 1rem/1.5 var(--sans); transition: border-color 0.2s, box-shadow 0.2s; }
.wr-card textarea { resize: vertical; }
.wr-card textarea:focus, .wr-moves input:focus, .wr-sets input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.wr-card textarea::placeholder, .wr-moves input::placeholder { color: var(--ink-hint); }

/* The one dark surface in the reading column: this is where the reader stops reading and empties
   their head, so it should look like a different place. */
.wr-tool { padding: clamp(16px, 2.6vw, 26px); border-radius: 22px; background: var(--night); color-scheme: dark; display: grid; gap: 12px; min-width: 0; }
.wr-tool .wr-lab { color: var(--on-night); }
.wr-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; }
.wr-tool textarea::placeholder { color: var(--on-night-2); }
.wr-tool textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.wr-count { font: 600 0.9375rem/1.4 var(--mono); color: var(--on-night); }
.wr-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.wr-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; }
.wr-text:hover { color: #fff; }
.wr-tool button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.a-body .wr-tool .fine { line-height: 1.5; color: var(--on-night-2); }

.wr-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); }
.wr-empty[hidden], .wr-moves[hidden], .wr-say[hidden] { display: none; }
.wr-tool .wr-empty { background: var(--night-2); box-shadow: none; color: var(--on-night-2); }

/* ---------- Step 3: the week on paper, and the one you have ---------- */
.wr-paper { 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: 14px; position: relative; }
.wr-pr { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr) 2.6rem; gap: 12px; align-items: center; }
.wr-pn { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.wr-pr > b { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1; text-align: right; color: var(--ink); }
.wr-pdays { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wr-pd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.wr-pd i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--ink-2); }
.wr-pd i.is-off { background: repeating-linear-gradient(135deg, #F1F2F9 0 3px, #D5D8E7 3px 6px); }
.wr-pd small { grid-column: 1 / -1; margin-top: 3px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; color: var(--ink-hint); }

.wr-load { display: grid; gap: 6px; }
.wr-lr { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: 10px; align-items: center; }
.wr-lr > span { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
/* A default the reader has not chosen, so it stays quiet: five dark bars shouted over a question
   nobody had answered yet. */
.wr-lr .wr-seg [aria-pressed="true"] { background: #DFE1EC; box-shadow: inset 0 0 0 1.5px #9AA1C4; color: var(--ink); }

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

.wr-sets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.wr-sets span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.wr-sets input { width: 3.5em; padding: 0.4em 0.5em; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); font: 500 1rem/1.3 var(--mono); }
.wr-say { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.wr-say b { font-family: var(--mono); font-weight: 600; }
.wr-say .is-over { color: var(--lift-ink); }
.wr-say .is-room { color: var(--primary-deep); }

/* ---------- Step 4: the sort, as a path ---------- */
.wr-path { margin: 0; display: grid; gap: 0; }
.wr-q { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 7rem; align-items: center; }
.wr-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); }
.wr-to { position: relative; height: 2px; background: #AEB5D6; font-size: 0.75rem; font-style: normal; font-weight: 700; color: var(--ink-hint); }
.wr-to::after { content: ""; position: absolute; right: 0; top: -4px; border-left: 7px solid #AEB5D6; border-block: 5px solid transparent; }
.wr-to span { position: absolute; left: 0; right: 7px; bottom: 5px; line-height: 1.2; text-align: center; }
.wr-out { padding: 10px 12px; border-radius: 12px; background: #EFF0F6; font-size: 0.9375rem; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-2); }
.wr-out.is-drop { text-decoration: line-through; text-decoration-color: #7E71FA; text-decoration-thickness: 2px; }
.wr-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); }
.wr-on span { padding-left: 10px; }
.wr-end { justify-self: start; padding: 10px 18px; border-radius: 12px; background: var(--night); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; color: #fff; }

.wr-tally { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; line-height: 1.3; color: var(--ink-2); }
.wr-tally:empty { display: none; }
.wr-tally b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.wr-tally .is-open b, .wr-tally .is-open { color: var(--lift-ink); }

.wr-sort { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.a-body .wr-sort { padding: 0; }
.wr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; min-width: 0; padding: 9px 10px 9px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; line-height: 1.35; }
.wr-row strong { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Still open, so still orange: the mark goes the moment the line gets a place. */
.wr-row.is-open { box-shadow: inset 0 0 0 1px var(--rule), inset 3px 0 0 var(--lift); }
.wr-row .wr-seg { grid-auto-columns: 5.6rem; }
.wr-row .wr-seg.is-days { grid-auto-columns: 2.85rem; }
.wr-row .wr-seg.is-days button { padding-inline: 0.1em; font-size: 0.8125rem; }
.wr-link { grid-column: 1 / -1; justify-self: start; 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; }
.wr-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.wr-tag { grid-column: 1 / -1; font-size: 0.8125rem; font-weight: 700; color: var(--ink-hint); }
/* The sample before there is a list. Recomputed colours, not opacity. */
.is-ghost .wr-row strong { font-weight: 500; color: var(--ink-hint); }
.is-ghost .wr-seg button { color: var(--ink-hint); cursor: default; }
.is-ghost .wr-seg [aria-pressed="true"] { background: #DFE1EC; color: var(--ink-2); }
#wr-sorter { display: grid; gap: 12px; min-width: 0; }
.wr-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; }
.wr-try:hover { background: #DFE4FD; }
.wr-try:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---------- Step 5: your own week ---------- */
#wr-dayer { display: grid; gap: 8px; min-width: 0; }
.a-body .wr-mine .eyebrow { color: var(--ink-hint); }

/* ---------- Step 6: the first move ---------- */
.wr-firsts { margin: 0; display: grid; gap: 10px; position: relative; }
.wr-f { display: grid; grid-template-columns: 7.5rem 1.5rem minmax(0, 1fr); gap: 10px; align-items: center; }
.wr-f i { font-style: normal; font-weight: 700; text-align: center; color: #8990B4; }
.wr-loose { justify-self: start; padding: 0.42em 0.72em; border-radius: 8px; background: var(--lift-tint); box-shadow: inset 0 0 0 1px var(--lift); color: var(--lift-ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.2; transform: rotate(-2.5deg); }
.wr-f:nth-child(2) .wr-loose { transform: rotate(2deg); }
.wr-fixed { padding: 0.5em 0.8em; border-radius: 8px; background: #EFF0F6; color: var(--ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.wr-moves { display: grid; gap: 14px; min-width: 0; padding: clamp(14px, 2.4vw, 20px); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.wr-move { display: grid; gap: 6px; min-width: 0; }
.wr-mh { display: flex; align-items: baseline; gap: 10px; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.wr-mh b { flex: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-hint); }
.a-step .a-code.is-tall pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Phones: the week turns on its side ----------
   Five columns at 390 leave no room to read, so each day becomes a row and its three places run
   left to right. A different drawing of the same week, not a smaller one. The pile loses its words
   for the same reason: at this size it only has to look like too much. */
@media (max-width: 640px) {
  .is-before .wr-pile { height: 10rem; }
  .wr-g, .wr-fly { width: 3.4rem; height: 0.95rem; padding: 0; font-size: 0; }
  .wr-gate { height: 2.5rem; }
  .wr-land { grid-template-columns: minmax(0, 1fr); }
  .wr-land-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .wr-week { grid-template-columns: minmax(0, 1fr); }
  .wr-day { grid-template-columns: 2.6rem minmax(0, 1fr); align-items: center; gap: 6px; }
  .wr-dn { display: grid; gap: 1px; }
  .wr-dn span { font-size: 0.6875rem; }
  .wr-slots { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-auto-rows: minmax(3.05rem, auto); }
  .wr-s { padding: 4px 6px; font-size: 0.75rem; }
  .wr-read > div { padding: 10px 12px; }
  .wr-key { gap: 5px 14px; font-size: 0.8125rem; }

  .wr-pr { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .wr-pdays { grid-column: 1 / -1; grid-row: 2; gap: 7px; }

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

  .wr-row { grid-template-columns: minmax(0, 1fr); padding: 11px 12px 12px 14px; }
  .wr-row .wr-seg, .wr-row .wr-seg.is-days { grid-auto-columns: minmax(0, 1fr); }
  .wr-f { grid-template-columns: minmax(0, 5.75rem) 1.1rem minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 340px) {
  .wr-g, .wr-fly { width: 2.9rem; }
  .wr-s { font-size: 0.6875rem; padding-inline: 4px; }
}

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

/* ---------- The free prompt, just above the newsletter box ----------
   The prompt shows whole and wraps, so a reader sees all of what they paste before they copy it. Each
   line is its own row, and each step stands a little apart under its own number, so five steps read as
   five. The newlines stay in the text between the rows, so Copy still gives the prompt as written: a
   grid does not draw text that is only white space. The line under the box leads into the newsletter
   box, so the section keeps no space of its own at the bottom. */
.a-prompt { margin-top: 8px; border-top: 1px solid var(--rule); padding-bottom: 0; }
.a-prompt .a-code.is-tall pre { max-height: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.a-prompt .a-code code { display: grid; }
.a-prompt code .is-gap { margin-top: 1.1em; }
.a-prompt code .is-step { padding-left: 3ch; text-indent: -3ch; }
.a-prompt code .is-step + .is-step { margin-top: 0.7em; }
.a-prompt code b { font-weight: 700; color: #fff; }
/* Copying is the one thing to do here, so its button is the primary one and the prompt's name reads. */
.a-prompt .a-code[data-label]::before { top: 21px; font-size: 0.875rem; color: var(--on-night); }
.a-prompt .a-copy { top: 12px; padding: 0.7em 1.25em; font-size: 0.875rem; color: #fff; background: var(--primary); }
.a-prompt .a-copy:hover { background: var(--primary-deep); }
/* A link to #free-prompt lands clear of the progress strip, the way #updates does. */
@media (max-width: 1080px) { .a-prompt { scroll-margin-top: 66px; } }
