/* Last edited: 2026-11-21 11:23 UTC (Claude, economics chat) */
/* =========================================================
   Economics dashboards: /economics/business-cycles.html,
   /economics/main-indicators.html and later dashboards.
   Shared components (back link, ribbons, callouts, notes,
   loading and error states) come from site.css.
   ========================================================= */

.dashboard-body {
  /* Chart palette: distinct in hue and lightness; lines also differ in dash. */
  --chart-1: #3b5a75;            /* site accent */
  --chart-2: #b0602a;
  --chart-3: #3d7a57;
  --chart-4: #7a4f8c;
  /* Several series of equal importance on one chart: none uses the site
     accent, which is kept for single-series charts (Okabe-Ito palette,
     distinguishable with common colour-vision deficiencies). */
  --series-1: #d55e00;
  --series-2: #009e73;
  --series-3: #cc79a7;
  --series-4: #0072b2;
  /* Benchmark series on charts with several series (red, dashed), and its
     muted version when it is only context (light grey). */
  --chart-benchmark: #e07000;
  --chart-benchmark-muted: #b9bec4;
  --chart-ink: var(--ink-soft);
  --chart-grid: rgba(28, 28, 30, 0.08);
  --chart-zero: rgba(28, 28, 30, 0.42);
  --chart-recession: rgba(59, 90, 117, 0.13);
}

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Controls ------------------------------------------------ */

.dashboard-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.segmented-field,
.dashboard-downloads {
  min-width: 0;
}

.dashboard-downloads {
  margin-left: auto;
}

.segmented-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  background: var(--line-strong);   /* shows through the 1px gaps as dividers */
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
}

.segmented button {
  padding: 0.5rem 0.8rem;
  color: var(--ink-soft);
  background: var(--sheet);
  border: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}

.segmented button:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.segmented button[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
}

.segmented button[aria-disabled="true"] {
  color: var(--muted);
  background: var(--paper-soft);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
  cursor: not-allowed;
  opacity: 0.6;
}

.segmented button:focus-visible,
.chart-frame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

