/* DATA — component classes (primitives), from the DATA Design System css/ layer.
   Geometry from Amy's Figma kit; colour + type from DATA tokens
   (the kit's indigo/Roboto button styling is Carbon default — overridden
   per design/specs/primitives.md). Tokens only; no hex literals. */

/* ---- Button (one component + modifiers) -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  border-radius: var(--radius-pill); border: var(--btn-border) solid transparent;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  font-size: var(--fs-button); line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.btn--l { min-height: var(--btn-height); padding: 0 var(--btn-pad-x); }
.btn--m { min-height: 48px; padding: 0 var(--space-3); font-size: var(--fs-body-m); }
.btn--s { min-height: 40px; padding: 0 var(--space-2); font-size: var(--fs-body-s); }
.btn--filled { background: var(--ui-brand); border-color: var(--ui-brand); color: var(--ui-on-brand); }
.btn--filled:hover { opacity: .92; }
.btn--outline { background: transparent; border-color: var(--ui-brand); color: var(--ui-brand); }
.btn--outline:hover { background: var(--ui-brand-soft); }
.btn--link { border: none; padding-inline: 0; min-height: 0; color: var(--ui-brand); background: none; }
.btn--link:hover { text-decoration: underline; }
.btn--danger { background: var(--ui-danger); border-color: var(--ui-danger); color: var(--ui-on-danger); }
.btn--danger:hover { opacity: .92; }
.btn--on-dark { background: var(--data-white); border-color: var(--data-white); color: var(--data-green); }
.btn--on-dark:hover { opacity: .92; }
.btn--ghost-on-dark { background: transparent; border-color: rgba(255,255,255,.7); color: var(--data-white); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,.1); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--ui-surface); border-color: var(--ui-surface); color: var(--ui-text-muted);
  cursor: not-allowed; opacity: 1;
}
.btn:focus-visible { outline: var(--btn-border) solid var(--ui-brand); outline-offset: 2px; }
.btn .icon { width: 24px; height: 24px; }
.btn--s .icon, .btn--m .icon { width: 20px; height: 20px; }

/* ---- Button group ------------------------------------------------------- */
.btn-group { display: inline-flex; border: 1px solid var(--ui-border); border-radius: var(--radius-pill); overflow: hidden; }
.btn-group__item {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body-s);
  color: var(--ui-text-muted); padding: 0 var(--space-2); min-height: 40px;
  display: inline-flex; align-items: center; gap: var(--space-1);
  transition: background .15s ease, color .15s ease;
}
.btn-group__item:hover { color: var(--ui-brand); }
.btn-group__item[aria-pressed="true"] { background: var(--ui-brand); color: var(--ui-on-brand); }

/* ---- Badge --------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ui-surface); color: var(--ui-text);
  border-radius: var(--radius-badge); font-family: var(--font-sans);
  font-weight: var(--fw-regular); line-height: 1;
}
.badge--m  { font-size: var(--fs-body-s); padding: 5px 12px; }
.badge--s  { font-size: var(--fs-body-s); padding: 3px 10px; }
.badge--xs { font-size: 12px; padding: 2px 8px; }
.badge--brand { background: var(--ui-brand-soft); color: var(--ui-brand); font-weight: var(--fw-semibold); }
.badge--success { background: color-mix(in srgb, var(--status-success) 12%, transparent); color: var(--status-success); font-weight: var(--fw-semibold); }
.badge--warning { background: color-mix(in srgb, var(--status-warning) 18%, transparent); color: var(--ui-text); font-weight: var(--fw-semibold); }
.badge--error { background: color-mix(in srgb, var(--status-error) 12%, transparent); color: var(--status-error); font-weight: var(--fw-semibold); }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge__remove {
  display: inline-flex; border: none; background: none; padding: 0; margin-inline-start: 2px;
  color: inherit; cursor: pointer; width: 14px; height: 14px; align-items: center;
}
.badge__remove svg { width: 100%; height: 100%; }

/* ---- Card (kit: Content Box) --------------------------------------------- */
.card {
  border: 1px solid var(--ui-border); background: var(--ui-panel);
  border-radius: var(--radius-card); padding: var(--space-3);
  transition: background .25s ease, border-color .25s ease;
}
.card h3, .card h4 { margin-bottom: var(--space-1); }
.card__body { color: var(--ui-text-muted); font-size: var(--fs-body-m); }
.card--maroon { border-color: var(--data-maroon); } /* no-image article box */

