/*
  The News Room, wire desk (NR-12; design-lab src/directions/nr-b/nrb.css, locked 8 Nov 2026), loaded on the News Room's
  pages only (Page.NewsRoom). Ported from the lab's public part: the heavy maroon masthead (P's page hero) with the live
  stamp, the running wire, the time column on every row, square corners and ruled lines. Colours are P's tokens as
  site.css maps them, with the lab's --nr-* and --nrb-* values (light theme); sizes in em. Motion is gated by
  --motion-on (reduced motion and the display options set it to 0). Two changes from the lab, both for the strict CSP
  (no inline style, sheet 12 D61): the running wire is EP's loop part (p-motion.js moves it, with a pause button; with
  no script it is a still row that scrolls sideways), and the archive's heat is a data-h step, not a --h property.
*/

:root {
  --nrb-run-speed: 45; /* the running wire, px per second (read by p-motion.js) */
}

.nrb {
  --border-width: 1px;
  --nr-fill: #1c1c1c; /* ink blocks: buttons, numbers (white on it 17.4) */
  --nr-on-fill: #ffffff;
  --nrb-mast-size: 6.4em;
  --nrb-time-w: 4.6em;
  --nrb-pulse: 1800ms;
  --nrb-line: var(--border-width) solid var(--p-rule);
  --nrb-heavy: calc(var(--border-width) * 4) solid var(--p-ink);
  container: nr / inline-size;
  color: var(--p-ink);
  font-variant-numeric: tabular-nums;
}

.nrb h1,
.nrb h2,
.nrb h3 {
  margin: 0;
  font-weight: 700;
}

.nrb ol,
.nrb ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nrb p {
  margin: 0;
}

.nrb-epc {
  color: var(--p-saffron);
}

/* ── the live mark ───────────────────────────────────────────────────────── */

.nrb-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nrb-live-dot {
  width: 0.65em;
  height: 0.65em;
  background: var(--p-saffron);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--p-saffron) 60%, transparent);
  animation: nrb-pulse var(--nrb-pulse) var(--motion-ease) infinite;
}

@keyframes nrb-pulse {
  70% {
    box-shadow: 0 0 0 calc(0.6em * var(--motion-on)) color-mix(in srgb, var(--p-saffron) 0%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nrb-live-dot {
    animation: none;
  }
}

.p[data-still] .nrb-live-dot {
  animation: none;
}

/* ── the masthead (P's page hero, heavier) ───────────────────────────────── */

.nrb-mast .p-ph {
  padding-bottom: 1.4em;
  border-bottom: calc(var(--border-width) * 6) solid var(--p-saffron);
}

.nrb-stamp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em 1.2em;
  margin-bottom: 0.6em !important;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--p-on-dark-muted);
}

.nrb-stamp .nrb-live {
  padding: 0.25em 0.7em;
  color: var(--p-on-saffron);
  background: var(--p-saffron);
}

.nrb-stamp .nrb-live-dot {
  background: var(--p-ground);
}

.nrb-mast .p-ph-title {
  font-size: var(--nrb-mast-size);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.nrb-mast-item .p-ph-title {
  max-width: 24em;
  font-size: 2.7em;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: none;
}

.nrb-mast-item .p-ph-line {
  max-width: 44em;
  font-size: 1.25em;
  line-height: 1.45;
}

.nrb-mast .p-ph-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3em 1.6em;
}

.nrb-names {
  display: inline-flex;
  gap: 1.2em;
  font-weight: 700;
  color: var(--p-on-dark);
}

.nrb-desks {
  margin-top: 1.2em;
}

.nrb-desks ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  border: var(--border-width) solid color-mix(in srgb, var(--p-on-dark) 45%, transparent);
}

.nrb-desks li + li {
  border-left: var(--border-width) solid color-mix(in srgb, var(--p-on-dark) 45%, transparent);
}

.nrb .nrb-desks a {
  display: inline-flex;
  align-items: center;
  min-height: 2.7em;
  padding: 0 1.1em;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-on-dark);
  transition: background-color calc(var(--p-beat) * 0.4) var(--motion-ease);
}

.nrb .nrb-desks a:hover {
  background: color-mix(in srgb, var(--p-on-dark) 14%, transparent);
}

