.evidence-body {
  background: #eef3f5;
}

.evidence-body [hidden] {
  display: none !important;
}

.evidence-body .topbar {
  --content: 1420px;
}

.evidence-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(520px, 0.9fr);
  gap: 56px;
  overflow: hidden;
  align-items: end;
  min-height: 390px;
  background:
    radial-gradient(circle at 84% 24%, rgba(22, 207, 194, 0.17), transparent 29%),
    radial-gradient(circle at 12% 90%, rgba(47, 126, 216, 0.13), transparent 26%),
    linear-gradient(145deg, #04131f, #082d49 68%, #0a4056);
  padding: 72px max(28px, calc((100vw - 1420px) / 2)) 66px;
  color: #fff;
}

.evidence-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    linear-gradient(rgba(78, 169, 193, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 169, 193, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(120deg, #000, transparent 78%);
}

.evidence-hero-copy,
.evidence-hero-stats {
  position: relative;
  z-index: 1;
}

.evidence-hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.evidence-hero-lead {
  max-width: 760px;
  margin: 0;
  color: #d7e5eb;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
}

.evidence-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pdf-workbench-entry {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 0 12px;
  min-width: min(100%, 340px);
  min-height: 70px;
  align-items: center;
  border: 1px solid rgba(142, 240, 200, 0.34);
  border-radius: 13px;
  background: rgba(8, 45, 68, 0.74);
  padding: 11px 15px 11px 11px;
  box-shadow: 0 14px 30px rgba(1, 11, 18, 0.16);
  backdrop-filter: blur(12px);
}

.pdf-workbench-entry > span {
  grid-row: span 2;
  display: grid;
  width: 43px;
  height: 48px;
  place-items: center;
  border-radius: 8px 8px 11px 11px;
  background: #d9292f;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.pdf-workbench-entry strong {
  align-self: end;
  color: #fff;
  font-size: 15px;
}

.pdf-workbench-entry small {
  align-self: start;
  color: #bcd2dc;
  font-size: 11px;
}

.pdf-workbench-entry:hover,
.pdf-workbench-entry:focus-visible {
  border-color: #8ef0c8;
  background: rgba(10, 64, 84, 0.82);
  outline: none;
}

.evidence-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(142, 240, 200, 0.2);
  border-radius: 18px;
  background: rgba(5, 22, 36, 0.52);
  box-shadow: 0 18px 45px rgba(1, 11, 18, 0.18);
  backdrop-filter: blur(14px);
}

.evidence-hero-stats div {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid rgba(213, 224, 232, 0.12);
  border-bottom: 1px solid rgba(213, 224, 232, 0.12);
}

.evidence-hero-stats div:nth-child(2n) {
  border-right: 0;
}

.evidence-hero-stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.evidence-hero-stats strong {
  display: block;
  color: #8ef0c8;
  font-size: 34px;
  line-height: 1.1;
}

.evidence-hero-stats span {
  display: block;
  margin-top: 7px;
  color: #c4d4dd;
  font-size: 13px;
}

.evidence-shell {
  max-width: 1420px;
  margin: 0 auto;
  padding: 32px 28px 72px;
}

.comparison-caution {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: start;
  margin-bottom: 22px;
  border: 1px solid #e4d7ae;
  border-radius: 12px;
  background: #fffbef;
  padding: 14px 16px;
}

.comparison-caution > div {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #f1c75b;
  color: #513d0d;
  font-weight: 900;
}

.comparison-caution p {
  margin: 1px 0 0;
  color: #64552e;
  font-size: 13px;
  line-height: 1.72;
}

.comparison-caution strong {
  color: #3d310f;
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.product-tabs button {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfdae1;
  border-radius: 14px;
  background: #fff;
  padding: 17px 18px 15px;
  color: #102638;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.product-tabs button::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--product-accent, #16cfc2);
  content: "";
  opacity: 0.55;
}

.product-tabs button:hover,
.product-tabs button:focus-visible,
.product-tabs button.active {
  transform: translateY(-2px);
  border-color: var(--product-accent, #0d8e91);
  box-shadow: 0 12px 26px rgba(7, 26, 43, 0.08);
  outline: none;
}

.product-tabs button.active {
  background: #f8fcfc;
}

.product-tabs span,
.product-tabs b,
.product-tabs small {
  display: block;
}

.product-tabs span {
  color: #8294a1;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.product-tabs b {
  margin: 5px 0 4px;
  font-size: 18px;
}

.product-tabs small {
  overflow: hidden;
  color: #607180;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-overview,
.research-library {
  border: 1px solid #d6e0e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 26, 43, 0.05);
}

.evidence-overview {
  margin-bottom: 24px;
  padding: 28px;
}

.overview-heading,
.library-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.overview-heading > div:first-child > span,
.library-heading > div:first-child > span {
  color: #0d8e91;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-heading h2,
.library-heading h2 {
  margin: 5px 0 6px;
  font-size: 28px;
  letter-spacing: -0.025em;
}

.overview-heading p,
.library-heading p {
  margin: 0;
  color: #607180;
  font-size: 14px;
}

.evidence-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  justify-content: flex-end;
  color: #4e6575;
  font-size: 13px;
  font-weight: 750;
}

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

.overview-tools {
  display: grid;
  gap: 13px;
  justify-items: end;
}

.overview-switch {
  display: flex;
  gap: 4px;
  border: 1px solid #d7e1e7;
  border-radius: 999px;
  background: #f6f9fa;
  padding: 4px;
}

.overview-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 7px 14px;
  color: #607180;
  font-weight: 800;
  cursor: pointer;
}

.overview-switch button.active {
  background: #0b3653;
  color: #fff;
}

.overview-switch button:focus-visible,
.domain-selector button:focus-visible,
.domain-manufacturer-card > button:focus-visible {
  outline: 3px solid rgba(13, 142, 145, 0.24);
  outline-offset: 2px;
}

.domain-overview {
  margin-top: 24px;
}

.domain-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
}

.domain-selector button {
  min-width: 0;
  min-height: 68px;
  border: 1px solid #d7e2e7;
  border-radius: 12px;
  background: #f8fafb;
  padding: 11px 13px;
  color: #294353;
  text-align: left;
  cursor: pointer;
  transition: 0.16s ease;
}

.domain-selector button:hover,
.domain-selector button.active {
  transform: translateY(-1px);
  border-color: #66aaa8;
  background: #eef8f7;
}

.domain-selector b,
.domain-selector span {
  display: block;
}

.domain-selector b {
  font-size: 13px;
  line-height: 1.35;
}

.domain-selector span {
  margin-top: 5px;
  color: #70828f;
  font-size: 10px;
}

.domain-panel {
  margin-top: 13px;
  border: 1px solid #cfdee4;
  border-radius: 15px;
  background: #f5f9fa;
  padding: 20px;
}

.domain-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
  border-bottom: 1px solid #dce7eb;
  padding-bottom: 16px;
}

.domain-panel-heading > div:first-child > span {
  color: #0d8e91;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.domain-panel-heading h3 {
  margin: 5px 0 4px;
  color: #13364a;
  font-size: 22px;
}

.domain-panel-heading > div:first-child > p {
  margin: 0;
  color: #667a87;
  font-size: 12px;
  line-height: 1.6;
}

.domain-panel-meta {
  display: flex;
  flex: none;
  gap: 20px;
}

.domain-panel-meta p {
  margin: 0;
  text-align: right;
}

.domain-panel-meta strong,
.domain-panel-meta span {
  display: block;
}

.domain-panel-meta strong {
  color: #0b3653;
  font-size: 23px;
}

.domain-panel-meta span {
  margin-top: 2px;
  color: #738490;
  font-size: 9px;
}

.domain-manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  outline: none;
}

