.prototype-preview {
  margin: 0;
}

.apse {
  --blue-950: #101157;
  --blue-900: #153b72;
  --blue-800: #255f9e;
  --blue-700: #337ab7;
  --blue-600: #2e87c8;
  --blue-100: #e5eff8;
  --blue-50: #f1f6fa;
  --un-blue: #009edb; /* UN/ESCAP brand blue — used sparingly as an accent */
  --ink: #212529;
  --muted: #596674;
  --line: #d5e0ea;
  --soft: #f2f4f6;
  --white: #fff;
  --green: #237a57;
  --green-bg: #eaf7f0;
  --amber: #9b6515;
  --amber-bg: #fff5df;
  --slate-bg: #eef2f6;
  --shadow: 0 8px 28px rgba(16, 17, 87, 0.08);
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Manrope", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* When page content is shorter than the viewport (e.g. the blank search
   state, or zoomed way out), stretch the closing About section to fill the
   remaining space instead of leaving bare white background beneath it. */
.apse > .app-view {
  flex: 0 0 auto;
}

.apse,
.apse * {
  box-sizing: border-box;
}

.apse button,
.apse input,
.apse select {
  font: inherit;
}

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

.apse a {
  color: inherit;
}

.gateway-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

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

.gateway-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #cbd9e5;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 14px rgba(16, 17, 87, 0.06);
  backdrop-filter: blur(10px);
}

.gateway-nav-inner {
  display: flex;
  min-height: 66px;
  align-items: stretch;
  justify-content: space-between;
  gap: 32px;
}

.gateway-nav-brand {
  display: flex;
  min-width: 215px;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  color: var(--blue-950);
  text-decoration: none;
}

.gateway-nav-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.gateway-nav-brand strong {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.gateway-nav-brand span {
  margin-top: 3px;
  color: #708092;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-nav-brand .gateway-beta-badge {
  display: inline-flex;
  margin: 0 0 0 2px;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid #d8a52b;
  border-radius: 999px;
  color: #624500;
  background: #fff3c4;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.gateway-nav-links {
  display: flex;
  align-items: stretch;
}

.gateway-nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: #4c5e70;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gateway-nav-links a::after {
  position: absolute;
  right: 20px;
  bottom: -1px;
  left: 20px;
  height: 3px;
  background: var(--blue-700);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: 0.2s ease;
}

.gateway-nav-links a:hover,
.gateway-nav-links a.active {
  color: var(--blue-700);
}

.gateway-nav-links a:hover::after,
.gateway-nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-number {
  color: #91a3b4;
  font-size: 9px;
  font-weight: 700;
}

.nav-label-short {
  display: none;
}

/* Google Translate widget in the nav — tame the default styling */
.nav-translate {
  display: flex;
  align-items: center;
  padding-left: 16px;
}

.nav-translate .goog-te-gadget-simple {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
}

.nav-translate .goog-te-gadget-simple:hover {
  border-color: var(--blue-600);
}

.nav-translate .goog-te-gadget-simple a,
.nav-translate .goog-te-gadget-simple span {
  color: #4c5e70;
  text-decoration: none;
}

.nav-translate .goog-te-gadget-icon {
  display: none;
}

