/* Design 4 "Showcase": calm product-page layout. White and #F5F5F7 canvas, large rounded tiles,
   centred headlines, pill buttons, scroll rows. Text sizes stay on the shared --fs-* tokens. */

.theme-4 {
  --canvas: #F5F5F7;
  --tile: #FFFFFF;
  --hair: rgba(0,0,0,.1);
  --forest-700: #016737;
  --forest-600: #0A7A45;
  --mint: #E7F2EB;
  --mint-2: #F1F7F3;
  --warm: #F5F5F7;
  --ink: #1D1D1F;
  --muted: #56585C;
  --line: #DCDCE1;
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --header: 64px;
  --section: clamp(72px, 9vw, 136px);
  --shadow: 0 22px 48px -30px rgba(0,0,0,.3);
  scroll-padding-top: calc(var(--header) + 80px);
}
.theme-4 body { background: var(--canvas); }
.theme-4 h1, .theme-4 h2, .theme-4 h3, .theme-4 h4 { font-weight: 600; }
.theme-4 h1 { letter-spacing: -0.032em; }
.theme-4 h2 { letter-spacing: -0.026em; }
.theme-4 h3 { letter-spacing: -0.016em; }
.theme-4 :focus-visible { outline-color: var(--forest-700); }
.theme-4 .on-dark :focus-visible { outline-color: var(--fresh); }

/* ---------- Surfaces: tiles flip between white and canvas grey with the section behind them ---------- */
.theme-4 .section.surface { background: var(--canvas); }
.theme-4 .section.white { background: #FFFFFF; --tile: #F5F5F7; }
.theme-4 .on-dark { --tile: rgba(255,255,255,.07); }
/* Neighbours on the same canvas read as one band, so the second one drops its top padding. */
.theme-4 .section:not(.white):not(.on-dark) + .section:not(.white):not(.on-dark),
.theme-4 .section.white + .section.white { padding-top: 0; }

/* A dark section becomes one forest tile sitting on the canvas. */
.theme-4 .section.on-dark { background: transparent; padding: 0 0 var(--section); }
.theme-4 .section.white + .section.on-dark { padding-top: var(--section); }
.theme-4 .section.on-dark > .wrap {
  width: calc(100% - var(--gutter) * 2); max-width: var(--max);
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px);
  background: var(--forest-900); border-radius: var(--r-lg);
}

.theme-4 .head { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.theme-4 .head > div { display: contents; }
.theme-4 .head h2 { max-width: 24ch; }
.theme-4 .head p:not(.eyebrow), .theme-4 .head.solo p:not(.eyebrow) { max-width: 46rem; margin-top: 20px; }
.theme-4 .head.d4-start { align-items: flex-start; text-align: left; }
.theme-4 .eyebrow { display: block; margin-bottom: 12px; color: var(--forest-700); }
.theme-4 .eyebrow::before { display: none; }
.theme-4 .on-dark .eyebrow { color: var(--fresh); }
.theme-4 .lead { color: var(--muted); }

/* ---------- Buttons and links ---------- */
.theme-4 .btn { min-height: 52px; padding: 12px 26px; border-radius: 999px; border-width: 1.5px; }
.theme-4 .btn:hover { transform: none; box-shadow: none; }
.theme-4 .btn-primary:hover { background: var(--forest-900); }
.theme-4 .btn-secondary { border-color: var(--forest-700); }
.theme-4 .btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); backdrop-filter: none; }
.theme-4 .link-arrow { gap: 8px; font-weight: 500; text-underline-offset: .22em; }
.theme-4 .link-arrow:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.theme-4 .link-arrow::after { width: 8px; height: 8px; border-width: 2px; margin-top: 1px; }