.nrb .nrb-desks a[aria-current] {
  color: var(--p-ground);
  background: var(--p-on-dark);
}

.nrb-langs {
  display: flex;
  gap: 0.3em;
  margin-top: 1.2em;
}

.nrb .nrb-langs a,
.nrb-langs span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5em;
  padding: 0 0.9em;
  color: var(--p-on-dark);
  border: var(--border-width) solid color-mix(in srgb, var(--p-on-dark) 55%, transparent);
}

.nrb-langs [aria-current] {
  color: var(--p-ground);
  background: var(--p-on-dark);
}

.nrb-mast :focus-visible {
  outline-color: var(--p-focus-on-dark);
}

/* ── the running wire (EP's loop part) ───────────────────────────────────── */

.nrb-run {
  display: flex;
  align-items: stretch;
  color: var(--p-on-dark);
  background: var(--p-ground-deep);
}

.nrb .nrb-run-word {
  display: flex;
  align-items: center;
  flex: none;
  padding: 0 1.2em 0 5%;
  font-weight: 700;
  font-size: 1.15em;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--p-on-dark);
  border-right: var(--border-width) solid color-mix(in srgb, var(--p-on-dark) 30%, transparent);
}

.nrb-run-h {
  display: flex;
  align-items: center;
  flex: none;
  padding: 0 1.2em;
  font-size: 0.9em !important;
  color: var(--p-on-saffron);
  background: var(--p-saffron);
}

.nrb-run-h .nrb-live-dot {
  background: var(--p-ground);
}

.nrb-run:not(:has(.nrb-run-word)) .nrb-run-h {
  padding-left: 5%;
}

.nrb-run-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 3em;
  padding: 0;
  color: var(--p-on-dark);
  background: transparent;
  border: 0;
  border-right: var(--border-width) solid color-mix(in srgb, var(--p-on-dark) 30%, transparent);
  cursor: pointer;
}

.nrb-run-play:disabled {
  opacity: 0.45;
}

.nrb-run-play .p-icon {
  width: 1.1em;
  height: 1.1em;
}

.nrb-run-track {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nrb-run-track[data-moving='false'] {
  overflow-x: auto;
  scrollbar-width: thin;
}

.nrb-run-move {
  display: flex;
  width: max-content;
  animation: p-ticker var(--p-ticker-duration) linear infinite;
  animation-play-state: paused;
}

.nrb-run-track[data-moving='false'] .nrb-run-move {
  animation: none;
}

.nrb-run-move[data-running='true'] {
  animation-play-state: running;
}

.nrb-run-list {
  display: flex;
}

.nrb-run-list li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.75em 1.6em 0.75em 0;
  margin-left: 1.6em;
  white-space: nowrap;
  border-right: var(--border-width) solid color-mix(in srgb, var(--p-on-dark) 25%, transparent);
}

.nrb-run-list time,
.nrb-run-when {
  font-weight: 700;
  color: var(--p-saffron);
}

.nrb-run-cat {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-on-dark-muted);
}

.nrb .nrb-run-list a {
  color: var(--p-on-dark);
}

.nrb .nrb-run-list a:hover {
  text-decoration: underline;
}

.nrb-run :focus-visible {
  outline-color: var(--p-focus-on-dark);
}

/* ── the front page grid ─────────────────────────────────────────────────── */

.nrb-grid {
  display: grid;
  grid-template-columns: 19em minmax(0, 1fr) 19em;
  gap: 2.2em;
  max-width: var(--p-max);
  margin-inline: auto;
  padding: 2em 5% 2.4em;
}

.nrb-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6em;
  padding-bottom: 0.45em;
  margin-bottom: 0.4em !important;
  font-size: 0.95em !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-ink);
  border-bottom: var(--nrb-heavy);
}

.nrb-h .nrb-live-dot {
  background: var(--p-heading);
}

/* category tag: a square of its colour and the word */
.nrb-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-ink);
}

.nrb-tag::before {
  content: '';
  width: 0.7em;
  height: 0.7em;
  background: var(--p-heading);
}

.nrb-tag[data-cat='announcement']::before {
  background: var(--p-blue);
}

.nrb-tag[data-cat='notice']::before {
  background: var(--p-saffron);
}

