/* December 2026 refresh: readable brand hero, "Work with me" pathways,
   contact routes, Club partner section and About credentials.
   Loaded last, so it wins over the older theme layers without !important
   wars where possible. Colours follow the site: white, navy #0f2742,
   orange accent #c2410c. */

:root {
  --rf-ink: #0e1726;
  --rf-navy: #0f2742;
  --rf-accent: #c2410c;
  --rf-muted: #5b6676;
  --rf-line: rgba(14, 23, 38, 0.12);
  --rf-soft: #f3f6f9;
}

/* ---------- Homepage hero: brand name as the headline ---------- */
html body.publication-page.homepage-v3 .home-hero-photo::after {
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(9, 22, 40, 0.78) 0%, rgba(9, 22, 40, 0.55) 26%, rgba(9, 22, 40, 0.12) 50%, transparent 62%) !important;
}
html body.publication-page.homepage-v3 .home-hero-overlay { z-index: 3; max-width: 760px; }
html body.publication-page.homepage-v3 .home-hero h1.home-brand-title {
  margin: 0 auto !important;
  max-width: none !important;
  color: #fff !important;
  font-family: var(--site-display) !important;
  font-weight: 800 !important;
  font-size: clamp(2.6rem, 6.4vw, 5rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35) !important;
}
html body.publication-page.homepage-v3 .home-hero-sub {
  margin: 0.9rem auto 0 !important;
  max-width: 34rem;
  color: #fff !important;
  font-family: var(--site-sans) !important;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem) !important;
  font-weight: 500;
  line-height: 1.5 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
html body.publication-page.homepage-v3 .home-hero .home-actions { margin-top: 1.4rem; }
/* Both buttons solid, so they read over sky, cloud or mountain. */
html body.publication-page.homepage-v3 .home-hero .home-button:not(.primary) {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--rf-navy) !important;
}
html body.publication-page.homepage-v3 .home-hero .home-button:not(.primary):hover,
html body.publication-page.homepage-v3 .home-hero .home-button:not(.primary):focus-visible {
  background: #e2e8f0 !important;
  border-color: #e2e8f0 !important;
}
@media (max-width: 620px) {
  html body.publication-page.homepage-v3 .home-hero-overlay { top: 5.4rem !important; }
  html body.publication-page.homepage-v3 .home-hero h1.home-brand-title { font-size: clamp(2.35rem, 11vw, 3rem) !important; }
  html body.publication-page.homepage-v3 .home-hero-photo::after {
    background: linear-gradient(180deg, rgba(9, 22, 40, 0.82) 0%, rgba(9, 22, 40, 0.6) 30%, rgba(9, 22, 40, 0.15) 52%, transparent 62%) !important;
  }
}

