@font-face {
  font-family: InterVariable;
  src: url("./fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("./fonts/Garamond.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("./fonts/Garamond-Italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
:root {
  --canvas: #fff;
  --mist: #fafafa;
  --ink: #0a0a0a;
  --graphite: #4a4a4a;
  --slate: #727272;
  --azure: #0088ff;
  --azure-wash: rgba(0, 136, 255, 0.08);
  --border: rgba(0, 0, 0, 0.09);
  --hairline: rgba(0, 0, 0, 0.06);
  --sans: InterVariable, Inter, -apple-system, system-ui, sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --text-caption: 11px;
  --text-body: 14px;
  --text-title: 15px;
  --text-kpi: 24px;
  --text-display: 32px;
  --radius: 10px;
  --sidebar-width: 264px;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  font-size: var(--text-body);
  font-feature-settings:
    "tnum" 1,
    "zero" 1,
    "ss01" 1,
    "cv11" 1;
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: -0.005em;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--serif);
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 {
  font-size: var(--text-title);
  font-weight: 600;
  line-height: 1.35;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}
input:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px var(--azure-wash),
    0 0 0 1px var(--azure);
}
::selection {
  background: var(--azure-wash);
}
.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: 16px;
  top: -100px;
  padding: 12px 18px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.eyebrow,
.nav-caption,
.section-label {
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  line-height: 1.4;
  font-weight: 500;
  color: var(--slate);
  text-transform: uppercase;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 28px 20px 20px;
  background: var(--mist);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  padding: 0 8px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--slate);
  margin-top: 1px;
}
.nav-caption {
  margin: 52px 12px 14px;
  font-size: 10px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 11px;
  font-size: 13px;
  border-radius: 8px;
  min-height: 44px;
  color: var(--graphite);
  white-space: nowrap;
}
nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}
nav a.active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-weight: 500;
}
.nav-symbol {
  font-size: 10px;
  color: var(--slate);
  letter-spacing: 0.03em;
}
.nav-arrow {
  margin-left: auto;
  color: var(--slate);
  font-size: 16px;
}
.sidebar-note {
  margin: auto 12px 40px;
  padding-top: 56px;
}
.sidebar-note .eyebrow {
  font-size: 9px;
}
.sidebar-note p {
  font: 400 25px/1.15 var(--serif);
  letter-spacing: -0.015em;
  margin: 14px 0;
}
.sidebar-note > span:last-child {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.7;
}
.sidebar-bottom {
  padding: 16px 12px 0;
  border-top: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 0.045em;
  color: var(--slate);
}
.source-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #15803d;
  margin-right: 7px;
  flex-shrink: 0;
}
.sidebar-bottom .text-button {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0;
}
.workspace {
  margin-left: var(--sidebar-width);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  min-height: 52px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 16px;
  font-size: 12px;
}
.breadcrumb {
  color: var(--slate);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb span {
  margin: 0 10px;
  color: #bbb;
}
.breadcrumb strong {
  font-weight: 400;
  color: var(--graphite);
}
.snapshot-button {
  border: 0;
  background: transparent;
  color: var(--graphite);
  font-size: 11px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px 0;
  min-height: 44px;
}
.snapshot-button:hover {
  color: var(--ink);
}
main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 64px;
  flex: 1;
  min-width: 0;
  outline: none;
}
.page-head {
  max-width: 850px;
  margin-bottom: 32px;
}
.page-head h1 {
  margin: 12px 0 10px;
}
.page-sub {
  font: italic 400 18px/1.5 var(--serif);
  color: var(--graphite);
  max-width: 700px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
}
.metric .eyebrow {
  font-size: 10px;
  min-height: 28px;
  max-width: 180px;
}
.metric strong {
  font-size: var(--text-kpi);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.metric-sub {
  font-size: 11px;
  line-height: 1.5;
  color: var(--slate);
  max-width: 220px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head p {
  font-size: 12px;
  color: var(--slate);
  margin-top: 6px;
  max-width: 650px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--graphite);
  font-size: 12px;
  text-align: left;
  line-height: 1.5;
}
.text-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section-head > .text-button {
  white-space: nowrap;
  min-height: 32px;
}
.unassigned-callout,
.search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--mist);
  padding: 20px 24px;
}
.unassigned-callout {
  margin: -16px 0 36px;
}
.unassigned-callout h2,
.search-suggestion h2 {
  margin: 7px 0 5px;
  font-size: 18px;
  font-weight: 500;
}
.unassigned-callout p,
.search-suggestion p {
  color: var(--graphite);
  font-size: 12px;
  margin-bottom: 4px;
}
.callout-note {
  font-size: 10px;
  color: var(--slate);
}
.unassigned-callout .button,
.search-suggestion .button {
  margin-top: 0;
}
.search-suggestion {
  margin: 0 0 16px;
  background: #fff;
}
.unassigned-row {
  background: rgba(0, 0, 0, 0.025);
}
.unassigned-label {
  display: block;
  padding: 5px 0;
}
.unassigned-label strong {
  display: block;
  font-weight: 500;
}
.ledger {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 20px;
}
.toolbar {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 160px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-field > svg {
  position: absolute;
  left: 12px;
  color: var(--slate);
  pointer-events: none;
}
.search-field input {
  background: #fff;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  height: 38px;
  padding: 8px 35px;
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
}
.search-field input::placeholder {
  color: var(--slate);
}
.search-field kbd {
  position: absolute;
  right: 10px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--slate);
  border: 1px solid var(--border);
  width: 17px;
  height: 20px;
  text-align: center;
  border-radius: 3px;
  pointer-events: none;
}
.search-field:focus-within kbd {
  display: none;
}
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.toolbar select {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 38px;
  max-width: 180px;
  padding: 0 26px 0 10px;
  font-size: 11px;
  text-overflow: ellipsis;
}
.toolbar select#sort {
  max-width: 165px;
}
.button {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  min-height: 36px;
  white-space: nowrap;
  line-height: 1.5;
}
.button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
}
.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.button.primary:hover {
  background: #333;
}
.button.export {
  min-height: 38px;
}
.button.export svg {
  width: 14px;
  height: 14px;
}
.result-count {
  font-size: 11px;
  color: var(--slate);
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
}
.table-scroll {
  overflow: auto;
  overscroll-behavior-x: contain;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  font-size: 13px;
}
th {
  background: var(--mist);
  color: var(--slate);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcfc;
}
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
th.numeric {
  width: 140px;
}
.rank-col {
  width: 48px;
  text-align: center;
  font-size: 11px;
  color: var(--slate);
  padding-left: 12px;
  padding-right: 8px;
}
.arrow-col {
  width: 40px;
  padding-left: 0;
  padding-right: 12px;
}
.arrow-col a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 30px;
  color: var(--slate);
  border-radius: 6px;
}
.arrow-col a:hover {
  color: var(--azure);
  background: var(--azure-wash);
}
.entity-cell {
  min-width: 0;
}
.entity-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 32px;
  min-width: 0;
}
.entity-link > span:last-child {
  min-width: 0;
}
.entity-link strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.entity-link:hover strong {
  color: #006dcc;
}
.entity-monogram {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 500;
  color: var(--graphite);
  background: var(--canvas);
  letter-spacing: -0.02em;
}
.cell-sub {
  display: block;
  font-size: 10px;
  color: var(--slate);
  line-height: 1.5;
  margin-top: 3px;
  font-weight: 400;
}
.money {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.amount-cell {
  white-space: nowrap;
}
.aua-bar {
  display: block;
  background: var(--hairline);
  height: 3px;
  width: 76px;
  margin-top: 7px;
  margin-left: auto;
  border-radius: 2px;
  overflow: hidden;
}
.aua-bar i {
  display: block;
  height: 100%;
  min-width: 1px;
  background: #6b6b6b;
  border-radius: 2px;
}
.ranking-table th:nth-child(3) {
  width: 196px;
}
.ranking-table th:nth-child(4),
.ranking-table th:nth-child(5) {
  width: 75px;
}
.pagination {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 12px;
  font-size: 11px;
  color: var(--slate);
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pagination .button {
  font-size: 11px;
  min-height: 32px;
  padding: 6px 10px;
}
.page-size-control {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 10px;
}
.page-size-control select {
  height: 32px;
  max-width: 72px;
  padding: 0 18px 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--graphite);
  font-size: 10px;
}
.page-label {
  min-width: 30px;
  text-align: center;
}
.featured {
  margin-top: 32px;
}
.featured .section-label {
  font-size: 10px;
  margin-bottom: 12px;
}
.featured-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.featured-links a {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  min-height: 36px;
  font-size: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.featured-links a span {
  color: var(--slate);
}
.featured-links a:hover {
  background: var(--mist);
  border-color: rgba(0, 0, 0, 0.18);
}
.research-note {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--graphite);
  font-size: 12px;
  line-height: 1.7;
}
.note-number {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
  min-width: 70px;
}
.research-note p {
  max-width: 720px;
}
.research-note strong {
  font-weight: 500;
  color: var(--ink);
}
footer {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  color: var(--slate);
}
footer .text-button {
  font-size: 10px;
}
.footer-divider {
  margin: 0 8px;
  color: #aaa;
}
.back-link {
  display: inline-block;
  font-size: 11px;
  color: var(--slate);
  margin: 0 0 24px;
  padding: 4px 0;
}
.back-link:hover {
  color: var(--ink);
}
.profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: -16px 0 32px;
  font-size: 11px;
  color: var(--slate);
}
.profile-meta a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #006dcc;
  border-bottom: 1px dotted rgba(0, 136, 255, 0.4);
}
.profile-meta a:hover {
  border-bottom-style: solid;
}
.profile-meta svg {
  width: 11px;
  height: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  padding: 3px 7px;
  color: var(--graphite);
  font-size: 10px;
  font-weight: 500;
}
.badge.grouped {
  background: rgba(21, 128, 61, 0.07);
  color: #146c35;
}
.badge svg {
  height: 11px;
  width: 11px;
}
.relationship-table th:first-child {
  width: auto;
}
.relationship-table th:nth-child(2) {
  width: 145px;
}
.relationship-table th:nth-child(3) {
  width: 180px;
}
.relationship-table th:nth-child(4) {
  width: 160px;
}
.th-sub {
  display: block;
  text-transform: none;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--slate);
  margin-top: 3px;
  font-weight: 400;
}
.coverage {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}
.coverage-track {
  height: 3px;
  width: 64px;
  background: var(--hairline);
  border-radius: 3px;
  overflow: hidden;
}
.coverage-track i {
  height: 100%;
  background: #777;
  display: block;
  border-radius: 3px;
}
.fund-fraction {
  font-size: 12px;
  font-weight: 500;
}
.fund-fraction > span {
  font-weight: 400;
  color: var(--slate);
}
.data-mark {
  color: var(--slate);
  font-size: 10px;
  margin-left: 2px;
}
.muted {
  color: var(--slate);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}
