* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #f0f5f9;
  --ink: #0c2336;
  --brand: #01355c;
  --brand-2: #0e76c0;
  --accent: #fe7216;
  --accent-hover: #f0530e;
  --muted: #3e5063;
  --subtle: #8595a4;
  --line: rgba(1, 53, 92, 0.1);
  --shadow: 0 18px 44px rgba(1, 53, 92, 0.09);
  --shadow-strong: 0 24px 60px rgba(1, 53, 92, 0.18);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.detail-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::placeholder {
  color: #97a6b3;
}

.brand-font {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(860px 460px at 88% 0%, rgba(95, 176, 230, 0.13), transparent 58%), var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(1, 53, 92, 0.08);
  background: rgba(245, 247, 249, 0.84);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 13px 28px;
}

.topbar-inner.wide {
  width: min(100%, 1240px);
}

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

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

.brand-name {
  color: var(--brand);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a,
.nav-current {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-current {
  color: var(--brand);
  font-weight: 600;
}

.nav-muted {
  color: var(--subtle) !important;
  font-size: 14px !important;
}

.lang-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(1, 53, 92, 0.16);
  border-radius: 8px;
}

.lang-switch button {
  min-width: 45px;
  padding: 6px 13px;
  border: 0;
  background: transparent;
  color: #5a6b7b;
  font-size: 13px;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}

.hero {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 72px 28px 38px;
  text-align: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 6px 14px;
  border: 1px solid rgba(1, 53, 92, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pulse {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.pulse::before,
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1f9d55;
}

.pulse.orange::before,
.pulse.orange::after {
  background: var(--accent);
}

.pulse::before {
  animation: oid-pulse 1.8s ease-out infinite;
}

@keyframes oid-pulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

.hero-title {
  margin: 0 0 20px;
  color: var(--brand);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero-subtitle {
  max-width: 624px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(1, 53, 92, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(1, 53, 92, 0.07);
}

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

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button:hover {
  background: var(--accent-hover);
}

.search-form .primary-button {
  padding: 11px 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.chips-label {
  margin-right: 2px;
  color: var(--subtle);
  font-size: 13px;
}

.chip {
  padding: 5px 12px;
  border: 1px solid rgba(1, 53, 92, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.chip:hover {
  border-color: rgba(14, 118, 192, 0.5);
  color: var(--brand-2);
}

.content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 28px;
}

.content.wide {
  width: min(100%, 1240px);
  padding-top: 32px;
  padding-bottom: 60px;
}

.stats-card,
.cta-band {
  border-radius: 22px;
  background: var(--brand);
  color: #eaf2f8;
  box-shadow: var(--shadow-strong);
}

.stats-card {
  margin-top: 14px;
  padding: 26px 36px 30px;
}

.stats-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.live-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.live-label {
  color: #fe9a52;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.updated-label {
  color: #9fb6c8;
  font-size: 13px;
  white-space: nowrap;
}

.source-label {
  color: #6f8aa0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.metric-value {
  color: #fff;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.metric-label {
  margin-top: 9px;
  color: #9fb6c8;
  font-size: 14px;
}

.role-split {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.role-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: #9fb6c8;
  font-size: 13px;
}

.role-labels span:first-child strong {
  color: #fe9a52;
}

.role-labels span:last-child strong {
  color: var(--brand-2);
}

.split-bar {
  display: flex;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.split-cpo {
  background: var(--accent);
}

.split-emsp {
  background: var(--brand-2);
}

.section {
  margin-top: 64px;
}

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

.section-heading h2,
.cta-band h2,
.page-title,
.panel-title {
  color: var(--brand);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

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

.section-heading p,
.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-heading p {
  max-width: 560px;
}

.text-link {
  color: var(--brand);
  border-bottom: 2px solid var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.country-card {
  display: block;
  min-height: 150px;
  padding: 15px;
  border: 1px solid rgba(1, 53, 92, 0.09);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}

.country-card:hover {
  border-color: rgba(254, 114, 22, 0.5);
  box-shadow: 0 12px 26px rgba(1, 53, 92, 0.1);
  transform: translateY(-2px);
}

.country-card-coming-soon {
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
  color: var(--muted);
}

.country-card-known-unpublished {
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}

.country-card-coming-soon:hover,
.country-card-known-unpublished:hover {
  transform: none;
}

.country-card-cta {
  border-color: rgba(14, 118, 192, 0.22);
  background: #eef7fd;
}

.country-card-cta:hover {
  border-color: rgba(14, 118, 192, 0.52);
}

.country-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  border-radius: 8px;
  background: rgba(1, 53, 92, 0.06);
  font-size: 20px;
  line-height: 1;
}

.country-card-cta .country-flag {
  background: var(--brand);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
}

.country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(1, 53, 92, 0.07);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d55;
}

.status-dot.supported {
  background: #1f9d55;
}

.status-dot.known-unpublished {
  background: #d12f2f;
}

.status-dot.coming-soon {
  background: var(--accent);
}

.country-name {
  margin-top: 13px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.country-count {
  margin-top: 3px;
  color: var(--accent);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.country-caption {
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.3;
}

.country-card-known-unpublished .country-caption {
  color: #a23b3b;
}

.country-card-coming-soon .country-caption {
  color: #9a5a12;
}

.country-card-cta .country-caption {
  margin-top: 7px;
  color: var(--muted);
}

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

.trust-card {
  padding: 28px;
  border: 1px solid rgba(1, 53, 92, 0.08);
  border-radius: 16px;
  background: #fff;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: #e6f1fb;
  color: var(--brand-2);
}

.trust-icon.orange {
  background: #fff0e6;
  color: var(--accent);
}

.trust-card h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 19px;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 80% -10%, rgba(254, 114, 22, 0.22), transparent 60%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 40px;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #b9cdda;
  font-size: 17px;
  line-height: 1.5;
}

.cta-band .primary-button {
  padding: 15px 30px;
  border-radius: 11px;
  font-size: 16px;
}

.dev-note {
  margin-top: 20px;
  color: #9fb6c8;
  font-size: 14px;
}

.dev-note a {
  color: #fe9a52;
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  width: min(100%, 1180px);
  margin: 56px auto 0;
  padding: 28px 28px 48px;
  border-top: 1px solid rgba(1, 53, 92, 0.08);
}

.site-footer.inset {
  width: 100%;
  margin-top: 64px;
  padding: 28px 0 8px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-about {
  max-width: 560px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--brand);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.footer-about p {
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.6;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.author-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.author-link strong {
  color: var(--brand);
}

.footer-links {
  display: flex;
  gap: 48px;
  font-size: 14px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links span {
  color: var(--subtle);
}

.page-header {
  margin-bottom: 22px;
}

.page-title {
  margin: 0 0 6px;
  font-size: 34px;
}

.filter-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(1, 53, 92, 0.06);
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-search {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 260px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(1, 53, 92, 0.12);
  border-radius: 11px;
  background: var(--bg);
}

.filter-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.filter-form select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(1, 53, 92, 0.12);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.filter-form .primary-button {
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
}

.api-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed rgba(1, 53, 92, 0.12);
}

.api-line[hidden],
[hidden] {
  display: none !important;
}

.api-label {
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-line code {
  flex: 1;
  min-width: 200px;
  overflow-x: auto;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--brand-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px;
  white-space: nowrap;
}

.ghost-button {
  padding: 6px 11px;
  border: 1px solid rgba(1, 53, 92, 0.14);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.open-json {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.api-toggle-wrap {
  margin-top: 12px;
  text-align: right;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--subtle);
  font-size: 12px;
}

.resolve-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(254, 114, 22, 0.35);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: #fff;
}

.resolve-eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resolve-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.resolve-name {
  color: var(--brand);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.mono-id {
  color: var(--brand-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
}

.resolve-sub {
  margin-top: 6px;
  color: #5a6b7b;
  font-size: 13px;
}

.secondary-button {
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 4px 12px;
}

.result-label {
  color: #5a6b7b;
  font-size: 14px;
}

.context-label {
  color: var(--subtle);
  font-size: 13px;
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.table-row,
.table-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 112px 96px 116px 22px;
  gap: 12px;
  align-items: center;
}

.table-head {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-row {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid rgba(1, 53, 92, 0.06);
  background: #fff;
  color: inherit;
  text-align: left;
  transition: background 0.12s;
}

.table-row:hover {
  background: #f3f7fa;
}

.row-id {
  color: var(--brand-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
}

.row-name {
  min-width: 0;
}

.row-name strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--brand);
  font-size: 14px;
  line-height: 1.25;
}

.row-name span {
  display: block;
  overflow: hidden;
  color: var(--subtle);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.status-badge,
.role-badge,
.conflict-badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge {
  padding: 3px 10px;
}

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

.role-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role-badge.cpo {
  background: #fff1e6;
  color: #c25410;
}

.role-badge.emsp {
  background: #e6f1fb;
  color: var(--brand-2);
}

.role-badge.other {
  background: #eef1f4;
  color: #566372;
}

.skeleton-pill {
  display: inline-block;
  width: 38px;
  height: 20px;
  border-radius: 6px;
  background: #eef1f4;
}

.row-arrow {
  color: #b8c4cf;
  text-align: right;
}

.state-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  color: var(--subtle);
}

.empty-state {
  padding: 54px 24px;
  color: var(--subtle);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 16px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(1, 53, 92, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: oid-spin 0.8s linear infinite;
}

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

.load-more-wrap {
  margin-top: 18px;
  text-align: center;
}

.load-more {
  padding: 12px 24px;
  border: 1px solid rgba(1, 53, 92, 0.16);
  border-radius: 11px;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(1, 30, 52, 0.32);
  backdrop-filter: blur(2px);
}

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: 520px;
  max-width: 94vw;
  height: 100vh;
  overflow-y: auto;
  background: #fff;
  box-shadow: -20px 0 60px rgba(1, 30, 52, 0.2);
  animation: oid-in 0.22s ease;
}

@keyframes oid-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.detail-header {
  position: sticky;
  top: 0;
  padding: 22px 26px;
  background: var(--brand);
  color: #fff;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-topline .mono-id {
  color: #fe9a52;
}

.close-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.detail-title {
  margin: 10px 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-country {
  color: #b9cdda;
  font-size: 13px;
}

.conflict-badge {
  padding: 3px 9px;
  background: rgba(254, 114, 22, 0.2);
  color: #fe9a52;
}

.detail-body {
  padding: 22px 26px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(1, 53, 92, 0.08);
}

.meta-item.full {
  grid-column: 1 / -1;
}

.meta-label {
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meta-value {
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.meta-value a {
  color: var(--brand-2);
  text-decoration: none;
}

.panel-section {
  margin-top: 20px;
}

.panel-title {
  margin-bottom: 4px;
  font-size: 16px;
}

.panel-subtitle {
  margin: 0 0 16px;
  color: #5a6b7b;
  font-size: 13px;
}

.observation-card {
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.observation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.source-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.source-id {
  color: var(--subtle);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.observation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  font-size: 13px;
}

.observation-grid span,
.meta-extra span {
  color: var(--subtle);
}

.observation-grid div div {
  color: var(--ink);
}

.meta-extra {
  margin-top: 8px;
  color: #5a6b7b;
  font-size: 12.5px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.detail-api {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(1, 53, 92, 0.12);
  color: var(--subtle);
  font-size: 12px;
}

.detail-api code {
  color: var(--brand-2);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.detail-api a {
  margin-left: 10px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 940px) {
  .topbar-inner,
  .topbar-inner.wide {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-title {
    font-size: 46px;
  }

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

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

  .table-shell {
    overflow-x: auto;
  }

  .table-row,
  .table-head {
    min-width: 780px;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .topbar-inner.wide,
  .content,
  .content.wide,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero {
    padding: 48px 18px 30px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .search-form input {
    width: 100%;
  }

  .search-form .primary-button {
    width: 100%;
  }

  .chips-label {
    width: 100%;
  }

  .stats-card {
    padding: 24px;
  }

  .stats-grid,
  .trust-grid,
  .meta-grid,
  .observation-grid {
    grid-template-columns: 1fr;
  }

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

  .role-labels {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .cta-band {
    padding: 40px 24px;
  }

  .cta-band h2 {
    font-size: 32px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
    gap: 24px;
  }

  .filter-search,
  .filter-form select,
  .filter-form .primary-button {
    width: 100%;
  }

  .resolve-banner {
    align-items: stretch;
  }

  .secondary-button {
    width: 100%;
  }
}
