:root {
  color-scheme: light;
  --page: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f1f4f8;
  --ink: #172033;
  --ink-strong: #0b1628;
  --muted: #5f6b7a;
  --muted-strong: #465365;
  --border: #d9dee7;
  --border-strong: #b9c2cf;
  --navy: #17365d;
  --navy-deep: #102a49;
  --action: #2563eb;
  --action-dark: #1d4ed8;
  --focus: #0f6fff;
  --source: #2563eb;
  --source-tint: #eff6ff;
  --geometry: #7c3aed;
  --geometry-tint: #f5f3ff;
  --verification: #0f766e;
  --verification-tint: #f0fdfa;
  --runtime: #a9560a;
  --runtime-tint: #fff8e8;
  --success: #13795b;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-md: 0 14px 36px rgb(15 23 42 / 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --page-width: 1480px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, #fbfcfe 0, var(--page) 560px),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: var(--action-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--action);
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ul {
  margin-top: 0;
}

h1,
h2 {
  color: var(--ink-strong);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3,
h4 {
  color: var(--ink-strong);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgb(15 111 255 / 0.42);
  outline-offset: 3px;
}

::selection {
  background: #dbeafe;
  color: var(--navy-deep);
}

.page-frame {
  width: min(100% - 64px, var(--page-width));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--navy-deep);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.no-js-notice {
  border-bottom: 1px solid #f1d68c;
  background: #fff8df;
  color: #503b00;
}

.no-js-notice__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
}

.no-js-notice a {
  color: #694f00;
  font-weight: 700;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgb(217 222 231 / 0.9);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-strong);
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 3px;
  width: 29px;
  height: 29px;
  padding: 3px;
  border: 1px solid #b9c7da;
  border-radius: 7px;
  background: #f7faff;
}

.brand-mark span {
  border-radius: 2px;
  background: var(--navy);
}

.brand-mark span:nth-child(2) {
  background: var(--geometry);
}

.brand-mark span:nth-child(3) {
  background: var(--verification);
}

.brand-mark span:nth-child(4) {
  background: var(--runtime);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.brand-copy__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-copy__subtitle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-muted);
  color: var(--ink-strong);
}

.site-nav .site-nav__download {
  margin-left: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
}

.site-nav .site-nav__icon-link {
  color: var(--ink-strong);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgb(23 54 93 / 0.045) 1px, transparent 1px) 0 0 /
      76px 100%,
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hero::after {
  position: absolute;
  inset: auto -80px -210px auto;
  width: 520px;
  height: 520px;
  border: 1px solid rgb(37 99 235 / 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgb(37 99 235 / 0.025),
    0 0 0 140px rgb(37 99 235 / 0.018);
  content: "";
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  min-height: 360px;
  padding-block: 56px 60px;
}

.eyebrow,
.section-kicker,
.dialog__eyebrow,
.filter-panel__eyebrow,
.compare-tray__eyebrow,
.empty-state__eyebrow {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.02;
}

.hero__lede {
  max-width: 690px;
  margin-bottom: 20px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.65;
}

.hero__paper {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero__paper a {
  color: var(--navy);
  font-weight: 700;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero__meta strong {
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.hero__snapshot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
  max-width: 720px;
  margin-top: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--navy);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.hero__snapshot a {
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 3px;
}

.hero__snapshot a:hover {
  text-decoration: underline;
}

.hero__instrument {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.93);
  box-shadow: 0 20px 60px rgb(15 23 42 / 0.08);
}

.search-form > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 750;
}

.search-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-control:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.14);
}

.search-control__glyph {
  position: absolute;
  left: 17px;
  width: 15px;
  height: 15px;
  border: 2px solid #728096;
  border-radius: 50%;
  pointer-events: none;
}

.search-control__glyph::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #728096;
  content: "";
  transform: rotate(45deg);
}

.search-control input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px 0 47px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-strong);
  font-size: 15px;
}

.search-control input::placeholder {
  color: #8893a4;
}

