/* Marra.
   Palette borrows from Newcastle: Tyne slate, Metro yellow, and the green of the Town Moor.
   The one loud thing is the line: the city drawn as a Metro route in the hero, and every
   request's progress drawn the same way. Everything else stays quiet. */

:root {
  --slate: #14212C;
  --slate-2: #34424F;
  --slate-3: #22313E;
  --mist: #F3F5F2;
  --paper: #FFFFFF;
  --metro: #FFC20E;
  --metro-soft: #FFF3C7;
  --moor: #2B6A4D;
  --moor-dark: #1F5039;
  --rule: #D9DFDA;
  --muted: #5A6570;
  --on-slate: #C3CCD3;

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2.1rem, 4.4vw, 3.2rem);
  --step-4: clamp(2.8rem, 7.5vw, 5.6rem);

  --gap: clamp(1.1rem, 3.5vw, 2.5rem);
  --wide: 74rem;
  --measure: 66ch;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--slate);
  font: 400 var(--step-0)/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--moor); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--metro); color: var(--slate); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- header ---------- */

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  padding: 1.1rem var(--gap);
  background: var(--slate); color: var(--mist);
}
.wordmark { display: flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
.wm-mark { flex: none; display: block; }
.wm-name { font: 600 1.55rem/1 var(--serif); letter-spacing: -0.02em; }
.wm-place { font-size: .9rem; color: var(--on-slate); margin-left: .15rem; padding-top: .2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.tabs a { color: var(--on-slate); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--paper); }
.tabs a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--metro); }
.tabs a:focus-visible { outline-color: var(--metro); }

main { max-width: var(--wide); margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.5rem) var(--gap) 5rem; }
body[data-page="home"] main { padding-top: 0; }

/* ---------- type ---------- */

.intro { max-width: 48rem; margin-bottom: 2.25rem; }
.intro h1, .need-head h1 {
  font: 600 var(--step-3)/1.08 var(--serif); letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { margin-top: 1rem; font: 400 var(--step-1)/1.6 var(--serif); color: var(--slate-2); max-width: var(--measure); }
.intro .btn { margin-top: 1.5rem; }
h2 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; margin-bottom: .9rem; }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- hero: the city as a Metro line ---------- */

.hero {
  margin: 0 calc(50% - 50vw); padding: clamp(3rem, 8vw, 6rem) var(--gap) clamp(2.25rem, 4vw, 3rem);
  background: var(--slate); color: var(--paper);
}
.hero-inner, .hero-hint, .city-wrap { max-width: calc(var(--wide) - 2 * var(--gap)); margin-left: auto; margin-right: auto; }
.hero h1 {
  font: 500 var(--step-4)/0.98 var(--serif); letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero-lede {
  margin-top: 1.5rem; max-width: 40rem;
  font: 400 clamp(1.1rem, 1.8vw, 1.3rem)/1.6 var(--serif); color: var(--on-slate);
}
.hero-hint { margin-top: .75rem; font-size: .85rem; color: var(--on-slate); }

.city-wrap {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  overflow-x: auto; scrollbar-width: none; padding: 1.25rem 0 .25rem;
}
.city-wrap::-webkit-scrollbar { display: none; }
.city-line {
  position: relative; display: grid; grid-template-columns: repeat(var(--stops, 12), minmax(5.5rem, 1fr));
  min-width: calc(var(--stops, 12) * 5.6rem);
}
.city-line::before {
  content: ""; position: absolute; left: calc(50% / var(--stops, 12)); right: calc(50% / var(--stops, 12)); top: 13px; height: 6px; border-radius: 3px;
  background: var(--metro); transform-origin: left center;
  animation: draw 1.1s var(--ease) both;
}
.city-line li { position: relative; display: flex; justify-content: center; }
.city-line a, .cs-quiet {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: none;
}
.cs-dot {
  position: relative; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--slate); border: 5px solid var(--metro);
  animation: pop .45s var(--ease) both; animation-delay: calc(.35s + var(--i) * 70ms);
}
.cs-quiet .cs-dot { width: 18px; height: 18px; margin: 7px 0; border-width: 4px; }
.has-need .cs-dot { background: var(--metro); }
.cs-count { font-weight: 800; font-size: .85rem; color: var(--slate); line-height: 1; }
.cs-name { font-size: .88rem; white-space: nowrap; color: var(--on-slate); }
.has-need .cs-name { color: var(--paper); font-weight: 500; }
.city-line a:hover .cs-dot { transform: scale(1.12); }
.city-line a:hover .cs-name { text-decoration: underline; text-underline-offset: .2em; }
.city-line .is-on .cs-dot { background: var(--paper); border-color: var(--metro); box-shadow: 0 0 0 4px rgba(255, 194, 14, .35); }
.city-line .is-on .cs-name { color: var(--metro); }
.city-line a:focus-visible { outline: 3px solid var(--metro); outline-offset: 4px; border-radius: 6px; }

