@charset "UTF-8";
/* ============================================================
 * MedicalCentre Theme CSS
 * St Brigid's School of Medicine - University of Wexford
 * Editorial register: warm cream + navy + brass; no shadows.
 * ============================================================ */
/* ---------- CSS Reset ---------- */
* {
  padding: 0;
  margin: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  word-break: normal;
}

img, fieldset {
  border: 0;
}

abbr {
  text-decoration: none;
}

code {
  line-height: 1em;
}

pre {
  overflow: auto;
  word-wrap: normal;
  tab-size: 4;
}

sub, sup {
  line-height: 0.5em;
}

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

iframe, video, embed, object {
  display: block;
  max-width: 100%;
}

img, .left, .right, .center {
  display: block;
}

.center {
  float: none;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

button, input[type=submit] {
  cursor: pointer;
  overflow: visible;
}

/* ---------- CSS Custom Property Bridge ---------- */
:root {
  --font1: "Inter Tight", sans-serif;
  --font2: "Newsreader", serif;
  --f1: 47px;
  --f2: 37px;
  --f3: 29px;
  --f4: 23px;
  --f5: 18px;
  --f6: 14px;
  --g1: 73px;
  --g2: 59px;
  --g3: 47px;
  --g4: 38px;
  --g5: 31px;
  --g6: 25px;
  --x1: 50px;
  --x2: 31px;
  --x3: 19px;
  --x4: 12px;
  --x5: 7px;
  --x6: 4px;
  --bg1: rgb(244, 239, 227);
  --bg2: rgb(255, 255, 255);
  --c1: rgb(26, 26, 26);
  --c2: rgb(107, 107, 107);
  --ca: rgb(184, 146, 59);
  --border1: 1px solid #E2DAC4;
  --border2: 1px solid rgba(244,239,227,0.18);
  --border3: 3px solid #B8923B;
  --w-content: 672px;
  --w-total: 1200px;
  --gutter-full: 50px;
  --gutter-mobile: 19px;
  --phi: 1.6180339887;
  /* Extended design variables */
  --navy-deep: #0F2A4A;
  --navy-mid: #1A4576;
  --navy-light: #2A6A9A;
  --gold-deep: #8C6E2A;
  --olive-deep: #5A6A4A;
  --olive-shadow: #3A4A2E;
  --c1-soft: #3A3A3A;
  --border-cream-line: #E2DAC4;
  --footer-rule: 4px solid #B8923B;
  /* literals not exposed by PM css_vars */
  --font-size: 18px;
}

/* ---------- Body / Structural Foundations ---------- */
html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--ca);
  color: var(--navy-deep);
}

body {
  font-family: var(--font1);
  font-size: var(--f5);
  line-height: var(--g5);
  color: var(--c1);
  background-color: var(--bg1);
  overflow-x: hidden;
}

