/* Tier 1 medical resources — glossary, body map, WHO news, emergency */
.dbk-mr-section {
  --mr-teal: #0d9488;
  --mr-teal-dark: #0f766e;
  --mr-border: #e2e8f0;
  --mr-muted: #64748b;
  --mr-bg: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 55%, #eff6ff 100%);
  padding: 44px 0 48px;
  font-family: 'Poppins', sans-serif;
}

.dbk-mr-section__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.dbk-mr-section__head {
  text-align: center;
  margin-bottom: 24px;
}

.dbk-mr-section__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dbk-mr-section__title i {
  color: var(--mr-teal);
}

.dbk-mr-section__sub {
  margin: 0 auto;
  max-width: 640px;
  color: var(--mr-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.dbk-mr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.dbk-mr-pair {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 16px;
  align-items: stretch;
}

.dbk-mr-card {
  background: #fff;
  border: 1px solid var(--mr-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.dbk-mr-card--links {
  grid-column: 1 / -1;
}

.dbk-mr-muted {
  color: var(--mr-muted);
  font-size: 0.875rem;
}

.dbk-mr-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.dbk-mr-card__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dbk-mr-card__head h3 i {
  color: var(--mr-teal-dark);
}

.dbk-mr-card__badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mr-teal-dark);
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  padding: 4px 8px;
  border-radius: 999px;
}

/* WHO news */
.dbk-mr-news-scroll {
  flex: 1;
  min-height: 0;
  max-height: 400px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
  -webkit-overflow-scrolling: touch;
}

.dbk-mr-news-scroll::-webkit-scrollbar { width: 5px; }
.dbk-mr-news-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.dbk-mr-news-scroll::-webkit-scrollbar-track { background: #f8fafc; }

.dbk-mr-news-scroll-hint {
  margin: 6px 0 0;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--mr-teal-dark);
  text-align: center;
}

.dbk-mr-news-scroll-hint[hidden] {
  display: none !important;
}

.dbk-mr-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dbk-mr-news-list li {
  border-bottom: 1px solid #f1f5f9;
}

.dbk-mr-news-list li:last-child {
  border-bottom: none;
}

.dbk-mr-who-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
  transition: background 0.2s;
}

.dbk-mr-who-item:hover,
.dbk-mr-who-item:focus-visible {
  background: #f0fdfa;
  outline: none;
}

.dbk-mr-who-item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--mr-teal);
}

.dbk-mr-who-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.dbk-mr-who-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dbk-mr-who-body {
  min-width: 0;
  flex: 1;
}

.dbk-mr-who-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.dbk-mr-who-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.6875rem;
  color: #475569;
  line-height: 1.4;
  margin-top: 3px;
}

.dbk-mr-who-body time {
  display: block;
  font-size: 0.625rem;
  color: var(--mr-muted);
  margin-top: 4px;
  font-weight: 600;
}

.dbk-mr-news-hint {
  margin: 10px 0 0;
  font-size: 0.625rem;
  color: var(--mr-muted);
  line-height: 1.4;
}

.dbk-mr-news-src {
  margin: 8px 0 0;
  font-size: 0.6875rem;
  color: var(--mr-muted);
}

.dbk-mr-news-src a {
  color: var(--mr-teal-dark);
  font-weight: 600;
}

/* World population live */
.dbk-mr-card__badge--live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.dbk-mr-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  animation: dbk-mr-pulse 2s ease-in-out infinite;
}

@keyframes dbk-mr-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.dbk-mr-world-hero {
  text-align: center;
  padding: 14px 12px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
  border: 1px solid #99f6e4;
  border-radius: 14px;
}

.dbk-mr-world-hero__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mr-muted);
  margin-bottom: 6px;
}

.dbk-mr-world-hero__num {
  display: block;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dbk-mr-world-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.dbk-mr-world-stat {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--mr-border);
  background: #f8fafc;
  text-align: center;
}

