/* Science page layout refinement based on the approved v63 site — v65
   Scope: Science page only. Content/evidence is preserved; this file refines
   hierarchy, hero geometry, section rhythm and the 02 Thymus composition. */

body.science-v65 {
  --science-v65-paper: #f6f1e9;
  --science-v65-paper-soft: #fbf8f3;
  --science-v65-ink: #111216;
  --science-v65-ink-warm: #171317;
  --science-v65-gold: #e6b86f;
  --science-v65-red: #9e2437;
}

/* Principal inner-page hero: same deliberate top drop, smaller than Home,
   and a controlled total desktop depth including the proof rail. */
@media (min-width: 1024px) {
  body.science-v65 .science-hero__grid {
    min-height: 602px !important;
    box-sizing: border-box;
    align-items: start !important;
    padding-top: 92px !important;
    padding-bottom: 54px !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr) !important;
    gap: clamp(44px, 6vw, 92px) !important;
  }
  body.science-v65 .science-hero__copy {
    align-self: start;
    max-width: 720px !important;
  }
  body.science-v65 .science-hero__copy > .eyebrow {
    margin-bottom: 18px !important;
  }
  body.science-v65 .science-hero h1 {
    max-width: 720px !important;
    font-size: clamp(56px, 5vw, 82px) !important;
    font-weight: 570 !important;
    line-height: .99 !important;
    letter-spacing: -.057em !important;
  }
  body.science-v65 .science-hero__lead {
    max-width: 590px !important;
    margin-top: 26px !important;
  }
  body.science-v65 .science-hero__actions {
    margin-top: 28px !important;
  }
  body.science-v65 .science-hero__visual {
    width: min(100%, 490px) !important;
    align-self: center !important;
    justify-self: end !important;
  }
  body.science-v65 .science-proof-rail article {
    min-height: 118px !important;
  }
}

/* Keep the Science submenu as the compact editorial index. */
body.science-v65 .science-index,
body.science-v65 .science-index__inner,
body.science-v65 .science-index a {
  min-height: 44px !important;
}
body.science-v65 .science-index__inner {
  justify-content: flex-start !important;
  gap: clamp(18px, 2.25vw, 34px) !important;
}

/* One consistent top starting point for all numbered Science chapters. */
body.science-v65 .science-section {
  padding-top: 96px !important;
  padding-bottom: clamp(88px, 8vw, 118px) !important;
}
body.science-v65 .section-heading--split,
body.science-v65 .origin-home__heading {
  align-items: start !important;
}
body.science-v65 .section-heading--split .eyebrow,
body.science-v65 .origin-home__heading .eyebrow {
  margin-bottom: 16px !important;
}
body.science-v65 .section-heading--split > p,
body.science-v65 .origin-home__heading > p:last-child {
  margin-top: 30px !important;
}

/* Seamless background cadence: light origin, dark thymus, light ageing,
   dark formulation, then one continuous light evidence/interpretation chapter. */
