/* styles_v1_legacy.css — v1 component styles (.section,
   .pillar, .person, .news-list, etc.) for v2 pages that
   carry over v1 body content. Chrome sections (mockup-bar,
   penn-topbar, penn-header, nav, banner-white, ftr) are
   stripped because v2 has its own chrome in styles_v2.css.
   GENERATED — edit by re-running tools/build_v2.py. */

/* RESTORE Lab — alt1: Calm Clinical
   Re-themes the same class names from the main site with a warm, clean,
   inviting aesthetic. Manrope humanist sans + Lora italic + JetBrains Mono
   for technical eyebrows. Photography-led where possible. */

:root {
  --bg: #FBFBF8;
  --bg-soft: #F2F0EA;
  --bg-card: #ffffff;
  --bg-card-hover: #FAF8F2;
  --bg-warm: #F8E9DC;
  --bg-sage: #EAF1ED;
  --bg-sky: #E8F1F6;
  --bg-cream: #FBF5EB;

  --fg: #1F2A33;
  --fg-soft: #4A5660;
  --fg-mute: #8C969E;
  --line: #E5E1D6;
  --line-soft: #EFECE2;

  --accent: #37AAE1;
  --accent-deep: #1F6F94;
  --accent-soft: #DBEFF9;
  --peach: #E8B89F;
  --peach-deep: #C58867;
  --sage: #9BB196;
  --sage-deep: #6F8B6A;
  --penn-navy: #011F5B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--accent-deep); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--fg); }

img { max-width: 100%; height: auto; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -200px; left: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 18px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: -2px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  background: var(--bg);
  padding: 56px 48px 80px;
}
.section {
  max-width: 1180px;
  margin: 0 auto 56px;
}
.section:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--peach-deep);
  /* PCB micro-tile texture: a 92% peach overlay over the sparse PCB pattern,
     so the cyan traces sit at ~8% effective opacity behind the eyebrow text. */
  background-color: var(--bg-warm);
  background-image:
    linear-gradient(rgba(248, 233, 220, 0.92), rgba(248, 233, 220, 0.92)),
    url('pcb_pattern_sparse.svg');
  background-size: cover, 80px 80px;
  background-repeat: no-repeat, repeat;
  padding: 6px 14px 6px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--peach-deep);
  border-radius: 50%;
  flex-shrink: 0;
}
/* Solder-pad accent on the right side of the eyebrow, balancing the peach
   dot prefix on the left. Together they bracket the eyebrow text with two
   brand atoms (peach dot · text · cyan solder-pad). */
.eyebrow::after {
  content: "";
  width: 22px;
  height: 8px;
  background: url('solder-pad.svg') right center / contain no-repeat;
  margin-left: 4px;
  flex-shrink: 0;
}

.section h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 18px;
  max-width: 26ch;
}
.section h2 em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}
.section h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--fg);
  margin: 32px 0 14px;
  letter-spacing: -0.4px;
}
.section h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
/* Scoped to direct-child <p> only (`.section > p` rather than `.section p`).
   The section's own prose paragraphs still get the 70ch readability cap,
   but card-internal paragraphs (.opportunity, .media-card, .news-item, etc.)
   no longer inherit it — they're capped by their card's padding instead. */
.section > p {
  color: var(--fg-soft);
  font-size: 16.5px;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 70ch;
}
.section > p.lead {
  font-size: 19.5px;
  line-height: 1.55;
  color: var(--fg);
  font-weight: 400;
  max-width: 64ch;
}
.section > p.ack-foot {
  font-size: 14.5px;
  color: var(--fg-mute);
  border-left: 2px solid var(--peach);
  padding-left: 16px;
  margin-top: 20px;
  font-style: italic;
}
.section ul, .section ol { color: var(--fg-soft); margin: 12px 0 16px 22px; }
/* Brand element: replace the default disc bullet on .section <ul> with a
   spike-and-wave pulse marker. Keeps <ol> numbered (steps must read as
   ordered) but every <ul> gets the brand neural-signal atom. */
.section ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.section ul > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 6px;
}
.section ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 18px;
  height: 14px;
  background: url('pulse-marker.svg') left center / contain no-repeat;
  pointer-events: none;
}
/* Nested <ul>s inside an <li> stay slim (smaller marker, indented further) */
.section ul ul > li::before {
  width: 12px;
  height: 10px;
  opacity: 0.7;
}
.section ul ul {
  margin-top: 6px;
  margin-bottom: 0;
}
.section li { margin-bottom: 8px; line-height: 1.6; }

/* ===== CARD GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== PILLAR CARDS ===== */
.pillar {
  background: var(--bg-warm);
  border-radius: 22px;
  padding: 28px 26px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
  position: relative;
}
/* Brand element: chip-corner ornament in the top-right corner of each pillar.
   Subtle (24px, 0.55 opacity) so it reads as decoration, not as a logo. */