.nrb-tag[data-cat='statement']::before {
  background: var(--p-ink);
}

.nrb-tag[data-cat='day']::before {
  background: var(--p-open);
  border-radius: 50%;
}

.nrb-tag[data-cat='event']::before {
  background: var(--p-card);
  border: calc(var(--border-width) * 2) solid var(--p-heading);
}

.nrb-tag-on-dark {
  color: var(--p-on-dark);
}

.nrb-tag-on-dark[data-cat='statement']::before {
  background: var(--p-on-dark);
}

.nrb-office {
  font-size: 0.88em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--p-muted);
}

/* today, down the left */
.nrb-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25em;
  padding: 0.6em 0 1em 1.4em;
  border-left: calc(var(--border-width) * 2) solid var(--p-rule);
  animation: p-rise var(--p-beat) var(--motion-ease) backwards;
}

.nrb-timeline li:nth-child(2) {
  animation-delay: var(--p-reveal-stagger);
}

.nrb-timeline li:nth-child(3) {
  animation-delay: calc(var(--p-reveal-stagger) * 2);
}

.nrb-timeline li:nth-child(n + 4) {
  animation-delay: calc(var(--p-reveal-stagger) * 3);
}

.nrb-timeline li::before {
  content: '';
  position: absolute;
  top: 0.95em;
  left: -0.45em;
  width: 0.8em;
  height: 0.8em;
  background: var(--p-card);
  border: calc(var(--border-width) * 2) solid var(--p-heading);
  border-radius: 50%;
}

.nrb-timeline li:nth-last-child(2)::before {
  background: var(--p-heading);
}

.nrb-timeline time {
  font-size: 1.35em;
  font-weight: 700;
  color: var(--p-heading);
}

.nrb-timeline a {
  font-weight: 700;
  line-height: 1.3;
}

.nrb-timeline a:hover,
.nrb-row-h:hover,
.nrb-lead-h a:hover,
.nrb-catdesk a:hover,
.nrb-also a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nrb-timeline-next {
  border-left-style: dashed !important;
}

.nrb-timeline-next::before {
  border-style: dashed !important;
}

/* the lead */
.nrb-lead {
  padding-bottom: 1.6em;
  border-bottom: var(--nrb-heavy);
}

.nrb-lead-photo {
  position: relative;
  display: block;
  overflow: hidden;
}

.nrb-lead-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--p-beat) var(--motion-ease);
}

.nrb-lead-photo:hover img {
  transform: scale(calc(1 + 0.02 * var(--motion-on)));
}

.nrb-lead-time {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.35em 0.7em;
  font-size: 1.6em;
  font-weight: 700;
  color: var(--p-on-saffron);
  background: var(--p-saffron);
}

.nrb-slug {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em 0.8em;
  margin-top: 0.9em !important;
  font-size: 0.9em;
  color: var(--p-muted);
}

.nrb-lead-h {
  margin-top: 0.3em !important;
  font-size: 2.3em !important;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--p-heading);
}

.nrb-lead-sf {
  margin-top: 0.6em !important;
  font-size: 1.15em;
  line-height: 1.5;
}

/* the wire */
.nrb-wire {
  margin-top: 1.8em;
}

.nrb-lead + .nrb-wire {
  margin-top: 1.8em;
}

.nrb-centre > .nrb-wire:first-child {
  margin-top: 0;
}

.nrb-day-h {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.5em 0;
  font-size: 0.9em !important;
  font-weight: 700;
  color: var(--p-heading);
  background: var(--p-page);
  border-bottom: var(--nrb-line);
}

.nrb-row {
  display: grid;
  grid-template-columns: var(--nrb-time-w) minmax(0, 1fr) 5.5em;
  align-items: start;
  gap: 0.9em;
  padding: 0.8em 0;
  border-bottom: var(--nrb-line);
}

.nrb-time {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--p-ink);
}

.nrb-row .nrb-slug {
  margin-top: 0 !important;
  font-size: 0.85em;
}

.nrb-row-h {
  display: block;
  margin-top: 0.25em;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.3;
}

.nrb-row-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.nrb-row-noimg {
  display: grid;
  place-items: center;
  color: var(--p-heading);
  background: var(--p-tint-2);
}

