/*
 * board.css — the /features board, the suggest and detail pages, the 404, and
 * the owner console. Builds on beta.css: tokens, type, fields, chips, pills,
 * avatars, the vote control and every motion utility come from there; this
 * file only lays them out. Theme-agnostic: every colour is a token, and dark
 * is only ever [data-theme="dark"] (set by the toggle) — never the OS.
 *
 * The board is one markup at every width, three layouts:
 * - ≥1180px: four lanes in a grid, the page's width.
 * - 720–1179px (iPad): a horizontal scroll-snap row of 280–320px lanes.
 * - <720px (phone): 86vw lanes with sticky lane tabs above.
 * The row scrolls inside itself — never the page — so 320px stays clean.
 */

.page-board {
  --wrap-max: 1400px;
}
.page-detail {
  --wrap-max: 1120px;
}
.page-suggest,
.page-console {
  --wrap-max: 1160px;
}

/* ── board: page head — centred, one idea, one button ──────────────────── */

.board-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(32px, 4.5vw, 52px);
  text-align: center;
}
.board-head__title {
  max-width: 14em;
  font-size: clamp(40px, 6vw, 72px);
  text-wrap: balance;
}
.board-head__lede {
  max-width: 34em;
  text-wrap: pretty;
}
.board-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 10px;
}
.board-head__actions .textlink {
  font-size: 15px;
}
@media (max-width: 479.98px) {
  .board-head__actions {
    flex-direction: column;
  }
}

/* without JS the toast is an in-flow notice here; with JS it lifts out */
html:not(.js) .board-toast {
  padding-bottom: 20px;
}

/* ── board: toolbar ─────────────────────────────────────────────────────── */

/*
 * Phone:  [ search ··········· ]
 *         [ area ····· ][Apply]
 *         84 requests      [sort]   (a long filtered summary pushes the sort under it)
 * ≥720:   [ search ········ ][ area ][Apply]
 *         84 requests              [sort]
 * ≥1024:  [ search ···· ][ area ][Apply]        [sort]
 *         84 requests · in Clara  × Clear
 */
.board-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'form form'
    'bar bar'
    'empty empty';
  align-items: center;
  gap: 14px 12px;
}
.toolbar {
  display: grid;
  grid-area: form;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
}
.toolbar__search {
  grid-column: 1 / -1;
}
.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  grid-area: bar;
  min-width: 0;
}
.board-summary {
  flex: 1 1 auto;
}
.board-sort {
  flex: none;
  margin-left: auto;
}
.board-empty {
  grid-area: empty;
}
@media (min-width: 720px) {
  .toolbar {
    display: flex;
    align-items: center;
  }
  .toolbar__search {
    flex: 1 1 280px;
    max-width: 420px;
  }
  .toolbar__area {
    flex: 0 1 230px;
  }
}
@media (min-width: 1024px) {
  .board-tools {
    grid-template-areas:
      'form sort'
      'summary summary'
      'empty empty';
    column-gap: 24px;
  }
  /* the bar dissolves so its two parts take their own grid cells */
  .board-bar {
    display: contents;
  }
  .board-summary {
    grid-area: summary;
  }
  .board-sort {
    grid-area: sort;
  }
}

/* the toolbar boxes match the form fields: white, a hairline, 14px corners */
.board-tools .control {
  min-height: 48px;
  border-color: var(--field-line, var(--line));
  border-radius: 14px;
  background: var(--field-bg, var(--card));
  box-shadow: var(--field-shadow, none);
}
.board-tools .control:hover {
  border-color: var(--field-line-hover, var(--line-strong));
}
.board-tools .control:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus), 0 0 0 5px var(--focus-soft);
}
.board-tools .control input,
.board-tools .control select {
  height: 46px;
}
.board-tools .control select {
  padding-left: 16px;
}
.toolbar__apply {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}
.board-sort a {
  min-height: 36px;
  padding: 0 14px;
}