.domain-manufacturer-grid:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(13, 142, 145, 0.18);
  outline-offset: 4px;
}

.domain-manufacturer-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #d7e2e7;
  border-radius: 13px;
  background: #fff;
  padding: 16px;
}

.domain-manufacturer-card.active {
  border-color: #67aaa8;
  box-shadow: 0 0 0 3px rgba(13, 142, 145, 0.09);
}

.domain-manufacturer-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e6ecef;
  padding-bottom: 13px;
}

.domain-manufacturer-card header > div {
  min-width: 0;
}

.domain-manufacturer-card h4 {
  overflow: hidden;
  margin: 7px 0 0;
  color: #102638;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-manufacturer-card header > p {
  flex: none;
  margin: 0;
  text-align: right;
}

.domain-manufacturer-card header > p strong,
.domain-manufacturer-card header > p span {
  display: block;
}

.domain-manufacturer-card header > p strong {
  color: #0b3653;
  font-size: 22px;
}

.domain-manufacturer-card header p span {
  color: #7a8b96;
  font-size: 9px;
}

.domain-manufacturer-card dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}

.domain-manufacturer-card dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.domain-manufacturer-card dt {
  color: #7a8b96;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.domain-manufacturer-card dd {
  min-width: 0;
  margin: 0;
  color: #3d5665;
  font-size: 11px;
  line-height: 1.55;
}