.container {
  box-sizing: border-box;
  padding-left: var(--gutter-mobile);
  padding-right: var(--gutter-mobile);
}
@media all and (min-width: 710px) {
  .container {
    max-width: var(--w-content);
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
}
@media all and (min-width: 772px) {
  .container {
    max-width: 100%;
    padding-left: var(--gutter-full);
    padding-right: var(--gutter-full);
    margin-left: 0;
    margin-right: 0;
  }
}
@media all and (min-width: 1300px) {
  .container {
    max-width: var(--w-total);
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

.text {
  max-width: var(--w-content);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ca);
  color: var(--navy-deep);
  padding: var(--x5) var(--x3);
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  z-index: 9999;
}
.skip-link:focus {
  left: var(--x3);
  top: var(--x3);
}

/* ---------- Global Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font2);
  color: var(--navy-deep);
  font-weight: 500;
}

h1 {
  font-size: var(--f2);
  line-height: var(--g2);
}

h2 {
  font-size: var(--f3);
  line-height: var(--g3);
}

h3 {
  font-size: var(--f4);
  line-height: var(--g4);
}

h4 {
  font-size: var(--f5);
  line-height: var(--g5);
}

a {
  color: var(--ca);
  text-decoration: none;
}
a:hover {
  color: var(--navy-deep);
}

a:focus-visible {
  outline: 2px solid var(--ca);
  outline-offset: 2px;
}

em {
  font-family: var(--font2);
  font-style: italic;
}

strong {
  font-weight: 600;
}

blockquote {
  font-family: var(--font2);
  font-size: var(--f4);
  line-height: var(--g4);
  color: var(--navy-deep);
  font-style: italic;
  padding-left: var(--x3);
  border-left: var(--x5) solid var(--ca);
}
blockquote > :last-child {
  margin-bottom: 0;
}

sub, sup {
  color: var(--c2);
}

code, pre, kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--f6);
  line-height: var(--g6);
}

code {
  background-color: rgba(15, 42, 74, 0.08);
  padding: var(--x6);
  border-radius: var(--x5);
  margin: 0 1px;
}

pre {
  color: var(--c1);
  background-color: rgba(15, 42, 74, 0.06);
  padding: var(--x3);
  border-left: var(--x5) solid var(--ca);
  border-radius: 0 var(--x4) var(--x4) 0;
}

hr {
  border: var(--border1);
  border-width: 0 0 1px 0;
  margin: var(--x2) 0;
}

svg {
  width: var(--f5);
  height: var(--f5);
  vertical-align: text-bottom;
}

/* ---------- Formatting Classes (Global Appearance) ---------- */
.small {
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  color: var(--c2);
}

.callout {
  color: var(--c1);
  background-color: rgba(184, 146, 59, 0.08);
  padding: var(--x3);
  border: var(--border1);
  border-left: 3px solid var(--ca);
  border-radius: 0 var(--x4) var(--x4) 0;
}
.callout.alert {
  color: var(--c1);
  background-color: rgba(184, 80, 40, 0.1);
  border-left-color: #B85028;
}
.callout.note {
  color: var(--c1);
  background-color: rgba(15, 42, 74, 0.06);
  border-left-color: var(--navy-deep);
}

.impact {
  font-family: var(--font2);
  font-size: var(--f4);
  line-height: var(--g4);
  color: var(--navy-deep);
  font-style: italic;
}

@media all and (min-width: 710px) {
  .impact {
    font-size: var(--f3);
    line-height: var(--g3);
  }
}
.highlight {
  background-color: rgba(184, 146, 59, 0.22);
  padding: var(--x6) 0;
}

.caption {
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  color: var(--c2);
}

.drop-cap {
  font-family: var(--font2);
  font-size: calc(var(--x2) * 2);
  line-height: 1em;
  color: var(--ca);
  font-style: italic;
  margin-right: var(--x5);
  float: left;
}

/* ---------- Dynamic Page Content ---------- */
.page-container + .page-container {
  margin-top: var(--x1);
}

.page-content h1 {
  margin-bottom: var(--x2);
}
.page-content h2 {
  margin-top: var(--x1);
  margin-bottom: var(--x2);
}
.page-content h3 {
  margin-top: var(--x2);
  margin-bottom: var(--x3);
}
.page-content h4 {
  margin-bottom: var(--x4);
}
.page-content h1 + h2, .page-content h2 + h3, .page-content h1:first-child, .page-content h2:first-child, .page-content h3:first-child, .page-content hr + h2 {
  margin-top: 0;
}
.page-content > :last-child {
  margin-bottom: 0;
}
.page-content ul {
  list-style-type: disc;
}
.page-content ul, .page-content ol {
  margin-left: var(--x2);
}
.page-content ul ul, .page-content ul ol, .page-content ol ul, .page-content ol ol {
  margin-top: var(--x5);
  margin-bottom: 0;
  margin-left: var(--x3);
}
.page-content li {
  margin-bottom: var(--x5);
}
.page-content li:last-child {
  margin-bottom: 0;
}
.page-content .callout > :last-child {
  margin-bottom: 0;
}
.page-content .caption {
  margin-top: var(--x4);
}
.page-content p, .page-content ul, .page-content ol, .page-content blockquote, .page-content pre, .page-content img, .page-content .callout, .page-content .caption {
  margin-bottom: var(--x2);
}
.page-content p:last-child, .page-content ul:last-child, .page-content ol:last-child, .page-content blockquote:last-child, .page-content pre:last-child, .page-content img:last-child, .page-content .callout:last-child, .page-content .caption:last-child {
  margin-bottom: 0;
}

.page-title {
  font-family: var(--font2);
  font-weight: 500;
  color: var(--navy-deep);
  font-size: var(--f2);
  line-height: var(--g2);
}
.page-title a {
  color: var(--navy-deep);
}
.page-title a:hover {
  color: var(--ca);
}

.page-title:has(+ .byline) {
  margin-bottom: 0;
}

.byline {
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  color: var(--c2);
  margin-bottom: var(--x2);
}

.page-container, .headline-area, .page-content {
  display: flow-root;
}

/* ---------- Forms ---------- */
label {
  display: block;
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: var(--x5);
}
label .required {
  font-weight: normal;
  color: var(--ca);
}

input, textarea, select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--f5);
  line-height: 1em;
  font-weight: inherit;
  padding: var(--x4) var(--x3);
  border: var(--border1);
  background-color: var(--bg2);
  color: var(--c1);
  border-radius: 2px;
  margin-bottom: var(--x3);
}