.alias-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  font-size: 12px;
}
.alias-panel summary {
  cursor: pointer;
  font-weight: 500;
  min-height: 24px;
}
.alias-panel summary > span {
  color: var(--slate);
  font-weight: 400;
  font-size: 10px;
  margin-left: 8px;
}
.alias-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.alias-list > span {
  font-size: 10px;
  background: var(--mist);
  border: 1px solid var(--hairline);
  padding: 4px 7px;
  border-radius: 4px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.location-list {
  margin-top: 20px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.location-list .eyebrow {
  font-size: 9px;
}
.location-list p {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 8px;
}
.footnote {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.7;
  padding: 0 4px;
}
.footnote strong {
  font-size: 12px;
  color: var(--graphite);
  font-weight: 500;
}
.footnote p {
  margin-top: 7px;
}
.empty-state {
  text-align: center;
  padding: 64px 24px;
}
.empty-state > svg {
  width: 28px;
  height: 28px;
  color: var(--slate);
  margin-bottom: 16px;
}
.empty-state p {
  font-size: 12px;
  color: var(--slate);
  margin: 8px 0 18px;
}
.loading-state {
  padding: 60px 0;
}
.loading-state h1 {
  margin: 16px 0 10px;
}
.loading-state p {
  color: var(--slate);
  font-size: 12px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 640px;
  width: calc(100% - 32px);
  padding: 28px;
  max-height: calc(100dvh - 48px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  color: var(--ink);
  background: var(--canvas);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.25);
}
dialog h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin: 12px 0 24px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.icon-button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 21px;
  display: grid;
  place-items: center;
  color: var(--slate);
}
.method-body h3 {
  font-size: 12px;
  margin: 20px 0 7px;
}
.method-body p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--graphite);
}
.method-body a {
  color: #006dcc;
  border-bottom: 1px dotted rgba(0, 136, 255, 0.4);
}
.method-body a:hover {
  border-bottom-style: solid;
}
dialog > .button {
  margin-top: 28px;
}
.noscript {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 100px);
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  z-index: 50;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .sidebar {
    padding-top: 32px;
  }
  main {
    padding-top: 48px;
  }
  .page-head {
    margin-bottom: 40px;
  }
}
@media (max-width: 1350px) {
  :root {
    --sidebar-width: 232px;
  }
  .sidebar {
    padding: 24px 14px 18px;
  }
  main {
    padding: 36px 32px 56px;
  }
  .topbar {
    padding: 0 24px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: none;
  }
  .toolbar-controls {
    flex-shrink: 0;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 18px 14px;
  }
  .metric strong {
    font-size: 22px;
  }
  .ranking-table th:nth-child(3) {
    width: 170px;
  }
  .ranking-table th:nth-child(4),
  .ranking-table th:nth-child(5) {
    width: 66px;
  }
  .relationship-table th:nth-child(2) {
    width: 130px;
  }
  .relationship-table th:nth-child(3) {
    width: 150px;
  }
  .relationship-table th:nth-child(4) {
    width: 140px;
  }
  th,
  td {
    padding-left: 13px;
    padding-right: 13px;
  }
  .entity-monogram {
    display: none;
  }
  footer {
    padding: 24px 32px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  :root {
    --sidebar-width: 212px;
  }
  .sidebar {
    padding: 24px 10px 18px;
  }
  nav a {
    font-size: 12px;
    gap: 8px;
  }
  .nav-arrow {
    display: none;
  }
  main {
    padding: 32px 24px 48px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .metric .eyebrow {
    min-height: 0;
  }
  .metric {
    gap: 10px;
  }
  .section-head > .text-button {
    max-width: 140px;
    white-space: normal;
    text-align: right;
  }
  .ranking-table th:nth-child(3) {
    width: 140px;
  }
  .ranking-table .hide-small {
    display: none;
  }
  .relationship-table {
    min-width: 640px;
  }
  .toolbar-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .search-field {
    min-width: 100%;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-note {
    margin-left: 12px;
  }
  .sidebar-note p {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar-width: 0px;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px 20px 0;
    background: var(--canvas);
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    padding: 0;
    gap: 9px;
    font-size: 17px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 24px;
    border-radius: 6px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .nav-caption,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    gap: 4px;
    margin-top: 20px;
    justify-content: space-between;
  }
  nav a {
    padding: 12px 8px;
    border-radius: 6px 6px 0 0;
    font-size: 11px;
    gap: 6px;
    white-space: normal;
    min-height: 44px;
    flex: 1;
    justify-content: center;
    line-height: 1.4;
  }
  nav a.active {
    box-shadow: inset 0 -2px 0 var(--ink);
    background: var(--mist);
  }
  .nav-symbol {
    font-size: 9px;
  }
  .nav-arrow {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    padding: 0 20px;
    min-height: 44px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb > span {
    margin: 0 6px;
  }
  .snapshot-button {
    font-size: 9px;
  }
  .breadcrumb strong {
    display: none;
  }
  .breadcrumb > span {
    display: none;
  }
  main {
    padding: 28px 20px 40px;
  }
  .page-head {
    margin-bottom: 24px;
  }
  .page-head .eyebrow {
    font-size: 9px;
    letter-spacing: 0.05em;
  }
  .page-head h1 {
    font-size: 32px;
    margin-top: 12px;
    max-width: 500px;
  }
  .page-sub {
    font-size: 17px;
    line-height: 1.45;
    max-width: 480px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 32px;
  }
  .metric {
    padding: 16px 14px;
    gap: 10px;
    min-height: 130px;
  }
  .metric .eyebrow {
    font-size: 9px;
    min-height: 25px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric-sub {
    font-size: 10px;
  }
  .section-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 14px;
  }
  .section-head p {
    font-size: 11px;
  }
  .section-head > .text-button {
    font-size: 10px;
    white-space: normal;
    text-align: right;
    max-width: 100px;
    flex-shrink: 0;
  }
  .unassigned-callout,
  .search-suggestion {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }
  .unassigned-callout {
    margin: -12px 0 28px;
  }
  .unassigned-callout h2,
  .search-suggestion h2 {
    font-size: 16px;
  }
  .unassigned-callout p,
  .search-suggestion p {
    font-size: 11px;
  }
  .toolbar {
    padding: 12px;
    gap: 10px;
  }
  .search-field {
    min-width: 100%;
    max-width: none;
  }
  .search-field input {
    font-size: 16px;
    height: 44px;
    padding-right: 25px;
  }
  .search-field input::placeholder {
    font-size: 12px;
  }
  .search-field kbd {
    display: none;
  }
  .toolbar-controls {
    width: 100%;
    gap: 6px;
    justify-content: space-between;
  }
  .toolbar select {
    font-size: 10px;
    min-height: 40px;
    max-width: 155px;
    min-width: 0;
    flex: 1;
    padding-left: 8px;
    padding-right: 16px;
  }
  .toolbar select#sort {
    max-width: 155px;
  }
  .button.export {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .button.export > svg {
    height: 13px;
    width: 13px;
  }
  .toolbar-controls:has(#grouping) .export span {
    display: none;
  }
  .ranking-table th:nth-child(3) {
    width: 132px;
  }
  .ranking-table .hide-small {
    display: none;
  }
  .rank-col {
    width: 30px;
    padding: 8px 3px;
    font-size: 9px;
  }
  .arrow-col {
    width: 26px;
    padding-right: 4px;
  }
  .arrow-col a {
    width: 24px;
    min-height: 44px;
  }
  .arrow-col svg {
    width: 14px;
    height: 14px;
  }
  .ranking-table th:nth-child(3) {
    font-size: 8px;
  }
  .entity-monogram {
    display: none;
  }
  th,
  td {
    padding: 11px 10px;
  }
  th {
    font-size: 9px;
  }
  .entity-link strong {
    font-size: 12px;
    line-height: 1.4;
  }
  .entity-link {
    min-height: 40px;
  }
  .entity-cell .cell-sub {
    font-size: 9px;
  }
  .money {
    font-size: 13px;
  }
  .aua-bar {
    width: 60px;
  }
  .result-count {
    padding: 10px 12px;
    font-size: 10px;
  }
  .pagination {
    padding: 12px;
    gap: 8px;
    font-size: 10px;
  }
  .pagination > div {
    gap: 6px;
    flex-wrap: wrap;
  }
  .page-size-control {
    gap: 4px;
  }
  .page-size-control select {
    max-width: 64px;
  }
  .pagination .button {
    min-height: 40px;
    font-size: 10px;
    padding: 7px 8px;
  }
  .page-label {
    font-size: 10px;
    min-width: 25px;
  }
  .featured {
    margin-top: 24px;
  }
  .featured .section-label {
    font-size: 9px;
  }
  .featured-links {
    gap: 6px;
  }
  .featured-links a {
    padding: 9px 10px;
    font-size: 11px;
    min-height: 40px;
    gap: 12px;
  }
  .research-note {
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
    font-size: 11px;
  }
  .note-number {
    font-size: 9px;
    min-width: 40px;
  }
  footer {
    padding: 20px;
    font-size: 9px;
    align-items: flex-start;
  }
  footer .text-button {
    font-size: 9px;
  }
  .footer-divider {
    margin: 0 5px;
  }
  .profile-meta {
    font-size: 10px;
    gap: 8px 12px;
    margin: -8px 0 24px;
  }
  .back-link {
    margin-bottom: 18px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  .relationship-table {
    min-width: 635px;
  }
  .relationship-table th:first-child {
    width: 210px;
  }
  .relationship-table th:nth-child(2) {
    width: 135px;
  }
  .relationship-table th:nth-child(3) {
    width: 145px;
  }
  .relationship-table th:nth-child(4) {
    width: 125px;
  }
  .relationship-table th,
  .relationship-table td {
    padding: 12px;
  }
  .relationship-table .entity-link strong {
    font-size: 12px;
  }
  .relationship-table .th-sub {
    font-size: 8px;
  }
  .table-scroll:has(.relationship-table) {
    border-right: 1px solid var(--hairline);
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }
  .alias-panel {
    padding: 16px;
  }
  .footnote {
    font-size: 11px;
  }
  .fund-fraction {
    font-size: 12px;
  }
  dialog {
    padding: 22px;
    max-height: calc(100dvh - 32px);
  }
  dialog h2 {
    font-size: 28px;
  }
  .icon-button {
    width: 40px;
    height: 40px;
  }
  .method-body p {
    font-size: 12px;
  }
  #toast {
    left: 50%;
    width: max-content;
    max-width: calc(100% - 40px);
    bottom: 20px;
  }
  .loading-state {
    padding: 40px 0;
  }
  .workspace:has(.relationship-table) .table-scroll::before {
    content: "Scroll right for portfolio coverage →";
    display: block;
    position: sticky;
    left: 0;
    font-size: 9px;
    color: var(--slate);
    background: var(--mist);
    padding: 8px 12px;
    width: calc(100vw - 42px);
    border-bottom: 1px solid var(--hairline);
  }
}
@media (max-width: 370px) {
  main {
    padding: 24px 14px 36px;
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }
  nav a {
    font-size: 10px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .nav-symbol {
    display: none;
  }
  .metric {
    padding: 14px 11px;
  }
  .metric strong {
    font-size: 21px;
  }
  .ranking-table th:nth-child(3) {
    width: 115px;
  }
  .ranking-table .arrow-col {
    display: none;
  }
  .ranking-table .money {
    font-size: 12px;
  }
  .toolbar select {
    font-size: 9px;
  }
  .pagination > span {
    max-width: none;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .pagination > div {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }
  .page-size-control {
    gap: 4px;
    font-size: 9px;
  }
  .page-size-control select {
    max-width: 58px;
    padding-left: 5px;
    font-size: 9px;
  }
  .section-head > .text-button {
    max-width: 82px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
/* The relationship ledger becomes a readable three-metric card on phones. */
@media (max-width: 760px) {
  .relationship-table {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .relationship-table thead {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .relationship-table tbody {
    display: block;
  }
  .relationship-table tr {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    position: relative;
    padding: 14px 14px 16px;
    gap: 12px 10px;
    border-bottom: 1px solid var(--border);
  }
  .relationship-table tbody tr:last-child {
    border-bottom: 0;
  }
  .relationship-table td {
    display: block;
    padding: 0 !important;
    border: 0;
    min-width: 0;
    text-align: left;
  }
  .relationship-table td:first-child {
    grid-column: 1/-1;
    padding-right: 24px !important;
  }
  .relationship-table .entity-link {
    min-height: 36px;
  }
  .relationship-table .entity-link strong {
    font-size: 13px;
  }
  .relationship-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: var(--slate);
    margin-bottom: 6px;
  }
  .relationship-table .coverage {
    align-items: flex-start;
    min-height: 36px;
  }
  .relationship-table .money {
    display: block;
    font-size: 14px;
    margin-top: -1px;
    min-height: 36px;
  }
  .relationship-table .fund-fraction {
    display: block;
    font-size: 12px;
  }
  .relationship-table .cell-sub {
    font-size: 9px;
  }
  .relationship-table .arrow-col {
    position: absolute;
    right: 10px;
    top: 13px;
    width: 24px;
  }
  .relationship-table .arrow-col a {
    min-height: 36px;
  }
  .table-scroll:has(.relationship-table) {
    overflow: visible;
    border-right: 0;
  }
  .workspace:has(.relationship-table) .table-scroll::before {
    display: none;
  }
}
/* Bring the research controls into view sooner on small screens. */
@media (max-width: 760px) {
  main[data-view="rank"] .metrics .metric:nth-child(n + 3) {
    display: none;
  }
  main[data-view="admin"] .metrics,
  main[data-view="firm"] .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  main[data-view="admin"] .metrics .metric,
  main[data-view="firm"] .metrics .metric {
    min-height: 104px;
    padding: 14px 10px;
    gap: 8px;
  }
  main[data-view="admin"] .metrics .metric:last-child,
  main[data-view="firm"] .metrics .metric:last-child,
  main[data-view="admin"] .metrics .metric-sub,
  main[data-view="firm"] .metrics .metric-sub {
    display: none;
  }
  main[data-view="admin"] .metrics .eyebrow,
  main[data-view="firm"] .metrics .eyebrow {
    min-height: 36px;
    font-size: 8px;
  }
  main[data-view="admin"] .metrics strong,
  main[data-view="firm"] .metrics strong {
    font-size: 20px;
  }
}
@media (max-width: 370px) {
  main[data-view="admin"] .metrics .metric,
  main[data-view="firm"] .metrics .metric {
    padding: 12px 8px;
  }
  main[data-view="admin"] .metrics strong,
  main[data-view="firm"] .metrics strong {
    font-size: 18px;
  }
}