/* ---- Placeholder (kit: Placeholder/picture) ------------------------------ */
.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--ui-surface); color: var(--ui-text-muted);
  border-radius: var(--radius-card); min-height: 120px;
}
.placeholder--video { position: relative; }

/* ---- Field / TextField ---------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field--check { flex-direction: row; align-items: center; gap: var(--space-1); }
.field__label { font-weight: var(--fw-semibold); font-size: var(--fs-body-m); color: var(--ui-text); }
.field__input {
  font-family: var(--font-sans); font-size: var(--fs-body-m);
  min-height: 48px; padding: 12px var(--space-2);
  border-radius: var(--radius-card); border: 1px solid var(--ui-border-strong);
  background: var(--ui-panel); color: var(--ui-text);
  transition: border-color .15s ease, background .25s ease;
  width: 100%;
}
textarea.field__input { min-height: 96px; resize: vertical; }
.field__input::placeholder { color: var(--ui-text-muted); }
.field__input:focus-visible { outline: 2px solid var(--ui-brand); outline-offset: 1px; border-color: var(--ui-brand); }
.field__input:disabled { background: var(--ui-surface); color: var(--ui-text-muted); cursor: not-allowed; }
.field[data-state="error"] .field__input { border-color: var(--ui-danger); }
.field__msg { color: var(--ui-danger); font-size: var(--fs-body-s); }
.field__help { color: var(--ui-text-muted); font-size: var(--fs-body-s); }

/* ---- Controls: checkbox / radio / switch ---------------------------------- */
.control { display: inline-flex; align-items: center; gap: var(--space-1); cursor: pointer; font-size: var(--fs-body-m); }
.control input { position: absolute; opacity: 0; pointer-events: none; }
.control__box {
  width: 20px; height: 20px; border: 1.5px solid var(--ui-text-muted); border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--ui-on-brand); transition: background .15s ease, border-color .15s ease;
  background: var(--ui-panel);
}
.control__box svg { width: 14px; height: 14px; opacity: 0; }
.control input:checked + .control__box { background: var(--ui-brand); border-color: var(--ui-brand); }
.control input:checked + .control__box svg { opacity: 1; }
.control__box--indeterminate { background: var(--ui-brand); border-color: var(--ui-brand); }
.control__box--indeterminate::after { content: ""; width: 10px; height: 2px; background: var(--ui-on-brand); }
.control--radio .control__box { border-radius: 50%; }
.control--radio .control__box::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ui-on-brand); transform: scale(0); transition: transform .15s ease;
}
.control--radio input:checked + .control__box::after { transform: scale(1); }
.control__track {
  width: 44px; height: 24px; border-radius: var(--radius-pill);
  background: var(--ui-border-strong); position: relative; flex-shrink: 0;
  transition: background .15s ease;
}
.control__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ui-panel); transition: transform .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.control input:checked + .control__track { background: var(--ui-brand); }
.control input:checked + .control__track::after { transform: translateX(20px); }
.control input:focus-visible + .control__box,
.control input:focus-visible + .control__track { outline: 2px solid var(--ui-brand); outline-offset: 2px; }
.control--disabled { opacity: .45; cursor: not-allowed; }