input[type=checkbox], input[type=radio], input[type=image], input[type=submit], select {
  width: auto;
}

input[type=checkbox], input[type=radio] {
  display: inline-block;
}
input[type=checkbox] + label, input[type=radio] + label {
  display: inline;
  font-weight: normal;
  margin-left: var(--x6);
  user-select: none;
}

textarea {
  line-height: var(--g5);
  resize: vertical;
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ca);
  outline-offset: 1px;
}

button, input[type=submit], .button {
  display: inline-block;
  width: auto;
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: 1em;
  font-weight: 500;
  letter-spacing: 0.04em;
  vertical-align: top;
  color: var(--bg1);
  text-decoration: none;
  background-color: var(--navy-deep);
  padding: var(--x4) var(--x2);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
button:hover, button:active, input[type=submit]:hover, input[type=submit]:active, .button:hover, .button:active {
  background-color: var(--ca);
  color: var(--navy-deep);
  text-decoration: none;
}
button svg, input[type=submit] svg, .button svg {
  vertical-align: inherit;
}

button.save, .button.save {
  background-color: var(--navy-deep);
  color: var(--bg1);
}
button.save:hover, button.save:active, .button.save:hover, .button.save:active {
  background-color: var(--ca);
  color: var(--navy-deep);
}
button.delete, .button.delete {
  background-color: #8C2A1F;
  color: var(--bg1);
}
button.delete:hover, button.delete:active, .button.delete:hover, .button.delete:active {
  background-color: #B85028;
  color: var(--bg1);
}
button.action, .button.action {
  background-color: transparent;
  color: var(--navy-deep);
  border: 1px solid var(--navy-deep);
}
button.action:hover, button.action:active, .button.action:hover, .button.action:active {
  background-color: var(--navy-deep);
  color: var(--bg1);
}
button.update, .button.update {
  background-color: var(--ca);
  color: var(--navy-deep);
}
button.update:hover, button.update:active, .button.update:hover, .button.update:active {
  background-color: var(--navy-deep);
  color: var(--bg1);
}

/* ---------- Shared Component: Kicker ---------- */
.kicker {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ca);
  font-weight: 400;
  margin-bottom: var(--x3);
}

.kicker-mute {
  color: var(--c2);
}

.kicker-12 {
  font-size: 12px;
  line-height: 18px;
}

