/* ══════════════════════════════════════════════════════════
   DISCOVERY PAGE — Swiss Editorial Card System
   Overrides styles.css for all card layers
══════════════════════════════════════════════════════════ */

:root {
  --rust:      #BF7665;
  --font-head: 'Borna', sans-serif;
  --font-body: 'Silka', sans-serif;
  --font-mono: 'NudicaMono', 'Courier New', monospace;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── MAP TILES — light editorial tiles, no filter needed ── */

/* ── MARKER — dot + ring repositioned for larger icon ── */
.pmarker {
  position: relative;
  width: 160px;
  height: 160px;
  overflow: visible;
}
.pmarker .dot {
  position: absolute;
  top: 148px;
  left: 80px;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--rust);
  border-radius: 50%;
  box-shadow: 0 0 14px 4px rgba(191,118,101,0.5);
  z-index: 2;
}
.pmarker .ring {
  position: absolute;
  top: 148px;
  left: 80px;
  transform: translate(-50%, -50%) scale(1);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(191,118,101,0.6);
  border-radius: 50%;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(4.5); opacity: 0; }
}

/* ── MARKER HOVER CARD ── */
.leaflet-marker-pane,
.leaflet-map-pane { overflow: visible !important; }

.pm-preview {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 190px;
  background: #ffffff;
  border: 1px solid #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: 20;
}
.pmarker:hover .pm-preview {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pm-img {
  width: 100%;
  height: 95px;
  background: #f5f4f2;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.2);
}
.pm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pm-info {
  padding: 10px 12px 12px;
}
.pm-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #000000;
  line-height: 1.3;
  margin-bottom: 4px;
}
.pm-loc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: rgba(0,0,0,0.38);
}

/* ── MAP LABEL — dark text on light map ── */
.map-bg-letter {
  position: absolute;
  bottom: -200px;
  left: -80px;
  font-family: var(--font-head, 'Borna', sans-serif);
  font-size: 1000px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}
.map-bg-letter--2 {
  bottom: auto;
  top: -200px;
  left: auto;
  right: -100px;
  font-size: 900px;
}
.map-bg-letter--3 {
  bottom: auto;
  top: 10%;
  left: 35%;
  font-size: 750px;
}

.map-label-bar {
  top: 32px;
  left: 64px;
}
.map-label-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  letter-spacing: -0.5px;
  text-shadow: none;
}
.map-label-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
  margin-top: 10px;
  text-shadow: none;
}

/* ── MAP CONTAINER background transparent ── */
#map,
.leaflet-container {
  background: transparent !important;
}

/* ══ SITE CARD ══════════════════════════════════════════ */
.site-card {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 400px;
  max-height: calc(100% - 32px);
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  z-index: 900;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 56px rgba(0,0,0,0.45);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.site-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
}
#site-card-inner {
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* Folio bar */
.sc-folio {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.sc-folio-mark { opacity: 0.35; }
.sc-folio-type { opacity: 0.75; }

/* Hero */
.sc-hero {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sc-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

.sc-hero {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.sc-hero-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f4f2;
  gap: 8px;
}
.sc-hero-placeholder .ph-loc {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: rgba(0,0,0,0.14);
}
.sc-hero-placeholder .ph-region {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.12);
}
.sc-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(255,255,255,0.55), transparent);
}
.sc-type-badge { display: none; }

/* Header */
.sc-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sc-type-line {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 7px;
}
.sc-name {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #000000;
  margin-bottom: 8px;
}
.sc-location {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  display: block;
}

/* Hide old taxonomy pills */
.sc-taxonomy { display: none; }

/* Description */
.sc-always-visible {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sc-description {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.68;
  color: rgba(0,0,0,0.72);
}

/* ── BOOM METRIC ── */
.sc-boom-wrap { padding: 0 20px; }
.boom-metric {
  padding: 15px 0 14px;
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin: 0;
}
.boom-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.32);
  margin-bottom: 14px;
  font-weight: 400;
}
.boom-bars { display: flex; flex-direction: column; gap: 10px; }
.boom-bar-row { display: flex; align-items: center; gap: 10px; }
.boom-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4px;
  color: rgba(0,0,0,0.4);
  width: 68px;
  text-align: right;
  flex-shrink: 0;
}
.boom-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(0,0,0,0.07);
  border-radius: 0;
  overflow: hidden;
}
.boom-bar {
  height: 100%;
  border-radius: 0;
  width: 0;
  transition: width 1.4s var(--ease);
  box-shadow: none;
}
.boom-traditional { background: rgba(0,0,0,0.2); }
.boom-ai          { background: var(--rust); }
.boom-value {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #000000;
  font-weight: 500;
  width: 76px;
  letter-spacing: 0.3px;
}
.boom-speedup {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #000000;
  text-align: left;
}