@keyframes draw { from { transform: scaleX(0); } }
@keyframes pop { from { transform: scale(0); } }
body.is-settled .city-line::before, body.is-settled .cs-dot { animation: none; }

/* ---------- request board ---------- */

.board { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; }
.board-head h2 { font: 600 var(--step-2)/1.2 var(--serif); letter-spacing: -0.015em; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  font: 500 .95rem var(--sans); color: var(--slate);
  background: transparent; border: 1.5px solid var(--rule); border-radius: 999px;
  padding: .4rem 1rem; cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--slate-2); }
.chip[aria-current="true"] { background: var(--slate); border-color: var(--slate); color: var(--paper); }

.needs { border-top: 2px solid var(--slate); }
.need-row { border-bottom: 1px solid var(--rule); }
.need-row > a {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 15rem; gap: 1rem 2.25rem; align-items: center;
  padding: 1.6rem .5rem; color: inherit; text-decoration: none;
  transition: background-color .15s;
}
.need-row > a:hover { background: var(--paper); }
.need-row > a:hover .title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.who { display: flex; flex-direction: column; gap: .1rem; }
.name { font: 600 var(--step-2)/1.1 var(--serif); letter-spacing: -0.02em; }
.meta { color: var(--muted); font-size: .9rem; }
.what { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.title { font-size: 1.12rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.005em; }
.excerpt { font: 400 .98rem/1.55 var(--serif); color: var(--slate-2); max-width: 60ch; }
.where { display: flex; flex-direction: column; gap: .7rem; }
.left { font-size: .88rem; color: var(--muted); text-align: center; }
.is-covered .name, .is-covered .title { color: var(--slate-2); }

.row-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.kind { font-size: .82rem; font-weight: 700; color: var(--moor); }
.needby { font-size: .8rem; font-weight: 500; color: var(--slate-2); background: var(--paper); border: 1px solid var(--rule); padding: .05rem .5rem; border-radius: 999px; }
.needby.is-soon { background: var(--metro-soft); border-color: #F2D77A; color: var(--slate); }

.empty { padding: 2.25rem .5rem; color: var(--slate-2); font: 400 1.1rem/1.6 var(--serif); }
.empty .link-btn { font-family: var(--sans); font-size: 1rem; margin-left: .35rem; }

/* ---------- a request's progress line ---------- */

.line { --track: 4px; position: relative; }
.line-h { display: grid; grid-template-columns: repeat(4, 1fr); }
.line-h .stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.line-h .stop::before {
  content: ""; position: absolute; top: calc(7px - var(--track) / 2); left: -50%; width: 100%; height: var(--track);
  background: var(--rule);
}
.line-h .stop:first-child::before { display: none; }
.line-h .stop.is-reached::before { background: var(--metro); }
.dot {
  position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--rule);
}
.is-reached .dot { border-color: var(--metro); background: var(--metro); }
.is-current .dot { background: var(--paper); border-color: var(--slate); box-shadow: 0 0 0 3px var(--metro); }
.stop-name { font-size: .75rem; color: var(--muted); }
.is-current .stop-name { color: var(--slate); font-weight: 700; }

/* In the thank-you sheet, the line visibly moves on to its new stop. */
.is-advancing .is-reached::before { animation: fill .6s var(--ease) both; transform-origin: left center; animation-delay: calc(var(--i) * 120ms); }
.is-advancing .is-current .dot { animation: arrive .5s var(--ease) both; animation-delay: calc(var(--i) * 120ms + .3s); }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes arrive { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

.line-v .stop {
  position: relative; display: grid; grid-template-columns: 22px 1fr; column-gap: .9rem;
  padding-bottom: 1.35rem;
}
.line-v .stop:last-child { padding-bottom: 0; }
.line-v .stop::before {
  content: ""; position: absolute; left: calc(11px - var(--track) / 2); top: 18px; bottom: -4px; width: var(--track);
  background: var(--rule);
}
.line-v .stop:last-child::before { display: none; }
.line-v .stop.is-reached:has(+ .is-reached)::before { background: var(--metro); }
.line-v .dot { grid-row: span 2; width: 22px; height: 22px; border-width: 4px; }
.line-v .stop-name { font-size: 1rem; font-weight: 700; color: var(--slate); }
.line-v .stop:not(.is-reached) .stop-name { color: var(--muted); font-weight: 500; }
.stop-help { grid-column: 2; font-size: .9rem; color: var(--muted); }

/* ---------- thank-yous ---------- */

.met { margin-top: clamp(3.5rem, 7vw, 5rem); }
.met h2 { font: 600 var(--step-2)/1.2 var(--serif); letter-spacing: -0.015em; margin-bottom: 1.5rem; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.25rem; }
.quote { position: relative; }
.quotes .quote { background: var(--paper); padding: 2rem 2rem 1.6rem; border-radius: 4px; }
.quotes .quote::before {
  content: "“"; position: absolute; top: -.35rem; left: 1.4rem;
  font: 600 5rem/1 var(--serif); color: var(--metro);
}
.quote blockquote { font: 400 1.3rem/1.5 var(--serif); font-style: italic; letter-spacing: -0.005em; position: relative; }
.quote figcaption { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.quote figcaption strong { color: var(--slate); }
.quote-lg, .entry .quote { border-left: 4px solid var(--metro); padding-left: 1.1rem; }
.quote-lg { margin: 2.25rem 0; }
.quote-lg blockquote { font-size: 1.45rem; }
.entry .quote blockquote { font-size: 1.15rem; }

/* ---------- request page ---------- */

.back { display: inline-block; margin-bottom: 1.75rem; font-weight: 500; }
.back::before { content: "‹ "; }
.need-head { margin-bottom: 2.5rem; max-width: 48rem; }
.need-head h1 { font-size: var(--step-4); line-height: 1; margin-top: .6rem; }
.need-head .age { color: var(--muted); font-weight: 400; }
.need-title { font: 400 var(--step-2)/1.3 var(--serif); margin-top: .9rem; text-wrap: balance; color: var(--slate-2); }
.sub { color: var(--muted); margin-top: .8rem; }

.need-grid { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 3.5rem; align-items: start; }
.story { max-width: var(--measure); }
.story > p:not(.vouch) { font: 400 1.2rem/1.75 var(--serif); margin-bottom: 1.2rem; }
.story > p:first-child::first-letter {
  float: left; font: 600 3.6rem/.85 var(--serif); margin: .35rem .5rem 0 0; color: var(--slate);
}
.vouch {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .95rem; line-height: 1.5; color: var(--slate-2);
  border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-top: .5rem;
}
.vouch svg { flex: none; color: var(--moor); margin-top: .1rem; }
.vouch strong { color: var(--slate); }
.updates { margin-top: 2.75rem; }
.updates li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
.updates time { color: var(--muted); font-size: .9rem; padding-top: .1rem; }

.side { display: flex; flex-direction: column; gap: 2.25rem; position: sticky; top: 1.5rem; }
.panel {
  background: var(--paper); padding: 1.5rem 1.5rem 1.6rem; border-radius: 6px;
  border-top: 5px solid var(--metro);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(20, 33, 44, .35);
}
.panel h2 { font: 600 1.35rem/1.25 var(--serif); letter-spacing: -0.01em; }
.note { font-size: .88rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }
.journey { padding: 0 .25rem; }

.slots li, .items li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .75rem 0; border-top: 1px solid var(--rule);
}
.slots li:last-child, .items li:last-child { border-bottom: 1px solid var(--rule); }
.items li.is-given span:first-child { color: var(--muted); text-decoration: line-through; }
.tag { font-size: .8rem; color: var(--muted); }
.tag-you { color: var(--slate); font-weight: 700; background: var(--metro); padding: .1rem .55rem; border-radius: 999px; }
.offers li { padding: .5rem 0; border-top: 1px solid var(--rule); font-size: .95rem; }
.offers { margin-bottom: 1rem; }

.meter { height: 10px; background: var(--mist); border-radius: 5px; overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--metro); border-radius: 5px; transition: width .6s var(--ease); }
.meter-label { margin-top: .5rem; font-weight: 700; }

/* ---------- forms ---------- */

form { display: flex; flex-direction: column; }
legend { padding: 0; }
form label, legend { font-weight: 500; font-size: .95rem; margin: .9rem 0 .35rem; }
fieldset { border: 0; padding: 0; margin: 0; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  font: 400 1rem var(--sans); color: var(--slate);
  background: var(--paper); border: 1.5px solid #B9C3BE; border-radius: 6px;
  padding: .65rem .75rem; width: 100%;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--metro); outline-offset: 0; border-color: var(--slate); }

