:root {
  color-scheme: dark;
  --bg: #090a0d;
  --panel: #11151a;
  --panel-2: #171d24;
  --ink: #f4efe2;
  --muted: rgba(244, 239, 226, 0.62);
  --dim: rgba(244, 239, 226, 0.38);
  --line: rgba(244, 239, 226, 0.12);
  --gold: #d8b35a;
  --blue: #4f9ed8;
  --green: #41b06e;
  --red: #df6657;
  --violet: #a879ca;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    var(--bg);
  background-size: 58px 58px;
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid transparent;
  background: rgba(9, 10, 13, 0.76);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
  background: rgba(9, 10, 13, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 179, 90, 0.46);
  border-radius: 4px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-name span {
  color: rgba(216, 179, 90, 0.78);
  font-size: 0.82em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 2rem;
  min-width: 0;
  margin-left: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a,
.era-tab,
.filter,
.button,
.details-toggle {
  min-height: 38px;
  border-radius: 6px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.era-tabs-nav,
.section-links-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.section-links-nav {
  margin-left: auto;
}

.site-nav .era-tab {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--dim);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 160ms, border-color 160ms, background 160ms;
}

.site-nav .era-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav .era-tab.active {
  border-color: var(--color);
  color: var(--color);
  background: color-mix(in srgb, var(--color), transparent 88%);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  column-gap: clamp(32px, 7vw, 120px);
  align-content: center;
  align-items: center;
  min-height: 88svh;
  padding: 92px clamp(20px, 5vw, 72px) 24px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9,10,13,0.3), rgba(9,10,13,0.82) 68%),
    radial-gradient(ellipse at 30% 50%, #0d1f35 0%, transparent 60%),
    radial-gradient(circle at 76% 40%, rgba(79,158,216,0.14), transparent 34%),
    radial-gradient(circle at 22% 72%, rgba(216,179,90,0.10), transparent 28%);
}

.hero-visual {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  height: min(68svh, 680px);
  min-height: 430px;
  z-index: 1;
  opacity: 1;
}

.document-stack {
  display: none;
}

.document-stack span {
  position: absolute;
  inset: calc(var(--i, 0) * 16px) calc(var(--i, 0) * 12px) auto auto;
  width: 78%;
  height: 78%;
  border: 1px solid rgba(244, 239, 226, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 239, 226, 0.09), transparent 16%),
    repeating-linear-gradient(0deg, rgba(244, 239, 226, 0.13) 0 1px, transparent 1px 19px),
    rgba(16, 20, 26, 0.9);
  box-shadow: var(--shadow);
}

.document-stack span:nth-child(1) {
  --i: 0;
}

.document-stack span:nth-child(2) {
  --i: 1;
  opacity: 0.68;
}

.document-stack span:nth-child(3) {
  --i: 2;
  opacity: 0.46;
}

.timeline-rail {
  position: absolute;
  left: 42%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(216, 179, 90, 0.48), transparent);
}

.timeline-rail a {
  position: absolute;
  top: var(--top);
  left: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateX(-3px);
  white-space: nowrap;
}

.timeline-rail a::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.timeline-rail a::after {
  content: attr(data-preview);
  position: absolute;
  left: calc(100% + 18px);
  top: 50%;
  z-index: 4;
  width: min(320px, 34vw);
  border: 1px solid color-mix(in srgb, var(--color), transparent 55%);
  border-radius: 6px;
  background: rgba(9, 10, 13, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.45;
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  text-transform: none;
  transform: translateY(calc(-50% + 6px));
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: normal;
  overflow-wrap: break-word;
}

.timeline-rail a:hover,
.timeline-rail a:focus-visible {
  filter: brightness(1.2);
  outline: none;
}

.timeline-rail a:hover::after,
.timeline-rail a:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%);
}

.hero-copy {
  grid-column: 2;
  max-width: min(980px, 100%);
  justify-self: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto;
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 6.35vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 .title-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .title-accent {
  color: #e8d5a3;
}

.mockup-hero h1 {
  max-width: 13ch;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 880px;
  margin: 32px auto 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.85vw, 1.55rem);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 46px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(216, 179, 90, 0.4);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: rgba(216, 179, 90, 0.13);
}