/* ---------- Shared Component: Section Title ---------- */
.section-title {
  font-family: var(--font2);
  font-size: 42px;
  line-height: 50px;
  color: var(--navy-deep);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ---------- Shared Component: Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: var(--x4);
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background-color: var(--ca);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font2);
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  border-radius: 2px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font2);
  font-size: var(--f5);
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bg1);
  display: block;
}

.brand-lockup {
  font-family: var(--font1);
  font-size: 12px;
  line-height: 16px;
  color: rgba(244, 239, 227, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
  display: block;
}

/* ---------- Header ---------- */
#header {
  background-color: var(--navy-deep);
  color: var(--bg1);
  padding-top: var(--x3);
  padding-bottom: var(--x3);
  border-bottom: 1px solid rgba(244, 239, 227, 0.12);
}
#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--x2) + var(--x5));
}
#header a {
  color: var(--bg1);
}
#header a:hover {
  color: var(--ca);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: calc(var(--x2) - var(--x6));
  font-family: var(--font1);
  font-size: 15px;
  line-height: 20px;
}
.nav-primary a {
  color: var(--bg1);
  white-space: nowrap;
}
.nav-primary a:hover {
  color: var(--ca);
}

.nav-cta {
  display: inline-block;
  background-color: var(--ca);
  color: var(--navy-deep);
  padding: var(--x5) var(--x3);
  font-family: var(--font1);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover {
  background-color: var(--bg1);
  color: var(--navy-deep);
}

.nav-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(244, 239, 227, 0.25);
  border-radius: 2px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}
.nav-hamburger:hover {
  border-color: var(--ca);
}
.nav-hamburger .nav-hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--bg1);
  border-radius: 1px;
}
.nav-hamburger[aria-expanded=true] .nav-hamburger-bar:nth-child(2) {
  opacity: 0;
}

/* ---------- Section 1: Hero ---------- */
#hero {
  background-color: var(--navy-deep);
  color: var(--bg1);
  padding-top: calc(var(--x1) * var(--phi));
  padding-bottom: calc(var(--x1) * var(--phi));
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 40%, rgba(184, 146, 59, 0.18) 0%, rgba(15, 42, 74, 0) 60%);
  pointer-events: none;
}
#hero .container {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ca);
  margin-bottom: var(--x3);
}

.hero-headline {
  font-family: var(--font2);
  font-size: clamp(var(--f2), 8vw, var(--f1) * var(--phi) * 0.84);
  line-height: clamp(var(--g2), 9vw, var(--g1) * var(--phi) * 0.86);
  font-weight: 400;
  color: var(--bg1);
  max-width: 840px;
  margin-bottom: var(--x2);
  letter-spacing: -0.01em;
}
.hero-headline em {
  font-family: var(--font2);
  font-style: italic;
  color: var(--ca);
}

.hero-mission {
  font-family: var(--font1);
  font-size: var(--f4);
  line-height: var(--g4);
  max-width: var(--w-content);
  color: rgba(244, 239, 227, 0.85);
  margin-bottom: var(--x1);
}

.hero-meta {
  display: flex;
  gap: var(--x2);
  flex-wrap: wrap;
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  color: rgba(244, 239, 227, 0.6);
  border-top: 1px solid rgba(244, 239, 227, 0.18);
  padding-top: var(--x3);
  max-width: var(--w-content);
}
.hero-meta strong {
  display: block;
  color: var(--bg1);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  margin-bottom: 2px;
}
.hero-meta > div {
  flex: 1 1 180px;
}

/* ---------- Section 2: Pillars ---------- */
#pillars {
  background-color: var(--bg1);
  padding-top: calc(var(--x1) * var(--phi));
  padding-bottom: calc(var(--x1) * var(--phi));
}

.pillars-intro {
  text-align: center;
  margin-bottom: calc(var(--x1) + var(--x3));
}
.pillars-intro .kicker {
  margin-bottom: var(--x3);
}
.pillars-intro h2 {
  font-family: var(--font2);
  font-size: 42px;
  line-height: 50px;
  color: var(--navy-deep);
  font-weight: 500;
  max-width: var(--w-content);
  margin-left: auto;
  margin-right: auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--x2);
}