/* ---------- Header: slim translucent bar ---------- */
.theme-4 .site-header { background: rgba(255,255,255,.94); box-shadow: 0 1px 0 var(--hair); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .theme-4 .site-header { background: rgba(255,255,255,.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.theme-4 .brand img { height: 34px; }
.theme-4 .nav-link, .theme-4 .nav-item > details > summary { min-height: 44px; padding: 6px 13px; font-weight: 450; color: #333336; border-radius: 999px; }
.theme-4 .nav-link:hover, .theme-4 .nav-item > details > summary:hover, .theme-4 .nav-item > details[open] > summary { background: rgba(0,0,0,.06); color: var(--ink); }
.theme-4 .nav-link[aria-current="page"], .theme-4 .nav-item.is-current > details > summary { color: var(--forest-700); font-weight: 600; box-shadow: none; border-radius: 999px; }
.theme-4 .menu { top: calc(100% + 10px); padding: 8px; border-radius: var(--r); box-shadow: 0 24px 56px -24px rgba(0,0,0,.3), 0 0 0 1px var(--hair); }
.theme-4 .menu a { color: var(--ink); font-weight: 500; }
.theme-4 .menu a:hover, .theme-4 .menu a:focus-visible { background: var(--canvas); }
.theme-4 .menu a[aria-current="page"] { background: var(--mint); box-shadow: none; }
.theme-4 .nav-cta .btn { min-height: 44px; padding: 8px 20px; }
.theme-4 .menu-toggle { min-height: 44px; padding: 6px 16px; background: rgba(0,0,0,.06); border: 0; border-radius: 999px; color: var(--ink); }
/* The slim bar still fits the full menu down to 1280px, so the shared 1360px collapse is undone in between. */
@media (min-width: 1280px) and (max-width: 1360px) {
  .theme-4 .menu-toggle { display: none; }
  .theme-4 .nav { display: flex; position: static; max-height: none; overflow: visible; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: none; box-shadow: none; }
  .theme-4 .nav-link, .theme-4 .nav-item > details > summary { width: auto; padding-inline: 10px; border-bottom: 0; }
  .theme-4 .menu { position: absolute; min-width: 340px; }
  .theme-4 .menu a span { display: block; }
  .theme-4 .nav-cta { margin: 0 0 0 10px; }
  .theme-4 .nav-cta .btn { width: auto; padding-inline: 16px; }
}
@media (max-width: 1279px) {
  .theme-4 .nav { padding-top: 8px; background: #FFFFFF; box-shadow: 0 28px 44px -28px rgba(0,0,0,.35), 0 1px 0 var(--hair) inset; }
  .theme-4 .nav-link, .theme-4 .nav-item > details > summary { min-height: 56px; padding: 12px 8px; border-radius: 0; border-bottom-color: var(--line); }
  .theme-4 .nav-link:hover, .theme-4 .nav-item > details > summary:hover, .theme-4 .nav-item > details[open] > summary { background: transparent; }
  .theme-4 .nav-link[aria-current="page"], .theme-4 .nav-item.is-current > details > summary { box-shadow: none; padding-left: 8px; border-radius: 0; }
  .theme-4 .menu { padding: 4px 0 12px 12px; box-shadow: none; border-radius: 0; }
  .theme-4 .nav-cta .btn { min-height: 52px; }
}
@media (max-width: 520px) { .theme-4 { --header: 60px; } .theme-4 .brand img { height: 30px; } }

/* ---------- Section bar: sticks under the header on pages inside a nav section ---------- */
.theme-4 .subnav { position: sticky; top: var(--header); z-index: 90; background: rgba(245,245,247,.96); box-shadow: 0 1px 0 var(--hair); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .theme-4 .subnav { background: rgba(245,245,247,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.theme-4 .subnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; }
.theme-4 .subnav-title { flex: none; font-size: var(--fs-ui); font-weight: 600; letter-spacing: -0.015em; color: var(--forest-900); text-decoration: none; }
.theme-4 .subnav-title:hover { color: var(--forest-700); }
.theme-4 .subnav ul { list-style: none; display: flex; gap: 4px; min-width: 0; margin-right: -12px; overflow-x: auto; scrollbar-width: none; }
.theme-4 .subnav ul::-webkit-scrollbar { display: none; }
.theme-4 .subnav li { flex: none; }
.theme-4 .subnav li a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; font-size: var(--fs-small); color: #3F4144; text-decoration: none; white-space: nowrap; border-radius: 999px; outline-offset: -3px; }
.theme-4 .subnav li a:hover { color: var(--ink); background: rgba(0,0,0,.06); }
.theme-4 .subnav li a[aria-current="page"] { color: var(--forest-700); font-weight: 600; }
@media (max-width: 760px) {
  .theme-4 .subnav .wrap { gap: 12px; }
  /* The link row scrolls sideways; the fade shows there is more to the right. */
  .theme-4 .subnav ul { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); padding-right: 24px; margin-right: calc(var(--gutter) * -1); }
}

/* ---------- Home hero ---------- */
.theme-4 .d4-hero { background: #FFFFFF; text-align: center; padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 104px); }
.theme-4 .d4-kicker { margin-bottom: 14px; font-size: var(--fs-ui); font-weight: 600; color: var(--forest-700); }
.theme-4 .d4-hero h1 { max-width: 17ch; margin-inline: auto; }
.theme-4 .d4-hero .lead { max-width: 40rem; margin: 24px auto 0; }
.theme-4 .d4-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.theme-4 .d4-hero .d4-actions { justify-content: center; margin-top: 32px; }
.theme-4 .d4-hero-photo { margin: clamp(40px, 6vw, 72px) 0 0; aspect-ratio: 21 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--canvas); }
.theme-4 .d4-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.theme-4 .d4-pace { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); }
.theme-4 .d4-pace li { padding: 6px 20px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.016em; color: var(--forest-900); }
.theme-4 .d4-pace li + li { border-left: 1px solid var(--line); }
@media (max-width: 760px) {
  .theme-4 .d4-hero-photo { aspect-ratio: 4 / 3; }
  .theme-4 .d4-pace { grid-template-columns: 1fr; }
  .theme-4 .d4-pace li { padding: 14px 0; }
  .theme-4 .d4-pace li + li { border-left: 0; border-top: 1px solid var(--line); }
  .theme-4 .d4-hero .btn { width: 100%; }
}

/* ---------- Stat band ---------- */
.theme-4 .d4-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: clamp(32px, 4vw, 56px) 0; background: var(--tile); border-radius: var(--r-lg); text-align: center; }
.theme-4 .d4-stats li { padding: 4px clamp(14px, 2vw, 28px); }
.theme-4 .d4-stats li + li { border-left: 1px solid var(--line); }
.theme-4 .d4-stats b { display: block; margin-bottom: 10px; font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--forest-700); }
.theme-4 .d4-stats span { display: block; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
@media (max-width: 1100px) {
  .theme-4 .d4-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .theme-4 .d4-stats li:nth-child(odd) { border-left: 0; }
}
@media (max-width: 560px) {
  .theme-4 .d4-stats { grid-template-columns: 1fr; row-gap: 0; padding: 12px 24px; }
  .theme-4 .d4-stats li { padding: 24px 0; }
  .theme-4 .d4-stats li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Logo marquee: a plain scroll row until carousel.js marks it live ---------- */
.theme-4 .d4-marquee { margin-top: clamp(28px, 4vw, 48px); }
.theme-4 .d4-marquee-view { overflow-x: auto; }
.theme-4 .d4-marquee-track { display: flex; width: max-content; padding: 4px 0 4px var(--gutter); }
.theme-4 .d4-marquee-track ul { list-style: none; display: flex; gap: 16px; padding-right: 16px; }
.theme-4 .d4-marquee-track ul[aria-hidden="true"] { display: none; }
.theme-4 .d4-marquee-track li { flex: none; display: grid; place-items: center; width: 188px; height: 104px; padding: 18px 24px; background: #FFFFFF; border-radius: 18px; }
.theme-4 .d4-marquee-track img { max-width: 100%; max-height: 60px; width: auto; object-fit: contain; }
.theme-4 .d4-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(20px, 3vw, 32px); }
@media (prefers-reduced-motion: no-preference) {
  .theme-4 .d4-marquee.is-live .d4-marquee-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
  .theme-4 .d4-marquee.is-live .d4-marquee-track { padding-left: 0; animation: d4-marquee 64s linear infinite; }
  .theme-4 .d4-marquee.is-live .d4-marquee-track ul[aria-hidden="true"] { display: flex; }
  .theme-4 .d4-marquee.is-live .d4-marquee-view:hover .d4-marquee-track,
  .theme-4 .d4-marquee.is-live .d4-marquee-view:focus-within .d4-marquee-track,
  .theme-4 .d4-marquee.is-paused .d4-marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .theme-4 .d4-marquee .d4-ctl { display: none; } }
@keyframes d4-marquee { to { transform: translateX(-50%); } }

/* Round control buttons added by carousel.js */
.theme-4 .d4-ctl { display: flex; gap: 12px; margin-left: auto; }
.theme-4 .d4-ctl[hidden] { display: none; }
.theme-4 .d4-ctl-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #E3E3E8; color: var(--ink); cursor: pointer; transition: background-color .2s ease; }
.theme-4 .d4-ctl-btn:hover { background: #D2D2D8; }
.theme-4 .d4-ctl-btn[disabled] { color: #8A8A90; cursor: default; background: #ECECF0; }
.theme-4 .d4-ctl-btn svg { width: 20px; height: 20px; }
.theme-4 .d4-ctl-btn.is-prev svg { transform: scaleX(-1); }

/* ---------- Service promo tiles ---------- */
.theme-4 .d4-promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.theme-4 .d4-promo { display: flex; flex-direction: column; overflow: hidden; background: var(--tile); border-radius: var(--r-lg); text-align: center; }
.theme-4 .d4-promo.on-dark { background: var(--forest-900); }
.theme-4 .d4-promo-text { display: flex; flex-direction: column; align-items: center; padding: clamp(36px, 4.5vw, 64px) clamp(24px, 4vw, 56px) clamp(28px, 3vw, 40px); }
.theme-4 .d4-promo h3 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.026em; }
.theme-4 .d4-promo-text > p { max-width: 30rem; margin: 16px 0 0; color: var(--muted); }
.theme-4 .d4-promo.on-dark .d4-promo-text > p { color: #D5E4DB; }
.theme-4 .d4-dots { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin-top: 16px; font-size: var(--fs-small); font-weight: 600; color: var(--forest-900); }
.theme-4 .d4-promo.on-dark .d4-dots { color: #FFFFFF; }
.theme-4 .d4-dots li:not(:last-child)::after { content: "\00B7"; margin: 0 10px; color: var(--forest-700); }
.theme-4 .d4-promo.on-dark .d4-dots li:not(:last-child)::after { color: var(--fresh); }
.theme-4 .d4-promo-text > .d4-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; max-width: none; margin-top: 18px; }
.theme-4 .d4-promo figure { margin: auto 0 0; aspect-ratio: 16 / 10; overflow: hidden; }
.theme-4 .d4-promo figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .theme-4 .d4-promos { grid-template-columns: 1fr; } }

/* ---------- Carousels: scroll-snap rows that run to the page edge ---------- */
.theme-4 .d4-carousel { margin-top: clamp(4px, 1vw, 12px); }
.theme-4 .d4-rail {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  list-style: none; display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 8px var(--edge) 16px;
}
.theme-4 .d4-rail > li { flex: none; scroll-snap-align: start; }
.theme-4 .d4-carousel.is-enhanced .d4-rail { scrollbar-width: none; }
.theme-4 .d4-carousel.is-enhanced .d4-rail::-webkit-scrollbar { display: none; }
.theme-4 .d4-carousel .d4-foot { margin-top: clamp(12px, 2vw, 24px); }

.theme-4 .d4-rail-people > li { width: clamp(220px, 22%, 300px); }
.theme-4 .d4-person { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--tile); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.theme-4 .d4-person .ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(180deg, #F2F4F3, #E1E7E3); }
.theme-4 .d4-person img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform .6s var(--ease); }
.theme-4 .d4-person:hover img { transform: scale(1.03); }
.theme-4 .d4-person strong { display: block; padding: 18px 20px 0; font-size: var(--fs-small); font-weight: 600; line-height: 1.3; color: var(--forest-900); }
.theme-4 .d4-person .role { display: block; padding: 4px 20px 22px; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.theme-4 .d4-person:hover strong { color: var(--forest-700); }

.theme-4 .d4-rail-sessions > li { width: clamp(min(336px, 86vw), 31.5%, 420px); }
.theme-4 .d4-session { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 2.6vw, 36px); background: var(--tile); border-radius: var(--r-lg); }
.theme-4 .d4-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 18px; line-height: 1.1; }
.theme-4 .d4-date b { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.03em; color: var(--forest-900); }
.theme-4 .d4-date span { font-size: var(--fs-small); font-weight: 600; color: var(--forest-700); }
.theme-4 .d4-session h3 a { color: var(--forest-900); text-decoration: none; }
.theme-4 .d4-session h3 a:hover { color: var(--forest-700); text-decoration: underline; text-decoration-thickness: 1.5px; }
.theme-4 .d4-session .meta { flex-direction: column; gap: 8px; margin-top: 16px; }
.theme-4 .d4-session .meta li { align-items: flex-start; }
.theme-4 .d4-session .meta svg { margin-top: .22em; }
.theme-4 .d4-claims { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.theme-4 .d4-session .badge.green { background: #FFFFFF; border-color: #BFD8C8; }
.theme-4 .d4-session .btn { margin-top: auto; }
@media (max-width: 560px) { .theme-4 .d4-session .btn { width: 100%; padding-inline: 14px; } .theme-4 .d4-foot .d4-actions .btn { width: 100%; } }

/* ---------- Closing tile ---------- */
.theme-4 .d4-close { display: flex; flex-direction: column; align-items: center; padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 96px) clamp(36px, 5vw, 64px); border-radius: var(--r-lg); text-align: center; }
.theme-4 .d4-close h2 { max-width: 18ch; }
.theme-4 .d4-close > p:not(.eyebrow) { max-width: 40rem; margin: 20px 0 32px; color: #D5E4DB; }
.theme-4 .d4-reach { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line-dark); }
.theme-4 .d4-reach a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.theme-4 .d4-reach svg { width: 26px; height: 26px; margin-bottom: 8px; color: var(--fresh); }
.theme-4 .d4-reach b { font-size: var(--fs-ui); font-weight: 600; color: #FFFFFF; }
.theme-4 .d4-reach span { font-size: var(--fs-small); color: #C9DBD0; overflow-wrap: anywhere; }
.theme-4 .d4-reach a:hover b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
@media (max-width: 700px) {
  .theme-4 .d4-reach { grid-template-columns: 1fr; gap: 8px; }
  .theme-4 .d4-close .btn { width: 100%; }
}

/* ---------- Inner page hero: centred header, photo as a rounded figure below ---------- */
.theme-4 .page-hero { display: flex; flex-direction: column; overflow: visible; background: #FFFFFF; color: var(--ink); text-align: center; }
.theme-4 .page-hero::after, .theme-4 .page-hero .flow { display: none; }
.theme-4 .page-hero .wrap { order: 1; display: flex; flex-direction: column; align-items: center; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(44px, 6vw, 88px); }
.theme-4 .page-hero h1 { max-width: 22ch; color: var(--forest-900); }
.theme-4 .page-hero .lead { max-width: 46rem; color: var(--muted); }
.theme-4 .page-hero .eyebrow { color: var(--forest-700); }
.theme-4 .page-hero .btn-row { justify-content: center; }
.theme-4 .page-hero a:not(.btn) { color: var(--forest-700); }
.theme-4 .page-hero a:not(.btn):hover { color: var(--forest-900); }
.theme-4 .page-hero :focus-visible { outline-color: var(--forest-700); }
.theme-4 .page-hero .btn-light { background: var(--forest-700); color: #FFFFFF; }
.theme-4 .page-hero .btn-light:hover { background: var(--forest-900); color: #FFFFFF; }
.theme-4 .page-hero .btn-ghost-light { color: var(--forest-700); border-color: var(--forest-700); }
.theme-4 .page-hero .btn-ghost-light:hover { background: var(--forest-700); color: #FFFFFF; }
.theme-4 .page-hero .hero-media { order: 2; position: static; z-index: auto; width: calc(100% - var(--gutter) * 2); max-width: var(--max); margin: 0 auto clamp(48px, 6vw, 88px); aspect-ratio: 21 / 8; border-radius: var(--r-lg); overflow: hidden; background: var(--canvas); }
.theme-4 .page-hero.has-media .wrap { padding-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 760px) { .theme-4 .page-hero .hero-media { aspect-ratio: 16 / 10; } }
.theme-4 .crumbs { justify-content: center; color: var(--muted); }
.theme-4 .crumbs li:not(:last-child)::after { color: #9A9AA0; }

/* ---------- Tiles: cards, facts, people, sessions, lists ---------- */
.theme-4 .card, .theme-4 .fact, .theme-4 .person, .theme-4 .session, .theme-4 .method li, .theme-4 .article-list a,
.theme-4 .gallery figure, .theme-4 .form-card, .theme-4 .aside-card, .theme-4 .org-node:not(.org-lead), .theme-4 .empty {
  background: var(--tile); border-color: transparent;
}
.theme-4 a.card:hover, .theme-4 .article-list a:hover { transform: none; border-color: transparent; box-shadow: var(--shadow); }
.theme-4 .card .icon { border-radius: 50%; background: var(--mint); }
.theme-4 .section.white .card .icon, .theme-4 .session .date-tile { background: #FFFFFF; }
.theme-4 .section:not(.white) .session .date-tile { background: var(--canvas); }
.theme-4 .on-dark .session .date-tile { background: rgba(123,211,137,.14); }
.theme-4 .pillar, .theme-4 .person, .theme-4 .gallery figure { border-radius: var(--r-lg); }
.theme-4 .pillar .num { color: var(--forest-700); }
.theme-4 .pillar .badge { align-self: flex-start; }
.theme-4 .fact { border-radius: var(--r); text-align: center; padding: 32px 24px; }
.theme-4 .fact b { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.03em; }
.theme-4 .logo-wall li { background: #FFFFFF; border-color: transparent; border-radius: 18px; }
.theme-4 .section.white .logo-wall li { border-color: var(--line); }
.theme-4 .people-strip .ph, .theme-4 .split .ph, .theme-4 .video-grid .thumb { border-radius: var(--r-lg); }
.theme-4 .session { border-radius: var(--r-lg); padding: 26px 30px; }
.theme-4 .session.closed { background: var(--tile); opacity: .82; }
.theme-4 .badge { border-radius: 12px; }
.theme-4 .badge.closed { background: #E8E8ED; color: #3A3A3C; border-color: #C7C7CC; }
.theme-4 .note { border-left: 0; border-radius: var(--r); background: var(--mint); padding: 24px 28px; }
.theme-4 .article-list .go { border-width: 1.5px; }
.theme-4 .values li { border-color: transparent; background: var(--tile); }
.theme-4 .contact-options a { background: var(--tile); border-color: transparent; color: var(--forest-900); }
.theme-4 .contact-options a:hover { background: var(--tile); box-shadow: var(--shadow); transform: none; color: var(--forest-900); }
.theme-4 .contact-options .primary a, .theme-4 .contact-options .primary a:hover { background: var(--forest-700); color: #FFFFFF; }
.theme-4 .contact-options .primary a span { color: #DDEDE3; }
.theme-4 .contact-options .primary svg { color: #FFFFFF; }
.theme-4 .on-dark .contact-options a { color: #FFFFFF; }

/* Row lists and tables sit inside one tile */
.theme-4 .cred-list, .theme-4 .profile-list, .theme-4 .table-scroll { padding: 6px clamp(20px, 3vw, 36px); background: var(--tile); border-top: 0; border-radius: var(--r-lg); }
.theme-4 .cred-list li:last-child, .theme-4 .profile-list > div:last-child, .theme-4 .events-table tbody tr:last-child th, .theme-4 .events-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .theme-4 .events-table tbody tr:last-child { border-bottom: 0; } }

/* Closing bands become one centred tile */
.theme-4 .callout-band { flex-direction: column; justify-content: center; text-align: center; }
.theme-4 .callout-band h2, .theme-4 .callout-band p { margin-inline: auto; }
.theme-4 .callout-band .btn-row { justify-content: center; }
.theme-4 .section:not(.on-dark) > .callout-band { width: calc(100% - var(--gutter) * 2); max-width: var(--max); padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); background: var(--tile); border-radius: var(--r-lg); }

/* ---------- Forms ---------- */
.theme-4 .field input, .theme-4 .field select, .theme-4 .field textarea, .theme-4 .choice { border-width: 1.5px; border-color: #86868B; border-radius: 14px; }
.theme-4 .field input:focus, .theme-4 .field select:focus, .theme-4 .field textarea:focus { border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(1,103,55,.22); }
.theme-4 .field.invalid input, .theme-4 .field.invalid select, .theme-4 .field.invalid textarea { border-color: var(--error); }
.theme-4 .choice:has(input:checked) { border-color: var(--forest-700); background: var(--mint-2); }
.theme-4 .selection { border-width: 0; background: var(--mint); }

/* ---------- Footer: light-grey directory ---------- */
.theme-4 .site-footer { background: var(--canvas); color: var(--muted); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); }
.theme-4 .site-footer a:not(.btn) { color: #333336; }
.theme-4 .site-footer a:not(.btn):hover { color: var(--forest-700); }
.theme-4 .site-footer :focus-visible { outline-color: var(--forest-700); }
.theme-4 .footer-top h2 { color: var(--ink); }
.theme-4 .footer-top li[style] { color: var(--muted) !important; }
.theme-4 .footer-brand > img { height: 72px; }
.theme-4 .footer-brand p, .theme-4 .footer-related, .theme-4 .footer-bottom { color: var(--muted); }
.theme-4 .footer-bottom { border-top-color: var(--line); }

/* ---------- Staging bar and design switcher ---------- */
.theme-4 .staging-bar, .theme-4 #design-switcher { border-color: var(--line); box-shadow: 0 12px 32px -14px rgba(0,0,0,.35); }
.theme-4 #design-switcher a:hover { background: var(--canvas); }

/* ---------- Page loader: white sheet, hairline pulse, no glow ---------- */
.theme-4 #page-loader {
  --loader-bg: #FFFFFF;
  --loader-line: #016737;
  --loader-dot: #00A131;
  --loader-track: #E3E3E8;
  box-shadow: none;
}
.theme-4 #page-loader::after { display: none; }
.theme-4 .loader-stage { width: min(400px, 80vw); gap: 8px; }
.theme-4 .loader-pulse { filter: none; }
.theme-4 .pulse-line { stroke-width: 1.8; }
.theme-4 .pulse-dot { stroke-width: 7; }
.theme-4 .pulse-halo { display: none; }

/* ---------- Landing page pieces ---------- */
.theme-4 .d4-sub { margin: 12px 0 0; font-size: var(--fs-small); color: #C9DBD0; }
.theme-4 .d4-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; background: var(--tile); border-radius: var(--r-lg); }
.theme-4 .d4-feature > div:first-child { align-self: center; padding: clamp(32px, 5vw, 80px); }
.theme-4 .d4-feature .ph { position: relative; min-height: 420px; overflow: hidden; background: var(--mint); }
.theme-4 .d4-feature .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-4 .d4-feature .ph.tall img { object-position: center 20%; }
@media (max-width: 900px) {
  .theme-4 .d4-feature { grid-template-columns: 1fr; }
  .theme-4 .d4-feature .ph { min-height: 0; aspect-ratio: 4 / 3; }
  .theme-4 .d4-feature .ph.tall { aspect-ratio: 1; }
}
.theme-4 .d4-statement { display: flex; flex-direction: column; align-items: center; padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px); background: var(--tile); border-radius: var(--r-lg); text-align: center; }
.theme-4 .d4-statement.on-dark { background: var(--forest-900); }
.theme-4 .d4-statement .icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--mint); color: var(--forest-700); }
.theme-4 .d4-statement.on-dark .icon { background: rgba(123,211,137,.16); color: var(--fresh); }
.theme-4 .d4-statement .icon svg { width: 30px; height: 30px; }
.theme-4 .d4-statement h2 { max-width: 26ch; line-height: 1.3; letter-spacing: -0.016em; }
.theme-4 .d4-points .card { align-items: center; text-align: center; }
.theme-4 .btn-row.d4-centre { justify-content: center; }
.theme-4 .d4-rail-videos > li { width: clamp(min(300px, 80vw), 32%, 420px); }
.theme-4 .d4-rail-videos .thumb { border-radius: var(--r); }
/* Topic, title and summary stack in the first column; the round arrow takes the second. */
.theme-4 .article-list a > * { grid-column: 1; }
.theme-4 .article-list a > .go { grid-column: 2; grid-row: 1 / span 3; }
/* Session rows and meta lists inside the narrower article column */
.theme-4 .prose .sessions, .theme-4 .prose .meta { max-width: none; margin-bottom: 0; padding-left: 0; }
.theme-4 .prose .meta li, .theme-4 .prose .sessions > li { margin-bottom: 0; }
.theme-4 .prose .session { grid-template-columns: auto minmax(0, 1fr); }
.theme-4 .prose .session > .btn, .theme-4 .prose .session > .badge { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 860px) { .theme-4 .prose .session { grid-template-columns: 1fr; } .theme-4 .prose .session > .btn { justify-self: stretch; } }
.theme-4 .gallery-download { display: inline-flex; }
.theme-4 .error-summary[hidden] + .form-section-title { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Inner pages: shelves, compare grid, feature bands. Lists leave the wrap so rails reach the page edge. ---------- */
.theme-4 .d4i-fine { margin-top: clamp(24px, 3vw, 40px); }
.theme-4 .d4i-intro { max-width: 46rem; margin: 0 auto clamp(24px, 3vw, 40px); text-align: center; }
.theme-4 .d4-rail + .d4-foot .small { margin: 0; }

/* Course compare: one column per course, rows lined up across columns by subgrid */
.theme-4 .d4i-compare { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(264px, 23%, 320px); grid-template-rows: repeat(6, auto); gap: 0 clamp(24px, 3vw, 40px); }
.theme-4 .d4i-model { display: grid; grid-row: span 6; grid-template-rows: subgrid; justify-items: center; text-align: center; }
.theme-4 .d4i-model-name { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; }
.theme-4 .d4i-model-name .badge { background: #FFFFFF; border-color: #BFD8C8; }
.theme-4 .d4i-model-name h3 a { color: var(--forest-900); text-decoration: none; }
.theme-4 .d4i-model-name h3 a:hover { color: var(--forest-700); text-decoration: underline; text-decoration-thickness: 1.5px; }
.theme-4 .d4i-model-sum { margin: 10px 0 22px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.theme-4 .d4i-specs { display: grid; grid-row: span 3; grid-template-rows: subgrid; width: 100%; margin: 0; }
.theme-4 .d4i-specs > div { padding: 16px 0; border-top: 1px solid var(--line); }
.theme-4 .d4i-specs dt { font-size: var(--fs-small); color: var(--muted); }
.theme-4 .d4i-specs dd { margin: 2px 0 0; line-height: 1.35; }
.theme-4 .d4i-specs dd b { display: block; font-weight: 600; color: var(--forest-900); }
.theme-4 .d4i-specs dd span { display: block; font-size: var(--fs-small); color: var(--muted); }
.theme-4 .d4i-model-act { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding-top: 22px; border-top: 1px solid var(--line); }
.theme-4 .d4i-model-act .btn { width: 100%; padding-inline: 14px; }
@media (max-width: 760px) {
  /* Nine columns are too many to compare on a phone, so each course becomes its own card. */
  .theme-4 .d4i-compare { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); gap: 16px; overflow: visible; scroll-snap-type: none; }
  .theme-4 .d4i-model { display: block; grid-row: auto; padding: 26px 0 24px; overflow: hidden; background: #FFFFFF; border-radius: var(--r-lg); text-align: left; }
  .theme-4 .d4i-model-name, .theme-4 .d4i-model-sum, .theme-4 .d4i-specs, .theme-4 .d4i-model-act { width: auto; margin-inline: 22px; }
  .theme-4 .d4i-model-name { align-items: flex-start; }
  .theme-4 .d4i-specs { display: block; }
  .theme-4 .d4i-specs > div { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .theme-4 .d4i-specs dd { margin: 0; }
}

/* Course shelf on the training page */
.theme-4 .d4i-rail-courses > li { display: flex; width: clamp(min(300px, 84vw), 30%, 400px); }
.theme-4 .d4i-rail-courses .pillar { width: 100%; }
.theme-4 .d4i-rail-courses .pillar .ph { aspect-ratio: 4 / 3; }

/* Detail pages: one centred band per topic */
.theme-4 .d4i-band > .wrap > h2 { max-width: 24ch; margin: 0 auto clamp(24px, 3vw, 40px); text-align: center; }
.theme-4 .d4i-flow { display: flex; flex-direction: column; align-items: center; text-align: center; }
.theme-4 .d4i-flow > p { max-width: 46rem; margin: 0 0 1em; }
.theme-4 .d4i-flow > :last-child { margin-bottom: 0; }
.theme-4 .d4i-flow > .ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1040px; margin: 8px 0 0; padding: 0; text-align: left; }
.theme-4 .d4i-flow > .ticks li { margin: 0; padding: 22px 24px 22px 60px; background: var(--tile); border-radius: var(--r); }
.theme-4 .d4i-flow > .ticks li::before { left: 24px; top: calc(22px + .38em); background-color: var(--mint); }
.theme-4 .d4i-flow > .ticks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.theme-4 .d4i-flow > .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; width: 100%; max-width: none; margin: 8px 0 0; padding: 0; text-align: left; }
.theme-4 .d4i-flow > .steps li { min-height: 0; margin: 0; padding: 88px 24px 26px; background: var(--tile); border-radius: var(--r); }
.theme-4 .d4i-flow > .steps li::before { left: 24px; top: 24px; }
.theme-4 .d4i-flow > .note { max-width: 46rem; margin: 28px 0 0; text-align: left; }
.theme-4 .d4i-flow > .grid { width: 100%; }
.theme-4 .d4i-flow > .grid .card { align-items: center; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-lg); text-align: center; }
.theme-4 .d4i-flow > .grid .card h3 { font-size: var(--fs-h2); letter-spacing: -0.026em; }
.theme-4 .d4i-flow > .grid .card .link-arrow { margin-top: 8px; }
@media (max-width: 760px) { .theme-4 .d4i-flow > .ticks { grid-template-columns: minmax(0, 1fr); } }

/* Pill row that replaces the sticky sidebar */
.theme-4 .d4i-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; max-width: 60rem; margin-inline: auto; text-align: center; }
.theme-4 .d4i-cta > h2, .theme-4 .d4i-cta > p, .theme-4 .d4i-cta > .note { flex: 0 0 100%; margin: 0; }
.theme-4 .d4i-cta > p { margin-bottom: 14px; color: var(--muted); }
.theme-4 .d4i-cta hr { display: none; }
.theme-4 .d4i-cta .direct { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; }
.theme-4 .d4i-cta .direct a { min-height: 52px; padding: 12px 24px; background: var(--tile); border-radius: 999px; color: var(--forest-900); font-weight: 600; text-decoration: none; }
.theme-4 .d4i-cta .direct a:hover { color: var(--forest-700); text-decoration: underline; text-decoration-thickness: 1.5px; }
.theme-4 .d4i-talk .d4i-cta { max-width: none; padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 88px); background: var(--mint); border-radius: var(--r-lg); --tile: #FFFFFF; }
.theme-4 .d4i-talk .d4i-cta > p { padding-inline: max(0px, calc((100% - 44rem) / 2)); }
.theme-4 .d4i-dates + .d4i-cta { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 560px) { .theme-4 .d4i-cta > .btn, .theme-4 .d4i-cta .direct, .theme-4 .d4i-cta .direct li, .theme-4 .d4i-cta .direct a { width: 100%; justify-content: center; } }

/* Course page: spec row, two reading tiles, date cards */
@media (min-width: 1101px) { .theme-4 .d4i-glance { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.theme-4 .d4i-glance b { margin: 8px 0 0; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.016em; color: var(--forest-900); }
.theme-4 .d4i-band .d4-claims { justify-content: center; margin: 24px 0 0; }
.theme-4 .d4i-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.theme-4 .d4i-tile { padding: clamp(28px, 4vw, 56px); background: var(--tile); border-radius: var(--r-lg); }
.theme-4 .d4i-tile h2 { margin-bottom: 22px; }
.theme-4 .d4i-tile .ticks { gap: 14px; }
@media (max-width: 860px) { .theme-4 .d4i-duo { grid-template-columns: minmax(0, 1fr); } }
.theme-4 .d4i-dates { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.theme-4 .d4i-dates .session { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: min(100%, 420px); padding: clamp(24px, 2.6vw, 36px); }
.theme-4 .d4i-dates .date-tile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 18px; padding: 0; background: none; text-align: left; }
.theme-4 .d4i-dates .date-tile b { display: inline; font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.03em; }
.theme-4 .d4i-dates .date-tile span { display: inline; margin: 0; }
.theme-4 .d4i-dates .session h3 { font-size: var(--fs-h3); }
.theme-4 .d4i-dates .meta { flex-direction: column; gap: 8px; margin: 8px 0 26px; }
.theme-4 .d4i-dates .meta li { align-items: flex-start; }
.theme-4 .d4i-dates .session > .btn, .theme-4 .d4i-dates .session > .badge { margin-top: auto; }
.theme-4 .d4i-dates .empty { width: min(100%, 760px); padding: clamp(28px, 4vw, 56px); border: 0; border-radius: var(--r-lg); text-align: center; }
.theme-4 .d4i-dates .empty .btn-row { justify-content: center; margin-top: 20px; }
@media (max-width: 560px) { .theme-4 .d4i-dates .session > .btn { width: 100%; padding-inline: 14px; } }

/* Text-only shelves: in-house topics, articles, milestones */
.theme-4 .d4i-rail-topics > li { display: flex; align-items: flex-end; width: clamp(min(280px, 80vw), 26%, 340px); min-height: 230px; padding: 28px; background: var(--tile); border-radius: var(--r-lg); }
.theme-4 .d4i-rail-articles > li { display: flex; width: clamp(min(320px, 84vw), 31.5%, 420px); }
.theme-4 .d4i-rail-articles a { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 400px; padding: clamp(28px, 3vw, 40px); background: var(--tile); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
.theme-4 .d4i-rail-articles .topic { font-size: var(--fs-small); font-weight: 600; color: var(--forest-700); }
.theme-4 .d4i-rail-articles h3 { margin: 14px 0; font-size: var(--fs-h3); line-height: 1.22; }
.theme-4 .d4i-rail-articles p { margin: 0 0 24px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.theme-4 .d4i-rail-articles .go { display: grid; place-items: center; width: 52px; height: 52px; margin-top: auto; border-radius: 50%; background: var(--canvas); color: var(--forest-700); }
.theme-4 .d4i-rail-articles .go svg { width: 20px; height: 20px; }
.theme-4 .d4i-rail-articles a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
/* The guide is the one article hosted on this site, so it takes the forest tile. */
.theme-4 .d4i-rail-articles > li:first-child a { background: var(--forest-900); color: #FFFFFF; outline-color: var(--forest-700); }
.theme-4 .d4i-rail-articles > li:first-child h3 { color: #FFFFFF; }
.theme-4 .d4i-rail-articles > li:first-child .topic { color: var(--fresh); }
.theme-4 .d4i-rail-articles > li:first-child p { color: #D5E4DB; }
.theme-4 .d4i-rail-articles > li:first-child .go { background: rgba(123,211,137,.16); color: var(--fresh); }
.theme-4 .d4i-rail-years > li { display: flex; flex-direction: column; gap: 14px; width: clamp(min(270px, 78vw), 23.5%, 330px); padding: clamp(24px, 2.4vw, 32px); background: var(--tile); border-radius: var(--r-lg); }
.theme-4 .d4i-rail-years .yr { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--forest-700); }
.theme-4 .d4i-rail-years strong { display: block; font-weight: 600; line-height: 1.35; color: var(--forest-900); }
.theme-4 .d4i-rail-years div span { display: block; margin-top: 8px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }

/* Videos, events and gallery shelves */
.theme-4 .d4i-rail-videos > li { width: clamp(min(320px, 84vw), 46%, 620px); }
.theme-4 .d4i-rail-videos .thumb { border-radius: var(--r-lg); }
.theme-4 .d4i-rail-videos h3 { font-size: var(--fs-h3); }
.theme-4 .d4i-rail-events > li { display: flex; flex-direction: column; width: clamp(min(320px, 84vw), 31.5%, 420px); overflow: hidden; background: var(--tile); border-radius: var(--r-lg); }
.theme-4 .d4i-event-body { padding: clamp(24px, 2.6vw, 36px); }
.theme-4 .d4i-kv { margin: 18px 0 0; font-size: var(--fs-small); }
.theme-4 .d4i-kv > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.theme-4 .d4i-kv dt { color: var(--muted); }
.theme-4 .d4i-kv dd { margin: 0; color: var(--ink); }
.theme-4 .d4i-rail-gallery > li { width: clamp(min(320px, 86vw), 56%, 760px); }
.theme-4 .d4i-rail-gallery figure { margin: 0; }
.theme-4 .d4i-rail-gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); background: var(--mint); }
.theme-4 .d4i-rail-gallery figcaption { padding: 18px 4px 8px; font-weight: 600; line-height: 1.35; color: var(--forest-900); }
.theme-4 .d4i-rail-gallery figcaption span { display: block; margin-top: 4px; font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.theme-4 .d4i-rail-gallery .gallery-download { margin: 0 4px; min-height: 44px; align-items: center; }

/* Team: organisation chart as name chips, then portraits with the name underneath */
.theme-4 .org-chart { gap: 14px; }
.theme-4 .org-lead::after, .theme-4 .org-row li::before, .theme-4 .org-row li::after { display: none; }
.theme-4 .org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.theme-4 .org-node { height: auto; padding: 14px 26px; border-radius: 28px; text-align: center; }
.theme-4 .org-node:hover strong { text-decoration: underline; text-decoration-thickness: 1.5px; }
.theme-4 .org-lead { width: auto; padding: 16px 40px; }
.theme-4 .d4i-portraits { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(40px, 5vw, 72px) 24px; padding: 0; }
.theme-4 .d4i-portrait { width: calc((100% - 48px) / 3); text-align: center; }
.theme-4 .d4i-portrait .ph { aspect-ratio: 4 / 5; margin-bottom: 22px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #F2F4F3, #E1E7E3); }
.theme-4 .d4i-portrait img, .theme-4 .d4i-founder .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.theme-4 .d4i-portraits .role { margin: 4px 0 10px; font-size: var(--fs-small); font-weight: 600; color: var(--forest-700); }
.theme-4 .d4i-portrait p:not(.role) { max-width: 36ch; margin-inline: auto; font-size: var(--fs-small); color: var(--muted); }
.theme-4 .d4i-founder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); width: 100%; overflow: hidden; border-radius: var(--r-lg); }
.theme-4 .d4i-founder .ph { order: 1; position: relative; min-height: 500px; background: #16412F; }
.theme-4 .d4i-founder .ph img { position: absolute; inset: 0; }
.theme-4 .d4i-founder .body { align-self: center; padding: clamp(32px, 5vw, 80px); }
.theme-4 .d4i-founder h3 { font-size: var(--fs-h2); letter-spacing: -0.026em; color: #FFFFFF; }
.theme-4 .d4i-founder .role { color: var(--fresh); }
.theme-4 .d4i-founder .body > p:not(.role):not(.eyebrow) { margin-top: 14px; color: #D5E4DB; }
@media (max-width: 1000px) { .theme-4 .d4i-portrait { width: calc((100% - 24px) / 2); } }
@media (max-width: 860px) {
  .theme-4 .d4i-founder { grid-template-columns: minmax(0, 1fr); }
  .theme-4 .d4i-founder .ph { order: 0; min-height: 0; aspect-ratio: 1; }
}
@media (max-width: 620px) { .theme-4 .d4i-portrait { width: 100%; } }

/* Founder profile: portrait first, then one reading column */
.theme-4 .d4i-profile { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 56px); }
.theme-4 .d4i-profile .founder-fig { order: -1; width: min(100%, 460px); margin: 0; text-align: center; }
.theme-4 .d4i-profile .ph { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--canvas); }
.theme-4 .d4i-profile .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.theme-4 .d4i-profile figcaption { margin-top: 22px; }
.theme-4 .d4i-profile .prose { max-width: 46rem; }
.theme-4 .d4i-profile .prose > .eyebrow, .theme-4 .d4i-profile .prose > h2 { text-align: center; }
.theme-4 .d4i-profile .prose > h2 { margin: 0 0 28px; font-size: var(--fs-h2); }

/* Credentials: logo shelves in two rows, one card per credential holder */
.theme-4 .d4i-rail-logos { display: grid; grid-template-rows: repeat(2, 112px); grid-auto-flow: column; grid-auto-columns: 196px; gap: 16px; }
.theme-4 .d4i-rail-logos > li { display: grid; place-items: center; padding: 18px 24px; background: #FFFFFF; border: 1px solid transparent; border-radius: 18px; }
.theme-4 .section.white .d4i-rail-logos > li { border-color: var(--line); }
.theme-4 .d4i-rail-logos img { width: auto; max-width: 100%; max-height: 60px; object-fit: contain; }
@media (max-width: 560px) { .theme-4 .d4i-rail-logos { grid-template-rows: repeat(2, 96px); grid-auto-columns: 156px; gap: 12px; } }
.theme-4 .d4i-rail-holders > li { width: clamp(min(320px, 84vw), 31.5%, 420px); padding: clamp(24px, 2.6vw, 36px); background: var(--tile); border-radius: var(--r-lg); }
.theme-4 .d4i-holder-id { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.theme-4 .d4i-holder-id span { display: block; font-size: var(--fs-small); color: var(--muted); }
.theme-4 .d4i-holder ul { list-style: none; margin: 0; padding: 0; }
.theme-4 .d4i-holder ul li { padding: 14px 0; border-top: 1px solid var(--line); }
.theme-4 .d4i-holder ul strong { display: block; font-weight: 600; line-height: 1.35; color: var(--forest-900); }
.theme-4 .d4i-holder ul span { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--muted); }
.theme-4 .d4i-sectors .card { align-items: center; text-align: center; }

/* Forms: one centred sheet, contact options in a row underneath */
.theme-4 .form-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: calc(900px + var(--gutter) * 2); }
.theme-4 .form-layout h2#msg-title { text-align: center; }
.theme-4 .form-card { padding: clamp(24px, 5vw, 64px); border-radius: var(--r-lg); }
.theme-4 .form-section-title { font-size: var(--fs-h2); text-align: center; padding-top: 36px; margin-top: 12px; }
.theme-4 .choice { border-radius: 999px; }
.theme-4 .form-actions .btn { width: 100%; }
.theme-4 .side-help { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
/* The shared markup spaces these cards with an inline margin; the grid gap replaces it. */
.theme-4 .side-help .card { margin: 0 !important; border-radius: var(--r-lg); }
/* Visually hidden link text is absolutely placed; anchoring it to its card keeps it inside the rail's scroll box. */
.theme-4 .d4-rail > li { position: relative; }
/* Feature tiles whose photo comes first: the padding belongs to the text column, not the photo. */
.theme-4 .d4-feature > .ph:first-child { padding: 0; }
.theme-4 .d4-feature > .ph + div { align-self: center; padding: clamp(32px, 5vw, 80px); }
.theme-4 .d4i-profile figcaption img { margin-inline: auto; }
/* Text-only compare columns: a top rule marks each column, green where a date is open. */
.theme-4 .d4i-model { padding-top: 26px; border-top: 3px solid var(--line); }
.theme-4 .d4i-model.has-date { border-top-color: var(--forest-700); }
@media (max-width: 760px) { .theme-4 .d4i-model { border-top-width: 0; } }
/* Portraits are 4:5 files with the head near the top edge, so every frame is 4:5 and anchored to the top. */
.theme-4 .d4-person img, .theme-4 .d4i-portrait img, .theme-4 .d4i-founder .ph img, .theme-4 .d4i-profile .ph img { object-position: 50% 0; }
.theme-4 .d4i-founder { grid-template-columns: minmax(0, 1fr) min(40%, 440px); }
.theme-4 .d4i-founder .ph { align-self: end; min-height: 0; aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .theme-4 .d4i-founder { grid-template-columns: minmax(0, 1fr); }
  .theme-4 .d4i-founder .ph { aspect-ratio: 4 / 5; }
}