/* ── RESEARCH VELOCITY ── */
.sc-velocity {
  padding: 16px 20px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  cursor: default;
}
.sc-vel-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.32);
  margin-bottom: 16px;
}
.sc-vel-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: start;
}
.sc-vel-divider {
  background: rgba(0,0,0,0.1);
  align-self: stretch;
  margin: 0 18px;
}
.sc-vel-col { display: flex; flex-direction: column; gap: 6px; }
.sc-vel-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
}
.sc-vel-number {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}
.sc-vel-before .sc-vel-number {
  color: rgba(0,0,0,0.18);
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.1);
}
.sc-vel-after .sc-vel-number { color: var(--rust); }
.sc-vel-speedup {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #000000;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.07);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.sc-velocity:hover .sc-vel-speedup {
  opacity: 1;
  transform: translateY(0);
}

/* ── ACCORDIONS ── */
.accord-section { border-top: 0; }
.accord-item { border-bottom: 0; }
.accord-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: none;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.15s;
}
.accord-trigger:hover { background: rgba(0,0,0,0.02); }
.accord-icon {
  font-size: 14px;
  font-weight: 400;
  color: var(--rust);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  font-style: normal;
  font-family: var(--font-mono);
  line-height: 1;
}
.accord-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.52);
  text-align: left;
  font-weight: 400;
}
.accord-body > p {
  padding: 0 20px 16px 44px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: rgba(0,0,0,0.68);
  line-height: 1.65;
  margin: 0;
}

/* ── DRILL SECTION ── */
.drill-section {
  padding: 14px 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.drill-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  margin-bottom: 6px;
}
.drill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s;
}
.drill-btn:hover {
  border-color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.018);
}
.drill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  flex-shrink: 0;
  transition: background 0.15s;
  box-shadow: none;
}
.drill-btn:hover .drill-dot { background: var(--rust); }
.drill-label {
  flex: 1;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(0,0,0,0.65);
  text-align: left;
}
.drill-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(0,0,0,0.32);
  background: none;
  padding: 0;
  flex-shrink: 0;
  font-weight: 400;
}
.drill-arrow {
  font-size: 14px;
  color: rgba(0,0,0,0.2);
  flex-shrink: 0;
  line-height: 1;
  font-family: var(--font-mono);
  transition: transform 0.2s var(--ease), color 0.15s;
}
.drill-btn:hover .drill-arrow {
  transform: translateX(3px);
  color: rgba(0,0,0,0.45);
}
/* Remove old neon color-coded overrides */
.drill-btn[data-type] .drill-dot  { background: rgba(0,0,0,0.18); box-shadow: none; }
.drill-btn[data-type] .drill-count { background: none; color: rgba(0,0,0,0.32); }

