/* Cellise Therapeutics — shared styles for the patient and doctor home pages */

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d8;
  --ink: #221c22;
  --muted: #5d5459;
  --rule: #d5cbbb;
  --rule-strong: #221c22;

  /* CRT logo maroon for patients; doctors page swaps to the logo navy */
  --accent: #7d1640;
  --accent-deep: #5c0f2f;
  --accent-soft: #f1e3e6;
  --mark: #e0105c;   /* Cellise magenta, used sparingly */

  --redox: #6a2c98;
  --lipon: #e88a00;
  --lipon-ink: #9c5a00;
  --lumina: #00994a;
  --lumina-ink: #00733a;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 40px);
}

body.doctors {
  --accent: #0b3a6b;
  --accent-deep: #072746;
  --accent-soft: #e2e8ef;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 116px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  font: 600 0.78rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- top strip: audience + language ---------- */
.strip { border-bottom: 1px solid var(--rule); font-size: 0.875rem; }
.strip .wrap { display: flex; justify-content: space-between; align-items: stretch; gap: 16px; }
.aud { display: flex; }
.aud a {
  display: block;
  padding: 9px 14px 8px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.aud a:first-child { padding-left: 0; }
.aud a:hover { color: var(--ink); }
.aud a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.lang { display: flex; align-items: center; gap: 2px; }
.lang a { padding: 4px 8px; color: var(--muted); text-decoration: none; font-weight: 600; letter-spacing: 0.04em; }
.lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 104px; }
.brand { flex: none; padding: 14px 0; }
.brand img { width: 184px; }
@media (max-width: 900px) { .top .wrap { min-height: 72px; } .brand { padding: 10px 0; } .brand img { width: 128px; } }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font: 600 0.98rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-strong); padding: 8px 12px; font: 600 0.85rem var(--sans); color: var(--ink); border-radius: 2px; cursor: pointer; }

@media (max-width: 900px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: block; }
  .top.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 6px var(--gut) 18px;
  }
  .top.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .top.open .nav .btn { display: inline-flex; margin-top: 16px; align-self: flex-start; }
  .nav .btn { color: #fff; border-bottom: 0; }
}
@media (min-width: 901px) { .nav .btn { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  font-weight: 400;
  max-width: 17ch;
  line-height: 1.05;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 56px; align-items: end; margin-top: 34px; }
.hero-body p { max-width: 54ch; font-size: 1.15rem; margin: 0; color: var(--ink); }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-cta small { color: var(--muted); font-size: 0.85rem; }
.hero-figure { margin: clamp(36px, 6vw, 64px) 0 0; border-top: 1px solid var(--rule-strong); padding-top: 28px; }
.hero-figure img { width: 100%; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .hero-body { grid-template-columns: 1fr; } }

/* ---------- section scaffolding ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--rule); }
.sec.alt { background: var(--paper-2); }
.sec-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .num { font: 400 1rem/1.4 var(--serif); font-style: italic; color: var(--muted); border-top: 1px solid var(--rule-strong); padding-top: 10px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 22ch; }
.sec-head .lede { grid-column: 2; max-width: 62ch; color: var(--muted); font-size: 1.1rem; margin: 0; }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .lede { grid-column: 1; }
  .sec-head .num { border-top: 0; padding-top: 0; }
}

/* ---------- "the ceiling" letter ---------- */
.letter { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px 48px; }
.letter .body { font-size: 1.15rem; }
.letter aside {
  border-left: 1px solid var(--rule-strong);
  padding-left: 28px;
  font: 400 1.5rem/1.35 var(--serif);
  font-style: italic;
  align-self: start;
}
.letter aside cite { display: block; margin-top: 14px; font: 400 0.85rem/1.4 var(--sans); font-style: normal; color: var(--muted); }
@media (max-width: 900px) {
  .letter { grid-template-columns: 1fr; }
  .letter > div:first-child { display: none; }
}

/* ---------- numbered steps with rule ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px 48px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font: 400 2.6rem/1 var(--serif);
  color: var(--accent);
}
.steps h3 { font-size: 1.55rem; }
.steps p { margin: 0; color: var(--ink); }
@media (max-width: 900px) {
  .steps li { grid-template-columns: 64px minmax(0, 1fr); }
  .steps li p { grid-column: 2; }
  .steps li::before { font-size: 2rem; }
}

/* ---------- products (rows) ---------- */
.products { border-top: 1px solid var(--rule-strong); }
.product {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 220px;
  gap: 24px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.product .tag img { width: 132px; }
.product h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-style: italic; font-weight: 400; margin-bottom: 12px; }
.product.redox h3 { color: var(--redox); }
.product.lipon h3 { color: var(--lipon-ink); }
.product.lumina h3 { color: var(--lumina-ink); }
.product p { max-width: 52ch; }
.product .for { font-size: 0.92rem; color: var(--muted); margin: 0; }
.product figure { margin: 0; }
.product figure img { border: 1px solid var(--rule); background: #fff; }
.product figcaption { margin-top: 8px; }
@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr) 150px; }
  .product .tag { grid-column: 1 / -1; }
  .product figure { grid-row: 2; grid-column: 2; }
}
@media (max-width: 520px) {
  .product { grid-template-columns: 1fr; }
  .product figure { grid-row: auto; grid-column: 1; max-width: 220px; }
}

