/*
 * Public HeartBeat demonstration page.
 *
 * Layers on top of /styles.css and /pages.css and uses the shared public
 * tokens (--nrx-public-*) rather than inventing a second palette — the page
 * has to look like the rest of noazrx.com, not like the operational dashboard.
 *
 * Two constraints drive the layout rules below:
 *   - nothing may cause horizontal page overflow at 360 px. Every wide element
 *     (the chart, the reading table) scrolls INSIDE its own container.
 *   - colour is never the only signal. The freshness badge and the range state
 *     carry text, the excursion and gap bands are hatched as well as tinted,
 *     and the limit lines are dashed differently from the series.
 */

.hbd-page {
  --hbd-live: #34d399;
  --hbd-delayed: #fbbf24;
  --hbd-offline: #f87171;
  --hbd-within: #34d399;
  --hbd-outside: #f87171;
  --hbd-neutral: var(--nrx-public-subtle, #94a3b8);
  --hbd-surface: var(--nrx-public-surface, #060914);
  --hbd-surface-raised: var(--nrx-public-surface-raised, #0b1020);
  --hbd-border: var(--nrx-public-border, rgba(148, 163, 184, 0.16));
  --hbd-text: var(--nrx-public-text, #f8fafc);
  --hbd-muted: var(--nrx-public-muted, #cbd5e1);
  --hbd-accent: var(--nrx-public-accent, #22d3ee);
}

/* Never let a child force the page sideways. */
.hbd-page,
.hbd-page .container {
  max-width: 100%;
  overflow-x: clip;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

/*
 * The live readings and the chart are the reason to visit this page, so the
 * hero is trimmed to the title and the badges and the section that follows
 * loses its top padding. Nothing below is a fixed pixel height, so the saved
 * space scales with the viewport instead of only helping on one screen.
 */
.hbd-hero--compact {
  padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

/* `.page-breadcrumbs` and `.page-hero__eyebrow` are both inline-flex, so
   without this the eyebrow trails the breadcrumb on one line. Scoped to this
   hero rather than changed globally. */
.hbd-hero--compact .page-breadcrumbs {
  display: flex;
  margin-bottom: 0.9rem;
}

.hbd-hero--compact .page-hero__eyebrow {
  display: flex;
  margin-bottom: 0.35rem;
}

.hbd-hero--compact .page-hero__title {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.hbd-page .page-section--lead {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
}

.hbd-page .page-section--lead .hbd-live {
  margin-top: 0;
}

/* The full explanation of the page, moved out of the hero to below the data. */
.hbd-lede {
  margin: 2rem 0 0;
  max-width: 68ch;
  color: var(--hbd-muted);
  font-size: 1.02rem;
}

.hbd-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hbd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--hbd-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hbd-muted);
  background: rgba(15, 23, 42, 0.55);
}

.hbd-badge--live {
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--hbd-live);
}

.hbd-badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

/* ── Live card ────────────────────────────────────────────────────────── */

.hbd-live {
  margin-top: 2rem;
  padding: clamp(1.1rem, 3vw, 1.9rem);
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-md, 20px);
  background: var(--hbd-surface);
  box-shadow: var(--shadow, 0 20px 40px rgba(0, 0, 0, 0.45));
}

.hbd-live__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.hbd-live__name {
  margin: 0;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--hbd-text);
}

.hbd-freshness {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--hbd-border);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hbd-neutral);
}

.hbd-freshness[data-freshness='live'] {
  color: var(--hbd-live);
  border-color: rgba(52, 211, 153, 0.5);
}

.hbd-freshness[data-freshness='delayed'] {
  color: var(--hbd-delayed);
  border-color: rgba(251, 191, 36, 0.5);
}

.hbd-freshness[data-freshness='offline'],
.hbd-freshness[data-freshness='unavailable'] {
  color: var(--hbd-offline);
  border-color: rgba(248, 113, 113, 0.5);
}

.hbd-reading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem 1.4rem;
  margin: 1.2rem 0 0;
}

.hbd-reading__value {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--hbd-text);
  font-variant-numeric: tabular-nums;
}