.pillar::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background-image: url('chip-corner.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.pillar:nth-child(2) { background: var(--bg-sage); }
.pillar:nth-child(3) { background: var(--bg-sky); }
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -16px rgba(31, 42, 51, 0.18);
}
.pillar:hover::before { opacity: 0.85; }

.pillar .pillar-glyph {
  width: 100%;
  height: 220px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 18px;
}
.pillar .pillar-glyph img {
  width: auto; height: 100%; max-width: 100%;
  display: block;
}

.pillar > .chip-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Brand element: themed effector / signal / device icon prefix on each pillar
   chip-label. Each pillar gets the icon that maps to its clinical territory:
   movement → robotic-arm, epilepsy → waveform-stub, pain → electrode-tip. */
.pillar > .chip-label::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 14px;
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.pillar:nth-child(1) > .chip-label::before {
  background-image: url('robotic-arm.svg');
  width: 30px;
}
.pillar:nth-child(2) > .chip-label::before {
  background-image: url('waveform-stub.svg');
  width: 36px;
}
.pillar:nth-child(3) > .chip-label::before {
  background-image: url('electrode-tip.svg');
  width: 30px;
}
.pillar h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--fg);
  margin: 6px 0 10px;
}
.pillar p {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.pillar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  align-self: flex-start;
}
.pillar a:hover { color: var(--accent-deep); }

/* Hide chip-marker (we use pillar-glyph instead) */
.pillar .chip-marker { display: none; }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--fg);
  border-radius: 24px;
  padding: 36px 36px;
  margin: 56px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  color: var(--bg);
}
.cta-strip a { color: var(--accent-soft); }
.cta-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
  position: relative;
}
/* Brand element: L-shape trace bracket framing the top-left corner of each
   CTA card. Cyan on the dark slate strip pops well; opacity 0.55 keeps it
   decorative rather than competing with the label / heading copy. */
.cta-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 110px;
  height: 44px;
  background-image: url('trace-bracket.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.cta-card:hover { background: rgba(255, 255, 255, 0.08); }
.cta-card:hover::before { opacity: 0.85; }
.cta-card .label {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--peach);
  background: rgba(232, 184, 159, 0.15);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.cta-card h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--bg);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.cta-card p {
  color: rgba(251, 251, 248, 0.7);
  font-size: 15px;
  margin-bottom: 14px;
}
.cta-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-soft);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}
.cta-card .arrow:hover { color: var(--bg); }

/* ===== NEWS BLOCK ===== */
.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  position: relative;
}
/* Brand element: burst-firing divider above the news list. The grid-column
   1 / -1 spans across both columns of the grid so the SVG appears as a
   full-width divider. Phasic-events rhythm fits "Recent activity" content. */
.news-list::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 22px;
  background: url('divider-burst.svg') center / contain no-repeat;
  margin-bottom: 18px;
  margin-top: -10px;
  opacity: 0.85;
}
/* Year heading inside news-list — spans both grid columns. */
.news-list .news-year {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.6px;
  color: var(--peach-deep);
  text-transform: uppercase;
  margin: 28px 0 0;
  padding: 8px 0 6px;
  border-bottom: 1px dashed var(--line);
}
.news-list .news-year:first-of-type {
  margin-top: 0;
}
.news-item {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 22px 26px 24px;
  background: var(--bg-card);
  transition: background 0.15s;
  position: relative;
}
/* Brand element: small chip-corner ornament in the top-right of each news
   item. Mirrors the pillar treatment so news items + pillars read as the
   same card system. Smaller (18px) and lower-opacity (0.4) than pillars
   since news items are denser. */
.news-item::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  background-image: url('chip-corner.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
}
.news-item:hover::before { opacity: 0.7; }
.news-item:nth-child(even) { border-right: none; }
.news-item:hover { background: var(--bg-card-hover); }
.news-item .date {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--fg-mute);
  margin-bottom: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Brand element: short waveform stub trailing the news-item date stamp.
   Tags this date as a "neural signal moment" — paper, award, event — and
   ties the news list to the lab's recording vocabulary. */
.news-item .date::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 12px;
  background: url('waveform-stub.svg') left center / contain no-repeat;
  opacity: 0.7;
  flex-shrink: 0;
}
.news-item:hover .date::after { opacity: 1; }
.news-item .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 3px 10px 3px 8px;
  border-radius: 100px;
  font-size: 10.5px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  vertical-align: middle;
}
/* Brand element: small lightning-bolt prefix on every news tag — reads as
   "activity / newsworthy event," ties the news list to the lab's electrical
   vocabulary and mirrors the bolt inside the Epilepsy glyph. */
.news-item .tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 12px;
  background: url('lightning-bolt.svg') center/contain no-repeat;
  flex-shrink: 0;
}
.news-item h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--fg);
  line-height: 1.45;
  margin-top: 8px;
  letter-spacing: -0.2px;
}
.news-item h4 a { color: var(--fg); }
.news-item h4 a:hover { color: var(--accent-deep); }

