/* Africa Debt Clock: publication typography and a ruled data layout. */
:root {
  --paper: #faf9f6;
  --ink: #222320;
  --muted: #62645e;
  --line: #d5d4cd;
  --accent: #a64228;
  --wash: #eeede7;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:hover,
a:hover {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.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;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 30;
  padding: 12px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-top: 5px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  gap: 28px;
}
.brand {
  text-decoration: none;
  font:
    bold 34px/0.95 Georgia,
    serif;
  letter-spacing: -1.8px;
  flex-shrink: 0;
}
.brand-light {
  display: block;
  font-size: 25px;
  letter-spacing: -1px;
  margin-top: 3px;
}
.topbar nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 28px;
}
.nav-button {
  position: relative;
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted);
}
.nav-button.active {
  color: var(--ink);
}
.nav-button.active:after {
  content: "";
  position: absolute;
  bottom: -21px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.edition {
  font:
    11px/1.6 Consolas,
    monospace;
  color: var(--muted);
  text-align: right;
  max-width: 160px;
}
.status-dot {
  display: none;
}
.app-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  max-width: 1680px;
  margin: auto;
}
.sidebar {
  padding: 30px 22px 20px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.count-badge {
  font:
    11px Consolas,
    monospace;
}
.sidebar h2 {
  font:
    26px Georgia,
    serif;
  letter-spacing: -0.6px;
  margin: 15px 0 22px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
}
.search-box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  flex-shrink: 0;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 13px;
}
.region-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin: 16px 0 25px;
}
.region-chip {
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.region-chip[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
.list-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding: 0 0 10px;
}
.country-list {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #c5c4bb transparent;
  min-height: 120px;
}
.country-option {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  width: 100%;
  gap: 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 4px;
  font-size: 12px;
  min-height: 44px;
}
.country-option:hover {
  background: var(--wash);
}
.country-option.selected {
  background: var(--ink);
  color: var(--paper);
}
.list-code {
  font:
    10px Consolas,
    monospace;
  opacity: 0.7;
}
.list-name {
  line-height: 1.4;
}
.list-ratio {
  font:
    11px Consolas,
    monospace;
}
.empty-list {
  font-size: 12px;
  line-height: 1.7;
  padding: 10px 0;
}
.empty-list button {
  text-decoration: underline;
  padding: 0;
}
.sidebar-note {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  margin-top: 24px;
}
.sidebar-note p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.sidebar-note p span {
  color: var(--muted);
}
main {
  padding: 30px 40px 0;
  min-width: 0;
  container-type: inline-size;
}
.breadcrumb {
  display: flex;
  gap: 9px;
  font:
    10px Consolas,
    monospace;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 24px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 32px;
}
.page-heading > div {
  min-width: 0;
}
.country-title {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: baseline;
  gap: 14px;
}
.country-code {
  font:
    13px Consolas,
    monospace;
  color: var(--accent);
}
h1 {
  font:
    58px/1.06 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -2px;
  margin: 0;
  overflow-wrap: anywhere;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 0;
  line-height: 1.6;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  padding: 11px 14px;
  min-height: 42px;
}
.secondary {
  border: 1px solid var(--line);
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary:hover {
  background: var(--accent);
  color: white;
}
#share-country {
  white-space: nowrap;
}
.clock-card {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 20px 0;
}
.clock-top,
.clock-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.clock-label h2 {
  font-size: 11px;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 700;
}
.currency-switch {
  display: flex;
  border: 1px solid var(--line);
}
.currency-switch button {
  font:
    11px Consolas,
    monospace;
  padding: 8px 12px;
  min-height: 34px;
}
.currency-switch button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}
.clock-amount {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: 28px 0 17px;
  white-space: nowrap;
}
.clock-amount > span:first-child {
  font:
    13px Consolas,
    monospace;
  color: var(--accent);
}
.clock-amount > span:last-child {
  font-size: clamp(26px, 6.9cqw, 92px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
  line-height: 1.1;
}
.clock-amount.compact > span:last-child {
  font-size: clamp(21px, 5.7cqw, 72px);
}
.clock-under {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.pause-button {
  display: flex;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.clock-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.clock-small-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.clock-bottom strong {
  font-size: 24px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.clock-source {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.text-button {
  font-size: 11px;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.estimate-note {
  display: flex;
  gap: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 30px;
  max-width: 760px;
}
.estimate-note > span {
  display: none;
}
.estimate-note p {
  margin: 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.metric-card {
  padding: 20px 18px;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.metric-card:first-child {
  padding-left: 0;
}
.metric-card:last-child {
  border-right: 0;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
}
.metric-value {
  display: block;
  overflow-wrap: anywhere;
  font-size: 30px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  margin: 12px 0 8px;
}
.metric-note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  display: block;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 28px;
}
.panel {
  min-width: 0;
  padding: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel h2 {
  font:
    26px/1.15 Georgia,
    serif;
  margin: 9px 0 0;
  letter-spacing: -0.6px;
}
select {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 9px;
  background: var(--paper);
  max-width: 100%;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 25px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 16px;
  height: 2px;
  background: var(--ink);
}
.chart-legend .dashed {
  height: 0;
  background: none;
  border-bottom: 2px dashed var(--accent);
}
.history-chart {
  margin-top: 13px;
  min-height: 170px;
}
.history-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0;
}
.chart-table {
  font-size: 11px;
  margin: 15px 0;
}
.chart-table summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#history-table {
  overflow-x: auto;
}
.chart-table table {
  font-size: 11px;
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}
.chart-table td,
.chart-table th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.chart-table th:first-child,
.chart-table td:first-child {
  text-align: left;
}
.context-panel {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
}
.context-panel > p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 16px 0;
}
.context-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 0 22px;
}
.context-stat strong {
  font:
    44px Georgia,
    serif;
  letter-spacing: -1.7px;
}
.context-stat span {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.context-panel .button {
  align-self: flex-start;
  margin-top: auto;
}
.context-footnote {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.source-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--ink);
  padding: 22px 0;
  margin-top: 30px;
}
.source-strip h2 {
  font-size: 12px;
  margin: 0 0 8px;
}
.source-strip p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.source-strip .button {
  flex-shrink: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.footer-brand {
  font-weight: 700;
  color: var(--ink);
}
footer button {
  font-size: 10px;
  padding: 0;
}
.compare-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
  border-block: 1px solid var(--ink);
  padding: 18px 0;
}
.compare-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}
.compare-toolbar .button {
  margin-left: auto;
}
.comparison-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0;
}
.table-scroll {
  overflow: auto;
  border-top: 1px solid var(--ink);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.comparison-table th {
  padding: 15px 12px;
  text-align: right;
  white-space: nowrap;
  font-size: 10px;
  background: var(--wash);
}
.comparison-table td {
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.comparison-table th:first-child,
.comparison-table th:nth-child(2),
.comparison-table td:first-child,
.comparison-table td:nth-child(2) {
  text-align: left;
}
.comparison-table td:nth-child(2) {
  font-size: 11px;
  color: var(--muted);
}
.comparison-table button {
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.comparison-table tbody tr:hover {
  background: var(--wash);
}
.method-intro {
  border-block: 1px solid var(--ink);
  padding: 24px 0;
  font:
    25px/1.4 Georgia,
    serif;
  margin: 24px 0;
}
.method-sections article {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.method-sections article > div {
  min-width: 0;
}
.method-number {
  color: var(--accent);
  font:
    14px Consolas,
    monospace;
  padding-top: 6px;
}
.method-sections h2 {
  font:
    26px Georgia,
    serif;
  margin: 0 0 14px;
}
.method-sections p,
dialog p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 12px 0;
  max-width: 760px;
}
.method-sections a,
dialog a {
  font-size: 12px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.formula {
  font:
    12px/1.8 Consolas,
    monospace;
  padding: 16px;
  background: var(--wash);
  overflow-wrap: anywhere;
  margin: 20px 0;
}
.method-source-list {
  display: grid;
  gap: 16px;
  font-size: 12px;
}
.method-source-list a,
.method-source-list small {
  display: block;
}
.method-source-list small {
  color: var(--muted);
  margin-top: 5px;
}
dialog {
  border: 1px solid var(--ink);
  border-top: 4px solid var(--ink);
  padding: 28px;
  width: min(620px, calc(100% - 32px));
  max-height: 85dvh;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #22232070;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-heading button {
  font-size: 28px;
  padding: 0 6px;
}
dialog h2 {
  font:
    32px Georgia,
    serif;
  margin: 15px 0;
}
dialog h3 {
  font-size: 14px;
  margin-top: 26px;
}
dialog ul {
  padding-left: 18px;
}
dialog li {
  margin: 16px 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  z-index: 20;
  font-size: 12px;
  max-width: 90vw;
}
.loading,
.chart-empty {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.chart-empty {
  padding: 40px 0;
}
.noscript,
#load-error {
  padding: 30px;
  background: #f3e2d8;
  color: #6a2e1d;
  text-align: center;
  line-height: 1.8;
}
#load-error button {
  display: block;
  margin: 12px auto;
  padding: 10px 20px;
  border: 1px solid currentColor;
}
.clock-card.is-unavailable .clock-amount > span:last-child {
  font:
    34px Georgia,
    serif;
  white-space: normal;
  letter-spacing: -1px;
}
@media (max-width: 1150px) {
  .topbar {
    padding-inline: 24px;
  }
  .edition {
    display: none;
  }
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 16px;
  }
  main {
    padding-inline: 26px;
  }
  h1 {
    font-size: 48px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-card:nth-child(2) {
    border-right: 0;
  }
  .metric-card:nth-child(3) {
    padding-left: 0;
  }
  .metric-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .context-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
  .context-panel > .eyebrow,
  .context-panel > h2,
  .context-panel > p {
    grid-column: 1;
  }
  .context-stat {
    grid-column: 2;
    grid-row: 1/4;
    justify-content: center;
    padding: 0;
  }
  .context-panel .button {
    grid-column: 1;
    justify-self: start;
  }
  .context-footnote {
    grid-column: 2;
  }
  #share-country {
    font-size: 10px;
    padding: 8px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 20px 18px 0;
    flex-wrap: wrap;
    gap: 20px;
  }
  .brand {
    font-size: 34px;
  }
  .brand-light {
    display: inline;
    margin-left: 6px;
    font-size: 28px;
  }
  .topbar nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .nav-button {
    font-size: 12px;
    min-height: 40px;
    padding-bottom: 15px;
  }
  .nav-button.active:after {
    bottom: -1px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    padding: 20px 18px 14px;
  }
  .sidebar h2,
  .sidebar-note,
  .list-label,
  .count-badge {
    display: none;
  }
  .sidebar-heading {
    margin-bottom: 7px;
  }
  .search-box {
    padding: 12px 0;
  }
  .search-box input {
    font-size: 16px;
  }
  .region-filters {
    gap: 16px;
    margin: 9px 0 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .region-chip {
    white-space: nowrap;
  }
  .country-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    min-height: 0;
    max-height: 76px;
  }
  .country-option {
    width: auto;
    min-width: fit-content;
    display: flex;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-right: 0;
  }
  .country-option:last-child {
    border-right: 1px solid var(--line);
  }
  .list-name {
    white-space: nowrap;
    font-size: 12px;
  }
  .list-ratio {
    display: none;
  }
  .empty-list {
    margin: 0;
  }
  main {
    padding: 24px 18px 0;
  }
  .breadcrumb {
    font-size: 9px;
    margin-bottom: 18px;
  }
  .page-heading {
    margin-bottom: 25px;
    gap: 15px;
    align-items: flex-start;
  }
  h1 {
    font-size: 40px;
    letter-spacing: -1.5px;
  }
  .country-title {
    gap: 10px;
  }
  .country-code {
    font-size: 10px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .clock-card {
    padding: 16px 0;
  }
  .clock-label h2 {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .currency-switch button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .clock-amount {
    gap: 9px;
    margin: 26px 0 16px;
  }
  .clock-amount > span:first-child {
    font-size: 11px;
  }
  .clock-amount > span:last-child {
    font-size: 7.4cqw;
  }
  .clock-amount.compact > span:last-child {
    font-size: 6.1cqw;
  }
  .clock-under {
    font-size: 10px;
    gap: 16px;
  }
  .pause-button {
    font-size: 10px;
  }
  .clock-bottom {
    align-items: flex-start;
  }
  .clock-bottom strong {
    font-size: 21px;
  }
  .clock-source {
    max-width: 48%;
    font-size: 9px;
  }
  .clock-source .text-button {
    font-size: 10px;
    text-align: right;
  }
  .estimate-note {
    font-size: 10px;
    margin-bottom: 24px;
  }
  .metric-card {
    padding: 18px 14px;
  }
  .metric-value {
    font-size: 29px;
  }
  .detail-grid {
    gap: 22px;
  }
  .panel h2 {
    font-size: 25px;
  }
  .context-panel {
    display: flex;
  }
  .context-stat {
    padding: 5px 0 20px;
  }
  .source-strip {
    gap: 12px;
    flex-wrap: wrap;
  }
  .source-strip p {
    font-size: 10px;
  }
  footer {
    flex-wrap: wrap;
    gap: 14px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .compare-toolbar {
    gap: 16px;
  }
  .compare-toolbar label {
    max-width: 100%;
  }
  .compare-toolbar .button {
    margin-left: 0;
  }
  .method-intro {
    font-size: 22px;
  }
  .method-sections article {
    gap: 14px;
  }
  .method-sections h2 {
    font-size: 24px;
  }
}
@media (max-width: 380px) {
  .brand {
    font-size: 29px;
  }
  .brand-light {
    font-size: 24px;
  }
  .nav-button {
    font-size: 10px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .clock-top {
    gap: 10px;
  }
  .clock-label h2 {
    font-size: 8px;
  }
  .clock-small-label {
    font-size: 8px;
  }
  .clock-bottom strong {
    font-size: 18px;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
}
.country-sections {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
}
.country-section-button {
  white-space: nowrap;
  padding: 0 0 13px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.country-section-button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.coverage-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 78ch;
  margin: 0 0 26px;
}
.chamber-record,
.fund-record {
  border-top: 2px solid var(--ink);
  padding: 24px 0 28px;
  margin-bottom: 18px;
}
.record-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.chamber-record h2,
.fund-record h2,
.fund-reading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  margin: 8px 0 16px;
}
.record-status {
  font-size: 14px;
  line-height: 1.5;
  padding: 4px 0;
  max-width: 220px;
  color: var(--muted);
}
.status-caution {
  color: var(--accent);
}
.representation-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  margin: 24px 0;
}
.representation-counts dt,
.fund-facts dt {
  color: var(--muted);
  font-size: 14px;
}
.representation-counts dd {
  margin: 7px 0;
  font-size: 29px;
  font-family: Georgia, serif;
}
.representation-counts span {
  font-size: 14px;
  color: var(--muted);
}
.leader-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.leader-row h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  margin: 8px 0;
}
.leader-term {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.leader-term p {
  margin-bottom: 0;
}
.record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding-top: 16px;
  font-size: 14px;
}
.record-links a {
  overflow-wrap: anywhere;
}
.record-footnote {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 18px;
}
.fund-description {
  max-width: 70ch;
  line-height: 1.7;
  font-size: 16px;
}
.fund-facts {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}
.fund-facts > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.fund-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.budget-observation {
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 22px;
  margin: 28px 0;
  font-size: 14px;
}
.budget-amount {
  font-family: Georgia, serif;
  font-size: clamp(25px, 3.5vw, 40px);
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.fund-reading {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.fund-reading ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-left: 20px;
  margin: 26px 0;
}
.fund-reading li {
  padding-left: 4px;
  font-size: 14px;
}
.fund-reading li span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 10px;
}
.fund-reading > p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 80ch;
}
@media (max-width: 650px) {
  .country-sections {
    gap: 20px;
    margin-bottom: 26px;
  }
  .country-section-button {
    font-size: 14px;
  }
  .record-heading {
    flex-direction: column;
    gap: 2px;
  }
  .leader-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .fund-facts > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .fund-reading ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .fund-reading li span {
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