.board-summary {
  min-width: 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.9;
}
.board-summary strong {
  color: var(--ink);
  font-weight: 600;
}
.board-summary__q {
  overflow-wrap: anywhere;
}
.board-summary__cat .chip {
  margin-left: 2px;
  vertical-align: 1px;
}
/* 24px drawn, 44px to a finger */
.board-summary__clear {
  position: relative;
  display: inline-flex;
  margin-left: 8px;
  vertical-align: 1px;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 10px 0 7px;
  border-radius: 999px;
  background: var(--plate);
  color: var(--ink);
  font: 600 13px/1 var(--sans);
  text-decoration: none;
  transition: background-color var(--dur-fast);
}
.board-summary__clear::after {
  content: '';
  position: absolute;
  inset: -8px -4px;
}
.board-summary__clear:hover {
  background: var(--line-strong);
}
.board-empty {
  padding: 4px 0 0;
  color: var(--dim);
  font-size: 14.5px;
}

/* ── board: lane tabs (phones) ──────────────────────────────────────────── */

.board-area {
  position: relative;
  padding-bottom: clamp(64px, 9vw, 112px);
}
.lane-tabs {
  display: none;
}
@media (max-width: 719.98px) {
  .lane-tabs {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    display: block;
    margin-top: 18px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg-raised);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
  /* positioned: the tabs' sr-only counts are absolute, and must not escape
     the scroller into the page's width */
  .lane-tabs .tabs {
    position: relative;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    scroll-padding-inline: var(--gutter);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lane-tabs {
    background: var(--bg);
  }
}
.lane-tabs .dot {
  background: var(--tone-dot);
}
.lane-tabs a[aria-current='true'] .dot,
.lane-tabs a.is-active .dot {
  box-shadow: 0 0 0 2px var(--on-accent);
}

/* ── board: the lanes ───────────────────────────────────────────────────── */

/*
 * position: relative is load-bearing. An absolutely positioned descendant
 * (every sr-only count and label) takes its containing block from the nearest
 * POSITIONED ancestor; without one here that is .board-area, outside the
 * scroller, and the far lanes' hidden text stretched the page to 1363px at
 * 390px — a sideways-panning page on iOS.
 */
.board {
  --lane-w: 86vw;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 6px max(var(--gutter), env(safe-area-inset-right)) 24px max(var(--gutter), env(safe-area-inset-left));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left));
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.board:focus-visible {
  outline-offset: -2px;
}
@media (min-width: 720px) {
  /* narrow enough that the next lane always peeks in: the row says it scrolls */
  .board {
    --lane-w: clamp(280px, 29vw, 320px);
    gap: 14px;
    margin-top: 24px;
    scroll-snap-type: x proximity;
  }
}
@media (min-width: 1180px) {
  .board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    max-width: calc(var(--wrap-max) + var(--gutter) * 2);
    margin-inline: auto;
    overflow: visible;
    scroll-snap-type: none;
  }
}

/* lanes a step lighter than --lane: the ground reads white, the lanes stay quiet */
.page-board {
  --lane-bg: #f0ece3;
  --lane-edge: transparent;
}
/* dark: a fill can't separate near-blacks without failing --faint text on the
   cards, so the lanes take an edge (1.36:1 on the page) and the cards a
   stronger one — the four columns and their cards read as a board again */