/* ===== PERSON CARD ===== */
.person {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}
.person:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(31, 42, 51, 0.16);
}
.person .photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-sage) 100%);
  border-radius: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-mute);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  overflow: hidden;
}
.person .photo.placeholder::before { content: "[ photo ]"; }
.person .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.person h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.person .role {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--accent-deep);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}
.person p {
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.person .links {
  font-size: 13px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.person .links a { margin-right: 14px; color: var(--accent-deep); }
.person .links a:hover { color: var(--fg); }

/* PI feature card */
.person.pi {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 100%);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 32px 32px 36px;
  border-radius: 24px;
  align-items: start;
  border: 1px solid var(--line);
}
.person.pi .photo {
  aspect-ratio: 1;
  max-width: 280px;
  margin-bottom: 0;
  border-radius: 18px;
}
.person.pi h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.7px;
  margin-bottom: 4px;
}
.person.pi .role { font-size: 13px; margin-bottom: 18px; }
.person.pi p { font-size: 16px; line-height: 1.65; max-width: 65ch; }

/* ===== TRIAL CARD ===== */
.trial {
  background: var(--bg-card);
  padding: 32px 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  position: relative;
}
.trial.completed { opacity: 0.95; background: var(--bg-soft); }
.trial.in-development { background: var(--bg-warm); }
.trial .status-pill {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.trial.completed .status-pill { background: rgba(140,150,158,0.15); color: var(--fg-mute); }
.trial.in-development .status-pill { background: rgba(232, 184, 159, 0.4); color: var(--peach-deep); }
.trial h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.trial p { color: var(--fg-soft); font-size: 15.5px; margin-bottom: 14px; line-height: 1.6; max-width: none; }
.trial ul li { font-size: 15px; color: var(--fg-soft); }
.trial .footer-row {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
  font-size: 14px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
/* Lab life photo grid — 2-column on desktop, single column on small screens.
   Existing photos render normally; missing photos fall through to a brand
   placeholder via the onerror handler on the <img>. */
.lab-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 14px 0 28px;
}
.lab-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.lab-photo img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-soft);
}
.lab-photo figcaption {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--fg-mute);
  padding: 12px 16px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
/* Placeholder fallback when the photo file is missing — applied by the
   <img onerror> handler. The figure shows a peach-warm gradient with a
   small lab-mark watermark instead of an empty white box. */
.lab-photo.placeholder-fallback {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-sage) 100%);
  position: relative;
}
.lab-photo.placeholder-fallback::before {
  content: "";
  display: block;
  height: 220px;
  background: url('restore-lab-mark.svg') center / 80px no-repeat;
  opacity: 0.35;
}
@media (max-width: 720px) {
  .lab-photo-grid { grid-template-columns: 1fr; }
  .lab-photo img, .lab-photo.placeholder-fallback::before { height: 180px; }
}

.trial-figure {
  margin: 14px 0 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.trial-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  background: var(--bg-soft);
}
.trial-figure figcaption {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--fg-mute);
  padding: 12px 16px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

/* Study logo (e.g., FOG study branding inside a trial card) */
.study-logo {
  float: right;
  margin: 0 0 18px 26px;
  width: 150px;
  shape-outside: padding-box;
}
.study-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 18px -10px rgba(31, 42, 51, 0.18);
}
.study-logo figcaption {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--fg-mute);
  text-align: center;
  margin-top: 8px;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .study-logo { float: none; width: 130px; margin: 0 auto 18px; display: block; }
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0 22px;
}
.faq-item:first-of-type { border-top: 1px solid var(--line); padding-top: 22px; }
.faq-item h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.faq-item p { color: var(--fg-soft); font-size: 15.5px; line-height: 1.65; margin-bottom: 0; max-width: 72ch; }