/* Suppress Google's injected top banner frame and body offset */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #d5e0ea;
  background:
    linear-gradient(90deg, rgba(51, 122, 183, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(51, 122, 183, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #edf5fb 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.hero-pattern {
  position: absolute;
  top: -115px;
  right: -80px;
  width: 530px;
  height: 530px;
  border: 1px solid rgba(51, 122, 183, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 65px rgba(51, 122, 183, 0.03),
    0 0 0 130px rgba(51, 122, 183, 0.02);
}

.hero-pattern::before,
.hero-pattern::after {
  position: absolute;
  border: 1px solid rgba(51, 122, 183, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-pattern::before {
  inset: 95px;
}

.hero-pattern::after {
  inset: 195px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  padding-top: 68px;
  padding-bottom: 70px;
  text-align: center;
}

.hero-network-visual {
  display: none;
}

.eyebrow,
.section-kicker {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--un-blue);
}

.apse h1,
.apse h2,
.apse h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.hero h1 {
  max-width: 850px;
  margin: 19px auto 18px;
  color: #101157;
  font-size: clamp(36px, 5.1vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: #337ab7;
  font-style: normal;
}

.hero-content > p {
  max-width: 670px;
  margin: 0 auto 36px;
  color: #526c86;
  font-size: 18px;
}

.search-form {
  display: flex;
  width: min(850px, 100%);
  min-height: 70px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid #b9cfe1;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(16, 17, 87, 0.11);
}

.search-icon {
  position: relative;
  flex: 0 0 52px;
}

.search-icon::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 13px;
  height: 13px;
  border: 2px solid #71849a;
  border-radius: 50%;
  content: "";
}

.search-icon::after {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 7px;
  height: 2px;
  background: #71849a;
  content: "";
  transform: rotate(45deg);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 16px;
}

.search-form input::placeholder {
  color: #8a99a9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.button-primary {
  border: 1px solid var(--blue-700);
  color: var(--white);
  background: var(--blue-700);
}

.apse a.button-primary {
  color: var(--white);
}

.button-primary:hover {
  border-color: var(--blue-900);
  background: var(--blue-900);
}

.search-button {
  min-width: 195px;
  gap: 8px;
  border: 0;
}

.search-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.popular-searches {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  color: #6b7d91;
  font-size: 13px;
}

#popular-searches-label {
  white-space: nowrap;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.chip-list button {
  padding: 7px 12px;
  border: 1px solid #c5d7e6;
  border-radius: 3px;
  color: #395c7f;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  cursor: pointer;
}

.chip-list button:hover {
  border-color: var(--blue-600);
  color: var(--blue-800);
  background: var(--white);
}

.search-section {
  padding: 32px 0 92px;
}

.sources-section {
  padding: 82px 0 92px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 35px;
}

.section-heading h2 {
  margin: 8px 0 7px;
  color: var(--blue-950);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

#results-summary {
  color: #6b7d91;
  font-size: 12px;
  font-weight: 600;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.text-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.global-stats-bar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
  padding: 36px 40px;
  border: 1px solid var(--blue-100);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 40px -22px rgba(16, 17, 87, 0.28);
}

.apse.has-active-search .global-stats-bar {
  gap: 0;
  padding: 18px 24px;
}

.apse.has-active-search .gsb-hint,
.apse.has-active-search .gsb-source-chips {
  display: none;
}

.apse.has-active-search .gsb-stat {
  flex-direction: row;
  justify-content: center;
  gap: 9px;
}

.apse.has-active-search .gsb-stat-number {
  font-size: 25px;
}

.apse.has-active-search .gsb-stat-label {
  font-size: 11px;
}

.gsb-stats-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.gsb-stat {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-left: 1px solid var(--blue-100);
}

.gsb-stat:first-child {
  border-left: none;
}

.gsb-stat-number {
  color: var(--blue-800);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.gsb-stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gsb-hint {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--blue-100);
  color: var(--muted);
  font-size: 13px;
}

.gsb-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gsb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gsb-chip span {
  color: var(--blue-700);
  font-weight: 800;
}

.gsb-chip:hover {
  border-color: var(--blue-700);
}

.gsb-chip.active {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: var(--white);
}

.gsb-chip.active span {
  color: var(--white);
}

.search-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.apse:not(.has-active-search) .search-layout {
  grid-template-columns: 1fr;
}

.apse:not(.has-active-search) .filters,
.apse:not(.has-active-search) .mobile-filter-button {
  display: none;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 22px;
}

.active-filters[hidden] {
  display: none;
}

.active-filter-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--blue-50);
  font: 600 12px/1.2 var(--font-body);
  cursor: pointer;
}

.active-filter-chip:hover,
.active-filter-chip:focus-visible {
  border-color: var(--blue-700);
  outline: none;
}

.filters {
  position: sticky;
  top: 106px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filters-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filters h3 {
  margin: 0;
  font-size: 16px;
}

.filter-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 15px;
}

.filter-icon::before {
  position: absolute;
  inset: 1px 0 auto;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px currentColor, 0 12px currentColor;
  content: "";
}

.filter-icon::after {
  position: absolute;
  top: -1px;
  left: 4px;
  width: 3px;
  height: 5px;
  border: 2px solid var(--white);
  background: currentColor;
  box-shadow: 6px 6px 0 -2px var(--white), 6px 6px 0 0 currentColor, -2px 12px 0 -2px var(--white), -2px 12px 0 0 currentColor;
  content: "";
}

.filter-close {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group label {
  display: block;
  margin-bottom: 7px;
  color: #344b63;
  font-size: 12px;
  font-weight: 700;
}

.filter-group select {
  width: 100%;
  height: 43px;
  padding: 0 36px 0 12px;
  border: 1px solid #ced9e3;
  border-radius: 3px;
  outline: 0;
  color: #4c6074;
  background: var(--white);
  font-size: 13px;
}

.filter-group select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(31, 120, 207, 0.1);
}

.multiselect {
  position: relative;
}

.multiselect-toggle {
  display: flex;
  width: 100%;
  height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #ced9e3;
  border-radius: 3px;
  outline: 0;
  color: #4c6074;
  background: var(--white);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.multiselect-toggle:hover,
.multiselect-toggle:focus {
  border-color: var(--blue-600);
}

.multiselect-toggle svg {
  width: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: #7c8ea1;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.multiselect-toggle span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.multiselect-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  overflow-y: auto;
  width: 100%;
  max-height: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 17, 87, 0.14);
  scrollbar-width: thin;
  scrollbar-color: #c2d4e5 var(--soft);
}

.multiselect-panel::-webkit-scrollbar {
  width: 5px;
}

.multiselect-panel::-webkit-scrollbar-track {
  background: var(--soft);
  border-radius: 3px;
}

.multiselect-panel::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #c2d4e5;
}

.multiselect-panel::-webkit-scrollbar-thumb:hover {
  background: var(--blue-600);
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.multiselect-option:hover {
  background: var(--soft);
}

.multiselect-option input {
  accent-color: var(--blue-700);
}

.filter-note {
  display: flex;
  gap: 9px;
  margin-top: 26px;
  padding: 13px;
  border-radius: 3px;
  color: #55708c;
  background: var(--blue-50);
}

.filter-note svg {
  flex: 0 0 17px;
  width: 17px;
  fill: none;
  stroke: var(--blue-700);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.filter-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

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

.source-group {
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(18, 54, 88, 0.045);
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  background: #f4f7f9;
}

.group-source {
  display: flex;
  align-items: center;
  gap: 13px;
}

.source-initial {
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  place-items: center;
  border: 1px solid #c6dbef;
  border-radius: 6px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.group-source h3 {
  margin: 0 0 2px;
  color: #183a5c;
  font-size: 16px;
}

.group-source p {
  margin: 0;
  color: #708196;
  font-size: 12px;
}

.group-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-count {
  color: #6b7d91;
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-metadata {
  color: var(--green);
  background: var(--green-bg);
}

.status-redirect {
  color: var(--amber);
  background: var(--amber-bg);
}

.status-listed {
  color: #5b6c80;
  background: var(--slate-bg);
}

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

.merged-grid-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(18, 54, 88, 0.045);
}

.technology-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 25px 25px 23px;
}

.technology-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.technology-card:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.technology-card.external-card {
  background: var(--surface-2, #f8f9fa);
  opacity: 0.92;
}

.card-external-link {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 13px;
  font-size: 12px;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-top-row .card-sector {
  margin-bottom: 0;
}

.card-source-pill {
  overflow: hidden;
  max-width: 55%;
  padding: 3px 9px;
  border: 1px solid var(--blue-100);
  border-radius: 99px;
  color: var(--blue-800);
  background: var(--blue-50);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-sector {
  margin-bottom: 10px;
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.technology-card h4 {
  margin: 0 0 10px;
  color: #173957;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
}

.technology-card > p,
.technology-card .card-summary {
  display: -webkit-box;
  min-height: 41px;
  margin: 0 0 16px;
  overflow: hidden;
  color: #617387;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.technology-card.translated .card-summary {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 14px;
}

.keyword-tag {
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 11px;
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.card-detail-disclosure {
  margin: -4px 0 13px;
}

.card-detail-disclosure summary {
  width: fit-content;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.card-detail-disclosure .card-detail-panel {
  margin-bottom: 0;
}

.external-link-note {
  color: var(--muted);
  font-size: 10px;
}

.card-detail-panel {
  margin: 14px 0 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  display: grid;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.detail-label {
  color: var(--muted);
  font-weight: 700;
}

.detail-value {
  color: var(--ink);
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: auto;
  margin-bottom: 18px;
  color: #718196;
  font-size: 11px;
}

.browse-prompt {
  min-height: 280px;
  padding: 64px 36px;
}

.browse-prompt h3 {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(24px, 3vw, 34px);
}

.browse-prompt p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.browse-prompt-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-state.browse-prompt-compact {
  min-height: 0;
  padding: 28px 32px;
  text-align: left;
}

.empty-state.browse-prompt-compact p {
  max-width: none;
  margin: 0;
}

.card-details span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-details span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9db0c3;
  content: "";
}

.card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  color: var(--blue-950);
}

.card-link span {
  transition: transform 0.2s ease;
}

.card-link:hover span {
  transform: translateX(3px);
}

.redirect-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 27px 25px;
}

.redirect-card h4 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 16px;
}

.redirect-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.button-secondary {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--blue-700);
  color: var(--blue-700);
  background: var(--white);
  font-size: 12px;
  white-space: nowrap;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--blue-700);
}

.empty-state {
  padding: 64px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: var(--soft);
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.results-warning {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #e4c56a;
  border-radius: 4px;
  color: #684f00;
  background: #fff8dc;
  font-size: 13px;
}

.browse-prompt {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.browse-prompt a {
  color: var(--blue-700);
  font-weight: 700;
}

.sources-section {
  border-top: 5px solid var(--blue-700);
  background: #eef1f4;
}

.jpo-lookup-section {
  padding: 76px 0;
  border-top: 5px solid var(--un-blue);
  background: var(--white);
}

.jpo-lookup-form {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin-top: 8px;
}

.jpo-lookup-form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #ced9e3;
  border-radius: 3px;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}

.jpo-lookup-form input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(31, 120, 207, 0.1);
}

#jpo-lookup-result {
  margin-top: 24px;
}

.jpo-result-card {
  max-width: 640px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
}

.jpo-error p {
  color: var(--amber);
}

.source-count {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.source-count strong {
  color: var(--blue-800);
  font-family: var(--font-display);
  font-size: 28px;
}

.source-count span {
  max-width: 70px;
  font-size: 11px;
  line-height: 1.25;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.apse table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.apse th {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: #65768a;
  background: #f8fafc;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.apse td {
  padding: 18px 20px;
  border-bottom: 1px solid #e8edf2;
  color: #5f7185;
  font-size: 12px;
}

.apse tr:last-child td {
  border-bottom: 0;
}

.apse td:first-child {
  color: #24415e;
  font-weight: 700;
}

.table-link {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.table-link:hover {
  text-decoration: underline;
}

/* ── Source detail cards grid ──────────────────────────────────────────────── */

.source-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.source-detail-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.sdc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sdc-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.sdc-initial {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.sdc-name {
  margin: 0;
  color: var(--blue-900);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.sdc-institution {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.sdc-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.sdc-country {
  margin: 0;
  color: #4d6175;
  font-size: 12px;
}

.sdc-access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3d5166;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sdc-access i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f8a70;
}

.sdc-access.is-external i {
  background: #d28a16;
}

.sdc-catalogue-size {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.sdc-catalogue-size strong {
  color: var(--blue-800);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.sdc-catalogue-size span {
  color: var(--muted);
  font-size: 11px;
}

.sdc-stat-number {
  color: var(--blue-800);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
}

.sdc-stat-label {
  color: var(--muted);
  font-size: 12px;
}

.sdc-description {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.sdc-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sdc-capabilities span {
  padding: 5px 8px;
  border: 1px solid #d8e4eb;
  border-radius: 3px;
  color: #3d617c;
  background: #f6fafc;
  font-size: 10px;
  font-weight: 700;
}

.sdc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.sdc-search-btn {
  cursor: pointer;
}

.sources-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid #cbdce6;
  border-top: 4px solid var(--blue-700);
  background: var(--white);
  box-shadow: var(--shadow);
}

.sources-overview-copy {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.sources-overview-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue-700);
  background: var(--blue-50);
}

.sources-overview-icon svg {
  width: 25px;
  height: 25px;
  fill: var(--white);
  stroke: currentColor;
  stroke-width: 1.8;
}

.sources-overview h3 {
  margin: 0 0 6px;
  color: var(--blue-900);
  font-family: var(--font-display);
  font-size: 16px;
}

.sources-overview p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sources-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}

.sources-overview-stats > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 4px 14px;
  text-align: center;
}

.sources-overview-stats > div + div {
  border-left: 1px solid var(--line);
}

.sources-overview-stats strong {
  color: var(--blue-800);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
}

.sources-overview-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.source-access-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.source-access-key > span {
  display: inline-flex;
  align-items: center;
}

.source-access-key strong {
  margin-right: 3px;
  color: #3d5166;
}

.access-dot {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
}

.access-dot-searchable {
  background: #1f8a70;
}

.access-dot-external {
  background: #d28a16;
}

.source-access-key .source-join-link {
  margin-left: auto;
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.source-join-link:hover {
  text-decoration: underline;
}

/* ── NTB slow-lane spinner ───────────────────────────────────────────────────── */

.ntb-spinner {
  padding: 24px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Pagination ──────────────────────────────────────────────────────────────── */

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.pagination-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pagination-page-btn:hover:not(:disabled):not(.active) {
  background: var(--soft);
  border-color: var(--blue-700);
}

.pagination-page-btn.active {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
  font-weight: 600;
  cursor: default;
}

.pagination-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

.pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.pagination-jump-input {
  width: 54px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  color: var(--ink, #212529);
  background: var(--white, #fff);
  outline: none;
}

.pagination-jump-input:focus {
  border-color: var(--accent, #337ab7);
}

.pagination-jump-input::-webkit-inner-spin-button,
.pagination-jump-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.pagination-jump-label {
  font-size: 12px;
  color: var(--muted, #596674);
  white-space: nowrap;
}

.page-loading {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* ── Source detail page overlay ─────────────────────────────────────────────── */

.source-page {
  --blue-950: #101157;
  --blue-900: #153b72;
  --blue-800: #255f9e;
  --blue-700: #337ab7;
  --blue-600: #2e87c8;
  --blue-100: #e5eff8;
  --blue-50: #f1f6fa;
  --ink: #212529;
  --muted: #596674;
  --line: #d5e0ea;
  --soft: #f2f4f6;
  --white: #fff;
  --green: #237a57;
  --green-bg: #eaf7f0;
  --amber: #9b6515;
  --amber-bg: #fff5df;
  --slate-bg: #eef2f6;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Manrope", Arial, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 200;
  box-sizing: border-box;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.28s;
}

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

.source-page button,
.source-page input {
  font: inherit;
}

.source-page.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

body.source-dialog-open {
  overflow: hidden;
}

.source-page-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.sp-back {
  margin-bottom: 32px;
}

.sp-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.sp-initial {
  width: 56px;
  height: 56px;
  font-size: 18px;
  flex-shrink: 0;
}

.sp-name {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--blue-900);
}

.sp-country {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sp-stat-row {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
  background: var(--blue-50);
  border-radius: 6px;
  margin-bottom: 24px;
}

.sp-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sp-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 28px;
}

.sp-section {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
}

.sp-section h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.sp-section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #3d5166;
}

.sp-hint-box {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.sp-hint-box p {
  color: var(--blue-700);
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.about-section {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  padding: 76px 0;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(16, 17, 87, 0.99), rgba(37, 95, 158, 0.97)),
    var(--blue-950);
}

.about-layout {
  display: grid;
  gap: 30px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(46px, 7vw, 90px);
  align-items: start;
}

.section-kicker.light {
  color: #8dc5f1;
}

.about-section h2 {
  max-width: 580px;
  margin: 10px 0 0;
  font-size: clamp(26px, 3.3vw, 39px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about-section p {
  margin: 0 0 22px;
  color: #c9d9e8;
  font-size: 14px;
}

.about-overview {
  min-width: 0;
  padding-top: 3px;
}

.about-overview p:last-child {
  margin-bottom: 0;
}

.about-section a {
  display: inline-flex;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.about-pillars article {
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(141, 197, 241, 0.24);
  border-top: 3px solid #7de0ff;
  background: rgba(255, 255, 255, 0.055);
}

.about-step {
  display: block;
  margin-bottom: 22px;
  color: #7de0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-pillars h3,
.about-source-cta h3 {
  margin: 0 0 7px;
  color: var(--white);
  font-size: 18px;
}

.about-section .about-pillars p {
  margin: 0;
  color: #dce8f2;
  font-size: 13px;
  line-height: 1.55;
}

.about-section .about-disclaimer {
  margin: 0;
  padding: 13px 16px;
  border-left: 3px solid #7de0ff;
  color: #dce8f2;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.55;
}

.about-source-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 24px;
  border: 1px solid rgba(141, 197, 241, 0.28);
  background: rgba(255, 255, 255, 0.075);
}

.about-source-cta > div {
  max-width: 680px;
}

.about-section .about-source-cta p {
  margin: 0;
  font-size: 13px;
}

.about-section .about-source-cta a {
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #7de0ff;
  color: #082b48;
  background: #7de0ff;
}

.about-section .about-source-cta a:hover {
  border-color: var(--white);
  background: var(--white);
}

@media (max-width: 900px) {
  .gateway-container {
    width: min(100% - 36px, 760px);
  }

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

  .filters {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    overflow-y: auto;
    border-radius: 0;
    box-shadow: -15px 0 40px rgba(7, 31, 57, 0.18);
    transform: translateX(110%);
    transition: transform 0.25s ease;
  }

  .filters.open {
    transform: translateX(0);
  }

  .filter-close {
    display: block;
  }

  .mobile-filter-button {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 18px;
  }

  .about-intro {
    gap: 45px;
  }

  .gateway-nav-inner {
    min-height: 58px;
  }

  .gateway-nav-brand span {
    display: none;
  }

  .gateway-nav-links a {
    padding: 0 12px;
  }

  .gateway-nav-links a::after {
    right: 12px;
    left: 12px;
  }

  .sources-overview {
    grid-template-columns: 1fr;
  }

  .sources-overview-stats {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

}

@media (max-width: 720px) {
  .gateway-container {
    width: min(100% - 28px, 620px);
  }

  .gsb-stats-row {
    gap: 24px;
  }

  .gsb-stat-number {
    font-size: 22px;
  }

  .apse.has-active-search .global-stats-bar {
    padding: 15px 12px;
  }

  .apse.has-active-search .gsb-stats-row {
    gap: 8px;
  }

  .apse.has-active-search .gsb-stat {
    flex-direction: column;
    gap: 3px;
    padding: 0 7px;
  }

  .apse.has-active-search .gsb-stat-number {
    font-size: 20px;
  }

  .active-filters {
    margin-top: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .active-filter-chip {
    flex: 0 0 auto;
  }

  .gateway-nav {
    position: relative;
    overflow: hidden;
  }

  .gateway-nav-inner {
    width: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 0;
  }

  .gateway-nav-brand {
    min-width: 0;
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .gateway-nav-brand strong {
    font-size: 14px;
  }

  .gateway-nav-brand span {
    display: block;
  }

  .gateway-nav-links {
    width: 100%;
    overflow: hidden;
  }

  .gateway-nav-links a {
    min-height: 47px;
    flex: 1 1 33.33%;
    justify-content: center;
    padding: 0 8px;
    font-size: 11px;
  }

  .gateway-nav-links a::after {
    right: 8px;
    left: 8px;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .hero-content {
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-content > p {
    font-size: 16px;
  }

  .search-form {
    min-height: 0;
    flex-wrap: wrap;
    padding: 6px;
  }

  .search-icon {
    flex-basis: 42px;
    height: 50px;
  }

  .search-icon::before {
    top: 16px;
    left: 13px;
  }

  .search-icon::after {
    top: 30px;
    left: 27px;
  }

  .search-form input {
    height: 50px;
  }

  .search-button {
    width: 100%;
    min-height: 48px;
  }

  .popular-searches {
    align-items: flex-start;
    flex-direction: column;
  }

  .chip-list {
    justify-content: flex-start;
  }

  .search-section,
  .sources-section {
    padding: 62px 0 70px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .source-cards-grid {
    grid-template-columns: 1fr;
  }

  .source-access-key .source-join-link {
    width: 100%;
    margin-left: 0;
  }

  .results-heading .text-button {
    display: none;
  }

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

  .technology-card:nth-child(odd) {
    border-right: 0;
  }

  .technology-card:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .group-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-meta {
    width: 100%;
    justify-content: space-between;
  }

  .redirect-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .about-pillars article {
    min-height: 0;
  }

  .about-step {
    margin-bottom: 14px;
  }

  .about-source-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .about-section .about-source-cta a {
    width: 100%;
    justify-content: center;
  }

}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-pattern {
    opacity: 0.7;
  }

  .source-initial {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .sources-overview {
    padding: 18px;
  }

  .sources-overview-copy {
    gap: 11px;
  }

  .sources-overview-stats > div {
    padding: 3px 7px;
  }

  .sources-overview-stats strong {
    font-size: 23px;
  }

  .source-detail-card {
    padding: 20px;
  }

  .sdc-access-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .sdc-actions .button {
    width: 100%;
  }

  .apse td,
  .apse th {
    padding-right: 15px;
    padding-left: 15px;
  }
}

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

/* ── Search results redesign ───────────────────────────────────────────────── */

.results-toolbar {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.results-toolbar-filter-row {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--blue-100);
}

.active-filters-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.results-toolbar .active-filters {
  flex: 1 1 auto;
  margin: 0;
}

.results-toolbar-filter-row .text-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.results-toolbar-filter-row .text-button svg {
  width: 13px;
}

.results-toolbar-main {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 16px;
}

.results-toolbar .results-heading {
  min-width: 250px;
  flex: 1 1 auto;
  margin: 0;
}

.results-toolbar .results-heading h2 {
  margin: 2px 0;
  font-size: 19px;
}

.results-toolbar .results-heading p {
  margin: 0;
}

.apse.has-active-search .results-toolbar .global-stats-bar {
  flex: 0 1 470px;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.apse.has-active-search .results-toolbar .gsb-stat {
  flex-direction: row;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.apse.has-active-search .results-toolbar .gsb-stat-number {
  font-size: 17px;
}

.apse.has-active-search .results-toolbar .gsb-stat-label {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.results-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.view-toggle-button {
  width: 36px;
  height: 34px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.view-toggle-button:first-child {
  border-left: 0;
}

.view-toggle-button.active {
  color: var(--white);
  background: var(--blue-700);
}

.apse:not(.has-active-search) .results-toolbar {
  border: 0;
  background: transparent;
}

.apse:not(.has-active-search) .results-toolbar-filter-row,
.apse:not(.has-active-search) .results-view-toggle {
  display: none;
}

.apse:not(.has-active-search) .results-toolbar-main {
  display: flex;
  padding: 0;
  flex-direction: column-reverse;
  align-items: stretch;
}

.apse:not(.has-active-search) .results-toolbar .global-stats-bar {
  margin-bottom: 4px;
}

.apse:not(.has-active-search) .results-toolbar .results-heading {
  margin-top: 22px;
}

.filters {
  width: 264px;
  padding: 20px;
}

.filter-group {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--blue-100);
}

.filter-group > label {
  display: none;
}

.facet-group-toggle {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.facet-group-toggle strong {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  border-radius: 10px;
  color: var(--blue-700);
  background: var(--blue-50);
  font-size: 10px;
}

.facet-group-toggle svg {
  width: 16px;
  transition: transform 0.15s ease;
}

.facet-group-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.facet-options {
  display: flex;
  max-height: 220px;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 0 2px 14px;
}

.facet-options[hidden],
.filter-backdrop[hidden] {
  display: none;
}

.filter-group label.facet-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.facet-option > span {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.facet-option input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--blue-700);
}

.facet-option small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.facet-option small.facet-availability {
  display: inline-flex;
  min-width: 14px;
  align-items: center;
  justify-content: center;
  padding-top: 3px;
}

.facet-option small.facet-availability span {
  width: 8px;
  height: 8px;
  border: 1px solid #18723a;
  border-radius: 50%;
  background: #26a052;
  box-shadow: 0 0 0 2px rgb(38 160 82 / 12%);
}

/* Legal footer and standalone policy pages */
.gateway-legal-footer {
  padding: 26px 0 22px;
  border-top: 1px solid #214f72;
  color: #dce9f2;
  background: #0d304b;
}

.gateway-legal-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.gateway-legal-footer strong {
  display: block;
  color: var(--white);
  font-size: 14px;
}

.gateway-legal-footer p {
  margin: 4px 0 0;
  color: #b7cad9;
  font-size: 12px;
}

.gateway-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.gateway-legal-footer a {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.gateway-legal-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gateway-external-link-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9fb7c9;
  font-size: 11px;
  line-height: 1.5;
}

.legal-page,
.legal-page .apse {
  background: #f3f6f8;
}

.legal-nav-links a {
  display: flex;
  min-height: 60px;
  align-items: center;
}

.legal-hero {
  padding: 58px 0 50px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  background: linear-gradient(115deg, #123f62, #0b70b7);
}

.legal-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #a9e5fa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
}

.legal-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #d9e8f2;
  font-size: 15px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: 52px;
  padding-top: 54px;
  padding-bottom: 72px;
}

.legal-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.legal-toc strong {
  display: block;
  margin-bottom: 11px;
  color: var(--blue-900);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.legal-article {
  min-width: 0;
  padding: 40px 46px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 4px 18px rgba(18, 63, 98, 0.06);
}

.legal-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.legal-status strong {
  padding: 4px 8px;
  color: #79550a;
  background: #fff1c9;
  font-size: 11px;
  text-transform: uppercase;
}

.legal-article section {
  scroll-margin-top: 90px;
}

.legal-article section + section {
  margin-top: 34px;
  padding-top: 4px;
}

.legal-article h2 {
  margin: 0 0 12px;
  color: var(--blue-900);
  font-size: 21px;
  line-height: 1.3;
}

.legal-article h3 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 15px;
}

.legal-article p,
.legal-article li {
  color: #435564;
  font-size: 14px;
  line-height: 1.75;
}

.legal-article p {
  margin: 0 0 13px;
}

.legal-article ul {
  margin: 10px 0 14px;
  padding-left: 21px;
}

.legal-article a {
  color: var(--blue-700);
  font-weight: 600;
}

.legal-callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--un-blue);
  background: var(--blue-50);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .gateway-legal-footer-inner {
    flex-direction: column;
  }

  .gateway-legal-footer nav {
    justify-content: flex-start;
  }

  .legal-nav-links {
    display: none;
  }

  .legal-hero {
    padding: 42px 0 38px;
  }

  .legal-layout {
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .legal-article {
    padding: 28px 22px;
  }
}

.filter-note {
  margin-top: 18px;
}

.filter-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reset-filters {
  padding: 5px;
  font-size: 12px;
}

.filter-sheet-handle,
.filter-backdrop {
  display: none;
}

.mobile-results-utility {
  display: none;
}

.merged-grid-wrap {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.technology-list {
  gap: 16px;
}

.technology-list.view-list {
  grid-template-columns: minmax(0, 1fr);
}

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

.technology-list .technology-card,
.technology-list .technology-card:nth-child(odd),
.technology-list .technology-card:nth-child(n + 2),
.technology-list .technology-card:nth-child(n + 3) {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.card-top-row .card-sector {
  overflow: hidden;
  max-width: 320px;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--blue-700);
  background: var(--blue-50);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-country {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.card-source-pill {
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: var(--soft);
}

.card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--blue-100);
}

.card-detail-disclosure {
  margin: 0;
}

.card-actions {
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.card-external-link {
  margin: 0;
}

.pagination-bar {
  margin-top: 26px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.nowrap {
  white-space: nowrap;
}

.redirect-source-section {
  margin-top: 24px;
}

.redirect-source-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.redirect-source-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.redirect-source-title h3,
.redirect-source-title p {
  margin: 0;
}

.redirect-source-title h3 {
  color: var(--blue-900);
  font-size: 17px;
}

.redirect-source-title p {
  color: var(--muted);
  font-size: 12px;
}

.redirect-technology-list {
  gap: 16px;
}

.redirect-card-organisation {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .results-toolbar-main {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .apse.has-active-search .results-toolbar .global-stats-bar {
    flex-basis: 100%;
  }

  .results-view-toggle {
    display: none;
  }

  .filters {
    position: fixed;
    z-index: 70;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(86vh, 760px);
    padding: 8px 18px 0;
    overflow-y: auto;
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 42px rgba(7, 31, 57, 0.2);
    transform: translateY(110%);
  }

  .filters.open {
    transform: translateY(0);
  }

  .filter-sheet-handle {
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 6px;
    border-radius: 2px;
    background: var(--line);
  }

  .filters-header {
    position: sticky;
    z-index: 2;
    top: -8px;
    margin: 0 -18px 4px;
    padding: 12px 18px;
    background: var(--white);
  }

  .filter-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(9, 31, 48, 0.42);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .filter-backdrop.visible {
    opacity: 1;
  }

  .mobile-results-utility {
    position: sticky;
    z-index: 15;
    top: 0;
    display: flex;
    margin-bottom: 14px;
    padding: 8px 0;
    background: #f7f9fb;
  }

  .mobile-filter-button {
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    justify-content: center;
    gap: 8px;
    margin: 0;
  }

  .mobile-filter-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    background: var(--blue-700);
    font-size: 11px;
  }

  .mobile-filter-count[hidden] {
    display: none;
  }
}

@media (max-width: 720px) {
  .results-toolbar-filter-row {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .active-filters-label {
    display: none;
  }

  .results-toolbar .active-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .results-toolbar-main {
    padding: 12px;
  }

  .apse.has-active-search .results-toolbar .global-stats-bar {
    display: none;
  }

  .technology-list,
  .technology-list.view-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .technology-list .technology-card,
  .technology-list .technology-card:nth-child(odd),
  .technology-list .technology-card:nth-child(n + 2),
  .technology-list .technology-card:nth-child(n + 3) {
    padding: 14px;
  }

  .card-top-row {
    align-items: flex-start;
  }

  .card-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .card-source-pill {
    max-width: 45%;
  }

  .technology-card .card-summary {
    -webkit-line-clamp: 2;
  }

  .card-footer {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .card-detail-disclosure summary,
  .card-external-link {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
  }

  .card-detail-disclosure summary {
    width: 100%;
    border: 1px solid var(--blue-700);
  }

  .card-actions,
  .card-external-link {
    width: 100%;
  }

  .card-detail-disclosure[open] {
    grid-column: 1 / -1;
  }

  .pagination-jump {
    display: none;
  }
}