.hbd-reading__state {
  display: inline-block;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--hbd-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hbd-muted);
}

.hbd-reading__state[data-range-state='within_configured_range'] {
  color: var(--hbd-within);
  border-color: rgba(52, 211, 153, 0.5);
}

.hbd-reading__state[data-range-state='outside_configured_range'] {
  color: var(--hbd-outside);
  border-color: rgba(248, 113, 113, 0.5);
}

.hbd-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0 0;
  padding: 0;
}

.hbd-facts > div {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-sm, 12px);
  background: var(--hbd-surface-raised);
}

.hbd-facts dt {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hbd-neutral);
}

.hbd-facts dd {
  margin: 0;
  font-size: 1rem;
  color: var(--hbd-text);
  overflow-wrap: anywhere;
}

.hbd-live__meta {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--hbd-neutral);
}

.hbd-disclosure {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--hbd-accent);
  border-radius: 0 var(--radius-sm, 12px) var(--radius-sm, 12px) 0;
  background: rgba(34, 211, 238, 0.06);
  font-size: 0.88rem;
  color: var(--hbd-muted);
}

/* ── Failure state ────────────────────────────────────────────────────── */

.hbd-error {
  margin: 1.1rem 0 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: var(--radius-sm, 12px);
  background: rgba(248, 113, 113, 0.08);
  color: var(--hbd-text);
}

.hbd-error__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.hbd-error__detail {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--hbd-muted);
}

.hbd-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--hbd-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--hbd-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hbd-retry:hover,
.hbd-retry:focus-visible {
  background: rgba(34, 211, 238, 0.12);
}

/* ── Chart ────────────────────────────────────────────────────────────── */

.hbd-chart-card {
  margin-top: 2rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-md, 20px);
  background: var(--hbd-surface);
}

.hbd-chart {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  /* The SVG scales to the container; it never widens the page. */
  overflow: hidden;
}

.hbd-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hbd-chart__range-band {
  fill: rgba(52, 211, 153, 0.09);
}

.hbd-chart__limit {
  stroke: rgba(52, 211, 153, 0.75);
  stroke-width: 1.5;
  stroke-dasharray: 7 5;
}

.hbd-chart__limit--max {
  stroke-dasharray: 7 5;
}

.hbd-chart__limit--min {
  stroke-dasharray: 3 4;
}

/* Excursions and gaps are tinted AND patterned, so the distinction survives
   greyscale printing and colour-vision differences. */
.hbd-chart__excursion {
  fill: rgba(248, 113, 113, 0.16);
  stroke: rgba(248, 113, 113, 0.45);
  stroke-width: 1;
}

.hbd-chart__gap {
  fill: url(#hbd-gap-hatch);
  fill-opacity: 1;
  stroke: rgba(148, 163, 184, 0.35);
  stroke-dasharray: 2 3;
  stroke-width: 1;
}

.hbd-chart__grid {
  stroke: rgba(148, 163, 184, 0.14);
  stroke-width: 1;
}

.hbd-chart__axis-label {
  fill: var(--hbd-neutral);
  font-size: 11px;
}

.hbd-chart__line {
  stroke: var(--hbd-accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hbd-chart__point {
  fill: var(--hbd-accent);
}

.hbd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--hbd-muted);
}

.hbd-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hbd-legend__swatch {
  width: 1.4rem;
  height: 0.55rem;
  border-radius: 3px;
  border: 1px solid var(--hbd-border);
}

.hbd-legend__swatch--series {
  background: var(--hbd-accent);
}

.hbd-legend__swatch--range {
  background: rgba(52, 211, 153, 0.28);
  border-color: rgba(52, 211, 153, 0.6);
}

.hbd-legend__swatch--excursion {
  background: rgba(248, 113, 113, 0.3);
  border-color: rgba(248, 113, 113, 0.6);
}

.hbd-legend__swatch--gap {
  background: repeating-linear-gradient(
    45deg,
    rgba(148, 163, 184, 0.35),
    rgba(148, 163, 184, 0.35) 3px,
    transparent 3px,
    transparent 6px
  );
}

/* ── Lists and tables ─────────────────────────────────────────────────── */

.hbd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.hbd-panel {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-sm, 12px);
  background: var(--hbd-surface-raised);
}

