:root {
  color-scheme: light;
  --ink-950: #03131d;
  --ink-900: #061a24;
  --ink-800: #0b2733;
  --ink-700: #163a49;
  --ink-600: #315463;
  --ink-500: #5a7480;
  --line: #cbd8de;
  --line-strong: #9eb3bd;
  --paper: #ffffff;
  --canvas: #eef3f5;
  --cyan: #20a9e0;
  --cyan-dark: #087aa9;
  --cyan-soft: #e3f4fb;
  --green: #13865f;
  --green-dark: #0e684a;
  --green-soft: #e2f5ec;
  --amber: #c77a08;
  --amber-soft: #fff1d5;
  --red: #bd3f4a;
  --red-soft: #fdebed;
  --shadow: 0 18px 50px rgba(3, 19, 29, 0.18);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink-950);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(32, 169, 224, 0.32);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  background: var(--ink-950);
  border-bottom: 1px solid #214553;
}

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

.brand img {
  width: 142px;
  height: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: #315563;
}

.product-name {
  color: #c9dbe2;
  font-size: 14px;
  font-weight: 700;
}

.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #214553;
  border-radius: 7px;
  background: #071c27;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #98b0ba;
  font-size: 14px;
  font-weight: 700;
}

.view-tab svg,
.icon-button svg,
.compare-trigger svg,
.text-button svg,
.primary-button svg,
.secondary-button svg,
.mobile-filter-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.view-tab:hover,
.view-tab.is-active {
  background: #123443;
  color: #ffffff;
}

.view-tab.is-active svg {
  color: var(--cyan);
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.export-control {
  position: relative;
}

.export-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 248px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(3, 19, 29, 0.2);
}

.export-menu[hidden] {
  display: none;
}

.export-menu button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-800);
  text-align: left;
}

.export-menu button:hover,
.export-menu button:focus-visible {
  outline: 0;
  background: var(--cyan-soft);
}

.export-menu button > svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--cyan-dark);
}

.export-menu button > span {
  display: grid;
  gap: 2px;
}

.export-menu b {
  font-size: 14px;
}

.export-menu small {
  color: var(--ink-500);
  font-size: 12px;
}

.icon-button,
.compare-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #2c5261;
  border-radius: 6px;
  background: #071c27;
  color: #d8e5ea;
}

.icon-button:hover,
.compare-trigger:hover {
  border-color: var(--cyan);
  color: #ffffff;
}

.compare-trigger {
  gap: 8px;
  padding: 0 10px 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.compare-trigger b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--cyan);
  color: var(--ink-950);
  font-size: 12px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(520px, 1fr);
  gap: 64px;
  align-items: end;
  padding: 46px max(32px, calc((100vw - 1480px) / 2)) 40px;
  background: var(--ink-900);
  color: #ffffff;
  border-bottom: 1px solid #294b58;
}

.intro-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #53c4ee;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--cyan-dark);
}

.intro-copy h1,
.section-heading h2,
.dialog-header h2 {
  margin: 0;
  font-weight: 760;
  line-height: 1.08;
}

.intro-copy h1 {
  max-width: 720px;
  font-size: 46px;
}

.intro-copy > p:last-child {
  max-width: 740px;
  margin: 16px 0 0;
  color: #b8cbd3;
  font-size: 18px;
  line-height: 1.6;
}

.headline-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: stretch;
  border-top: 1px solid #315563;
  border-bottom: 1px solid #315563;
}

.headline-metrics > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 105px;
  padding: 18px;
  border-left: 1px solid #315563;
}

.headline-metrics > div:last-child {
  border-right: 1px solid #315563;
}

.headline-metrics strong {
  color: #ffffff;
  font-size: 31px;
  line-height: 1;
}

.headline-metrics span {
  margin-top: 10px;
  color: #9fb4bd;
  font-size: 13px;
  line-height: 1.25;
}

.headline-metrics .metric-accent strong {
  color: #70dab1;
}

.navigator {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 28px 70px;
}

.filter-toolbar {
  position: sticky;
  top: 68px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(3, 19, 29, 0.08);
}

.search-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink-500);
}

.search-field:focus-within {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px rgba(32, 169, 224, 0.12);
}

