/* ══ THE MEASURES PAGE (drills hub) ════════════════════════════════════════
   Was a 210px auto-fill card grid, four colour-coded domains, and a bloom-lit
   hero — the other surface still reading as a template. The drills hub and the
   back page ask the reader the same question ("which one do you want to try?"),
   so this borrows the back page's answer: a section head, entries NUMBERED the
   way a paper numbers its puzzles, and dotted leader rules between them.

   The four domains stay, but as DEPARTMENTS — a ruled head and a mono slug,
   not four accent hues. The old --dacc mapped speed→teal and memory→purple;
   both resolve into ink under the two-ink discipline, so the colour was doing
   no work while still reading as a colour-coded dashboard.
   ══════════════════════════════════════════════════════════════════════════ */
/* .mg-body-inner is already this screen's scroller, but #screen-drills also
   carried overflow-y:auto — and .screen carries scrollbar-gutter: stable, so
   the gutter was reserved TWICE and the whole column sat 7.5px left of the
   running head. Not a scroll container here, so no second gutter. */
#screen-drills.bs { overflow: visible; }
#screen-drills.bs .mg-body-inner { justify-content: flex-start; padding: 0; }
/* Same measure and inset as the running head and every other ruled page. */
.bs .drills-wrapper { max-width: 1080px; padding: 0 28px 72px; }

/* ── section head ── */
.bs .cog-head { padding: 26px 0 0; margin-bottom: 28px; }
.bs .cog-rule { height: 1px; background: var(--bs-ink); margin-bottom: 14px; }
.bs .cog-kicker {
  font-family: var(--bs-ed);
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  font-weight: 900; font-size: clamp(38px, 6vw, 64px);
  line-height: .88; letter-spacing: -.042em; color: var(--bs-ink);
  text-transform: none; margin: 0;
}
.bs .cog-folio {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-top: 12px; padding: 7px 0 6px;
  border-top: 3px solid var(--bs-ink); border-bottom: 1px solid var(--bs-ink);
}
.bs .cog-tagline {
  font-family: var(--bs-mono); font-style: normal; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bs-ink-2); margin: 0;
}
/* The clock is instrumentation, so it sets in the mono face like every other
   readout — and in the folio, which is where a paper prints its date and time. */
.bs .cog-folio .mg-timer {
  background: transparent; border: none; border-radius: 0; padding: 0;
  font-family: var(--bs-mono); font-size: 10px; letter-spacing: .16em;
  color: var(--bs-ink); font-variant-numeric: tabular-nums;
}
.bs .cog-folio .mg-timer.urgent { color: var(--bs-miss); }

/* ── the lede: today's warm-up ── */
.bs .cog-hero {
  /* Was a blue radial bloom over a tonal gradient, plus a second CSS
     reimplementation of the paper grain that #paper-tooth already draws. */
  background: transparent; border: none; border-radius: 0;
  border-bottom: 3px solid var(--bs-ink);
  padding: 0 0 22px; margin: 0 0 28px; overflow: visible;
}
.bs .cog-hero::after { content: none; }
.bs .cog-hero-title {
  font-family: var(--bs-ed); font-variation-settings: 'WONK' 1;
  font-weight: 900; font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.04; letter-spacing: -.03em; color: var(--bs-ink);
}
.bs .cog-hero-sub {
  font-family: var(--bs-ui); font-size: 14px; color: var(--bs-ink-2); margin-top: 5px;
}
.bs .cog-hero-track { max-width: 300px; margin: 14px 0 16px; gap: 5px; }
.bs .cog-seg { height: 3px; border-radius: 0; background: var(--bs-rule); }
.bs .cog-seg.done::before { background: var(--bs-ink); border-radius: 0; }
.bs .drill-warmup-chip {
  background: transparent; border: 1px solid var(--bs-ink); border-radius: 0;
  padding: 10px 12px; gap: 3px;
  transition: background .12s ease, color .12s ease;
}
.bs .drill-warmup-chip:hover,
.bs .cog-domain .drill-warmup-chip:hover,
.bs .cog-hero .drill-warmup-chip:hover {
  background: var(--bs-ink); border-color: var(--bs-ink); color: var(--bs-stock);
}
.bs .drill-warmup-chip:focus-visible { outline: 2px solid var(--bs-blue); outline-offset: 2px; }
.bs .drill-warmup-chip .wu-name {
  font-family: var(--bs-ed); font-variation-settings: normal;
  font-weight: 900; font-size: 14px; letter-spacing: -.015em;
}
.bs .drill-warmup-chip .wu-hint {
  font-family: var(--bs-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bs-ink-3);
}
.bs .drill-warmup-chip:hover .wu-hint,
.bs .drill-warmup-chip:hover .wu-done { color: var(--bs-stock); }
.bs .drill-warmup-chip .wu-done {
  font-family: var(--bs-mono); font-size: 9px; letter-spacing: .12em; color: var(--bs-blue);
}