.dbk-mr-world-stat i {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.dbk-mr-world-stat--birth {
  background: #ecfdf5;
  border-color: #99f6e4;
}
.dbk-mr-world-stat--birth i { color: var(--mr-teal-dark); }

.dbk-mr-world-stat--death {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.dbk-mr-world-stat--death i { color: #64748b; }

.dbk-mr-world-stat--growth {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.dbk-mr-world-stat--growth i { color: #2563eb; }

.dbk-mr-world-stat--year {
  background: #f0fdfa;
  border-color: #5eead4;
}
.dbk-mr-world-stat--year i { color: #0f766e; }

.dbk-mr-world-stat__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mr-muted);
}

.dbk-mr-world-stat__val {
  display: block;
  margin-top: 4px;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.dbk-mr-world-ref {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: #475569;
  text-align: center;
  line-height: 1.45;
}

.dbk-mr-world-ref strong {
  color: var(--mr-teal-dark);
  font-weight: 700;
}

.dbk-mr-world-note {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--mr-muted);
  line-height: 1.45;
  text-align: center;
}

.dbk-mr-world-note a {
  color: var(--mr-teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.dbk-mr-world-note a:hover {
  text-decoration: underline;
}

.dbk-mr-card--world .dbk-mr-world-grid {
  flex: 1;
}

/* WHO preview modal */
body.dbk-mr-modal-open { overflow: hidden; }
.dbk-mr-modal[hidden] { display: none !important; }

.dbk-mr-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dbk-mr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.dbk-mr-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 820px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--mr-border);
}

.dbk-mr-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.dbk-mr-modal__close:hover,
.dbk-mr-modal__close:focus-visible {
  background: #fff;
  color: var(--mr-teal-dark);
  outline: 2px solid var(--mr-teal);
}

.dbk-mr-modal__img {
  background: #f1f5f9;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  min-height: 180px;
}

.dbk-mr-modal__photo {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.dbk-mr-modal__body {
  padding: 18px 20px 8px;
}

.dbk-mr-modal__meta {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--mr-muted);
  font-weight: 600;
}

.dbk-mr-modal__title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.dbk-mr-modal__desc {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.55;
}

.dbk-mr-modal__para {
  margin: 0 0 12px;
}

.dbk-mr-modal__para:last-child {
  margin-bottom: 0;
}

.dbk-mr-modal__publisher {
  margin: 14px 0 0;
}

.dbk-mr-modal__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mr-teal-dark);
  text-decoration: none;
}

.dbk-mr-modal__link:hover {
  text-decoration: underline;
}

.dbk-mr-modal__actions {
  padding: 12px 20px 18px;
  text-align: center;
}

.dbk-mr-modal__dismiss {
  border: none;
  background: transparent;
  color: var(--mr-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

/* Quick links */
.dbk-mr-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.dbk-mr-quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mr-teal-dark);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.dbk-mr-quick a:hover {
  background: #ecfdf5;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

/* Body map (symptoms page) */
.sc-list-page .dbk-body-map {
  max-width: 1000px;
  margin: 0 auto 24px;
  padding: 22px 24px;
}

.dbk-body-map {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 55%, #f8fafc 100%);
  border: 1px solid #99f6e4;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.06);
}

.dbk-body-map__title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.dbk-body-map__sub {
  margin: 0 auto 18px;
  font-size: 0.8125rem;
  color: var(--mr-muted);
  max-width: 40rem;
  text-align: center;
}

.dbk-body-map__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  justify-content: center;
  align-items: start;
  gap: 24px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.dbk-body-map__figure-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 220px;
  width: 220px;
  margin: 0 auto;
}

.dbk-body-map__stage {
  width: 100%;
  position: relative;
}


.dbk-body-map__view-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--mr-border);
  border-radius: 999px;
}

.dbk-body-map__view-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.dbk-body-map__view-btn:hover {
  color: var(--mr-teal-dark);
}

.dbk-body-map__view-btn.is-active {
  background: #ecfdf5;
  color: var(--mr-teal-dark);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}

.dbk-body-map__figure {
  position: relative;
  margin: 0;
  width: 100%;
}

.dbk-body-map__view {
  width: 100%;
}

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

.dbk-body-map__figure-caption {
  margin: 0;
  font-size: 0.7rem;
  color: var(--mr-muted);
  text-align: center;
}

.dbk-body-map__svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 360px;
}

.dbk-body-map__base {
  pointer-events: none;
}

.dbk-body-map__zone {
  fill: rgba(148, 163, 184, 0.28);
  stroke: #94a3b8;
  stroke-width: 1.25;
  cursor: pointer;
  transition: fill 0.22s ease, stroke 0.22s ease, stroke-width 0.22s ease, opacity 0.22s ease;
}

