/* ============================================================
   AimwellBio — Intelligence Desk Module
   intelligence-desk.css
   All classes prefixed with `id-` to avoid conflicts.
   References CSS variables defined in styles.css.
   ============================================================ */

/* ── Root wrapper ─────────────────────────────────────────── */

.id-root {
  width: 100%;
  background: #040e1a;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Section ──────────────────────────────────────────────── */

.id-section {
  width: 100%;
  background: #040e1a;
  /* Clear fixed nav (104px desktop) + breathing room */
  padding: calc(104px + 2rem) 0 3rem;
}

@media (max-width: 640px) {
  .id-section {
    /* Mobile nav is 84px */
    padding: calc(84px + 1.5rem) 0 2rem;
  }
}

/* ── Container ────────────────────────────────────────────── */

.id-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Intro block ──────────────────────────────────────────── */

.id-intro {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.id-intro-text {
  flex: 0 0 auto;
  max-width: 560px;
}

.id-intro-visual {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 860px) {
  .id-intro {
    flex-direction: column;
    gap: 2rem;
  }
  .id-intro-text {
    max-width: 100%;
  }
  .id-intro-visual {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ── Intro SVG animations ─────────────────────────────────── */

@keyframes id-vis-pulse {
  0%   { transform: scale(0.9); opacity: 0.6; }
  50%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

@keyframes id-vis-pulse2 {
  0%   { transform: scale(0.9); opacity: 0.45; }
  50%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

@keyframes id-vis-flow {
  0%   { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

@keyframes id-vis-flow-rev {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 200; }
}

@keyframes id-vis-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes id-vis-spin-rev {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes id-vis-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

@keyframes id-vis-glow {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.7; }
}

@keyframes id-vis-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.id-vis-pulse  { animation: id-vis-pulse  2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.id-vis-pulse2 { animation: id-vis-pulse2 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.id-vis-flow   { animation: id-vis-flow   3s linear infinite; }
.id-vis-flow-r { animation: id-vis-flow-rev 3s linear infinite; }
.id-vis-spin   { animation: id-vis-spin   12s linear infinite; transform-box: fill-box; transform-origin: center; }
.id-vis-spin-r { animation: id-vis-spin-rev 18s linear infinite; transform-box: fill-box; transform-origin: center; }
.id-vis-blink  { animation: id-vis-blink  1.8s ease-in-out infinite; }
.id-vis-glow   { animation: id-vis-glow   2.8s ease-in-out infinite; }
.id-vis-float  { animation: id-vis-float  5s ease-in-out infinite; }

.id-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan, #00B3C6);
  margin-bottom: 0.85rem;
}

.id-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 0.9rem 0;
  max-width: 640px;
}

.id-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  max-width: 560px;
}

/* ── Shared card base ─────────────────────────────────────── */

.id-lead,
.id-briefing,
.id-signals,
.id-atlas,
.id-track-card,
.id-feat-card {
  background: rgba(6, 20, 38, 0.95);
  border: 1px solid rgba(0, 179, 198, 0.18);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.id-lead:hover,
.id-briefing:hover,
.id-signals:hover,
.id-atlas:hover,
.id-track-card:hover,
.id-feat-card:hover {
  border-color: rgba(0, 179, 198, 0.42);
  box-shadow: 0 0 18px rgba(0, 179, 198, 0.06);
}

/* ── Top row ──────────────────────────────────────────────── */

.id-top-row {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: stretch;
}

/* ── Live pulse animation ─────────────────────────────────── */

@keyframes id-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

@keyframes id-scan {
  0%   { top: 0;    opacity: 0; }
  5%   { opacity: 0.55; }
  95%  { opacity: 0.45; }
  100% { top: 100%; opacity: 0; }
}

/* Eyebrow live indicator dot */
.id-eyebrow-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00B3C6;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  animation: id-pulse 2.2s ease-in-out infinite;
}

/* ── Lead card ────────────────────────────────────────────── */

.id-lead {
  flex: 0 0 60%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  min-height: 300px;
}

.id-lead-img {
  flex: 0 0 44%;
  min-height: 260px;
  background: linear-gradient(135deg, #060f1c 0%, #0d1f38 50%, #091524 100%);
  position: relative;
  overflow: hidden;
}

/* Live scan-line effect */
.id-lead-img::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(0,179,198,0.5) 50%, transparent 100%);
  z-index: 4;
  animation: id-scan 5s linear infinite;
  pointer-events: none;
}

/* Right-edge fade to blend into body */
.id-lead-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(6, 20, 38, 0.92) 100%);
  z-index: 3;
  pointer-events: none;
}

/* SVG data viz fills the image area */
.id-lead-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Lead status badge (LIVE FEED) */
.id-lead-status {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 5;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 179, 198, 0.9);
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(6, 18, 32, 0.75);
  border: 1px solid rgba(0, 179, 198, 0.28);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
}

.id-lead-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00B3C6;
  animation: id-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.id-lead-body {
  flex: 1 1 56%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.id-lead-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.id-lead-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 0.6rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.id-lead-summary {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.8rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.id-lead-source {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.id-lead-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan, #00B3C6);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, opacity 0.2s ease;
  align-self: flex-start;
}

.id-lead-cta:hover {
  color: var(--cyan-light, #38d6ff);
}

/* ── Briefing card ────────────────────────────────────────── */

.id-briefing {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.id-briefing-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: linear-gradient(135deg, #04101c 0%, #081a2e 50%, #050f1c 100%);
  overflow: hidden;
  flex-shrink: 0;
}

/* Dark scrim + cyan glow so play button is readable over the poster image */
.id-briefing-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 14, 26, 0.45) 0%, rgba(3, 14, 26, 0.62) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(0, 179, 198, 0.12) 0%, transparent 65%);
  z-index: 1;
}

/* Subtle dot pattern over image */
.id-briefing-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 179, 198, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}

.id-briefing-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 179, 198, 0.22);
  border: 1.5px solid rgba(0, 179, 198, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 24px rgba(0, 179, 198, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.id-briefing-play:hover {
  background: rgba(0, 179, 198, 0.32);
  border-color: rgba(0, 179, 198, 0.9);
}

/* Play triangle via clip-path */
.id-briefing-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent rgba(0, 179, 198, 0.95);
  margin-left: 3px;
}

.id-briefing-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(4, 14, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 0.12rem 0.4rem;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}

.id-briefing-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.id-briefing-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan, #00B3C6);
  margin-bottom: 0.5rem;
}

.id-briefing-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.id-briefing-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 0.85rem;
}