/* ---------- protocol phases ---------- */
.phases { display: grid; grid-template-columns: 2fr 1fr; border: 1px solid var(--rule-strong); }
.phase { padding: 26px 28px 30px; }
.phase + .phase { border-left: 1px solid var(--rule-strong); }
.phase .label { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.phase h3 { font-size: 1.7rem; margin-bottom: 20px; }
.doses { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.doses li { flex: 1; border-top: 3px solid var(--accent); padding: 12px 16px 0 0; }
.doses li + li { border-top-color: var(--accent); position: relative; }
.doses li + li::before { content: "→"; position: absolute; left: -22px; top: -16px; background: var(--paper); padding: 0 4px; color: var(--accent); font-size: 1.1rem; }
.sec.alt .doses li + li::before { background: var(--paper-2); }
.doses b { display: block; font: 500 1.2rem/1.3 var(--serif); }
.doses span { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 4px; }
.phase.wellness .doses li { border-top-color: var(--lumina); }
.phase-note { margin: 22px 0 0; max-width: 70ch; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; }
  .phase + .phase { border-left: 0; border-top: 1px solid var(--rule-strong); }
}

/* ---------- conditions list ---------- */
.conditions { list-style: none; margin: 0; padding: 0; counter-reset: c; columns: 2; column-gap: 56px; }
.conditions li {
  counter-increment: c;
  break-inside: avoid;
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.conditions li::before { content: counter(c); font: italic 400 1.1rem/1.5 var(--serif); color: var(--accent); }
.conditions b { display: block; font: 500 1.22rem/1.35 var(--serif); }
.conditions span { display: block; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .conditions { columns: 1; } }

/* ---------- note to the reader ---------- */
.note {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.3 var(--serif);
}
.note::before, .note::after { content: ""; display: block; width: 56px; height: 1px; background: var(--rule-strong); margin: 0 auto 28px; }
.note::after { margin: 28px auto 0; }

/* ---------- makers ---------- */
.makers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.maker { padding: 28px 28px 8px 0; }
.maker + .maker { border-left: 1px solid var(--rule); padding-left: 28px; }
.maker .role { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.maker img { height: 64px; width: auto; margin-bottom: 18px; }
.maker .name { font: 500 1.35rem/1.25 var(--serif); margin-bottom: 6px; }
.maker p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 820px) {
  .makers { grid-template-columns: 1fr; }
  .maker, .maker + .maker { border-left: 0; padding: 24px 0 8px; border-top: 1px solid var(--rule); }
  .maker:first-child { border-top: 0; }
}

/* ---------- enquiry form ---------- */
.enquire { background: var(--accent); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.enquire .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px 72px; }
.enquire h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 400; margin-bottom: 20px; }
.enquire .eyebrow { color: #fff; opacity: 0.75; }
.enquire .intro p { font-size: 1.1rem; max-width: 44ch; }
.enquire .direct { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.35); font-size: 0.95rem; }
.enquire .direct a { color: #fff; font-weight: 600; }
.form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: 2px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9ae9d;
  border-radius: 2px;
  padding: 12px 13px;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fdf3f2; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form .btn { width: 100%; justify-content: center; padding: 15px 22px; font-size: 1.02rem; }
.form-err { color: #b3261e; font-weight: 600; font-size: 0.95rem; margin: 0 0 14px; }
.form-fine { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 900px) { .enquire .wrap { grid-template-columns: 1fr; } }

/* ---------- other-audience pointer ---------- */
.crossover { padding: 40px 0; border-top: 1px solid var(--rule); }
.crossover .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; }
.crossover p { margin: 0; font: 400 1.35rem/1.35 var(--serif); }
.crossover a { font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #d9d1cf; padding: 56px 0 28px; font-size: 0.92rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 48px; padding-bottom: 36px; border-bottom: 1px solid #4a4146; }
.foot-logo { background: var(--paper); padding: 14px 16px; display: inline-block; margin-bottom: 16px; border-radius: 2px; }
.foot-logo img { width: 140px; }
.foot h3 { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #a99ea2; margin-bottom: 12px; }
.foot p { margin: 0 0 10px; }
.foot .fine { color: #a99ea2; font-size: 0.82rem; margin-top: 22px; }
.copy { padding-top: 22px; color: #a99ea2; font-size: 0.85rem; margin: 0; }
.copy .credit { color: #ff5c93; font-weight: 600; text-decoration: none; }
.copy .credit:hover { text-decoration: underline; color: #ff86ad; }
body.doctors .copy .credit { color: #7fb2ec; }
body.doctors .copy .credit:hover { color: #a9cbf3; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px;
  background: #1f7a4d; color: #fff; text-decoration: none;
  padding: 12px 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid #17603c;
}
.float-wa:hover { background: #17603c; color: #fff; }
.float-wa svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .float-wa span { display: none; } .float-wa { padding: 14px; } }

/* ---------- doctors: specs, comparison, composition ---------- */
.specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin-top: clamp(36px, 6vw, 56px); }
.specs div { padding: 16px 16px 16px 0; }
.specs div + div { border-left: 1px solid var(--rule); padding-left: 16px; }
.specs b { display: block; font: 500 1.3rem/1.2 var(--serif); }
.specs span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) {
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs div:nth-child(4) { border-left: 0; padding-left: 0; }
  .specs div:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:nth-child(4) { border-left: 1px solid var(--rule); padding-left: 16px; }
  .specs div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

.hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px 64px; align-items: end; }
.hero-split figure { margin: 0; }
.hero-split figure img { border: 1px solid var(--rule); }
.hero-split .hero-body { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split figure { max-width: 420px; }
}

.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule-strong); }
.compare tbody th { font: 500 1.1rem/1.35 var(--serif); width: 22%; }
.compare td:last-child { color: var(--accent); }
.compare td { width: 39%; }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: block; border-bottom: 1px solid var(--rule); padding: 14px 0; }
  .compare th, .compare td, .compare tbody th { display: block; width: auto; border: 0; padding: 4px 0; }
  .compare td::before { content: attr(data-h) ": "; font-weight: 600; color: var(--ink); }
}

.formulas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.formula { padding: 26px 26px 10px 0; }
.formula + .formula { border-left: 1px solid var(--rule); padding-left: 26px; }
.formula .tag { height: 44px; width: auto; margin-bottom: 12px; }
.formula .role { font: italic 400 1.35rem/1.3 var(--serif); margin: 0 0 18px; }
.formula.redox .role { color: var(--redox); }
.formula.lipon .role { color: var(--lipon-ink); }
.formula.lumina .role { color: var(--lumina-ink); }
.formula table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin-bottom: 18px; }
.formula caption { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--muted); padding-bottom: 6px; }
.formula td { padding: 7px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.formula td + td { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.formula .use { font-size: 0.93rem; }
.formula .use b { display: block; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 900px) {
  .formulas { grid-template-columns: 1fr; }
  .formula, .formula + .formula { border-left: 0; padding: 26px 0 10px; border-top: 1px solid var(--rule); }
  .formula:first-child { border-top: 0; }
}

.handling { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 48px; margin-top: clamp(40px, 6vw, 64px); }
.handling dl { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); border-top: 1px solid var(--rule-strong); }
.handling dt, .handling dd { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.handling dt { font-weight: 600; padding-right: 16px; }
@media (max-width: 760px) {
  .handling { grid-template-columns: 1fr; }
  .handling dl { grid-template-columns: 1fr; }
  .handling dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- inner pages (about, case studies, contact) ---------- */
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 400; max-width: 18ch; line-height: 1.05; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede { max-width: 60ch; font-size: 1.18rem; margin: 28px 0 0; }

.anchors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.anchors li { padding: 26px 28px 8px 0; }
.anchors li + li { border-left: 1px solid var(--rule); padding-left: 28px; }
.anchors .k { font: italic 400 1rem/1.3 var(--serif); color: var(--accent); margin: 0 0 10px; }
.anchors h3 { font-size: 1.55rem; margin-bottom: 12px; }

.soon { max-width: 760px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding: 36px 0; }
.soon p { font-size: 1.12rem; max-width: 56ch; }
.soon .btn { margin-top: 8px; }

.details { margin: 26px 0 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.35); }
.details dt, .details dd { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.details dt { font-weight: 600; opacity: 0.8; }
.details a { color: #fff; font-weight: 600; }
.map { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 48px; }
.map iframe { width: 100%; height: 380px; border: 1px solid var(--rule-strong); display: block; }
.map p { margin: 14px 0 0; font-size: 0.95rem; }

/* hero with a product photo beside the headline */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 72px; align-items: end; }
.hero-top .hero-body { grid-template-columns: 1fr; margin-top: 28px; }
.hero-top figure { margin: 0; }
.hero-top figure img { border: 1px solid var(--rule); background: #fff; }
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-top figure { max-width: 340px; }
}

/* case studies list */
.case-note { color: var(--muted); font-size: 0.95rem; margin: 0 0 22px; max-width: 70ch; }
.cases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.case {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) 170px;
  gap: 12px 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.case-no { font: italic 400 1.05rem/1.5 var(--serif); color: var(--accent); margin: 0; }
.case-main h3 { font-size: 1.4rem; margin-bottom: 4px; }
.case-main .who { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.case-main p:last-child { margin: 0; }
.case-course { margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 10px; font-size: 0.93rem; }
.case-course dt { font-weight: 600; color: var(--muted); }
.case-course dd { margin: 0; }
.case-pdf { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.case-pdf a:not(.btn) { font-weight: 600; font-size: 0.93rem; }
.case-pdf span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case-pdf { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
}

/* inner pages on phones */
@media (max-width: 900px) {
  .anchors { grid-template-columns: 1fr; }
  .anchors li, .anchors li + li { border-left: 0; padding: 22px 0 6px; border-top: 1px solid var(--rule); }
  .anchors li:first-child { border-top: 0; }
  .map { grid-template-columns: 1fr; }
  .map iframe { height: 300px; }
  .details { grid-template-columns: 110px minmax(0, 1fr); }
}
/* on phones the wide product image directly below already shows the range */
@media (max-width: 900px) { .hero-top > figure { display: none; } }
.logo-tm { position: relative; display: inline-block; margin-bottom: 18px; }
.logo-tm img { display: block; margin-bottom: 0; }
.logo-tm sup { position: absolute; top: -2px; right: -22px; font: 600 0.62rem/1 var(--sans); color: #d9730d; letter-spacing: 0.02em; }
