:root {
  --navy: #14263b;
  --navy-2: #203a55;
  --blue: #2e617f;
  --red: #d85e47;
  --red-dark: #b74331;
  --paper: #f5f1e7;
  --paper-deep: #eae3d3;
  --white: #fffdf8;
  --ink: #18212a;
  --muted: #63707a;
  --rule: #d5cdbc;
  --positive: #247155;
  --negative: #b44b3a;
  --shadow: 0 16px 40px rgba(20, 38, 59, 0.1);
  --shell: min(1160px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(216, 94, 71, 0.06), transparent 24rem),
    linear-gradient(90deg, rgba(20, 38, 59, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 24px 24px, auto;
  font: 16px/1.58 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
button, input { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 100; left: 16px; top: 12px; padding: 10px 14px;
  background: var(--white); color: var(--navy); transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--navy); color: var(--white); }
.masthead { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand strong { display: block; font: 700 26px/1 Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
.brand small { display: block; margin-top: 6px; color: #bdc9d2; font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase; }
.brand-mark { width: 42px; height: 42px; display: flex; align-items: end; gap: 3px; padding: 7px; border: 1px solid rgba(255,255,255,.22); }
.brand-mark i { width: 6px; background: var(--red); display: block; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 15px; }
.brand-mark i:nth-child(4) { height: 27px; }
.primary-nav { display: flex; gap: 28px; align-items: center; }
.primary-nav a { color: #dce4ea; font-size: 14px; font-weight: 650; text-decoration: none; }
.primary-nav a[aria-current="page"], .primary-nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-button { display: none; color: white; border: 1px solid #6e7e8e; background: transparent; padding: 7px 11px; }
.data-strip { border-top: 1px solid rgba(255,255,255,.12); background: #0f1d2d; color: #b7c2cc; font-size: 12px; letter-spacing: .035em; }
.data-strip-inner { min-height: 35px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.data-strip b { color: #e9eef1; text-transform: uppercase; font-size: 10px; letter-spacing: .13em; margin-right: 8px; }

main { min-height: 66vh; }
.page-loading { padding: 86px 0 120px; }
.loading-line { height: 32px; max-width: 720px; margin: 18px 0; background: linear-gradient(90deg, var(--paper-deep), #fbf9f4, var(--paper-deep)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.loading-line.short { max-width: 430px; height: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.page-hero { padding: 74px 0 52px; border-bottom: 1px solid var(--rule); }
.page-hero.compact { padding-block: 48px 38px; }
.eyebrow { color: var(--red-dark); font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 850px; margin: 12px 0 20px; font-size: clamp(40px, 6vw, 72px); line-height: .99; letter-spacing: -.035em; }
.compact h1 { font-size: clamp(36px, 5vw, 58px); }
.lede { max-width: 750px; margin: 0; color: #43515d; font: 20px/1.55 Georgia, "Times New Roman", serif; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }

.search-panel { position: relative; max-width: 760px; margin-top: 34px; }
.search-panel label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 750; }
.search-box { display: flex; background: var(--white); border: 1px solid #a9a18f; box-shadow: 0 8px 22px rgba(20,38,59,.08); }
.search-box input { width: 100%; border: 0; background: transparent; padding: 16px 18px; color: var(--ink); outline: 0; }
.search-box:focus-within { outline: 3px solid rgba(46,97,127,.25); border-color: var(--blue); }
.search-box button { border: 0; background: var(--red); color: white; padding: 0 24px; font-weight: 750; cursor: pointer; }
.search-box button:hover { background: var(--red-dark); }
.search-results { position: absolute; z-index: 20; width: 100%; top: calc(100% + 5px); background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow); max-height: 340px; overflow: auto; }
.search-results:empty, .search-results[hidden] { display: none; }
.search-result { display: flex; justify-content: space-between; gap: 18px; padding: 12px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #ece6d9; }
.search-result:hover, .search-result:focus { background: #f0ece2; color: var(--navy); }
.search-result small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }

.section { padding: 58px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(27px, 4vw, 39px); line-height: 1.12; }
.section-heading p { max-width: 460px; margin: 0; color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.metric-card { min-height: 154px; padding: 23px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--navy); box-shadow: 0 8px 25px rgba(20,38,59,.055); }
.metric-card.accent { border-top-color: var(--red); }
.metric-label { color: var(--muted); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; }
.metric-value { display: block; margin: 11px 0 7px; color: var(--navy); font: 700 clamp(32px, 5vw, 49px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.metric-note { color: var(--muted); font-size: 13px; }
.change { font-variant-numeric: tabular-nums; font-weight: 750; }
.change.up { color: var(--negative); }
.change.down { color: var(--positive); }
.change.flat { color: var(--muted); }

.context-block { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 42px; align-items: start; }
.context-copy { margin: 0; color: #35434f; font: clamp(19px, 2.2vw, 25px)/1.55 Georgia, "Times New Roman", serif; }
.release-note { padding: 21px; background: var(--navy); color: #e3e8ec; }
.release-note b { display: block; color: white; margin-bottom: 5px; }
.release-note span { color: #bdc9d2; font-size: 13px; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rank-card { padding: 25px; background: var(--white); border: 1px solid var(--rule); }
.rank-card h3 { margin: 0 0 18px; font-size: 22px; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #e9e3d7; }
.rank-list .number { color: #9a8f7d; font: italic 16px Georgia, serif; }
.rank-list a { color: var(--navy); font-weight: 700; text-decoration: none; }
.rank-list strong { font-variant-numeric: tabular-nums; }

.table-wrap { overflow: auto; border: 1px solid var(--rule); background: var(--white); box-shadow: 0 10px 28px rgba(20,38,59,.055); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th { position: sticky; top: 0; z-index: 2; padding: 0; color: #dbe4ea; background: var(--navy); text-align: right; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th.text-column, .data-table td.text-column { text-align: left; }
.data-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid #e7e0d2; white-space: nowrap; }
.data-table tbody tr:hover { background: #f4efe5; }
.data-table tbody tr[hidden] { display: none; }
.data-table a { color: var(--navy); font-weight: 700; text-decoration: none; }
.data-table .rank { color: #8d8372; width: 44px; }
.sort-button { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 11px 14px; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 800; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; cursor: pointer; }
.data-table th:first-child .sort-button, .data-table th.text-column .sort-button { justify-content: flex-start; }
.sort-button:hover, .sort-button:focus-visible { background: var(--navy-2); color: white; outline: 0; }
.sort-button:focus-visible { box-shadow: inset 0 0 0 3px #91bed8; }
.sort-indicator { min-width: 20px; color: #9fc2d7; font-size: 11px; letter-spacing: 0; }
.data-table th[aria-sort="ascending"] .sort-button, .data-table th[aria-sort="descending"] .sort-button { background: #294d69; color: white; }
.data-table th[aria-sort="ascending"] .sort-indicator, .data-table th[aria-sort="descending"] .sort-indicator { color: #ffd2c9; }
.table-filter-row th { top: 42px; z-index: 1; padding: 7px 8px 9px; background: #203a55; }
.column-filter { width: 100%; min-width: 104px; height: 32px; padding: 5px 8px; border: 1px solid #7890a3; border-radius: 2px; color: var(--ink); background: #fff; font-size: 12px; letter-spacing: 0; text-align: inherit; text-transform: none; outline: 0; }
.column-filter:focus { border-color: #fff; box-shadow: 0 0 0 2px #91bed8; }
.data-table th.text-column .column-filter { min-width: 170px; text-align: left; }
.table-toolbar { display: flex; align-items: center; gap: 14px; min-height: 45px; padding: 8px 11px; color: var(--muted); background: #eee8dc; border: 1px solid var(--rule); border-bottom: 0; font-size: 12px; }
.table-count { color: var(--navy); font-weight: 800; }
.table-tip { margin-right: auto; }
.table-reset { padding: 5px 10px; border: 1px solid #9c9381; color: var(--navy); background: var(--white); font-size: 12px; font-weight: 750; cursor: pointer; }
.table-reset:hover, .table-reset:focus-visible { border-color: var(--blue); color: var(--blue); }
.table-toolbar.has-filters { background: #e7eef2; border-color: #b8cad5; }
.metro-directory-shell, .metro-history-shell { width: min(1360px, calc(100vw - 40px)); }
.metro-table-wrap { max-height: 70vh; }
.metro-table td:first-child { min-width: 280px; white-space: normal; line-height: 1.35; }
.table-note { color: var(--muted); font-size: 12px; margin-top: 12px; }

@media (min-width: 860px) {
  .metro-table { table-layout: fixed; font-size: 12.5px; }
  .metro-table th:nth-child(1) { width: 20%; }
  .metro-table th:nth-child(2) { width: 11%; }
  .metro-table th:nth-child(3) { width: 6%; }
  .metro-table th:nth-child(4) { width: 10%; }
  .metro-table th:nth-child(5) { width: 10%; }
  .metro-table th:nth-child(6) { width: 10%; }
  .metro-table th:nth-child(7) { width: 11%; }
  .metro-table th:nth-child(8) { width: 13%; }
  .metro-table th:nth-child(9) { width: 9%; }
  .metro-table .sort-button { min-height: 46px; padding: 8px 7px; gap: 3px; line-height: 1.15; white-space: normal; }
  .metro-table .sort-indicator { min-width: 12px; }
  .metro-table .table-filter-row th { padding: 6px 5px 8px; }
  .metro-table .column-filter,
  .metro-table th.text-column .column-filter { min-width: 0; padding-inline: 6px; }
  .metro-table td { overflow: hidden; padding: 9px 7px; text-overflow: ellipsis; }
  .metro-table td:first-child { min-width: 0; }
  .metro-table td:nth-child(2) { white-space: normal; line-height: 1.25; }
}

.chart-card { padding: 26px 26px 18px; border: 1px solid var(--rule); background: var(--white); box-shadow: var(--shadow); }
.chart-card + .chart-card { margin-top: 22px; }
.chart-header { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 16px; }
.chart-header h3 { margin: 0 0 4px; font-size: 25px; }
.chart-header p { margin: 0; color: var(--muted); font-size: 13px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 14px; color: var(--muted); font-size: 12px; }
.legend-key::before { content: ""; display: inline-block; width: 19px; height: 3px; margin: 0 7px 3px 0; }
.legend-red::before { background: #d85e47; }
.legend-blue::before { background: #2e617f; }
.legend-navy::before { background: #14263b; }
.chart-scroll { overflow-x: auto; }
.chart-stage { position: relative; min-width: 700px; }
.line-chart { display: block; width: 100%; min-width: 0; height: auto; }
.grid-line { stroke: #ded8cc; stroke-width: 1; }
.axis-label { fill: #69737c; font: 11px system-ui, sans-serif; }
.recession { fill: #dedbd3; opacity: .65; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-hover-surface {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}
.chart-crosshair {
  stroke: var(--navy);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: .42;
  pointer-events: none;
}
.chart-hover-dots { pointer-events: none; }
.chart-hover-dot {
  stroke: var(--white);
  stroke-width: 2;
  filter: drop-shadow(0 2px 3px rgba(20, 38, 59, .25));
}
.chart-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  color: #f6f8f9;
  background: rgba(20, 38, 59, .97);
  box-shadow: 0 10px 28px rgba(20, 38, 59, .22);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}
.chart-tooltip strong {
  display: block;
  margin-bottom: 7px;
  color: white;
  font-weight: 800;
}
.chart-tooltip-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 170px;
}
.chart-tooltip-row + .chart-tooltip-row { margin-top: 5px; }
.chart-tooltip-row b {
  color: white;
  font-variant-numeric: tabular-nums;
}
.chart-tooltip-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.swatch-red { background: #d85e47; }
.swatch-blue { background: #2e617f; }
.swatch-navy { background: #14263b; }

.directory-controls { display: flex; gap: 12px; margin-bottom: 20px; }
.filter-input, .select-input { border: 1px solid #a9a18f; background: var(--white); padding: 11px 13px; color: var(--ink); }
.filter-input { min-width: min(420px, 100%); flex: 1; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.directory-link { display: flex; flex-direction: column; min-height: 92px; padding: 17px; background: var(--white); border: 1px solid var(--rule); color: var(--navy); text-decoration: none; }
.directory-link:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,38,59,.07); }
.directory-link strong { line-height: 1.28; }
.directory-link span { margin-top: auto; color: var(--muted); font-size: 12px; }
.empty-state { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); }

.source-list { margin: 0; padding-left: 20px; color: var(--muted); }
.method-note { padding: 22px; background: var(--paper-deep); border-left: 4px solid var(--blue); color: #45515a; }
.method-note h3 { margin: 0 0 7px; font-size: 19px; }
.method-note p { margin: 0; }
.history-details { margin-top: 18px; }
.history-details summary { width: fit-content; margin-bottom: 18px; color: var(--blue); font-weight: 750; cursor: pointer; }

.error-panel { max-width: 760px; margin: 72px auto 120px; padding: 38px; background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--red); box-shadow: var(--shadow); }
.error-panel h1 { font-size: 42px; }
.error-panel code { padding: 2px 5px; background: #eee8dc; }
.button-link { display: inline-block; margin-top: 14px; padding: 11px 16px; background: var(--navy); color: white; text-decoration: none; font-weight: 750; }
.button-link:hover { color: white; background: var(--navy-2); }

.site-footer { padding: 52px 0; background: #0f1d2d; color: #aebac4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr 1fr; gap: 56px; }
.footer-grid h2 { color: white; margin: 0 0 13px; font: 700 12px system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a { display: block; width: fit-content; color: #dce4ea; margin: 7px 0; font-size: 14px; }
.footer-grid p { max-width: 480px; font-size: 13px; }
.footer-brand { color: white !important; font: 700 25px Georgia, serif; text-decoration: none; }
.fine-print { color: #82909c; }
.noscript { padding: 18px; margin: 0; background: #fff0c5; text-align: center; }

@media (max-width: 860px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .context-block, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-button { display: block; }
  .primary-nav { display: none; position: absolute; z-index: 30; left: 0; right: 0; top: 94px; padding: 20px; background: var(--navy); border-top: 1px solid #4b5c6e; flex-direction: column; align-items: start; }
  .primary-nav.open { display: flex; }
  .chart-header { flex-direction: column; }
  .chart-legend { justify-content: start; }
}

@media (max-width: 580px) {
  :root { --shell: min(100% - 26px, 1160px); }
  .masthead { min-height: 80px; }
  .brand small { display: none; }
  .primary-nav { top: 80px; }
  .data-strip-inner { min-height: 42px; align-items: start; justify-content: center; flex-direction: column; gap: 1px; padding-block: 6px; }
  .page-hero { padding-block: 48px 36px; }
  h1 { font-size: 43px; }
  .lede { font-size: 18px; }
  .metric-grid, .split-grid, .directory-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 135px; }
  .section { padding-block: 42px; }
  .section-heading { align-items: start; flex-direction: column; }
  .search-box button { padding-inline: 15px; }
  .directory-controls { flex-direction: column; }
  .filter-input { min-width: 0; width: 100%; }
  .table-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .table-tip { width: 100%; order: 3; }
  .footer-grid { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