.button:hover {
  background: rgba(216, 179, 90, 0.2);
}

.hero-stats {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
  max-width: 760px;
  justify-self: center;
  width: min(760px, 100%);
  margin: clamp(58px, 9vh, 112px) 0 0;
}

.hero-stats div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 3px;
}

.hero-stats dt {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.7rem;
}

.hero-stats dd {
  margin: 0;
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.hero-count-note {
  grid-column: 2;
  justify-self: center;
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.hero-count-note span {
  display: block;
  margin-top: 6px;
  color: rgba(216, 179, 90, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.overview-band article {
  min-height: 190px;
  padding: clamp(22px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.overview-band article:last-child {
  border-right: 0;
}

.overview-band span,
.source-list a::before {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-band h2 {
  margin: 16px 0 10px;
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.overview-band p,
.era-panel p,
.agency-hero p,
.authority-card p,
.timeline-detail,
.source-list a {
  color: var(--muted);
  line-height: 1.68;
}

.history-section,
.directory-section,
.institutions-section,
.agency-section,
.sources-section {
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.06;
}

.section-heading > p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.compact-heading {
  margin-bottom: 22px;
}

.compact-heading h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.era-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.era-tabs {
  display: grid;
  gap: 8px;
  align-self: start;
}

.era-tab,
.filter,
.details-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.era-tab.active,
.filter.active {
  border-color: rgba(216, 179, 90, 0.46);
  background: rgba(216, 179, 90, 0.13);
  color: var(--gold);
}

.era-panel {
  min-height: 520px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.era-number {
  color: rgba(216, 179, 90, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
}

.era-date {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.era-panel h3 {
  margin: 8px 0 16px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.era-callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(216, 179, 90, 0.08);
  color: var(--muted);
  line-height: 1.62;
}

.era-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.growth-chart {
  margin-top: 28px;
  max-width: 640px;
}

.growth-chart svg {
  width: 100%;
  height: auto;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.chart-area {
  fill: rgba(216, 179, 90, 0.11);
}

.chart-line {
  fill: none;
  stroke: rgba(216, 179, 90, 0.72);
  stroke-width: 3;
}

.chart-points circle {
  fill: var(--gold);
}

.directory-tools {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}

.directory-tools label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.directory-tools input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 0 14px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 0 14px;
}

.institutions-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(79, 158, 216, 0.07), transparent 48%),
    rgba(255, 255, 255, 0.018);
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.institution-card {
  min-height: 250px;
  padding: 20px;
  border: 1px solid rgba(79, 158, 216, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(79, 158, 216, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.028);
}

.institution-card.pending {
  border-color: rgba(216, 179, 90, 0.34);
  background:
    linear-gradient(180deg, rgba(216, 179, 90, 0.09), transparent 58%),
    rgba(255, 255, 255, 0.026);
}

.institution-card-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.institution-status {
  border: 1px solid rgba(244, 239, 226, 0.16);
  border-radius: 999px;
  color: var(--muted);
  padding: 4px 8px;
}

.institution-card h3 {
  margin: 18px 0 12px;
  font-family: Georgia, serif;
  font-size: 1.38rem;
  line-height: 1.18;
}

.institution-card p {
  color: var(--muted);
  line-height: 1.62;
}

.institution-card dl {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.institution-card dl div {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.institution-card dt {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.institution-card dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pending-legislation-panel {
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: 30px;
  border-top: 1px solid rgba(244, 239, 226, 0.1);
}

.pending-grid {
  grid-template-columns: minmax(260px, 760px);
  justify-content: start;
}

.oig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.oig-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.oig-card:hover {
  border-color: rgba(216, 179, 90, 0.36);
  background: rgba(255, 255, 255, 0.055);
}

.oig-card.featured {
  border-color: rgba(216, 179, 90, 0.42);
  background: rgba(216, 179, 90, 0.07);
}

.oig-card.inactive {
  border-color: rgba(223, 102, 87, 0.2);
}

.oig-card[hidden] {
  display: none;
}

.status-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(65, 176, 110, 0.8);
}

.status-dot.muted {
  background: var(--red);
  box-shadow: 0 0 16px rgba(223, 102, 87, 0.5);
}

.oig-card[data-count-active-standing="false"] .status-dot {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(216, 179, 90, 0.56);
}

.oig-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.oig-card p {
  margin: 18px 0 8px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.oig-card h3 {
  margin: 0 0 22px;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.16;
}

.oig-card dl,
.inspector-card dl,
.fact-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.oig-card dl {
  gap: 8px;
}

.oig-card dl div,
.inspector-card dl div,
.fact-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.oig-card dl div {
  display: grid;
  gap: 4px;
}

.oig-card dd {
  text-align: left;
  overflow-wrap: anywhere;
}

.oig-card dl a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.oig-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.oig-card-actions a,
.oig-card-actions button,
.oig-card-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(216, 179, 90, 0.34);
  border-radius: 5px;
  color: var(--gold);
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.oig-card-actions button {
  background: transparent;
  cursor: pointer;
}

.oig-card-actions span {
  border-color: var(--line);
  color: var(--dim);
}

.oig-card[role="button"] {
  cursor: pointer;
}

.oig-card[role="button"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.profile-modal-open,
body.changelog-modal-open {
  overflow: hidden;
}

.profile-overlay,
.changelog-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 34px);
}

.profile-overlay[hidden],
.changelog-overlay[hidden] {
  display: none;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.74);
  backdrop-filter: blur(8px);
}

.profile-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 88vw);
  max-height: 88svh;
  overflow: auto;
  border: 1px solid rgba(216, 179, 90, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--panel);
  background-size: 42px 42px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
  scrollbar-color: rgba(216, 179, 90, 0.42) rgba(255, 255, 255, 0.05);
}

.changelog-dialog {
  width: min(820px, 88vw);
}

.profile-dialog:focus {
  outline: none;
}

.profile-dialog-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 21, 26, 0.96);
  backdrop-filter: blur(14px);
}

.profile-dialog-header h2 {
  max-width: 860px;
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.profile-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.profile-header-meta .eyebrow {
  margin: 0;
}

.profile-status {
  --status-color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--status-color), transparent 58%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--status-color), transparent 91%);
  color: var(--status-color);
  padding: 0 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--status-color);
  box-shadow: 0 0 13px color-mix(in srgb, var(--status-color), transparent 34%);
}

.profile-status-active {
  --status-color: var(--green);
}

.profile-status-inactive {
  --status-color: var(--red);
}

.profile-status-special {
  --status-color: var(--gold);
}

.profile-close {
  min-height: 36px;
  border: 1px solid rgba(216, 179, 90, 0.34);
  border-radius: 5px;
  background: rgba(216, 179, 90, 0.08);
  color: var(--gold);
  cursor: pointer;
  padding: 0 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-dialog-body {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  min-width: 0;
}

.profile-dialog-body > * {
  min-width: 0;
}

.profile-lede {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.profile-establishment {
  padding: 22px;
}

.profile-establishment h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.profile-modal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.profile-main-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.compact-timeline .timeline {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 6px 14px;
  padding-left: 0;
}

.compact-timeline .timeline::before,
.compact-timeline .timeline-item::before {
  display: none;
}

.compact-timeline .timeline-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.profile-methods,
.profile-footnotes {
  padding-block: 0;
}

.profile-footnotes ol {
  margin-bottom: 0;
}

.profile-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.profile-disclaimer p {
  max-width: 860px;
  margin: 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.6;
}

.profile-disclaimer a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.profile-disclaimer a:hover,
.profile-disclaimer a:focus-visible {
  text-decoration: underline;
}

dt {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span:last-child {
  color: var(--gold);
}

.agency-hero {
  display: block;
  margin-bottom: 28px;
}

.agency-hero h1,
.agency-hero h2 {
  margin: 0;
  max-width: 940px;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.02;
}

.agency-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(216, 179, 90, 0.34);
  border-radius: 5px;
  background: rgba(216, 179, 90, 0.1);
  color: var(--gold);
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge.green {
  border-color: rgba(65, 176, 110, 0.34);
  background: rgba(65, 176, 110, 0.1);
  color: var(--green);
}

.badge.amber {
  border-color: rgba(216, 179, 90, 0.34);
  background: rgba(216, 179, 90, 0.1);
  color: var(--gold);
}

.inspector-card,
.fact-panel,
.timeline-card,
.authority-card,
.vacancy-card,
.leadership-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.inspector-card {
  padding: 24px;
}

.inspector-card > p {
  margin: 0 0 8px;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inspector-card h2,
.inspector-card h3 {
  margin: 0 0 26px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2.4rem;
}

.agency-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
}

.profile-sidebar {
  display: grid;
  align-self: start;
  gap: 16px;
  grid-row: 1 / span 2;
  min-width: 0;
}

.fact-panel,
.timeline-card,
.authority-card,
.vacancy-card,
.leadership-card {
  padding: 24px;
}

.fact-panel {
  align-self: start;
}

.profile-review-panel dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
}

.profile-review-panel dd {
  white-space: nowrap;
}

.agency-main {
  display: contents;
  min-width: 0;
}

.agency-main > section {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.agency-main > .leadership-card {
  grid-column: 1 / -1;
}

.agency-main > .vacancy-card {
  grid-column: 1 / -1;
}

.fact-panel h2,
.fact-panel h3,
.timeline-card h2,
.timeline-card h3,
.authority-card h2,
.authority-card h3,
.vacancy-card h2,
.vacancy-card h3,
.leadership-card h2,
.leadership-card h3 {
  margin: 0 0 18px;
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.profile-main {
  padding-top: 48px;
}

.evolution-scroll {
  border-block: 1px solid var(--line);
}

.era-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  min-height: 82svh;
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 72px);
  border-top: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
  position: relative;
}

.era-story::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(transparent, var(--accent), transparent);
  opacity: 0.72;
}

.era-story-copy span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.era-story-copy h2 {
  max-width: 820px;
  margin: 18px 0 24px;
  font-family: Georgia, serif;
  font-size: clamp(2.15rem, 4.4vw, 4.45rem);
  line-height: 1.03;
}

.era-story-copy p {
  max-width: 700px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.82;
}

.era-story-board {
  border: 1px solid color-mix(in srgb, var(--accent), transparent 60%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), transparent 93%);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}

.era-story-board strong {
  display: block;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
}

.era-story-board span {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.era-story-board p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.oig-chip-board {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(79, 158, 216, 0.28);
  border-radius: 8px;
  background: rgba(79, 158, 216, 0.055);
}

.oig-chip-board a,
.oig-chip-board button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(79, 158, 216, 0.34);
  border-radius: 5px;
  background: rgba(79, 158, 216, 0.08);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.oig-chip-board a {
  color: var(--blue);
}

.timeline {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.24), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  gap: 4px;
  padding: 11px 12px;
  text-align: left;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(216, 179, 90, 0.48);
}

.timeline-item span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.timeline-item strong {
  font-family: Georgia, serif;
  font-size: 1rem;
}

.timeline-item.active {
  background: rgba(216, 179, 90, 0.1);
  color: var(--ink);
}

.timeline-item.active::before {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(216, 179, 90, 0.8);
}

.timeline-detail {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(216, 179, 90, 0.07);
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.details-toggle {
  margin-top: 12px;
  padding: 0 14px;
  border-color: rgba(65, 176, 110, 0.34);
  color: var(--green);
}

.authority-detail {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(65, 176, 110, 0.22);
  border-radius: 6px;
  background: rgba(65, 176, 110, 0.06);
}

.authority-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.authority-meta div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.authority-detail ul {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-list a {
  display: flex;
  gap: 12px;
  min-height: 74px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.source-list a::before {
  content: "Source";
  min-width: max-content;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.78rem;
}

.story-shell {
  display: block;
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 72px);
  position: relative;
  border-top: 1px solid var(--line);
}

.story-rail {
  position: sticky;
  top: 86px;
  align-self: start;
  z-index: 4;
  display: grid;
  gap: 18px;
}

.orientation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 13, 0.86);
  backdrop-filter: blur(16px);
  padding: 18px;
  box-shadow: var(--shadow);
}

.sticky-growth-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-labels text {
  fill: rgba(244, 239, 226, 0.32);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  text-anchor: middle;
}

[data-era-dot] {
  transition: r 180ms ease, fill 180ms ease, filter 180ms ease;
}

[data-era-dot].active {
  r: 9px;
  fill: var(--gold);
  filter: drop-shadow(0 0 8px rgba(216, 179, 90, 0.8));
}

.orientation-era {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.orientation-era span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orientation-era strong {
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.story-content {
  min-width: 0;
}

.story-heading {
  margin-bottom: 12px;
}

.era-chapter {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(52px, 8vw, 94px) 0;
  opacity: 0.56;
  transition: opacity 220ms ease;
}

.era-chapter.active {
  opacity: 1;
}

.era-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 148px));
  gap: 8px;
  justify-content: start;
  margin-top: 26px;
}

.era-chip-list a,
.era-chip-list button {
  display: inline-grid;
  align-content: space-between;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 62%);
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent), transparent 93%);
  color: var(--ink);
  cursor: pointer;
  padding: 8px 11px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.era-chip-list [data-type~="Original12"] {
  border-color: rgba(216, 179, 90, 0.48);
  background: rgba(216, 179, 90, 0.1);
}

.era-chip-list [data-type~="DFE"] {
  border-color: color-mix(in srgb, var(--accent), transparent 48%);
}

.era-chip-list [data-type~="Inactive"] {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(148, 163, 184, 0.1);
}

.era-chip-list .empty-era {
  cursor: default;
  opacity: 0.68;
}

.era-chip-list strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.era-chip-list span {
  color: color-mix(in srgb, var(--accent), white 12%);
  font-size: 0.66rem;
}

.era-chip-list .touched {
  border-color: var(--accent);
}

.story-timeline {
  display: grid;
  gap: 11px;
  padding: 6px 0 6px 22px;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(216, 179, 90, 0.42), transparent);
}

.story-timeline a {
  position: relative;
  display: grid;
  gap: 3px;
  color: var(--dim);
  min-height: 58px;
  padding: 2px 0 2px 16px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-timeline a::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: currentColor;
}

.story-timeline a.active {
  color: var(--color, var(--gold));
}

.story-timeline a:hover,
.story-timeline a:focus-visible {
  color: var(--color, var(--gold));
  outline: none;
}

.story-timeline span {
  color: var(--color, currentColor);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
}

.data-section {
  padding: clamp(54px, 8vw, 90px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.data-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  max-width: 1120px;
}

.data-links a,
.data-links button {
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0 20px;
  text-decoration: none;
  text-transform: uppercase;
}

.data-links button {
  cursor: pointer;
}

.scholarly-footer span:last-child {
  max-width: 620px;
  text-align: right;
}

.establishment-card,
.assessment-card,
.methodology-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  padding: 24px;
}

.establishment-card {
  margin: 28px 0;
}

.vacancy-card {
  margin: 0;
}

.establishment-card h2,
.assessment-card h2,
.methodology-section h2,
.vacancy-card h2,
.leadership-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.profile-event-overview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--event-count), minmax(56px, 1fr));
  gap: 0;
  margin: 22px 0 2px;
  padding: 8px 0 2px;
}