/* ===== PUBLICATIONS ===== */
.pub-year-header {
  font-family: 'Manrope', sans-serif;
  font-weight: 200;
  font-size: 38px;
  color: var(--fg);
  letter-spacing: -1px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin: 36px 0 18px;
}
.pub-year-header:first-child { margin-top: 0; }
.publication {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.publication .authors { color: var(--fg); font-size: 14px; line-height: 1.55; }
.publication .authors b { color: var(--accent-deep); font-weight: 700; }
.publication .title {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 17.5px;
  color: var(--fg);
  margin: 6px 0 4px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.publication .venue {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.1px;
}
.publication .venue em { color: var(--accent-deep); font-style: normal; font-weight: 600; }
.publication .links {
  margin-top: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.publication .links a { margin-right: 16px; color: var(--accent-deep); }

/* ===== TOOL / SOFTWARE CARD ===== */
.tool {
  background: var(--bg-card);
  padding: 28px 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.tool:hover { box-shadow: 0 10px 28px -16px rgba(31, 42, 51, 0.16); }
.tool h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent-deep);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.tool .meta {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--fg-mute);
  margin-bottom: 16px;
  letter-spacing: 0.1px;
}
.tool p { color: var(--fg-soft); font-size: 15px; line-height: 1.6; margin-bottom: 12px; max-width: none; }
.tool .tool-footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.tool .tool-footer a { color: var(--accent-deep); }

/* ===== OPPORTUNITY ===== */
.opportunity {
  background: var(--bg-card);
  padding: 32px 32px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.opportunity h3 { margin-top: 0; }
/* The card's 32px side padding is the readability boundary here —
   override the .section p 70ch cap so the body fills the card width. */
.opportunity p { max-width: none; }
.opportunity .level {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--peach-deep);
  background: var(--bg-warm);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ===== INFO BOX ===== */
.info-box {
  background: var(--bg-warm);
  padding: 22px 26px;
  margin: 24px 0;
  border-radius: 16px;
  border-left: 4px solid var(--peach-deep);
}
.info-box .label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--peach-deep);
  margin-bottom: 6px;
}
.info-box p { margin: 0; color: var(--fg); font-size: 15.5px; line-height: 1.6; max-width: none; }
.info-box.warn { background: #FBE6DA; border-left-color: #C56C42; }
.info-box.warn .label { color: #B0532E; }

/* ===== FUNDING LOGOS ===== */
.funders {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}
.funders .funder {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  height: 84px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
}
.funders .funder:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -6px rgba(31, 42, 51, 0.18);
}
.funders .funder.logo { background: var(--bg-card); padding: 10px 18px; }
.funders .funder.logo img {
  max-height: 64px;
  max-width: 240px;
  width: auto;
  height: auto;
  display: block;
}

/* ===== MEDIA & PODCAST ===== */
.media-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.25s;
}
.media-card:hover { box-shadow: 0 16px 36px -20px rgba(31, 42, 51, 0.2); }
.media-card .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}
.media-card .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-card .body { padding: 26px 28px 28px; }
.media-card .meta {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.media-card h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--fg);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.media-card p { color: var(--fg-soft); font-size: 15px; line-height: 1.6; margin-bottom: 10px; max-width: none; }
.media-card .links {
  margin-top: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
}
.media-card .links a { margin-right: 18px; color: var(--accent-deep); }

.podcast-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px 30px;
  margin-bottom: 22px;
}
.podcast-card .audio-frame {
  width: 100%;
  height: 200px;
  background: var(--bg-soft);
  border-radius: 12px;
  margin: 14px 0 18px;
  overflow: hidden;
}
.podcast-card .audio-frame iframe { width: 100%; height: 100%; border: 0; }
.podcast-card .show {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.podcast-card h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--fg);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
  margin-top: 14px;
  font-size: 12px;
  color: rgba(251, 251, 248, 0.5);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}

/* ===== AUDIENCE ROUTER (home page) ===== */
.audience-router {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin: 28px 0 28px;
}
.audience-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(31,42,51,0.22);
}
.audience-card.audience-patient { border-left: 5px solid var(--peach-deep); }
.audience-card.audience-patient:hover { border-color: var(--peach-deep); }
.audience-card.audience-research { border-left: 5px solid var(--accent-deep); }
.audience-card.audience-research:hover { border-color: var(--accent-deep); }
.audience-card .audience-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.audience-card.audience-patient .audience-eyebrow { color: var(--peach-deep); }
.audience-card.audience-research .audience-eyebrow { color: var(--accent-deep); }
.audience-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--fg);
  margin: 0 0 10px;
}
.audience-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0 0 14px;
}
.audience-card .audience-cta {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1px;
}
.audience-card.audience-patient .audience-cta { color: var(--peach-deep); }
.audience-card.audience-research .audience-cta { color: var(--accent-deep); }

/* ===== NEWS TYPE CHIP (home news block) ===== */
.news-item .news-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-right: 8px;
  vertical-align: middle;
}
.news-item .news-type.news-paper { background: var(--bg-warm); color: var(--peach-deep); }
.news-item .news-type.news-grant { background: rgba(155,177,150,0.18); color: var(--sage-deep); }
.news-item .news-type.news-award { background: rgba(55,170,225,0.14); color: var(--accent-deep); }
/* Added for the news.html feed: fellowship reuses the warm peach palette
   (kindred to award/paper); talk leans on the sky-blue accent; trainee
   borrows the sage palette so it reads as the "internal lab milestone"
   tone (defenses, candidacy passes, theses). */