.search-control__clear {
  height: 34px;
  padding-inline: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-control__clear:hover {
  color: var(--ink-strong);
}

.search-control__submit {
  align-self: stretch;
  min-width: 84px;
  padding-inline: 18px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.search-control__submit:hover {
  background: var(--navy-deep);
}

.preset-group {
  margin-top: 20px;
}

.preset-group__label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preset-chip {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fbfcfe;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

.preset-chip:hover,
.preset-chip[aria-pressed="true"] {
  border-color: #9eb5d5;
  background: #f0f6ff;
  color: var(--navy);
}

.taxonomy-landscape {
  padding-block: 54px 60px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  scroll-margin-top: 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading > p {
  max-width: 560px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.section-heading--landscape {
  margin-bottom: 26px;
}

.axis-landscape {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.axis-card {
  --axis: var(--source);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 138px;
  padding: 24px;
  border-top: 3px solid var(--axis);
  border-right: 1px solid var(--border);
  background: transparent;
  text-align: left;
}

.axis-card:last-child {
  border-right: 0;
}

.axis-card:hover {
  background: color-mix(in srgb, var(--axis) 4%, white);
}

[data-axis="draft_source"],
[data-axis="draftSource"] {
  --axis: var(--source);
  --axis-tint: var(--source-tint);
}

[data-axis="draft_geometry"],
[data-axis="draftGeometry"] {
  --axis: var(--geometry);
  --axis-tint: var(--geometry-tint);
}

[data-axis="verification_fidelity"],
[data-axis="verificationFidelity"] {
  --axis: var(--verification);
  --axis-tint: var(--verification-tint);
}

[data-axis="runtime_execution"],
[data-axis="runtimeExecution"] {
  --axis: var(--runtime);
  --axis-tint: var(--runtime-tint);
}

.axis-card__index {
  color: var(--axis);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.axis-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.axis-card__body strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.axis-card__body span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.axis-card__count {
  grid-column: 2;
  align-self: end;
  color: var(--axis);
  font-size: 11px;
  font-weight: 750;
}

.explorer-section {
  padding-block: 56px 96px;
  scroll-margin-top: 80px;
}

.explorer-section__heading {
  margin-bottom: 30px;
}

.explorer-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.filter-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: #c4ccd8 transparent;
}

.filter-panel__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
}

.filter-panel__eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
}

.filter-panel__header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.text-button {
  min-height: 34px;
  padding: 5px 4px;
  background: transparent;
  color: var(--action-dark);
  font-size: 12px;
  font-weight: 750;
}

.text-button:hover {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-group {
  --axis: var(--navy);
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.filter-group:not([open]) summary::after {
  transform: rotate(-45deg);
}

.filter-group[data-axis] summary {
  box-shadow: inset 3px 0 0 var(--axis);
}

.filter-group__summary-count:not(:empty) {
  min-width: 19px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--axis-tint, var(--surface-muted));
  color: var(--axis, var(--navy));
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.filter-group fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 14px 15px;
  border: 0;
}

.facet-list {
  display: grid;
  gap: 2px;
}

.facet-option {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  min-height: 34px;
  padding: 7px 5px;
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.facet-option:hover {
  background: var(--surface-muted);
  color: var(--ink-strong);
}

.facet-option:has(input:checked) {
  background: var(--axis-tint, #f0f6ff);
  color: var(--ink-strong);
}

.facet-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 4px;
  accent-color: var(--axis, var(--action));
}

.facet-option--muted {
  color: var(--muted);
  font-style: italic;
}

.facet-count {
  min-width: 22px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.facet-option:has(input:disabled) {
  opacity: 0.46;
  cursor: not-allowed;
}

.filter-group--fieldset {
  min-width: 0;
  margin: 0;
  padding: 16px 18px 18px;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.filter-group--fieldset > legend {
  padding: 0;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 750;
}

.filter-help {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.segmented-control label {
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.segmented-control input:checked + span {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.12);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid rgb(15 111 255 / 0.35);
  outline-offset: 2px;
}

.radio-stack {
  display: grid;
  gap: 8px;
}

.radio-stack label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
}

.radio-stack label:has(input:checked) {
  border-color: #9eb5d5;
  background: #f5f9ff;
}

.radio-stack input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--action);
}

.radio-stack span {
  display: grid;
  gap: 2px;
  color: var(--muted-strong);
  font-size: 11px;
}

.radio-stack strong {
  color: var(--ink);
  font-size: 11px;
}

.radio-stack small {
  color: var(--muted);
  font-size: 10px;
}

.results-pane {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  margin-bottom: 12px;
  padding: 10px 2px;
}

.results-toolbar__primary,
.results-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-count {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
}

.results-count strong {
  font-family: var(--serif);
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.query-summary {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.filter-trigger {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

.filter-trigger__glyph {
  position: relative;
  width: 14px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.filter-trigger__glyph::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  border-top: 2px solid currentColor;
  content: "";
}

.filter-trigger__count {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  text-align: center;
}

.select-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.select-control select {
  min-height: 39px;
  padding: 7px 34px 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.icon-button {
  min-height: 39px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.icon-button:hover,
.filter-trigger:hover {
  border-color: #aeb8c6;
  background: var(--surface-muted);
}

.active-filter-region {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid #cfd9e8;
  border-radius: var(--radius-md);
  background: #f8fbff;
}

.active-filter-region__label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.active-filter-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #c5d2e5;
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 11px;
  font-weight: 650;
}

.active-filter-chip:hover {
  border-color: #9db0ca;
  background: #edf4ff;
}

.active-filter-chip__remove {
  position: relative;
  width: 11px;
  height: 11px;
}

.active-filter-chip__remove::before,
.active-filter-chip__remove::after {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 9px;
  height: 1px;
  background: currentColor;
  content: "";
}

.active-filter-chip__remove::before {
  transform: rotate(45deg);
}

.active-filter-chip__remove::after {
  transform: rotate(-45deg);
}

.matrix-status {
  min-height: 20px;
  margin: 0 2px 8px;
  color: var(--muted);
  font-size: 11px;
}

.results-surface {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.results-surface__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.results-surface__heading .section-kicker {
  margin-bottom: 3px;
  font-size: 9px;
}

.results-surface__heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
}

.results-surface__heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.role-key {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  margin-inline: 5px 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.role-key--core {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}

.role-key--inherited {
  border: 1px solid #aeb8c6;
  background: var(--surface);
  color: var(--muted-strong);
}

.role-key--none {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--muted);
}

.table-region {
  overflow: auto;
  max-height: min(70vh, 900px);
  scrollbar-color: #bdc6d3 #f4f6f8;
  scrollbar-width: thin;
}

.table-region:focus-visible,
.compare-table-region:focus-visible {
  outline-offset: -3px;
}

.results-table {
  width: 100%;
  min-width: 1180px;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
}

.results-table__select-column {
  width: 42px;
}

.results-table__work-column {
  width: 238px;
}

.results-table__date-column {
  width: 76px;
}

.results-table__axis-column {
  width: 164px;
}

.results-table__resources-column {
  width: 104px;
}

.results-table th,
.results-table td {
  padding: 13px 12px;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #e5e9ef;
  vertical-align: top;
}

.results-table th:last-child,
.results-table td:last-child {
  border-right: 0;
}

.results-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 46px;
  padding-block: 11px;
  border-bottom-color: var(--border-strong);
  background: #f8fafc;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-align: left;
  text-transform: uppercase;
}

.results-table thead th[data-axis] {
  box-shadow: inset 0 2px 0 var(--axis);
}

.results-table tbody tr:last-child th,
.results-table tbody tr:last-child td {
  border-bottom: 0;
}

.results-table tbody tr:hover {
  background: #fbfcff;
}

.results-table tbody tr[data-selected="true"] {
  background: #f4f8ff;
}

.table-sort {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.table-sort::after {
  margin-left: 5px;
  color: #8290a3;
  content: "↕";
}

.result-select-cell {
  text-align: center;
}

.compare-checkbox {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
}

.compare-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--action);
}

.work-cell {
  background: inherit;
  text-align: left;
}

.work-link {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.work-link strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.25;
}

.work-link span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.work-link:hover strong {
  color: var(--action);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.date-cell {
  color: var(--muted-strong);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.leaf-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.leaf-chip {
  --axis: var(--navy);
  --axis-tint: #f0f5fb;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--axis) 28%, var(--border));
  border-radius: 5px;
  background: var(--axis-tint);
  color: color-mix(in srgb, var(--axis) 74%, var(--ink));
  font-size: 9px;
  font-weight: 650;
  line-height: 1.3;
}

.leaf-chip small {
  color: inherit;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.leaf-chip[data-role="core"] {
  border-color: color-mix(in srgb, var(--axis) 58%, var(--border));
  box-shadow: inset 3px 0 0 var(--axis);
}

.leaf-chip[data-role="inherited"] {
  border-style: solid;
  background: var(--surface);
  color: var(--muted-strong);
}

.leaf-chip[data-role="none"] {
  border-color: var(--border);
  background: var(--surface-muted);
  color: var(--muted);
  font-style: italic;
}

.resource-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--navy);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.resource-link:hover {
  border-color: #9eb0ca;
  background: #f2f7ff;
  color: var(--action-dark);
}

.loading-row {
  display: grid;
  grid-template-columns: 1.3fr 2fr 0.7fr;
  gap: 28px;
  padding: 8px;
}

.loading-row span,
.result-card--loading span {
  height: 9px;
  border-radius: 999px;
  background: #e6eaf0;
}

.result-card-list {
  display: none;
}

.empty-state,
.error-state {
  display: grid;
  justify-items: center;
  min-height: 340px;
  padding: 64px 24px;
  text-align: center;
}

.empty-state__eyebrow {
  margin-bottom: 8px;
}

.empty-state h4,
.error-state h4 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 25px;
}

.empty-state > p:not(.empty-state__eyebrow),
.error-state > p:not(.empty-state__eyebrow) {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.button--primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--navy-deep);
  background: var(--navy-deep);
  color: #fff;
}

.button--secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--navy);
}

.button--secondary:hover {
  border-color: #9aa7b9;
  background: var(--surface-muted);
  color: var(--navy-deep);
}

.button--light {
  border-color: #fff;
  background: #fff;
  color: var(--navy-deep);
}

.button--light:hover {
  background: #eef5ff;
  color: var(--navy-deep);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 62px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: #fafbfd;
}

.pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pagination__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.pagination__button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.pagination__button:hover:not(:disabled) {
  border-color: #9eb0ca;
  background: #f2f7ff;
}

.pagination__button:disabled {
  color: #9da6b4;
  cursor: not-allowed;
  opacity: 0.7;
}

.compare-tray {
  position: fixed;
  z-index: 180;
  right: 24px;
  bottom: 22px;
  left: 24px;
  max-width: 1140px;
  margin-inline: auto;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 12px;
  background: rgb(16 42 73 / 0.97);
  color: #fff;
  box-shadow: 0 18px 60px rgb(15 23 42 / 0.3);
  backdrop-filter: blur(14px);
}

.compare-tray__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px 16px 12px 20px;
}

.compare-tray__eyebrow {
  margin-bottom: 1px;
  color: #9fc4f4;
  font-size: 8px;
}

.compare-tray h2 {
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}

.compare-selection-list {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.compare-selection-list li {
  overflow: hidden;
  max-width: 170px;
  padding: 5px 9px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  color: #e9f1fb;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-tray__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-button--light {
  color: #dceaff;
}

.text-button--light:hover {
  color: #fff;
}

.dialog {
  width: min(100% - 32px, 960px);
  max-height: min(90vh, 960px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.dialog:not([open]) {
  display: none;
}

.dialog::backdrop {
  background: rgb(8 19 34 / 0.58);
  backdrop-filter: blur(3px);
}

.dialog__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(90vh, 960px);
}

.dialog__header,
.dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.dialog__header {
  border-bottom: 1px solid var(--border);
}

.dialog__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  background: #fafbfd;
}

.dialog__eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
}

.dialog__header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.dialog__close {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
}

.dialog__close:hover {
  background: var(--surface-muted);
}

.dialog__close span::before,
.dialog__close span::after {
  position: absolute;
  top: 19px;
  left: 12px;
  width: 17px;
  height: 1.5px;
  background: var(--muted-strong);
  content: "";
}

.dialog__close span::before {
  transform: rotate(45deg);
}

.dialog__close span::after {
  transform: rotate(-45deg);
}

.dialog__body {
  overflow: auto;
  padding: 24px 22px 30px;
}

.detail-dialog {
  width: min(100% - 32px, 620px);
  margin-right: max(16px, calc((100vw - var(--page-width)) / 2));
}

.detail-date {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.detail-title {
  margin-bottom: 18px;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.42;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.detail-links .resource-link {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 11px;
}

.detail-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-axis {
  --axis: var(--navy);
  --axis-tint: #f0f5fb;
  min-height: 152px;
  padding: 16px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--axis);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--axis) 3%, white);
}

.detail-axis__index {
  margin-bottom: 3px;
  color: var(--axis);
  font-size: 9px;
  font-weight: 850;
}

.detail-axis h3 {
  margin-bottom: 13px;
  font-size: 13px;
}

.detail-axis__leaves {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.semantics-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--navy);
  background: #f4f7fb;
}

.semantics-note strong {
  color: var(--ink-strong);
  font-size: 12px;
}

.semantics-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.compare-dialog {
  width: min(100% - 32px, 1240px);
}

.compare-intro {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.compare-table-region {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  min-width: 180px;
  padding: 15px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 170px;
  min-width: 170px;
  background: #f8fafc;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: 0;
}

.compare-table thead th {
  background: #f8fafc;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 14px;
}

.mobile-filter-dialog {
  width: min(100% - 24px, 560px);
}

.mobile-filter-dialog__body {
  padding: 0;
}

.mobile-filter-placeholder {
  margin: 0;
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  background: var(--navy-deep);
  color: #dce6f3;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 230px;
  gap: clamp(40px, 6vw, 90px);
  padding-block: 64px 54px;
}

.site-footer .eyebrow {
  color: #93b7e6;
}

.site-footer h2 {
  max-width: 560px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 31px;
  line-height: 1.2;
}

.site-footer__brand > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 0 14px;
  color: #b7c7da;
  font-size: 13px;
  line-height: 1.7;
}

.semantics-list {
  display: grid;
  gap: 15px;
  margin: 0;
}

.semantics-list > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.semantics-list dt,
.semantics-list dd {
  margin: 0;
}

.semantics-list .role-key {
  margin: 0;
}

.semantics-list dd {
  color: #b7c7da;
  font-size: 11px;
  line-height: 1.55;
}

.site-footer__links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.site-footer__links h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
}

.site-footer__links a {
  color: #b7cbe4;
  font-size: 12px;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #8198b4;
  font-size: 10px;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  color: #adc4df;
  text-decoration: none;
}

@media (max-width: 1260px) {
  .page-frame {
    width: min(100% - 48px, var(--page-width));
  }

  .hero__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    gap: 48px;
  }

  .axis-card {
    padding: 20px;
  }

  .explorer-layout {
    grid-template-columns: 284px minmax(0, 1fr);
    gap: 20px;
  }

  .results-table__work-column {
    width: 220px;
  }

  .results-table__axis-column {
    width: 154px;
  }
}

@media (max-width: 1100px) {
  .brand-copy {
    display: grid;
    gap: 0;
  }

  .brand-copy__subtitle {
    font-size: 10px;
  }

  .site-nav a:not(.site-nav__download, .site-nav__icon-link) {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 48px;
  }

  .hero__copy {
    max-width: 780px;
  }

  .hero__instrument {
    max-width: 820px;
  }

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

  .axis-card:nth-child(2) {
    border-right: 0;
  }

  .axis-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    display: none;
  }

  .filter-trigger {
    display: inline-flex;
  }

}