:root[data-theme='dark'] .page-board {
  --lane-bg: #1a1917;
  --lane-edge: var(--line);
}
:root[data-theme='dark'] .page-board .bcard {
  border-color: #3a3733;
  background: #1f1e1b;
}
@media (hover: hover) {
  :root[data-theme='dark'] .page-board .bcard:hover {
    border-color: #4d4943;
  }
}
.lane {
  position: relative;
  display: flex;
  flex: 0 0 var(--lane-w);
  flex-direction: column;
  gap: 10px;
  width: var(--lane-w);
  min-width: 0;
  padding: 8px 8px 10px;
  border: 1px solid var(--lane-edge, transparent);
  border-radius: 20px;
  background: var(--lane-bg, var(--lane));
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (max-width: 719.98px) {
  .lane {
    scroll-margin-top: calc(var(--header-h) + 72px);
  }
  /* the sticky header AND the sticky lane tabs cover the top 125px here, so
     the page's scroll padding clears both — whatever takes focus (a vote, a
     title link, the lane) stops below them, never under (WCAG 2.4.11) */
  html:has(.page-board .lane-tabs) {
    scroll-padding-top: calc(var(--header-h) + 72px);
  }
  .board a,
  .board button {
    scroll-margin-top: calc(var(--header-h) + 72px);
  }
}
@media (min-width: 1180px) {
  .lane {
    width: auto;
  }
}
.lane:focus {
  outline: none;
}
.lane:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--tone-bg);
  color: var(--tone);
}
.lane__title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font: 600 12.5px/1.25 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lane__title > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lane__head .dot {
  box-shadow: 0 0 0 3px var(--card);
}
.lane__head .count {
  background: var(--card);
  color: var(--tone);
}
.lane__cards {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lane__empty {
  padding: 30px 12px;
  border-color: var(--line-strong);
  font-size: 13.5px;
}
.lane__more {
  padding: 4px 6px 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}
.lane__add {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--dim);
  font: 600 13.5px/1 var(--sans);
  text-decoration: none;
  transition: color var(--dur-fast), background-color var(--dur-fast), border-color var(--dur-fast);
}
.lane__add:hover {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

/* ── board: the cards ───────────────────────────────────────────────────── */

.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  container-type: inline-size;
  scroll-margin-top: calc(var(--header-h) + 72px);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur-fast);
}
@media (hover: hover) {
  .bcard:hover {
    transform: translate3d(0, -2px, 0);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }
  .bcard:hover .bcard__title a {
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
  }
}
.bcard:focus-within {
  border-color: var(--line-strong);
}
/* a no-JS vote comes back to #card-<id>: say where you are */
.bcard:target {
  animation: target-ring 2.4s var(--ease-out);
}
.bcard__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bcard__title {
  font: 600 15.5px/1.38 var(--sans);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  /* balance, not pretty: Chromium's pretty skips two-line titles, which left
     "…with / last" orphans all over the board */
  text-wrap: balance;
}
.bcard__title a {
  color: var(--ink);
  text-decoration: none;
}
.bcard__excerpt,
.bcard__note-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}
.bcard__excerpt {
  margin-top: -4px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.bcard__note {
  display: grid;
  gap: 3px;
  padding: 8px 10px 9px 11px;
  border-left: 2px solid var(--ink);
  border-radius: 2px 10px 10px 2px;
  background: var(--bg);
}
.bcard__note-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font: 600 11px/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bcard__note-text {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}
.bcard__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-top: 2px;
}
.bcard__comments {
  flex: none;
}
.bcard__who {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  margin-left: auto;
  font-size: 12.5px;
}
.bcard__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* a narrow card (a 4-up grid near 1180px) keeps the avatar and reads the name aloud only */
@container (max-width: 220px) {
  .bcard__name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* ── suggest ────────────────────────────────────────────────────────────── */

/* no card: the fields sit on the ground, one centred column, like the join form */
.propose {
  display: grid;
  gap: 28px;
  max-width: calc(600px + var(--gutter) * 2);
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.propose__back {
  justify-self: start;
  font-size: 14.5px;
}
.propose__head {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-top: clamp(8px, 3vw, 32px);
  text-align: center;
}
.propose__head .h1 {
  font-size: clamp(40px, 6vw, 64px);
}
.propose__head .kicker .i {
  color: var(--t-amber);
}
.propose__head .lede {
  max-width: 26em;
}
.propose__form {
  gap: 22px;
  margin-top: 8px;
}
.propose__form > .btn {
  margin-top: 6px;
}
.propose__note {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}

/* ── detail ─────────────────────────────────────────────────────────────── */

.detail {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.detail__crumbs {
  margin-bottom: clamp(18px, 2.5vw, 30px);
}
.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'head' 'side' 'body';
  gap: 28px;
}
.detail__head {
  display: grid;
  grid-area: head;
  justify-items: start;
  gap: 16px;
}
.detail__side {
  grid-area: side;
  min-width: 0;
}
.detail__body {
  display: grid;
  grid-area: body;
  align-content: start;
  gap: 36px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .detail__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: auto 1fr;
    grid-template-areas: 'head side' 'body side';
    column-gap: clamp(40px, 5vw, 72px);
    row-gap: 32px;
  }
  .detail__side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}
.detail__title {
  max-width: 18em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.detail__by {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 28px;
}
.detail__by > span:not(.avatar) {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}
.detail__by b {
  margin-left: 0.3em;
  color: var(--ink);
  font-weight: 600;
}
.detail__by .sep {
  margin: 0 7px;
  color: var(--faint);
}
.detail__details {
  max-width: 40em;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.detail__none {
  color: var(--dim);
  font-style: italic;
}
/* a white note with the ink rule — the team's voice, without a heavy plate */
.detail__note {
  max-width: 40em;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  background: var(--card);
}
.detail__note .callout__label {
  color: var(--ink);
}
.detail__note .pre-line {
  font-size: 15.5px;
  line-height: 1.6;
}

/* the sidebar card: vote, facts, share */
.side-card {
  --card-pad: 18px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.side-card__vote {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.side-card__hint {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr));
  gap: 14px 16px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}
.facts dt {
  color: var(--faint);
  font: 600 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}
.facts .byline {
  color: var(--ink);
  font-size: 14.5px;
}
.facts__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* status and area already sit above the title on a phone */
.facts__wide {
  display: none !important;
}
.side-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.side-card__actions .textlink {
  font-size: 14px;
}
@media (min-width: 1024px) {
  .side-card__vote {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    text-align: center;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 0;
    border-top: 0;
  }
  .facts > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 6px 0;
    border-top: 1px solid var(--line);
  }
  .facts__wide {
    display: flex !important;
  }
  .facts dt {
    flex: none;
    color: var(--dim);
    font: 400 14px/1.3 var(--sans);
    letter-spacing: 0;
    text-transform: none;
  }
  .facts dd {
    text-align: right;
  }
}

/* ── detail: the discussion — one white card, hairline rows ─────────────── */

.discussion {
  display: grid;
  gap: 16px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.discussion__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 19px/1.3 var(--sans);
  letter-spacing: -0.01em;
}
.discussion__card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.thread {
  margin: 0;
  padding: 0;
  list-style: none;
}
.comment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 20px clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.comment > .avatar {
  --size: 32px;
}
.comment__main {
  min-width: 0;
}
.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.4;
}
.comment__name {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.comment__time {
  color: var(--faint);
  font-size: 13px;
}
.comment__time::before {
  content: '·';
  margin-right: 8px;
  color: var(--faint);
}
.comment__body {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
/* the team's replies: a tinted row with an ink rule and the badge */
.comment--owner {
  background: var(--bg);
  box-shadow: inset 3px 0 0 var(--ink);
}
.comment:target {
  animation: target-row 2.4s var(--ease-out);
}
.team-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-accent);
  font: 600 11px/1.2 var(--sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.thread__empty {
  padding: 26px clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 15px;
}
.thread__more {
  padding: 12px clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

/* the composer closes the card */
.composer {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.composer__title {
  font: 600 15px/1.3 var(--sans);
}
.composer__form {
  display: grid;
  gap: 12px;
}
.composer__row {
  display: grid;
  gap: 12px;
  align-items: start;
}
@media (min-width: 560px) {
  .composer__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .composer__send {
    min-height: 56px;
  }
}
@media (max-width: 559.98px) {
  .composer__send {
    width: 100%;
  }
}
.composer__rule {
  color: var(--faint);
  font-size: 13px;
}

@keyframes target-ring {
  0%,
  30% {
    border-color: var(--focus);
    box-shadow: 0 0 0 4px var(--focus-soft);
  }
}
@keyframes target-row {
  0%,
  30% {
    background-color: var(--focus-soft);
  }
}

/* ── the 404 ────────────────────────────────────────────────────────────── */

.not-found__actions {
  justify-content: center;
}

/* ── console ────────────────────────────────────────────────────────────── */

/* minmax(0, 1fr) all the way down: the testers table scrolls in its own
   region, it must not size the page */
.console {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: 96px;
}
.console__head {
  display: grid;
  justify-items: start;
  gap: 14px;
}
.console__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.console__nav .count {
  background: var(--t-amber-bg);
  color: var(--t-amber);
}
.console__stats {
  display: grid;
  gap: 14px;
}
.console-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 14px;
}
.console-source {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.console-source b {
  color: var(--ink);
  font-weight: 600;
}
.console__section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.console__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.console__section-head .h2 {
  font-size: clamp(30px, 3.6vw, 40px);
}
.console__lede {
  max-width: 48em;
}

.fcard {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 720px) {
  .fcard {
    padding: 22px 24px;
  }
}
.fcard--pending {
  box-shadow: inset 3px 0 0 var(--t-amber-dot);
}
.fcard:target {
  animation: target-ring 2.4s var(--ease-out);
}
.fcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.fcard__when {
  margin-left: auto;
  color: var(--faint);
  font-size: 12.5px;
}
.fcard__title {
  font: 600 17px/1.35 var(--sans);
  overflow-wrap: anywhere;
}
.fcard__who {
  color: var(--dim);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.fcard__details {
  max-width: 60em;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.fcard__moderate {
  display: grid;
  gap: 16px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.fcard__moderate > .btn {
  justify-self: start;
}
/* status, area, the pinned note and the public byline; Save on its own row */
@media (min-width: 720px) {
  .fcard__moderate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fcard__moderate > .btn {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1280px) {
  .fcard__moderate {
    grid-template-columns: minmax(0, 250px) minmax(0, 230px) minmax(0, 1fr) minmax(0, 220px);
  }
}
.console-reply {
  border-top: 1px solid var(--line);
}
.console-reply summary,
.console-hidden summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font: 600 14.5px/1.3 var(--sans);
  list-style: none;
  cursor: pointer;
}
.console-reply summary::-webkit-details-marker,
.console-hidden summary::-webkit-details-marker {
  display: none;
}
.console-reply .disclosure__icon,
.console-hidden .disclosure__icon {
  width: 28px;
  height: 28px;
  margin-left: auto;
}
.console-reply summary:hover .disclosure__icon,
.console-hidden summary:hover .disclosure__icon {
  border-color: var(--ink);
  color: var(--ink);
}
.console-reply[open] .disclosure__icon,
.console-hidden[open] .disclosure__icon {
  transform: rotate(45deg);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-accent);
}
.console-reply__form {
  gap: 14px;
  padding: 4px 0 8px;
}
.console-hidden {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.console-hidden summary .count {
  margin-left: 2px;
}
.console-hidden[open] .ccomments {
  margin-bottom: 8px;
}
.console__pager {
  --gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.fcard__open {
  justify-self: start;
  font-size: 14px;
}

.ccomments {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  list-style: none;
}
.ccomment {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.ccomment:last-child {
  border-bottom: 0;
}
.ccomment--owner {
  box-shadow: inset 3px 0 0 var(--ink);
}
.ccomment.is-hidden {
  background: var(--bg);
}
.ccomment.is-hidden .ccomment__body {
  color: var(--dim);
}
.ccomment:target {
  animation: target-row 2.4s var(--ease-out);
}
.ccomment__main {
  min-width: 0;
}
.ccomment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.4;
}
.ccomment__head b {
  color: var(--ink);
  font-weight: 600;
}
.ccomment__head .link {
  overflow-wrap: anywhere;
}
.ccomment__head .mono {
  color: var(--dim);
  font-size: 12px;
}
.ccomment__body {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.ccomment__act {
  grid-column: 2;
  margin: 0;
}
@media (min-width: 720px) {
  .ccomment {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .ccomment__act {
    grid-column: 3;
  }
}

/* ── motion ─────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .bcard:hover {
    transform: none !important;
  }
  .bcard:target,
  .comment:target,
  .fcard:target,
  .ccomment:target {
    animation: none !important;
  }
}