.news-item .news-type.news-fellowship { background: var(--bg-warm); color: var(--peach-deep); }
.news-item .news-type.news-talk { background: var(--bg-sky); color: var(--accent-deep); }
.news-item .news-type.news-trainee { background: var(--bg-sage); color: var(--sage-deep); }
.news-item .news-type::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== NEWS PAGE (DEDICATED FEED — news.html, news-archive.html) =====
   Extensions of the .news-list / .news-item base classes for the dedicated
   news page. The homepage's compact 2-column "Recent activity" block keeps
   the original layout; this override gives each medium-template card the
   breathing room a 2–3 sentence body and outbound link need.

   Promoted from the inline <style> in news_sample.html (sign-off preview).
   See CLAUDE.md "ALT1 DESIGN — News Area Build" for the locked spec. */

/* Single-column override for the dedicated news page only. */
.news-list--feed {
  grid-template-columns: 1fr;
}
.news-list--feed .news-item {
  border-right: none;
  padding: 26px 32px 28px;
}

/* Date stamp at the top of each medium card. JetBrains-Mono peach matches
   the year heading so date and year read as the same family. */
.news-item .date-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: var(--peach-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* 2–3 sentence body beneath the headline. Mirrors .person p so cards
   across the site feel of a piece. The .section p rule (max-width: 70ch)
   would otherwise cap the body at ~700px and leave a wide dead zone on
   the right of each card; the card's own padding is the readability
   boundary here, so we override to let body text fill the card. */
.news-item .body {
  margin-top: 10px;
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: none;
}

/* Outbound link affordance under the body — paper-arrow style consistent
   with the lab's existing "Read on Penn Medicine →" pattern (media.html). */
.news-item .links {
  margin-top: 12px;
}
.news-item .links a {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--accent-deep);
  letter-spacing: 0.2px;
}
.news-item .links a:hover { color: var(--fg); }

/* Filter chip row at the top of news.html. Reuses the existing tag pill
   visual language with a subtle active state. */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}
.news-filters button {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  background: var(--bg-soft);
  color: var(--fg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.news-filters button:hover {
  background: var(--bg-card-hover);
  color: var(--fg);
}
.news-filters button.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: var(--accent-soft);
}

/* Category-driven filtering. The four filter chips correspond to four
   modifier classes on each card: --talks, --awards, --papers, --trainee.
   Note: a single card can carry more than one (e.g. a fellowship-awarded
   entry that's also a trainee milestone), so cards stay visible whenever
   they match the active category, and hide otherwise. */
.news-list[data-active-category="talks"]   .news-item:not(.news-item--talks),
.news-list[data-active-category="awards"]  .news-item:not(.news-item--awards),
.news-list[data-active-category="papers"]  .news-item:not(.news-item--papers),
.news-list[data-active-category="trainee"] .news-item:not(.news-item--trainee) {
  display: none;
}

/* ===== MEDIA CARD TYPE CHIP ===== */
.media-card .meta-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
}
.media-card .meta-type.type-article { background: var(--bg-warm); color: var(--peach-deep); }
.media-card .meta-type.type-video { background: rgba(55,170,225,0.14); color: var(--accent-deep); }
.media-card .meta-type::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== ACRONYM DECODER ===== */
.acronym-decoder {
  margin: 28px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Brand element: replace the plain 1px hairlines with the trace divider so
   the acronym block reads as a circuit motif bracketed top + bottom. */
.acronym-decoder .rule {
  height: 22px;
  width: 100%;
  background: url('divider-trace.svg') center/contain no-repeat;
}
.acronym-decoder .cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.acronym-decoder .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 110px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-warm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.acronym-decoder .card:nth-child(2) { background: var(--bg-sage); }
.acronym-decoder .card:nth-child(3) { background: var(--bg-sky); }
.acronym-decoder .card:nth-child(4) { background: var(--bg-cream); }
.acronym-decoder .card:nth-child(5) { background: var(--bg-warm); }
.acronym-decoder .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -10px rgba(31,42,51,0.18);
}
.acronym-decoder .letter {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.8px;
}
.acronym-decoder .word {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.acronym-decoder .word span { color: var(--fg); font-weight: 600; }

/* ===== SECTION HEADER WITH GLYPH (research/trials) ===== */
.section-header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.section-header-row .section-glyph {
  display: inline-block;
  width: 120px;
  height: 120px;
  background: var(--bg-warm);
  border-radius: 20px;
  padding: 10px;
  flex-shrink: 0;
}
.section-header-row .section-glyph img { width: 100%; height: 100%; display: block; }
.section-header-row h2,
.section-header-row h3 { margin: 0 !important; }
@media (max-width: 720px) {
  .section-header-row .section-glyph {
    width: 84px; height: 84px;
    border-radius: 16px;
    padding: 8px;
  }
  .section-header-row { gap: 16px; }
}

/* ===== TRUST BAND ===== */
.trust-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-radius: 18px;
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.trust-band .trust-cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.trust-band .trust-cell:last-child { border-right: 0; }
.trust-band .trust-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent-deep);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.trust-band .trust-label {
  font-size: 12.5px;
  color: var(--fg-soft);
  margin-top: 6px;
  line-height: 1.45;
}
.trust-band .trust-label a { color: var(--fg-soft); border-bottom: 1px solid var(--line); }
.trust-band .trust-label a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* ===== PATIENT PAGE — ENTRY TILES ===== */
.entry-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.entry-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px 26px 28px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.entry-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(31,42,51,0.18);
}
.entry-tile .tile-glyph {
  width: 32px; height: 32px;
  margin-bottom: 14px;
}
.entry-tile .tile-glyph img { width: 100%; height: 100%; display: block; }
.entry-tile .tile-glyph.topical {
  width: calc(100% + 52px);
  height: 180px;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-sage));
  border-radius: 14px;
  margin: -28px -26px 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-tile .tile-glyph.topical img { width: auto; height: 100%; max-width: 100%; }