@media (max-width: 820px) {
  .page-frame {
    width: min(100% - 32px, var(--page-width));
  }

  .site-header__inner {
    min-height: 62px;
  }

  .brand-copy__title {
    font-size: 15px;
  }

  .site-nav .site-nav__download {
    display: none;
  }

  .hero__inner {
    min-height: 0;
    padding-block: 40px 44px;
  }

  .hero h1 {
    font-size: clamp(36px, 8vw, 48px);
  }

  .hero__lede {
    font-size: 15px;
  }

  .hero__instrument {
    padding: 20px;
  }

  .section-heading {
    display: grid;
    gap: 14px;
  }

  .section-heading > p {
    margin: 0;
  }

  .taxonomy-landscape {
    padding-block: 44px;
  }

  .axis-card {
    min-height: 132px;
  }

  .explorer-section {
    padding-block: 44px 72px;
  }

  .results-toolbar {
    align-items: flex-end;
  }

  .results-toolbar__controls {
    align-items: flex-end;
  }

  .select-control {
    display: grid;
    gap: 2px;
  }

  .active-filter-region {
    align-items: flex-start;
  }

  .results-surface__heading {
    display: grid;
    gap: 10px;
  }

  .results-surface__heading > p {
    text-align: left;
  }

  .table-region {
    display: none;
  }

  .result-card-list {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: var(--surface-muted);
  }

  .result-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .result-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
  }

  .result-card__header .work-link strong {
    font-size: 17px;
  }

  .result-card__header p {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .result-card__header time {
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
  }

  .result-card__profile {
    display: grid;
    gap: 11px;
    margin: 14px 0;
  }

  .result-card__profile > div {
    --axis: var(--navy);
    --axis-tint: #f0f5fb;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .result-card__profile dt {
    padding-top: 4px;
    color: var(--axis);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
  }

  .result-card__profile dd {
    margin: 0;
  }

  .result-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
  }

  .result-card__footer .resource-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .compare-checkbox--labeled {
    display: flex;
    gap: 7px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
  }

  .result-card--loading {
    display: grid;
    gap: 12px;
  }

  .pagination {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .pagination p {
    justify-self: end;
  }

  .pagination__buttons {
    grid-column: 1 / -1;
  }

  .pagination__button {
    flex: 1;
  }

  .compare-tray {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .compare-tray__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .compare-selection-list {
    display: none;
  }

  .detail-profile {
    grid-template-columns: 1fr;
  }

  .detail-axis {
    min-height: 118px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .page-frame {
    width: min(100% - 24px, var(--page-width));
  }

  .site-nav .site-nav__icon-link {
    min-width: 54px;
    padding-inline: 8px;
    font-size: 11px;
    text-align: center;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .brand-copy__subtitle {
    display: none;
  }

  .hero {
    background:
      linear-gradient(90deg, rgb(23 54 93 / 0.04) 1px, transparent 1px) 0 0 /
        48px 100%,
      linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  }

  .hero__inner {
    gap: 28px;
    padding-block: 34px 36px;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: 37px;
    line-height: 1.05;
  }

  .hero__lede {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero__paper {
    font-size: 12px;
  }

  .hero__meta {
    gap: 7px;
    font-size: 11px;
  }

  .hero__instrument {
    padding: 15px;
    border-radius: var(--radius-md);
  }

  .search-control {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-control__submit {
    display: none;
  }

  .search-control input {
    height: 50px;
    padding-right: 8px;
    font-size: 14px;
  }

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

  .preset-chip {
    width: 100%;
    border-radius: 6px;
    text-align: left;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .axis-landscape {
    grid-template-columns: 1fr;
  }

  .axis-card,
  .axis-card:nth-child(2) {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .axis-card:last-child {
    border-bottom: 0;
  }

  .results-toolbar {
    display: grid;
    gap: 10px;
  }

  .results-toolbar__primary,
  .results-toolbar__controls {
    justify-content: space-between;
  }

  .results-toolbar__controls {
    width: 100%;
  }

  .select-control {
    flex: 1;
  }

  .select-control select {
    width: 100%;
  }

  .active-filter-region {
    display: grid;
  }

  .active-filter-region > .text-button {
    justify-self: start;
  }

  .results-surface__heading {
    padding: 16px;
  }

  .result-card__profile > div {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .pagination {
    padding-inline: 12px;
  }

  .dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 10px);
    margin: 10px 0 0;
    border-radius: 16px 16px 0 0;
  }

  .dialog__shell {
    max-height: calc(100dvh - 10px);
  }

  .detail-dialog {
    margin-right: 0;
  }

  .dialog__header,
  .dialog__footer {
    padding-inline: 16px;
  }

  .dialog__body {
    padding-inline: 16px;
  }

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

  .dialog__footer .button {
    width: 100%;
  }

  .compare-tray__inner {
    padding: 10px 12px;
  }

  .compare-tray__actions {
    gap: 5px;
  }

  .compare-tray .text-button {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 52px 44px;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer h2 {
    font-size: 27px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    gap: 18px;
    padding-block: 16px;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --border: #98a3b3;
    --border-strong: #697587;
    --muted: #445064;
  }

  .leaf-chip,
  .facet-option:has(input:checked),
  .active-filter-chip {
    border-width: 2px;
  }
}

@media print {
  .site-header,
  .hero__instrument,
  .filter-panel,
  .results-toolbar__controls,
  .active-filter-region,
  .research-landscape,
  .pagination,
  .compare-tray,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-frame {
    width: 100%;
  }

  .hero__inner,
  .explorer-layout {
    display: block;
  }

  .hero {
    border: 0;
    background: #fff;
  }

  .hero__inner {
    min-height: 0;
    padding-block: 18px;
  }

  .taxonomy-landscape {
    padding-block: 20px;
  }

  .explorer-section {
    padding-block: 20px;
  }

  .table-region {
    display: block;
    max-height: none;
    overflow: visible;
  }

  .result-card-list {
    display: none;
  }

  .results-table {
    min-width: 0;
    font-size: 8px;
  }

  .results-table thead th {
    position: static;
  }
}

/* Interactive research landscape */

.research-landscape {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.research-landscape > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 12px 16px;
  list-style: none;
}

.research-landscape > summary::-webkit-details-marker {
  display: none;
}

.research-landscape > summary::after {
  width: 9px;
  height: 9px;
  margin-left: 2px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.research-landscape[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.research-landscape > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.research-landscape > summary strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.research-landscape > summary small,
.research-landscape__hint {
  color: var(--muted);
  font-size: 10px;
}

.research-landscape__hint {
  margin-left: auto;
  font-weight: 700;
}

.research-landscape__body {
  display: grid;
  gap: 26px;
  padding: 20px 18px 24px;
  border-top: 1px solid var(--border);
}

.landscape-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.landscape-heading h3,
.landscape-heading p {
  margin: 0;
}

.landscape-heading h3 {
  font-size: 13px;
}

.landscape-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 10px;
}

.landscape-years {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 8px;
}

.landscape-bar,
.landscape-leaf {
  display: grid;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.landscape-bar {
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.landscape-bar:hover,
.landscape-leaf:hover {
  border-color: var(--border);
  background: var(--surface-muted);
}

.landscape-bar__label,
.landscape-bar strong,
.landscape-leaf strong {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.landscape-bar__track,
.landscape-leaf__track {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf1;
}

.landscape-bar__fill,
.landscape-leaf__fill {
  display: block;
  width: var(--bar-size, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

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

.landscape-axis {
  --axis: var(--navy);
  --axis-tint: #f0f5fb;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--axis) 2%, white);
}

.landscape-axis h4 {
  margin-bottom: 8px;
  color: var(--axis);
  font-size: 11px;
}

.landscape-axis__list {
  display: grid;
  gap: 2px;
}

.landscape-leaf {
  grid-template-columns: minmax(118px, 1.2fr) minmax(50px, 1fr) 28px;
  gap: 8px;
  min-height: 30px;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.landscape-leaf__label {
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landscape-leaf__fill {
  background: var(--axis);
}

.neighbor-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.neighbor-section h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.neighbor-section__note {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
}

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

.neighbor-item {
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
}

.neighbor-item:hover {
  border-color: #9eb0ca;
  background: #f4f7fb;
}

.neighbor-item span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 750;
}

.neighbor-item small {
  color: var(--muted);
  font-size: 9px;
}

.explorer-toast {
  position: fixed;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: var(--radius-sm);
  background: var(--navy-deep);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.leaf-chip--shared {
  box-shadow:
    inset 3px 0 0 var(--axis),
    0 0 0 2px color-mix(in srgb, var(--axis) 18%, transparent);
}

@media (max-width: 1100px) {
  .landscape-years {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }
}

@media (max-width: 820px) {
  .landscape-axes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .research-landscape__hint {
    display: none;
  }

  .landscape-heading {
    display: grid;
    gap: 4px;
  }

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

  .neighbor-list {
    grid-template-columns: 1fr;
  }

  .explorer-toast {
    right: 16px;
    bottom: 16px;
  }
}