.dbk-body-map__zone:hover,
.dbk-body-map__zone.is-active {
  fill: rgba(45, 212, 191, 0.55);
  stroke: #0d9488;
  stroke-width: 2;
}

.dbk-body-map__view--front .dbk-body-map__zone.is-active {
  fill: rgba(16, 185, 129, 0.5);
  filter: url(#dbkBodyGlow);
}

.dbk-body-map__view--back .dbk-body-map__zone.is-active {
  fill: rgba(16, 185, 129, 0.5);
  filter: url(#dbkBodyGlowBack);
}

.dbk-body-map__zone:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

.dbk-body-map__panel {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 480px;
}

.dbk-body-map__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dbk-body-map__chip {
  border: 1px solid var(--mr-border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.dbk-body-map__chip:hover,
.dbk-body-map__chip.is-active {
  background: #ecfdf5;
  border-color: var(--mr-teal);
  color: var(--mr-teal-dark);
}

.dbk-body-map__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--mr-muted);
}

.dbk-body-map__reset {
  display: inline;
  border: none;
  background: none;
  color: #0f766e;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  font-family: inherit;
}

.dbk-body-map__preview {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.dbk-body-map__preview-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.dbk-body-map__preview-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #334155;
}

.dbk-body-map__filter-label {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mr-teal-dark);
  text-align: center;
}

/* Glossary page */
.dbk-glossary-page {
  background: #f1f5f9;
  min-height: 60vh;
  padding: 28px 16px 56px;
  font-family: 'Poppins', sans-serif;
}

.dbk-glossary-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.dbk-glossary-hero {
  margin-bottom: 24px;
}

.dbk-glossary-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #0f172a;
}

.dbk-glossary-hero p {
  margin: 0;
  color: var(--mr-muted);
  line-height: 1.55;
}

.dbk-glossary-search {
  margin-bottom: 20px;
  position: relative;
}

.dbk-glossary-search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--mr-border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
}

.dbk-glossary-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mr-muted);
}

.dbk-glossary-block {
  background: #fff;
  border: 1px solid var(--mr-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.dbk-glossary-block h2 {
  margin: 0 0 14px;
  font-size: 1.0625rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dbk-glossary-block h2 i {
  color: var(--mr-teal);
}

.dbk-glossary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dbk-glossary-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dbk-glossary-list li:last-child {
  border-bottom: none;
}

.dbk-glossary-list a {
  font-weight: 700;
  color: var(--mr-teal-dark);
  text-decoration: none;
  font-size: 0.9375rem;
}

.dbk-glossary-list a:hover {
  text-decoration: underline;
}

.dbk-glossary-list .org {
  display: block;
  font-size: 0.75rem;
  color: var(--mr-muted);
  margin-top: 2px;
}

.dbk-glossary-list .desc {
  display: block;
  font-size: 0.8125rem;
  color: #475569;
  margin-top: 6px;
  line-height: 1.45;
}

.dbk-glossary-prefixes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.dbk-glossary-prefix {
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.dbk-glossary-prefix strong {
  color: var(--mr-teal-dark);
  font-size: 0.875rem;
}

.dbk-glossary-prefix span {
  display: block;
  font-size: 0.75rem;
  color: #475569;
  margin-top: 4px;
}

.dbk-glossary-emergency {
  background: linear-gradient(135deg, #fef2f2, #fff);
  border-color: #fecaca;
}

.dbk-travel-emergency {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #fef2f2, #fff7ed);
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.dbk-travel-emergency strong {
  color: #b91c1c;
}

.dbk-travel-emergency a {
  color: var(--mr-teal-dark);
  font-weight: 600;
}

@media (max-width: 900px) {
  .dbk-mr-pair {
    grid-template-columns: 1fr;
  }

  .dbk-body-map__layout {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .dbk-body-map__figure-wrap {
    width: 200px;
  }

  .dbk-body-map__panel {
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dbk-body-map__zone,
  .dbk-body-map__chip,
  .dbk-body-map__view-btn,
  .dbk-mr-live-dot {
    transition: none;
    animation: none;
  }
}

@media (max-width: 520px) {
  .dbk-mr-world-grid {
    grid-template-columns: 1fr;
  }

  .dbk-mr-section {
    padding: 32px 0 40px;
  }

  .dbk-mr-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dbk-mr-quick a {
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.75rem;
    text-align: center;
  }
}
