/* ============================================================
   MIDWINTER — layout & components
   ============================================================ */

.app {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------
   Top bar — identity + the blur toggle. Not for actions.
   ------------------------------------------------------------ */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 10px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(var(--night-0) 62%, transparent);
  backdrop-filter: blur(6px);
}

.wordmark {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 20;
  font-weight: 500;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
}

.wordmark .mark {
  width: 26px; height: 26px;
  flex: none;
  color: var(--ember);
}

.iconbtn {
  width: var(--tap); height: var(--tap);
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid transparent;
  color: var(--text-mid);
  transition: color var(--fast) var(--ease),
    background var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}
.iconbtn:hover { color: var(--text-hi); background: var(--night-2); border: var(--edge); }
.iconbtn[aria-pressed='true'] { color: var(--ember); border-color: var(--ember-dim); background: var(--night-2); }
.iconbtn svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------
   Navigation — segmented on desktop, bottom bar on phone
   ------------------------------------------------------------ */
.nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--night-1);
  border: var(--edge);
  box-shadow: var(--etch);
  border-radius: 13px;
  margin-bottom: 22px;
}

.nav button {
  flex: 1;
  min-height: 38px;
  border-radius: 9px;
  font-size: var(--step--1);
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--text-low);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.nav button svg { width: 16px; height: 16px; }
.nav button:hover { color: var(--text-mid); }
.nav button[aria-current='page'] {
  color: var(--night-0);
  background: var(--tab-accent, var(--ember));
}

.view { flex: 1; padding-bottom: 120px; }

/* ------------------------------------------------------------
   The advent ring — signature element
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 26px;
}

.hero-bare { grid-template-columns: 1fr !important; margin-bottom: 8px; }
.hero-bare .ringwrap { margin: 4px auto 22px !important; }

.ringwrap {
  position: relative;
  width: 214px;
  height: 214px;
  margin: 0 auto -46px;
  z-index: 3;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.55));
}

.ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring .seg {
  fill: none;
  stroke: var(--ember-dim);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke var(--slow) var(--ease), opacity var(--slow) var(--ease);
}

.ring .seg.lit {
  stroke: var(--ember);
  filter: drop-shadow(0 0 5px rgba(232, 163, 61, 0.55));
}

.ring .seg.today {
  stroke: var(--ember-soft);
  animation: segPulse 3.2s var(--ease) infinite;
}

@keyframes segPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* pre-season: a slow travelling shimmer, "waiting to begin" */
.ring.preseason .seg {
  animation: shimmer 4.5s linear infinite;
  animation-delay: var(--d, 0ms);
}
@keyframes shimmer {
  0%, 82%, 100% { stroke: var(--ember-dim); }
  88% { stroke: var(--ember-soft); }
}

.ringface {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}

.ringface .count {
  font-size: var(--step-4);
  color: var(--text-hi);
}

.ringface .unit {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ember);
}

.ringface .sub {
  font-size: var(--step--1);
  color: var(--text-low);
  max-width: 128px;
  line-height: 1.32;
  margin: 4px auto 0;
}

/* ------------------------------------------------------------
   Summary card — deliberately asymmetric.
   "Remaining if all bought" is the insight figure and gets
   roughly twice the weight of the other three.
   ------------------------------------------------------------ */
.summary {
  background: var(--night-1);
  border: var(--edge);
  box-shadow: var(--etch), var(--lift);
  border-radius: var(--radius-lg);
  padding: 62px 22px 20px;
  position: relative;
  overflow: hidden;
}

.summary::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 163, 61, 0.34), transparent);
}

.headline {
  text-align: center;
  margin-bottom: 20px;
}

.headline .figure {
  font-size: var(--step-3);
  line-height: 1;
  display: block;
  transition: color var(--mid) var(--ease);
}
.headline .figure.over { color: var(--cranberry); }
.headline .figure.under { color: var(--holly); }
.headline .figure.neutral { color: var(--text-hi); }

.headline .caption {
  display: block;
  margin-top: 7px;
  font-size: var(--step--1);
  color: var(--text-mid);
  max-width: 34ch;
  margin-inline: auto;
}

.subfigures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--night-3);
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}

.subfigures > div {
  background: var(--night-1);
  padding: 13px 12px;
  text-align: center;
}

.subfigures .v {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 28;
  font-size: var(--step-1);
  display: block;
  line-height: 1.15;
}
.subfigures .k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 4px;
}

.lastyear {
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--text-low);
  text-align: center;
  padding-top: 13px;
  border-top: var(--edge);
}
.lastyear b { color: var(--text-mid); font-weight: 600; }