/* ---- Tabs (kit: tab, 40px pill) -------------------------------------------- */
.tabs { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 40px; padding: 8px var(--space-2); border-radius: 20px;
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body-m);
  color: var(--ui-text-muted); transition: background .15s ease, color .15s ease;
}
.tab:hover { color: var(--ui-brand); background: var(--ui-brand-soft); }
.tab[aria-selected="true"] { background: var(--ui-brand); color: var(--ui-on-brand); }
.tab:disabled { color: var(--ui-border); cursor: not-allowed; background: none; }

/* ---- Dashboard tabs (underline style) --------------------------------------- */
.dash-tabs { display: flex; gap: var(--space-3); border-bottom: 1px solid var(--ui-border); }
.dash-tab {
  border: none; background: none; cursor: pointer; padding: 12px 2px;
  font-family: var(--font-data); font-size: var(--fs-body-m); color: var(--ui-text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.dash-tab:hover { color: var(--ui-text); }
.dash-tab[aria-selected="true"] { color: var(--ui-text); border-bottom-color: var(--ui-brand); font-weight: 500; }

/* ---- Pagination (kit: 40px pills, maroon-ringed active) ---------------------- */
.pagination { display: flex; align-items: center; gap: var(--space-1); }
.pagination__item {
  min-width: 40px; height: 40px; padding: 8px; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body-m);
  color: var(--ui-text); transition: background .15s ease, color .15s ease;
}
.pagination__item:hover { background: var(--ui-brand-soft); color: var(--ui-brand); }
.pagination__item[aria-current="page"] { background: var(--ui-brand); color: var(--ui-on-brand); }
.pagination__item:disabled { color: var(--ui-border); cursor: not-allowed; background: none; }

/* ---- Breadcrumbs -------------------------------------------------------------- */
.breadcrumbs ol { list-style: none; display: flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; flex-wrap: wrap; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-body-s); }
.breadcrumbs a { color: var(--ui-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ui-brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ui-text); font-weight: var(--fw-semibold); }
.breadcrumbs .icon { width: 16px; height: 16px; color: var(--ui-text-muted); }