.pillar {
  background-color: var(--bg2);
  padding: var(--x1) calc(var(--x1) - var(--x5) - 3px);
  border-top: var(--border3);
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  color: var(--navy-deep);
  margin-bottom: var(--x3);
}

.pillar h3 {
  font-family: var(--font2);
  font-size: var(--f3);
  line-height: var(--g3);
  color: var(--navy-deep);
  font-weight: 500;
  margin-bottom: var(--x3);
}

.pillar p {
  font-family: var(--font1);
  font-size: 16px;
  line-height: 26px;
  color: var(--c1-soft);
  margin-bottom: var(--x2);
  flex-grow: 1;
}

.pillar-cta {
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ca);
  font-weight: 600;
  border-bottom: 1px solid var(--ca);
  padding-bottom: var(--x6);
  display: inline-block;
  align-self: flex-start;
}
.pillar-cta:hover {
  color: var(--navy-deep);
  border-bottom-color: var(--navy-deep);
}

/* ---------- Section 3: Impact ---------- */
#impact {
  background-color: var(--navy-deep);
  color: var(--bg1);
  padding-top: calc(var(--x1) * var(--phi));
  padding-bottom: calc(var(--x1) * var(--phi));
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--x1);
  text-align: center;
}

.impact-figure {
  font-family: var(--font2);
  font-size: clamp(var(--f2), 7vw, var(--f1) * var(--phi) * 0.84);
  line-height: clamp(var(--g2), 8vw, var(--g1) * var(--phi) * 0.86);
  font-weight: 500;
  color: var(--ca);
  margin-bottom: var(--x5);
  letter-spacing: -0.02em;
}
.impact-figure .unit {
  font-size: 0.5em;
  line-height: 1;
  font-weight: 400;
  color: rgba(184, 146, 59, 0.7);
}

.impact-label {
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 227, 0.85);
}

.impact-sub {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  color: rgba(244, 239, 227, 0.55);
  margin-top: var(--x6);
}

/* ---------- Section 4: Narrative ---------- */
#narrative {
  background-color: var(--bg1);
  padding-top: calc(var(--x1) * var(--phi) + var(--x2));
  padding-bottom: calc(var(--x1) * var(--phi) + var(--x2));
}

.narrative-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.narrative-kicker {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ca);
  margin-bottom: var(--x3);
}

.narrative-headline {
  font-family: var(--font2);
  font-size: var(--f1);
  line-height: calc(var(--g1) * 0.79);
  color: var(--navy-deep);
  margin-bottom: var(--x2);
  font-style: italic;
  font-weight: 400;
}
.narrative-headline strong {
  font-weight: 600;
  font-style: normal;
}

.narrative-body {
  font-family: var(--font1);
  font-size: 19px;
  line-height: 32px;
  color: var(--c1-soft);
  max-width: var(--w-content);
  margin: 0 auto;
}
.narrative-body p + p {
  margin-top: var(--x3);
}

.narrative-divider {
  width: 48px;
  height: 1px;
  background-color: var(--ca);
  margin: var(--x1) auto;
  border: 0;
}

/* ---------- Section 5: Feature ---------- */
#feature {
  background-color: var(--bg2);
  padding-top: calc(var(--x1) * var(--phi));
  padding-bottom: calc(var(--x1) * var(--phi));
}

.feature-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: calc(var(--x1) + var(--x3));
  align-items: center;
}

.feature-media {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(184, 146, 59, 0.4) 0%, transparent 50%);
}

.feature-media-caption {
  position: absolute;
  bottom: var(--x3);
  left: var(--x3);
  right: var(--x3);
  color: var(--bg1);
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  z-index: 2;
  border-top: 1px solid rgba(244, 239, 227, 0.4);
  padding-top: var(--x4);
}

