/* erc-immunotherapy.com — site styles (Option B redesign, 2026-10). */
:root {
  --ink: #12242b;
  --muted: #4d5f66;
  --teal-900: #0b4d5c;
  --teal-700: #0f6f7c;
  --teal: #149aa3;
  --teal-50: #eaf5f6;
  --sand: #f7f5f1;
  --line: #dfe7e9;
  --patients: #a3417a;
  --doctors: #2873b3;
  --investors: #4f8f35;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 42, 51, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 "Inter", system-ui, sans-serif; color: var(--ink); background: #fff; }
h1, h2, h3, h4 { font-family: "Manrope", "Inter", sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 700 .78rem/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.btn { display: inline-flex; align-items: center; gap: .5em; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn-primary { background: var(--teal-900); color: #fff; }
.btn-ghost { border: 1.5px solid var(--teal-900); color: var(--teal-900); }
.section { padding: 96px 0; }
.section-sand { background: var(--sand); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 30px; align-items: center; font-size: .95rem; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--teal-700); box-shadow: inset 0 -2px 0 var(--teal); padding-bottom: 4px; }
.nav .btn { padding: 10px 20px; color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.menu-btn span { display: block; height: 2px; width: 20px; background: var(--ink); margin: 4px auto; }

/* hero */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--teal-50), #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal-700); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: 24px; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.badge { position: absolute; left: -24px; bottom: 28px; background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); max-width: 280px; }
.badge strong { display: block; font-family: "Manrope"; font-size: 1.05rem; }
.badge small { color: var(--muted); }

/* audience cards */
.audiences { margin-top: -44px; position: relative; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud { background: #fff; border-radius: var(--radius); padding: 28px 28px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--c); text-decoration: none; color: var(--ink); }
.aud h3 { color: var(--c); }
.aud p { color: var(--muted); font-size: .97rem; }
.aud .more { font-weight: 600; color: var(--c); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: 20px; aspect-ratio: 1 / 1; object-fit: cover; }

/* product band */
.band { background: var(--teal-900); color: #fff; }
.band .eyebrow { color: #7fd3d8; }
.band p { color: #cfe6e9; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.fact { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; }
.fact .num { font: 800 2rem/1 "Manrope"; color: #7fd3d8; margin-bottom: 10px; }
.fact p { margin: 0; font-size: .97rem; }

/* news cards */
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card .body { padding: 20px 22px 24px; }
.news-card time { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.news-card h3 { margin-top: 8px; font-size: 1.1rem; }
.chip { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--teal-700); background: var(--teal-50); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 1px; }
.filters { display: flex; gap: 10px; margin-bottom: 30px; }
.filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.filters a.on { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }

/* page header */
.page-head { padding: 64px 0 48px; background: linear-gradient(180deg, var(--teal-50), #fff); }

/* team */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tabs a { padding: 12px 18px; text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a.on { color: var(--teal-900); box-shadow: inset 0 -3px 0 var(--teal); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--teal-50); }
.person .body { padding: 20px 22px 22px; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--teal-700); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.person p { color: var(--muted); font-size: .95rem; }
.person details summary { cursor: pointer; font-weight: 600; color: var(--teal-700); list-style: none; }
.lowres { position: relative; }
.lowres::after { content: "photo needed"; position: absolute; top: 12px; right: 12px; background: #fff3cd; color: #7a5b00; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .88rem; font-weight: 600; margin: 0 0 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 16px; }
.form textarea { min-height: 140px; }
.notice { background: var(--teal-50); border-radius: 12px; padding: 16px 18px; font-size: .95rem; margin-bottom: 22px; }
.offices { display: grid; gap: 14px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.office h3 { font-size: 1.05rem; margin-bottom: 6px; }
.office .hq { font-size: .72rem; font-weight: 700; color: #fff; background: var(--teal); border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: 2px; }
.office p { margin: 0; color: var(--muted); font-size: .95rem; }
.office a { text-decoration: none; }

/* footer */
.site-footer { background: #0c1f25; color: #b9cbd0; padding: 72px 0 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #b9cbd0; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.site-footer .legal a { display: inline; margin-left: 18px; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: var(--ink); color: #e3eef0; border-radius: 14px; padding: 14px 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; font-size: .9rem; box-shadow: var(--shadow); }
.cookie a { color: #7fd3d8; }
.cookie button { background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 600; font: inherit; }


@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .site-header .wrap { height: 64px; }
  .logo img { height: 20px; }
  .hero { padding: 40px 0 72px; }
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .badge { left: 12px; bottom: 12px; }
  .cards-3, .facts, .news-grid, .team-grid, .site-footer .cols { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .person .body { padding: 14px; }
  .person p, .person details { display: none; }
  .person h3 { font-size: 1rem; }
  .person .role { font-size: .82rem; margin: 0; }
  .section { padding: 64px 0; }
  .head-row { flex-direction: column; align-items: start; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
}

/* ---------- additions for the full site ---------- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #7fd3d8; outline-offset: 2px; }
.site-header .logo img { height: 26px; }
.mobile-nav { display: none; }
body.nav-open .mobile-nav { display: block; position: fixed; inset: 64px 0 0 0; background: #fff; z-index: 9; padding: 16px 24px 40px; overflow-y: auto; }
.mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.mobile-nav .btn { margin-top: 20px; color: #fff; justify-content: center; border: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-700); }

/* prose: text from the old site */
.prose { max-width: 46em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cols-2 .prose { max-width: none; }

/* rich page sections */
.page-head .lead { margin-bottom: 0; }
.rich-section { padding: 72px 0; border-top: 1px solid var(--line); }
.rich-section:first-of-type { border-top: 0; }
.rich-section.alt { background: var(--sand); border-top: 0; }
.rich-section h2 { margin-bottom: 22px; }
.with-image { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.with-image.flip { grid-template-columns: .85fr 1.15fr; }
.with-image.flip > .media { order: -1; }
.with-image .media img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }

/* treatment steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-900); color: #fff; display: grid; place-items: center; font: 800 1rem/1 "Manrope"; margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; }
.step .prose { font-size: .95rem; color: var(--muted); }

/* before / after */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 24px; }
.gallery figure { margin: 0; background: #0c1f25; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; }
.gallery figcaption { color: #fff; padding: 12px 16px; font-weight: 600; }
.note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* news */
.news-card[hidden] { display: none; }
.article { padding: 56px 0 96px; }
.article .wrap { max-width: 860px; }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.article .meta { color: var(--muted); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.article .hero-img { border-radius: 20px; margin: 28px 0 34px; width: 100%; max-height: 460px; object-fit: cover; }
.article .back { display: inline-block; margin-top: 30px; font-weight: 600; text-decoration: none; }

/* publications & letters list */
.doc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 18px 6px; text-decoration: none; color: var(--ink); }
.doc-list a:hover { background: var(--teal-50); }
.doc-list .date { color: var(--muted); font-size: .9rem; font-weight: 600; }
.doc-list .kind { font-size: .75rem; font-weight: 700; color: var(--teal-700); background: var(--teal-50); padding: 4px 10px; border-radius: 999px; }

/* milestones timeline */
.timeline { position: relative; margin-left: 8px; }
.year-group { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 8px 0 28px; }
.year-group h2 { font-size: 1.6rem; color: var(--teal-700); margin: 0; position: sticky; top: 96px; align-self: start; }
.year-group ol { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.year-group li { position: relative; padding: 2px 0 18px; }
.year-group li::before { content: ""; position: absolute; left: -33px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.year-group .m { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* team */
.person { scroll-margin-top: 100px; }
.person .bio { margin-top: 10px; }
.person details[open] summary { margin-bottom: 8px; }
.person summary::-webkit-details-marker { display: none; }
.person .prose { font-size: .95rem; color: var(--muted); }
.person img.placeholder { object-fit: contain; padding: 30%; }

/* contact */
.form .msg { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 500; }
.form .msg.err { background: #fdecea; color: #8a1c12; }
.done { background: var(--teal-50); border-radius: 18px; padding: 34px; }
.url-textfield { display: none !important; }
.office { scroll-margin-top: 100px; }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }

@media (max-width: 900px) {
  .cols-2, .with-image, .with-image.flip { grid-template-columns: 1fr; gap: 24px; }
  .with-image.flip > .media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rich-section { padding: 52px 0; }
  .year-group { grid-template-columns: 1fr; gap: 6px; }
  .year-group h2 { position: static; }
  .doc-list a { grid-template-columns: 1fr; gap: 4px; }
  .doc-list .kind { justify-self: start; }
  .team-grid .person p, .team-grid .person details { display: block; }
  .team-grid { grid-template-columns: 1fr; }
  .person .body { padding: 18px; }
}
.person .portrait { aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--teal-50), #d9ecee); display: grid; place-items: center; }
.person .portrait img { width: 46%; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(16,42,51,.15); background: none; }
h1, h2, h3, .prose, .lead, .role { overflow-wrap: break-word; }
.hero .wrap > *, .split > *, .with-image > *, .cols-2 > *, .contact-grid > *, .cards-3 > *, .team-grid > *, .news-grid > * { min-width: 0; }
.prose a { overflow-wrap: anywhere; }
.filters { flex-wrap: wrap; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; }
@media (max-width: 900px) { .tabs a { padding: 12px 12px; font-size: .95rem; } }
.doc-list a > span { overflow-wrap: anywhere; min-width: 0; }