.domain-manufacturer-card > button {
  min-height: 44px;
  margin-top: auto;
  border: 1px solid #bad1d6;
  border-radius: 9px;
  background: #f4faf9;
  color: #087f78;
  font-weight: 850;
  cursor: pointer;
}

.domain-manufacturer-card > button:hover {
  border-color: #79b7b4;
  background: #eaf7f5;
}

.manufacturer-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 11px;
  margin-top: 24px;
}

.manufacturer-map-card {
  min-width: 0;
  border: 1px solid #d8e2e7;
  border-radius: 14px;
  background: #f9fbfc;
  padding: 15px;
  color: #102638;
  text-align: left;
  cursor: pointer;
  transition: 0.16s ease;
}

.manufacturer-map-card:hover,
.manufacturer-map-card:focus-visible,
.manufacturer-map-card.active {
  transform: translateY(-2px);
  border-color: #76b8b5;
  background: #f3faf9;
  box-shadow: 0 10px 22px rgba(7, 26, 43, 0.07);
  outline: none;
}

.manufacturer-map-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.manufacturer-map-head strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manufacturer-map-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 14px 0 10px;
}

.manufacturer-map-count b {
  color: #0b3653;
  font-size: 29px;
}

.manufacturer-map-count span,
.manufacturer-map-card > small {
  color: #708390;
  font-size: 10px;
}

.manufacturer-map-tags {
  display: flex;
  overflow: hidden;
  gap: 5px;
  margin-bottom: 10px;
}

.manufacturer-map-tags span {
  flex: none;
  border-radius: 999px;
  background: #e9f4f3;
  padding: 3px 7px;
  color: #147a75;
  font-size: 9px;
  font-weight: 750;
}

.overview-footnote {
  margin: 17px 0 0;
  border-left: 3px solid #d0a745;
  padding-left: 11px;
  color: #6a5b34;
  font-size: 11px;
  line-height: 1.7;
}

.quality-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid #e4ebef;
  padding-top: 17px;
  color: #607180;
  font-size: 12px;
}

.quality-line b {
  color: #102638;
}

.quality-line p {
  flex: 1 1 440px;
  margin: 0;
  border-left: 3px solid #d9292f;
  padding-left: 10px;
  color: #8e2830;
}

.research-library {
  padding: 28px;
}

.owner-switch {
  display: flex;
  gap: 4px;
  border: 1px solid #d7e1e7;
  border-radius: 999px;
  background: #f6f9fa;
  padding: 4px;
}