.entry-tile .tile-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--peach-deep);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.entry-tile h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 21px;
  color: var(--fg);
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.entry-tile p {
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 14px;
}
.entry-tile .tile-cta {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-deep);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ===== PATIENT PI CARD ===== */
.patient-pi {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 32px 32px 28px;
  margin-top: 14px;
}
.patient-pi .photo {
  width: 280px;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.patient-pi .photo.placeholder::before {
  content: "[ photo ]";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fg-mute);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
}
.patient-pi .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.patient-pi .info h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--fg);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.patient-pi .info .role {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.patient-pi .info p {
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 62ch;
}
.patient-pi .info p em { color: var(--fg); font-style: italic; }
.patient-pi .info p a { color: var(--accent-deep); }
.patient-pi .info .links {
  margin-top: 18px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.patient-pi .info .links a {
  display: inline-block;
  margin-right: 18px;
  color: var(--accent-deep);
}

/* ===== CONDITIONS / PROCEDURES ===== */
.condition-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.condition-card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 26px 28px 28px;
}
.condition-card h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--peach-deep);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.proc-glyphs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 18px 16px;
  background: var(--bg-warm);
  border-radius: 14px;
  border: 1px solid var(--line-soft);
}
.proc-glyphs figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
}
.proc-glyphs figure img {
  width: 80px;
  height: 80px;
  display: block;
}
.proc-glyphs figure figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--peach-deep);
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
}
.condition-card .plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.condition-card .plain-list li {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.6;
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.condition-card .plain-list li:last-child { border-bottom: 0; }
.condition-card .plain-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
  font-size: 13px;
  top: 11px;
  font-weight: 600;
}
.condition-card .plain-list li b { color: var(--fg); font-weight: 700; }
.condition-card .plain-list ul {
  margin-top: 6px;
  padding-left: 20px;
  list-style: none;
}
.condition-card .plain-list ul li {
  font-size: 14px;
  border-bottom: 0;
  padding: 4px 0 4px 18px;
}
.condition-card .plain-list ul li::before { content: "·"; color: var(--fg-mute); top: 4px; }

/* ===== CLINIC CARD ===== */
.clinic-card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 26px 28px 28px;
}
.clinic-card .clinic-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--peach-deep);
  background: var(--bg-warm);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.clinic-card h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--fg);
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.clinic-card .address {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.55;
  margin: 0 0 10px;
}
.clinic-card .phone-line {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-soft);
  margin: 0 0 14px;
}
.clinic-card .phone-line a {
  color: var(--accent-deep);
  border-bottom: 1.5px solid var(--accent-deep);
}
.clinic-card .meta {
  font-size: 13.5px;
  color: var(--fg-mute);
  line-height: 1.55;
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.clinic-card .clinic-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-deep);
  border-bottom: 1.5px solid var(--accent-deep);
  padding-bottom: 1px;
}

/* ===== PATIENT STORIES (per-track named-case feature cards) =====
   Different from .patient-quote (anonymized Penn Medicine review excerpts).
   These are case-feature callouts that surface a specific publicly-named
   patient and link to the media coverage. No invented quotes. */
.patient-story {
  background: var(--bg-warm);
  border-left: 4px solid var(--peach-deep);
  border-radius: 0 14px 14px 0;
  padding: 22px 26px 20px;
  margin: 22px 0 0;
}
.patient-story .story-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--peach-deep);
  margin-bottom: 8px;
}
.patient-story h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.patient-story p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0 0 12px;
  max-width: none;
}
.patient-story .story-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-deep);
  padding-bottom: 1px;
}
.patient-story .story-link:hover {
  background: rgba(55,170,225,0.12);
}
.patient-story.story-pending {
  background: var(--bg-soft);
  border-left-color: var(--line);
  font-style: italic;
}
.patient-story.story-pending .story-eyebrow {
  color: var(--fg-mute);
}
.patient-story.story-pending p {
  color: var(--fg-mute);
}