.nrb-row-noimg .p-icon {
  width: 2em;
  height: 2em;
}

.nrb-wire .p-pr-more {
  margin-top: 1em;
}

/* the rail */
.nrb-rail {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.nrb-filters {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.nr-f {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.nrb-filters .nr-f label {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--p-muted);
}

.nrb-filters select {
  width: 100%;
  min-height: 2.7em;
  padding: 0 0.6em;
  font: inherit;
  color: var(--p-ink);
  background: var(--p-card);
  border: var(--border-width) solid var(--p-muted);
  border-radius: 0;
}

.nrb .nr-f-go,
.nrb .nrb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 2.8em;
  padding: 0 1.2em;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nr-on-fill);
  background: var(--nr-fill);
  border: 0;
  cursor: pointer;
}

.nrb .nrb-btn .p-arrow {
  transition: transform calc(var(--p-beat) * 0.5) var(--motion-ease);
}

.nrb .nrb-btn:hover .p-arrow {
  transform: translateX(calc(0.4em * var(--motion-on)));
}

.nrb-year {
  margin-top: 0.8em;
}

.nrb-year h3 {
  font-size: 1em !important;
  margin-bottom: 0.3em !important;
}

.nrb-year ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.25em;
}

.nrb-year li > * {
  display: grid;
  place-items: center;
  min-height: 2.6em;
  background: var(--p-tint-2);
}

.nrb-year li[data-h='1'] > * {
  background: color-mix(in srgb, var(--p-heading) 18%, var(--p-tint-2));
}

.nrb-year li[data-h='2'] > * {
  background: color-mix(in srgb, var(--p-heading) 37%, var(--p-tint-2));
}

.nrb-year li[data-h='3'] > * {
  background: color-mix(in srgb, var(--p-heading) 55%, var(--p-tint-2));
}

.nrb-year li[data-h='4'] > * {
  background: color-mix(in srgb, var(--p-heading) 74%, var(--p-tint-2));
}

.nrb-year li[data-h='5'] > * {
  background: color-mix(in srgb, var(--p-heading) 92%, var(--p-tint-2));
}

.nrb-year li > * > span:first-child {
  padding: 0 0.3em;
  font-size: 0.82em;
  font-weight: 700;
  color: var(--p-ink);
  background: var(--p-card);
}

.nrb-year li[data-h='0'] > * {
  background: transparent;
  border: var(--border-width) dashed var(--p-rule);
}

.nrb-year li[data-h='0'] > * > span:first-child {
  color: var(--p-muted);
  background: transparent;
}

.nrb-year a:hover {
  outline: calc(var(--border-width) * 2) solid var(--p-ink);
}

.nrb-key {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.7em !important;
  font-size: 0.85em;
  color: var(--p-muted);
}

.nrb-key-cell {
  width: 3em;
  height: 0.9em;
  background: linear-gradient(90deg, var(--p-tint-2), var(--p-heading));
}

/* the five desks */
.nrb-desk-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 1.4em;
  max-width: var(--p-max);
  margin-inline: auto;
  padding: 0 5% 3em;
}

.nrb-catdesk {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding-top: 0.6em;
  border-top: calc(var(--border-width) * 6) solid var(--p-heading);
}

.nrb-catdesk h3 {
  font-size: 1.25em !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--p-heading);
}

.nrb-catdesk-card {
  display: block;
}

.nrb-catdesk-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.nrb-catdesk ol li {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.55em 0;
  border-bottom: var(--nrb-line);
}

.nrb-catdesk time {
  font-size: 0.82em;
  font-weight: 700;
  color: var(--p-muted);
}

.nrb-catdesk ol a {
  font-weight: 700;
  line-height: 1.3;
}

/* the News Room's footer band, above EP's footer */
.nrb-foot {
  color: var(--p-on-dark);
  background: var(--p-ground-deep);
  border-top: calc(var(--border-width) * 6) solid var(--p-saffron);
}

.nrb-foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 1.4em 2em;
  max-width: var(--p-max);
  margin-inline: auto;
  padding: 2.4em 5%;
}

.nrb-foot-word {
  font-size: 2.2em;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.nrb-foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4em;
}