.owner-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 7px 13px;
  color: #607180;
  font-weight: 750;
  cursor: pointer;
}

.owner-switch button.active {
  background: #0b3653;
  color: #fff;
}

.parallel-note {
  margin-top: 21px;
  border: 1px solid #cfe0e5;
  border-radius: 12px;
  background: #f4f9fa;
  padding: 12px 14px;
  color: #526a78;
  font-size: 12px;
  line-height: 1.7;
}

.parallel-note strong {
  color: #174a58;
}

.evidence-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(5, minmax(130px, 0.75fr)) auto;
  gap: 10px;
  margin: 23px 0;
  border: 1px solid #dae3e8;
  border-radius: 14px;
  background: #f7f9fa;
  padding: 13px;
}

.evidence-filters label {
  min-width: 0;
}

.evidence-filters label > span {
  display: block;
  margin: 0 0 5px 2px;
  color: #687b89;
  font-size: 10px;
  font-weight: 750;
}

.evidence-filters input,
.evidence-filters select {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd7de;
  border-radius: 9px;
  background: #fff;
  padding: 0 10px;
  color: #1e3343;
  font: inherit;
  font-size: 12px;
}

.evidence-search {
  position: relative;
  align-self: end;
}

.evidence-search > span {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 12px;
  color: #6f8290;
  font-size: 21px !important;
}

.evidence-search input {
  padding-left: 38px;
}

.clear-filters {
  align-self: end;
  height: 40px;
  border: 1px solid #b9c8d1;
  border-radius: 9px;
  background: #fff;
  padding: 0 13px;
  color: #405767;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.manufacturer-groups {
  display: grid;
  gap: 24px;
}

.manufacturer-section {
  overflow: hidden;
  border: 1px solid #d5e1e6;
  border-radius: 16px;
  background: #f7fafb;
}

.manufacturer-section[open] {
  box-shadow: 0 10px 26px rgba(7, 26, 43, 0.05);
}

.manufacturer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid transparent;
  background: #fff;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.manufacturer-section[open] .manufacturer-heading {
  border-bottom-color: #e0e8ec;
}

.manufacturer-heading::-webkit-details-marker {
  display: none;
}

.manufacturer-heading > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.manufacturer-heading h3 {
  overflow: hidden;
  margin: 0;
  color: #102638;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manufacturer-heading-meta {
  display: flex;
  flex: none;
  align-items: baseline;
  gap: 6px;
  color: #6b7f8c;
}

.manufacturer-heading-meta strong {
  color: #0b3653;
  font-size: 22px;
}

.manufacturer-heading-meta span {
  font-size: 11px;
}

.manufacturer-theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 20px 0;
}

.manufacturer-theme-list span {
  border-radius: 999px;
  background: #e8f4f3;
  padding: 4px 8px;
  color: #177b76;
  font-size: 10px;
  font-weight: 750;
}

.manufacturer-lanes {
  display: grid;
  gap: 22px;
  padding: 18px 20px 22px;
}

.study-lane {
  min-width: 0;
}

.study-lane + .study-lane {
  border-top: 1px solid #dfe8ec;
  padding-top: 20px;
}

.study-lane-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.study-lane-heading > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.study-lane-heading h4 {
  margin: 0;
  color: #17384b;
  font-size: 15px;
}

.study-lane-heading span {
  color: #6d808d;
  font-size: 10px;
}

.study-lane-heading small {
  color: #8b7650;
  font-size: 10px;
}

.study-strip {
  display: grid;
  grid-auto-columns: minmax(310px, 360px);
  grid-auto-flow: column;
  gap: 13px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 13px;
  scroll-snap-type: x proximity;
  scrollbar-color: #b8ced5 transparent;
  scrollbar-width: thin;
}

.study-strip .record-card {
  min-height: 385px;
  scroll-snap-align: start;
}

.record-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  border: 1px solid #dce5ea;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  transition: 0.18s ease;
}