/* ---- Menu / MenuItem ------------------------------------------------------------ */
.menu {
  background: var(--ui-panel); border: 1px solid var(--ui-border); border-radius: var(--radius-card);
  padding: var(--space-1) 0; min-width: 180px; box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.menu-item {
  display: flex; align-items: center; gap: var(--space-1);
  padding: 10px var(--space-2); text-decoration: none; cursor: pointer;
  font-size: var(--fs-body-m); color: var(--ui-text); border: none; background: none; width: 100%;
  font-family: var(--font-sans); text-align: left;
  transition: background .15s ease, color .15s ease;
}
.menu-item:hover { background: var(--ui-brand-soft); color: var(--ui-brand); }
.menu-item[aria-current="true"], .menu-item--active { color: var(--ui-brand); font-weight: var(--fw-semibold); }
.menu-item .icon { width: 20px; height: 20px; }
.menu-item__chev { margin-inline-start: auto; width: 16px; height: 16px; color: var(--ui-text-muted); }
.menu--horizontal { display: flex; border: none; box-shadow: none; background: none; padding: 0; min-width: 0; }
.menu--horizontal .menu-item { width: auto; border-radius: var(--radius-card); }

/* ---- Notification (kit geometry: 1px status border + 3px left, 10% tint) ------- */
.notification {
  display: flex; gap: var(--space-2); padding: 14px var(--space-2);
  border: 1px solid; border-left-width: 3px;
  color: var(--ui-text); border-radius: 2px;
}
.notification--success { border-color: var(--status-success); background: color-mix(in srgb, var(--status-success) 10%, var(--ui-panel)); }
.notification--success .icon { color: var(--status-success); }
.notification--warning { border-color: var(--status-warning); background: color-mix(in srgb, var(--status-warning) 10%, var(--ui-panel)); }
.notification--warning .icon { color: var(--status-warning); }
.notification--error { border-color: var(--status-error); background: color-mix(in srgb, var(--status-error) 10%, var(--ui-panel)); }
.notification--error .icon { color: var(--status-error); }
.notification--info { border-color: var(--ui-brand); background: color-mix(in srgb, var(--ui-brand) 10%, var(--ui-panel)); }
.notification--info .icon { color: var(--ui-brand); }
.notification__title { font-weight: var(--fw-semibold); font-size: var(--fs-body-m); }
.notification__body { color: var(--ui-text-muted); font-size: var(--fs-body-s); margin-top: 2px; }
.notification__close {
  border: none; background: none; padding: 0; cursor: pointer; color: var(--ui-text-muted);
  width: 20px; height: 20px; margin-inline-start: auto; flex-shrink: 0;
}
.notification__close:hover { color: var(--ui-text); }
.notification__actions { margin-top: var(--space-1); display: flex; gap: var(--space-1); }

/* ---- Progress ---------------------------------------------------------------- */
.progress { display: flex; align-items: flex-start; gap: 0; }
.progress__step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
/* The default dot is NOT --ui-on-brand: that token is for text on --ui-brand, and here the
   background is --ui-panel, giving 1:1 in light — an icon colour identical to its own
   background. Latent rather than visible, because no icon renders in a step that is neither
   active nor complete; the active and completed rules below set --ui-on-brand where the
   background actually becomes --ui-brand. (cd, CONTRAST_PAIRS.md §4; found by the gate.) */
.progress__dot {
  width: 24px; height: 24px; border-radius: 50%; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ui-border); background: var(--ui-panel); color: var(--ui-text-muted);
}
.progress__dot svg { width: 14px; height: 14px; }
.progress__step--active .progress__dot { border-color: var(--ui-brand); background: var(--ui-brand); color: var(--ui-on-brand); }
.progress__step--completed .progress__dot { border-color: var(--ui-brand); background: var(--ui-brand); color: var(--ui-on-brand); }
.progress__step--error .progress__dot { border-color: var(--ui-danger); background: var(--ui-danger); }
.progress__label { font-size: var(--fs-body-s); color: var(--ui-text-muted); }
.progress__step--active .progress__label { color: var(--ui-text); font-weight: var(--fw-semibold); }
.progress__step::before {
  content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px;
  background: var(--ui-border-strong);
}
.progress__step:first-child::before { display: none; }
.progress__step--completed::before, .progress__step--active::before { background: var(--ui-brand); }
.progress-bar { height: 8px; border-radius: var(--radius-pill); background: var(--ui-surface); overflow: hidden; }
.progress-bar__fill { height: 100%; border-radius: var(--radius-pill); background: var(--ui-brand); transition: width .25s ease; }

/* ---- Accordion / FAQ (native details — Q5 resolved, zero JS) -------------------- */
.faq-item { border-bottom: 1px solid var(--ui-border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) 0; cursor: pointer; list-style: none;
  font-weight: var(--fw-semibold); font-size: var(--fs-body-l); color: var(--ui-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ui-brand); }
.faq-item__chev { transition: transform .15s ease; color: var(--ui-brand); flex-shrink: 0; }
.faq-item[open] .faq-item__chev { transform: rotate(45deg); }
.faq-item__body { padding: 0 0 var(--space-2); color: var(--ui-text-muted); max-width: 65ch; }

/* ---- Modal ------------------------------------------------------------------------ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: var(--space-3);
}
.modal {
  background: var(--ui-panel); border-radius: 4px; /* kit Modal radius */
  padding: var(--space-3); max-width: 480px; width: 100%;
  border: 1px solid var(--ui-border);
}
.modal__head { display: flex; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-1); }
.modal__head h4 { flex: 1; }
.modal__close { border: none; background: none; padding: 0; cursor: pointer; color: var(--ui-text-muted); width: 24px; height: 24px; }
.modal__close:hover { color: var(--ui-text); }
.modal__body { color: var(--ui-text-muted); font-size: var(--fs-body-m); }
.modal__actions { display: flex; gap: var(--space-1); justify-content: flex-end; margin-top: var(--space-3); }