/* ------------------------------------------------------------
   Section heading
   ------------------------------------------------------------ */
.sechead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 30px 0 12px;
}
.sechead h2 {
  font-size: var(--step-2);
  font-variation-settings: 'opsz' 48;
  margin-right: auto;
}
.sechead .meta { font-size: var(--step--1); color: var(--text-low); }

/* ------------------------------------------------------------
   Rows: groups (people / categories) and items (gifts)
   ------------------------------------------------------------ */
.rows {
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-1);
  box-shadow: var(--etch);
}

.row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: var(--row-min);
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--night-3);
  position: relative;
  transition: background var(--fast) var(--ease);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--night-2); }
.row:has(.track) { padding-bottom: 16px; }

.avatar {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--night-0);
  background: var(--accent, var(--ember));
}
.avatar.cool { background: var(--frost); }

.row .body { flex: 1; min-width: 0; }
.row .name {
  font-weight: 560;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .sub { font-size: var(--step--1); color: var(--text-low); }

.row .amount {
  text-align: right;
  flex: none;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24;
  font-size: var(--step-1);
  line-height: 1.2;
}
.row .amount small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 1px;
}
.amount.over { color: var(--cranberry); }
.amount.under { color: var(--holly); }

/* progress track under each group row — inset so it reads as a bar,
   not as a row divider */
.track {
  position: absolute;
  left: 14px; right: 14px; bottom: 7px;
  height: 3px;
  border-radius: 3px;
  background: var(--night-3);
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--holly);
  transition: width var(--slow) var(--ease-out), background var(--mid) var(--ease);
}
.track i.over { background: var(--cranberry); }
.track i.committed { background: var(--ember-dim); }

/* ------------------------------------------------------------
   Item rows + status
   ------------------------------------------------------------ */
.item .status {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: var(--edge);
  background: var(--night-0);
  color: var(--text-low);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.item .status svg { width: 15px; height: 15px; }
.item .status[data-s='bought'] { color: var(--ember); border-color: var(--ember-dim); }
.item .status[data-s='wrapped'] { color: var(--frost); border-color: var(--frost-dim); }
.item .status[data-s='given'] { color: var(--holly); border-color: var(--holly); }
.item .status[data-s='returned'] { color: var(--cranberry); border-color: var(--cranberry); }

.item.returned .name { text-decoration: line-through; color: var(--text-low); }

.statuslabel {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
}
.statuslabel[data-s='idea'] { color: var(--text-low); }
.statuslabel[data-s='bought'] { color: var(--ember); }
.statuslabel[data-s='wrapped'] { color: var(--frost); }
.statuslabel[data-s='given'] { color: var(--holly); }
.statuslabel[data-s='returned'] { color: var(--cranberry); }

/* the wrapped sweep: a ribbon sheen across the row */
.row.sweep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%,
    rgba(143, 195, 201, 0.26) 46%, rgba(240, 192, 120, 0.22) 54%, transparent 80%);
  animation: sweep 460ms var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes sweep {
  from { transform: translateX(-100%); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* the value settle */
.settle { animation: settle 420ms var(--ease-out); }
@keyframes settle {
  0% { color: var(--ember); text-shadow: 0 0 14px rgba(232, 163, 61, 0.6); }
  100% { text-shadow: none; }
}
.shake { animation: shake 320ms var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-6px); }
  48% { transform: translateX(4px); }
  74% { transform: translateX(-2px); }
}

/* ------------------------------------------------------------
   Chips
   ------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  border: var(--edge);
  background: var(--night-1);
  color: var(--text-mid);
  font-size: var(--step--1);
  font-weight: 540;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--fast) var(--ease);
}
.chip:hover { color: var(--text-hi); border-color: var(--night-4); background: var(--night-2); }
.chip[aria-pressed='true'] {
  color: var(--ember);
  border-color: var(--ember-dim);
  background: rgba(232, 163, 61, 0.09);
}
.chip.add::before { content: '+'; font-size: 1.05em; line-height: 1; opacity: 0.7; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: 11px;
  font-weight: 600;
  font-size: var(--step-0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--edge);
  background: var(--night-2);
  box-shadow: var(--etch);
  transition: all var(--fast) var(--ease);
}
.btn:hover { background: var(--night-3); }
.btn svg { width: 17px; height: 17px; }

.btn.primary {
  background: var(--ember);
  color: #1A1206;
  border-color: transparent;
  box-shadow: 0 2px 14px -4px rgba(232, 163, 61, 0.55);
}
.btn.primary:hover { background: var(--ember-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-mid); }
.btn.ghost:hover { color: var(--text-hi); background: var(--night-2); }
.btn.danger { color: var(--cranberry); }
.btn.full { width: 100%; }

/* floating action — thumb-anchored */
.fab {
  position: fixed;
  right: max(var(--gutter), calc(50vw - 590px + var(--gutter)));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--ember);
  color: #1A1206;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 30px -8px rgba(232, 163, 61, 0.6), var(--lift);
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}
.fab:hover { background: var(--ember-soft); transform: translateY(-1px); }
.fab:active { transform: translateY(0) scale(0.98); }
.fab svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------
   Empty states — the first thing every buyer sees
   ------------------------------------------------------------ */