.search-field svg {
  width: 20px;
  height: 20px;
}

.search-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-950);
  font-size: 16px;
}

.search-field input::placeholder {
  color: #748c96;
}

.search-shortcut {
  padding: 0;
  border: 0;
  background: transparent;
}

.search-shortcut kbd {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #d3dfe4;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #f5f8f9;
  color: #647c86;
  font-family: inherit;
  font-size: 12px;
}

.search-shortcut:hover kbd,
.search-shortcut:focus-visible kbd {
  outline: 0;
  border-color: var(--cyan-dark);
  background: var(--cyan-soft);
  color: var(--ink-800);
}

.filter-controls {
  display: flex;
  align-items: end;
  gap: 8px;
}

.filter-controls label {
  display: grid;
  gap: 5px;
}

.filter-controls label > span {
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 800;
}

.filter-controls select {
  min-width: 142px;
  min-height: 48px;
  padding: 0 38px 0 12px;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23315463' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 650;
}

.filter-controls select:hover {
  border-color: var(--cyan-dark);
}

.reset-button {
  min-width: 48px;
  min-height: 48px;
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink-600);
}

.mobile-filter-toggle {
  display: none;
}

.context-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  gap: 20px;
}

.result-count {
  font-weight: 800;
}

.context-summary,
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px 4px 10px;
  border: 1px solid #91b5c4;
  border-radius: 5px;
  background: #e9f4f8;
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 750;
}

.filter-chip > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.filter-chip small {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.filter-chip svg {
  width: 15px;
  height: 15px;
  padding-left: 5px;
  border-left: 1px solid #a9c6d1;
}

.filter-chip:hover {
  border-color: var(--cyan-dark);
  background: #dff1f7;
}

.legend {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-600);
  font-size: 13px;
}

.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend .level-badge {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.legend-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-mark.direct {
  background: var(--green);
}

.legend-mark.contribution {
  background: var(--cyan-dark);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.quick-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.quick-paths button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink-950);
  text-align: left;
}

.quick-paths button:hover {
  border-color: var(--cyan-dark);
  box-shadow: 0 8px 24px rgba(3, 19, 29, 0.08);
}

.quick-paths button > svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 6px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.quick-paths button:nth-child(2) > svg {
  background: var(--red-soft);
  color: var(--red);
}

.quick-paths button:nth-child(3) > svg {
  background: var(--green-soft);
  color: var(--green-dark);
}

.quick-paths button span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quick-paths b {
  font-size: 15px;
}

.quick-paths small {
  color: var(--ink-500);
  font-size: 13px;
}

.matrix-shell {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  scrollbar-color: #7e9aa7 #e8eef1;
  scrollbar-width: thin;
}

.matrix-shell.is-draggable {
  cursor: grab;
}

.matrix-shell.is-dragging,
.matrix-shell.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

.compliance-matrix {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.compliance-matrix th,
.compliance-matrix td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compliance-matrix th:last-child,
.compliance-matrix td:last-child {
  border-right: 0;
}

.compliance-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 92px;
  padding: 12px;
  background: var(--ink-800);
  color: #ffffff;
  text-align: left;
}

.compliance-matrix thead th:first-child {
  left: 0;
  z-index: 8;
  width: 285px;
  min-width: 285px;
  background: var(--ink-950);
}

.framework-heading {
  display: grid;
  gap: 6px;
  min-width: 212px;
}

.framework-heading b {
  font-size: 14px;
}

.framework-heading span {
  color: #b9d0d8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.feature-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}

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

.feature-heading span {
  color: #9fb4bd;
  font-size: 12px;
  font-weight: 500;
}

.compliance-matrix tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 285px;
  min-width: 285px;
  padding: 0;
  background: #ffffff;
  box-shadow: 8px 0 15px rgba(3, 19, 29, 0.05);
}

.feature-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  min-height: 112px;
}

.feature-cell-main {
  padding: 14px;
}

.feature-cell-main button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-950);
  text-align: left;
}

.feature-cell-main button:hover h3 {
  color: var(--cyan-dark);
}

.feature-cell h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.feature-cell p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 750;
}