.nrb-foot-cols h2 {
  margin-bottom: 0.6em !important;
  padding-bottom: 0.4em;
  font-size: 0.85em !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: var(--border-width) solid color-mix(in srgb, var(--p-on-dark) 35%, transparent);
}

.nrb .nrb-foot-cols a,
.nrb .nrb-foot-follow a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.2em;
  color: var(--p-on-dark-muted);
}

.nrb .nrb-foot-cols a:hover,
.nrb .nrb-foot-follow a:hover {
  color: var(--p-on-dark);
  text-decoration: underline;
}

.nrb-foot-follow {
  grid-column: 2;
  display: flex;
  gap: 1.6em;
}

.nrb-foot :focus-visible {
  outline-color: var(--p-focus-on-dark);
}

/* ── the item page ───────────────────────────────────────────────────────── */

.nrb-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19em;
  gap: 3em;
  max-width: var(--p-max);
  margin-inline: auto;
  padding: 2em 5% 3em;
}

.nrb-story {
  max-width: 50em;
}

.nrb-story > .p-mt {
  margin-bottom: 1.2em;
}

.nrb-cardfig {
  margin: 0;
}

.nrb-cardfig img,
.nrb-film img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.nrb-cardfig figcaption,
.nrb-film figcaption {
  display: flex;
  gap: 0.5em;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--p-muted);
}

.nrb-film figure {
  margin: 0;
}

.nrb-fig-n {
  flex: none;
  font-weight: 700;
  color: var(--p-heading);
}

.nrb-body {
  margin-top: 1.6em;
  font-size: 1.15em;
  line-height: 1.7;
}

.nrb-body > * + * {
  margin-top: 1em !important;
}

.nrb-dateline {
  font-size: 0.85em;
  color: var(--p-muted);
}

.nrb-dateline + p {
  margin-top: 0.4em !important;
}

.nrb-dateline strong {
  color: var(--p-ink);
  letter-spacing: 0.06em;
}

.nrb-cor,
.nrb-upd {
  padding: 0.9em 1.1em;
  font-size: 0.92em;
  line-height: 1.55;
}

.nrb-cor {
  color: var(--p-on-saffron);
  background: var(--p-saffron-pale);
  border-left: calc(var(--border-width) * 6) solid var(--p-saffron);
}

.nrb-upd {
  background: var(--p-card);
  border-left: calc(var(--border-width) * 6) solid var(--p-blue);
}

.nrb-note-h {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.3em !important;
  font-size: 1em !important;
  font-weight: 700;
}

.nrb-note-t {
  padding: 0.1em 0.45em;
  color: var(--nr-on-fill);
  background: var(--nr-fill);
}

.nrb-film {
  margin-top: 2em;
}

.nrb-film ol {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16em, 1fr);
  gap: 1em;
  overflow-x: auto;
  padding-bottom: 0.6em;
  scroll-snap-type: x mandatory;
}

.nrb-film li {
  scroll-snap-align: start;
  animation: p-rise var(--p-beat) var(--motion-ease) backwards;
}

.nrb-film li:nth-child(2) {
  animation-delay: var(--p-reveal-stagger);
}

.nrb-film li:nth-child(n + 3) {
  animation-delay: calc(var(--p-reveal-stagger) * 2);
}

.nrb-story-foot {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 2em;
  padding-top: 1em;
  border-top: var(--nrb-heavy);
}

.nrb-contact {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
}

.nrb-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.nrb .nrb-posts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.7em;
  padding: 0 1.1em;
  font-weight: 700;
  color: var(--p-on-dark);
  background: var(--p-band);
}

.nrb .nrb-posts a:hover {
  background: var(--p-ground);
}

.nrb-side {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.nrb-log li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(3.4em, max-content) minmax(0, 1fr);
  gap: 0.6em;
  padding: 0.55em 0 0.55em 1.2em;
  border-left: calc(var(--border-width) * 2) solid var(--p-rule);
}

.nrb-log li::before {
  content: '';
  position: absolute;
  top: 0.85em;
  left: -0.4em;
  width: 0.7em;
  height: 0.7em;
  background: var(--p-heading);
}

.nrb-log [data-kind='post']::before {
  background: var(--p-blue);
  border-radius: 50%;
}