/* ===== PATIENT QUOTES ===== */
.patient-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.patient-quote {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 26px 26px 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.patient-quote p {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.45;
  color: var(--fg);
  font-style: italic;
  margin: 0 0 14px;
  flex: 1;
  position: relative;
  padding-left: 18px;
}
.patient-quote p::before {
  content: "“";
  position: absolute;
  left: -2px; top: -8px;
  font-family: 'Lora', serif;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.patient-quote cite {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--fg-mute);
  font-style: normal;
  letter-spacing: 0.3px;
}

/* ===== REFERRAL ===== */
.contact-block {
  background: var(--bg-card);
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 32px 32px 30px;
}
.contact-block h3 { margin-top: 0; }
.contact-block ul { list-style: none; margin: 0; padding: 0; }
.contact-block li { padding: 10px 0; }
.contact-block li b { color: var(--fg); }
.referral-list { list-style: none; margin: 0; padding: 0; }
.referral-list li {
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.referral-list li:last-child { border-bottom: 0; }
.referral-list li b {
  color: var(--fg);
  font-weight: 700;
  display: inline-block;
  margin-right: 6px;
}
.referral-list li em { color: var(--accent-deep); font-style: italic; }
.referral-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--fg-mute);
  line-height: 1.6;
}

/* ===== GLOSSARY ===== */
.glossary-list { list-style: none; margin: 0; padding: 0; }
.glossary-list dt {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-deep);
  margin-top: 22px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.glossary-list dt .dt-glyph {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--bg-warm);
  border-radius: 9px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.glossary-list dt .dt-glyph img { width: 100%; height: 100%; display: block; }
.glossary-list dd {
  color: var(--fg-soft);
  margin: 6px 0 0 0;
  font-size: 15px;
  line-height: 1.65;
  padding-left: 18px;
  border-left: 1.5px dashed var(--line);
  max-width: 70ch;
}

/* Inline cross-reference into the glossary — used on patient/research pages.
   Renders as the surrounding text with a dotted underline that signals
   "click for a definition" without competing with regular hyperlinks. */
.glossary-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--peach-deep);
  padding-bottom: 1px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  cursor: help;
}
.glossary-link:hover,
.glossary-link:focus-visible {
  background: var(--bg-warm);
  border-bottom-color: var(--accent-deep);
  color: var(--accent-deep);
}
.glossary-letter-jump {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--fg-mute);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.glossary-letter-jump a {
  display: inline-block;
  color: var(--accent-deep);
  margin-right: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.15s;
}
.glossary-letter-jump a:hover { background: var(--bg-warm); color: var(--fg); }