.segmented-hint {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Chart card ---------------------------------------------- */

.chart-card {
  padding: 1.25rem 1.25rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

/* The chart's switches sit flush right on the title line (flush right
   below the title when it is too long); the subtitle always comes after,
   on its own line. .chart-heading is a wrapper only: its title and
   subtitle are laid out as items of the header. */
.chart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.chart-heading {
  display: contents;
}

.chart-header .chart-title {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.chart-header .chart-controls {
  order: 2;
}

.chart-header .chart-subtitle {
  order: 3;
  flex: 1 0 100%;
  margin-top: -0.25rem;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.chart-controls .chart-control {
  margin-bottom: 0;
}

.chart-title {
  color: var(--accent-strong);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
}

.chart-subtitle {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
}

.chart-frame {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-small);
  touch-action: pan-y;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--mono);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.25rem;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  list-style: none;
}

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

.legend-swatch {
  width: 28px;
  height: 10px;
}

.legend-band {
  display: inline-block;
  width: 16px;
  height: 12px;
  background: var(--chart-recession);
  border: 1px solid rgba(59, 90, 117, 0.25);
}

.chart-readout {
  min-height: 1.5em;
  margin-top: 0.72rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.chart-source {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.55;
}


/* Stack of chart cards inside a section. */
.chart-stack {
  display: grid;
  gap: 1.75rem;
}

.chart-control {
  margin-bottom: 0.9rem;
}

/* A control card placed between a section introduction and its charts. */
.dashboard-controls.simulation-controls {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

.chart-hint {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
}

.legend-estimate {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--sheet);
  border: 2px solid var(--chart-1);
  border-radius: 50%;
}

/* Bulleted callout (the note under the page controls). */
.callout-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1.15rem;
}

.callout-list li::marker {
  color: var(--accent);
}

/* Previous/next link to a dashboard that is not yet published. */
.toolbar-next-link.is-inactive,
.page-nav-link.is-inactive {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.page-nav-link.is-inactive:hover {
  color: var(--muted);
  background: var(--paper-soft);
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

.page-nav-link.is-inactive i {
  color: var(--muted);
}

/* Table title (or introduction) with its measure switch flush right. */
.table-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
}

.table-heading > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

/* The dashed rule of the subsection title spans the whole row. */
.table-heading:has(> .subsection-title) {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line-strong);
}

.table-heading > .subsection-title {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.table-heading .table-control {
  margin-left: auto;
  margin-bottom: 0.75rem;
}

.table-switches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.table-switches .table-control {
  margin-left: 0;
}

@media (max-width: 680px) {
  .table-heading .table-control {
    margin-left: 0;
  }
}

/* Business-cycle tables (Real Business Cycles page). */
.bc-table thead th {
  vertical-align: bottom;
}

.cross-table td.is-peak {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 700;
}

.cross-table td.peak-lag {
  white-space: nowrap;
  color: var(--ink-soft);
}

.unit-mark {
  color: var(--muted);
  font-weight: 400;
  cursor: help;
}

/* Variable picker above the correlation matrix. */
.matrix-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.picker-chip,
.kr-toggle,
.picker-action {
  padding: 0.3rem 0.6rem;
  color: var(--ink-soft);
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  font-family: var(--mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}

.picker-chip:hover,
.kr-toggle:hover,
.picker-action:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.picker-chip[aria-pressed="true"],
.kr-toggle[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.picker-actions {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.picker-action {
  font-family: var(--sans);
  font-weight: 600;
}

.matrix-table {
  border-collapse: collapse;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.matrix-table th,
.matrix-table td {
  padding: 0.3rem 0.35rem;
  border: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.matrix-table thead th,
.matrix-table tbody th {
  color: var(--accent-strong);
  background: var(--paper-soft);
  font-family: var(--mono);
  font-weight: 600;
}

/* Centre every cell, headers included (overrides the data-table alignment). */
.data-table.matrix-table th,
.data-table.matrix-table td {
  text-align: center;
  vertical-align: middle;
}
/* Symbols keep their case (h, w, π, û*): no capitals in the matrix header. */
.data-table.matrix-table thead th {
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
}

.matrix-table abbr {
  text-decoration: none;
  cursor: help;
}

.estimates-list {
  margin-top: 1.25rem;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.estimates-table td:nth-child(-n + 2) {
  white-space: nowrap;
}

.data-table thead th {
  color: var(--accent-strong);
  background: var(--paper-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-note {
  margin-top: 1.25rem;
}

.chart-missing {
  font-style: italic;
}

.shares-table td {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.shares-table thead th {
  text-align: center;
}

.shares-table thead .component-head {
  text-align: center;
  vertical-align: bottom;
}

.unit-label {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.shares-table abbr {
  text-decoration: none;
  cursor: help;
}

.chart-note {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.shares-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-soft);
}

.shares-table tbody tr.is-sum th,
.shares-table tbody tr.is-sum td {
  border-top: 2px solid var(--line-strong);
  color: var(--muted);
  font-style: italic;
}

.reference-list li {
  margin-bottom: 0.45rem;
}

.table-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.ribbon-meta {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

/* Responsive and reduced motion --------------------------- */

/* Information band under the page controls: icon larger and centred. */
.callout.dashboard-note {
  align-items: center;
  gap: 0.9rem;
}

.callout.dashboard-note > i {
  color: var(--accent);
  font-size: 1.35rem;
}

@media (max-width: 680px) {
  .chart-header {
    flex-direction: column;
  }

  .chart-header .chart-subtitle {
    order: 2;
    flex: none;
    margin-top: 0;
  }

  .chart-header .chart-title {
    flex: none;
  }

  .chart-header .chart-controls {
    order: 3;
    justify-content: flex-start;
    margin-left: 0;
  }

  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-downloads {
    margin-left: 0;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-card {
    padding: 1rem 0.75rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .segmented button {
    transition: none;
  }
}

/* Running text on dashboard pages is justified, like the site's prose.
   The update line is centred; the copyright note is styled below. */
.ribbon-content p,
.ribbon-content li,
.chart-note,
.table-note,
.dashboard-note li {
  text-align: justify;
  hyphens: auto;
}

/* Data-update line: centred. Copyright note: full width, left-aligned,
   justified; the copyright line, then a bullet each for errors and reuse. */
.update-note { text-align: center; }
.dashboard-body .page-note {
  text-align: justify;
  hyphens: auto;
}
.dashboard-body .page-note p {
  margin: 0 0 0.35rem;
}
.dashboard-body .page-note ul {
  margin: 0;
  padding-left: 1.1rem;
}
.dashboard-body .page-note li {
  margin-bottom: 0.3rem;
}
/* Keep short links ("let me know") on one line. */
.dashboard-body .page-note a {
  white-space: nowrap;
}

/* Real Business Cycles introduction: volatility and co-movement glyphs.
   Output is the red dashed benchmark, the variable the site blue, as in
   the charts. */
.cycle-concepts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
}
.concept-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}
.concept-text {
  margin: 0.15rem 0 0.6rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.concept-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.75rem;
}
.concept-item {
  margin: 0;
}
.concept-glyph {
  display: block;
  width: 100%;
  height: auto;
  max-height: 6rem;
  overflow: visible;
}
.concept-glyph path,
.concept-glyph line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.glyph-axis { stroke: var(--line-strong); stroke-width: 1 !important; }
.glyph-output { stroke: var(--chart-benchmark); stroke-dasharray: 7 4 0.1 4; }
.glyph-variable { stroke: var(--chart-1); }
.concept-item figcaption {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}
.concept-item figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 0.85rem;
}
.concept-key {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.key-output,
.key-variable {
  display: inline-block;
  width: 1.5rem;
  border-top: 2px solid var(--chart-1);
}
.key-output { border-top: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--chart-benchmark) 0 7px, transparent 7px 10px, var(--chart-benchmark) 10px 12px, transparent 12px 15px); }
.key-variable { margin-left: 0.9rem; }
.concept-item { min-width: 0; }
.cycle-concepts[aria-label="Volatility"] .concept-row { width: 100%; max-width: 46rem; margin: 0 auto; }
.concept-item figcaption { text-align: center; }
.lead { hyphens: auto; }
@media (max-width: 720px) {
  .cycle-concepts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  /* Phones: one glyph per row, caption beside it. */
  .concept-row { grid-auto-flow: row; gap: 0.6rem; }
  .concept-item {
    display: grid;
    grid-template-columns: 8rem 1fr;
    align-items: center;
    gap: 0.75rem;
  }
  .concept-item figcaption { margin-top: 0; text-align: left; }
}

/* King and Rebelo (1999) comparison rows in the summary table. */
.table-toggle-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}
.bc-table tr.kr-row th,
.bc-table tr.kr-row td {
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85em;
  padding-top: 0.15rem;
}
.bc-table tr.kr-row th { padding-left: 1.25rem; }

/* RBC model: current selection in the table of technology processes. */
.shock-table tr.is-current th,
.shock-table tr.is-current td { background: var(--chart-recession, rgba(59, 90, 117, 0.08)); }
.chart-card .dashboard-downloads { margin-top: 1rem; }
.kr-toggle[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.kr-hint {
  order: -1;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* Extracting Technology Shocks: step labels and scatter axis text. */
.step-number {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--chart-benchmark);
}
.chart-axis-text {
  font-size: 11px;
  fill: var(--chart-ink, #3a3a3c);
}

/* Displayed equations (MathJax, pages with math: true). */
.math-display {
  margin: 0.2rem 0 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
}

/* Leads-and-lags matrix: peak correlation, with its k below. */
.leadlag-table td {
  line-height: 1.15;
}
.ll-value {
  display: block;
}
.ll-lag {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.86em;
  font-family: "Times New Roman", Times, serif;
}

/* Numbered steps inside ribbons. */
.method-steps {
  margin: 0.5rem 0 1rem;
  padding-left: 1.6rem;
}
.method-steps li {
  margin-bottom: 0.55rem;
  text-align: justify;
  hyphens: auto;
}

/* RBC model page: page-level settings note, model rows in the statistics
   table, groups and symbols in the calibration table. */
.dashboard-controls .controls-hint {
  flex-basis: 100%;
  margin-top: -0.4rem;
  text-align: justify;
}
.bc-table tr.model-row th,
.bc-table tr.model-row td {
  color: var(--ink);
  font-style: normal;
  font-size: 0.92em;
}
.bc-table tr.model-row + tr:not(.kr-row) th,
.bc-table tr.model-row + tr:not(.kr-row) td,
.bc-table tr.kr-row + tr:not(.kr-row) th,
.bc-table tr.kr-row + tr:not(.kr-row) td {
  border-top: 1px solid var(--line-strong);
}
.calibration-table tr.table-group th {
  padding-top: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}
.calibration-table td.symbol-cell { white-space: nowrap; }
.chart-card [data-control="variable"] { margin-bottom: 0.9rem; }
[data-role="sim-downloads"] { margin-top: 1rem; }

/* RBC model page: model cards (as on the EC9D5 teaching pages), impulse
   response grid, tables laid out as in the lecture slides, copyright on
   charts. */
.dashboard-body .model-stack {
  display: grid;
  gap: 1rem;
}
.dashboard-body .model-card {
  min-width: 0;
  padding: 1.35rem;
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
/* Card titles as the page's subsection titles, with a smaller subtitle. */
.dashboard-body .model-card .model-card-title {
  margin-bottom: 0.3rem;
  color: var(--accent-strong);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}
.dashboard-body .model-card .model-card-subtitle {
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}
.dashboard-body .model-card p,
.dashboard-body .model-card li {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
  text-align: justify;
}
.dashboard-body .model-card p + p { margin-top: 0.6rem; }
.dashboard-body .model-card-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.dashboard-body .equation-block {
  min-width: 0;
  margin: 0.6rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--ink);
}
.dashboard-body .equilibrium-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.6rem 0 0.6rem 1.25rem;
  list-style: decimal;
}
.dashboard-body .model-card .button-link { margin-top: 0.4rem; }
.irf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.irf-grid .chart-card { min-width: 0; }
.irf-grid .chart-readout { min-height: 1.4em; font-size: 0.72rem; }
@media (max-width: 1000px) {
  .irf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .irf-grid { grid-template-columns: 1fr; }
}
.slide-table th.symbol-cell {
  font-style: italic;
  text-align: center;
}
.slide-table tr.table-group th {
  padding-top: 0.8rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid var(--line-strong);
}
/* Rows about 15% thinner than the other tables. */
.slide-table tbody th,
.slide-table tbody td {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.corr-table thead .unit-label {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}
.corr-table thead th[scope="colgroup"] {
  border-bottom: 1px solid var(--line-strong);
}
.chart-copyright { font-family: var(--sans, inherit); letter-spacing: 0.01em; }
.dashboard-body .dashboard-controls ~ .subsection-title.is-first { margin-top: 1.75rem; }
.irf-grid + .irf-note { margin-top: 1.5rem; }
.dashboard-body .table-title {
  margin: 1.5rem 0 0.6rem;
  color: var(--accent-strong);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}
.dashboard-body .shares > .table-title:first-child { margin-top: 0.25rem; }

/* Financial and Credit Indicators subpages: the filter switch above the
   cycle charts, and the sample column of the statistics table. */
.dashboard-controls.cycle-controls {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.dashboard-controls.downloads-only .dashboard-downloads {
  margin-left: 0;
}
.bc-table td.sample-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* New Keynesian model page: the adjustable calibration (groups of number
   fields), the reset button and the determinacy note. */
.dashboard-controls .param-grid {
  display: grid;
  flex-basis: 100%;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem 1.5rem;
}
.param-group {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.param-group legend {
  margin-bottom: 0.45rem;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.param-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.3;
}
.param-field .param-symbol { display: inline-block; min-width: 1.6rem; color: var(--ink); }
.param-field input {
  width: 100%;
  padding: 0.35rem 0.45rem;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.param-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.param-field.is-inactive { opacity: 0.45; }
.dashboard-controls .param-actions {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.dashboard-controls .param-actions .controls-hint {
  flex: 1 1 18rem;
  margin: 0;
}
button.button-link { cursor: pointer; font-family: inherit; }
.callout.determinacy-note { margin-top: 1.25rem; }
.callout.determinacy-note p { margin: 0; }
.calibration-table td.symbol-cell { text-align: center; white-space: nowrap; }

/* Extracting Shocks for the New Keynesian Model: correlations that differ
   from zero, the baseline row of the robustness table, a narrow table. */
.bc-table td.is-significant { color: var(--ink); font-weight: 700; }
.bc-table tr.baseline-row th,
.bc-table tr.baseline-row td { background: var(--accent-soft); }
.robustness-table tbody th { min-width: 14rem; font-size: 0.9em; }
.compact-table { max-width: 32rem; }
.bc-table td.table-footnote { color: var(--muted); font-size: 0.85em; font-style: italic; text-align: left; }

/* Key terms: short definitions of unusual measures under a section's
   introduction (Financial and Credit Indicators), and the link to the
   ribbon with the longer explanation. */
.key-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 0.9rem 1.75rem;
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.key-term { margin: 0; }
.key-terms dt {
  margin-bottom: 0.2rem;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 600;
}
.key-terms dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
}
.more-link { margin: 0 0 1.75rem; font-size: 0.88rem; }
.more-link .fa-arrow-down { margin-left: 0.25rem; font-size: 0.75em; }

/* Spacing (economics pages): more air between charts, and between a
   group of charts and the note or table that follows it (the gap between
   charts is set in .chart-stack). */
.chart-stack + .chart-note,
.chart-stack + .shares,
.chart-stack + .table-note,
.chart-stack + p,
.shares + .chart-note,
.shares + .section-introduction { margin-top: 1.5rem; }
.chart-card .chart-note { margin-top: 0.75rem; }

/* Calibration page (dsge/calibration.html): model switch that wraps, model
   tags, and a wide source column in left-aligned, justified text. */
.segmented.segmented-wrap { flex-wrap: wrap; }
.calibration-page-table td.source-cell {
  min-width: 15rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
  white-space: normal;
}
.calibration-page-table td.source-cell .source-note { color: var(--muted); }
.calibration-page-table th.source-col { text-align: left; }
.calibration-page-table tbody th { min-width: 12rem; }
.model-tags { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; justify-content: center; }
.model-tag {
  padding: 0.1rem 0.45rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Calibration page: the table of data targets fits the page width
   (Arthur, 21 Nov 2026): narrower label and model columns, model tags
   stacked, the model value above its model; phones still scroll sideways. */
.targets-table { width: 100%; }
.targets-table tbody th { min-width: 9rem; }
.targets-table td.symbol-cell { white-space: normal; }
.targets-table td:nth-child(4) { white-space: normal; }
.targets-table .model-tags { flex-direction: column; align-items: center; }
.targets-table td.source-cell { min-width: 14rem; }
.model-value-gap { display: block; height: 0.35rem; }

/* Calibration page: switch above the table of implied parameters. */
.implied-controls {
  margin-bottom: 1.5rem;
}