.profile-event-overview::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 37px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.event-overview-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 104px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
}

.event-overview-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.event-overview-date {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.event-overview-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(9, 10, 13, 0.9);
  border-radius: 99px;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(24, 29, 36, 0.95);
}

.event-overview-title {
  max-width: 13ch;
  color: var(--muted);
  display: -webkit-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  letter-spacing: 0.03em;
  line-height: 1.25;
  max-height: 1.6rem;
  overflow: hidden;
  text-transform: uppercase;
}

.event-overview-item.active .event-overview-date,
.event-overview-item:hover .event-overview-date {
  color: var(--ink);
}

.event-overview-item.active .event-overview-title,
.event-overview-item:hover .event-overview-title {
  color: var(--ink);
}

.event-overview-item.active .event-overview-dot {
  transform: scale(1.18);
  box-shadow: 0 0 0 4px rgba(24, 29, 36, 0.95), 0 0 0 7px rgba(216, 179, 90, 0.18);
}

.event-overview-item.type-admin .event-overview-dot { background: #c49a1e; }
.event-overview-item.type-disruption .event-overview-dot { background: #df6657; }
.event-overview-item.type-statutory .event-overview-dot { background: #4f9ed8; }
.event-overview-item.type-authority .event-overview-dot { background: #41b06e; }
.event-overview-item.type-leadership .event-overview-dot { background: #a879ca; }

.typed-timeline .type-admin::before { background: #c49a1e; }
.typed-timeline .type-disruption::before { background: #df6657; }
.typed-timeline .type-statutory::before { background: #4f9ed8; }
.typed-timeline .type-authority::before { background: #41b06e; }
.typed-timeline .type-leadership::before { background: #a879ca; }

.interaction-hint {
  margin: -8px 0 18px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authority-feature {
  border-color: rgba(65, 176, 110, 0.28);
  background:
    linear-gradient(135deg, rgba(65, 176, 110, 0.1), rgba(255, 255, 255, 0.035) 48%),
    rgba(255, 255, 255, 0.04);
}

.authority-feature h2 {
  color: color-mix(in srgb, var(--green), white 22%);
}

.vacancy-card > p,
.leadership-card > p {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.7;
}

.vacancy-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.vacancy-metric {
  border: 1px solid rgba(216, 179, 90, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(216, 179, 90, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.vacancy-metric .metric-value {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 0.95;
}

.vacancy-metric h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.vacancy-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.leadership-card {
  margin-bottom: 0;
  min-width: 0;
}

.compact-source-links {
  margin-top: 16px;
}

.leadership-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(9, 10, 13, 0.26);
}

.leadership-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.leadership-table caption {
  padding: 16px 16px 10px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.leadership-table th,
.leadership-table td {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.leadership-table th {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.leadership-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 4px;
  padding: 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-filled {
  border: 1px solid rgba(65, 176, 110, 0.34);
  color: var(--green);
}

.status-vacant {
  border: 1px solid rgba(216, 179, 90, 0.42);
  color: var(--gold);
}

.status-neutral {
  border: 1px solid rgba(149, 165, 166, 0.42);
  color: var(--muted);
}

.source-note {
  color: var(--dim);
}

.cited-detail span {
  display: inline;
  margin-left: 6px;
  margin-top: 0;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.timeline-detail p {
  display: inline;
  margin: 0;
}

.cited-detail a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.footnote-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  height: 1.35em;
  border: 1px solid rgba(216, 179, 90, 0.38);
  border-radius: 999px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
  vertical-align: super;
}

.source-note .footnote-ref {
  margin-left: 4px;
}

.methodology-disclosure {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.methodology-section.methodology-compact {
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.methodology-section.methodology-compact .methodology-disclosure {
  margin-top: 0;
}

.methodology-disclosure summary {
  cursor: pointer;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  list-style-position: inside;
  padding: 12px 14px;
  text-transform: uppercase;
}

.methodology-disclosure[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.methodology-disclosure-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.methodology-disclosure article {
  border-left: 2px solid rgba(216, 179, 90, 0.34);
  padding-left: 12px;
}

.methodology-disclosure h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.methodology-disclosure p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.changelog-dialog-body {
  gap: 0;
}

.changelog-entry-list {
  display: grid;
  gap: 12px;
}

.changelog-entry {
  border-left: 2px solid rgba(216, 179, 90, 0.34);
  padding-left: 12px;
}

.changelog-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.changelog-entry time,
.changelog-scope {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.changelog-entry h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.changelog-entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.footnote-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footnote-links a {
  border: 1px solid rgba(65, 176, 110, 0.3);
  border-radius: 4px;
  color: var(--green);
  padding: 6px 9px;
  font-size: 0.72rem;
  text-decoration: none;
}

.assessment-card {
  display: grid;
  gap: 14px;
}

.assessment-card article {
  border-left: 3px solid var(--gold);
  background: rgba(216, 179, 90, 0.05);
  padding: 14px 16px;
}

.assessment-card article:last-child {
  border-left-color: var(--red);
  background: rgba(223, 102, 87, 0.045);
}

.assessment-card h3 {
  margin: 8px 0;
  font-family: Georgia, serif;
}

.assessment-card p,
.methodology-section p,
.establishment-card p {
  color: var(--muted);
  line-height: 1.7;
}

.assessment-badge {
  display: inline-flex;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.assessment-badge.partial {
  border: 1px solid rgba(216, 179, 90, 0.42);
  color: var(--gold);
}

.assessment-badge.incomplete {
  border: 1px solid rgba(223, 102, 87, 0.42);
  color: var(--red);
}

.methodology-section {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 28px;
  margin: 0 clamp(20px, 5vw, 72px) clamp(32px, 6vw, 70px);
}

.methods-main {
  padding-top: 48px;
}

.methods-hero {
  padding-bottom: clamp(54px, 8vw, 88px);
}

.methods-principle {
  border-color: rgba(216, 179, 90, 0.28);
  background:
    linear-gradient(135deg, rgba(216, 179, 90, 0.1), rgba(255, 255, 255, 0.035) 48%),
    rgba(255, 255, 255, 0.04);
}

.methods-layout {
  align-items: start;
}

.methods-card,
.methods-wide-card {
  margin: 0;
}

.methods-card {
  grid-column: 2;
}

.methods-prose {
  display: grid;
  gap: 12px;
}

.methods-prose p {
  margin: 0;
}

.methods-version {
  margin-top: 16px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.compact-method-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.method-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.method-card span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.method-card h3 {
  margin: 10px 0 8px;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

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

.method-formula {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(216, 179, 90, 0.28);
  border-radius: 6px;
  background: rgba(216, 179, 90, 0.08);
}

.method-formula span,
.methods-note {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-formula strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.46;
}

.methods-note {
  display: block;
  margin-top: 18px;
  line-height: 1.55;
  text-transform: none;
}

.methods-table {
  min-width: 760px;
}

.taxonomy-table {
  min-width: 980px;
}

.footnote-sources {
  padding-top: 30px;
}

.footnote-sources .section-heading {
  margin-bottom: 14px;
}

.footnote-sources h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.footnote-sources ol {
  columns: 2;
  gap: 34px;
  color: var(--dim);
  line-height: 1.8;
  padding-left: 22px;
}

.footnote-sources a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.footnote-sources .source-label {
  color: var(--muted);
}

@media (max-width: 1280px) and (min-width: 921px) {
  .site-header {
    padding-inline: 18px;
  }

  .site-nav {
    gap: 0.45rem;
    margin-left: 0.75rem;
  }

  .site-nav a {
    padding-inline: 6px;
    font-size: 0.66rem;
  }

  .site-nav .era-tab {
    padding-inline: 6px;
    font-size: 0.64rem;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .era-tabs-nav,
  .section-links-nav {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 132px;
    min-height: 92svh;
  }

  .hero-visual {
    display: none;
  }

  .hero-copy,
  .hero-stats,
  .hero-count-note {
    grid-column: 1;
  }

  .document-stack {
    right: -130px;
    width: 620px;
    opacity: 0.28;
  }

  .overview-band,
  .era-layout,
  .era-story,
  .story-shell,
  .era-chapter,
  .directory-tools,
  .oig-grid,
  .agency-hero,
  .agency-layout,
  .profile-modal-layout,
  .source-list,
  .methodology-section {
    grid-template-columns: 1fr;
  }

  .profile-sidebar,
  .agency-main > section,
  .agency-main > .leadership-card {
    grid-column: 1;
    grid-row: auto;
  }

  .story-rail {
    position: static;
  }

  .story-timeline {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 0;
  }

  .story-timeline::before {
    display: none;
  }

  .story-timeline a::before {
    display: none;
  }

  .era-chapter {
    min-height: auto;
  }

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

  .overview-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .era-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .era-story {
    min-height: auto;
  }

  .vacancy-metrics {
    grid-template-columns: 1fr;
  }

  .profile-dialog {
    width: min(760px, calc(100vw - 24px));
    max-height: 90svh;
  }

  .profile-dialog-header {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-close {
    align-self: flex-start;
  }

  .compact-timeline .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 4rem;
    white-space: normal;
  }

  .timeline-rail {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .era-tabs,
  .filter-buttons {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    display: grid;
  }

  .data-links,
  .footnote-sources ol {
    columns: 1;
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .profile-event-overview {
    grid-template-columns: repeat(var(--event-count), minmax(86px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .profile-event-overview::before {
    left: 43px;
    right: 43px;
  }

  .card-heading,
  .site-footer {
    flex-direction: column;
  }

  .oig-card dl div,
  .inspector-card dl div,
  .fact-panel dl div {
    display: grid;
  }

  dd {
    text-align: left;
  }
}