/* ===== 404 SUPPORT ===== */
.page-content.not-found { padding-top: 64px; }
.nf-hero {
  max-width: 1100px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.nf-hero .nf-glyph img { width: 100%; max-width: 280px; height: auto; display: block; }
.nf-hero .nf-copy h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 200;
  font-size: 64px;
  margin: 16px 0 18px;
  color: var(--fg);
  letter-spacing: -1.5px;
}
.nf-hero .nf-copy .lead {
  color: var(--fg-soft);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 56ch;
}
.nf-hero .nf-copy a { color: var(--accent-deep); }
.nf-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.nf-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(31,42,51,0.16); }
.nf-card .num {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--peach-deep);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.nf-card h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--fg);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.nf-card p { color: var(--fg-soft); font-size: 14px; line-height: 1.6; margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .penn-header { padding: 18px 22px; gap: 16px; }
  .penn-header .penn-crest { width: 48px; height: 48px; font-size: 10px; }
  .penn-header .lab-title { padding-left: 16px; }
  .penn-header .lab-title .name { font-size: 24px; }
  .nav { padding: 12px 22px; }
  .nav ul { gap: 4px; }
  .nav a { padding: 8px 14px; font-size: 13.5px; }
  .banner-white { padding: 36px 22px 48px; }
  .page-content { padding: 36px 22px 56px; }
  .ftr { grid-template-columns: 1fr; padding: 36px 22px 28px; gap: 28px; }
  .person.pi, .patient-pi { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .person.pi .photo, .patient-pi .photo { max-width: 280px; width: 100%; }
  .patient-quotes, .condition-row, .news-list { grid-template-columns: 1fr; }
  .news-item:nth-child(odd), .news-item:nth-child(even) { border-right: none; }
  .cta-strip { grid-template-columns: 1fr; padding: 28px; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .section h2 { font-size: 28px; }
  .section h3 { font-size: 19px; }
  .pillar .pillar-glyph { height: 120px; }
  .nf-hero { grid-template-columns: 1fr; gap: 28px; }
  .nf-hero .nf-glyph img { max-width: 200px; margin: 0 auto; }
  .nf-hero .nf-copy h1 { font-size: 44px; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .pillar:hover, .person:hover, .entry-tile:hover, .nf-card:hover, .funders .funder:hover { transform: none; }
}

/* ===== print ===== */
@media print {
  body { background: white !important; color: black !important; }
  .mockup-bar, .penn-topbar, .nav, .ftr, .skip-link { display: none !important; }
  .penn-header { background: white !important; padding: 10px 0 !important; }
  .banner-white, .page-content { padding: 12px 0 !important; }
  .pillar, .person, .trial, .info-box, .opportunity, .news-item, .media-card, .podcast-card, .condition-card, .clinic-card, .glossary-list dd, .entry-tile {
    background: white !important; border-color: #888 !important; color: black !important; page-break-inside: avoid;
  }
  a, a:link { color: #1F6F94 !important; text-decoration: underline !important; }
  a[href^="http"]::after { content: " <" attr(href) ">"; font-size: 0.85em; color: #555; }
  a[href^="mailto:"]::after, a[href^="tel:"]::after, a[href^="#"]::after { content: ""; }
}

/* =====================================================================
   .card-traced — utility class to apply brand corner ornaments to any
   card. Composes ::before (top-left L-bracket) + ::after (top-right
   chip-corner). Variants override the ::after with alternate atoms:
   .card-traced.with-arm   → robotic arm in the top-right
   .card-traced.with-grip  → gripper jaws in the top-right
   .card-traced.with-wave  → waveform stub in the top-right
   ===================================================================== */
.card-traced { position: relative; }
.card-traced::before {
  content: "";
  position: absolute;
  top: 6px; left: 6px;
  width: 96px;
  height: 38px;
  background: url('trace-bracket.svg') left top / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.card-traced::after {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 22px;
  height: 22px;
  background: url('chip-corner.svg') center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.card-traced.with-arm::after {
  width: 38px; height: 26px;
  background-image: url('robotic-arm.svg');
}
.card-traced.with-grip::after {
  width: 26px; height: 30px;
  background-image: url('gripper.svg');
}
.card-traced.with-wave::after {
  width: 56px; height: 12px;
  top: 18px;
  background-image: url('waveform-stub.svg');
}
.card-traced.with-electrode::after {
  width: 36px; height: 14px;
  top: 18px;
  background-image: url('electrode-tip.svg');
}
.card-traced:hover::before, .card-traced:hover::after { opacity: 0.9; }

/* =====================================================================
   ASPIRATIONAL — animated brand atoms.
   All wrapped in prefers-reduced-motion: no-preference so users with
   motion-sensitivity preferences see static state only.
   ===================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* --- 1. Lab mark hover glow ---
     The trace cascade itself is animated inside restore-lab-mark.svg
     via embedded CSS (runs once on first render). Here we add a soft
     drop-shadow + scale on hover so the mark stays alive on subsequent
     hovers. */
  .penn-header .lab-mark {
    transition: filter 0.25s ease-out, transform 0.25s ease-out;
  }
  .penn-header .lab-mark:hover {
    filter: drop-shadow(0 0 12px rgba(55, 170, 225, 0.45));
    transform: scale(1.05);
  }

  /* --- 2. Pillar themed-icon hover motion ---
     On pillar hover the themed effector / signal / device icon nudges
     to the right (3 px) over 320 ms — suggests motion / activity. */
  .pillar > .chip-label::before {
    transition: transform 0.32s cubic-bezier(.2,.7,.2,1), opacity 0.25s;
  }
  .pillar:hover > .chip-label::before {
    transform: translateX(3px);
  }

  /* --- 3. Banner spark-burst slow pulse ---
     The page-level "live page" spark cycles between 0.7 and 1.0 opacity
     on a 3 s ease-in-out infinite loop. Subtle by design. */
  @keyframes brandSparkPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
  }
  .banner-white .right .tag::after {
    transform-origin: center;
    animation: brandSparkPulse 3s ease-in-out infinite;
  }

  /* --- 4. <ul> pulse-marker hover fire ---
     When hovering a list item, the pulse-marker briefly enlarges and
     deepens to deep cyan via filter — like the spike "firing." */
  .section ul > li::before {
    transition: transform 0.18s cubic-bezier(.2,.7,.2,1), filter 0.18s;
    transform-origin: center;
  }
  .section ul > li:hover::before {
    transform: scale(1.18);
    filter: brightness(0.8) saturate(1.4);
  }

  /* --- 5. News date waveform hover emphasis ---
     On news-item hover the trailing waveform stub nudges 4 px right
     and bumps to full opacity. Reads as "live signal moving." */
  .news-item .date::after {
    transition: transform 0.32s cubic-bezier(.2,.7,.2,1), opacity 0.25s;
  }
  .news-item:hover .date::after {
    transform: translateX(4px);
  }

  /* --- 6. CTA card L-bracket hover flicker ---
     The cyan L-bracket on the CTA card brightens slightly on hover
     (existing opacity transition + a tiny rotation). */
  .cta-card::before {
    transition: opacity 0.25s, transform 0.32s cubic-bezier(.2,.7,.2,1);
    transform-origin: top left;
  }
  .cta-card:hover::before {
    transform: scale(1.04);
  }
}