/* ---- Tooltip ------------------------------------------------------------------------ */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--data-charcoal); color: var(--data-white);
  font-size: var(--fs-body-s); line-height: 1.35; padding: 8px 12px; border-radius: 4px;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 20;
}
.tooltip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--data-charcoal);
}
.tooltip-wrap:hover .tooltip, .tooltip-wrap:focus-within .tooltip { opacity: 1; }

/* ---- Prose (Markdown body) ------------------------------------------------
   `render_page` appends any Markdown body as `.prose.wrap`, but no styles ever
   existed for it — so the feature was unusable. This is a MINIMAL, token-only
   fallback so content pages can carry prose (publication lists, news items).
   cd: please ratify or refine the type scale — see DESIGN_THREAD #22.          */
.prose { padding-block: var(--space-4); max-width: 64ch; }
.prose--centered { margin-inline: auto; }
.prose h2 {
  font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-h3);
  font-weight: var(--fw-display); margin-block: var(--space-4) var(--space-2);
}
.prose h3 {
  font-family: var(--font-display); font-size: var(--fs-h4); line-height: var(--lh-h4);
  margin-block: var(--space-3) var(--space-1);
}
.prose p, .prose li {
  font-size: var(--fs-body-m); line-height: var(--lh-body); color: var(--ui-text);
}
.prose p { margin-block-end: var(--space-2); }
.prose ul, .prose ol { padding-inline-start: var(--space-3); margin-block-end: var(--space-3); }
.prose li { margin-block-end: var(--space-2); }
.prose li::marker { color: var(--ui-brand); }
.prose a { color: var(--ui-brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }

/* ---- Prose, completed (cd, thread #22 ratified + the four elements news needs) ---- */
.prose blockquote {
  margin: var(--space-4) 0; padding-left: var(--space-3);
  border-left: 2px solid var(--ui-brand);
  font-family: var(--font-display); font-size: var(--fs-h4); line-height: var(--lh-h4);
  color: var(--ui-text);
}
/* No italic: only the 500 upright is self-hosted, so an italic would synthesise. */

.prose figure { margin: var(--space-4) 0; }
.prose figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-card); border: 1px solid var(--ui-border);
}
.prose figcaption {
  margin-top: 8px; font-size: var(--fs-body-s); color: var(--ui-text-muted-strong);
}

.prose code {
  font-family: var(--font-mono); font-size: var(--fs-body-s);
  background: var(--ui-surface); border-radius: 4px; padding: 2px 6px;
}
.prose pre {
  font-family: var(--font-mono); font-size: var(--fs-body-s);
  background: var(--ui-surface); border: 1px solid var(--ui-border);
  border-radius: var(--radius-card); padding: var(--space-2); overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }

/* ---- Card grids: shared-row alignment (cd, DESIGN_THREAD #34 b) -----------
   The same subgrid trick ArticleCard uses, applied to the ordinary 3-up .cards.
   Without it a two-line card heading pushes its body down and the row reads as
   broken — which is why cd's copy limit for a card h3 had to be a tight 30
   characters ("Attribution, not appropriation" is exactly 30 and already wraps).
   With rows shared, wrapping stops mattering and the limit can go to ~45: the
   fix REMOVES a constraint from the editor instead of adding one.               */
.cards > .card {
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;               /* NOT optional — a subgrid item inherits the parent's 24px */
  display: grid;
  align-content: start;
}

/* ---- ArticleCard — the news index card (primitives.md §8) -----------------
   A LINKED card, deliberately not a .card variant: .card states something,
   .article-card takes you somewhere, and the call site should say which.     */