.empty {
  text-align: center;
  padding: 34px 20px 30px;
  border: 1px dashed var(--night-4);
  border-radius: var(--radius-lg);
  background: var(--night-1);
}
.empty svg.art {
  width: 122px; height: 92px;
  margin-bottom: 14px;
  color: var(--ember-dim);
}
.empty svg.art [data-draw] {
  stroke-dasharray: var(--len, 300);
  stroke-dashoffset: var(--len, 300);
  animation: draw 1100ms var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.empty h3 {
  font-size: var(--step-2);
  font-variation-settings: 'opsz' 60;
  margin-bottom: 6px;
}
.empty p {
  color: var(--text-mid);
  font-size: var(--step-0);
  max-width: 40ch;
  margin: 0 auto 16px;
}

/* ------------------------------------------------------------
   Quick add
   ------------------------------------------------------------ */
.quickadd {
  display: flex;
  gap: 8px;
  padding: 11px;
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--night-1);
  box-shadow: var(--etch);
  margin-top: 12px;
}
.quickadd input[type='text'] { flex: 1; }
.quickadd input[type='number'] { width: 104px; flex: none; }

.remaining-pin {
  position: sticky;
  top: 62px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--night-2);
  border: var(--edge);
  box-shadow: var(--etch), var(--lift);
  font-size: var(--step--1);
  margin-bottom: 12px;
}
.remaining-pin .v {
  margin-left: auto;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24;
  font-size: var(--step-1);
}

/* ------------------------------------------------------------
   Sheet / dialog
   ------------------------------------------------------------ */
dialog.sheet {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 520px;
  width: calc(100% - 28px);
  margin: auto;
  color: var(--text-hi);
}
dialog.sheet::backdrop {
  background: rgba(3, 7, 6, 0.72);
  backdrop-filter: blur(4px);
}
.sheet-inner {
  background: var(--night-1);
  border: var(--edge);
  box-shadow: var(--etch), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  padding: 22px;
  animation: rise var(--slow) var(--ease-out);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
}
.sheet h3 {
  font-size: var(--step-2);
  font-variation-settings: 'opsz' 60;
  margin-bottom: 4px;
}
.sheet .lede { color: var(--text-mid); font-size: var(--step--1); margin: 0 0 16px; }
.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 5px;
}
.sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(440px, calc(100% - 28px));
  pointer-events: none;
}
.toast {
  background: var(--night-2);
  border: var(--edge);
  box-shadow: var(--etch), var(--lift);
  border-radius: 13px;
  padding: 12px 15px;
  font-size: var(--step--1);
  animation: rise var(--mid) var(--ease-out);
  pointer-events: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast.warn { border-color: var(--ember-dim); }

/* ------------------------------------------------------------
   Snow canvas (reward burst only — never ambient)
   ------------------------------------------------------------ */
#snow {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Card list — handwritten register
   ------------------------------------------------------------ */
.cards .row { --accent: var(--paper); }
.tick { width: 26px; height: 26px; flex: none; color: var(--night-4); }
.tick path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick.on { color: var(--holly); }
.tick.on path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 300ms var(--ease-out) forwards;
}

/* ------------------------------------------------------------
   Boot sequence — "the lights come on". Once per session.
   ------------------------------------------------------------ */
.lights {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  display: flex;
  z-index: 60;
  pointer-events: none;
}
.lights i {
  flex: 1;
  height: 100%;
  background: var(--ember);
  opacity: 0;
  animation: lamp 2600ms var(--ease) forwards;
  animation-delay: var(--d);
}
@keyframes lamp {
  0% { opacity: 0; }
  14% { opacity: 0.85; box-shadow: 0 0 12px 1px rgba(232, 163, 61, 0.8); }
  100% { opacity: 0.22; box-shadow: none; }
}