.feature-tag {
  font-family: var(--font1);
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ca);
  margin-bottom: var(--x3);
}

#feature h2 {
  font-family: var(--font2);
  font-size: var(--f2);
  line-height: var(--g2);
  color: var(--navy-deep);
  font-weight: 500;
  margin-bottom: var(--x3);
  letter-spacing: -0.01em;
}

.feature-lead {
  font-family: var(--font2);
  font-size: 19px;
  line-height: 30px;
  color: var(--c1);
  margin-bottom: var(--x3);
  font-style: italic;
}

.feature-body {
  font-family: var(--font1);
  font-size: 16px;
  line-height: 28px;
  color: var(--c1-soft);
  margin-bottom: var(--x2);
}
.feature-body em {
  font-family: var(--font2);
  font-style: italic;
}

.feature-byline {
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  color: var(--c2);
  margin-bottom: var(--x2);
  padding-left: var(--x4);
  border-left: 2px solid var(--ca);
}
.feature-byline strong {
  color: var(--navy-deep);
  font-weight: 600;
  display: block;
}

.feature-cta {
  display: inline-block;
  background-color: var(--navy-deep);
  color: var(--bg1);
  padding: var(--x4) calc(var(--x2) - 3px);
  font-family: var(--font1);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.feature-cta:hover {
  background-color: var(--ca);
  color: var(--navy-deep);
}

/* ---------- Section 6: Voices ---------- */
#voices {
  background-color: var(--bg1);
  padding-top: calc(var(--x1) * var(--phi));
  padding-bottom: calc(var(--x1) * var(--phi));
}

.voices-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: calc(var(--x1) + var(--x3));
  gap: var(--x2);
}
.voices-header .kicker {
  margin-bottom: var(--x4);
}
.voices-header h2 {
  font-family: var(--font2);
  font-size: 42px;
  line-height: 50px;
  color: var(--navy-deep);
  font-weight: 500;
  max-width: 520px;
}

.voices-link {
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: var(--g6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ca);
  border-bottom: 1px solid var(--ca);
  padding-bottom: var(--x6);
  white-space: nowrap;
}
.voices-link:hover {
  color: var(--navy-deep);
  border-bottom-color: var(--navy-deep);
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--x2);
}

.voice {
  background-color: var(--bg2);
  display: flex;
  flex-direction: column;
}

.voice-portrait {
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  position: relative;
}
.voice-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
}
.voice-portrait.alt-a {
  background: linear-gradient(180deg, var(--ca) 0%, var(--gold-deep) 100%);
}
.voice-portrait.alt-b {
  background: linear-gradient(180deg, var(--olive-deep) 0%, var(--olive-shadow) 100%);
}

.voice-body {
  padding: var(--x2);
}

.voice-quote {
  font-family: var(--font2);
  font-size: var(--f4);
  line-height: var(--g4);
  font-style: italic;
  color: var(--navy-deep);
  margin-bottom: var(--x3);
}

.voice-name {
  font-family: var(--font1);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--navy-deep);
}

.voice-role {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  color: var(--c2);
  margin-top: 2px;
}

/* ---------- Section 7: Partners ---------- */
#partners {
  background-color: var(--bg2);
  padding-top: calc(var(--x1) + var(--x4) + 2px);
  padding-bottom: calc(var(--x1) + var(--x4) + 2px);
  border-top: var(--border1);
  border-bottom: var(--border1);
}

.partners-label {
  text-align: center;
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c2);
  margin-bottom: var(--x1);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--x2);
  align-items: center;
}