.give .btn-main { margin-top: 1.1rem; }
.amounts { display: flex; flex-wrap: wrap; gap: .5rem; }
.amount {
  position: relative; display: inline-flex; align-items: center; cursor: pointer;
  border: 1.5px solid var(--rule); border-radius: 999px; padding: .5rem 1rem; font-weight: 700;
  margin: 0 !important;
}
.amount input { position: absolute; opacity: 0; pointer-events: none; }
.amount:hover { border-color: var(--slate-2); }
.amount:has(input:checked) { border-color: var(--slate); background: var(--slate); color: var(--paper); }
.amount:has(input:focus-visible) { outline: 3px solid var(--metro); outline-offset: 2px; }

.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; margin: .5rem 0 0 !important; }
.check input { margin-top: .3rem; accent-color: var(--moor); width: 1.05rem; height: 1.05rem; flex: none; }
.consent { margin-top: 1.25rem !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 .95rem var(--sans); color: var(--slate); text-decoration: none;
  background: var(--paper); border: 1.5px solid var(--slate); border-radius: 999px;
  padding: .55rem 1.1rem; cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.btn:hover { background: var(--mist); }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--moor); border-color: var(--moor); color: var(--paper); padding: .8rem 1.4rem; font-size: 1rem; }
.btn-main:hover { background: var(--moor-dark); border-color: var(--moor-dark); }
.link-btn { font: inherit; color: var(--moor); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- journal ---------- */

.journal { border-top: 2px solid var(--slate); max-width: 54rem; }
.entry { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.entry time { font: 600 1.05rem/1.4 var(--serif); padding-top: .1rem; }
.entry-body { display: flex; flex-direction: column; gap: 1.1rem; }
.entry-what { font: 400 1.2rem/1.5 var(--serif); }
.entry-body .line-h { max-width: 22rem; }
.entry-update { color: var(--slate-2); font-size: .95rem; }

/* ---------- partners ---------- */

.block { margin-top: 2.75rem; max-width: 54rem; }
.ptable { border-top: 2px solid var(--slate); display: grid; grid-template-columns: 1fr auto auto; column-gap: 1.5rem; }
.ptable li {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: .5rem; align-items: center;
  padding: .95rem 0; border-bottom: 1px solid var(--rule);
}
.ptable a { color: var(--slate); text-decoration: none; }
.ptable a:hover { text-decoration: underline; }
.ptable strong { margin-right: .35rem; }
.stage { font-size: .9rem; color: var(--muted); }
.post { max-width: 40rem; }
.post .btn-main { margin-top: 1.5rem; align-self: flex-start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row2 > div { display: flex; flex-direction: column; }

.how { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.how .block { margin-top: 0; }
.plain li { padding: .8rem 0; border-top: 1px solid var(--rule); max-width: var(--measure); }

/* ---------- dialog + toast ---------- */

dialog {
  width: min(32rem, calc(100vw - 2rem)); border: 0; border-top: 6px solid var(--metro);
  border-radius: 6px; padding: 2rem; color: var(--slate);
  box-shadow: 0 30px 80px -30px rgba(20, 33, 44, .6);
}
dialog::backdrop { background: rgba(20, 33, 44, .6); }
dialog h2 { font: 600 var(--step-2)/1.2 var(--serif); letter-spacing: -0.02em; }
.sheet-kicker { font: italic 400 1.05rem var(--serif); color: var(--moor); margin-bottom: .35rem; }
dialog .line-h { margin: 1.5rem 0 .5rem; }
.steps { list-style: decimal; padding-left: 1.25rem; margin: 1rem 0 1.5rem; }
.steps li { padding: .3rem 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
dialog[open] { animation: rise .25s var(--ease); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

#toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem);
  background: var(--slate); color: var(--paper); padding: .75rem 1.2rem; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 2rem);
}
#toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */

.foot { background: var(--slate); color: var(--on-slate); font-size: .9rem; }
.foot-inner { max-width: var(--wide); margin: 0 auto; padding: 2.5rem var(--gap) 3rem; }
.foot p { max-width: var(--measure); margin-bottom: .6rem; }
.foot-mark { display: flex; align-items: center; gap: .4rem; font: 600 1.2rem var(--serif); color: var(--paper); margin-bottom: 1rem !important; }
.foot .link-btn { color: var(--metro); }
.foot .link-btn:focus-visible { outline-color: var(--metro); }

/* ---------- server-rendered extras ---------- */

.tab-form { display: contents; }
.tab-form button { font: inherit; font-weight: 500; color: var(--on-slate); background: none; border: 0; border-bottom: 2px solid transparent; padding: .3rem 0; cursor: pointer; }
.tab-form button:hover { color: var(--paper); }

.flashes { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
body[data-page="home"] .flashes { margin: 1.5rem 0 0; }
.flash {
  background: var(--paper); border-left: 5px solid var(--moor); border-radius: 4px;
  padding: 1rem 1.25rem; max-width: 48rem; animation: rise .3s var(--ease);
}
.flash p { font: 400 1.1rem/1.5 var(--serif); }
.flash .sheet-kicker { font-size: .95rem; margin-bottom: .2rem; }
.flash-error { border-left-color: #B3261E; }
.flash-info { border-left-color: var(--metro); margin-bottom: 1.5rem; }

.field { display: flex; flex-direction: column; }
.field[hidden] { display: none; }
.help { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.error { color: #B3261E; font-size: .9rem; margin-top: .35rem; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-color: #B3261E !important; }
.give form, .side form { display: flex; flex-direction: column; }
.side .btn, .side .btn-main { margin-top: 1rem; align-self: flex-start; }
.slots form .btn { margin-top: 0; }
.panel-sub { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.btn-danger { color: #B3261E; border-color: #B3261E; }
.btn-danger:hover { background: #FBEAE9; }
.tag, .tag-you, .tag-warn { white-space: nowrap; }
.tag-warn { color: var(--slate); background: var(--metro-soft); padding: .1rem .55rem; border-radius: 999px; }
.ptable .act { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: flex-end; }
.ptable .act form { display: inline; }
.ptable .act .btn { margin: 0; }
.need-grid > div > .line-h { max-width: 28rem; }

.auth { max-width: 30rem; }
.auth .post { margin-top: 1.5rem; }
.auth .note a, .lede a { color: var(--moor); }
.thanks-page { max-width: 40rem; }
.thanks-line { margin: 2rem 0 .5rem; max-width: 28rem; }
.thanks-line .is-reached::before { animation: fill .6s var(--ease) both; transform-origin: left center; animation-delay: calc(var(--i) * 120ms); }
.thanks-line .is-current .dot { animation: arrive .5s var(--ease) both; animation-delay: calc(var(--i) * 120ms + .3s); }
.prose h2 { margin-top: 2rem; }
.draft-note { background: var(--metro-soft); padding: .75rem 1rem; border-radius: 4px; }
.foot a { color: var(--metro); margin-right: 1rem; }
.foot-demo { color: var(--metro); }
.foot .foot-legal { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--slate-3); font-size: .82rem; color: var(--on-slate); max-width: none; }

/* ---------- small screens ---------- */

@media (max-width: 960px) {
  .need-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .side { position: static; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .need-row > a { grid-template-columns: 1fr; gap: .7rem; padding: 1.4rem .25rem; }
  .who { flex-direction: row; align-items: baseline; gap: .6rem; }
  .where { max-width: 20rem; }
  .left { text-align: left; }
  .ptable { grid-template-columns: 1fr auto; }
  .ptable .act { grid-column: 1 / -1; }
  .entry { grid-template-columns: 1fr; gap: .4rem; }
  .row2 { grid-template-columns: 1fr; }
  .tabs {
    flex-wrap: nowrap; gap: 1.1rem; width: calc(100% + var(--gap)); margin-right: calc(-1 * var(--gap));
    overflow-x: auto; scrollbar-width: none; font-size: .95rem; white-space: nowrap;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs > a:last-child, .tab-form button { padding-right: var(--gap); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