body.science-v65 .science-origin {
  background: linear-gradient(180deg, #fbf8f3 0%, #f6f1e9 100%) !important;
}
body.science-v65 .healthy-ageing {
  background: var(--science-v65-paper) !important;
}
body.science-v65 .research-architecture,
body.science-v65 .interpretation {
  background: var(--science-v65-paper-soft) !important;
}
body.science-v65 .interpretation {
  border-top: 1px solid rgba(31, 28, 28, .09);
}

/* 02 Thymus is one immersive dark chapter. The anatomy, training sequence,
   animation and Why-this-matters note all remain inside the same numbered section. */
body.science-v65 .thymus-function {
  background:
    radial-gradient(circle at 18% 30%, rgba(34, 87, 119, .20), transparent 31%),
    radial-gradient(circle at 86% 14%, rgba(145, 31, 48, .22), transparent 30%),
    linear-gradient(135deg, #111216 0%, #171318 58%, #0d0e11 100%) !important;
}
body.science-v65 .thymus-function::before {
  opacity: .07 !important;
}
body.science-v65 .thymus-function .section-heading--split > p {
  color: rgba(255,255,255,.68) !important;
}
body.science-v65 .thymus-atlas {
  margin-top: 54px !important;
  grid-template-columns: minmax(500px, 1.06fr) minmax(360px, .94fr) !important;
  gap: 0 clamp(44px, 5vw, 76px) !important;
}
body.science-v65 .thymus-atlas__image {
  min-height: 560px !important;
  border-right-color: rgba(255,255,255,.10) !important;
}
body.science-v65 .thymus-atlas__image img {
  width: 108% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  opacity: .94 !important;
  filter: saturate(.96) contrast(1.05) brightness(.94);
  mask-image: linear-gradient(90deg, #000 0 91%, rgba(0,0,0,.84) 96%, transparent 100%) !important;
}
body.science-v65 .thymus-atlas__story {
  padding-top: 34px !important;
}
body.science-v65 .thymus-atlas__story p {
  color: rgba(255,255,255,.69) !important;
}
body.science-v65 .thymus-atlas__steps p {
  color: rgba(255,255,255,.64) !important;
}
body.science-v65 .thymus-film {
  margin-top: 58px !important;
  min-height: 520px !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, #231119, #100f13 72%) !important;
}
body.science-v65 .thymus-film__copy {
  padding: clamp(46px, 5vw, 70px) !important;
}
body.science-v65 .bloodstream-poster {
  min-height: 520px !important;
}
body.science-v65 .bloodstream-poster__caption {
  max-width: 330px !important;
}
body.science-v65 .bloodstream-poster__caption strong {
  max-width: 15ch !important;
}
body.science-v65 .research-note {
  margin-top: 28px !important;
  padding: 28px 0 !important;
  border-color: rgba(255,255,255,.13) !important;
}

/* Keep Formulation as the second dark scientific chapter. */
body.science-v65 .formulation {
  background: var(--science-v65-ink) !important;
}

/* Evidence + interpretation should read as one long light closing chapter. */
body.science-v65 .research-architecture {
  padding-bottom: 106px !important;
}
body.science-v65 .interpretation {
  padding-top: 96px !important;
}

/* Responsive: preserve the hierarchy, release the fixed desktop geometry. */
@media (max-width: 1023px) {
  body.science-v65 .science-hero__grid {
    min-height: 0 !important;
    padding-top: 72px !important;
    padding-bottom: 42px !important;
  }
  body.science-v65 .science-hero h1 {
    font-size: clamp(50px, 8vw, 72px) !important;
    line-height: 1 !important;
  }
  body.science-v65 .science-section {
    padding-top: 82px !important;
    padding-bottom: 88px !important;
  }
  body.science-v65 .thymus-atlas__image {
    min-height: 470px !important;
  }
}

@media (max-width: 760px) {
  body.science-v65 .science-hero__grid {
    padding-top: 54px !important;
    padding-bottom: 34px !important;
  }
  body.science-v65 .science-hero h1 {
    font-size: clamp(43px, 12vw, 59px) !important;
    line-height: 1.02 !important;
  }
  body.science-v65 .science-section {
    padding-top: 72px !important;
    padding-bottom: 76px !important;
  }
  body.science-v65 .section-heading--split > p,
  body.science-v65 .origin-home__heading > p:last-child {
    margin-top: 22px !important;
  }
  body.science-v65 .thymus-atlas {
    margin-top: 42px !important;
  }
  body.science-v65 .thymus-atlas__image {
    min-height: 360px !important;
  }
  body.science-v65 .thymus-film,
  body.science-v65 .bloodstream-poster {
    min-height: 0 !important;
  }
  body.science-v65 .bloodstream-poster {
    min-height: 390px !important;
  }
}


/* v66: final agreed Science-page refinements */
body.science-v65 .bloodstream-poster__caption{
  justify-content:flex-end !important;
}
body.science-v65 .bloodstream-poster__caption strong{
  max-width: 17ch !important;
}
body.science-v65 .architecture-track__title--compact{
  font-size: clamp(23px, 1.95vw, 29px) !important;
  white-space: nowrap;
  letter-spacing: -.045em !important;
}
@media (max-width: 1180px){
  body.science-v65 .architecture-track__title--compact{
    white-space: normal;
  }
}


/* v68 — Science current-phase eyebrow only */
body.science-v65 .interpretation-panel .micro-label{
  color: var(--champagne) !important;
}