.article-card {
  position: relative;                    /* anchors the stretched link */
  display: grid; align-content: start;
  background: var(--ui-panel);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  transition: background .15s ease, border-color .15s ease;
}
.article-card:hover {
  background: var(--ui-brand-soft);      /* same wash as the outline button — one system */
  border-color: var(--ui-brand);
}
.article-card__image {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-2);
  width: calc(100% + var(--space-3) * 2);
}
.article-card__date {
  /* Source Sans 3, NOT --font-data: Roboto is data-and-dashboards, and a publication
     date is not a metric. Not the uppercase .caption either — shouty on a date. */
  font-size: var(--fs-body-s); color: var(--ui-text-muted-strong);
  margin-bottom: 6px;
}
.article-card h3 {
  font-size: var(--fs-h4); line-height: var(--lh-h4);   /* 24px, not the 30px h3 — titles wrap */
  margin-bottom: 8px;
}
.article-card__link { color: inherit; text-decoration: none; }
.article-card__link::after { content: ""; position: absolute; inset: 0; }  /* whole card is the hit area */
.article-card__link:focus-visible { outline: 2px solid var(--ui-brand); outline-offset: 2px; }
.article-card__summary { font-size: var(--fs-body-m); color: var(--ui-text-muted); }

/* Subgrid, so date / heading / summary sit on shared rows and the columns line up
   however long the titles run. Scoped to --articles; the .cards on Home, About and
   Research are untouched. */
.cards--articles > .article-card {
  grid-row: span 3;
  grid-template-rows: subgrid;
  /* NOT OPTIONAL. A subgrid item inherits the PARENT's row-gap — .cards sets 24px — which
     would otherwise land INSIDE every card on top of the intended margins (date→heading
     30px instead of 6px). Reset it here; do not compensate by shrinking the margins. */
  row-gap: 0;
}
.cards--articles > .article-card:has(.article-card__image) { grid-row: span 4; }

@media (max-width: 820px) { .cards--articles { grid-template-columns: repeat(2, 1fr); } }

/* ---- News item: the return link ----------------------------------------- */
.news-item__foot { padding-block: 0; }          /* .prose adds block padding; not wanted twice */
.news-item__back {
  display: inline-block; margin-block: var(--space-3) var(--space-6);
  font-size: var(--fs-body-m); color: var(--ui-brand);
}

/* ---- Output lists: publications + events (cd, DESIGN_THREAD #34) ----------
   A reading list, NOT cards. A publication list is scanned rather than browsed;
   twenty bordered cards is noise, and a card already means three things here.
   Hairline dividers, no fill, <ol> with the marker removed.                    */
.output-group + .output-group { margin-top: var(--space-4); }
.output-group__label {
  font-family: var(--font-display); font-size: var(--fs-h4); line-height: var(--lh-h4);
  color: var(--ui-text-muted-strong); margin-bottom: var(--space-2);
}
.output-list { list-style: none; padding: 0; margin: 0; max-width: 68ch; }
.output {
  display: grid; gap: 2px;
  padding-block: var(--space-2);
  border-top: 1px solid var(--ui-border);
}
.output:first-child { border-top: 0; }
.output__type {
  justify-self: start; font-size: var(--fs-caption); letter-spacing: var(--ls-caption);
  text-transform: uppercase; color: var(--ui-text-muted-strong);
}
/* Title is <cite> at BODY size — deliberately not a heading, so twenty publications
   don't become twenty entries in the document outline. */
.output__title { font-size: var(--fs-body-m); line-height: var(--lh-body); }
.output__title cite { font-family: var(--font-display); font-style: normal; }
.output__link { color: var(--ui-text); text-decoration: underline; text-underline-offset: 2px; }
.output__link:hover { color: var(--ui-brand); }
.output__when, .output__meta, .output__note {
  font-size: var(--fs-body-s); color: var(--ui-text-muted-strong);
}
.output__note { color: var(--ui-text-muted); }
.output__pending { font-size: var(--fs-body-s); color: var(--ui-text-muted); }