/* ── FOOTER ── */
.sc-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.sc-source-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #000000;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s;
  box-sizing: border-box;
}
.sc-source-btn:hover { background: #000000; color: #ffffff; }
.sc-source-btn .arr { transition: transform 0.3s var(--ease); }
.sc-source-btn:hover .arr { transform: translateX(4px); }

/* ── CARD STACK ── */
.card-stack {
  display: flex;
  width: 200%;
  transition: transform 0.35s var(--ease);
}
.card-stack.show-sub { transform: translateX(-50%); }
.card-page {
  width: 50%;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

/* ── SUB-CARD HEADER ── */
.sub-header {
  padding: 13px 20px 11px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.sub-back-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
  cursor: pointer;
  padding: 0;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.sub-back-btn:hover { color: #000000; }
.sub-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #000000;
}

/* ── ENTITY CARDS (sub-card drill list) ── */
.sub-entity-list {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.entity-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-left: 3px solid var(--rust);
  border-radius: 0;
  overflow: hidden;
}
.entity-color-strip {
  height: 3px;
  background: var(--rust);
}
.entity-avatar-row { display: none; } /* no images in this build */
.entity-hero       { display: none; }
.entity-body {
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.entity-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.36);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 2px;
  display: inline-block;
}
.entity-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #000000;
  line-height: 1.2;
}
.entity-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(0,0,0,0.36);
  letter-spacing: 0.3px;
}
.entity-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(0,0,0,0.62);
  line-height: 1.62;
  margin: 4px 0 0;
}
.entity-highlight {
  border-left: 2px solid var(--rust) !important;
  border-radius: 0 !important;
  padding: 8px 10px !important;
  margin-top: 8px !important;
  background: rgba(191,118,101,0.06) !important;
}
.entity-hl-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--rust) !important;
  margin-bottom: 4px;
}
.entity-highlight p {
  font-family: var(--font-body) !important;
  font-size: 11.5px !important;
  color: rgba(0,0,0,0.62) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.entity-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(0,0,0,0.38) !important;
  border-bottom: 1px solid rgba(0,0,0,0.18) !important;
  margin-top: 8px;
  align-self: flex-start;
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s;
}
.entity-source:hover { color: #000000 !important; }

/* Theory blocks inside discovery entity */
.l3-theories { margin-top: 8px; border-top: 1px solid rgba(0,0,0,0.08); padding-top: 4px; }
.l3-accord .accord-trigger { padding: 10px 14px; }
.l3-accord .accord-label   { font-size: 10px; }
.l3-theory-content { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.theory-block { border-radius: 0; padding: 8px 10px; border-left: 2px solid transparent; }
.theory-block p { font-family: var(--font-body); font-size: 11px; color: rgba(0,0,0,0.62); line-height: 1.55; margin: 0; padding: 0; }
.theory-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.theory-label.before { color: rgba(0,0,0,0.4); }
.theory-label.after  { color: var(--rust); }
.theory-block.before-block { border-left-color: rgba(0,0,0,0.18); background: rgba(0,0,0,0.03); }
.theory-block.after-block  { border-left-color: var(--rust); background: rgba(191,118,101,0.05); }

/* ══ DETAIL CARD ════════════════════════════════════════ */
.detail-card {
  position: absolute;
  top: 16px;
  right: 432px;
  width: 340px;
  max-height: calc(100% - 32px);
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  z-index: 950;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 56px rgba(0,0,0,0.35);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.detail-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
}
#detail-card-inner {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

/* Detail card — top strip (replaces color strip per type) */
.dc-strip {
  height: 4px;
  width: 100%;
  background: var(--rust);
  flex-shrink: 0;
}
.dc-strip.ai_method,
.dc-strip.person,
.dc-strip.institution,
.dc-strip.discovery { background: var(--rust); }

/* Detail hero */
.dc-hero {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  flex-shrink: 0;
}
.dc-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(255,255,255,0.6), transparent);
}
.dc-avatar-row { display: none; } /* no images in this build */

/* Detail header */
.dc-header {
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.dc-type-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.36);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: block;
  margin-bottom: 6px;
}
.dc-type-badge.ai_method,
.dc-type-badge.person,
.dc-type-badge.institution,
.dc-type-badge.discovery {
  background: none !important;
  border: none !important;
  color: rgba(0,0,0,0.36) !important;
}
.dc-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 4px;
}
.dc-subtitle {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(0,0,0,0.38);
  letter-spacing: 0.3px;
}

/* Detail body */
.dc-body {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dc-description {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: rgba(0,0,0,0.7);
  line-height: 1.65;
}
.dc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dc-meta-item {
  background: #f7f6f5;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 0;
  padding: 8px 10px;
}
.dc-meta-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-bottom: 3px;
}
.dc-meta-value {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: #000000;
  font-weight: 500;
}
.dc-highlight-block {
  border-left: 2px solid var(--rust);
  border-radius: 0;
  padding: 10px 12px;
  background: rgba(191,118,101,0.06);
}
.dc-highlight-block.ai_method,
.dc-highlight-block.person,
.dc-highlight-block.institution,
.dc-highlight-block.discovery { background: rgba(191,118,101,0.06); border-left-color: var(--rust); }
.dc-highlight-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 5px;
}
.dc-highlight-label.ai_method,
.dc-highlight-label.person,
.dc-highlight-label.institution,
.dc-highlight-label.discovery { color: var(--rust); }
.dc-highlight-block p {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(0,0,0,0.65);
  line-height: 1.6;
  margin: 0;
}
.dc-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill,
.pill-topic,
.pill-period,
.pill-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 3px 9px;
  border-radius: 0;
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,0,0,0.1);
  letter-spacing: 0.3px;
}

/* Detail footer */
.dc-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.dc-source-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #000000;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #000000;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s;
  box-sizing: border-box;
}
.dc-source-btn:hover { background: #000000; color: #ffffff; }
.dc-source-btn.ai_method,
.dc-source-btn.person,
.dc-source-btn.institution,
.dc-source-btn.discovery {
  background: none;
  color: #000000;
  border-color: #000000;
  filter: none;
}
.dc-source-btn:hover { background: #000000 !important; color: #ffffff !important; }

/* ── CLOSE BUTTON ── */
.close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: 1px solid rgba(0,0,0,0.18);
  color: rgba(0,0,0,0.42);
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
  z-index: 10;
}
.close-btn:hover { color: #000; border-color: #000; background: rgba(0,0,0,0.04); }