.record-card:hover {
  transform: translateY(-3px);
  border-color: #adc9d4;
  box-shadow: 0 12px 25px rgba(7, 26, 43, 0.07);
}

.record-top {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #607180;
  font-size: 11px;
}

.record-top > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-top small {
  margin-left: auto;
  white-space: nowrap;
}

.study-design-badge {
  overflow: hidden;
  border-radius: 999px;
  background: #e9f1f6;
  padding: 4px 8px;
  color: #37647d;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-badge {
  flex: none;
  border-radius: 999px;
  background: #edf4fb;
  padding: 3px 7px;
  color: #2467ad;
  font-size: 10px;
  font-weight: 850;
}

.owner-badge.sinovac {
  background: #fff0f0;
  color: #b52229;
}

.record-title {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  color: #102638;
  text-align: left;
  cursor: pointer;
}

.record-title h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 15px 0 10px;
  font-size: 17px;
  line-height: 1.48;
  letter-spacing: -0.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.record-citation {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #607180;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 15px 0;
}

.record-tags span {
  border-radius: 999px;
  background: #f0f4f6;
  padding: 3px 7px;
  color: #536a79;
  font-size: 10px;
}

.record-tags span.domain {
  background: #e9f7f5;
  color: #087f78;
}

.record-context {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 15px;
  color: #607180;
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.record-context b {
  display: block;
  margin-bottom: 3px;
  color: #405767;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.record-foot {
  display: grid;
  grid-template-columns: 0.7fr 0.9fr auto;
  gap: 10px;
  align-items: end;
  margin-top: auto;
  border-top: 1px solid #e7edf0;
  padding-top: 14px;
}

.record-foot span,
.record-foot b {
  display: block;
}

.record-foot span {
  color: #7b8d99;
  font-size: 9px;
}

.record-foot b {
  margin-top: 2px;
  color: #203849;
  font-size: 12px;
}

.record-foot button {
  border: 0;
  background: none;
  padding: 5px 0;
  color: #087f78;
  font-weight: 850;
  cursor: pointer;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-top: 24px;
}

.pagination button,
.empty-state button {
  border: 1px solid #bdccd5;
  border-radius: 9px;
  background: #fff;
  padding: 8px 13px;
  color: #405767;
  font-weight: 750;
  cursor: pointer;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination span {
  color: #607180;
  font-size: 13px;
}

.loading-state,
.empty-state {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  color: #607180;
  text-align: center;
}

.loading-state span {
  width: 28px;
  height: 28px;
  border: 3px solid #dce7eb;
  border-top-color: #0d8e91;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state strong {
  color: #c1ced5;
  font-size: 52px;
}

.empty-state h3 {
  margin: 4px 0;
  color: #203849;
}

.empty-state p {
  margin: 0 0 15px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(3, 16, 27, 0.62);
  backdrop-filter: blur(5px);
}

.drawer-backdrop[hidden] {
  display: none;
}

.evidence-drawer {
  position: relative;
  width: min(680px, 94vw);
  height: 100%;
  overflow-y: auto;
  background: #f5f8f9;
  box-shadow: -20px 0 60px rgba(2, 15, 24, 0.25);
  padding: 34px 34px 50px;
}

.drawer-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #cbd7dd;
  border-radius: 50%;
  background: #fff;
  color: #304a5b;
  font-size: 25px;
  cursor: pointer;
}

.drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-right: 50px;
}

.drawer-meta span {
  border-radius: 999px;
  background: #e8eef2;
  padding: 5px 9px;
  color: #526978;
  font-size: 11px;
  font-weight: 750;
}

.drawer-meta span.owner {
  background: #fff0f0;
  color: #b52229;
}

.evidence-drawer h2 {
  margin: 18px 0 10px;
  color: #102638;
  font-size: 27px;
  line-height: 1.42;
  letter-spacing: -0.025em;
}