/* ── departments ── */
.bs .cog-domain { margin-top: 0; margin-bottom: 26px; --dacc: var(--bs-ink); }
.bs .cog-domain[data-domain="speed"],
.bs .cog-domain[data-domain="memory"],
.bs .cog-domain[data-domain="focus"],
.bs .cog-domain[data-domain="skill"] { --dacc: var(--bs-ink); --dacc-bg: transparent; }
.bs .cog-domain-head {
  align-items: baseline; gap: 10px; padding: 0 0 7px;
  border-bottom: 1px solid var(--bs-ink);
}
.bs .cog-domain-dot {
  width: 5px; height: 5px; border-radius: 0; transform: none;
  background: var(--bs-blue); align-self: center;
}
.bs .cog-domain-name {
  font-family: var(--bs-mono); font-size: 10px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--bs-blue);
}
.bs .cog-domain-sub {
  font-family: var(--bs-ui); font-size: 12px; color: var(--bs-ink-3);
}
/* Solid, not a gradient fading to nothing — a printed rule has one weight. */
.bs .cog-domain-rule { background: var(--bs-rule); }

/* ── entries: the puzzle-page list ──
   `display: contents` dissolves .cog-tile-top so the numeral and the personal
   best become real grid items of the row — the same promotion .bs .stats uses
   on the practice masthead. Every child is placed explicitly, so the row reads
   numeral | name over description | best | trend regardless of DOM order. */
.bs .cog-grid { display: block; gap: 0; }
.bs .cog-tile {
  display: grid; align-items: baseline;
  grid-template-columns: 58px minmax(0, 1fr) auto 76px;
  column-gap: 18px; row-gap: 2px;
  background: transparent; border: none; border-radius: 0;
  border-bottom: 1px dotted var(--bs-rule);
  padding: 15px 4px; text-align: left; opacity: 1; animation: none;
  box-shadow: none;
  transition: background .12s ease, transform .12s ease;
}
/* Slides toward the reader like the front page's index and the back page's
   puzzle list — one affordance, one behaviour, across the whole paper. */
.bs .cog-tile:hover {
  background: var(--bs-sheet); transform: translateX(8px);
  border-color: var(--bs-rule); box-shadow: none;
}
.bs .cog-tile:active { transform: translateX(4px); }
.bs .cog-tile:focus-visible {
  outline: 2px solid var(--bs-blue); outline-offset: 2px; background: var(--bs-sheet);
}
.bs .cog-tile-top { display: contents; }
.bs .cog-tile .go-icon {
  grid-column: 1; grid-row: 1 / span 2;
  font-family: var(--bs-ed); font-variation-settings: 'WONK' 1;
  font-weight: 900; font-size: 20px; letter-spacing: -.02em;
  color: var(--bs-blue); width: auto; line-height: 1.1;
}
.bs .cog-tile .go-name {
  grid-column: 2; grid-row: 1;
  font-family: var(--bs-ed); font-variation-settings: 'WONK' 1;
  font-weight: 900; font-size: 20px; letter-spacing: -.02em; color: var(--bs-ink);
}
.bs .cog-tile .go-desc {
  grid-column: 2; grid-row: 2;
  font-family: var(--bs-ui); font-size: 13px; line-height: 1.45;
  color: var(--bs-ink-3); min-height: 0; margin-top: 2px;
}
.bs .cog-tile .do-best {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  font-family: var(--bs-mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--bs-ink-2);
}
.bs .cog-tile-spark {
  grid-column: 4; grid-row: 1 / span 2; align-self: center;
  height: 20px; justify-content: flex-end;
}
.bs .cog-tile-spark .drill-spark polyline { stroke: var(--bs-ink-2); opacity: 1; }

/* ── "Your Numbers" ── */
.bs .drill-summary-card {
  background: transparent; border: none; border-radius: 0;
  border-top: 3px solid var(--bs-ink); padding: 16px 0 0; margin: 0 0 28px;
}
.bs .drill-summary-title {
  font-family: var(--bs-mono); font-size: 10px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--bs-blue);
  margin-bottom: 10px;
}
.bs .drill-sum-row {
  border-bottom: 1px solid var(--bs-rule); padding: 9px 0; flex-wrap: wrap;
}
.bs .drill-sum-name { font-family: var(--bs-ui); font-size: 14px; color: var(--bs-ink); }
/* The base rule sets white-space: nowrap, and this stat runs long ("best 104
   eff. WPM · med 104 eff. WPM · 12 runs") — at 320px it alone was ~265px wide
   and dragged a horizontal scrollbar onto the whole dashboard. */
.bs .drill-sum-stat {
  font-family: var(--bs-mono); font-size: 9.5px; letter-spacing: .08em;
  color: var(--bs-ink-3); white-space: normal; min-width: 0;
}
.bs .drill-sum-empty { font-family: var(--bs-ui); font-size: 13px; color: var(--bs-ink-3); }
.bs .drill-spark polyline { stroke: var(--bs-ink-2); }
.bs .mg-actions { max-width: 420px; margin-top: 8px; }