/* Four homepage figures sit as a tidy 2 x 2 */
body.homepage-v3 .home-about .home-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; }
body.homepage-v3 .home-about .home-figures strong { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

/* ---------- Work with me: compact pathways ---------- */
.wwm {
  box-sizing: border-box;
  width: min(calc(100% - 2.5rem), 1180px);
  margin: clamp(3rem, 7vw, 5.5rem) auto clamp(1rem, 3vw, 2rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rf-line);
}
.wwm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.wwm-head > div { max-width: 40rem; }
body.publication-page .wwm h2 { margin: 0.2rem 0 0.6rem !important; font-size: clamp(1.9rem, 3.8vw, 2.8rem) !important; color: var(--rf-ink) !important; }
body.publication-page .wwm-head p:not(.home-kicker) { margin: 0 !important; color: var(--rf-muted) !important; font-size: 1.02rem !important; line-height: 1.6 !important; }
body.publication-page a.wwm-kit,
body.publication-page a.rf-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem; border-radius: 999px;
  background: var(--rf-navy) !important; color: #fff !important; border: 0 !important;
  font: 700 0.98rem/1.2 var(--site-sans); text-decoration: none !important; white-space: nowrap;
}
body.publication-page a.rf-button { white-space: normal; text-align: center; overflow-wrap: anywhere; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.cl-partner > * { min-width: 0; }
body.publication-page a.wwm-kit:hover, body.publication-page a.rf-button:hover { background: #1e3a5f !important; }
body.publication-page a.rf-button.rf-light { background: #fff !important; color: var(--rf-navy) !important; box-shadow: inset 0 0 0 1.5px var(--rf-navy); }
body.publication-page a.rf-button.rf-light:hover { background: var(--rf-soft) !important; }
.wwm-paths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.wwm-paths li { margin: 0; padding: 0.25rem clamp(1rem, 2vw, 1.6rem); border-left: 1px solid var(--rf-line); display: flex; flex-direction: column; }
.wwm-paths li:first-child { padding-left: 0; border-left: 0; }
body.publication-page .wwm-paths h3 { margin: 0 0 0.45rem !important; font-size: 1.12rem !important; line-height: 1.25 !important; color: var(--rf-ink) !important; }
body.publication-page .wwm-paths p { margin: 0 0 0.9rem !important; color: var(--rf-muted) !important; font-size: 0.95rem !important; line-height: 1.55 !important; flex: 1 1 auto; }
body.publication-page .wwm-paths a,
body.publication-page .wwm-more a { color: var(--rf-accent) !important; font-weight: 700; text-decoration: none !important; border: 0 !important; }
body.publication-page .wwm-paths a:hover, body.publication-page .wwm-more a:hover { text-decoration: underline !important; }
body.publication-page .wwm-more { margin: clamp(1.5rem, 3vw, 2rem) 0 0 !important; font-size: 0.95rem !important; }
@media (max-width: 900px) {
  .wwm-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 0; }
  .wwm-paths li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .wwm-paths { grid-template-columns: 1fr; gap: 0; }
  .wwm-paths li { padding: 1.1rem 0 !important; border-left: 0; border-top: 1px solid var(--rf-line); }
  .wwm-paths li:first-child { border-top: 0; padding-top: 0 !important; }
  body.publication-page a.wwm-kit { width: 100%; }
}

/* ---------- Contact routes (contact page and Work with me page) ---------- */
.rf-section { box-sizing: border-box; width: min(calc(100% - 2.5rem), 1180px); margin: clamp(2.5rem, 6vw, 4.5rem) auto; }
body.publication-page .rf-section > h2 { margin: 0.2rem 0 0.6rem !important; font-size: clamp(1.8rem, 3.6vw, 2.6rem) !important; color: var(--rf-ink) !important; }
body.publication-page .rf-section > p.rf-intro { margin: 0 0 1.75rem !important; max-width: 42rem; color: var(--rf-muted) !important; font-size: 1.02rem !important; }
.rf-routes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.rf-routes li { margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--rf-line); }
body.publication-page .rf-routes h3 { margin: 0 0 0.3rem !important; font-size: 1.12rem !important; color: var(--rf-ink) !important; }
body.publication-page .rf-routes p { margin: 0 0 0.45rem !important; color: var(--rf-muted) !important; font-size: 0.95rem !important; line-height: 1.55 !important; }
body.publication-page .rf-routes a { color: var(--rf-accent) !important; font-weight: 700; text-decoration: none !important; border: 0 !important; overflow-wrap: anywhere; }
body.publication-page .rf-routes a:hover { text-decoration: underline !important; }
.rf-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rf-social li { margin: 0; padding: 0; }
body.publication-page .rf-social a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.15rem; border-radius: 999px; background: var(--rf-soft); color: var(--rf-navy) !important; font-weight: 700; text-decoration: none !important; border: 0 !important; }
body.publication-page .rf-social a:hover { background: #e2e8f0; }
body.publication-page .rf-small { margin-top: 1rem !important; color: var(--rf-muted) !important; font-size: 0.85rem !important; }
@media (max-width: 700px) { .rf-routes { grid-template-columns: 1fr; } }

/* ---------- About: experience list ---------- */
.rf-cv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.rf-cv li { margin: 0; padding: 1rem 0; border-top: 1px solid var(--rf-line); }
body.publication-page .rf-cv strong { display: block; color: var(--rf-ink); font-size: 1.05rem; line-height: 1.3; }
body.publication-page .rf-cv span { display: block; margin-top: 0.2rem; color: var(--rf-muted); font-size: 0.93rem; line-height: 1.5; }
@media (max-width: 700px) { .rf-cv { grid-template-columns: 1fr; } }

/* ---------- Club: partner section ---------- */
.cl-partner { box-sizing: border-box; width: min(calc(100% - 2.5rem), 1180px); margin: clamp(3rem, 7vw, 5rem) auto; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 28px; background: var(--rf-soft); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
body.publication-page .cl-partner h2 { margin: 0 0 0.75rem !important; font-size: clamp(1.8rem, 3.6vw, 2.6rem) !important; color: var(--rf-ink) !important; }
body.publication-page .cl-partner p { color: #3b4656 !important; font-size: 1rem !important; line-height: 1.6 !important; }
.cl-partner ul { list-style: none; margin: 0; padding: 0; }
.cl-partner ul li { margin: 0; padding: 0.8rem 0; border-top: 1px solid var(--rf-line); color: #3b4656; font-size: 0.97rem; line-height: 1.5; }
.cl-partner ul li:first-child { border-top: 0; padding-top: 0; }
body.publication-page .cl-partner ul strong { display: block; color: var(--rf-ink); }
.cl-partner-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
@media (max-width: 820px) { .cl-partner { grid-template-columns: 1fr; } .cl-partner-actions a { width: 100%; } }


/* Homepage intro shortcuts (previously unstyled, so the links ran together) */
body.homepage-v3 .impact-shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1rem; }
body.publication-page .impact-shortcuts a { color: var(--rf-accent) !important; font-weight: 700; text-decoration: none !important; border: 0 !important; }
body.publication-page .impact-shortcuts a::after { content: " →"; }
body.publication-page .impact-shortcuts a:hover { text-decoration: underline !important; }

@media (max-width: 560px) {
  html body.publication-page.work-with-me-page .editorial-section-heading h2 { font-size: clamp(1.75rem, 8vw, 2.2rem) !important; }
}

html body.publication-page.club-v2 .cl a.rf-button { color: #fff !important; }
html body.publication-page.club-v2 .cl a.rf-button.rf-light { color: var(--rf-navy) !important; }
body.publication-page .cl-partner p.cl-partner-email { margin: 1rem 0 0 !important; font-size: 0.95rem !important; }
html body.publication-page.club-v2 .cl-partner-email a { color: var(--rf-accent) !important; font-weight: 700; overflow-wrap: anywhere; }

/* Homepage "What I do": four tiles, just under the intro */
.rx-four .rx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rx-four .rx-tiles .rx-tile:first-child img { object-position: center 40%; }
.rx-four .rx-tile-research img { object-position: 88% 70%; }
.rx-four .rx-tile-club img { object-position: 50% 22%; }
.rx-four .rx-tile span { left: 1.2rem; right: 1.2rem; bottom: 1.2rem; font-size: 0.92rem; }
.rx-four .rx-tile strong { font-size: clamp(1.35rem, 2vw, 1.7rem); }
@media (max-width: 860px) {
  .rx-four .rx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.publication-page .rx-four a.rx-tile { aspect-ratio: 3 / 4; }
}
@media (max-width: 480px) {
  .rx-four .rx-tiles { gap: 0.6rem; }
  .rx-four .rx-tile span { left: 0.8rem; right: 0.8rem; bottom: 0.8rem; font-size: 0.8rem; line-height: 1.35; }
  .rx-four .rx-tile strong { font-size: 1.1rem; }
  .rx-four .rx-tile em { top: 0.6rem; left: 0.6rem; right: 0.6rem; width: fit-content; font-size: 0.6rem; padding: 0.3rem 0.55rem; line-height: 1.25; }
}

/* Tighter "What I do" band (Ollie, 3 Dec) */
html body.publication-page .rx.rx-four { padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem) !important; }
html body.publication-page .rx-four .rx-home-head { margin: 0 auto clamp(1.25rem, 2.5vw, 1.75rem) !important; }
html body.publication-page .rx-four .rx-label { margin-bottom: 0.4rem !important; }
html body.publication-page .rx-four h2 { margin-bottom: 0.6rem !important; font-size: clamp(2rem, 4.4vw, 3.3rem) !important; }
html body.publication-page .rx-four .rx-home-head p:last-child { margin: 0 auto !important; }
/* Third hero button: Work with me, glass style so the first two stay primary */
html body.publication-page.homepage-v3 .home-hero .home-button.home-button-wwm { background: rgba(15, 39, 66, 0.55) !important; border: 1.5px solid #fff !important; color: #fff !important; }
html body.publication-page.homepage-v3 .home-hero .home-button.home-button-wwm:hover { background: #fff !important; color: var(--rf-navy) !important; }
@media (max-width: 620px) {
  html body.publication-page.homepage-v3 .home-hero-overlay { width: calc(100% - 1.25rem) !important; }
  html body.publication-page.homepage-v3 .home-hero .home-actions { gap: 0.35rem !important; flex-wrap: nowrap !important; }
  html body.publication-page.homepage-v3 .home-hero .home-button { padding: 0 0.62rem !important; min-height: 2.55rem !important; font-size: clamp(0.72rem, 3.4vw, 0.84rem) !important; white-space: nowrap; letter-spacing: 0 !important; }
}