.id-briefing-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan, #00B3C6);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
}

.id-briefing-cta:hover {
  color: var(--cyan-light, #38d6ff);
}

/* ── Middle row ───────────────────────────────────────────── */

.id-mid-row {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

/* ── Signals panel ────────────────────────────────────────── */

.id-signals {
  flex: 0 0 40%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.id-signals-hdr {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.id-signals-panel-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.id-signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.id-signal-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 179, 198, 0.08);
}

.id-signal-item:last-child {
  border-bottom: none;
}

.id-signal-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.id-signal-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.id-signal-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.id-signal-cat {
  letter-spacing: 0.06em;
}

.id-signal-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.id-signal-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.28);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 0.5rem;
  padding-top: 0.1rem;
}

.id-signals-footer-cta {
  display: inline-flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cyan, #00B3C6);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
  transition: color 0.2s ease;
}

.id-signals-footer-cta:hover {
  color: var(--cyan-light, #38d6ff);
}

/* Category icon color variants */
.id-icon--regulatory {
  background: rgba(220, 100, 30, 0.2);
  color: #e06020;
}

.id-icon--clinical {
  background: rgba(0, 179, 198, 0.2);
  color: #00B3C6;
}

.id-icon--market {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.id-icon--pubmed {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.id-icon--atlas {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Signal category text colors */
.id-signal-cat--regulatory { color: #e06020; }
.id-signal-cat--clinical   { color: #00B3C6; }
.id-signal-cat--market     { color: #4ade80; }
.id-signal-cat--pubmed     { color: #a78bfa; }
.id-signal-cat--atlas      { color: #fbbf24; }

/* ── ATLAS panel ──────────────────────────────────────────── */

.id-atlas {
  flex: 0 0 60%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.id-atlas-hdr {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* ── ATLAS command map band ───────────────────────────────── */

.id-atlas-map {
  position: relative;
  height: clamp(140px, 14vw, 190px);
  overflow: hidden;
  border: 1px solid rgba(0, 220, 235, 0.18);
  border-radius: 10px;
  margin-bottom: 0.85rem;
  /* Real world map — GeoJSON-derived continent paths via local SVG */
  background-image:
    linear-gradient(180deg, rgba(2, 12, 24, 0.38) 0%, rgba(1, 8, 16, 0.44) 100%),
    url('/atlas-world-map.svg');
  background-size: cover;
  background-position: center center;
  background-color: #010c18;
}

/* Institutional grid texture */
.id-atlas-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 220, 235, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 235, 0.032) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

/* Slow horizontal scan sweep */
@keyframes atlas-scanline {
  0%   { transform: translateX(-100%); opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 0.8; }
  100% { transform: translateX(160%); opacity: 0; }
}

/* Route arc breathing */
@keyframes atlas-route {
  0%, 100% { opacity: 0.3; stroke-dashoffset: 300; }
  50%       { opacity: 0.65; stroke-dashoffset: 0; }
}

/* Node outer ring expand-fade */
@keyframes atlas-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.id-atlas-map-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 220, 235, 0.055) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
  animation: atlas-scanline 10s ease-in-out infinite;
}

.id-atlas-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.atlas-route {
  animation: atlas-route 6s ease-in-out infinite;
}

.atlas-ring {
  animation: atlas-ring 2.6s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* ── ATLAS card grid ──────────────────────────────────────── */

.id-atlas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.id-atlas-card {
  background: rgba(5, 16, 32, 0.9);
  border: 1px solid rgba(0, 179, 198, 0.12);
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.id-atlas-card:hover {
  border-color: rgba(0, 179, 198, 0.38);
  box-shadow: 0 0 12px rgba(0, 179, 198, 0.05);
}

.id-atlas-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  flex-shrink: 0;
  font-size: 0.62rem;
}

.id-atlas-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id-atlas-count {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.05;
  white-space: nowrap;
}

.id-atlas-priority {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.id-atlas-priority--high {
  color: rgba(248, 113, 113, 0.9);
  background: rgba(220, 38, 38, 0.08);
  display: inline-block;
  padding: 0.1rem 0.38rem;
  border-radius: 3px;
}

.id-atlas-priority--medium {
  color: rgba(251, 191, 36, 0.85);
  background: rgba(251, 191, 36, 0.08);
  display: inline-block;
  padding: 0.1rem 0.38rem;
  border-radius: 3px;
}

.id-atlas-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--cyan, #00B3C6);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.28rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.id-atlas-link:hover {
  color: var(--cyan-light, #38d6ff);
}

/* prefers-reduced-motion: kill all map animations */
@media (prefers-reduced-motion: reduce) {
  .id-atlas-map-scanline { animation: none !important; }
  .atlas-route           { animation: none !important; stroke-dasharray: none !important; opacity: 0.45 !important; }
  .atlas-ring            { animation: none !important; }
}

/* ── Shared panel/section title ───────────────────────────── */

.id-panel-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

/* ── View all link ────────────────────────────────────────── */

.id-view-all-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan, #00B3C6);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.id-view-all-link:hover {
  opacity: 1;
  color: var(--cyan-light, #38d6ff);
}

/* ── Intelligence Tracks ──────────────────────────────────── */

.id-tracks {
  padding: 2rem 0 0;
}

.id-tracks-hdr {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem 0;
}

.id-tracks-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.id-track-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}

.id-track-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Subtle grid pattern on track images */
.id-track-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 179, 198, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 179, 198, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Track-specific image gradients */
.id-track-img--clinical {
  background-image: linear-gradient(135deg, #051526 0%, #0a2540 40%, #06293d 100%);
}

.id-track-img--regulatory {
  background-image: linear-gradient(135deg, #1a0a05 0%, #2d1208 40%, #1a0d05 100%);
}

.id-track-img--market {
  background-image: linear-gradient(135deg, #051a10 0%, #0a2d1c 40%, #062012 100%);
}

.id-track-img--disease {
  background-image: linear-gradient(135deg, #0d0520 0%, #1a0a35 40%, #0d0828 100%);
}

.id-track-img--briefings {
  background-image: linear-gradient(135deg, #050d1a 0%, #0a1a33 40%, #06152a 100%);
}

.id-track-img--verdicts {
  background-image: linear-gradient(135deg, #1a050a 0%, #2d0a12 40%, #1a0608 100%);
}

.id-track-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.id-track-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
}

.id-track-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.id-track-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cyan, #00B3C6);
  text-decoration: none;
  margin-top: 0.75rem;
  display: inline-flex;
  transition: color 0.2s ease;
}

.id-track-cta:hover {
  color: var(--cyan-light, #38d6ff);
}

/* ── Featured on AimwellBio ───────────────────────────────── */

.id-featured {
  padding: 2rem 0 0;
}

.id-featured-hdr {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.id-featured-hdr-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.id-featured-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.id-feat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.id-feat-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Featured image repeating dots overlay */
.id-feat-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Video-type featured card play icon */
.id-feat-img--video::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 179, 198, 0.18);
  border: 1px solid rgba(0, 179, 198, 0.45);
  z-index: 2;
}

.id-feat-img--video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(50% + 2px);
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 10px;
  border-color: transparent transparent transparent rgba(0, 179, 198, 0.85);
  z-index: 3;
  background: none;
  background-image: none;
  background-size: unset;
}

/* Featured card gradient backgrounds — category coded */
.id-feat-img--clinical   { background-image: linear-gradient(135deg, #051526 0%, #0a2540 40%, #06293d 100%); }
.id-feat-img--regulatory { background-image: linear-gradient(135deg, #1a0a05 0%, #2d1208 40%, #1a0d05 100%); }
.id-feat-img--market     { background-image: linear-gradient(135deg, #051a10 0%, #0a2d1c 40%, #062012 100%); }
.id-feat-img--disease    { background-image: linear-gradient(135deg, #0d0520 0%, #1a0a35 40%, #0d0828 100%); }
.id-feat-img--briefing   { background-image: linear-gradient(135deg, #050d1a 0%, #0a1a33 40%, #06152a 100%); }
.id-feat-img--verdict    { background-image: linear-gradient(135deg, #1a050a 0%, #2d0a12 40%, #1a0608 100%); }

.id-feat-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.id-feat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.14rem 0.45rem;
  border-radius: 3px;
  margin-bottom: 0.25rem;
}

.id-feat-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  margin: 0.3rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.id-feat-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.28);
  margin-top: auto;
  padding-top: 0.3rem;
}

/* ── Badge system ─────────────────────────────────────────── */

.id-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-width: 1px;
  border-style: solid;
  white-space: nowrap;
  line-height: 1.4;
}

.id-badge--reg {
  background: rgba(220, 100, 30, 0.15);
  border-color: rgba(220, 100, 30, 0.4);
  color: #e06020;
}

.id-badge--clinical {
  background: rgba(0, 179, 198, 0.12);
  border-color: rgba(0, 179, 198, 0.38);
  color: #00B3C6;
}

.id-badge--market {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.id-badge--demo {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}

.id-badge--preview {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}

.id-badge--updated {
  background: rgba(0, 179, 198, 0.18);
  border-color: rgba(0, 179, 198, 0.5);
  color: #38d6ff;
}

.id-badge--high {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
  color: #f87171;
}

.id-badge--atlas {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}

/* ── Disclaimer bar ───────────────────────────────────────── */

.id-disclaimer {
  border-top: 1px solid rgba(0, 179, 198, 0.10);
  padding: 1rem 0;
  margin-top: 2rem;
}

.id-disclaimer p {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* ── Loading / error states ───────────────────────────────── */

.id-loading {
  padding: 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.id-error {
  padding: 3rem;
  text-align: center;
  color: rgba(220, 50, 50, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .id-section {
    /* Keep nav clearance on tablet (nav still 104px at this breakpoint) */
    padding: calc(104px + 1.5rem) 0 2rem;
  }

  /* Top row: stack vertically */
  .id-top-row {
    flex-direction: column;
  }

  .id-lead {
    flex: none;
    width: 100%;
  }

  .id-briefing {
    flex: none;
    width: 100%;
  }

  /* Mid row: stack vertically */
  .id-mid-row {
    flex-direction: column;
  }

  .id-signals {
    flex: none;
    width: 100%;
  }

  .id-atlas {
    flex: none;
    width: 100%;
  }

  /* ATLAS: 4-col on tablet (compact enough) */
  .id-atlas-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  /* Map band: reduce height on tablet */
  .id-atlas-map {
    height: clamp(120px, 12vw, 160px);
  }

  /* Tracks: 3 columns */
  .id-tracks-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Featured: 3 columns */
  .id-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .id-headline {
    max-width: 100%;
  }

  .id-subheadline {
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {
  .id-section {
    /* Mobile nav is 84px */
    padding: calc(84px + 1.25rem) 0 1.5rem;
  }

  .id-container {
    padding: 0 1rem;
  }

  /* Intro */
  .id-intro {
    padding-bottom: 1.75rem;
  }

  .id-headline {
    font-size: 1.55rem;
  }

  /* Lead card: stack image above body on mobile */
  .id-lead {
    flex-direction: column;
  }

  .id-lead-img {
    flex: none;
    width: 100%;
    min-height: 180px;
  }

  .id-lead-body {
    flex: none;
    width: 100%;
    padding: 1.1rem;
  }

  .id-lead-title {
    font-size: 1.15rem;
  }

  /* Briefing thumb */
  .id-briefing-thumb {
    padding-top: 52%;
  }

  /* Signals: full width, reduce padding */
  .id-signals {
    padding: 1rem;
  }

  /* ATLAS: 2-column grid on mobile */
  .id-atlas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .id-atlas {
    padding: 1rem;
  }

  /* Tracks: 1 column */
  .id-tracks-grid {
    grid-template-columns: 1fr;
  }

  /* Featured: 1 column */
  .id-featured-grid {
    grid-template-columns: 1fr;
  }

  .id-feat-img {
    height: 140px;
  }

  /* Featured header — stack on very narrow */
  .id-featured-hdr {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  /* Disclaimer */
  .id-disclaimer {
    margin-top: 1.5rem;
  }

  .id-disclaimer p {
    text-align: left;
  }
}