.hbd-panel h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: var(--hbd-text);
}

.hbd-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.hbd-summary dt {
  color: var(--hbd-neutral);
  min-width: 0;
  overflow-wrap: anywhere;
}

.hbd-summary dd {
  margin: 0;
  color: var(--hbd-text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hbd-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.hbd-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hbd-border);
}

.hbd-list li:last-child {
  border-bottom: 0;
}

.hbd-list__when {
  display: block;
  color: var(--hbd-text);
  overflow-wrap: anywhere;
}

.hbd-list__detail {
  display: block;
  color: var(--hbd-neutral);
  font-size: 0.82rem;
}

.hbd-list__empty {
  color: var(--hbd-neutral);
}

.hbd-details {
  margin-top: 1.4rem;
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-sm, 12px);
  background: var(--hbd-surface-raised);
}

.hbd-details > summary {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--hbd-text);
}

.hbd-details__body {
  padding: 0 1rem 1rem;
}

/* Wide content scrolls inside its own box, never the page. */
.hbd-table-scroll {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-sm, 12px);
}

.hbd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.hbd-table caption {
  padding: 0.6rem 0.8rem;
  text-align: left;
  color: var(--hbd-neutral);
  font-size: 0.82rem;
}

.hbd-table th,
.hbd-table td {
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid var(--hbd-border);
  text-align: left;
  white-space: nowrap;
}

.hbd-table thead th {
  position: sticky;
  top: 0;
  background: var(--hbd-surface);
  color: var(--hbd-neutral);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hbd-table tbody th {
  font-weight: 400;
  color: var(--hbd-muted);
}

/* ── Audit-ready export ───────────────────────────────────────────────── */

.hbd-export {
  margin-top: 1.6rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-sm, 12px);
  background: var(--hbd-surface-raised);
}

.hbd-export h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.hbd-export > p {
  margin: 0;
  color: var(--hbd-muted);
  font-size: 0.94rem;
}

.hbd-export__button {
  margin-top: 0.9rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--hbd-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hbd-export__button:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.26);
}

.hbd-export__button:focus-visible {
  outline: 3px solid var(--hbd-accent);
  outline-offset: 3px;
}

.hbd-export__button:disabled {
  border-color: var(--hbd-border);
  background: transparent;
  color: var(--hbd-neutral);
  cursor: not-allowed;
}

.hbd-export__note {
  margin: 0.6rem 0 0;
  color: var(--hbd-neutral);
  font-size: 0.84rem;
}

/* ── Explore HeartBeat ────────────────────────────────────────────────── */

.hbd-explore {
  margin-top: 2.4rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-md, 20px);
  background: var(--hbd-surface);
}

.hbd-explore__title {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}