/* ── the Cognition Index, which prints inside the dashboard's drills section ── */
.bs .ci-hero { border-bottom: 1px solid var(--bs-rule); padding: 2px 0 16px; }
.bs .ci-badge {
  /* Was a blue radial bloom; a printed medallion is a ruled disc. */
  background: transparent; border: 1.5px solid var(--bs-ink);
  width: 88px; height: 88px;
}
.bs .ci-badge.locked { border-color: var(--bs-rule); }
.bs .ci-badge-num {
  font-family: var(--bs-ed); font-variation-settings: 'WONK' 1;
  font-weight: 900; font-size: 32px; letter-spacing: -.03em; color: var(--bs-ink);
}
.bs .ci-badge.locked .ci-badge-num { color: var(--bs-ink-3); }
.bs .ci-badge-lbl {
  font-family: var(--bs-mono); font-size: 8px; letter-spacing: .16em; color: var(--bs-ink-3);
}
.bs .ci-dname { font-family: var(--bs-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bs-ink-2); }
.bs .ci-dbar { background: var(--bs-stock-2); border-radius: 0; }
.bs .ci-dfill { background: var(--bs-blue); border-radius: 0; }
.bs .ci-dval { font-family: var(--bs-mono); font-size: 11px; color: var(--bs-ink); }
.bs .ci-hint { font-family: var(--bs-ui); font-style: normal; font-size: 12px; color: var(--bs-ink-3); }
.bs .ci-gains { border-bottom: 1px solid var(--bs-rule); }
.bs .ci-gains-lbl { font-family: var(--bs-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--bs-ok); }
.bs .ci-gain-chip {
  border-radius: 0; border-color: var(--bs-ok); background: transparent;
  font-family: var(--bs-mono); font-size: 10px; color: var(--bs-ink);
}

@media (max-width: 700px) {
  /* The trend column is the first thing to go — the numeral, the name and the
     personal best all carry more information per pixel than the sparkline. */
  .bs .cog-tile { grid-template-columns: 42px minmax(0, 1fr) auto; column-gap: 12px; }
  .bs .cog-tile-spark { display: none; }
  .bs .cog-tile .go-icon, .bs .cog-tile .go-name { font-size: 17px; }
  .bs .drills-wrapper { padding: 0 18px 56px; }
  .bs .cog-folio { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 460px) {
  .bs .cog-tile { grid-template-columns: 34px minmax(0, 1fr); }
  .bs .cog-tile .do-best { grid-column: 2; grid-row: 3; align-self: start; margin-top: 3px; }
}

/* ── drill stage: conversion debt, not a restyle ──
   These trays and tiles were built for a near-black ground. rgba(255,255,255,
   0.015) was a faint lift on black and is simply invisible on newsprint, and a
   near-black tile on paper is the inversion of what it was drawn to be: the
   UNLIT state should recede into the stock, and the LIT state should be ink. */
.memory-pad, .drill-pad, .corsi-board, .vm-grid { background: var(--bs-stock-2); }
.corsi-blk, .vm-tile, .nback-tile {
  background: var(--bs-sheet); border-color: var(--bs-rule);
}
.corsi-blk:hover { background: var(--bs-stock-2); border-color: var(--bs-ink-3); }
.corsi-blk.flash { background: var(--bs-blue); border-color: var(--bs-ink);
  box-shadow: 0 0 0 3px var(--bs-stock-2); }
/* Hard offsets, never a blurred colour glow. */
.corsi-blk.flash-bad { background: var(--red-bg); border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg); }
.vm-tile.lit { background: var(--bs-ink); border-color: var(--bs-ink); }
.vm-tile.hit { background: var(--green-bg); border-color: var(--green); }
.vm-tile.miss { background: var(--red-bg); border-color: var(--red); }
.nback-tile.on { background: var(--bs-blue); border-color: var(--bs-ink);
  box-shadow: 0 0 0 2px var(--bs-blue); }
@media (max-width: 720px) {
  .bs .login-box { padding: 5vh 20px 32px; }
  .bs .home-wrap { padding: 0 18px 56px; }
  .bs .dv2 { padding: 0 18px 56px; }
  .bs .dv2-back { position: static; display: block; margin: 0 0 10px auto; }
  .bs .dv2-head { padding-top: 14px; }
  /* The nameplate needs the full column on a phone, so the actions come out of
     the corner and sit above it in normal flow — absolutely positioned they
     overlapped the wordmark at 320px. */
  .bs .home-head-actions { position: static; justify-content: flex-end; margin-bottom: 10px; }
  .bs .home-head { padding-top: 14px; }
  /* The running head is a single line of departments; below this width it has
     to be allowed to scroll sideways rather than force the PAGE to. */
  .gb-inner { padding: 8px 18px 7px; gap: 12px; }
  .gb-links { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .gb-links::-webkit-scrollbar { display: none; }
  .bs .home-stats { flex-wrap: wrap; }
  .bs .home-rating-pill { padding-right: 18px; margin-right: 18px; }
  .bs .home-nav-card .hn-text { gap: 4px; }
}