.status-pill {
  padding: 2px 5px;
  border-radius: 3px;
  background: #e9eef1;
  color: #4f6670;
  font-size: 12px;
  text-transform: uppercase;
}

.status-pill.new {
  background: var(--green-soft);
  color: var(--green-dark);
}

.status-pill.soon {
  background: var(--amber-soft);
  color: #79500b;
}

.pin-button {
  display: grid;
  place-items: center;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f7fafb;
  color: var(--ink-500);
}

.pin-button:hover,
.pin-button.is-selected {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.pin-button svg {
  width: 18px;
  height: 18px;
}

.coverage-td {
  width: 232px;
  min-width: 232px;
  padding: 8px;
  background: #fbfcfd;
}

.coverage-cell {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  min-height: 94px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
}

.coverage-cell:hover {
  border-color: currentColor;
  box-shadow: 0 5px 14px rgba(3, 19, 29, 0.08);
}

.coverage-cell.direct {
  background: var(--green-soft);
  color: var(--green-dark);
}

.coverage-cell.contribution {
  background: var(--cyan-soft);
  color: #155b78;
}

.level-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.level-badge.direct {
  background: var(--green);
}

.level-badge.contribution {
  background: var(--cyan-dark);
}

.coverage-copy {
  min-width: 0;
}

.coverage-copy b {
  display: block;
  overflow: hidden;
  color: currentColor;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-copy span {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.coverage-empty {
  display: grid;
  place-items: center;
  min-height: 94px;
  color: #b0c0c7;
  font-size: 18px;
}

.mobile-results {
  display: none;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 50px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--ink-500);
}

.empty-state h2 {
  margin: 16px 0 4px;
  font-size: 22px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--ink-500);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin: 26px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

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

.section-heading > p {
  margin: 0;
  color: var(--ink-600);
  font-size: 16px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.path-card:hover {
  border-color: var(--cyan-dark);
  box-shadow: 0 12px 30px rgba(3, 19, 29, 0.09);
}

.path-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.path-icon svg {
  width: 24px;
  height: 24px;
}

.path-card h3 {
  margin: 18px 0 7px;
  color: var(--ink-950);
  font-size: 21px;
  line-height: 1.25;
}

.path-card > p {
  margin: 0;
  color: var(--ink-700);
  font-size: 14px;
}

.path-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.path-count {
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.path-count b {
  color: var(--ink-950);
  font-size: 15px;
}

.path-frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.path-frameworks span {
  padding: 3px 6px;
  border-left: 2px solid var(--cyan-dark);
  background: #edf6f9;
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 800;
}

.path-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 34px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-800);
}

.path-empty > svg { width: 28px; height: 28px; color: var(--cyan-dark); }
.path-empty h3, .path-empty p { margin: 0; }
.path-empty h3 { color: var(--ink-950); }
.path-empty p { color: var(--ink-600); }

.path-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 22px;
}

.path-features span {
  padding: 5px 7px;
  border: 1px solid #cfdee4;
  border-radius: 4px;
  background: #f7fafb;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.path-card button {
  margin-top: auto;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  border: 1px solid var(--cyan-dark);
  background: var(--cyan-dark);
  color: #ffffff;
}

.primary-button:hover {
  border-color: #065f86;
  background: #065f86;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-800);
}

.secondary-button:hover {
  border-color: var(--cyan-dark);
  color: var(--cyan-dark);
}

.reference-list {
  display: grid;
  gap: 8px;
}

.reference-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.reference-item summary {
  display: grid;
  grid-template-columns: 190px 160px minmax(0, 1fr) 22px;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.reference-item summary::-webkit-details-marker {
  display: none;
}

.reference-framework {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 850;
}

.reference-code {
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 850;
}

.reference-summary {
  color: var(--ink-700);
  font-size: 14px;
}

.reference-item summary > svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.reference-item[open] summary > svg {
  transform: rotate(180deg);
}

.reference-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.reference-detail > div {
  padding: 18px;
}

.reference-detail > div + div {
  border-left: 1px solid var(--line);
}

.reference-detail h4 {
  margin: 0 0 7px;
  color: var(--ink-800);
  font-size: 12px;
  text-transform: uppercase;
}

.reference-detail p {
  margin: 0;
  color: var(--ink-800);
  font-size: 14px;
  line-height: 1.5;
}

.reference-warning-icon,
.detail-block.warning .warning-icon-only {
  display: flex;
  align-items: center;
  min-height: 22px;
  color: #b33b4a;
}

.reference-warning-icon svg,
.detail-block.warning .warning-icon-only svg {
  width: 18px;
  height: 18px;
}

.reference-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 18px 18px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.reference-source svg {
  width: 16px;
  height: 16px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 26px max(28px, calc((100vw - 1544px) / 2));
  background: var(--ink-950);
  color: #93aab4;
  border-top: 1px solid #294b58;
  font-size: 13px;
}

.page-footer > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-footer img {
  width: 120px;
  height: auto;
}

.page-footer p {
  margin: 0;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 19, 29, 0.54);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(560px, 100%);
  height: 100dvh;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.detail-drawer.is-open {
  transform: translateX(0);
}

.drawer-header,
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2,
.dialog-header h2 {
  margin: 4px 0 0;
  color: var(--ink-950);
  font-size: 25px;
}

.detail-kicker {
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.drawer-header .icon-button,
.dialog-header .icon-button {
  flex: 0 0 auto;
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink-700);
}

.drawer-content {
  overflow: auto;
  padding: 24px;
}

.detail-intro {
  display: grid;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-intro p {
  margin: 0;
  color: var(--ink-700);
}

.detail-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-status b {
  color: var(--ink-800);
}

.detail-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block:last-child {
  border-bottom: 0;
}

.detail-block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: var(--ink-800);
  font-size: 14px;
}

.detail-block h3 svg {
  width: 18px;
  height: 18px;
  color: var(--cyan-dark);
}

.detail-block p {
  margin: 0;
  color: var(--ink-700);
  font-size: 15px;
}

.detail-block.warning {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e6bd6b;
  border-radius: 6px;
  background: var(--amber-soft);
}

.detail-block.warning h3 svg {
  color: var(--amber);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  padding: 5px 7px;
  border-radius: 4px;
  background: #edf2f4;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 750;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #f7fafb;
}

dialog {
  width: min(1120px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(3, 19, 29, 0.62);
}

.compare-content {
  max-height: calc(100dvh - 150px);
  overflow: auto;
  padding: 20px 24px 28px;
}

.compare-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
}

.compare-empty svg {
  width: 40px;
  height: 40px;
  color: var(--ink-500);
}

.compare-empty h3 {
  margin: 16px 0 5px;
}

.compare-empty p {
  max-width: 440px;
  margin: 0;
  color: var(--ink-500);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

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

.compare-table th {
  background: var(--ink-800);
  color: #ffffff;
}

.compare-table th:first-child {
  width: 180px;
}

.compare-table td:first-child {
  font-size: 13px;
  font-weight: 800;
}

.compare-table .compare-feature-head {
  min-width: 190px;
}

.compare-feature-head div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.compare-feature-head button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #547382;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
}

.compare-feature-head button svg {
  width: 14px;
  height: 14px;
}

.compare-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.method-dialog {
  width: min(720px, calc(100% - 40px));
}

.method-content {
  display: grid;
  gap: 0;
  padding: 8px 24px 26px;
}

.method-content > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.method-content p {
  margin: 0;
  color: var(--ink-600);
}

.method-content p b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-950);
}