.nrb-log [data-kind='cor']::before {
  background: var(--p-saffron);
  transform: rotate(45deg);
}

.nrb-log [data-kind='upd']::before {
  background: var(--p-card);
  border: calc(var(--border-width) * 2) solid var(--p-blue);
}

.nrb-log [data-kind='wd'] {
  font-weight: 700;
  color: var(--p-heading);
}

.nrb-log [data-kind='wd']::before {
  width: 0.9em;
  height: 0.9em;
  left: -0.5em;
  background: var(--p-ink);
  clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%);
}

.nrb-log time,
.nrb-also time {
  font-weight: 700;
}

.nrb-also li {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 0.6em;
  padding: 0.6em 0;
  border-bottom: var(--nrb-line);
}

.nrb-also a {
  font-weight: 700;
  line-height: 1.3;
}

/* withdrawn */
.nrb-mast-item[data-withdrawn] .p-ph {
  background-color: var(--p-ground-deep);
}

.nrb-wd-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em 0.7em;
  color: var(--p-ground);
  background: var(--p-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nrb-wd {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2em;
  align-items: start;
}

.nrb-wd-card {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2em 1.6em;
  overflow: hidden;
  background: var(--p-card);
  border: var(--nrb-line);
}

.nrb-wd-slip {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  width: 100%;
}

/* the struck slip's lines fade; its time stays legible (WCAG 1.4.3) */
.nrb-wd-slip > :not(.nrb-note-t) {
  opacity: 0.45;
}

.nrb-wd-slip .nrb-note-t {
  align-self: flex-start;
}

.nrb-wd-slip-tag {
  width: 30%;
  height: 0.9em;
  background: var(--p-heading);
}

.nrb-wd-slip-line {
  height: 1em;
  background: var(--p-rule);
}

.nrb-wd-slip-line:last-child {
  width: 60%;
}

.nrb-wd-stamp {
  position: absolute;
  padding: 0.25em 0.7em;
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-heading);
  border: calc(var(--border-width) * 4) solid var(--p-heading);
  transform: rotate(-8deg);
  animation: nrb-stamp calc(var(--p-beat) * 0.9) var(--motion-ease) backwards;
  animation-delay: calc(var(--p-beat) * 0.5);
}

@keyframes nrb-stamp {
  from {
    opacity: calc(1 - var(--motion-on));
    transform: rotate(-8deg) scale(calc(1 + 0.8 * var(--motion-on)));
  }
}

.nrb-wd-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  line-height: 1.55;
}

.nrb-wd-when {
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--p-heading);
}

.nrb-wd-reason {
  padding: 0.8em 1em;
  background: var(--p-tint-2);
  border-left: calc(var(--border-width) * 6) solid var(--p-heading);
}

/* ── narrower ────────────────────────────────────────────────────────────── */

@container nr (max-width: 72em) {
  .nrb-grid {
    grid-template-columns: 17em minmax(0, 1fr);
  }

  .nrb-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2em;
  }

  .nrb-desk-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6em 1.4em;
  }

  .nrb-foot-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .nrb-foot-follow {
    grid-column: 1;
  }
}

@container nr (max-width: 52em) {
  .nrb-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nrb-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .nrb-wd {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container nr (max-width: 40em) {
  .nrb {
    --nrb-mast-size: 3.1em;
    --nrb-time-w: 3.4em;
  }

  .nrb-desks ul {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
  }

  .nrb .nrb-desks a {
    white-space: nowrap;
    padding: 0 0.8em;
  }

  .nrb .nrb-run-word {
    display: none;
  }

  .nrb-run-h {
    padding-left: 5%;
  }

  .nrb-lead-h {
    font-size: 1.7em !important;
  }

  .nrb-row {
    grid-template-columns: var(--nrb-time-w) minmax(0, 1fr) 4em;
    gap: 0.6em;
  }

  .nrb-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .nrb-desk-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .nrb-catdesk-card {
    display: none;
  }

  .nrb-foot-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .nrb-mast-item .p-ph-title {
    font-size: 1.9em;
  }

  .nrb-mast-item .p-ph-line {
    font-size: 1.08em;
  }

  .nrb-film ol {
    grid-auto-columns: 82%;
  }

  .nrb-foot-word {
    font-size: 1.7em;
  }
}