.hbd-explore__list {
  display: grid;
  /* Collapses to one column rather than forcing a minimum track width. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hbd-explore__item {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-sm, 12px);
  background: var(--hbd-surface-raised);
}

.hbd-explore__item--current {
  border-color: rgba(52, 211, 153, 0.4);
}

.hbd-explore__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.hbd-explore__tag {
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 999px;
  color: var(--hbd-live);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hbd-explore__body {
  margin: 0;
  color: var(--hbd-muted);
  font-size: 0.94rem;
}

.hbd-explore__link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--hbd-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hbd-explore__link:hover,
.hbd-explore__link:focus-visible {
  color: var(--hbd-text);
}

.hbd-explore__link:focus-visible {
  outline: 2px solid var(--hbd-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.hbd-explore__note {
  margin: 0.5rem 0 0;
  color: var(--hbd-neutral);
  font-size: 0.84rem;
}

/* ── Explanatory sections ─────────────────────────────────────────────── */

.hbd-explain {
  margin-top: 2.4rem;
}

.hbd-explain h2 {
  margin-bottom: 0.6rem;
}

.hbd-workflow {
  counter-reset: hbd-step;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.hbd-workflow li {
  position: relative;
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-sm, 12px);
  background: var(--hbd-surface-raised);
}

.hbd-workflow li::before {
  counter-increment: hbd-step;
  content: counter(hbd-step);
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  color: var(--hbd-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.hbd-recorded-note {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px dashed rgba(251, 191, 36, 0.5);
  border-radius: var(--radius-sm, 12px);
  color: var(--hbd-muted);
  font-size: 0.9rem;
}

.hbd-cta {
  margin-top: 2.4rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--hbd-border);
  border-radius: var(--radius-md, 20px);
  background: var(--hbd-surface);
  text-align: center;
}

.hbd-cta__link {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--hbd-accent);
  color: #041016;
  font-weight: 700;
  text-decoration: none;
}

.hbd-cta__link:hover,
.hbd-cta__link:focus-visible {
  filter: brightness(1.08);
}

.hbd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Case-study live preview card (loaded on the blog article) ─────────── */

.hbd-preview {
  margin: 2rem 0;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--nrx-public-border, rgba(148, 163, 184, 0.16));
  border-radius: var(--radius-md, 20px);
  background: var(--nrx-public-surface, #060914);
}

.hbd-preview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.hbd-preview__title {
  margin: 0;
  font-size: 1rem;
}

.hbd-preview__reading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.1rem;
  margin: 0.9rem 0 0;
}

.hbd-preview__value {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hbd-preview__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 0.6rem;
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
}

.hbd-preview__facts div {
  min-width: 0;
}

.hbd-preview__facts dt {
  margin: 0;
  color: var(--nrx-public-subtle, #94a3b8);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hbd-preview__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.hbd-preview__link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
}

.hbd-preview__disclosure {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--nrx-public-subtle, #94a3b8);
}

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

@media (prefers-reduced-motion: reduce) {
  .hbd-page *,
  .hbd-preview * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.hbd-page[data-reduced-motion='true'] *,
.hbd-preview[data-reduced-motion='true'] * {
  animation: none !important;
  transition: none !important;
}

/* ── Static topic copy, hero tagline, questions and related pages ────── */

/*
 * These blocks carry the page's crawlable, scripting-independent explanation.
 * They sit outside [data-heartbeat-demo] on purpose: a failed fetch blanks the
 * readings, and it must never be able to blank the words that say what the
 * readings are.
 */

.hbd-hero__tagline {
  margin: 0.6rem 0 0;
  max-width: 60ch;
  color: var(--hbd-muted);
  font-size: 1.05rem;
}

.hbd-intro {
  margin: 0 0 1.6rem;
  max-width: 72ch;
}

.hbd-intro__lead {
  margin: 0;
  color: var(--hbd-text);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hbd-intro__body {
  margin: 0.7rem 0 0;
  color: var(--hbd-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.hbd-faq {
  margin-top: 2.4rem;
}

.hbd-faq > h2 {
  margin-bottom: 0.6rem;
}

.hbd-faq__item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--hbd-border);
  max-width: 78ch;
}

.hbd-faq__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.hbd-faq__item p {
  margin: 0;
  color: var(--hbd-muted);
  line-height: 1.6;
}

.hbd-related {
  margin-top: 2.4rem;
}

.hbd-related h2 {
  margin-bottom: 0.6rem;
}

.hbd-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  max-width: 78ch;
}

.hbd-related__list li {
  color: var(--hbd-muted);
  line-height: 1.55;
}

/* ── Narrow viewports ─────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .hbd-live__head,
  .hbd-preview__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hbd-summary {
    grid-template-columns: 1fr;
  }

  .hbd-summary dd {
    text-align: left;
    margin-bottom: 0.35rem;
  }

  .hbd-table th,
  .hbd-table td {
    padding: 0.35rem 0.5rem;
  }
}