.drawer-citation {
  margin: 0;
  color: #607180;
  font-size: 13px;
  line-height: 1.7;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.drawer-actions button,
.drawer-actions a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9ccd5;
  border-radius: 9px;
  background: #fff;
  padding: 8px 11px;
  color: #174a70;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.drawer-grid div,
.drawer-section {
  border: 1px solid #dce5ea;
  border-radius: 12px;
  background: #fff;
  padding: 15px;
}

.drawer-grid span,
.drawer-section h3 {
  display: block;
  margin: 0 0 7px;
  color: #0d8e91;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.drawer-grid p,
.drawer-section p {
  margin: 0;
  color: #405767;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.drawer-section {
  margin-bottom: 10px;
}

.noscript-note {
  position: fixed;
  z-index: 2000;
  right: 18px;
  bottom: 18px;
  max-width: 480px;
  border: 1px solid #e6b9b9;
  border-radius: 10px;
  background: #fff1f1;
  padding: 12px 14px;
  color: #9f242a;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .evidence-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .evidence-hero-stats {
    max-width: 760px;
  }

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

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

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

  .evidence-search {
    grid-column: span 2;
  }

}

@media (max-width: 780px) {
  .evidence-body .global-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .evidence-hero {
    min-height: 0;
    padding: 52px 20px;
  }

  .evidence-hero h1 {
    font-size: 42px;
  }

  .evidence-hero-stats div {
    padding: 16px;
  }

  .evidence-shell {
    padding: 20px 14px 52px;
  }

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

  .evidence-overview,
  .research-library {
    padding: 18px 14px;
  }

  .overview-heading,
  .library-heading {
    flex-direction: column;
  }

  .overview-tools {
    width: 100%;
    justify-items: start;
  }

  .evidence-legend {
    justify-content: flex-start;
  }

  .domain-panel {
    padding: 16px 14px;
  }

  .domain-panel-heading {
    flex-direction: column;
    gap: 12px;
  }

  .domain-panel-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .domain-panel-meta p {
    text-align: left;
  }

  .domain-manufacturer-grid {
    grid-auto-columns: minmax(280px, 84vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-color: #b8ced5 transparent;
    scrollbar-width: thin;
  }

  .domain-manufacturer-card {
    scroll-snap-align: start;
  }

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

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

  .evidence-search {
    grid-column: span 2;
  }

  .clear-filters {
    grid-column: span 2;
  }

  .manufacturer-heading {
    align-items: flex-start;
    padding: 15px;
  }

  .manufacturer-heading > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .manufacturer-heading h3 {
    font-size: 20px;
  }

  .manufacturer-theme-list {
    padding: 12px 14px 0;
  }

  .manufacturer-lanes {
    padding: 16px 14px 18px;
  }

  .study-lane-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .study-strip {
    grid-auto-columns: minmax(270px, 86vw);
  }

  .study-strip .record-card {
    min-height: 0;
  }

  .evidence-drawer {
    width: 100vw;
    padding: 24px 18px 40px;
  }

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

@media (max-width: 480px) {
  .evidence-hero-stats {
    grid-template-columns: 1fr;
  }

  .evidence-hero-stats div,
  .evidence-hero-stats div:nth-child(2n),
  .evidence-hero-stats div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(213, 224, 232, 0.12);
  }

  .evidence-hero-stats div:last-child {
    border-bottom: 0;
  }

  .manufacturer-map {
    grid-template-columns: 1fr;
  }

  .domain-selector {
    grid-template-columns: 1fr;
  }

  .overview-switch {
    width: 100%;
  }

  .overview-switch button {
    flex: 1;
  }

  .evidence-filters {
    grid-template-columns: 1fr;
  }

  .evidence-search,
  .clear-filters {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-state span {
    animation: none;
  }

  .product-tabs button,
  .record-card,
  .domain-selector button {
    transition: none;
  }
}