.method-content .method-warning {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e6bd6b;
  border-radius: 6px;
  background: var(--amber-soft);
}

.method-warning svg {
  width: 24px;
  height: 24px;
  color: var(--amber);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink-950);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: minmax(230px, 1fr) auto minmax(150px, 1fr);
    padding: 0 18px;
  }

  .product-name,
  .compare-trigger span {
    display: none;
  }

  .brand-divider {
    display: none;
  }

  .intro-band {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 28px 34px;
  }

  .headline-metrics {
    max-width: 820px;
  }

  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 48px;
  }

  .filter-controls select {
    width: 100%;
    min-width: 0;
  }

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

@media (max-width: 820px) {
  html {
    scroll-padding-top: 138px;
    scroll-padding-bottom: 82px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 62px;
    padding: 0 14px;
  }

  .brand img {
    width: 126px;
  }

  .view-tabs {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 58px;
    padding: 5px;
    box-shadow: var(--shadow);
  }

  .view-tab {
    min-height: 48px;
    padding: 0 8px;
  }

  .topbar-actions .icon-button {
    display: none;
  }

  .intro-band {
    padding: 30px 18px 26px;
  }

  .intro-copy h1 {
    font-size: 36px;
  }

  .intro-copy > p:last-child {
    font-size: 16px;
  }

  .headline-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .headline-metrics > div:nth-child(3) {
    border-top: 1px solid #315563;
  }

  .headline-metrics > div:nth-child(4) {
    border-top: 1px solid #315563;
    border-right: 1px solid #315563;
  }

  .headline-metrics > div {
    min-height: 86px;
    padding: 14px;
  }

  .headline-metrics strong {
    font-size: 27px;
  }

  .navigator {
    padding: 16px 14px 100px;
  }

  .filter-toolbar {
    top: 62px;
    gap: 10px;
    padding: 10px;
  }

  .search-field kbd {
    display: none;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink-800);
    font-weight: 800;
  }

  .mobile-filter-toggle b {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--cyan-soft);
    color: var(--cyan-dark);
    font-size: 12px;
  }

  .filter-controls {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .filter-toolbar.filters-open .filter-controls {
    display: grid;
  }

  .reset-button {
    width: 100%;
  }

  .context-row {
    align-items: flex-start;
    min-height: 62px;
    padding: 10px 0;
  }

  .legend > span {
    display: none;
  }

  .quick-paths {
    grid-template-columns: 1fr;
  }

  .quick-paths button {
    min-height: 68px;
  }

  .matrix-shell {
    display: none;
  }

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

  .mobile-feature {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
  }

  .mobile-feature-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .mobile-feature-main {
    padding: 15px;
  }

  .mobile-feature-main button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-950);
    text-align: left;
  }

  .mobile-feature-main h3 {
    margin: 5px 0;
    font-size: 17px;
  }

  .mobile-feature-main p {
    margin: 0;
    color: var(--ink-500);
    font-size: 14px;
  }

  .mobile-coverages {
    display: grid;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
  }

  .mobile-coverage {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 10px 13px;
    border: 0;
    background: #ffffff;
    color: var(--ink-950);
    text-align: left;
    scroll-margin-top: 138px;
    scroll-margin-bottom: 82px;
  }

  .mobile-coverage .level-badge {
    width: 30px;
    height: 30px;
  }

  .mobile-coverage b,
  .mobile-coverage span {
    display: block;
  }

  .mobile-coverage b {
    font-size: 13px;
  }

  .mobile-coverage span {
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-coverage > svg {
    width: 17px;
    height: 17px;
    color: var(--ink-500);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

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

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

  .path-card {
    min-height: 0;
  }

  .reference-item summary {
    grid-template-columns: 1fr 22px;
    gap: 8px;
  }

  .reference-code,
  .reference-summary {
    grid-column: 1;
  }

  .reference-item summary > svg {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

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

  .reference-detail > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px 96px;
  }

  .page-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .drawer-actions {
    grid-template-columns: 1fr;
  }

  .compare-dialog,
  .method-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .compare-content {
    padding: 14px;
  }

  .compare-table {
    width: max-content;
    min-width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar-actions {
    gap: 4px;
  }

  .compare-trigger {
    min-width: 40px;
    padding: 0 7px;
  }

  .compare-trigger svg {
    display: none;
  }

  .headline-metrics span {
    font-size: 12px;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .drawer-header,
  .drawer-content,
  .drawer-actions {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Integration with the shared Argus page shell. */
.compliance-page > main {
  padding-top: 78px;
}

.compliance-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #214553;
  border-radius: 7px;
  background: var(--ink-950);
}

.compliance-page .filter-toolbar {
  top: 78px;
}

.compliance-page .feature-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  .compliance-page > main {
    padding-top: 68px;
  }

  .compliance-viewbar {
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 6px;
  }

  .compliance-viewbar .view-tabs {
    margin: 0;
  }

  .compliance-page .filter-toolbar {
    top: 68px;
  }
}

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