.boot .reveal {
  opacity: 0;
  animation: reveal 620ms var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Desktop — denser allocation view
   ------------------------------------------------------------ */
@media (min-width: 760px) {
  :root { --gutter: 30px; }

  /* The ring deliberately breaks the card's grid — it sits over the
     summary's left edge rather than in a tidy box of its own. One
     intentional overlap is what stops this reading as a stack of
     equal rounded rectangles. */
  .hero {
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 0;
  }
  .ringwrap { margin: 0; }
  .summary { padding: 26px 30px 24px 92px; }
  .headline { text-align: left; }
  .headline .caption { margin-inline: 0; }
  .summary > .headline { max-width: 640px; }
  .subfigures { max-width: 760px; }

  .row { padding: 12px 18px; }
  .nav { max-width: 520px; }
  .topbar { padding-top: 22px; }
}

@media (max-width: 759px) {
  .nav {
    position: fixed;
    left: var(--gutter); right: var(--gutter);
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 45;
    margin: 0;
    box-shadow: var(--etch), 0 -6px 30px -10px rgba(0, 0, 0, 0.8);
    background: color-mix(in srgb, var(--night-1) 92%, transparent);
    backdrop-filter: blur(14px);
  }
  .nav button span { display: none; }
  .nav button { min-height: 46px; }
  .nav button svg { width: 20px; height: 20px; }
  .fab { bottom: calc(74px + env(safe-area-inset-bottom)); right: var(--gutter); }
  .toasts { bottom: calc(136px + env(safe-area-inset-bottom)); }
  .view { padding-bottom: 130px; }
}

/* ------------------------------------------------------------
   Overview section blocks
   Each section gets a summary card rather than the whole list
   being dumped on the front page. Section temperature (ember /
   frost / paper) says which one you're looking at before you
   read the heading.
   ------------------------------------------------------------ */
.rollup {
  font-size: var(--step--1);
  color: var(--text-low);
  margin: 0 0 16px;
  text-align: center;
}

.blocks {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.block {
  background: var(--night-1);
  border: var(--edge);
  box-shadow: var(--etch);
  border-radius: var(--radius-lg);
  padding: 4px 16px 16px;
  position: relative;
  overflow: hidden;
}
.block::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--block-accent) 70%, transparent), transparent 72%);
}

.block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 0 12px;
  text-align: left;
}
.block-head h3 {
  font-size: var(--step-1);
  font-variation-settings: 'opsz' 32;
  margin-right: auto;
}
.block-icon {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--block-accent);
  background: color-mix(in srgb, var(--block-accent) 13%, transparent);
}
.block-icon svg { width: 17px; height: 17px; }
.block-go {
  color: var(--text-low);
  display: grid;
  place-items: center;
  transform: rotate(180deg);
  transition: transform var(--fast) var(--ease), color var(--fast) var(--ease);
}
.block-go svg { width: 18px; height: 18px; }
.block-head:hover .block-go { color: var(--text-hi); transform: rotate(180deg) translateX(-3px); }

/* stat grid — 5 money stats fit 2-up on a phone, 5-up on desktop */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--night-3);
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--night-0);
  padding: 11px 12px;
  min-width: 0;
}
.stat .sv {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 26;
  font-size: var(--step-1);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat .sk {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 3px;
}
/* an odd last stat spans the full width rather than leaving a hole */
.stats > .stat:nth-child(odd):last-child { grid-column: 1 / -1; }

.block-empty {
  margin: 0;
  padding: 2px 2px 6px;
  color: var(--text-mid);
  font-size: var(--step--1);
  line-height: 1.5;
}

.block-foot {
  margin: 11px 0 0;
  font-size: var(--step--1);
  color: var(--text-low);
}
.block-foot b { color: var(--text-hi); font-weight: 600; }

.block-cta {
  width: 100%;
  margin-top: 12px;
  min-height: 42px;
  background: transparent;
  border-color: var(--night-3);
  color: var(--text-mid);
  font-size: var(--step--1);
}
.block-cta:hover {
  color: var(--block-accent);
  border-color: color-mix(in srgb, var(--block-accent) 45%, transparent);
  background: color-mix(in srgb, var(--block-accent) 8%, transparent);
}
.block-cta svg { width: 15px; height: 15px; }

@media (min-width: 760px) {
  .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .block:first-child { grid-column: 1 / -1; }
  .block:first-child .stats { grid-template-columns: repeat(5, 1fr); }
  .block:first-child .stats > .stat:nth-child(odd):last-child { grid-column: auto; }
  .block { padding: 4px 20px 18px; }
}