.partner-mark {
  text-align: center;
  font-family: var(--font2);
  font-size: 17px;
  line-height: 22px;
  color: var(--navy-deep);
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.partner-mark small {
  display: block;
  font-family: var(--font1);
  font-size: 11px;
  line-height: 14px;
  font-weight: 400;
  color: var(--c2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: var(--x6);
}

/* ---------- Section 8: News & Events ---------- */
#news {
  background-color: var(--bg1);
  padding-top: calc(var(--x1) * var(--phi));
  padding-bottom: calc(var(--x1) * var(--phi));
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--x1);
  gap: var(--x2);
}
.news-header .kicker {
  margin-bottom: var(--x4);
}
.news-header h2 {
  font-family: var(--font2);
  font-size: 42px;
  line-height: 50px;
  color: var(--navy-deep);
  font-weight: 500;
}

.news-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--x1);
}

.news-feed {
  display: flex;
  flex-direction: column;
}

.news-item {
  padding: calc(var(--x2) - 3px) 0;
  border-bottom: var(--border1);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--x3);
  align-items: baseline;
}
.news-item:first-child {
  padding-top: 0;
}
.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  color: var(--c2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-title {
  font-family: var(--font2);
  font-size: var(--f4);
  line-height: 28px;
  color: var(--navy-deep);
  font-weight: 500;
}
.news-title:hover {
  color: var(--ca);
}

.news-cat {
  font-family: var(--font1);
  font-size: 11px;
  line-height: 18px;
  color: var(--ca);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.events-panel {
  background-color: var(--navy-deep);
  color: var(--bg1);
  padding: var(--x1) var(--x2);
}

.events-panel-label {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ca);
  margin-bottom: var(--x3);
}

.event {
  padding: var(--x3) 0;
  border-top: 1px solid rgba(244, 239, 227, 0.18);
}
.event:first-of-type {
  border-top: none;
  padding-top: 0;
}

.event-when {
  font-family: var(--font1);
  font-size: 12px;
  line-height: 18px;
  color: var(--ca);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--x5);
}

.event-title {
  font-family: var(--font2);
  font-size: var(--f5);
  line-height: 24px;
  color: var(--bg1);
  margin-bottom: var(--x5);
  font-weight: 500;
}

.event-where {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  color: rgba(244, 239, 227, 0.65);
}

/* ---------- Section 9: Audience CTA ---------- */
#audience-cta {
  background-color: var(--bg2);
  padding-top: calc(var(--x1) * var(--phi));
  padding-bottom: calc(var(--x1) * var(--phi));
}

.audience-intro {
  text-align: center;
  margin-bottom: calc(var(--x1) + var(--x3));
}
.audience-intro .kicker {
  margin-bottom: var(--x3);
}
.audience-intro h2 {
  font-family: var(--font2);
  font-size: 42px;
  line-height: 50px;
  color: var(--navy-deep);
  font-weight: 500;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border-cream-line);
  border: var(--border1);
}

.audience-cell {
  background-color: var(--bg2);
  padding: var(--x1) var(--x2);
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease;
}
.audience-cell:hover {
  background-color: var(--bg1);
}
.audience-cell h3 {
  font-family: var(--font2);
  font-size: var(--f4);
  line-height: 30px;
  color: var(--navy-deep);
  font-weight: 500;
  margin-bottom: var(--x4);
}
.audience-cell p {
  font-family: var(--font1);
  font-size: 15px;
  line-height: 24px;
  color: var(--c1-soft);
  margin-bottom: var(--x3);
  flex-grow: 1;
}

.audience-link {
  font-family: var(--font1);
  font-size: 13px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ca);
  align-self: flex-start;
}
.audience-link::after {
  content: " →";
  transition: padding-left 0.2s ease;
}

.audience-cell:hover .audience-link::after {
  padding-left: 6px;
}

/* ---------- Footer ---------- */
#footer {
  background-color: var(--navy-deep);
  color: rgba(244, 239, 227, 0.7);
  padding-top: calc(var(--x1) + var(--x2) - var(--x3));
  padding-bottom: calc(var(--x2) + var(--x5));
  border-top: var(--footer-rule);
  font-family: var(--font1);
  font-size: var(--f6);
  line-height: 22px;
}
#footer a {
  color: rgba(244, 239, 227, 0.75);
}
#footer a:hover {
  color: var(--bg1);
}
#footer a:focus-visible {
  outline: 2px solid var(--ca);
  outline-offset: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--x1);
  margin-bottom: calc(var(--x1) + var(--x3));
}

