:root {
  --ink: #101725;
  --navy: #101b32;
  --navy-2: #172541;
  --paper: #f4f3ee;
  --surface: #fffefa;
  --surface-2: #efeee8;
  --line: #d9d8d1;
  --line-dark: #c3c3bb;
  --muted: #6d716f;
  --faint: #9a9d99;
  --blue: #2955d9;
  --blue-soft: #e9eeff;
  --green: #087b58;
  --green-soft: #e5f3ed;
  --amber: #a66200;
  --amber-soft: #fbefd5;
  --red: #bd3d4b;
  --red-soft: #fbe7e8;
  --purple: #7452b8;
  --sans: "Instrument Sans", sans-serif;
  --mono: "DM Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select { color: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.app-shell { display: grid; min-height: 100dvh; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; z-index: 40; top: 0; display: flex; height: 100dvh; padding: 26px 18px 20px; flex-direction: column; color: #edf1f8; background: var(--navy); }
.brand { display: flex; padding: 0 8px; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 18px; font-weight: 700; letter-spacing: -.035em; }
.brand small { color: #9eabc2; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.brand-lens { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #5772ad; border-radius: 50%; }
.brand-lens::after { position: absolute; right: -5px; bottom: 1px; width: 11px; height: 2px; transform: rotate(45deg); background: #81a4ff; content: ""; }
.brand-lens i { width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; }
.main-nav { display: grid; margin-top: 52px; gap: 5px; }
.main-nav a { display: grid; min-height: 42px; padding: 0 11px; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; color: #aeb9cc; border-radius: 6px; font-size: 13px; font-weight: 550; text-decoration: none; transition: 130ms ease; }
.main-nav a:hover { color: #fff; background: #192b4c; }
.main-nav a.active { color: #fff; background: #22365a; box-shadow: inset 2px 0 #78a0ff; }
.main-nav b { display: grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; border-radius: 10px; color: #d9e4ff; background: #2a4069; font-family: var(--mono); font-size: 8px; font-weight: 500; }
.nav-icon { color: #7f94bc; font-family: var(--mono); font-size: 18px; }
.sidebar-foot { display: grid; margin-top: auto; gap: 15px; }
.source-pulse { display: flex; padding: 13px 10px; align-items: center; gap: 10px; border-top: 1px solid #2a3852; border-bottom: 1px solid #2a3852; }
.source-pulse > i, .data-status > i { width: 7px; height: 7px; border-radius: 50%; background: #39ca92; box-shadow: 0 0 0 4px rgba(57,202,146,.11); }
.source-pulse span { display: grid; gap: 3px; }
.source-pulse strong { font-size: 10px; }
.source-pulse small { color: #8795ae; font-size: 8px; }
.sidebar-foot > a { display: flex; padding: 0 10px; justify-content: space-between; color: #9eabc2; font-size: 10px; text-decoration: none; }
.sidebar-foot > a:hover { color: #fff; }

.app-stage { min-width: 0; }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; height: 64px; padding: 0 28px; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.95); backdrop-filter: blur(16px); }
.global-search { display: flex; width: min(580px, 50vw); height: 38px; padding: 0 12px; align-items: center; gap: 10px; border: 1px solid var(--line-dark); border-radius: 5px; background: #fff; }
.global-search > span { color: var(--blue); font-size: 19px; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.global-search kbd { border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; color: var(--faint); background: var(--surface-2); font-family: var(--mono); font-size: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.data-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.data-status > i { width: 6px; height: 6px; box-shadow: none; }
.quiet-button, .text-button { border: 0; cursor: pointer; background: none; font-size: 11px; font-weight: 600; }
.quiet-button span { margin-left: 5px; border-radius: 10px; padding: 2px 6px; color: var(--blue); background: var(--blue-soft); font-family: var(--mono); font-size: 8px; }
.quiet-button:disabled { opacity: .45; cursor: default; }
.text-button { color: var(--blue); }
.menu-button { display: none; border: 0; background: none; font-size: 20px; }

.page { width: min(1510px, calc(100% - 56px)); margin: 0 auto; padding: 43px 0 80px; }
.narrow-page { width: min(1120px, calc(100% - 56px)); }
.page-heading { display: flex; margin-bottom: 32px; justify-content: space-between; gap: 40px; align-items: end; }
.page-heading > div:first-child { max-width: 800px; }
.page-heading h1 { margin: 0; font-size: clamp(34px, 4vw, 58px); font-weight: 620; line-height: 1.01; letter-spacing: -.055em; }
.page-heading p:not(.kicker) { max-width: 680px; margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.kicker { margin: 0 0 9px !important; color: var(--blue) !important; font-family: var(--mono); font-size: 9px !important; font-weight: 500; text-transform: uppercase; letter-spacing: .11em; }
.split-heading { align-items: center; }
.index-stats { display: flex; margin: 0; align-self: stretch; border-left: 1px solid var(--line); }
.index-stats div { display: grid; min-width: 130px; padding-left: 24px; align-content: center; }
.index-stats dt { font-size: 27px; font-weight: 620; letter-spacing: -.04em; }
.index-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

.primary-button, .secondary-button { display: inline-flex; min-height: 38px; padding: 0 15px; align-items: center; justify-content: center; gap: 9px; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.primary-button { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.primary-button:hover { border-color: #173da5; background: #173da5; }
.secondary-button { border: 1px solid var(--line-dark); color: var(--ink); background: var(--surface); }
.secondary-button:hover, .secondary-button.selected { border-color: #8fa7e8; color: var(--blue); background: var(--blue-soft); }

.search-layout { display: grid; grid-template-columns: 294px minmax(0, 1fr); gap: 18px; align-items: start; }
.filter-panel { position: sticky; top: 82px; border: 1px solid var(--line); background: var(--surface); }
.filter-form { display: grid; }
.filter-heading { display: flex; min-height: 64px; padding: 12px 15px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; }
.filter-heading > div { display: grid; gap: 2px; }
.filter-heading span { color: #9dabbe; font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.filter-heading strong { font-size: 17px; }
.filter-heading button { border: 0; cursor: pointer; color: #a9bbdf; background: none; font-size: 9px; }
.filter-field { display: grid; padding: 11px 14px; gap: 6px; border-bottom: 1px solid var(--line); }
.filter-field > span, .range-label { color: var(--muted); font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.filter-field input, .filter-field select { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.filter-field:focus-within { box-shadow: inset 2px 0 var(--blue); background: #f8faff; }
.filter-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-pair .filter-field:first-child { border-right: 1px solid var(--line); }
.filter-check { display: flex; padding: 13px 14px; align-items: start; gap: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.filter-check input { margin: 2px 0 0; accent-color: var(--blue); }
.filter-check span { display: grid; gap: 3px; }
.filter-check strong { font-size: 11px; }
.filter-check small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group summary { display: flex; min-height: 44px; padding: 0 14px; align-items: center; justify-content: space-between; cursor: pointer; font-size: 11px; font-weight: 650; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary span { color: var(--blue); font-family: var(--mono); font-size: 16px; transition: transform 150ms ease; }
.filter-group[open] summary span { transform: rotate(45deg); }
.filter-group-body { border-top: 1px solid var(--line); background: #f8f7f2; }
.filter-group-body > p { margin: 0; padding: 10px 14px 0; color: var(--muted); font-size: 8px; }
.filter-group-body .range-label { padding: 11px 14px 0; }
.filter-submit { margin: 14px; }

.results-panel { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.results-toolbar { display: flex; min-height: 64px; padding: 11px 14px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.results-toolbar > div:first-child { display: grid; gap: 3px; }
.results-toolbar strong { font-size: 15px; }
.results-toolbar span { color: var(--muted); font-size: 9px; }
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.sort-control { display: grid; gap: 2px; }
.sort-control > span { font-size: 7px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.sort-control select { border: 0; outline: 0; background: transparent; font-size: 10px; font-weight: 600; }
.result-columns, .company-row { display: grid; min-width: 1080px; grid-template-columns: minmax(220px, 1.5fr) minmax(155px, .9fr) 105px 105px 110px 110px 92px; align-items: center; gap: 12px; }
.result-columns { min-height: 37px; padding: 0 13px; color: var(--muted); background: var(--surface-2); font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .055em; }
.company-results { overflow-x: auto; }
.company-row { min-height: 72px; padding: 8px 13px; border-top: 1px solid var(--line); transition: background 120ms ease; }
.company-row:first-child { border-top: 0; }
.company-row:hover { background: #f6f8ff; }
.company-cell { min-width: 0; }
.company-cell.identity { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.company-cell > span:last-child, .company-cell.location, .company-cell.numeric { display: grid; min-width: 0; gap: 4px; }
.company-cell strong { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.company-cell small { overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.company-monogram { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 1px solid #c9d3ed; color: var(--blue); background: var(--blue-soft); font-family: var(--mono); font-size: 8px; }
.company-cell.location strong { font-size: 10px; }
.company-cell.numeric strong { font-family: var(--mono); font-size: 9px; }
.row-actions { display: flex; justify-content: end; align-items: center; gap: 4px; }
.icon-button, .row-open { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid transparent; cursor: pointer; color: var(--muted); background: transparent; font-size: 12px; text-decoration: none; }
.icon-button:hover, .icon-button.selected, .row-open:hover { border-color: #bcc9eb; color: var(--blue); background: var(--blue-soft); }
.pagination { display: flex; min-height: 55px; padding: 10px 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.pagination button { border: 1px solid var(--line-dark); padding: 7px 10px; cursor: pointer; background: #fff; font-size: 9px; font-weight: 600; }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination span { color: var(--muted); font-family: var(--mono); font-size: 8px; }

.positive { color: var(--green) !important; }
.warning { color: var(--amber) !important; }
.negative { color: var(--red) !important; }
.informative { color: var(--blue) !important; }
.neutral { color: var(--muted) !important; }
.status-badge { display: inline-flex; width: max-content; min-height: 22px; padding: 0 8px; align-items: center; gap: 6px; border: 1px solid #d2d3cf; border-radius: 12px; color: var(--muted); background: #f1f1ed; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.active { border-color: #b9dccf; color: var(--green); background: var(--green-soft); }

.route-loading { display: grid; min-height: 260px; place-items: center; align-content: center; gap: 13px; color: var(--muted); }
.route-loading span { width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 700ms linear infinite; }
.route-loading p { margin: 0; font-size: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { display: grid; min-height: 260px; padding: 38px; place-items: center; align-content: center; text-align: center; }
.empty-mark { color: var(--blue); font-size: 28px; }
.empty-state h2 { margin: 12px 0 0; font-size: 21px; }
.empty-state p { max-width: 470px; margin: 8px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.empty-inline { margin: 0; padding: 24px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; transform: translateY(15px); opacity: 0; border: 1px solid #31425f; border-radius: 4px; padding: 11px 15px; color: #fff; background: var(--navy); box-shadow: 0 12px 32px rgba(10,20,39,.22); font-size: 10px; pointer-events: none; transition: 160ms ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1600px) and (min-width: 881px) {
  .result-columns, .company-row { min-width: 670px; grid-template-columns: minmax(190px, 1.5fr) minmax(130px, .9fr) 92px 105px 78px; gap: 10px; }
  .result-columns > :nth-child(4), .result-columns > :nth-child(5),
  .company-row > :nth-child(4), .company-row > :nth-child(5) { display: none; }
}

.people-search { display: flex; height: 54px; margin-bottom: 15px; padding-left: 16px; align-items: center; gap: 13px; border: 1px solid var(--line-dark); background: var(--surface); }
.people-search > span { color: var(--blue); font-size: 22px; }
.people-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; }
.people-search .primary-button { align-self: stretch; border-radius: 0; }
.source-note, .notification-bar { display: flex; margin: 0 0 24px; padding: 12px 15px; align-items: center; gap: 11px; border-left: 3px solid var(--amber); color: #655634; background: var(--amber-soft); font-size: 9px; }
.source-note strong { white-space: nowrap; }
.source-note span { color: #7c6b45; }
.people-results { display: grid; gap: 12px; }
.person-result { border: 1px solid var(--line); background: var(--surface); }
.person-result > header { display: flex; min-height: 80px; padding: 14px 17px; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.person-avatar { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-2); font-family: var(--mono); font-size: 9px; }
.person-result header div { display: grid; gap: 4px; }
.person-result h2 { margin: 0; font-size: 17px; }
.person-result p { margin: 0; color: var(--muted); font-size: 9px; }
.current-label { margin-left: auto; border-radius: 11px; padding: 4px 8px; color: var(--green); background: var(--green-soft); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.role-list a { display: flex; min-height: 52px; padding: 9px 17px 9px 68px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); text-decoration: none; }
.role-list a:first-child { border-top: 0; }
.role-list a:hover { background: #f7f9ff; }
.role-list span { display: grid; gap: 3px; }
.role-list a > span:last-child { display: flex; align-items: center; gap: 15px; }
.role-list strong { font-size: 11px; }
.role-list small { color: var(--muted); font-size: 8px; }
.role-list b { color: var(--blue); font-weight: 500; }

.list-section { margin-top: 28px; }
.section-title { display: flex; margin-bottom: 10px; align-items: center; justify-content: space-between; }
.section-title h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.section-title > span { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.watch-table, .saved-list { border: 1px solid var(--line); background: var(--surface); }
.watch-table article { display: grid; min-height: 72px; padding: 10px 14px; grid-template-columns: minmax(240px, 1.5fr) 150px 130px auto; gap: 25px; align-items: center; border-top: 1px solid var(--line); }
.watch-table article:first-child { border-top: 0; }
.watch-table a { text-decoration: none; }
.watch-table a > span { display: grid; gap: 4px; }
.watch-table .status-badge { margin-bottom: 3px; }
.watch-table strong { font-size: 11px; }
.watch-table small { color: var(--muted); font-size: 8px; }
.watch-table article > div { display: grid; gap: 4px; }
.watch-table button, .saved-row > button { border: 0; cursor: pointer; color: var(--muted); background: none; font-size: 9px; }
.watch-table button:hover, .saved-row > button:hover { color: var(--red); }
.saved-row { display: flex; min-height: 62px; padding: 8px 14px; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.saved-row:first-child { border-top: 0; }
.saved-row > a { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; text-decoration: none; }
.saved-row > a > span:last-child { display: grid; min-width: 0; gap: 4px; }
.saved-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.saved-row small { color: var(--muted); font-size: 8px; }
.saved-icon { display: grid; width: 31px; height: 31px; place-items: center; color: var(--blue); background: var(--blue-soft); font-family: var(--mono); }

.notification-bar { align-items: start; border-color: var(--blue); color: #29437f; background: var(--blue-soft); }
.notification-bar > span { font-size: 20px; }
.notification-bar div { display: grid; gap: 3px; }
.notification-bar p { margin: 0; color: #5a6c9b; font-size: 9px; }
.change-feed { border-left: 1px solid var(--line-dark); margin-left: 26px; }
.change-feed article { position: relative; display: grid; min-height: 112px; padding: 3px 0 26px 50px; grid-template-columns: 1fr auto; gap: 20px; }
.event-icon { position: absolute; left: -19px; top: 0; display: grid; width: 38px; height: 38px; place-items: center; border: 4px solid var(--paper); border-radius: 50%; color: #fff; background: var(--blue); font-family: var(--mono); font-size: 8px; }
.event-icon.event-address { background: var(--amber); }
.event-icon.event-mandate { background: var(--purple); }
.change-feed time { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.change-feed h2 { margin: 8px 0 4px; font-size: 15px; }
.change-feed p { margin: 0; color: var(--muted); font-size: 10px; }
.change-feed p a { color: var(--ink); font-weight: 650; text-decoration: none; }
.change-feed small { display: block; margin-top: 6px; color: var(--faint); font-family: var(--mono); font-size: 7px; }
.event-open { align-self: center; color: var(--blue); font-size: 9px; font-weight: 650; text-decoration: none; }

.compare-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.compare-grid { display: grid; min-width: calc(220px + var(--companies) * 205px); grid-template-columns: 220px repeat(var(--companies), minmax(205px, 1fr)); }
.compare-corner, .compare-company { min-height: 136px; padding: 18px; border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; }
.compare-corner { display: grid; align-content: end; gap: 5px; }
.compare-corner span { color: #92a2bd; font-size: 8px; text-transform: uppercase; }
.compare-corner strong { font-family: var(--mono); font-size: 10px; }
.compare-company { position: relative; display: grid; align-content: center; gap: 10px; border-left: 1px solid #2d3c57; }
.compare-company > button { position: absolute; top: 8px; right: 8px; border: 0; cursor: pointer; color: #8fa0bb; background: none; }
.compare-company .status-badge { color: #bcebd9; border-color: #325f55; background: #173f39; }
.compare-company a { display: grid; gap: 5px; text-decoration: none; }
.compare-company strong { font-size: 14px; }
.compare-company small { color: #9eabc2; font-family: var(--mono); font-size: 8px; }
.compare-label, .compare-value { min-height: 72px; padding: 14px 17px; border-top: 1px solid var(--line); }
.compare-label { display: flex; align-items: center; color: var(--muted); background: #f0efe9; font-size: 10px; font-weight: 650; }
.compare-value { display: grid; align-content: center; gap: 5px; border-left: 1px solid var(--line); }
.compare-value strong { font-family: var(--mono); font-size: 10px; }
.compare-value small { color: var(--faint); font-size: 7px; }

.company-page { width: 100%; padding-top: 0; }
.company-hero { padding: 34px max(34px, calc((100% - 1290px) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 9px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--blue); }
.company-title-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.company-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.company-title-row h1 { max-width: 850px; margin: 15px 0 7px; font-size: clamp(35px, 4.3vw, 64px); font-weight: 620; line-height: .98; letter-spacing: -.055em; }
.company-title-row p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.profile-actions { display: flex; align-items: center; gap: 8px; }
.profile-tabs { position: sticky; z-index: 20; top: 64px; display: flex; overflow-x: auto; padding: 0 max(34px, calc((100% - 1290px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255,254,250,.96); backdrop-filter: blur(13px); scrollbar-width: none; }
.profile-tabs a { flex: 0 0 auto; margin-right: 29px; border-bottom: 2px solid transparent; padding: 15px 0 13px; color: var(--muted); font-size: 10px; font-weight: 620; text-decoration: none; }
.profile-tabs a:hover, .profile-tabs a.active { border-color: var(--blue); color: var(--blue); }
.profile-content { width: min(1290px, calc(100% - 68px)); margin: 0 auto; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; }
.profile-main, .profile-aside { min-width: 0; }
.profile-aside { border-left: 1px solid var(--line); }
.aside-section { padding: 32px 0 32px 30px; border-bottom: 1px solid var(--line); }
.content-section { padding: 38px 0; border-top: 1px solid var(--line); }
.content-section.first, .profile-main > .content-section:first-of-type { border-top: 0; }
.content-heading { display: flex; margin-bottom: 17px; align-items: end; justify-content: space-between; gap: 25px; }
.content-heading h2 { margin: 0; font-size: 22px; font-weight: 620; letter-spacing: -.035em; }
.content-heading > a { color: var(--blue); font-size: 9px; font-weight: 650; text-decoration: none; }
.content-heading > span { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.dossier-summary { display: flex; min-height: 116px; padding: 26px 0; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.summary-mark { display: grid; flex: 0 0 auto; width: 47px; height: 47px; place-items: center; color: #fff; background: var(--blue); font-family: var(--mono); font-size: 10px; }
.dossier-summary p { max-width: 760px; margin: 0; font-size: 16px; line-height: 1.55; }
.dossier-summary small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.metric-strip { display: grid; margin: 22px 0 34px; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.metric-card { display: grid; min-height: 106px; padding: 15px; align-content: space-between; border-left: 3px solid currentColor; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--blue); }
.metric-card:nth-child(3n) { border-right: 0; }
.metric-card:nth-last-child(-n+3) { border-bottom: 0; }
.metric-card > span { color: var(--muted); font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .055em; }
.metric-card strong { color: currentColor; font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: -.035em; }
.metric-card small { color: var(--muted); font-size: 7px; }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.trend-panel { position: relative; padding: 15px; border: 1px solid var(--line); background: var(--surface); }
.trend-panel > .trend-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 5px; }
.trend-panel span { color: var(--muted); font-size: 8px; font-weight: 650; text-transform: uppercase; }
.trend-panel strong { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.trend-panel small { grid-column: 2; font-family: var(--mono); font-size: 7px; }
.trend-panel svg { display: block; width: 100%; height: 75px; margin-top: 8px; overflow: visible; }
.trend-panel line { stroke: var(--line); stroke-width: 1; }
.trend-panel polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.trend-point { cursor: crosshair; outline: none; }
.trend-hit { fill: transparent; }
.trend-dot { stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; transition: transform 120ms ease, stroke-width 120ms ease; }
.trend-point:hover .trend-dot, .trend-point:focus .trend-dot { transform: scale(1.65); stroke-width: 2; }
.trend-panel footer { display: flex; justify-content: space-between; color: var(--faint); font-family: var(--mono); font-size: 7px; }
.trend-tooltip { position: absolute; z-index: 4; display: grid; width: max-content; max-width: 190px; padding: 9px 11px; gap: 3px; border: 1px solid #33425f; color: #f8faff; background: var(--navy); box-shadow: 0 8px 22px rgba(16, 23, 37, .18); pointer-events: none; opacity: 0; transform: translate(-50%, -100%) translateY(-6px); transition: opacity 90ms ease, transform 90ms ease; }
.trend-tooltip[aria-hidden="false"] { opacity: 1; transform: translate(-50%, -100%) translateY(-10px); }
.trend-tooltip::after { position: absolute; left: calc(50% - 5px); bottom: -6px; width: 9px; height: 9px; border-right: 1px solid #33425f; border-bottom: 1px solid #33425f; background: var(--navy); content: ""; transform: rotate(45deg); }
.trend-tooltip span { color: #9fb3dc; font-family: var(--mono); font-size: 7px; letter-spacing: .06em; }
.trend-tooltip strong { color: #fff; font-size: 12px; }
.trend-tooltip small { grid-column: auto; color: #bac5d8; font-size: 7px; line-height: 1.35; }
.trend-tooltip[data-tone="positive"] small { color: #74d9b1; }
.trend-tooltip[data-tone="negative"] small { color: #ff9eaa; }
.signal-list { display: grid; gap: 8px; }
.signal-item { display: grid; padding: 12px; grid-template-columns: 57px 1fr; gap: 10px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.signal-item.critical { border-color: var(--red); background: var(--red-soft); }
.signal-item.warning { border-color: var(--amber); background: var(--amber-soft); }
.signal-item > span { padding-top: 2px; color: currentColor; font-size: 7px; font-weight: 750; text-transform: uppercase; }
.signal-item div { display: grid; gap: 4px; }
.signal-item strong { font-size: 10px; }
.signal-item p { margin: 0; color: #626763; font-size: 8px; line-height: 1.5; }
.clean-signal { display: flex; padding: 14px; align-items: start; gap: 10px; color: var(--green); background: var(--green-soft); }
.clean-signal div { display: grid; gap: 4px; }
.clean-signal strong { font-size: 10px; }
.clean-signal p { margin: 0; color: #4e7063; font-size: 8px; line-height: 1.5; }
.quick-facts { margin: 0; }
.quick-facts div { display: grid; padding: 9px 0; grid-template-columns: 95px 1fr; gap: 13px; border-top: 1px solid var(--line); }
.quick-facts div:first-child { border-top: 0; }
.quick-facts dt { color: var(--muted); font-size: 8px; }
.quick-facts dd { margin: 0; font-size: 9px; font-weight: 620; line-height: 1.45; }
.source-card { display: grid; gap: 7px; }
.source-card > strong { font-size: 11px; }
.source-card > span { color: var(--muted); font-size: 8px; }
.source-card > a { margin-top: 5px; color: var(--blue); font-size: 9px; font-weight: 650; text-decoration: none; }

.benchmark-head { display: flex; padding: 14px 16px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-bottom: 0; background: var(--navy); color: #fff; }
.benchmark-head > div { display: grid; gap: 4px; }
.benchmark-head > div span, .benchmark-head > span { color: #99a8c0; font-size: 7px; text-transform: uppercase; letter-spacing: .06em; }
.benchmark-head strong { font-size: 12px; }
.benchmark-table { border: 1px solid var(--line); background: var(--surface); }
.benchmark-row { display: grid; min-height: 65px; padding: 11px 15px; grid-template-columns: minmax(130px, .8fr) minmax(160px, 1.5fr) minmax(145px, .8fr) 35px; align-items: center; gap: 18px; border-top: 1px solid var(--line); }
.benchmark-row:first-child { border-top: 0; }
.benchmark-row > span:first-child, .benchmark-values { display: grid; gap: 3px; }
.benchmark-row strong { font-size: 9px; }
.benchmark-row small { color: var(--muted); font-size: 7px; }
.benchmark-values { text-align: right; }
.percentile { position: relative; height: 3px; background: #e3e2dd; }
.percentile i { position: absolute; inset: 0 auto 0 0; background: var(--blue); }
.percentile b { position: absolute; top: -4px; width: 2px; height: 11px; background: var(--navy); }
.benchmark-row em { color: var(--blue); font-family: var(--mono); font-size: 8px; font-style: normal; }
.fine-print { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

.tab-stack { padding-bottom: 40px; }
.data-table { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.data-head, .data-row { display: grid; min-width: 900px; grid-template-columns: 115px repeat(4, minmax(130px, 1fr)) 95px; align-items: center; gap: 14px; }
.data-head { min-height: 36px; padding: 0 13px; color: var(--muted); background: var(--surface-2); font-size: 8px; font-weight: 650; text-transform: uppercase; }
.data-row { min-height: 53px; padding: 8px 13px; border-top: 1px solid var(--line); }
.data-row strong, .data-row span { font-family: var(--mono); font-size: 8px; }
.data-row a { color: var(--blue); font-size: 8px; font-weight: 650; text-decoration: none; }
.fact-matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.fact-matrix > div { display: grid; min-height: 67px; padding: 12px 14px; align-content: center; gap: 7px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.fact-matrix > div:nth-child(-n+3) { border-top: 0; }
.fact-matrix > div:nth-child(3n) { border-right: 0; }
.fact-matrix span { color: var(--muted); font-size: 8px; }
.fact-matrix strong { font-family: var(--mono); font-size: 10px; }
.semantic-legend { display: flex; align-items: center; gap: 6px; }
.semantic-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ratio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ratio-card { display: grid; min-height: 118px; padding: 13px; align-content: space-between; border: 1px solid var(--line); border-top: 3px solid currentColor; color: var(--blue); background: var(--surface); }
.ratio-card > div { display: flex; align-items: center; justify-content: space-between; }
.ratio-card span { color: var(--muted); font-size: 8px; font-weight: 650; text-transform: uppercase; }
.ratio-card i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ratio-card strong { color: currentColor; font-family: var(--mono); font-size: 19px; font-weight: 500; }
.ratio-card code { overflow: hidden; color: var(--faint); font-family: var(--mono); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.statement-blocks { border: 1px solid var(--line); background: var(--surface); }
.statement-blocks details { border-top: 1px solid var(--line); }
.statement-blocks details:first-child { border-top: 0; }
.statement-blocks summary { display: flex; min-height: 57px; padding: 10px 15px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.statement-blocks summary::-webkit-details-marker { display: none; }
.statement-blocks summary > span { display: grid; gap: 4px; }
.statement-blocks summary strong { font-size: 11px; }
.statement-blocks summary small { color: var(--muted); font-size: 8px; }
.statement-blocks summary b { color: var(--blue); font-size: 17px; transition: transform 150ms ease; }
.statement-blocks details[open] summary b { transform: rotate(45deg); }
.statement-table { border-top: 1px solid var(--line); background: #f8f7f2; }
.statement-table > div { display: grid; min-height: 39px; padding: 8px 14px 8px 27px; grid-template-columns: 70px minmax(220px, 1fr) 150px; gap: 16px; align-items: center; border-top: 1px solid var(--line); }
.statement-table > div:first-child { border-top: 0; }
.statement-table code { color: var(--blue); font-family: var(--mono); font-size: 7px; }
.statement-table span { font-size: 8px; }
.statement-table strong { font-family: var(--mono); font-size: 8px; text-align: right; }

.network-canvas { overflow-x: auto; border: 1px solid var(--line); background-color: #f9f8f3; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 30px 30px; }
.network-canvas svg { display: block; min-width: 800px; width: 100%; min-height: 470px; }
.network-edges line { stroke: #aeb5c1; stroke-width: 1.2; }
.network-edges line.edge-same_address { stroke: var(--amber); stroke-dasharray: 4 4; }
.network-edges line.edge-shareholder { stroke: var(--purple); stroke-width: 2; }
.network-edges line.edge-participation { stroke: var(--green); stroke-width: 2; }
.network-edges text { fill: #7c8189; font-family: var(--mono); font-size: 7px; paint-order: stroke; stroke: #f9f8f3; stroke-width: 4px; }
.network-node { cursor: default; }
.network-node[role="link"] { cursor: pointer; }
.network-node circle { fill: #fff; stroke: #9ca9c3; stroke-width: 1.5; }
.network-node.type-person circle { fill: var(--purple); stroke: #5e3b9b; }
.network-node.type-person text, .network-node.root text { fill: #fff; }
.network-node.root circle { fill: var(--blue); stroke: #173da5; stroke-width: 3; }
.network-node text { fill: var(--ink); font-family: var(--sans); font-size: 8px; font-weight: 650; pointer-events: none; }
.network-node text.node-type { fill: #737d8d; font-family: var(--mono); font-size: 6px; font-weight: 400; text-transform: uppercase; }
.network-node.type-person text.node-type, .network-node.root text.node-type { fill: #dce5ff; }
.network-legend { display: flex; padding: 10px 14px; gap: 18px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 8px; }
.network-legend span { display: flex; align-items: center; gap: 6px; }
.network-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.network-legend .person-dot { background: var(--purple); }
.network-legend .address-line { width: 15px; height: 0; border-top: 1px dashed var(--amber); border-radius: 0; background: none; }
.relationship-list { display: grid; border: 1px solid var(--line); background: var(--surface); }
.relationship-list article { display: grid; min-height: 74px; padding: 12px 15px; grid-template-columns: 90px minmax(250px, 1fr) minmax(140px, .5fr) 150px; align-items: center; gap: 18px; border-top: 1px solid var(--line); }
.relationship-list article:first-child { border-top: 0; }
.relation-type { color: var(--blue); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.relationship-list article > div { display: flex; align-items: center; gap: 10px; }
.relationship-list strong { font-size: 9px; }
.relationship-list p, .relationship-list small { margin: 0; color: var(--muted); font-size: 8px; }

.integration-empty { display: flex; padding: 22px; align-items: center; gap: 17px; border: 1px dashed #b6b7b1; background: #eeede7; }
.integration-empty > span { display: grid; flex: 0 0 auto; width: 47px; height: 47px; place-items: center; color: #fff; background: #747875; font-family: var(--mono); font-size: 9px; }
.integration-empty > div { display: grid; gap: 6px; }
.integration-empty strong { font-size: 12px; }
.integration-empty p { max-width: 720px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.person-table { border: 1px solid var(--line); background: var(--surface); }
.person-table article { display: grid; min-height: 64px; padding: 10px 14px; grid-template-columns: 38px minmax(220px, 1fr) minmax(180px, .7fr); align-items: center; gap: 13px; border-top: 1px solid var(--line); }
.person-table article:first-child { border-top: 0; }
.person-table article > div { display: grid; gap: 4px; }
.person-table strong { font-size: 10px; }
.person-table small, .person-table article > span:last-child { color: var(--muted); font-size: 8px; }
.ownership-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ownership-grid article { display: grid; min-height: 100px; padding: 14px; align-content: space-between; border: 1px solid var(--line); background: var(--surface); }
.ownership-grid span { color: var(--green); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.ownership-grid strong { font-size: 11px; }
.ownership-grid small { color: var(--muted); font-family: var(--mono); font-size: 7px; }

.publication-list { border: 1px solid var(--line); background: var(--surface); }
.publication-list article { display: grid; min-height: 80px; padding: 12px 14px; grid-template-columns: 95px 38px minmax(260px, 1fr) auto; align-items: center; gap: 15px; border-top: 1px solid var(--line); }
.publication-list article:first-child { border-top: 0; }
.publication-list time { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.publication-icon { display: grid; width: 35px; height: 35px; place-items: center; color: #fff; background: var(--blue); font-family: var(--mono); font-size: 7px; }
.publication-icon.address { background: var(--amber); }
.publication-list article > div { display: grid; gap: 3px; }
.publication-list strong { font-size: 10px; }
.publication-list p { margin: 0; color: var(--muted); font-size: 8px; }
.publication-list small { color: var(--faint); font-family: var(--mono); font-size: 7px; }
.publication-list article > a { color: var(--blue); font-size: 8px; font-weight: 650; text-decoration: none; }
.location-grid, .establishment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.location-grid article { display: flex; min-height: 90px; padding: 15px; align-items: center; gap: 13px; border: 1px solid var(--line); background: var(--surface); }
.location-grid article > span { display: grid; width: 36px; height: 36px; place-items: center; color: var(--blue); background: var(--blue-soft); }
.location-grid article > div { display: grid; gap: 5px; }
.location-grid strong { font-size: 10px; }
.location-grid small { color: var(--muted); font-size: 8px; }
.establishment-grid article { display: grid; min-height: 122px; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.establishment-grid header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.establishment-grid strong { font-size: 10px; }
.establishment-grid code { color: var(--blue); font-family: var(--mono); font-size: 7px; }
.establishment-grid p { margin: 21px 0 8px; font-size: 9px; }
.establishment-grid small { color: var(--muted); font-size: 8px; }
.related-list { border: 1px solid var(--line); background: var(--surface); }
.related-list a { display: grid; min-height: 54px; padding: 9px 13px; grid-template-columns: minmax(220px, 1fr) 120px 20px; align-items: center; gap: 14px; border-top: 1px solid var(--line); text-decoration: none; }
.related-list a:first-child { border-top: 0; }
.related-list a:hover { background: #f7f9ff; }
.related-list a > span { display: flex; align-items: center; gap: 10px; }
.related-list strong { font-size: 10px; }
.related-list code { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.related-list b { color: var(--blue); }
.activity-table { border: 1px solid var(--line); background: var(--surface); }
.activity-table article { display: grid; min-height: 58px; padding: 10px 14px; grid-template-columns: 80px 1fr; align-items: center; gap: 15px; border-top: 1px solid var(--line); }
.activity-table article:first-child { border-top: 0; }
.activity-table code { color: var(--blue); font-family: var(--mono); font-size: 8px; }
.activity-table div { display: grid; gap: 4px; }
.activity-table strong { font-size: 10px; }
.activity-table small { color: var(--muted); font-size: 8px; }
.coverage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.coverage-grid article { display: grid; min-height: 145px; padding: 15px; align-content: start; border: 1px solid var(--line); background: var(--surface); }
.coverage-status { width: max-content; margin-bottom: 22px; border-radius: 10px; padding: 3px 7px; color: var(--blue); background: var(--blue-soft); font-size: 6px; font-weight: 700; text-transform: uppercase; }
.coverage-grid strong { font-size: 11px; }
.coverage-grid p { margin: 7px 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.coverage-grid a { margin-top: auto; color: var(--blue); font-size: 8px; font-weight: 650; text-decoration: none; }
.method-panel { display: grid; padding: 24px; grid-template-columns: 38px 1fr 38px 1fr 38px 1fr; gap: 14px; border: 1px solid var(--line); background: var(--navy); color: #fff; }
.method-number { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #425475; color: #89a8ef; font-family: var(--mono); font-size: 8px; }
.method-panel div { display: grid; align-content: start; gap: 6px; }
.method-panel strong { font-size: 10px; }
.method-panel p { margin: 0; color: #aab5c8; font-size: 8px; line-height: 1.5; }
.api-endpoints { border: 1px solid var(--line); background: var(--surface); }
.api-endpoints article { display: grid; min-height: 78px; padding: 14px 18px; grid-template-columns: 54px 1fr; align-items: start; gap: 17px; border-top: 1px solid var(--line); }
.api-endpoints article:first-child { border-top: 0; }
.api-endpoints article > span { width: max-content; margin-top: 2px; border-radius: 12px; padding: 4px 7px; color: #06694d; background: var(--green-soft); font-family: var(--mono); font-size: 7px; font-weight: 700; }
.api-endpoints article > div { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(260px, 1fr); align-items: baseline; gap: 5px 24px; }
.api-endpoints code { grid-column: 1 / -1; color: var(--blue); font-family: var(--mono); font-size: 9px; }
.api-endpoints strong { font-size: 10px; }
.api-endpoints small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.api-example { display: grid; margin-top: 18px; padding: 23px; grid-template-columns: 1fr auto; gap: 17px; border: 1px solid #2e405f; background: var(--navy); color: #fff; }
.api-example h2 { margin: 5px 0 0; font-size: 20px; }
.api-example a { color: #9ab6ff; font-size: 8px; font-weight: 700; text-decoration: none; }
.api-example > code { grid-column: 1 / -1; overflow-x: auto; border: 1px solid #3a4d6d; padding: 14px; color: #91e6c5; background: #0b1527; font-family: var(--mono); font-size: 8px; white-space: nowrap; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .search-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .page { width: min(100% - 36px, 1510px); }
  .profile-content { width: calc(100% - 40px); }
  .company-hero { padding-inline: 24px; }
  .profile-tabs { padding-inline: 24px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .metric-card:nth-child(2n) { border-right: 0; }
  .metric-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .metric-card:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 880px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -245px; width: 232px; transition: left 170ms ease; box-shadow: 18px 0 42px rgba(7,14,27,.22); }
  .sidebar.is-open { left: 0; }
  .menu-button { display: block; }
  .topbar { padding: 0 16px; }
  .global-search { width: min(520px, 62vw); }
  .data-status { display: none; }
  .page-heading { align-items: start; flex-direction: column; }
  .index-stats { width: 100%; border-left: 0; border-top: 1px solid var(--line); padding-top: 15px; }
  .index-stats div { padding-left: 0; padding-right: 30px; }
  .search-layout { display: block; }
  .filter-panel { position: static; margin-bottom: 15px; }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-heading, .filter-group, .filter-check, .filter-submit { grid-column: 1 / -1; }
  .filter-field { border-right: 1px solid var(--line); }
  .filter-pair { display: contents; }
  .filter-group-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-group-body > p, .filter-group-body > .range-label { grid-column: 1 / -1; }
  .filter-group-body > .filter-field { grid-column: 1 / -1; }
  .filter-submit { min-height: 44px; }
  .results-toolbar { align-items: start; flex-direction: column; }
  .toolbar-actions { width: 100%; flex-wrap: wrap; }
  .profile-grid { display: block; }
  .profile-aside { border-left: 0; border-top: 1px solid var(--line); }
  .aside-section { padding-left: 0; }
  .company-title-row { align-items: start; flex-direction: column; }
  .ratio-grid, .fact-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-matrix > div:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .fact-matrix > div:nth-child(-n+2) { border-top: 0; }
  .fact-matrix > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .fact-matrix > div:nth-child(2n) { border-right: 0; }
  .method-panel { grid-template-columns: 38px 1fr; }
}

@media (max-width: 600px) {
  .topbar { gap: 8px; }
  .global-search { width: 100%; }
  .global-search kbd, .topbar-actions { display: none; }
  .page, .narrow-page { width: calc(100% - 24px); padding: 27px 0 55px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading p:not(.kicker) { font-size: 12px; }
  .filter-form { display: block; }
  .filter-group-body { display: block; }
  .filter-pair { display: grid; }
  .toolbar-actions .text-button { display: none; }
  .sort-control { flex: 1; }
  .company-hero { padding: 24px 16px; }
  .profile-content { width: calc(100% - 24px); }
  .profile-tabs { top: 64px; padding-inline: 16px; }
  .company-title-row h1 { font-size: 39px; }
  .profile-actions { width: 100%; flex-wrap: wrap; }
  .profile-actions .secondary-button { flex: 1; }
  .profile-actions .primary-button { width: 100%; }
  .metric-strip, .trend-grid, .ratio-grid, .fact-matrix, .ownership-grid, .location-grid, .establishment-grid, .coverage-grid { grid-template-columns: 1fr; }
  .metric-card, .metric-card:nth-child(2n), .metric-card:nth-child(3n), .metric-card:nth-last-child(-n+2), .metric-card:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child { border-bottom: 0; }
  .benchmark-head { align-items: start; flex-direction: column; gap: 8px; }
  .benchmark-row { grid-template-columns: 1fr 1fr 34px; }
  .benchmark-row > span:first-child { grid-column: 1 / -1; }
  .benchmark-values { text-align: left; }
  .fact-matrix > div, .fact-matrix > div:nth-child(-n+2), .fact-matrix > div:nth-child(2n), .fact-matrix > div:nth-child(3n) { border-top: 1px solid var(--line); border-right: 0; }
  .fact-matrix > div:first-child { border-top: 0; }
  .statement-table > div { grid-template-columns: 55px 1fr; }
  .statement-table strong { grid-column: 2; text-align: left; }
  .relationship-list article { grid-template-columns: 75px 1fr; }
  .relationship-list article p, .relationship-list article small { grid-column: 2; }
  .person-table article { grid-template-columns: 38px 1fr; }
  .person-table article > span:last-child { grid-column: 2; }
  .publication-list article { grid-template-columns: 38px 1fr; }
  .publication-list time { grid-column: 1 / -1; }
  .publication-list article > a { grid-column: 2; }
  .watch-table article { grid-template-columns: 1fr auto; gap: 12px; }
  .watch-table article > div { display: none; }
  .people-search { height: auto; padding: 10px; flex-wrap: wrap; }
  .people-search .primary-button { width: 100%; min-height: 42px; }
  .role-list a { padding-left: 17px; }
  .source-note { align-items: start; flex-direction: column; }
  .api-endpoints article { grid-template-columns: 46px 1fr; padding-inline: 13px; }
  .api-endpoints article > div { display: grid; grid-template-columns: 1fr; }
  .api-endpoints code { grid-column: auto; overflow-wrap: anywhere; }
  .api-example { grid-template-columns: 1fr; padding: 17px; }
  .api-example > code { grid-column: auto; }
}

@media print {
  .sidebar, .topbar, .profile-actions, .back-link { display: none !important; }
  .app-shell { display: block; }
  .company-hero { padding: 20px 0; }
  .profile-tabs { position: static; padding: 0; }
  .profile-content { width: 100%; }
  .page { width: 100%; }
  body { background: #fff; }
}