.footer-brand .brand-name {
  color: var(--bg1);
  font-size: 20px;
  line-height: 26px;
}
.footer-brand .brand-lockup {
  margin-top: var(--x5);
}

.footer-brand-mission {
  font-family: var(--font2);
  font-style: italic;
  color: rgba(244, 239, 227, 0.6);
  font-size: var(--f6);
  line-height: 22px;
  margin-top: var(--x3);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font1);
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ca);
  margin-bottom: var(--x3);
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 0;
}
.footer-col li {
  margin-bottom: var(--x4);
}

.footer-legal {
  border-top: 1px solid rgba(244, 239, 227, 0.15);
  padding-top: var(--x3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--x4);
  font-family: var(--font1);
  font-size: 12px;
  line-height: 18px;
  color: rgba(244, 239, 227, 0.5);
}
.footer-legal a {
  color: rgba(244, 239, 227, 0.5);
}
.footer-legal a:hover {
  color: var(--bg1);
}

.footer-legal-links {
  display: flex;
  gap: var(--x3);
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media all and (max-width: 920px) {
  .nav-primary {
    display: none;
  }
  .nav-hamburger {
    display: inline-flex;
  }
  .hero-headline {
    font-size: 44px;
    line-height: 50px;
  }
  .pillars-grid, .voices-grid, .audience-grid {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--x2);
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--x1);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--x5);
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--x2);
  }
  .narrative-headline {
    font-size: var(--f2);
    line-height: var(--g2);
  }
  .voices-header, .news-header {
    flex-direction: column;
    align-items: flex-start;
  }
  #hero {
    padding-top: var(--x1);
    padding-bottom: var(--x1);
  }
  .pillars-intro h2,
  .voices-header h2,
  .news-header h2,
  .audience-intro h2 {
    font-size: var(--f2);
    line-height: var(--g2);
  }
}
@media all and (min-width: 921px) {
  .nav-hamburger {
    display: none;
  }
}
/* ============================================================
 * Layout overrides — escape PM's focus-mode .text 672px column
 * for the multi-section editorial homepage.
 * ============================================================ */
.page-main-home.text,
.page-main-page.text,
.page-main-error.text {
  max-width: none;
}

.page-main-home > .page-content,
.page-main-page > .page-content,
.page-main-error > .page-content {
  max-width: none;
}

.page-main-home > .page-content > section {
  display: block;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.page-container.page-main-home {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

/* ============================================================
 * Real images for the Stellenberg identity.
 * Overrides Pass 3 CSS-gradient placeholders.
 * ============================================================ */
#hero {
  background-image: linear-gradient(135deg, rgba(15, 42, 74, 0.85) 0%, rgba(15, 42, 74, 0.7) 60%, rgba(15, 42, 74, 0.55) 100%), url("/user-content/themes/medical-centre/images/hero-stellenberg-home.png");
  background-position: center;
  background-size: cover;
}

.feature-media {
  background: linear-gradient(180deg, rgba(15, 42, 74, 0) 55%, rgba(15, 42, 74, 0.4) 100%), url("/user-content/themes/medical-centre/images/featured-tb-research.png") center/cover;
}

.voice-portrait,
.voice-portrait.alt-a,
.voice-portrait.alt-b {
  background: none;
  background-size: cover;
  background-position: center top;
}

.voice-portrait-lerato {
  background-image: url("/user-content/themes/medical-centre/images/voice-lerato.png");
}

.voice-portrait-yusuf {
  background-image: url("/user-content/themes/medical-centre/images/voice-yusuf.png");
}

.voice-portrait-sipho {
  background-image: url("/user-content/themes/medical-centre/images/voice-sipho.png");
}

.voice-portrait::after {
  content: none;
}