/*
  Albert Lab static prototype v43
  Self-contained CSS: no external frameworks, no CDN dependencies.
  Font stack prefers Nunito Sans if available, then modern system UI fonts.
*/

@font-face {
  font-family: "Nunito Sans";
  src: local("Nunito Sans"), url("../fonts/NunitoSans-VariableFont_YTLC-opsz-wdth-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: local("Nunito Sans Italic"), local("NunitoSans Italic"), url("../fonts/NunitoSans-Italic-VariableFont_YTLC-opsz-wdth-wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-main: "Segoe UI", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-tech: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ink: #f4f7fb;
  --ink-strong: #ffffff;
  --muted: #b9c4d3;
  --muted-2: #8c99aa;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --shadow: 0 32px 90px rgba(0,0,0,.36);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;

  --lab-bg: #07111f;
  --lab-bg-2: #0d1726;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --surface-soft: rgba(255, 255, 255, 0.045);

  --blue: #003e6b;
  --blue-2: #005aa9;
  --green: #007878;
  --green-2: #00a879;
  --orange: #d53b0a;
  --orange-2: #ee7100;

  --branch: var(--blue);
  --branch-2: var(--blue-2);
  --branch-bg-a: #08203a;
  --branch-bg-b: #07111f;
  --header-h: 72px;
}

html.light-mode {
  color-scheme: light;
  --ink: #111827;
  --ink-strong: #030712;
  --muted: #4b5d73;
  --muted-2: #69798b;
  --line: rgba(9, 17, 29, 0.16);
  --line-strong: rgba(9, 17, 29, 0.25);
  --shadow: 0 24px 80px rgba(18, 32, 52, .16);
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.52);
}

.theme-blue { --branch: var(--blue); --branch-2: var(--blue-2); --branch-bg-a: #08203a; --branch-bg-b: #07111f; }
.theme-green { --branch: var(--green); --branch-2: var(--green-2); --branch-bg-a: #08261f; --branch-bg-b: #071610; }
.theme-orange { --branch: var(--orange); --branch-2: var(--orange-2); --branch-bg-a: #341609; --branch-bg-b: #160d08; }
html.light-mode .theme-blue { --branch-bg-a: #eef7ff; --branch-bg-b: #f9fcff; }
html.light-mode .theme-green { --branch-bg-a: #effaf3; --branch-bg-b: #fbfefc; }
html.light-mode .theme-orange { --branch-bg-a: #fff4e8; --branch-bg-b: #fffdf9; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--branch) 22%, transparent), transparent 32rem),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--branch-2) 18%, transparent), transparent 24rem),
    linear-gradient(135deg, var(--branch-bg-a), var(--branch-bg-b) 58%, #030712);
  line-height: 1.55;
}
html.light-mode body {
  background:
    radial-gradient(circle at 18% -4%, color-mix(in srgb, var(--branch) 18%, transparent), transparent 34rem),
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--branch-2) 20%, transparent), transparent 26rem),
    linear-gradient(135deg, var(--branch-bg-a), var(--branch-bg-b) 58%, #ffffff);
}

a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: color-mix(in srgb, var(--branch) 70%, white 10%); color: white; }

.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 200; background: var(--ink); color: #07111f; padding: .7rem 1rem; border-radius: 999px; }
.skip-link:focus { left: 1rem; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px); background: linear-gradient(to bottom, rgba(3,7,18,.86), rgba(3,7,18,.56)); border-bottom: 1px solid rgba(255,255,255,.08); }
html.light-mode .site-header { background: linear-gradient(to bottom, rgba(255,255,255,.88), rgba(255,255,255,.68)); border-bottom-color: rgba(9,17,29,.09); }
.header-inner { width: min(1360px, calc(100% - 40px)); margin: 0 auto; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; flex: 0 0 auto; }
.brand-logo { display: block; height: clamp(50px, 4.8vw, 62px); width: auto; max-width: min(330px, 29vw); object-fit: contain; }
.logo-light-image { display: none; }
html.light-mode .logo-dark-image { display: none; }
html.light-mode .logo-light-image { display: block; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; min-width: 0; }
.main-nav { display: flex; gap: .18rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { text-decoration: none; color: var(--muted); border: 1px solid transparent; padding: .38rem .52rem; border-radius: 999px; font-size: .84rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { color: var(--ink-strong); border-color: color-mix(in srgb, var(--branch) 42%, white 8%); background: color-mix(in srgb, var(--branch) 18%, transparent); outline: none; }
.utility-controls { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.mode-toggle, .flag-link { width: 2.08rem; height: 2.08rem; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--ink); text-decoration: none; line-height: 1; cursor: pointer; }
html.light-mode .mode-toggle, html.light-mode .flag-link { background: rgba(255,255,255,.62); }
.flag-link { font-size: 1.05rem; filter: saturate(.92); }
.mode-toggle:hover, .mode-toggle:focus-visible, .flag-link:hover, .flag-link:focus-visible { outline: 2px solid color-mix(in srgb, var(--branch) 45%, white 16%); outline-offset: 2px; }
.mobile-menu-button { display: none; }
main { min-height: 70vh; }

/* Landing page */
.landing-body { background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.09), transparent 22rem), #030712; overflow-x: hidden; }
html.light-mode .landing-body { background: radial-gradient(circle at 50% 30%, rgba(0,90,169,.10), transparent 22rem), #fbfdff; }
.landing-page { min-height: calc(100svh - var(--header-h)); position: relative; isolation: isolate; }
.branch-panels { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.branch-panel { position: relative; min-width: 0; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .75rem; padding: 2rem 1.2rem 2.45rem; transition: filter .28s ease, transform .28s ease, opacity .28s ease; border-left: 1px solid rgba(255,255,255,.08); outline: none; cursor: pointer; }
.branch-panel:first-child { border-left: 0; }
.branch-panel::before { content: ""; position: absolute; inset: 0; opacity: .92; background: linear-gradient(180deg, transparent, rgba(0,0,0,.3)); }
html.light-mode .branch-panel::before { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.02)); }
.branch-panel::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 80px); opacity: .25; mix-blend-mode: overlay; }
.branch-blue { background: radial-gradient(circle at 45% 18%, rgba(91,197,242,.55), transparent 23rem), linear-gradient(145deg, #07111f, #003e6b 64%, #005aa9 100%); }
.branch-green { background: radial-gradient(circle at 50% 18%, rgba(148,193,28,.44), transparent 24rem), linear-gradient(145deg, #071610, #007878 60%, #00a879 100%); }
.branch-orange { background: radial-gradient(circle at 55% 18%, rgba(253,195,0,.38), transparent 24rem), linear-gradient(145deg, #160d08, #d53b0a 55%, #ee7100 100%); }
html.light-mode .branch-blue { background: radial-gradient(circle at 45% 18%, rgba(91,197,242,.55), transparent 24rem), linear-gradient(145deg, #edf5fb, #003e6b 132%); }
html.light-mode .branch-green { background: radial-gradient(circle at 50% 18%, rgba(148,193,28,.42), transparent 24rem), linear-gradient(145deg, #eef8f3, #007878 124%, #00a879 142%); }
html.light-mode .branch-orange { background: radial-gradient(circle at 55% 18%, rgba(253,195,0,.42), transparent 24rem), linear-gradient(145deg, #fff4e8, #d53b0a 124%, #ee7100 142%); }
.branch-panel .branch-label { position: relative; z-index: 2; font-size: clamp(1.45rem, 3.4vw, 3.65rem); font-weight: 850; letter-spacing: -.045em; opacity: .58; transform: translateY(0); transition: opacity .25s ease, transform .25s ease; }
.branch-panel .branch-label::after { content: "↗"; font-size: .42em; margin-left: .2em; opacity: .7; vertical-align: text-top; }
html.light-mode .branch-panel .branch-label { color: rgba(3,7,18,.74); opacity: .66; }
.branch-tooltip { position: absolute; left: 50%; bottom: clamp(6.8rem, 13vh, 9.2rem); z-index: 4; width: min(25rem, calc(100% - 2rem)); transform: translate(-50%, .65rem); opacity: 0; visibility: hidden; pointer-events: none; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background: rgba(3,7,18,.68); backdrop-filter: blur(18px); box-shadow: 0 20px 56px rgba(0,0,0,.32); padding: .95rem 1rem; color: var(--ink); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
html.light-mode .branch-tooltip { background: rgba(255,255,255,.78); border-color: rgba(9,17,29,.16); box-shadow: 0 18px 44px rgba(18,32,52,.16); }
.branch-tooltip strong, .branch-tooltip small, .branch-tooltip em { display: block; }
.branch-tooltip strong { font-size: 1rem; letter-spacing: -.015em; }
.branch-tooltip small { margin-top: .25rem; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.branch-tooltip em { margin-top: .55rem; color: var(--ink-strong); font-style: normal; font-weight: 780; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
/* Desktop landing interaction: dim non-selected branches, make the hovered branch pop. */
.branch-panels:has(.branch-panel:hover) .branch-panel,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel {
  filter: brightness(.46) saturate(.56) contrast(.95);
}

.branch-panels:has(.branch-panel:hover) .branch-panel:hover,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel:focus-visible {
  filter: brightness(1.36) saturate(1.9) contrast(1.14);
  transform: scaleX(1.025);
  z-index: 2;
}

.branch-panels:has(.branch-panel:hover) .branch-panel:hover::before,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel:focus-visible::before {
  opacity: .38;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.08));
}

.branch-panels:has(.branch-panel:hover) .branch-panel:hover::after,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel:focus-visible::after {
  opacity: .42;
}

.branch-panel:hover .branch-label,
.branch-panel:focus-visible .branch-label {
  opacity: 1;
  transform: translateY(-.25rem);
  color: rgba(255,255,255,.96);
  text-shadow: 0 0 28px color-mix(in srgb, var(--branch-2) 72%, transparent), 0 4px 18px rgba(0,0,0,.42);
}

html.light-mode .branch-panel:hover .branch-label,
html.light-mode .branch-panel:focus-visible .branch-label {
  color: rgba(3,7,18,.94);
  text-shadow: 0 0 24px rgba(255,255,255,.70);
}

/* On desktop, the branch explanation is shown in the central overlay instead of behind it. */
.branch-tooltip { display: none; }

.landing-center { position: relative; z-index: 3; min-height: calc(100svh - var(--header-h)); display: grid; place-items: start center; pointer-events: none; padding: clamp(1.25rem, 4.6vh, 4.8rem) 1rem 1rem; }
.landing-card { width: min(1220px, calc(100vw - 96px)); text-align: center; border: 1px solid rgba(255,255,255,.18); background: rgba(3,7,18,.58); backdrop-filter: blur(22px); border-radius: 32px; padding: clamp(1.05rem, 2.25vw, 1.85rem); box-shadow: var(--shadow); pointer-events: auto; }
html.light-mode .landing-card { border-color: rgba(9,17,29,.13); background: rgba(255,255,255,.68); }
.landing-logo-lockup { display: grid; justify-items: center; gap: .32rem; margin: 0 auto .35rem; }
.landing-logo { width: clamp(420px, 34vw, 680px); max-height: clamp(128px, 18vh, 210px); object-fit: contain; }
.eyebrow { margin: .4rem 0 .75rem; color: var(--muted); font-family: var(--font-tech); text-transform: uppercase; font-size: .75rem; letter-spacing: .16em; }
.landing-card h1, .hero h1 { margin: 0; line-height: .96; letter-spacing: -.072em; font-size: clamp(2.75rem, 4.65vw, 5.15rem); }
.landing-card .tagline { margin: .75rem auto 0; max-width: 76ch; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.12rem); }
.landing-help { width: min(920px, 100%); min-height: 1.35lh; margin: .85rem auto 0; color: var(--ink); font-weight: 650; font-size: clamp(.98rem, 1.35vw, 1.08rem); line-height: 1.35; transition: color .2s ease, border-color .2s ease, background .2s ease; border: 1px solid color-mix(in srgb, var(--branch) 36%, white 12%); background: color-mix(in srgb, var(--branch) 20%, rgba(3,7,18,.44)); border-radius: 999px; padding: .58rem .95rem; overflow-wrap: anywhere; }
html.light-mode .landing-help { background: color-mix(in srgb, var(--branch) 12%, rgba(255,255,255,.76)); border-color: color-mix(in srgb, var(--branch) 32%, rgba(9,17,29,.12)); }
.branch-quicklinks { display: none; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: .85rem; }
.branch-quicklinks a, .button { text-decoration: none; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: 999px; padding: .62rem .9rem; color: var(--ink); font-weight: 760; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
html.light-mode .branch-quicklinks a, html.light-mode .button { border-color: rgba(9,17,29,.15); background: rgba(255,255,255,.64); }
.branch-quicklinks a:hover, .branch-quicklinks a:focus-visible, .button:hover, .button:focus-visible { background: rgba(255,255,255,.15); outline: 2px solid rgba(255,255,255,.38); outline-offset: 2px; }
html.light-mode .branch-quicklinks a:hover, html.light-mode .branch-quicklinks a:focus-visible, html.light-mode .button:hover, html.light-mode .button:focus-visible { background: rgba(255,255,255,.95); outline-color: color-mix(in srgb, var(--branch) 42%, transparent); }
.button-primary { background: linear-gradient(135deg, var(--branch), var(--branch-2)); color: white; border-color: transparent; }
.button-secondary { color: var(--muted); }

/* Interior pages */
.page-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 7rem); }
.hero p.lead { margin: 1.3rem 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 66ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.visual-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045)); border-radius: var(--radius-lg); padding: 1.15rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
html.light-mode .visual-card { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.58)); }
.visual-card::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--branch) 35%, transparent), transparent 26rem); opacity: .56; }
.visual-card > * { position: relative; z-index: 1; }
.oscilloscope { min-height: 320px; border-radius: 24px; background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 42px 42px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 42px 42px, rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; overflow: hidden; }
html.light-mode .oscilloscope { background: linear-gradient(rgba(9,17,29,.06) 1px, transparent 1px) 0 0 / 42px 42px, linear-gradient(90deg, rgba(9,17,29,.06) 1px, transparent 1px) 0 0 / 42px 42px, rgba(255,255,255,.52); border-color: rgba(9,17,29,.12); }
.oscilloscope svg { width: 100%; height: auto; overflow: visible; }
.oscilloscope .trace { fill: none; stroke: var(--branch-2); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--branch-2) 55%, transparent)); }
.oscilloscope .antenna { fill: none; stroke: rgba(255,255,255,.76); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
html.light-mode .oscilloscope .antenna { stroke: rgba(9,17,29,.66); }
.section { padding: clamp(2.6rem, 7vw, 5.5rem) 0; }
.section-head { display: flex; justify-content: space-between; gap: 1.2rem; align-items: end; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 4rem); letter-spacing: -.055em; line-height: 1; }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045)); border-radius: var(--radius-md); padding: 1.2rem; min-height: 210px; position: relative; overflow: hidden; }
html.light-mode .card { background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.62)); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--branch), transparent); opacity: .9; }
.card h3 { margin: 0 0 .55rem; font-size: 1.18rem; letter-spacing: -.015em; }
.card p { margin: .45rem 0 0; color: var(--muted); }
.card .meta { font-family: var(--font-tech); color: var(--branch-2); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem; }
.card.compact { min-height: auto; }
.callout { border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.4rem); border: 1px solid color-mix(in srgb, var(--branch) 45%, white 10%); background: radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--branch) 28%, transparent), transparent 20rem), linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.045)); box-shadow: var(--shadow); }
.site-footer { border-top: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.2); margin-top: 3rem; }
html.light-mode .site-footer { border-top-color: rgba(9,17,29,.09); background: rgba(255,255,255,.55); }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 2.2rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; color: var(--muted); font-size: .92rem; }
.footer-inner strong { color: var(--ink); }
.footer-links { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 1280px) {
  .brand-logo { height: 48px; max-width: 245px; }
  .main-nav a { padding: .35rem .43rem; font-size: .80rem; }
  .header-inner { width: min(1360px, calc(100% - 28px)); }
}
@media (max-width: 1120px) {
  .brand-logo { max-width: 215px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 46px; max-width: 230px; }
  .landing-center { padding-top: clamp(.65rem, 2.4vh, 1.45rem); }
  .landing-card { width: min(1220px, calc(100vw - 80px)); padding: .85rem 1.7rem; }
  .landing-logo { width: clamp(360px, 32vw, 560px); max-height: 150px; }
  .landing-card h1 { font-size: clamp(2.45rem, 4.1vw, 4.45rem); }
  .landing-card .tagline { font-size: .96rem; margin-top: .55rem; }
  .landing-help { margin: .55rem auto 0; padding: .46rem .85rem; font-size: .92rem; }
  .branch-panel { padding-bottom: 1.7rem; }
  .branch-tooltip { bottom: 5.2rem; }
}
@media (max-width: 980px) {
  .branch-tooltip { display: block; }

  :root { --header-h: 64px; }
  .header-inner { min-height: var(--header-h); }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--ink); border-radius: 999px; padding: .48rem .7rem; }
  .main-nav { position: fixed; inset: var(--header-h) 20px auto 20px; display: none; grid-template-columns: 1fr 1fr; background: rgba(3,7,18,.94); border: 1px solid var(--line); border-radius: 22px; padding: .8rem; box-shadow: var(--shadow); }
  html.light-mode .main-nav { background: rgba(255,255,255,.96); }
  .main-nav.open { display: grid; }
  .main-nav a { text-align: center; font-size: .9rem; }
  .brand-logo { height: 42px; max-width: 190px; }
  .branch-panels { position: relative; min-height: auto; grid-template-columns: 1fr; }
  .branch-panel { min-height: 8.5rem; align-items: center; padding: 1.2rem; }
  .branch-panel .branch-label { font-size: clamp(2rem, 11vw, 4rem); }
  .branch-tooltip { position: relative; left: auto; bottom: auto; width: min(34rem, 100%); transform: none; opacity: 1; visibility: visible; margin: 0 auto; }
  .branch-panel:hover .branch-tooltip, .branch-panel:focus-visible .branch-tooltip { transform: none; }
  .landing-page { display: flex; flex-direction: column-reverse; min-height: auto; }
  .landing-center { min-height: auto; padding: 1.4rem 1rem; }
  .landing-card { width: min(100%, 760px); }
  .landing-card h1 { font-size: clamp(2.45rem, 11vw, 4.6rem); }
  .landing-logo { width: min(520px, 82vw); max-height: 160px; }
  .hero-grid, .card-grid, .card-grid.two, .footer-inner { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: .8rem; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .header-inner { width: calc(100% - 24px); gap: .55rem; }
  .header-actions { gap: .4rem; }
  .brand-logo { height: 36px; max-width: 150px; }
  .mode-toggle, .flag-link { width: 1.9rem; height: 1.9rem; }
  .utility-controls { gap: .25rem; }
  html.light-mode .landing-help { background: color-mix(in srgb, var(--branch) 12%, rgba(255,255,255,.76)); border-color: color-mix(in srgb, var(--branch) 32%, rgba(9,17,29,.12)); }
.branch-quicklinks { grid-template-columns: 1fr; }
  .landing-card { border-radius: 24px; padding: 1.2rem; }
  .site-shell { width: min(100% - 24px, 1180px); }
}


h1, h2, .hero h1, .landing-card h1, .section-head h2 {
  font-weight: 320;
}

p, li, .hero p.lead, .landing-card .tagline, .card p {
  font-weight: 320;
}

.main-nav a,
.button,
.branch-tooltip strong,
.card h3,
.landing-help,
.callout strong,
.section .meta {
  font-weight: 650;
}

.eyebrow,
.card .meta,
.footer-inner,
.brand-note {
  font-weight: 420;
}

.branch-panel .branch-label {
  font-weight: 760;
}



/* v11 hover-state fallback controlled by JavaScript; also avoids :has specificity issues. */
.branch-panels.is-hovering .branch-panel {
  filter: brightness(.48) saturate(.58) contrast(.98);
}
.branch-panels.is-hovering .branch-panel.is-active,
.branch-panels.is-hovering .branch-panel:focus-visible {
  filter: brightness(1.34) saturate(1.9) contrast(1.12);
  transform: scaleX(1.025);
  z-index: 2;
}
.branch-panels.is-hovering .branch-panel.is-active::before,
.branch-panels.is-hovering .branch-panel:focus-visible::before {
  opacity: .38;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
}
.branch-panels.is-hovering .branch-panel.is-active::after,
.branch-panels.is-hovering .branch-panel:focus-visible::after {
  opacity: .45;
}
.branch-panels.is-hovering .branch-panel.is-active .branch-label,
.branch-panels.is-hovering .branch-panel:focus-visible .branch-label {
  opacity: 1;
  transform: translateY(-.25rem);
  color: rgba(255,255,255,.96);
  text-shadow: 0 0 26px color-mix(in srgb, var(--branch-2) 68%, transparent), 0 4px 18px rgba(0,0,0,.42);
}
html.light-mode .branch-panels.is-hovering .branch-panel.is-active .branch-label,
html.light-mode .branch-panels.is-hovering .branch-panel:focus-visible .branch-label {
  color: rgba(3,7,18,.94);
  text-shadow: 0 0 24px rgba(255,255,255,.68);
}


/* v10/v11 UOL-inspired type hierarchy: Nunito Sans Light for large text; SemiBold for emphasis. */
h1, h2, .hero h1, .landing-card h1, .section-head h2 { font-weight: 320; }
p, li, .hero p.lead, .landing-card .tagline, .card p { font-weight: 320; }
.main-nav a, .button, .branch-tooltip strong, .card h3, .landing-help, .callout strong, .section .meta { font-weight: 650; }
.eyebrow, .card .meta, .footer-inner { font-weight: 420; }
.branch-panel .branch-label { font-weight: 760; }

/* v13 contrast pass + cooler visual tuning */
:root {
  --focus-ring: color-mix(in srgb, var(--branch-2) 64%, white 16%);
}

html.light-mode {
  --ink: #07111f;
  --ink-strong: #030712;
  --muted: #2e4157;
  --muted-2: #56687d;
  --line: rgba(7, 17, 31, .18);
  --line-strong: rgba(7, 17, 31, .30);
  --surface: rgba(255, 255, 255, .86);
  --surface-strong: rgba(255, 255, 255, .96);
  --surface-soft: rgba(247, 250, 253, .88);
}

body {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

html.light-mode body {
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--branch) 16%, transparent), transparent 34rem),
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--branch-2) 14%, transparent), transparent 28rem),
    linear-gradient(135deg, var(--branch-bg-a), var(--branch-bg-b) 54%, #f8fbfe);
}

/* Header and navigation */
.site-header {
  background:
    radial-gradient(circle at 14% 0%, rgba(91,197,242,.08), transparent 22rem),
    linear-gradient(to bottom, rgba(3,7,18,.92), rgba(3,7,18,.76));
}
html.light-mode .site-header {
  background:
    radial-gradient(circle at 12% 0%, rgba(91,197,242,.14), transparent 20rem),
    linear-gradient(to bottom, rgba(255,255,255,.96), rgba(246,249,252,.90));
}

html.light-mode .main-nav a {
  color: #1e334a;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--ink-strong);
  border-color: color-mix(in srgb, var(--branch-2) 46%, white 16%);
  background: color-mix(in srgb, var(--branch) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--branch-2) 12%, transparent);
}
html.light-mode .main-nav a:hover,
html.light-mode .main-nav a:focus-visible,
html.light-mode .main-nav a.active {
  color: #06101d;
  background: color-mix(in srgb, var(--branch-2) 12%, white 86%);
  border-color: color-mix(in srgb, var(--branch) 34%, rgba(7,17,31,.16));
}

html.light-mode .mode-toggle,
html.light-mode .flag-link,
html.light-mode .mobile-menu-button {
  color: #07111f;
  background: rgba(255,255,255,.96);
  border-color: rgba(7,17,31,.20);
  box-shadow: 0 9px 22px rgba(18,32,52,.12);
}

/* Landing page cooler glass layer */
.landing-card {
  background:
    linear-gradient(135deg, rgba(3,7,18,.76), rgba(3,7,18,.54)),
    radial-gradient(circle at 34% 18%, color-mix(in srgb, var(--branch-2) 15%, transparent), transparent 24rem);
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 32px 90px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08);
}
html.light-mode .landing-card {
  color: #07111f;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,250,253,.84)),
    radial-gradient(circle at 34% 18%, color-mix(in srgb, var(--branch-2) 15%, transparent), transparent 24rem);
  border-color: rgba(7,17,31,.17);
  box-shadow:
    0 26px 72px rgba(18,32,52,.20),
    inset 0 1px 0 rgba(255,255,255,.85);
}
html.light-mode .landing-card .tagline,
html.light-mode .landing-help,
html.light-mode .eyebrow {
  color: #24364d;
}

/* Landing hover: active column pops, inactive columns dim */
.branch-panels:has(.branch-panel:hover) .branch-panel,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel {
  filter: brightness(.48) saturate(.58) contrast(.96);
}
.branch-panels:has(.branch-panel:hover) .branch-panel:hover,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel:focus-visible {
  filter: brightness(1.36) saturate(1.95) contrast(1.12);
  transform: scaleX(1.025);
  z-index: 2;
}
.branch-panels:has(.branch-panel:hover) .branch-panel:hover::before,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel:focus-visible::before {
  opacity: .36;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
}
.branch-panel:hover .branch-label,
.branch-panel:focus-visible .branch-label {
  opacity: 1;
  color: rgba(255,255,255,.98);
  text-shadow: 0 0 30px color-mix(in srgb, var(--branch-2) 75%, transparent), 0 5px 18px rgba(0,0,0,.45);
}
html.light-mode .branch-panel:hover .branch-label,
html.light-mode .branch-panel:focus-visible .branch-label {
  color: #07111f;
  text-shadow: 0 0 26px rgba(255,255,255,.82), 0 2px 10px rgba(255,255,255,.40);
}

/* Hover text / guidance */
.branch-tooltip {
  background: rgba(3, 7, 18, .88);
  color: #f8fbfe;
  border-color: rgba(255,255,255,.26);
}
.branch-tooltip small {
  color: #d5deea;
}
html.light-mode .branch-tooltip {
  background: rgba(255,255,255,.96);
  color: #07111f;
  border-color: rgba(7,17,31,.18);
}
html.light-mode .branch-tooltip small {
  color: #2e4157;
}

/* Buttons: especially the first/primary button on branch pages */
.button,
.branch-quicklinks a {
  color: var(--ink-strong);
  border-color: color-mix(in srgb, var(--branch-2) 22%, var(--line));
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
}

html.light-mode .button,
html.light-mode .branch-quicklinks a {
  color: #07111f;
  background: linear-gradient(180deg, #ffffff, #edf3f8);
  border-color: rgba(7,17,31,.18);
  box-shadow: 0 9px 22px rgba(18,32,52,.10);
}

.button-primary {
  color: #ffffff;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--branch) 92%, #07111f 8%),
      color-mix(in srgb, var(--branch) 72%, var(--branch-2) 28%)
    );
  border-color: color-mix(in srgb, var(--branch-2) 34%, white 18%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--branch) 25%, transparent);
  text-shadow: 0 1px 1px rgba(0,0,0,.30);
}

html.light-mode .button-primary {
  color: #ffffff !important;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--branch) 94%, #06101d 6%),
      color-mix(in srgb, var(--branch) 86%, #06101d 14%)
    ) !important;
  border-color: color-mix(in srgb, var(--branch) 72%, #06101d 28%);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--branch) 24%, transparent);
  text-shadow: 0 1px 2px rgba(0,0,0,.42);
}

html.light-mode .button-primary:hover,
html.light-mode .button-primary:focus-visible {
  color: #ffffff !important;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--branch) 88%, #06101d 12%),
      color-mix(in srgb, var(--branch) 78%, #06101d 22%)
    ) !important;
}

html.light-mode .button-secondary {
  color: #10243a;
  background: linear-gradient(180deg, #ffffff, #edf3f8);
}

/* Cards and content surfaces */
.visual-card,
.card,
.callout {
  border-color: color-mix(in srgb, var(--branch-2) 20%, var(--line));
}
html.light-mode .visual-card,
html.light-mode .card {
  color: #07111f;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,245,250,.88));
  border-color: rgba(7,17,31,.16);
}
html.light-mode .card h3,
html.light-mode .section-head h2,
html.light-mode .hero h1,
html.light-mode .card .meta {
  color: #07111f;
}
html.light-mode .card p,
html.light-mode .hero p.lead,
html.light-mode .section-head p {
  color: #2e4157;
}
html.light-mode .card .meta {
  color: color-mix(in srgb, var(--branch) 85%, #07111f 15%);
}
html.light-mode .callout {
  color: #07111f;
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--branch-2) 16%, transparent), transparent 20rem),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,245,250,.90));
  border-color: color-mix(in srgb, var(--branch) 28%, rgba(7,17,31,.16));
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, rgba(3,7,18,.22), rgba(3,7,18,.42));
}
html.light-mode .site-footer {
  color: #2e4157;
  background:
    linear-gradient(180deg, rgba(247,250,253,.90), rgba(232,239,246,.88));
  border-top-color: rgba(7,17,31,.13);
}
html.light-mode .footer-inner,
html.light-mode .footer-links a {
  color: #2e4157;
}
html.light-mode .footer-inner strong,
html.light-mode .footer-links a:hover {
  color: #07111f;
}

/* Focus visibility: deliberately obvious for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Mobile menu contrast */
@media (max-width: 980px) {
  .main-nav {
    background: rgba(3,7,18,.96);
  }
  html.light-mode .main-nav {
    background: rgba(255,255,255,.98);
    border-color: rgba(7,17,31,.18);
  }
}


/* v14 hard light-mode primary-button contrast fix
   Keep primary calls-to-action dark and readable in all branches. */
html.light-mode .button.button-primary,
html.light-mode a.button.button-primary,
html.light-mode .hero-actions .button.button-primary {
  color: #ffffff !important;
  background-image: none !important;
  background-color: #003e6b !important;
  border-color: #00365e !important;
  box-shadow:
    0 12px 28px rgba(0, 62, 107, .22),
    inset 0 0 0 1px rgba(255,255,255,.18) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45) !important;
}

html.light-mode body.theme-blue .button.button-primary,
html.light-mode body.theme-blue a.button.button-primary {
  background-color: #003e6b !important;  /* UOL blue */
  border-color: #00365e !important;
  box-shadow:
    0 12px 28px rgba(0, 62, 107, .24),
    inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

html.light-mode body.theme-green .button.button-primary,
html.light-mode body.theme-green a.button.button-primary {
  background-color: #007878 !important;  /* UOL green accent */
  border-color: #005f5f !important;
  box-shadow:
    0 12px 28px rgba(0, 120, 120, .24),
    inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

html.light-mode body.theme-orange .button.button-primary,
html.light-mode body.theme-orange a.button.button-primary {
  background-color: #d53b0a !important;  /* UOL orange accent */
  border-color: #aa2f08 !important;
  box-shadow:
    0 12px 28px rgba(213, 59, 10, .24),
    inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

html.light-mode .button.button-primary:hover,
html.light-mode .button.button-primary:focus-visible,
html.light-mode a.button.button-primary:hover,
html.light-mode a.button.button-primary:focus-visible {
  color: #ffffff !important;
  filter: brightness(.94) saturate(1.08);
  background-image: none !important;
}

html.light-mode .button.button-secondary,
html.light-mode a.button.button-secondary {
  color: #07111f !important;
  background-image: none !important;
  background-color: #ffffff !important;
  border-color: rgba(7,17,31,.20) !important;
  text-shadow: none !important;
}

/* Make labels inside any light button inherit the corrected foreground. */
html.light-mode .button.button-primary *,
html.light-mode .button.button-secondary * {
  color: inherit !important;
}


/* v15 logo cleanup */
.landing-logo,
.brand-logo {
  overflow: hidden;
}

/* v16 generated content helpers */
.team-group-head {
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
}
.card a {
  color: var(--ink-strong);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
html.light-mode .card a {
  color: #07111f;
}


/* v17 people photos and publication-source badges */
.person-card{display:grid;grid-template-columns:86px 1fr;gap:1rem;align-items:start;min-height:auto}.person-photo{width:86px;height:86px;border-radius:22px;overflow:hidden;border:1px solid color-mix(in srgb,var(--branch-2) 28%,var(--line));background:radial-gradient(circle at 28% 18%,color-mix(in srgb,var(--branch-2) 28%,transparent),transparent 4rem),linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.04));box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}.person-photo img{width:100%;height:100%;object-fit:cover}.person-photo-placeholder{display:grid;place-items:center;color:var(--ink-strong);font-size:1.25rem;font-weight:760;letter-spacing:.04em}html.light-mode .person-photo{background:radial-gradient(circle at 28% 18%,color-mix(in srgb,var(--branch-2) 22%,transparent),transparent 4rem),linear-gradient(135deg,#fff,#edf3f8);border-color:rgba(7,17,31,.18)}html.light-mode .person-photo-placeholder{color:#07111f}.publication-source-note{margin-top:.65rem}@media(max-width:540px){.person-card{grid-template-columns:1fr}}


/* v18 people/contact cards, campus map and generated publications */
.people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.person-card-large {
  grid-template-columns: 128px 1fr;
  gap: 1.25rem;
  min-height: 260px;
  padding: 1.35rem;
}
.person-card-large .person-photo {
  width: 128px;
  height: 128px;
  border-radius: 28px;
}
.person-photo-placeholder span {
  font-size: 1.8rem;
  font-weight: 780;
}
.person-card-body h3 {
  font-size: 1.38rem;
  margin-bottom: .55rem;
}
.person-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: .42rem;
  margin: .75rem 0;
}
.person-details div {
  display: grid;
  grid-template-columns: 6.3rem 1fr;
  gap: .75rem;
  align-items: baseline;
  padding: .28rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--branch-2) 12%, transparent);
}
.person-details dt {
  color: var(--muted-2);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.person-details dd {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 520;
}
.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .8rem;
}
.person-links a,
.person-links span,
.publication-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--branch-2) 28%, var(--line));
  border-radius: 999px;
  padding: .34rem .58rem;
  font-size: .82rem;
  text-decoration: none;
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--branch) 10%, transparent);
}
.publication-source-note {
  margin-top: .9rem;
}
.campus-map-card {
  border: 1px solid color-mix(in srgb, var(--branch-2) 24%, var(--line));
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.campus-map-embed {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 360px;
  border: 0;
  display: block;
  background: var(--surface-soft);
}
.campus-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.publication-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
html.light-mode .person-details dd,
html.light-mode .person-links a,
html.light-mode .person-links span {
  color: #07111f;
}
@media (max-width: 980px) {
  .people-grid, .publication-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .person-card-large { grid-template-columns: 1fr; }
  .person-details div { grid-template-columns: 1fr; gap: .1rem; }
  .campus-map-embed { min-height: 320px; }
}


/* v20 people-card cleanup: inline contact rows and clickable room values */
.people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.person-card-large { grid-template-columns: 128px 1fr; gap: 1.25rem; padding: 1.35rem; }
.person-card-large .person-photo { width: 112px; height: 112px; border-radius: 26px; text-decoration: none; }
.person-card-body h3 { margin-bottom: .9rem; }
.contact-list { display: grid; gap: .42rem; margin: .65rem 0 0; }
.contact-row { display: grid; grid-template-columns: 5.6rem minmax(0,1fr); align-items: baseline; gap: .8rem; }
.contact-row dt { color: var(--muted); font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }
.contact-row dd { margin: 0; min-width: 0; color: var(--ink-strong); }
.contact-row dd a { color: var(--ink-strong); font-weight: 680; text-decoration-thickness: .08em; text-underline-offset: .17em; overflow-wrap: anywhere; }
.contact-row .muted-value { color: var(--muted-2); }
html.light-mode .contact-row dt { color: #475569; }
html.light-mode .contact-row dd, html.light-mode .contact-row dd a { color: #07111f; }
.person-photo-placeholder span { transform: translateY(.02em); }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .person-card-large { grid-template-columns: 1fr; } .contact-row { grid-template-columns: 1fr; gap: .05rem; } }


/* v22 people cards, ORCID icons and generated publication pages */
.people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.person-card-large { grid-template-columns: 150px 1fr; min-height: 300px; padding: 1.35rem; gap: 1.35rem; }
.person-card-large .person-photo { width: 150px; height: 150px; border-radius: 30px; }
.person-name-line { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.orcid-icon { display: inline-grid; place-items: center; width: 1.62rem; height: 1.62rem; border-radius: 999px; background: #a6ce39; color: #111827 !important; font-weight: 900; font-size: .78rem; text-decoration: none !important; letter-spacing: -.04em; }
.person-details { display: grid; gap: .36rem; margin: .75rem 0 .85rem; }
.person-details .contact-row { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .65rem; align-items: baseline; padding: .22rem 0; border-bottom: 1px solid color-mix(in srgb, var(--branch-2) 12%, transparent); }
.contact-label { color: var(--muted-2); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 760; }
.contact-value { min-width: 0; overflow-wrap: anywhere; color: var(--ink-strong); }
.contact-value a { color: var(--ink-strong); }
.person-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.person-action, .publication-status { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--branch-2) 30%, var(--line)); border-radius: 999px; padding: .45rem .72rem; font-size: .88rem; font-weight: 720; text-decoration: none; color: var(--ink-strong); background: color-mix(in srgb, var(--branch) 14%, transparent); }
.person-action:hover, .person-action:focus-visible { background: color-mix(in srgb, var(--branch-2) 22%, transparent); }
.person-publication-hero { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: center; }
.person-publication-hero .person-photo { width: 180px; height: 180px; border-radius: 36px; }
.publication-card { min-height: 230px; }
.missing-value { color: var(--muted-2); }
html.light-mode .person-action, html.light-mode .publication-status { color: #07111f; background: linear-gradient(180deg, #ffffff, #edf3f8); border-color: rgba(7,17,31,.18); }
html.light-mode .contact-value, html.light-mode .contact-value a { color: #07111f; }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .person-card-large, .person-publication-hero { grid-template-columns: 1fr; } }

/* v23 static password gate */
html.auth-locked body > *:not(.access-gate-overlay) {
  visibility: hidden !important;
}
.access-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(91,197,242,.20), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(0,168,121,.12), transparent 26rem),
    #030712;
  color: #f8fbfe;
}
html.light-mode .access-gate-overlay {
  background:
    radial-gradient(circle at 20% 0%, rgba(91,197,242,.26), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(0,168,121,.16), transparent 26rem),
    #f8fbfe;
  color: #07111f;
}
.access-gate-card {
  width: min(440px, 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  padding: 1.5rem;
  background: rgba(3,7,18,.78);
  box-shadow: 0 32px 90px rgba(0,0,0,.42);
  backdrop-filter: blur(22px);
}
html.light-mode .access-gate-card {
  border-color: rgba(7,17,31,.16);
  background: rgba(255,255,255,.92);
  box-shadow: 0 28px 80px rgba(18,32,52,.20);
}
.access-gate-logo {
  width: min(260px, 82%);
  margin: 0 auto 1rem;
}
.access-gate-card h1 {
  margin: .2rem 0 .4rem;
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.access-gate-card p {
  margin: .45rem 0 1rem;
  color: #d5deea;
}
html.light-mode .access-gate-card p {
  color: #2e4157;
}
.access-gate-card label {
  display: block;
  margin: .65rem 0 .35rem;
  color: inherit;
  font-weight: 760;
}
.access-gate-card input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 14px;
  padding: .85rem .95rem;
  background: rgba(255,255,255,.08);
  color: inherit;
  outline: none;
}
html.light-mode .access-gate-card input {
  border-color: rgba(7,17,31,.20);
  background: #ffffff;
}
.access-gate-card input:focus {
  border-color: #5bc5f2;
  box-shadow: 0 0 0 3px rgba(91,197,242,.24);
}
.access-gate-card button {
  width: 100%;
  margin-top: .9rem;
  border: 0;
  border-radius: 999px;
  padding: .82rem 1rem;
  background: #003e6b;
  color: #ffffff;
  font-weight: 820;
  cursor: pointer;
}
.access-gate-card button:hover,
.access-gate-card button:focus-visible {
  filter: brightness(1.08);
}
.access-gate-error {
  color: #ffb4a6 !important;
  font-weight: 760;
}
html.light-mode .access-gate-error {
  color: #aa2f08 !important;
}


/* v24 row-based publication lists */
.publication-list { display: grid; gap: .9rem; }
.publication-row { position: relative; display: grid; grid-template-columns: minmax(120px, 18%) 1fr; min-height: 168px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--branch-2) 24%, var(--line)); border-radius: var(--radius-md); background: linear-gradient(90deg, color-mix(in srgb, var(--branch) 22%, transparent), transparent 38%), linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045)); box-shadow: 0 18px 46px rgba(0,0,0,.18); }
.publication-row-highlight { border-color: color-mix(in srgb, #fdc300 46%, var(--line)); background: linear-gradient(90deg, rgba(253,195,0,.20), transparent 42%), radial-gradient(circle at 12% 0%, rgba(91,197,242,.18), transparent 22rem), linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055)); }
.journal-mark { position: relative; display: grid; place-items: center; min-height: 100%; isolation: isolate; }
.journal-mark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 45% 45%, color-mix(in srgb, var(--branch-2) 52%, transparent), transparent 4.6rem), linear-gradient(90deg, color-mix(in srgb, var(--branch) 42%, transparent), transparent); opacity: .82; mask-image: linear-gradient(90deg, #000 0%, #000 54%, transparent 100%); }
.publication-row-highlight .journal-mark::before { background: radial-gradient(circle at 45% 45%, rgba(253,195,0,.55), transparent 4.8rem), linear-gradient(90deg, rgba(238,113,0,.30), transparent); }
.journal-mark span { position: relative; z-index: 1; width: 5.5rem; height: 5.5rem; border-radius: 1.5rem; display: grid; place-items: center; color: var(--ink-strong); border: 1px solid rgba(255,255,255,.22); background: rgba(3,7,18,.30); font-size: 1.15rem; font-weight: 820; letter-spacing: .04em; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.10); }
.publication-row-body { padding: 1.15rem 1.25rem 1.1rem .7rem; }
.publication-row h3 { margin: .15rem 0 .55rem; font-size: clamp(1.12rem, 1.55vw, 1.42rem); line-height: 1.25; letter-spacing: -.02em; }
.publication-authors, .publication-journal { margin: .28rem 0; color: var(--muted); }
.publication-authors { font-weight: 560; }
.publication-journal { font-style: italic; }
.publication-links { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin-top: .75rem; color: var(--muted-2); font-size: .88rem; }
.publication-open { color: var(--ink-strong); font-weight: 760; }
.publication-section-highlight .section-head h2 { color: color-mix(in srgb, #fdc300 36%, var(--ink-strong)); }
.publication-admin-list { display: grid; gap: .65rem; }
.publication-admin-row { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; border: 1px solid color-mix(in srgb, var(--branch-2) 22%, var(--line)); border-radius: 18px; padding: .85rem 1rem; background: var(--surface); cursor: pointer; }
.publication-admin-row input { margin-top: .35rem; transform: scale(1.2); }
.publication-admin-row strong, .publication-admin-row small { display: block; }
.publication-admin-row small { margin-top: .25rem; color: var(--muted); }
html.light-mode .publication-row { background: linear-gradient(90deg, color-mix(in srgb, var(--branch-2) 14%, white 86%), transparent 42%), linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,245,250,.90)); border-color: rgba(7,17,31,.16); }
html.light-mode .publication-row-highlight { background: linear-gradient(90deg, rgba(253,195,0,.25), transparent 42%), linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,241,222,.92)); border-color: rgba(213,59,10,.24); }
html.light-mode .journal-mark span { color: #07111f; background: rgba(255,255,255,.72); border-color: rgba(7,17,31,.14); }
html.light-mode .publication-authors, html.light-mode .publication-journal { color: #2e4157; }
html.light-mode .publication-open { color: #07111f; }
@media (max-width: 720px) { .publication-row { grid-template-columns: 1fr; } .journal-mark { min-height: 92px; } .journal-mark::before { mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%); } .publication-row-body { padding: 1rem; } }


/* v25 portrait crop tuning
   Some UOL/eLearning portraits are square headshot files with visible margins.
   Scale images inside the rounded portrait frame so the photo fills the whole box. */
.person-photo {
  display: block;
  position: relative;
  background: transparent;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.16);
  transform-origin: center center;
  transition: transform .22s ease, filter .22s ease;
}

.person-photo:hover img,
.person-photo:focus-visible img {
  transform: scale(1.20);
}

/* Keep guest portrait cards slightly less aggressive because those source images
   already fill their frame better than some active-staff eLearning portraits. */
.person-card:has(.publication-status) .person-photo img {
  transform: scale(1.08);
}

.person-card:has(.publication-status) .person-photo:hover img,
.person-card:has(.publication-status) .person-photo:focus-visible img {
  transform: scale(1.12);
}


/* v26 corrected full-width publication rows */
.site-shell .publication-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  width: 100% !important;
}

.publication-year-group {
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

.publication-year-group > h3 {
  margin: 0 0 .8rem;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 340;
  color: var(--ink-strong);
}

.site-shell .publication-row {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(150px, 20%) minmax(0, 1fr) !important;
  width: 100% !important;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--branch-2) 28%, var(--line));
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--branch) 18%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.092), rgba(255,255,255,.045));
  box-shadow: 0 18px 46px rgba(0,0,0,.20);
}

.site-shell .publication-row-highlight {
  border-color: color-mix(in srgb, #fdc300 52%, var(--line));
  background:
    linear-gradient(90deg, rgba(253,195,0,.20), transparent 46%),
    radial-gradient(circle at 10% 0%, rgba(91,197,242,.18), transparent 24rem),
    linear-gradient(180deg, rgba(255,255,255,.125), rgba(255,255,255,.055));
}

.site-shell .journal-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  isolation: isolate;
}

.site-shell .journal-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 46%, color-mix(in srgb, var(--branch-2) 62%, transparent), transparent 5.2rem),
    linear-gradient(90deg, color-mix(in srgb, var(--branch) 46%, transparent), transparent);
  opacity: .86;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 56%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 56%, transparent 100%);
}

.site-shell .publication-row-highlight .journal-mark::before {
  background:
    radial-gradient(circle at 40% 46%, rgba(253,195,0,.56), transparent 5.4rem),
    linear-gradient(90deg, rgba(238,113,0,.32), transparent);
}

.site-shell .journal-mark span {
  position: relative;
  z-index: 1;
  width: 6.1rem;
  height: 6.1rem;
  border-radius: 1.65rem;
  display: grid;
  place-items: center;
  color: var(--ink-strong);
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(3,7,18,.30);
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.site-shell .publication-row-body {
  padding: 1.25rem 1.4rem 1.2rem .8rem;
  min-width: 0;
}

.site-shell .publication-journal-line {
  margin: 0 0 .45rem;
  color: var(--branch-2);
  font-size: .92rem;
  font-weight: 780;
  letter-spacing: .035em;
}

.site-shell .publication-row h3 {
  margin: 0 0 .65rem;
  font-size: clamp(1.18rem, 1.7vw, 1.56rem);
  line-height: 1.26;
  letter-spacing: -.02em;
  font-weight: 740;
  color: var(--ink-strong);
}

.site-shell .publication-authors {
  margin: .25rem 0 .45rem;
  color: var(--muted);
  font-weight: 440;
  line-height: 1.45;
}

.site-shell .publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  align-items: center;
  margin-top: .85rem;
  color: var(--muted-2);
  font-size: .9rem;
}

.site-shell .publication-link-item {
  display: inline-flex;
  align-items: center;
}

.site-shell .publication-link-item a {
  color: var(--ink-strong);
  font-weight: 760;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.publication-section-highlight .section-head h2 {
  color: color-mix(in srgb, #fdc300 38%, var(--ink-strong));
}

html.light-mode .site-shell .publication-row {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--branch-2) 14%, white 86%), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,245,250,.90));
  border-color: rgba(7,17,31,.16);
}

html.light-mode .site-shell .publication-row-highlight {
  background:
    linear-gradient(90deg, rgba(253,195,0,.25), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,241,222,.92));
  border-color: rgba(213,59,10,.24);
}

html.light-mode .site-shell .journal-mark span {
  color: #07111f;
  background: rgba(255,255,255,.76);
  border-color: rgba(7,17,31,.14);
}

html.light-mode .site-shell .publication-journal-line {
  color: color-mix(in srgb, var(--branch) 84%, #07111f 16%);
}

html.light-mode .site-shell .publication-row h3,
html.light-mode .site-shell .publication-link-item a {
  color: #07111f;
}

html.light-mode .site-shell .publication-authors {
  color: #2e4157;
}

@media (max-width: 760px) {
  .site-shell .publication-row {
    grid-template-columns: 1fr !important;
  }
  .site-shell .journal-mark {
    min-height: 92px;
  }
  .site-shell .journal-mark::before {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  }
  .site-shell .publication-row-body {
    padding: 1rem;
  }
}


/* v27 publication refinements: collapsible member list, underlined lab authors, background journal watermark */
.member-publications-details {
  border: 1px solid color-mix(in srgb, var(--branch-2) 26%, var(--line));
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.072), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.member-publications-details > summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  color: var(--ink-strong);
}

.member-publications-details > summary::-webkit-details-marker {
  display: none;
}

.member-publications-details > summary::before {
  content: "＋";
  color: var(--branch-2);
  font-weight: 900;
  margin-right: .75rem;
}

.member-publications-details[open] > summary::before {
  content: "−";
}

.member-publications-details > summary span {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  letter-spacing: -.04em;
  font-weight: 360;
}

.member-publications-details > summary small {
  color: var(--muted);
  font-size: .95rem;
}

.member-publications-inner {
  padding: 0 clamp(1rem, 2.4vw, 1.4rem) clamp(1rem, 2.4vw, 1.4rem);
}

.lab-author {
  text-decoration: underline;
  text-decoration-thickness: .12em;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, var(--branch-2) 74%, white 6%);
  font-weight: 760;
  color: var(--ink-strong);
}

/* Turn the journal mark into a true background watermark instead of a separate box. */
.site-shell .publication-row {
  grid-template-columns: minmax(0, 1fr) !important;
  isolation: isolate;
}

.site-shell .publication-row::before {
  content: var(--journal-watermark);
  position: absolute;
  inset: 0 auto 0 0;
  width: min(34%, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  color: color-mix(in srgb, var(--branch-2) 46%, transparent);
  font-size: clamp(4.8rem, 11vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -.08em;
  opacity: .28;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.78) 42%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.78) 42%, transparent 100%);
}

.site-shell .publication-row-highlight::before {
  color: rgba(253,195,0,.58);
  opacity: .34;
}

.site-shell .publication-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 50%, color-mix(in srgb, var(--branch-2) 18%, transparent), transparent 18rem),
    linear-gradient(90deg, color-mix(in srgb, var(--branch) 16%, transparent), transparent 38%);
  pointer-events: none;
}

.site-shell .publication-row-body {
  position: relative;
  z-index: 1;
  padding-left: clamp(1.3rem, 4.5vw, 4.4rem) !important;
}

.site-shell .journal-mark {
  display: none !important;
}

html.light-mode .member-publications-details {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,245,250,.88));
  border-color: rgba(7,17,31,.16);
}

html.light-mode .lab-author {
  color: #07111f;
  text-decoration-color: color-mix(in srgb, var(--branch) 76%, #07111f 12%);
}

html.light-mode .site-shell .publication-row::before {
  color: color-mix(in srgb, var(--branch) 42%, transparent);
  opacity: .24;
}


/* v28 publication layout hardening and heading-like collapsed member section */
.site-shell .publication-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

.site-shell .publication-row > .publication-row-body {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.2rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.35rem) clamp(1.4rem, 5vw, 4.8rem) !important;
}

.site-shell .publication-row h3 {
  max-width: none !important;
}

.site-shell .publication-authors,
.site-shell .publication-journal-line,
.site-shell .publication-links {
  max-width: none !important;
}

.member-publications-section {
  padding-top: clamp(1.2rem, 3vw, 2rem);
}

.member-publications-details {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.member-publications-details > summary {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: .45rem;
  padding: 0 0 clamp(1rem, 2.2vw, 1.4rem) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--branch-2) 22%, var(--line));
  cursor: pointer;
}

.member-publications-details > summary::before {
  content: none !important;
}

.member-publications-details > summary::after {
  content: "＋ unfold";
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin-top: .25rem;
  border: 1px solid color-mix(in srgb, var(--branch-2) 34%, var(--line));
  border-radius: 999px;
  padding: .42rem .72rem;
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--branch) 12%, transparent);
  font-size: .86rem;
  font-weight: 760;
}

.member-publications-details[open] > summary::after {
  content: "− collapse";
}

.member-publications-details > summary .summary-title {
  font-size: clamp(2rem, 4.8vw, 4.2rem) !important;
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 320 !important;
  color: var(--ink-strong);
}

.member-publications-details > summary .summary-help {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}

.member-publications-inner {
  padding: clamp(1rem, 2.4vw, 1.4rem) 0 0 !important;
}

/* Stronger, readable background watermark. This remains a generated mark until curated real journal logos are added. */
.site-shell .publication-row::before {
  width: min(42%, 500px) !important;
  justify-content: flex-start !important;
  padding-left: clamp(1.3rem, 3vw, 3rem) !important;
  font-size: clamp(5rem, 13vw, 11rem) !important;
  opacity: .34 !important;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.78) 40%, transparent 100%) !important;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.78) 40%, transparent 100%) !important;
}

.site-shell .publication-row::after {
  background:
    radial-gradient(circle at 8% 50%, color-mix(in srgb, var(--branch-2) 24%, transparent), transparent 19rem),
    linear-gradient(90deg, color-mix(in srgb, var(--branch) 20%, transparent), transparent 42%) !important;
}

/* Dynamic/highlight preview support */
.publication-row-dynamic-highlight {
  outline: 1px solid color-mix(in srgb, #fdc300 56%, var(--line));
}

.publication-placeholder-row.is-hidden-by-dynamic-highlights {
  display: none !important;
}

html.light-mode .member-publications-details > summary::after {
  color: #07111f;
  background: linear-gradient(180deg, #ffffff, #edf3f8);
  border-color: rgba(7,17,31,.18);
}

@media (max-width: 760px) {
  .site-shell .publication-row > .publication-row-body {
    padding: 1rem !important;
  }
}


/* v29 real journal logo support */
.publication-row-has-logo::before {
  content: "" !important;
  position: absolute;
  inset: 0 auto 0 0;
  width: min(42%, 500px) !important;
  background-image: var(--journal-logo);
  background-repeat: no-repeat;
  background-position: left 1.25rem center;
  background-size: min(290px, 84%) auto;
  opacity: .22;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.82) 42%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.82) 42%, transparent 100%);
}

.publication-row-has-logo.publication-row-highlight::before {
  opacity: .26;
}

html.light-mode .publication-row-has-logo::before {
  opacity: .16;
}


/* v32 journal-logo background correction
   Real journal logos should sit on the left edge of each publication box,
   fill the row height visually, stay fully visible at the left, and fade out
   toward the centre without being rendered as a separate logo tile. */
.site-shell .publication-row.publication-row-has-logo {
  overflow: hidden !important;
  position: relative !important;
  isolation: isolate !important;
}

/* Full-height logo layer. Left side is opaque; the mask fades it to transparent. */
.site-shell .publication-row.publication-row-has-logo::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: min(72%, 860px) !important;
  min-height: 100% !important;
  background-image: var(--journal-logo) !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: auto 105% !important;
  opacity: .72 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 26%,
    rgba(0,0,0,.72) 45%,
    rgba(0,0,0,.22) 68%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 26%,
    rgba(0,0,0,.72) 45%,
    rgba(0,0,0,.22) 68%,
    rgba(0,0,0,0) 100%
  ) !important;
}

/* Keep only a very light tone wash above the logo, not the old initials/radial block. */
.site-shell .publication-row.publication-row-has-logo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      90deg,
      rgba(3, 16, 31, 0) 0%,
      rgba(3, 16, 31, .06) 28%,
      rgba(3, 16, 31, .20) 52%,
      rgba(3, 16, 31, .08) 100%
    ) !important;
}

/* Text starts after the strong part of the watermark, but still has the full row width. */
.site-shell .publication-row.publication-row-has-logo > .publication-row-body {
  position: relative !important;
  z-index: 1 !important;
  padding-left: clamp(15rem, 30vw, 25rem) !important;
  width: 100% !important;
  max-width: none !important;
}

/* Highlighted publications get slightly stronger logos and a warmer left edge. */
.site-shell .publication-row.publication-row-has-logo.publication-row-highlight::before {
  opacity: .82 !important;
}

.site-shell .publication-row.publication-row-has-logo.publication-row-highlight::after {
  background:
    linear-gradient(
      90deg,
      rgba(253,195,0,.06) 0%,
      rgba(3,16,31,.06) 28%,
      rgba(3,16,31,.22) 54%,
      rgba(3,16,31,.06) 100%
    ) !important;
}

/* Existing generated-initial watermark remains available as fallback only. */
.site-shell .publication-row:not(.publication-row-has-logo)::before {
  content: var(--journal-watermark) !important;
}

/* Light mode: preserve the logo, but reduce saturation/opacity enough for readability. */
html.light-mode .site-shell .publication-row.publication-row-has-logo::before {
  opacity: .38 !important;
  filter: saturate(.92) contrast(.98) !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-logo::after {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.16) 32%,
      rgba(255,255,255,.62) 58%,
      rgba(255,255,255,.18) 100%
    ) !important;
}

@media (max-width: 900px) {
  .site-shell .publication-row.publication-row-has-logo::before {
    width: 100% !important;
    height: 9rem !important;
    min-height: 0 !important;
    background-size: auto 115% !important;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.72) 48%, transparent 100%) !important;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.72) 48%, transparent 100%) !important;
  }

  .site-shell .publication-row.publication-row-has-logo > .publication-row-body {
    padding-left: 1rem !important;
    padding-top: 7rem !important;
  }
}


/* v33 publication-logo treatment
   Logo is a true background layer: full-height at the left edge, fading to the
   middle. The publication text uses the full row width again. A readability
   scrim sits between logo and text: dark in dark mode, light in light mode. */
.site-shell .publication-row.publication-row-has-logo {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
}

/* Real logo layer: visible at the left edge, fade-out toward the middle. */
.site-shell .publication-row.publication-row-has-logo::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: min(56%, 760px) !important;
  height: 100% !important;
  background-image: var(--journal-logo) !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: auto 100% !important;
  opacity: .78 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 34%,
    rgba(0,0,0,.72) 52%,
    rgba(0,0,0,.26) 74%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 34%,
    rgba(0,0,0,.72) 52%,
    rgba(0,0,0,.26) 74%,
    rgba(0,0,0,0) 100%
  ) !important;
}

/* Counter-fade/scrim layer: ensures white text remains readable on bright logos. */
.site-shell .publication-row.publication-row-has-logo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      90deg,
      rgba(3, 16, 31, .72) 0%,
      rgba(3, 16, 31, .60) 24%,
      rgba(3, 16, 31, .34) 46%,
      rgba(3, 16, 31, .12) 67%,
      rgba(3, 16, 31, 0) 100%
    ) !important;
}

/* Text spans the whole row again. It is above both the logo and scrim layers. */
.site-shell .publication-row.publication-row-has-logo > .publication-row-body {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: clamp(1.05rem, 2vw, 1.35rem) clamp(1.2rem, 3vw, 2.2rem) !important;
}

/* Highlighted rows keep the warmer frame, but do not shift the text. */
.site-shell .publication-row.publication-row-has-logo.publication-row-highlight::before {
  opacity: .84 !important;
}

.site-shell .publication-row.publication-row-has-logo.publication-row-highlight::after {
  background:
    linear-gradient(
      90deg,
      rgba(3, 16, 31, .74) 0%,
      rgba(3, 16, 31, .61) 24%,
      rgba(3, 16, 31, .33) 46%,
      rgba(3, 16, 31, .10) 67%,
      rgba(3, 16, 31, 0) 100%
    ),
    linear-gradient(90deg, rgba(253,195,0,.06), transparent 42%) !important;
}

/* Light mode: invert the counter-fade so dark logos cannot swallow dark text. */
html.light-mode .site-shell .publication-row.publication-row-has-logo::before {
  opacity: .42 !important;
  filter: saturate(.92) contrast(.98) !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-logo::after {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.80) 0%,
      rgba(255,255,255,.68) 24%,
      rgba(255,255,255,.42) 46%,
      rgba(255,255,255,.16) 67%,
      rgba(255,255,255,0) 100%
    ) !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-logo.publication-row-highlight::after {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.82) 0%,
      rgba(255,255,255,.70) 24%,
      rgba(255,255,255,.44) 46%,
      rgba(255,255,255,.16) 67%,
      rgba(255,255,255,0) 100%
    ),
    linear-gradient(90deg, rgba(253,195,0,.10), transparent 42%) !important;
}

/* Fallback rows without a mapped logo keep the generated watermark. */
.site-shell .publication-row:not(.publication-row-has-logo)::before {
  content: var(--journal-watermark) !important;
}

/* Responsive: keep the logo as a left background where possible, only compress it. */
@media (max-width: 900px) {
  .site-shell .publication-row.publication-row-has-logo::before {
    width: min(82%, 620px) !important;
    background-size: auto 100% !important;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.58) 42%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.58) 42%, transparent 100%) !important;
  }

  .site-shell .publication-row.publication-row-has-logo > .publication-row-body {
    padding: 1rem !important;
  }
}


/* v35 robust journal-logo background layer
   Fixes rows where the logo mapping existed but the image did not render visibly.
   Text spans the full publication box; a counter-fade protects readability. */
.site-shell .publication-row.publication-row-has-logo {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Full-height real journal logo starting at the left edge. */
.site-shell .publication-row.publication-row-has-logo::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: min(58%, 780px) !important;
  height: 100% !important;
  background-image: var(--journal-logo) !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: auto 100% !important;
  opacity: .86 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transform: none !important;
  filter: none !important;
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 30%,
    rgba(0,0,0,.72) 50%,
    rgba(0,0,0,.22) 73%,
    rgba(0,0,0,0) 100%) !important;
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 30%,
    rgba(0,0,0,.72) 50%,
    rgba(0,0,0,.22) 73%,
    rgba(0,0,0,0) 100%) !important;
}

/* Counter-fade: dark over bright logos in dark mode. */
.site-shell .publication-row.publication-row-has-logo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg,
    rgba(3,16,31,.68) 0%,
    rgba(3,16,31,.54) 22%,
    rgba(3,16,31,.30) 45%,
    rgba(3,16,31,.10) 66%,
    rgba(3,16,31,0) 100%) !important;
}

.site-shell .publication-row.publication-row-has-logo > .publication-row-body {
  position: relative !important;
  z-index: 2 !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: clamp(1.05rem, 2vw, 1.35rem) clamp(1.2rem, 3vw, 2.2rem) !important;
}

.site-shell .publication-row.publication-row-has-logo h3,
.site-shell .publication-row.publication-row-has-logo .publication-authors,
.site-shell .publication-row.publication-row-has-logo .publication-journal-line,
.site-shell .publication-row.publication-row-has-logo .publication-links {
  max-width: none !important;
}

/* Light mode counter-fade: light over dark logos so dark text remains readable. */
html.light-mode .site-shell .publication-row.publication-row-has-logo::before {
  opacity: .48 !important;
  filter: saturate(.95) contrast(.98) !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-logo::after {
  background: linear-gradient(90deg,
    rgba(255,255,255,.78) 0%,
    rgba(255,255,255,.62) 22%,
    rgba(255,255,255,.36) 45%,
    rgba(255,255,255,.12) 66%,
    rgba(255,255,255,0) 100%) !important;
}

/* Rows without real logo keep the generated initials only. */
.site-shell .publication-row:not(.publication-row-has-logo)::before {
  content: var(--journal-watermark) !important;
}

@media (max-width: 900px) {
  .site-shell .publication-row.publication-row-has-logo::before {
    width: 86% !important;
    background-size: auto 100% !important;
  }
}


/* v36 robust image-element journal-logo layer
   The real logo is now an actual <img> layer inside the article, not only a CSS
   background on ::before. This avoids browser/path quirks with CSS variables. */
.site-shell .publication-row.publication-row-has-logo {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Disable older logo/initial pseudo-element for mapped-logo rows. */
.site-shell .publication-row.publication-row-has-logo::before {
  content: "" !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}

/* Actual logo layer: full row height, left edge, fading toward the center. */
.site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: auto !important;
  max-width: 64% !important;
  object-fit: contain !important;
  object-position: left center !important;
  opacity: .86 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 34%,
    rgba(0,0,0,.72) 54%,
    rgba(0,0,0,.24) 77%,
    rgba(0,0,0,0) 100%) !important;
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 34%,
    rgba(0,0,0,.72) 54%,
    rgba(0,0,0,.24) 77%,
    rgba(0,0,0,0) 100%) !important;
}

/* Scrim layer for text contrast over bright/dark logos. */
.site-shell .publication-row.publication-row-has-logo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg,
    rgba(3,16,31,.72) 0%,
    rgba(3,16,31,.56) 24%,
    rgba(3,16,31,.30) 48%,
    rgba(3,16,31,.10) 70%,
    rgba(3,16,31,0) 100%) !important;
}

/* Text spans the whole box. It is not shifted away from the logo. */
.site-shell .publication-row.publication-row-has-logo > .publication-row-body {
  position: relative !important;
  z-index: 2 !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: clamp(1.05rem, 2vw, 1.35rem) clamp(1.2rem, 3vw, 2.2rem) !important;
}

.site-shell .publication-row.publication-row-has-logo h3,
.site-shell .publication-row.publication-row-has-logo .publication-authors,
.site-shell .publication-row.publication-row-has-logo .publication-journal-line,
.site-shell .publication-row.publication-row-has-logo .publication-links {
  max-width: none !important;
}

/* Light mode uses a light scrim for dark logos and lowers logo opacity. */
html.light-mode .site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
  opacity: .42 !important;
  filter: saturate(.95) contrast(.98) !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-logo::after {
  background: linear-gradient(90deg,
    rgba(255,255,255,.82) 0%,
    rgba(255,255,255,.66) 24%,
    rgba(255,255,255,.38) 48%,
    rgba(255,255,255,.12) 70%,
    rgba(255,255,255,0) 100%) !important;
}

/* Keep generated initials for journals without a mapped real logo. */
.site-shell .publication-row:not(.publication-row-has-logo)::before {
  content: var(--journal-watermark) !important;
}

@media (max-width: 900px) {
  .site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
    max-width: 86% !important;
  }
}


/* v37 mode-aware logo and Gaussian splat viewer */
.site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
  width: min(58%, 780px) !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: left center !important;
}

.site-shell .publication-row.publication-row-has-mode-logo > .publication-logo-bg-light {
  display: none !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-mode-logo > .publication-logo-bg-dark {
  display: none !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-mode-logo > .publication-logo-bg-light {
  display: block !important;
}

html:not(.light-mode) .site-shell .publication-row.publication-row-has-mode-logo > .publication-logo-bg-light {
  display: none !important;
}

html:not(.light-mode) .site-shell .publication-row.publication-logo-invert-dark > .publication-logo-bg {
  filter: invert(1) hue-rotate(180deg) saturate(.95) contrast(1.05) !important;
}

html.light-mode .site-shell .publication-row.publication-logo-invert-dark > .publication-logo-bg {
  filter: saturate(.95) contrast(.98) !important;
}

html.light-mode .site-shell .publication-row.publication-logo-invert-light > .publication-logo-bg {
  filter: invert(1) hue-rotate(180deg) saturate(.95) contrast(1.05) !important;
}

.splat-card {
  border: 1px solid color-mix(in srgb, var(--branch-2) 34%, var(--line));
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--branch-2) 18%, transparent), transparent 24rem),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.splat-frame {
  position: relative;
  min-height: clamp(19rem, 52vw, 40rem);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 20%, rgba(253,195,0,.22), transparent 18rem),
    linear-gradient(135deg, rgba(213,59,10,.18), rgba(3,16,31,.72));
}

.splat-placeholder {
  max-width: 42rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  text-align: center;
}

.splat-placeholder h3 {
  margin: .25rem 0 .7rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.splat-placeholder p {
  color: var(--muted);
}

.splat-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.splat-credit {
  margin: 0;
  padding: 1rem clamp(1rem, 3vw, 1.4rem);
  border-top: 1px solid color-mix(in srgb, var(--branch-2) 20%, var(--line));
  color: var(--muted);
  font-size: .95rem;
}

.splat-credit a {
  color: var(--ink-strong);
  font-weight: 760;
}

html.light-mode .splat-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,252,.9));
  border-color: rgba(7,17,31,.16);
}

html.light-mode .splat-frame {
  background:
    radial-gradient(circle at 22% 20%, rgba(253,195,0,.20), transparent 18rem),
    linear-gradient(135deg, rgba(253,195,0,.12), rgba(229,240,248,.92));
}


/* v38 landing-card rotating image backgrounds */
.landing-card-has-slides {
  position: relative;
  overflow: hidden;
}
.landing-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}
.landing-card-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 7s ease;
  filter: saturate(1.02) contrast(1.04);
}
.landing-card-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.landing-card-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,15,28,.30), rgba(8,15,28,.46) 52%, rgba(8,15,28,.58)),
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.12), transparent 33rem),
    linear-gradient(90deg, rgba(5,10,20,.40), rgba(5,10,20,.12) 30%, rgba(5,10,20,.12) 70%, rgba(5,10,20,.40));
}
html.light-mode .landing-card-scrim {
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.72) 56%, rgba(255,255,255,.82)),
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.26), transparent 30rem),
    linear-gradient(90deg, rgba(255,255,255,.58), rgba(255,255,255,.18) 30%, rgba(255,255,255,.18) 70%, rgba(255,255,255,.58));
}
.landing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.06);
  pointer-events: none;
}
.landing-card-content {
  position: relative;
  z-index: 2;
}
.landing-card .tagline,
.landing-card h1 {
  text-shadow: 0 2px 18px rgba(255,255,255,.12), 0 5px 24px rgba(3,7,18,.28);
}
html.light-mode .landing-card .tagline,
html.light-mode .landing-card h1 {
  text-shadow: 0 2px 14px rgba(255,255,255,.74);
}
html.light-mode .landing-card-has-slides {
  background: rgba(255,255,255,.40);
}
@media (max-width: 900px) {
  .landing-card-slide { background-position: center center !important; }
  .landing-card-scrim {
    background:
      linear-gradient(180deg, rgba(8,15,28,.42), rgba(8,15,28,.56) 54%, rgba(8,15,28,.66)),
      linear-gradient(90deg, rgba(5,10,20,.54), rgba(5,10,20,.18) 30%, rgba(5,10,20,.18) 70%, rgba(5,10,20,.54));
  }
  html.light-mode .landing-card-scrim {
    background:
      linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.82) 56%, rgba(255,255,255,.90)),
      linear-gradient(90deg, rgba(255,255,255,.74), rgba(255,255,255,.20) 30%, rgba(255,255,255,.20) 70%, rgba(255,255,255,.74));
  }
}


/* v39 publication logo scale and contrast tuning
   Narrow/tall logos keep their aspect ratio inside a left-side logo lane instead
   of being enlarged/cropped to force a centre fade. Nature Communications and
   other explicitly marked dark logos are inverted in dark mode. */
.site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: min(30%, 22rem) !important;
  max-width: min(30%, 22rem) !important;
  object-fit: contain !important;
  object-position: left center !important;
  opacity: .70 !important;
  transform: none !important;
  filter: saturate(.95) contrast(.98) !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 58%,
    rgba(0,0,0,.48) 82%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 58%,
    rgba(0,0,0,.48) 82%,
    rgba(0,0,0,0) 100%
  ) !important;
}

/* The scrim protects text but no longer assumes that each logo reaches the centre. */
.site-shell .publication-row.publication-row-has-logo::after {
  background: linear-gradient(
    90deg,
    rgba(3,16,31,.64) 0%,
    rgba(3,16,31,.48) 16%,
    rgba(3,16,31,.22) 32%,
    rgba(3,16,31,.06) 50%,
    rgba(3,16,31,0) 100%
  ) !important;
}

/* Explicitly inverted dark logos: black-on-transparent/white logos become readable on dark rows. */
html:not(.light-mode) .site-shell .publication-row.publication-logo-invert-dark > .publication-logo-bg {
  filter: invert(1) hue-rotate(180deg) saturate(.95) contrast(1.06) !important;
  opacity: .76 !important;
}

html.light-mode .site-shell .publication-row.publication-logo-invert-dark > .publication-logo-bg {
  filter: saturate(.95) contrast(.98) !important;
}

/* Lighter journal/meta line in dark mode for better contrast. */
.site-shell .publication-journal-line {
  color: #5bc5f2 !important;
  font-weight: 820 !important;
  text-shadow: 0 1px 10px rgba(0,0,0,.36);
}

.site-shell .publication-links,
.site-shell .publication-link-item span {
  color: color-mix(in srgb, #a1d9f8 82%, white 8%) !important;
}

.site-shell .publication-link-item a {
  color: var(--ink-strong) !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
  opacity: .34 !important;
  filter: saturate(.92) contrast(.96) !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-logo::after {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.78) 0%,
    rgba(255,255,255,.56) 16%,
    rgba(255,255,255,.28) 32%,
    rgba(255,255,255,.08) 50%,
    rgba(255,255,255,0) 100%
  ) !important;
}

html.light-mode .site-shell .publication-journal-line {
  color: #004e9f !important;
  text-shadow: none !important;
}

html.light-mode .site-shell .publication-links,
html.light-mode .site-shell .publication-link-item span {
  color: #40566d !important;
}

@media (max-width: 900px) {
  .site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
    width: min(48%, 18rem) !important;
    max-width: min(48%, 18rem) !important;
  }
}


/* v40 publication logo sizing, placement, and contrast
   - Journal logos keep their aspect ratio.
   - Small/narrow logos may scale up enough to fill the row height.
   - Logos are moved slightly in from the left edge.
   - Text indentation is unified between logo and non-logo rows.
   - Nature Communications / dark logos are dimmed in dark mode for better contrast. */

/* Use the same comfortable text inset for all publication rows. */
.site-shell .publication-row > .publication-row-body,
.site-shell .publication-row.publication-row-has-logo > .publication-row-body {
  padding: clamp(1.15rem, 2.2vw, 1.55rem) clamp(1.4rem, 3.1vw, 2.35rem) !important;
  padding-left: clamp(1.55rem, 3.1vw, 2.35rem) !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* Logo lane: inset from edge, tall enough to fill the box, but constrained so it
   cannot sprawl across the text. Object-fit contain prevents distortion. */
.site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
  position: absolute !important;
  left: clamp(1.05rem, 2vw, 1.65rem) !important;
  top: 50% !important;
  height: calc(100% - clamp(.9rem, 2vw, 1.35rem)) !important;
  width: min(28%, 20rem) !important;
  max-width: min(28%, 20rem) !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: translateY(-50%) scale(1.16) !important;
  transform-origin: left center !important;
  opacity: .54 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  filter: saturate(.88) contrast(.92) brightness(.72) !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 54%,
    rgba(0,0,0,.52) 80%,
    rgba(0,0,0,0) 100%
  ) !important;
  mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 54%,
    rgba(0,0,0,.52) 80%,
    rgba(0,0,0,0) 100%
  ) !important;
}

/* The scrim now covers mostly the logo lane. This keeps text readable without
   making the entire row muddy. */
.site-shell .publication-row.publication-row-has-logo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      90deg,
      rgba(3,16,31,.58) 0%,
      rgba(3,16,31,.46) 15%,
      rgba(3,16,31,.24) 30%,
      rgba(3,16,31,.07) 48%,
      rgba(3,16,31,0) 100%
    ) !important;
}

/* Keep the content above the logo/scrim. The text still starts at the same inset
   as rows without logos, by design. */
.site-shell .publication-row.publication-row-has-logo > .publication-row-body {
  position: relative !important;
  z-index: 2 !important;
  grid-column: 1 / -1 !important;
}

/* Journal/meta line contrast in dark mode: use a lighter Oldenburg blue. */
.site-shell .publication-journal-line {
  color: #5bc5f2 !important;
  font-weight: 820 !important;
  text-shadow: 0 1px 10px rgba(0,0,0,.36);
}

/* Link-line metadata should also not vanish in dark mode. */
.site-shell .publication-links,
.site-shell .publication-link-item span {
  color: color-mix(in srgb, #a1d9f8 82%, white 8%) !important;
}

.site-shell .publication-link-item a {
  color: var(--ink-strong) !important;
}

/* Specific dark-mode treatment for dark-on-light logos: dim the bright white
   background and reduce contrast so it does not fight the white text. */
.site-shell .publication-row.publication-row-has-logo[data-journal*="Nature Communications"] > .publication-logo-bg,
.site-shell .publication-row.publication-row-has-logo[data-journal*="iScience"] > .publication-logo-bg,
.site-shell .publication-row.publication-row-has-logo[data-journal*="Cold Spring Harbor Protocols"] > .publication-logo-bg {
  opacity: .46 !important;
  filter: saturate(.82) contrast(.86) brightness(.58) !important;
}

/* Nature Communications was especially bright in dark mode. */
.site-shell .publication-row.publication-row-has-logo[data-journal*="Nature Communications"] > .publication-logo-bg {
  opacity: .40 !important;
  filter: saturate(.78) contrast(.78) brightness(.48) !important;
}

/* Light mode: use less darkening and a white scrim for logos behind black text. */
html.light-mode .site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
  opacity: .34 !important;
  filter: saturate(.90) contrast(.88) brightness(.96) !important;
}

html.light-mode .site-shell .publication-row.publication-row-has-logo::after {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.72) 0%,
      rgba(255,255,255,.54) 15%,
      rgba(255,255,255,.28) 30%,
      rgba(255,255,255,.08) 48%,
      rgba(255,255,255,0) 100%
    ) !important;
}

html.light-mode .site-shell .publication-journal-line {
  color: #004e9f !important;
  text-shadow: none !important;
}

html.light-mode .site-shell .publication-links,
html.light-mode .site-shell .publication-link-item span {
  color: #40566d !important;
}

/* Fallback initials remain available for unmapped journals. */
.site-shell .publication-row:not(.publication-row-has-logo)::before {
  content: var(--journal-watermark) !important;
}

@media (max-width: 900px) {
  .site-shell .publication-row.publication-row-has-logo > .publication-logo-bg {
    width: min(48%, 18rem) !important;
    max-width: min(48%, 18rem) !important;
    transform: translateY(-50%) scale(1.08) !important;
  }
}


/* v42 publication simplification: no journal logos or watermark initials.
   Publication rows now rely only on the journal/year/publisher text in the top row. */
.site-shell .publication-row::before,
.site-shell .publication-row::after,
.site-shell .publication-row.publication-row-has-logo::before,
.site-shell .publication-row.publication-row-has-logo::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.site-shell .publication-logo-bg,
.site-shell .publication-logo-bg-dark,
.site-shell .publication-logo-bg-light {
  display: none !important;
}

.site-shell .publication-row,
.site-shell .publication-row.publication-row-has-logo {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  overflow: hidden !important;
  isolation: auto !important;
}

.site-shell .publication-row > .publication-row-body,
.site-shell .publication-row.publication-row-has-logo > .publication-row-body {
  position: relative !important;
  z-index: 1 !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: clamp(1.15rem, 2.2vw, 1.55rem) clamp(1.4rem, 3.1vw, 2.35rem) !important;
}

.site-shell .publication-journal-line {
  color: #5bc5f2 !important;
  font-weight: 820 !important;
  text-shadow: 0 1px 10px rgba(0,0,0,.32);
}

html.light-mode .site-shell .publication-journal-line {
  color: #004e9f !important;
  text-shadow: none !important;
}


/* v43 member-publication headshots
   In the collapsed member-publication section, each publication row can show
   the corresponding person's headshot on the left. */
.site-shell .publication-row.publication-row-with-person {
  display: grid !important;
  grid-template-columns: clamp(5.4rem, 9vw, 7.6rem) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: clamp(1rem, 2.2vw, 1.5rem) !important;
}

.site-shell .publication-row-with-person > .publication-person-photo {
  grid-column: 1 !important;
  align-self: stretch !important;
  width: 100% !important;
  min-height: 100% !important;
  border-radius: calc(var(--radius-md) - .35rem);
  overflow: hidden;
  display: block;
  border: 1px solid color-mix(in srgb, var(--branch-2) 30%, var(--line));
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.site-shell .publication-row-with-person > .publication-person-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(7rem, 12vw, 9rem) !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  filter: saturate(.98) contrast(1.02);
}

.site-shell .publication-row-with-person > .publication-person-photo-fallback {
  min-height: clamp(7rem, 12vw, 9rem) !important;
  display: grid !important;
  place-items: center !important;
  color: var(--ink-strong);
  font-weight: 850;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  letter-spacing: .03em;
}

.site-shell .publication-row-with-person > .publication-row-body {
  grid-column: 2 !important;
  padding-left: 0 !important;
}

html.light-mode .site-shell .publication-row-with-person > .publication-person-photo {
  background: linear-gradient(180deg, #ffffff, #edf3f8);
  border-color: rgba(7,17,31,.16);
}

@media (max-width: 720px) {
  .site-shell .publication-row.publication-row-with-person {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .site-shell .publication-row-with-person > .publication-person-photo {
    width: clamp(5.4rem, 26vw, 7rem) !important;
    height: clamp(5.4rem, 26vw, 7rem) !important;
    min-height: 0 !important;
    margin-bottom: .75rem;
  }

  .site-shell .publication-row-with-person > .publication-person-photo img {
    min-height: 0 !important;
  }

  .site-shell .publication-row-with-person > .publication-row-body {
    grid-column: 1 !important;
    padding-left: 0 !important;
  }
}


/* v45 animated spectrogram landing */
.landing-page-v45 { --landing-card-max: min(1030px, calc(100vw - 112px)); }
.landing-page-v45 .landing-keyword-band {
  position: absolute;
  top: clamp(1rem, 3vh, 1.65rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 100px));
  overflow: hidden;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(0,90,169,.16), rgba(3,7,18,.14), rgba(242,140,40,.16));
  box-shadow: 0 12px 28px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
}
html.light-mode .landing-page-v45 .landing-keyword-band {
  border-color: rgba(7,17,31,.12);
  background: linear-gradient(90deg, rgba(47,143,255,.14), rgba(255,255,255,.84), rgba(255,157,77,.14));
}
.landing-page-v45 .keyword-track {
  display: flex;
  width: max-content;
  gap: 2.6rem;
  padding: .68rem 1rem;
  animation: landingMarquee 26s linear infinite;
  color: color-mix(in srgb, var(--ink-strong) 72%, var(--branch-2));
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 760;
  white-space: nowrap;
}
.landing-page-v45 .keyword-track span { display: inline-block; }
@keyframes landingMarquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

.branch-panels-v45 { z-index: 0; }
.branch-panels-v45 .branch-panel {
  --spectrum-opacity: .66;
  --resolution-grid-x: 4px;
  --resolution-grid-y: 4px;
  --resolution-overlay-opacity: .16;
  --spectrum-scale: 110%;
  --spectrum-brightness: 1.05;
  --spectrum-blur: 0px;
  padding: 2rem 1.4rem 2.15rem;
  justify-content: flex-end;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}
.branch-panels-v45 .branch-panel::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(3,7,18,.12), rgba(3,7,18,.38) 48%, rgba(3,7,18,.74) 100%);
}
html.light-mode .branch-panels-v45 .branch-panel::before {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.16) 48%, rgba(255,255,255,.44) 100%);
}
.branch-panels-v45 .branch-panel::after {
  inset: auto 1rem 1rem 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  opacity: .9;
}
.branch-panels-v45 .branch-spectrum,
.branch-panels-v45 .branch-noise {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.branch-panels-v45 .branch-spectrum {
  inset: -10% 0 -10% 0;
  opacity: var(--spectrum-opacity);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  filter: saturate(1.12) brightness(var(--spectrum-brightness)) contrast(1.04);
  mix-blend-mode: screen;
  will-change: transform, opacity, filter;
  transform: translate3d(0,0,0);
  animation: spectrogramDrift 14s linear infinite alternate;
}
.branch-panels-v45 .branch-spectrum::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,7,18,.08), transparent 20%, transparent 80%, rgba(3,7,18,.26)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 var(--resolution-grid-x), transparent var(--resolution-grid-x) calc(var(--resolution-grid-x) * 2)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 var(--resolution-grid-y), transparent var(--resolution-grid-y) calc(var(--resolution-grid-y) * 2));
  opacity: var(--resolution-overlay-opacity);
  mix-blend-mode: overlay;
}
.branch-panels-v45 .branch-noise {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--branch-2) 16%, transparent), transparent 16rem),
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--branch) 18%, transparent), transparent 20rem),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.14) 55%, rgba(0,0,0,.28) 100%);
  opacity: .94;
}
html.light-mode .branch-panels-v45 .branch-noise {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--branch-2) 12%, transparent), transparent 16rem),
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--branch) 12%, transparent), transparent 20rem),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.18) 55%, rgba(255,255,255,.36) 100%);
}
.branch-panels-v45 .branch-content { position: relative; z-index: 2; display: grid; gap: .28rem; max-width: 20rem; }
.branch-panels-v45 .branch-level {
  color: color-mix(in srgb, var(--branch-2) 58%, white 35%);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .74rem;
  font-weight: 760;
}
html.light-mode .branch-panels-v45 .branch-level { color: color-mix(in srgb, var(--branch) 78%, #09111d 22%); }
.branch-panels-v45 .branch-label { opacity: .88; }
.branch-panels-v45 .branch-sub {
  position: relative;
  z-index: 2;
  color: rgba(229,236,244,.88);
  font-size: .95rem;
  line-height: 1.34;
  max-width: 18rem;
}
html.light-mode .branch-panels-v45 .branch-sub { color: rgba(7,17,31,.78); }
.branch-panels-v45 .branch-blue { --resolution-grid-x: 2px; --resolution-grid-y: 2px; --resolution-overlay-opacity: .06; --spectrum-opacity: .76; --spectrum-brightness: 1.08; }
.branch-panels-v45 .branch-green { --resolution-grid-x: 10px; --resolution-grid-y: 10px; --resolution-overlay-opacity: .13; --spectrum-opacity: .66; --spectrum-brightness: 1.03; }
.branch-panels-v45 .branch-orange { --resolution-grid-x: 26px; --resolution-grid-y: 26px; --resolution-overlay-opacity: .18; --spectrum-opacity: .60; --spectrum-brightness: .98; }
.branch-panels-v45 .branch-blue .branch-spectrum { background-image: url("../img/landing/spectrogram-vertical-hi.png"); animation-duration: 12s; }
.branch-panels-v45 .branch-green .branch-spectrum { background-image: url("../img/landing/spectrogram-vertical-med.png"); animation-duration: 15s; }
.branch-panels-v45 .branch-orange .branch-spectrum { background-image: url("../img/landing/spectrogram-vertical-low.png"); animation-duration: 18s; image-rendering: pixelated; }
@keyframes spectrogramDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-10%,0); } }

.branch-panels:has(.branch-panel:hover) .branch-panel,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel { filter: saturate(.84) brightness(.72); }
.branch-panels:has(.branch-panel:hover) .branch-panel:hover,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel:focus-visible {
  filter: saturate(1.16) brightness(1.08);
}
.branch-panels:has(.branch-panel:hover) .branch-panel:hover .branch-spectrum,
.branch-panels:has(.branch-panel:focus-visible) .branch-panel:focus-visible .branch-spectrum {
  opacity: .92;
  filter: saturate(1.32) brightness(1.14) contrast(1.08);
}
html.light-mode .branch-panels:has(.branch-panel:hover) .branch-panel,
html.light-mode .branch-panels:has(.branch-panel:focus-visible) .branch-panel { filter: saturate(.92) brightness(.95); }
html.light-mode .branch-panels:has(.branch-panel:hover) .branch-panel:hover,
html.light-mode .branch-panels:has(.branch-panel:focus-visible) .branch-panel:focus-visible { filter: saturate(1.12) brightness(1.04); }

.landing-page-v45 .landing-center {
  align-items: start;
  min-height: calc(100svh - var(--header-h));
  padding-top: clamp(4.4rem, 11vh, 7.4rem);
}
.landing-page-v45 .landing-card-v45 {
  width: var(--landing-card-max);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: rgba(3,7,18,.54);
  backdrop-filter: blur(22px) saturate(1.15);
}
html.light-mode .landing-page-v45 .landing-card-v45 { background: rgba(255,255,255,.70); }
.landing-page-v45 .landing-card-media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.landing-page-v45 .landing-card-slide { position: absolute; inset: 0; opacity: 0; background-size: cover; background-repeat: no-repeat; transition: opacity 900ms ease; transform: scale(1.02); filter: saturate(.9) brightness(.74); }
html.light-mode .landing-page-v45 .landing-card-slide { filter: saturate(.88) brightness(1.18) contrast(.88); }
.landing-page-v45 .landing-card-slide.is-active { opacity: 1; }
.landing-page-v45 .landing-card-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,7,18,.52), rgba(3,7,18,.66) 46%, rgba(3,7,18,.72)),
              radial-gradient(circle at 18% 15%, rgba(47,143,255,.18), transparent 20rem),
              radial-gradient(circle at 82% 14%, rgba(255,157,77,.14), transparent 22rem),
              linear-gradient(90deg, rgba(5,34,84,.28), transparent 38%, rgba(154,57,0,.16));
}
html.light-mode .landing-page-v45 .landing-card-scrim {
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.80) 46%, rgba(255,255,255,.78)),
              radial-gradient(circle at 18% 15%, rgba(47,143,255,.12), transparent 20rem),
              radial-gradient(circle at 82% 14%, rgba(255,157,77,.10), transparent 22rem),
              linear-gradient(90deg, rgba(5,34,84,.05), transparent 38%, rgba(154,57,0,.06));
}
.landing-page-v45 .landing-card-content { position: relative; z-index: 2; }
.landing-page-v45 .landing-logo-lockup { margin-bottom: .55rem; }
.landing-page-v45 .landing-logo { width: clamp(320px, 34vw, 540px); max-height: 190px; }
.landing-page-v45 .landing-card h1 { max-width: 11.5ch; margin-inline: auto; }
.landing-page-v45 .landing-card .tagline { max-width: 58ch; }
.landing-page-v45 .landing-help { width: min(820px, 100%); margin-top: 1rem; }

@media (max-width: 1080px) {
  .landing-page-v45 .landing-keyword-band { width: min(1080px, calc(100vw - 64px)); }
  .landing-page-v45 .keyword-track { font-size: .72rem; letter-spacing: .21em; }
  .landing-page-v45 .landing-center { padding-top: 5.4rem; }
  .branch-panels-v45 .branch-panel { padding-inline: 1rem; }
  .branch-panels-v45 .branch-sub { font-size: .88rem; }
}
@media (max-width: 780px) {
  .landing-page-v45 .landing-keyword-band {
    position: relative;
    top: auto; left: auto; transform: none;
    width: calc(100vw - 32px);
    margin: 1rem auto 0;
  }
  .landing-page-v45 { display: flex; flex-direction: column; }
  .landing-page-v45 .landing-center { order: 2; min-height: auto; padding: 1rem; }
  .branch-panels-v45 { order: 3; position: relative; grid-template-columns: 1fr; min-height: auto; }
  .branch-panels-v45 .branch-panel { min-height: 12rem; }
  .branch-panels-v45 .branch-sub { max-width: none; }
  .landing-page-v45 .landing-card-v45 { width: min(100%, 820px); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page-v45 .keyword-track, .branch-panels-v45 .branch-spectrum { animation: none !important; }
}


/* v47 landing performance + waterfall reveal */
.landing-page-v45 {
  --v47-purple-1: #1a1324;
  --v47-purple-2: #281a38;
  --v47-purple-3: #4f2d7f;
  --v47-purple-4: #a77cff;
  --v47-ink-soft: rgba(242, 236, 255, 0.90);
}
.landing-page-v45 .landing-keyword-band {
  width: min(1120px, calc(100vw - 96px));
  backdrop-filter: blur(8px);
  background: linear-gradient(90deg, rgba(97,65,171,.14), rgba(16,10,26,.18), rgba(97,65,171,.14));
  border-color: rgba(204,187,255,.16);
}
html.light-mode .landing-page-v45 .landing-keyword-band {
  background: linear-gradient(90deg, rgba(122,91,194,.10), rgba(255,255,255,.86), rgba(122,91,194,.10));
  border-color: rgba(79,45,127,.12);
}
.landing-page-v45 .keyword-track {
  gap: 2rem;
  padding: .62rem .9rem;
  animation: landingMarquee 34s linear infinite;
  color: rgba(233,226,255,.86);
  font-size: .78rem;
  letter-spacing: .22em;
}
html.light-mode .landing-page-v45 .keyword-track { color: #5b3ea1; }

.branch-panels-v45 {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 4px;
  background: linear-gradient(180deg, rgba(5,4,9,0.14), rgba(5,4,9,0.30));
}
.branch-panels-v45 .branch-panel {
  border-left: 0 !important;
  background: linear-gradient(180deg, rgba(20,14,30,.84), rgba(12,9,18,.94));
  box-shadow: inset 0 0 0 1px rgba(206,190,255,.07);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
  filter: none !important;
}
html.light-mode .branch-panels-v45 .branch-panel {
  background: linear-gradient(180deg, rgba(247,244,252,.95), rgba(236,230,247,.98));
  box-shadow: inset 0 0 0 1px rgba(79,45,127,.08);
}
.branch-panels-v45 .branch-blue,
.branch-panels-v45 .branch-green,
.branch-panels-v45 .branch-orange { background-image: none !important; }
.branch-panels-v45 .branch-spectrum,
.branch-panels-v45 .branch-noise {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.branch-panels-v45 .branch-spectrum {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  opacity: .95;
  will-change: opacity;
}
.branch-panels-v45 .branch-blue .branch-spectrum { background-image: url("../img/landing/spectrogram-vertical-hi.webp"); }
.branch-panels-v45 .branch-green .branch-spectrum { background-image: url("../img/landing/spectrogram-vertical-med.webp"); }
.branch-panels-v45 .branch-orange .branch-spectrum { background-image: url("../img/landing/spectrogram-vertical-low.webp"); image-rendering: pixelated; }
.branch-panels-v45 .branch-spectrum::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,6,14,.96), rgba(16,10,26,.92));
  transform-origin: bottom center;
  transform: scaleY(1);
  animation: waterfallReveal 2.15s cubic-bezier(.22,.7,.18,1) forwards;
}
html.light-mode .branch-panels-v45 .branch-spectrum::before {
  background: linear-gradient(180deg, rgba(249,246,253,.96), rgba(239,233,248,.92));
}
.branch-panels-v45 .branch-blue .branch-spectrum::before { animation-delay: .08s; }
.branch-panels-v45 .branch-green .branch-spectrum::before { animation-delay: .7s; }
.branch-panels-v45 .branch-orange .branch-spectrum::before { animation-delay: 1.32s; }
.branch-panels-v45 .branch-spectrum::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,7,16,.12), transparent 22%, transparent 80%, rgba(10,7,16,.26)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 var(--resolution-grid-x), transparent var(--resolution-grid-x) calc(var(--resolution-grid-x) * 2)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 var(--resolution-grid-y), transparent var(--resolution-grid-y) calc(var(--resolution-grid-y) * 2));
  opacity: var(--resolution-overlay-opacity);
}
.branch-panels-v45 .branch-noise {
  background: linear-gradient(180deg, rgba(75,49,122,.06), rgba(18,12,29,.10) 50%, rgba(9,7,14,.28) 100%);
}
html.light-mode .branch-panels-v45 .branch-noise {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.10) 50%, rgba(126,94,177,.10) 100%);
}
.branch-panels-v45 .branch-blue { --resolution-grid-x: 2px; --resolution-grid-y: 2px; --resolution-overlay-opacity: .08; }
.branch-panels-v45 .branch-green { --resolution-grid-x: 10px; --resolution-grid-y: 10px; --resolution-overlay-opacity: .13; }
.branch-panels-v45 .branch-orange { --resolution-grid-x: 26px; --resolution-grid-y: 26px; --resolution-overlay-opacity: .18; }
@keyframes waterfallReveal {
  0% { transform: scaleY(1); }
  82% { transform: scaleY(.14); }
  100% { transform: scaleY(0); }
}
.branch-panels-v45 .branch-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: .34rem;
  align-self: stretch;
  max-width: 20rem;
}
.branch-panels-v45 .branch-level {
  color: #cfbcff;
  font-size: .72rem;
  letter-spacing: .22em;
}
html.light-mode .branch-panels-v45 .branch-level { color: #7b59bf; }
.branch-panels-v45 .branch-label {
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0,0,0,.30);
}
html.light-mode .branch-panels-v45 .branch-label { color: #20152d; text-shadow: none; }
.branch-panels-v45 .branch-sub { color: var(--v47-ink-soft); }
html.light-mode .branch-panels-v45 .branch-sub { color: rgba(32,21,45,.78); }
.branch-panels-v45 .branch-panel:hover,
.branch-panels-v45 .branch-panel:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(223,212,255,.18), 0 8px 22px rgba(0,0,0,.14);
}
.branch-panels-v45 .branch-panel:hover .branch-spectrum,
.branch-panels-v45 .branch-panel:focus-visible .branch-spectrum { opacity: 1; }
.branch-panels-v45 .branch-panel:hover .branch-noise,
.branch-panels-v45 .branch-panel:focus-visible .branch-noise { background: linear-gradient(180deg, rgba(108,76,175,.04), rgba(18,12,29,.06) 50%, rgba(9,7,14,.16) 100%); }

.landing-page-v45 .landing-center { padding-top: clamp(4.6rem, 11vh, 7rem); }
.landing-page-v45 .landing-card-v47 {
  width: min(980px, calc(100vw - 120px));
  background: rgba(10,7,16,.56);
  backdrop-filter: blur(14px) saturate(1.05);
}
html.light-mode .landing-page-v45 .landing-card-v47 { background: rgba(255,255,255,.76); }
.landing-page-v45 .landing-card-v47 .landing-card-slide {
  filter: saturate(.94) brightness(.72);
  transform: none;
  transition: none;
}
html.light-mode .landing-page-v45 .landing-card-v47 .landing-card-slide { filter: saturate(.90) brightness(1.06) contrast(.90); }
.landing-page-v45 .landing-card-v47 .landing-card-scrim {
  background: linear-gradient(180deg, rgba(9,6,15,.44), rgba(10,7,16,.60) 48%, rgba(10,7,16,.68)),
              radial-gradient(circle at 22% 18%, rgba(125,90,204,.20), transparent 18rem),
              linear-gradient(90deg, rgba(44,27,71,.22), rgba(255,255,255,0) 42%, rgba(44,27,71,.16));
}
html.light-mode .landing-page-v45 .landing-card-v47 .landing-card-scrim {
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.80) 48%, rgba(255,255,255,.84)),
              radial-gradient(circle at 22% 18%, rgba(125,90,204,.12), transparent 18rem),
              linear-gradient(90deg, rgba(125,90,204,.06), rgba(255,255,255,0) 42%, rgba(125,90,204,.04));
}
.landing-page-v45 .landing-help { max-width: 62ch; }
@media (max-width: 780px) {
  .branch-panels-v45 { position: relative; gap: 6px; padding: 0 10px 10px; background: none; }
  .branch-panels-v45 .branch-panel { min-height: 11rem; }
  .landing-page-v45 .landing-card-v47 { width: min(100%, 840px); }
  .landing-page-v45 .landing-keyword-band { width: calc(100vw - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page-v45 .keyword-track { animation: none !important; }
  .branch-panels-v45 .branch-spectrum::before { animation: none !important; transform: scaleY(0); }
}


/* v48 landing stack renderer: waveform + FFT + waterfall, optimized */
.landing-page-v45 {
  --stack-dark-overlay: linear-gradient(180deg, rgba(6,5,12,.985), rgba(10,7,18,.965));
  --stack-light-overlay: linear-gradient(180deg, rgba(248,246,252,.98), rgba(241,237,248,.95));
}
.branch-panels-v45 {
  gap: 6px;
  padding: 0 6px;
}
.branch-panels-v45 .branch-panel {
  overflow: hidden;
}
.branch-panels-v45 .branch-spectrum {
  inset: 0;
  opacity: 1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  mix-blend-mode: normal !important;
  filter: saturate(1.02) contrast(1.02) !important;
  animation: none !important;
  will-change: auto !important;
  transform: none !important;
}
.branch-panels-v45 .branch-blue .branch-spectrum { background-image: url("../img/landing/stack-hi.webp") !important; }
.branch-panels-v45 .branch-green .branch-spectrum { background-image: url("../img/landing/stack-med.webp") !important; }
.branch-panels-v45 .branch-orange .branch-spectrum {
  background-image: url("../img/landing/stack-low.webp") !important;
  image-rendering: pixelated;
}
.branch-panels-v45 .branch-spectrum::after,
.branch-panels-v45 .branch-noise { display: none !important; }
.branch-panels-v45 .branch-spectrum::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stack-dark-overlay);
  transform-origin: bottom center;
  transform: scaleY(1);
  animation: waterfallReveal 1.45s cubic-bezier(.22,.7,.18,1) forwards;
  pointer-events: none;
}
html.light-mode .branch-panels-v45 .branch-spectrum::before { background: var(--stack-light-overlay); }
.branch-panels-v45 .branch-blue .branch-spectrum::before { animation-delay: .12s; }
.branch-panels-v45 .branch-green .branch-spectrum::before { animation-delay: .48s; }
.branch-panels-v45 .branch-orange .branch-spectrum::before { animation-delay: .84s; }
.branch-panels-v45 .branch-panel::before {
  background: linear-gradient(180deg, rgba(4,3,9,.18), rgba(4,3,9,.34) 40%, rgba(4,3,9,.74) 100%);
}
html.light-mode .branch-panels-v45 .branch-panel::before {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.10) 40%, rgba(255,255,255,.42) 100%);
}
.branch-panels-v45 .branch-content,
.branch-panels-v45 .branch-title,
.branch-panels-v45 .branch-sub,
.branch-panels-v45 .branch-level { position: relative; z-index: 2; }
.branch-panels-v45 .branch-content {
  margin-top: auto;
  padding-top: .6rem;
  background: linear-gradient(180deg, transparent, rgba(7,6,16,.14) 16%, rgba(7,6,16,.44) 54%, rgba(7,6,16,.74) 100%);
}
html.light-mode .branch-panels-v45 .branch-content {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.10) 16%, rgba(255,255,255,.42) 54%, rgba(255,255,255,.72) 100%);
}
.branch-panels-v45 .branch-level { color: #d8c7ff; }
html.light-mode .branch-panels-v45 .branch-level { color: #5e3fa6; }
.branch-panels-v45 .branch-sub { color: rgba(245,241,255,.93); }
html.light-mode .branch-panels-v45 .branch-sub { color: rgba(10,17,31,.78); }

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .branch-panels-v45 .branch-spectrum::before {
    animation: none !important;
    transform: scaleY(0) !important;
  }
  .branch-panels-v45 .branch-panel,
  .branch-panels-v45 .branch-spectrum { transition: none !important; }
}


/* v49 landing stack refinement: smaller waveform/FFT, animated waterfall only */
.landing-page-v45 {
  --branch-top-slice: 24%;
  --branch-water-start: 24%;
  --branch-water-cover-dark: linear-gradient(180deg, rgba(8,6,15,.985), rgba(12,8,22,.965));
  --branch-water-cover-light: linear-gradient(180deg, rgba(248,246,252,.985), rgba(239,236,247,.965));
}
.branch-panels-v45 .branch-spectrum {
  inset: 0;
  overflow: hidden;
  opacity: 1;
  background-repeat: no-repeat;
  background-size: 100% var(--branch-top-slice);
  background-position: center top;
  animation: none !important;
  filter: saturate(1.04) contrast(1.02) !important;
}
.branch-panels-v45 .branch-blue .branch-spectrum { background-image: url("../img/landing/branch-top-hi.webp") !important; }
.branch-panels-v45 .branch-green .branch-spectrum { background-image: url("../img/landing/branch-top-med.webp") !important; }
.branch-panels-v45 .branch-orange .branch-spectrum { background-image: url("../img/landing/branch-top-low.webp") !important; }
.branch-panels-v45 .branch-spectrum::after {
  content: "";
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--branch-water-start);
  bottom: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
  opacity: 1;
  animation: spectrogramWaterShift 8.8s ease-in-out infinite alternate;
}
.branch-panels-v45 .branch-blue .branch-spectrum::after { background-image: url("../img/landing/branch-water-hi.webp") !important; }
.branch-panels-v45 .branch-green .branch-spectrum::after { background-image: url("../img/landing/branch-water-med.webp") !important; }
.branch-panels-v45 .branch-orange .branch-spectrum::after {
  background-image: url("../img/landing/branch-water-low.webp") !important;
  image-rendering: pixelated;
}
.branch-panels-v45 .branch-spectrum::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--branch-water-start);
  bottom: 0;
  background: var(--branch-water-cover-dark);
  transform-origin: bottom center;
  transform: scaleY(1);
  animation: waterfallOnlyReveal 1.8s cubic-bezier(.18,.72,.16,.99) forwards;
  z-index: 1;
  pointer-events: none;
}
html.light-mode .branch-panels-v45 .branch-spectrum::before { background: var(--branch-water-cover-light); }
.branch-panels-v45 .branch-blue .branch-spectrum::before { animation-delay: .08s; }
.branch-panels-v45 .branch-green .branch-spectrum::before { animation-delay: .44s; }
.branch-panels-v45 .branch-orange .branch-spectrum::before { animation-delay: .8s; }
.branch-panels-v45 .branch-panel::before {
  background: linear-gradient(180deg, rgba(4,3,9,.14), rgba(4,3,9,.26) 28%, rgba(4,3,9,.62) 100%);
}
html.light-mode .branch-panels-v45 .branch-panel::before {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.08) 28%, rgba(255,255,255,.42) 100%);
}
.branch-panels-v45 .branch-content {
  background: linear-gradient(180deg, transparent, rgba(7,6,16,.08) 10%, rgba(7,6,16,.36) 42%, rgba(7,6,16,.76) 100%);
}
html.light-mode .branch-panels-v45 .branch-content {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.10) 10%, rgba(255,255,255,.38) 42%, rgba(255,255,255,.78) 100%);
}
@keyframes spectrogramWaterShift {
  0% { transform: translateY(0%); filter: saturate(1) brightness(1); }
  100% { transform: translateY(-2.25%); filter: saturate(1.05) brightness(1.04); }
}
@keyframes waterfallOnlyReveal {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .landing-page-v45 { --branch-top-slice: 22%; --branch-water-start: 22%; }
  .branch-panels-v45 .branch-spectrum::before {
    animation: none !important;
    transform: scaleY(0) !important;
  }
  .branch-panels-v45 .branch-spectrum::after {
    animation: none !important;
    transform: none !important;
  }
}


/* v50 landing audio visualizer and bottom marquee */
body.has-landing-bottom-marquee .landing-page-v45,
body.has-landing-bottom-marquee .landing-page { padding-bottom: 4.6rem; }
body.has-landing-bottom-marquee .branch-panels-v45 .branch-panel { padding-bottom: 4.7rem; }

.landing-bottom-marquee {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
}
.landing-bottom-separator {
  height: 3px;
  background: linear-gradient(90deg, #4a2b78 0%, #7050a8 18%, #9b79d9 34%, #d6c4ff 50%, #9b79d9 66%, #7050a8 82%, #4a2b78 100%);
  opacity: .96;
}
.landing-bottom-separator.bottom { opacity: .72; }
.landing-bottom-marquee-inner {
  overflow: hidden;
  background: rgba(5, 4, 12, .92);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
}
html.light-mode .landing-bottom-marquee-inner {
  background: rgba(247, 244, 252, .94);
  border-top-color: rgba(17, 22, 36, .07);
  border-bottom-color: rgba(17, 22, 36, .06);
}
.landing-bottom-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  padding: .72rem 1rem;
  animation: landingBottomMarquee 36s linear infinite;
  white-space: nowrap;
  color: color-mix(in srgb, var(--ink-strong) 80%, #a88ae7);
  font-family: var(--font-tech);
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 780;
}
.landing-bottom-track span { display: inline-block; }
@keyframes landingBottomMarquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

.landing-audio-enhanced .branch-panels-v45 .branch-spectrum {
  inset: 0 !important;
  opacity: 1 !important;
  background: none !important;
  animation: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  overflow: hidden;
}
.landing-audio-enhanced .branch-panels-v45 .branch-spectrum::before,
.landing-audio-enhanced .branch-panels-v45 .branch-spectrum::after {
  content: none !important;
  display: none !important;
}
.landing-audio-enhanced .branch-panels-v45 .branch-noise {
  opacity: .78;
}
.landing-audio-enhanced .branch-spectrum-canvas {
  position: absolute;
  left: 0;
  width: 100%;
  display: block;
}
.landing-audio-enhanced .branch-spectrum-top {
  top: 0;
  height: 23.5%;
}
.landing-audio-enhanced .branch-spectrum-water {
  top: 23.5%;
  height: 76.5%;
}
.landing-audio-enhanced .branch-spectrum-water.is-pixelated {
  image-rendering: pixelated;
}
.landing-audio-enhanced .branch-panels-v45 .branch-panel::before {
  background: linear-gradient(180deg, rgba(4,4,12,.08), rgba(4,4,12,.16) 18%, rgba(4,4,12,.46) 54%, rgba(4,4,12,.74) 100%);
}
html.light-mode .landing-audio-enhanced .branch-panels-v45 .branch-panel::before {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.12) 18%, rgba(255,255,255,.34) 54%, rgba(255,255,255,.56) 100%);
}
.landing-audio-enhanced .branch-panels-v45 .branch-panel::after {
  inset: 0;
  height: auto;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 108px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 96px);
  opacity: .22;
}
@media (max-width: 900px), (hover: none) and (pointer: coarse), (prefers-reduced-motion: reduce) {
  .landing-bottom-track,
  .landing-page-v45 .keyword-track { animation-duration: 48s; }
  body.has-landing-bottom-marquee .branch-panels-v45 .branch-panel { padding-bottom: 4rem; }
}


/* v51 landing and section refinements */
.landing-page-v45 .landing-keyword-band { display: none !important; }
.landing-page-v45 .landing-center {
  padding-top: clamp(2.4rem, 7vh, 4.8rem);
  min-height: calc(100svh - var(--header-h));
}
body.has-landing-bottom-marquee .landing-page-v45,
body.has-landing-bottom-marquee .landing-page { padding-bottom: 5.25rem; }
body.has-landing-bottom-marquee .branch-panels-v45 .branch-panel { padding-bottom: 5.55rem; }

.landing-bottom-marquee { z-index: 60; }
.landing-bottom-separator { height: 4px; }
.landing-bottom-marquee-inner {
  background: rgba(5, 4, 12, .94);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
html.light-mode .landing-bottom-marquee-inner { background: rgba(247, 244, 252, .96); }
.landing-bottom-track {
  gap: 4rem;
  padding: .9rem 1.25rem;
  animation-duration: 40s;
  font-size: .98rem;
  letter-spacing: .34em;
  font-weight: 860;
}
@media (max-width: 900px) {
  .landing-bottom-track { font-size: .82rem; letter-spacing: .24em; padding: .78rem 1rem; }
  body.has-landing-bottom-marquee .landing-page-v45,
  body.has-landing-bottom-marquee .landing-page { padding-bottom: 4.95rem; }
  body.has-landing-bottom-marquee .branch-panels-v45 .branch-panel { padding-bottom: 4.8rem; }
}

/* darker, cleaner audio backdrop */
.landing-audio-enhanced .branch-panels-v45 .branch-spectrum-canvas { image-rendering: auto; }
.landing-audio-enhanced .branch-panels-v45 .branch-spectrum-top,
.landing-audio-enhanced .branch-panels-v45 .branch-spectrum-water {
  background: rgba(1, 1, 4, .94);
}
.landing-audio-enhanced .branch-panels-v45 .branch-spectrum-water.is-pixelated {
  image-rendering: pixelated;
}
.landing-audio-enhanced .branch-panels-v45 .branch-noise {
  background:
    radial-gradient(circle at 18% 18%, rgba(120, 86, 200, .07), transparent 15rem),
    radial-gradient(circle at 80% 22%, rgba(186, 160, 255, .05), transparent 19rem),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.18) 55%, rgba(0,0,0,.32) 100%);
  opacity: 1;
}
html.light-mode .landing-audio-enhanced .branch-panels-v45 .branch-noise {
  background:
    radial-gradient(circle at 18% 18%, rgba(120, 86, 200, .05), transparent 15rem),
    radial-gradient(circle at 80% 22%, rgba(186, 160, 255, .04), transparent 19rem),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.14) 55%, rgba(255,255,255,.24) 100%);
}

/* separation line and slide-up page-intro behaviour inspired by gianoli */
.page-hero.hero {
  position: relative;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(1.1rem, 3vw, 1.8rem);
}
.page-hero.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.58) 18%, rgba(255,255,255,.18) 82%, rgba(255,255,255,.08));
}
html.light-mode .page-hero.hero::after {
  background: linear-gradient(90deg, rgba(17,22,36,.12), rgba(17,22,36,.58) 18%, rgba(17,22,36,.16) 82%, rgba(17,22,36,.05));
}
.page-hero.hero .hero-grid {
  animation: heroRiseLine .8s cubic-bezier(.22,.86,.24,1) both;
}
@keyframes heroRiseLine {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}


/* v52 landing panel cleanup */
.branch-panels-v45 { gap: 16px !important; padding: 0 12px !important; }
.branch-panels-v45 .branch-level { display: none !important; }
.branch-panels-v45 .branch-content { gap: .46rem !important; }
.branch-panels-v45 .branch-panel { min-width: 0; }
@media (max-width: 900px) {
  .branch-panels-v45 { gap: 12px !important; padding: 0 10px !important; }
}


/* v53 brand and landing refinements */
.brand { gap: .78rem; }
.brand-mark { display:block; width:auto; height: clamp(38px, 3.6vw, 46px); flex: 0 0 auto; }
.brand-wordmark { display:flex; flex-direction:column; line-height:1.02; gap:.14rem; min-width:0; }
.brand-line { display:block; letter-spacing:.01em; font-family: inherit; }
.brand-line-main { font-size: clamp(.9rem, 1.08vw, 1.05rem); font-weight: 700; color: #8ee0ff; }
.brand-line-sub { font-size: clamp(.8rem, .92vw, .92rem); font-weight: 600; color: #53c8ff; }
html.light-mode .brand-line-main { color: #0f4a84; }
html.light-mode .brand-line-sub { color: #1685c7; }
.brand-logo { display:none !important; }

.landing-page-v45 .landing-card-content { gap: .25rem; }
.landing-page-v45 .landing-logo-lockup { margin-bottom: .15rem; }
.landing-page-v45 .landing-logo { width: clamp(420px, 46vw, 780px); max-height: clamp(170px, 24vh, 290px); }
.landing-page-v45 #landing-title,
.landing-page-v45 .tagline { display:none !important; }
.landing-page-v45 .landing-help { margin-top: .8rem; width:min(760px, 100%); }

.branch-panels-v45 { gap: 28px !important; padding: 0 18px !important; }
.branch-panels-v45 .branch-level { display:none !important; }
@media (max-width: 1200px) {
  .branch-panels-v45 { gap: 22px !important; padding: 0 14px !important; }
}
@media (max-width: 900px) {
  .brand { gap: .58rem; }
  .brand-mark { height: 34px; }
  .brand-line-main { font-size: .78rem; }
  .brand-line-sub { font-size: .70rem; }
  .landing-page-v45 .landing-logo { width: min(86vw, 620px); max-height: 180px; }
  .branch-panels-v45 { gap: 16px !important; padding: 0 10px !important; }
}
@media (max-width: 640px) {
  .brand-wordmark { gap: .06rem; }
  .brand-line-main { font-size: .7rem; }
  .brand-line-sub { font-size: .62rem; }
  .landing-page-v45 .landing-help { width:min(94vw, 560px); }
}


/* v54 header, access-flow and editorial mastheads */
.brand .brand-mark.logo-light-image { display: none !important; }
.brand .brand-mark.logo-dark-image { display: block !important; }
html.light-mode .brand .brand-mark.logo-dark-image { display: none !important; }
html.light-mode .brand .brand-mark.logo-light-image { display: block !important; }

.site-header { background: rgba(3,7,18,.94); backdrop-filter: blur(14px); }
html.light-mode .site-header { background: rgba(252,250,247,.96); }
.header-inner {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(520px, 2.35fr) minmax(240px, 1fr);
  align-items: center;
  gap: clamp(.8rem, 2vw, 2rem);
  max-width: min(1780px, calc(100vw - 40px));
  margin: 0 auto;
}
.header-actions { display: contents; }
.brand { grid-column: 1; gap: .72rem; min-width: 0; }
.brand-mark { height: clamp(38px, 3.2vw, 46px); }
.brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: .42rem;
  white-space: nowrap;
  min-width: 0;
  font-family: var(--font-sans);
}
.brand-line-main { color: #69d4ff; font-size: clamp(.84rem, 1vw, 1.02rem); font-weight: 700; }
.brand-line-sub { color: #38bdf2; font-size: clamp(.8rem, .94vw, .96rem); font-weight: 600; }
html.light-mode .brand-line-main { color: #003e6b; }
html.light-mode .brand-line-sub { color: #004e9f; }

.main-nav {
  grid-column: 2;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 0;
}
.main-nav a {
  position: relative;
  flex: 0 1 auto;
  padding: .7rem clamp(.34rem, .8vw, .8rem);
  text-align: center;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: .28rem;
  height: 2px;
  background: #ee7100;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after { transform: scaleX(1); }

.utility-controls {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .55rem;
  white-space: nowrap;
}
.header-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .62rem 1.05rem;
  border: 2px solid #ee7100;
  border-radius: 2px;
  background: #d53b0a;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(0,0,0,.28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-contact-button:hover,
.header-contact-button:focus-visible {
  transform: translate(-1px,-1px);
  background: #ee7100;
  box-shadow: 4px 4px 0 rgba(0,0,0,.28);
}
html.light-mode .header-contact-button { color: #07111f; border-color: #07111f; background: #e06a4c; }

/* Editorial masthead inspired by a fixed separator-line page transition */
.editorial-masthead {
  padding-top: clamp(2.2rem, 5vw, 4.8rem);
  padding-bottom: 0;
}
.editorial-masthead-content {
  min-height: clamp(190px, 24vw, 270px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .72fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(1.1rem, 2.6vw, 1.8rem);
  animation: mastheadRiseFromLine .72s cubic-bezier(.22,.86,.24,1) both;
}
.editorial-kicker {
  display: inline-block;
  margin-bottom: .72rem;
  padding: .38rem .62rem;
  border: 2px solid currentColor;
  background: color-mix(in srgb, var(--branch) 26%, rgba(255,255,255,.06));
  color: var(--ink-strong);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 850;
  box-shadow: 3px 3px 0 rgba(0,0,0,.2);
}
.editorial-title-block h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.25rem, 7vw, 7.4rem);
  line-height: .86;
  letter-spacing: -.075em;
  font-weight: 780;
  text-transform: uppercase;
}
.editorial-cta {
  justify-self: end;
  max-width: 32rem;
  text-align: right;
  border-right: 3px solid #ee7100;
  padding-right: 1rem;
}
.editorial-cta p {
  margin: 0 0 1rem;
  color: var(--ink-strong);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.25;
  font-weight: 760;
  text-transform: uppercase;
}
.editorial-contact-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 2px solid currentColor;
  padding: .72rem 1.05rem;
  color: var(--ink-strong);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(0,0,0,.2);
}
.editorial-contact-link::before { content: "→"; color: #ee7100; }
.editorial-separator {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ink-strong), color-mix(in srgb, var(--ink-strong) 45%, transparent));
}
@keyframes mastheadRiseFromLine {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.has-editorial-masthead .page-hero.hero {
  padding-top: clamp(2rem, 4vw, 3.4rem);
  margin-top: 0;
}
.has-editorial-masthead .page-hero.hero::after { display: none; }
.has-editorial-masthead .page-hero.hero .eyebrow,
.has-editorial-masthead .page-hero.hero h1 { display: none; }
.has-editorial-masthead .page-hero.hero .hero-grid { animation: none; }

@media (max-width: 1220px) {
  .header-inner { grid-template-columns: minmax(220px, .9fr) minmax(420px, 2fr) minmax(190px, .8fr); gap: .65rem; }
  .brand-wordmark { display: grid; gap: .03rem; }
  .brand-separator { display: none; }
  .brand-line-main { font-size: .78rem; }
  .brand-line-sub { font-size: .72rem; }
  .main-nav a { padding-inline: .34rem; font-size: .82rem; }
  .header-contact-button { padding-inline: .75rem; }
}
@media (max-width: 900px) {
  .header-inner { display: flex; max-width: none; margin: 0; }
  .header-actions { display: flex; margin-left: auto; }
  .brand-wordmark { display: none; }
  .main-nav { width: auto; justify-content: flex-start; }
  .utility-controls { margin-left: 0; }
  .header-contact-button { min-height: 36px; font-size: .72rem; padding: .5rem .7rem; }
  .editorial-masthead-content { min-height: auto; grid-template-columns: 1fr; align-items: start; }
  .editorial-cta { justify-self: start; text-align: left; border-right: 0; border-left: 3px solid #ee7100; padding: 0 0 0 1rem; }
  .editorial-title-block h1 { font-size: clamp(3rem, 13vw, 5.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-masthead-content { animation: none; }
}


/* v55 header wordmark cleanup */
.brand-wordmark { gap: .38rem; }
.brand-separator { display:none !important; }


/* v57: tighter page top spacing and stronger logo presence */
.editorial-masthead {
  padding-top: clamp(1rem, 2.2vw, 1.8rem);
}
.editorial-masthead-content {
  min-height: clamp(150px, 18vw, 210px);
  padding-bottom: clamp(.85rem, 1.9vw, 1.2rem);
}
.has-editorial-masthead .page-hero.hero {
  padding-top: clamp(1rem, 2vw, 1.6rem);
}
.has-editorial-masthead .hero-grid {
  gap: clamp(1.5rem, 4vw, 3.6rem);
}
.page-hero {
  padding-top: clamp(3rem, 7vw, 5rem);
}
.brand-mark {
  height: clamp(44px, 3.9vw, 54px) !important;
}
@media (max-width: 900px) {
  .brand-mark { height: 38px !important; }
  .editorial-masthead-content { min-height: auto; }
}


/* v58: scroll reveal + stable landing card sizing */
body.js-reveal-enabled .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(10px);
  transition:
    opacity .78s cubic-bezier(.22,.86,.24,1),
    transform .88s cubic-bezier(.22,.86,.24,1),
    filter .88s cubic-bezier(.22,.86,.24,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}
body.js-reveal-enabled .reveal-on-scroll[data-reveal-variant="left"] {
  transform: translate3d(-34px, 30px, 0);
}
body.js-reveal-enabled .reveal-on-scroll[data-reveal-variant="right"] {
  transform: translate3d(34px, 30px, 0);
}
body.js-reveal-enabled .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  body.js-reveal-enabled .reveal-on-scroll,
  body.js-reveal-enabled .reveal-on-scroll[data-reveal-variant="left"],
  body.js-reveal-enabled .reveal-on-scroll[data-reveal-variant="right"] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Keep the landing center card stable when branch hover text changes */
.landing-page-v45 .landing-card-v47 {
  min-height: clamp(300px, 37vh, 430px);
}
.landing-page-v45 .landing-card-content {
  min-height: clamp(255px, 31vh, 360px);
  display: grid;
  align-content: center;
  justify-items: center;
}
.landing-page-v45 .landing-help {
  min-height: calc(3 * 1.35em + .55rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: clamp(1rem, 2.2vw, 1.5rem);
}
@media (max-width: 900px) {
  .landing-page-v45 .landing-card-v47 {
    min-height: clamp(250px, 33vh, 340px);
  }
  .landing-page-v45 .landing-card-content {
    min-height: clamp(215px, 28vh, 290px);
  }
  .landing-page-v45 .landing-help {
    min-height: calc(3 * 1.32em + .35rem);
  }
}


/* v59: adaptive wide layouts and waveform-only landing visualizer */
:root {
  --content-max-wide: 1800px;
  --content-side-space: clamp(32px, 8vw, 160px);
}
.site-shell,
.footer-inner {
  width: min(var(--content-max-wide), calc(100% - var(--content-side-space))) !important;
}
.header-inner {
  width: min(1800px, calc(100% - clamp(28px, 5vw, 100px))) !important;
  max-width: none !important;
}
@media (max-width: 900px) {
  :root { --content-side-space: 28px; }
  .site-shell,
  .footer-inner { width: calc(100% - 28px) !important; }
  .header-inner { width: calc(100% - 24px) !important; }
}
@media (max-width: 620px) {
  :root { --content-side-space: 20px; }
  .site-shell,
  .footer-inner { width: calc(100% - 20px) !important; }
}

/* The top strip now contains only the live waveform; the waterfall uses the rest. */
.landing-page-v45 {
  --branch-top-slice: 9%;
  --branch-water-start: 9%;
}
.landing-audio-enhanced .branch-spectrum-top {
  top: 0;
  height: 8.5%;
}
.landing-audio-enhanced .branch-spectrum-water {
  top: 8.5%;
  height: 91.5%;
}
.branch-panels-v45 .branch-blue .branch-spectrum {
  background-image: url("../img/landing/branch-top-hi.webp") !important;
}
.branch-panels-v45 .branch-green .branch-spectrum {
  background-image: url("../img/landing/branch-top-med.webp") !important;
}
.branch-panels-v45 .branch-orange .branch-spectrum {
  background-image: url("../img/landing/branch-top-low.webp") !important;
}
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .landing-page-v45 {
    --branch-top-slice: 10%;
    --branch-water-start: 10%;
  }
}


/* v60: branch naming, fixed central logo, subtle rotating imagery, stronger logo strokes */
.landing-page-v45 .landing-card-v47 {
  min-height: clamp(330px, 39vh, 455px);
  overflow: hidden;
}
.landing-page-v45 .landing-card-content {
  position: relative;
  min-height: clamp(285px, 33vh, 385px);
  display: block;
}
.landing-page-v45 .landing-logo-lockup {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(92%, 820px);
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.landing-page-v45 .landing-logo {
  width: 100%;
  max-height: clamp(185px, 25vh, 305px);
  margin-inline: auto;
}
.landing-page-v45 .landing-help {
  position: absolute;
  left: 50%;
  bottom: clamp(.8rem, 2.1vh, 1.35rem);
  width: min(820px, calc(100% - 2rem));
  min-height: calc(3 * 1.35em + .65rem);
  margin: 0;
  transform: translateX(-50%);
}
.landing-page-v45 .landing-card-slide {
  opacity: 0;
  transform: none !important;
  filter: saturate(.72) brightness(.62) contrast(.92) !important;
  transition: opacity 1.8s ease !important;
}
.landing-page-v45 .landing-card-slide.is-active { opacity: 1; }
html.light-mode .landing-page-v45 .landing-card-slide {
  filter: saturate(.68) brightness(1.06) contrast(.84) !important;
}
@media (max-width: 900px) {
  .landing-page-v45 .landing-card-v47 { min-height: clamp(270px, 35vh, 360px); }
  .landing-page-v45 .landing-card-content { min-height: clamp(230px, 29vh, 300px); }
  .landing-page-v45 .landing-logo-lockup { top: 43%; width: min(90%, 660px); }
  .landing-page-v45 .landing-logo { max-height: 190px; }
  .landing-page-v45 .landing-help {
    bottom: .7rem;
    width: calc(100% - 1.35rem);
    min-height: calc(3 * 1.32em + .45rem);
  }
}


/* v61: click ripple and locally accumulating blur */
.click-ripple-effect,
.click-blur-effect {
  position: fixed;
  z-index: 10000;
  display: block;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  contain: layout style paint;
}

.click-ripple-effect {
  width: var(--ripple-size, 88px);
  height: var(--ripple-size, 88px);
  border: 2px solid color-mix(in srgb, var(--click-color, #5bc5f2) 86%, white 14%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--click-color, #5bc5f2) 25%, transparent),
    0 0 24px color-mix(in srgb, var(--click-color, #5bc5f2) 34%, transparent);
  opacity: 0;
  animation: albertClickRipple var(--ripple-duration, 760ms) cubic-bezier(.16,.78,.22,1) forwards;
}

.click-blur-effect {
  width: var(--blur-size, 96px);
  height: var(--blur-size, 96px);
  overflow: hidden;
  opacity: 0;
  background:
    radial-gradient(circle,
      color-mix(in srgb, var(--click-color, #5bc5f2) 9%, rgba(255,255,255,.018)) 0 32%,
      rgba(255,255,255,.012) 58%,
      transparent 76%);
  -webkit-backdrop-filter: blur(var(--blur-amount, 3px)) saturate(1.08);
  backdrop-filter: blur(var(--blur-amount, 3px)) saturate(1.08);
  -webkit-mask-image: radial-gradient(circle, #000 0 42%, rgba(0,0,0,.78) 58%, transparent 78%);
  mask-image: radial-gradient(circle, #000 0 42%, rgba(0,0,0,.78) 58%, transparent 78%);
  animation: albertClickBlur var(--blur-duration, 1150ms) cubic-bezier(.18,.72,.18,1) forwards;
}

@keyframes albertClickRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.18);
  }
  16% {
    opacity: var(--ripple-opacity, .62);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes albertClickBlur {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.52);
  }
  18% {
    opacity: var(--blur-opacity, .66);
  }
  68% {
    opacity: .46;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@media (hover: none) and (pointer: coarse) {
  .click-ripple-effect {
    box-shadow: 0 0 16px color-mix(in srgb, var(--click-color, #5bc5f2) 25%, transparent);
  }
  .click-blur-effect { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .click-ripple-effect,
  .click-blur-effect { display: none !important; }
}


/* v62: audience labels for the three principal branches */
.editorial-audience {
  margin: clamp(.7rem, 1.4vw, 1rem) 0 0;
  max-width: 48rem;
  color: var(--muted);
  font-size: clamp(.92rem, 1.15vw, 1.08rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: .005em;
}
html.light-mode .editorial-audience {
  color: color-mix(in srgb, var(--ink-strong) 72%, transparent);
}
@media (max-width: 900px) {
  .editorial-audience {
    max-width: 38rem;
    font-size: .93rem;
  }
}


/* v63: permanently separate the landing logo and branch hover text */
.landing-page-v45 .landing-card-v47 {
  min-height: clamp(390px, 43vh, 500px);
}
.landing-page-v45 .landing-card-content {
  min-height: clamp(345px, 37vh, 430px);
}
.landing-page-v45 .landing-logo-lockup {
  top: clamp(1.25rem, 3vh, 2rem);
  bottom: clamp(7.4rem, 17vh, 9.2rem);
  height: auto;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}
.landing-page-v45 .landing-logo {
  width: min(100%, 820px);
  max-height: 100%;
  object-fit: contain;
}
.landing-page-v45 .landing-help {
  bottom: clamp(1rem, 2.2vh, 1.4rem);
  min-height: clamp(4.4rem, 8vh, 5.6rem);
  max-height: 6.4rem;
  overflow: hidden;
}
@media (max-width: 900px) {
  .landing-page-v45 .landing-card-v47 {
    min-height: clamp(330px, 40vh, 410px);
  }
  .landing-page-v45 .landing-card-content {
    min-height: clamp(290px, 34vh, 350px);
  }
  .landing-page-v45 .landing-logo-lockup {
    top: 1rem;
    bottom: 6.8rem;
    width: min(90%, 660px);
  }
  .landing-page-v45 .landing-help {
    bottom: .75rem;
    min-height: 4.75rem;
    max-height: 5.4rem;
  }
}

/* v64: supplied PNG branding, larger navigation, interactive publication rows */
.brand-mark,
.landing-logo {
  object-fit: contain;
  image-rendering: auto;
}

.main-nav a {
  font-size: clamp(.9rem, .76vw, 1rem);
  font-weight: 680;
  transition: color .2s ease, font-weight .2s ease, background .2s ease, border-color .2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  font-weight: 850;
}
@media (max-width: 1220px) {
  .main-nav a { font-size: .86rem; }
}

.publication-list-highlighted {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.45rem);
}
.site-shell .publication-row[data-open-url] {
  cursor: pointer;
  color: inherit;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}
.site-shell .publication-row[data-open-url]:hover,
.site-shell .publication-row[data-open-url]:focus-visible {
  transform: translateY(-4px);
  border-color: #ee7100 !important;
  background: linear-gradient(100deg, rgba(238,113,0,.29), rgba(213,59,10,.12) 34%, rgba(255,255,255,.075) 100%) !important;
  box-shadow: 0 22px 58px rgba(213,59,10,.22), inset 0 0 0 1px rgba(253,195,0,.18) !important;
  outline: none;
}
.site-shell .publication-row[data-open-url]:hover h3,
.site-shell .publication-row[data-open-url]:focus-visible h3,
.site-shell .publication-row[data-open-url]:hover .publication-open-hint,
.site-shell .publication-row[data-open-url]:focus-visible .publication-open-hint {
  color: #ff9a43 !important;
}
html.light-mode .site-shell .publication-row[data-open-url]:hover,
html.light-mode .site-shell .publication-row[data-open-url]:focus-visible {
  background: linear-gradient(100deg, rgba(238,113,0,.25), rgba(253,195,0,.12) 34%, rgba(255,255,255,.96) 100%) !important;
  box-shadow: 0 22px 48px rgba(213,59,10,.16), inset 0 0 0 1px rgba(213,59,10,.15) !important;
}
html.light-mode .site-shell .publication-row[data-open-url]:hover h3,
html.light-mode .site-shell .publication-row[data-open-url]:focus-visible h3,
html.light-mode .site-shell .publication-row[data-open-url]:hover .publication-open-hint,
html.light-mode .site-shell .publication-row[data-open-url]:focus-visible .publication-open-hint {
  color: #b93208 !important;
}

.site-shell .publication-row.publication-row-featured {
  display: grid !important;
  grid-template-columns: minmax(230px, 31%) minmax(0, 1fr) !important;
  min-height: clamp(230px, 22vw, 330px);
  overflow: hidden;
}
.site-shell .publication-row.publication-row-featured::before,
.site-shell .publication-row.publication-row-featured::after {
  content: none !important;
  display: none !important;
}
.publication-figure {
  margin: 0;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid color-mix(in srgb, #ee7100 28%, var(--line));
}
.publication-figure img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .45s cubic-bezier(.22,.86,.24,1), filter .35s ease;
}
.publication-row-featured:hover .publication-figure img,
.publication-row-featured:focus-visible .publication-figure img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.03);
}
.site-shell .publication-row.publication-row-featured > .publication-row-body {
  position: relative;
  z-index: 1;
  padding: clamp(1.15rem, 2.2vw, 2rem) !important;
  align-self: center;
}
.publication-row-featured h3 {
  font-size: clamp(1.28rem, 2vw, 2rem) !important;
  line-height: 1.14 !important;
}
.publication-summary {
  margin: .75rem 0 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.5;
}
.publication-open-hint {
  display: inline-block;
  margin-top: 1rem;
  color: color-mix(in srgb, #ee7100 72%, var(--ink-strong));
  font-weight: 800;
  letter-spacing: .035em;
  transition: color .2s ease;
}
@media (max-width: 760px) {
  .site-shell .publication-row.publication-row-featured {
    grid-template-columns: 1fr !important;
  }
  .publication-figure {
    min-height: 220px;
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, #ee7100 28%, var(--line));
  }
  .publication-figure img { min-height: 220px; }
}

/* v65 publication selector, reliable figure previews, and heavier SVG branding */
.publication-list-highlighted,
[data-publication-pool] .publication-list {
  grid-template-columns: 1fr !important;
}
.publication-figure {
  position: relative;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: clamp(230px, 20vw, 330px);
  background: #fff;
  overflow: hidden;
}
.publication-figure img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(230px, 20vw, 330px);
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
}
.site-shell .publication-row.publication-row-featured {
  grid-template-columns: minmax(300px, 34%) minmax(0, 1fr) !important;
}
.highlight-selector-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 2px solid #ee7100;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, rgba(238,113,0,.20), rgba(255,255,255,.06));
  box-shadow: 0 18px 44px rgba(213,59,10,.14);
}
.highlight-selector-panel[hidden] { display: none !important; }
.highlight-selector-panel h2 { margin: .1rem 0 .3rem; }
.highlight-selector-panel p { margin: 0; color: var(--muted); }
.highlight-selector-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.publication-highlight-toggle {
  display: none;
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 8;
  border: 2px solid #ee7100;
  border-radius: 999px;
  padding: .5rem .78rem;
  background: rgba(3,7,18,.92);
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.highlight-selection-mode [data-publication-pool] .publication-highlight-toggle { display: inline-flex; }
.publication-highlight-toggle[aria-pressed="true"] { background: #ee7100; color: #07111f; }
.highlight-selection-mode [data-publication-pool] .publication-row { cursor: default; }
.highlight-selection-mode [data-publication-pool] .publication-row.is-selected-highlight {
  border-color: #fdc300 !important;
  box-shadow: 0 18px 50px rgba(238,113,0,.24), inset 0 0 0 2px rgba(253,195,0,.30) !important;
}
.publication-admin-row {
  grid-template-columns: auto minmax(90px, 150px) 1fr !important;
  align-items: center !important;
}
.publication-admin-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.highlight-selection-count {
  margin: 0 0 .85rem;
  color: #ff9a43;
  font-weight: 800;
}
@media (max-width: 760px) {
  .site-shell .publication-row.publication-row-featured { grid-template-columns: 1fr !important; }
  .highlight-selector-panel { align-items: flex-start; flex-direction: column; }
  .publication-admin-row { grid-template-columns: auto 90px 1fr !important; }
}
.publication-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.publication-list-toolbar .section-head { margin-bottom: 0; }
.publication-list-toolbar > .button { flex: 0 0 auto; margin-bottom: .2rem; }
@media (max-width: 760px) {
  .publication-list-toolbar { align-items: flex-start; flex-direction: column; }
}

/* v66: reconciled highlights, reliable publication figures, balanced SVG strokes */
.publication-admin-thumb-empty {
  display: grid;
  place-items: center;
  min-height: 90px;
  padding: .5rem;
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
}
.site-shell .publication-row.publication-row-featured > .publication-figure {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 280px !important;
}
.site-shell .publication-row.publication-row-featured > .publication-figure img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (max-width: 760px) {
  .site-shell .publication-row.publication-row-featured > .publication-figure {
    min-width: 0 !important;
  }
}

/* v67: compact editorial publication list with dependable figure previews */
.publication-year-group { margin-top: clamp(1.4rem, 3vw, 2.6rem); }
.publication-year-group > h3 {
  margin: 0 0 .6rem;
  font-size: clamp(1.65rem, 2.7vw, 3rem);
  line-height: 1;
  font-weight: 320;
  letter-spacing: -.04em;
}
.publication-year-group .publication-list,
.publication-list-highlighted,
[data-publication-pool] .publication-list {
  display: grid;
  gap: clamp(.8rem, 1.4vw, 1.2rem);
}
.site-shell .publication-row.publication-row-featured {
  position: relative;
  display: grid !important;
  grid-template-columns: clamp(230px, 22vw, 340px) minmax(0, 1fr) !important;
  min-height: 230px;
  max-height: 310px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--branch-2) 24%, var(--line));
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: 0 14px 38px rgba(0,0,0,.14);
}
.site-shell .publication-row.publication-row-highlight {
  border-color: color-mix(in srgb, #ee7100 60%, var(--line));
}
.site-shell .publication-row.publication-row-featured::before { content: none !important; }
.site-shell .publication-row.publication-row-featured::after {
  content: "↗" !important;
  display: grid !important;
  place-items: center;
  position: absolute;
  right: clamp(1rem, 1.8vw, 1.6rem);
  top: 50%;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  opacity: .92;
  transition: transform .22s ease, color .22s ease, border-color .22s ease, background .22s ease;
}
.site-shell .publication-row.publication-row-featured:hover::after,
.site-shell .publication-row.publication-row-featured:focus-visible::after {
  transform: translateY(-50%) rotate(10deg) scale(1.06);
  color: #ff9a43;
  border-color: #ee7100;
  background: rgba(238,113,0,.12);
}
.site-shell .publication-row.publication-row-featured > .publication-figure {
  position: relative;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  min-height: 230px !important;
  max-height: 310px;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, #ee7100 24%, var(--line));
  background: #fff;
}
.site-shell .publication-row.publication-row-featured > .publication-figure img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 230px !important;
  max-height: 310px;
  object-fit: contain !important;
  object-position: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #fff;
}
.publication-figure-fallback {
  flex-direction: column;
  gap: .55rem;
  color: #003e6b;
  background: radial-gradient(circle at 24% 24%, rgba(91,197,242,.42), transparent 38%), linear-gradient(135deg, #f5fbff, #dcecf5) !important;
}
.publication-figure-mark {
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  line-height: .85;
  font-weight: 850;
  letter-spacing: -.08em;
  opacity: .78;
}
.publication-figure-label {
  max-width: 14ch;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 800;
  opacity: .68;
}
.site-shell .publication-row.publication-row-featured > .publication-row-body {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  padding: clamp(1.15rem, 2vw, 1.8rem) clamp(4.9rem, 6vw, 6rem) clamp(1.15rem, 2vw, 1.8rem) clamp(1.3rem, 2.2vw, 2rem) !important;
}
.site-shell .publication-journal-line {
  margin: 0 0 .58rem;
  color: color-mix(in srgb, var(--branch-2) 70%, var(--ink-strong));
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .76rem;
  font-weight: 820;
}
.site-shell .publication-row h3 {
  margin: 0 0 .55rem;
  max-width: 32ch;
  font-size: clamp(1.28rem, 1.8vw, 1.9rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em;
}
.site-shell .publication-authors {
  margin: 0;
  max-width: 80ch;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.site-shell .publication-summary {
  margin: .72rem 0 0;
  max-width: 82ch;
  color: var(--ink);
  font-size: .96rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.site-shell .publication-links,
.site-shell .publication-open-hint { display: none !important; }
html.light-mode .site-shell .publication-row.publication-row-featured {
  background: linear-gradient(105deg, rgba(255,255,255,.99), rgba(247,244,238,.94));
  border-color: rgba(7,17,31,.17);
  box-shadow: 0 14px 34px rgba(7,17,31,.09);
}
html.light-mode .site-shell .publication-row.publication-row-highlight { border-color: rgba(238,113,0,.48); }
html.light-mode .site-shell .publication-row.publication-row-featured::after { background: rgba(255,255,255,.82); }
.highlight-selection-mode [data-publication-pool] .publication-row.publication-row-featured::after { opacity: .24; }
@media (max-width: 840px) {
  .site-shell .publication-row.publication-row-featured {
    grid-template-columns: minmax(190px, 34vw) minmax(0, 1fr) !important;
    max-height: none;
  }
  .site-shell .publication-row.publication-row-featured > .publication-row-body { padding-right: 4.5rem !important; }
}
@media (max-width: 620px) {
  .site-shell .publication-row.publication-row-featured {
    grid-template-columns: 1fr !important;
    max-height: none;
  }
  .site-shell .publication-row.publication-row-featured > .publication-figure {
    min-height: 190px !important;
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, #ee7100 24%, var(--line));
  }
  .site-shell .publication-row.publication-row-featured > .publication-figure img {
    min-height: 190px !important;
    max-height: 260px;
  }
  .site-shell .publication-row.publication-row-featured > .publication-row-body { padding: 1.15rem 4.5rem 1.25rem 1.15rem !important; }
  .site-shell .publication-row.publication-row-featured::after {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
  .site-shell .publication-row.publication-row-featured:hover::after,
  .site-shell .publication-row.publication-row-featured:focus-visible::after { transform: rotate(10deg) scale(1.06); }
}


/* v68: true side-by-side publication rows; portraits only on people publication lists */
.site-shell .publication-row.publication-row-featured {
  display: grid !important;
  grid-template-columns: clamp(220px, 19vw, 320px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(210px, auto) !important;
  align-items: stretch !important;
  min-height: 210px !important;
  max-height: none !important;
}
.site-shell .publication-row.publication-row-featured > .publication-figure {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 210px !important;
  max-height: 300px !important;
}
.site-shell .publication-row.publication-row-featured > .publication-figure img {
  width: 100% !important;
  height: 100% !important;
  min-height: 210px !important;
  max-height: 300px !important;
  object-fit: contain !important;
}
.site-shell .publication-row.publication-row-featured > .publication-row-body {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
.site-shell .publication-row.publication-row-no-figure {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  min-height: 0 !important;
}
.site-shell .publication-row.publication-row-no-figure > .publication-row-body {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.publication-figure-fallback { display: none !important; }

/* People/member publication lists use the involved person's portrait as the only visual. */
.site-shell .publication-row.publication-row-with-person {
  grid-template-columns: clamp(92px, 8vw, 132px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(150px, auto) !important;
  min-height: 150px !important;
  max-height: none !important;
  gap: 0 !important;
}
.site-shell .publication-row.publication-row-with-person > .publication-person-photo {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 150px !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid color-mix(in srgb, #ee7100 22%, var(--line)) !important;
  border-radius: 0 !important;
}
.site-shell .publication-row.publication-row-with-person > .publication-person-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 150px !important;
  object-fit: cover !important;
}
.site-shell .publication-row.publication-row-with-person > .publication-row-body {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  padding-left: clamp(1.1rem, 2vw, 1.7rem) !important;
}
@media (max-width: 680px) {
  .site-shell .publication-row.publication-row-featured {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }
  .site-shell .publication-row.publication-row-featured > .publication-figure {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 180px !important;
    max-height: 250px !important;
    border-right: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, #ee7100 24%, var(--line)) !important;
  }
  .site-shell .publication-row.publication-row-featured > .publication-row-body {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .site-shell .publication-row.publication-row-no-figure > .publication-row-body {
    grid-row: 1 !important;
  }
  .site-shell .publication-row.publication-row-with-person {
    grid-template-columns: 84px minmax(0, 1fr) !important;
    grid-template-rows: minmax(128px, auto) !important;
  }
  .site-shell .publication-row.publication-row-with-person > .publication-person-photo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 128px !important;
    border-right: 1px solid color-mix(in srgb, #ee7100 22%, var(--line)) !important;
    border-bottom: 0 !important;
  }
  .site-shell .publication-row.publication-row-with-person > .publication-row-body {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 1rem 3.7rem 1rem 1rem !important;
  }
}


/* v70: complementary PubMed coverage, light spectra and navigation divider */
.site-header {
  position: sticky;
  isolation: isolate;
  border-bottom: 0 !important;
}
.site-header::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(213,59,10,.22) 0%,
    #d53b0a 12%,
    #ee7100 50%,
    #d53b0a 88%,
    rgba(213,59,10,.22) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
html.light-mode .site-header::after {
  box-shadow: 0 1px 0 rgba(7,17,31,.08);
}

/* Animated desktop canvas: invert only the waterfall, not the branch-coloured waveform. */
html.light-mode .landing-audio-enhanced .branch-spectrum-water {
  filter: invert(1) brightness(1.03) contrast(1.08);
  background: #fff !important;
}
html.light-mode .landing-audio-enhanced .branch-spectrum-top {
  background: #fff !important;
}

/* Static/coarse-pointer fallback uses dedicated white-background assets. */
html.light-mode .branch-panels-v45 .branch-blue .branch-spectrum {
  background-image: url("../img/landing/branch-top-hi-light.webp") !important;
}
html.light-mode .branch-panels-v45 .branch-green .branch-spectrum {
  background-image: url("../img/landing/branch-top-med-light.webp") !important;
}
html.light-mode .branch-panels-v45 .branch-orange .branch-spectrum {
  background-image: url("../img/landing/branch-top-low-light.webp") !important;
}


/* Complete static landing stacks for tablets and reduced-motion/coarse-pointer devices. */
.branch-panels-v45 .branch-blue .branch-spectrum {
  background-image: url("../img/landing/branch-top-hi.webp"), url("../img/landing/branch-water-hi.webp") !important;
  background-size: 100% 9%, 100% 91% !important;
  background-position: center top, center bottom !important;
  background-repeat: no-repeat !important;
}
.branch-panels-v45 .branch-green .branch-spectrum {
  background-image: url("../img/landing/branch-top-med.webp"), url("../img/landing/branch-water-med.webp") !important;
  background-size: 100% 9%, 100% 91% !important;
  background-position: center top, center bottom !important;
  background-repeat: no-repeat !important;
}
.branch-panels-v45 .branch-orange .branch-spectrum {
  background-image: url("../img/landing/branch-top-low.webp"), url("../img/landing/branch-water-low.webp") !important;
  background-size: 100% 9%, 100% 91% !important;
  background-position: center top, center bottom !important;
  background-repeat: no-repeat !important;
}
html.light-mode .branch-panels-v45 .branch-blue .branch-spectrum {
  background-image: url("../img/landing/branch-top-hi-light.webp"), url("../img/landing/branch-water-hi-light.webp") !important;
}
html.light-mode .branch-panels-v45 .branch-green .branch-spectrum {
  background-image: url("../img/landing/branch-top-med-light.webp"), url("../img/landing/branch-water-med-light.webp") !important;
}
html.light-mode .branch-panels-v45 .branch-orange .branch-spectrum {
  background-image: url("../img/landing/branch-top-low-light.webp"), url("../img/landing/branch-water-low-light.webp") !important;
}


/* v72: uniform publication rows and true figure thumbnails */
@media (min-width: 681px) {
  .site-shell .publication-row.publication-row-featured {
    height: 252px !important;
    min-height: 252px !important;
    max-height: 252px !important;
    grid-template-rows: 252px !important;
    overflow: hidden !important;
  }
  .site-shell .publication-row.publication-row-featured > .publication-figure {
    height: 252px !important;
    min-height: 252px !important;
    max-height: 252px !important;
    background: #fff !important;
  }
  .site-shell .publication-row.publication-row-featured > .publication-figure img {
    height: 252px !important;
    min-height: 252px !important;
    max-height: 252px !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  .site-shell .publication-row.publication-row-featured > .publication-row-body {
    max-height: 252px !important;
    overflow: hidden !important;
  }
  .site-shell .publication-row.publication-row-no-figure {
    height: 252px !important;
    min-height: 252px !important;
    max-height: 252px !important;
  }
  .site-shell .publication-row.publication-row-with-person {
    height: 172px !important;
    min-height: 172px !important;
    max-height: 172px !important;
    grid-template-rows: 172px !important;
  }
  .site-shell .publication-row.publication-row-with-person > .publication-person-photo,
  .site-shell .publication-row.publication-row-with-person > .publication-person-photo img {
    height: 172px !important;
    min-height: 172px !important;
    max-height: 172px !important;
  }
}

/* v77: wider editorial canvas, integrated publication selection, and clean cards */
.site-shell {
  width: min(2400px, calc(100% - clamp(28px, 4vw, 96px))) !important;
}
.header-inner {
  width: min(2400px, calc(100% - clamp(28px, 4vw, 96px))) !important;
}

/* Publication cards remain clickable, but no longer show the circular arrow badge. */
.site-shell .publication-row.publication-row-featured::after {
  content: none !important;
  display: none !important;
}
.site-shell .publication-row.publication-row-featured > .publication-row-body {
  padding-right: clamp(1.15rem, 2.2vw, 2rem) !important;
}
.highlight-selection-mode [data-publication-pool] .publication-row.publication-row-featured > .publication-row-body {
  padding-right: clamp(8.5rem, 11vw, 10.5rem) !important;
}

/* The publications page now uses the same editorial masthead as the other sections. */
.publications-page .editorial-masthead-content {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
}
.publications-page .editorial-title-block h1 {
  max-width: none;
}

@media (max-width: 900px) {
  .site-shell,
  .header-inner {
    width: min(100% - 24px, 2400px) !important;
  }
  .publications-page .editorial-masthead-content {
    grid-template-columns: 1fr;
  }
}
.footer-inner {
  width: min(2400px, calc(100% - clamp(28px, 4vw, 96px))) !important;
}
@media (max-width: 900px) {
  .footer-inner { width: calc(100% - 24px) !important; }
}


/* v78: simplified landing page — no waveform, waterfall spectrogram or bottom marquee */
.landing-page-v45 .branch-panels-v45 .branch-panel {
  background-image: none !important;
  box-shadow: inset 0 0 0 1px rgba(206,190,255,.06);
}
.landing-page-v45 .branch-panels-v45 .branch-blue {
  background: linear-gradient(180deg, rgba(8,24,39,.96), rgba(8,18,31,.99)) !important;
}
.landing-page-v45 .branch-panels-v45 .branch-green {
  background: linear-gradient(180deg, rgba(8,31,30,.95), rgba(8,19,24,.99)) !important;
}
.landing-page-v45 .branch-panels-v45 .branch-orange {
  background: linear-gradient(180deg, rgba(38,22,15,.94), rgba(20,15,20,.99)) !important;
}
html.light-mode .landing-page-v45 .branch-panels-v45 .branch-blue {
  background: linear-gradient(180deg, #f4f8fb, #eaf1f7) !important;
}
html.light-mode .landing-page-v45 .branch-panels-v45 .branch-green {
  background: linear-gradient(180deg, #f3f8f6, #e9f2ef) !important;
}
html.light-mode .landing-page-v45 .branch-panels-v45 .branch-orange {
  background: linear-gradient(180deg, #fff8f1, #f8eee5) !important;
}
/* The old visualizer created these dynamically; keep them suppressed if stale markup is cached. */
.landing-page-v45 .branch-spectrum,
.landing-page-v45 .branch-spectrum-top,
.landing-page-v45 .branch-spectrum-water,
.landing-page-v45 .branch-noise,
.landing-bottom-marquee,
.landing-keyword-band {
  display: none !important;
}
body.has-landing-bottom-marquee .landing-page-v45,
body.has-landing-bottom-marquee .landing-page,
body.has-landing-bottom-marquee .branch-panels-v45 .branch-panel {
  padding-bottom: initial;
}


/* v79: calmer landing, separated branch navigation, roomier typography, publication view switch */
body { letter-spacing: .008em; }
.landing-card h1, .hero h1 { letter-spacing: -.025em; }
.section-head h2, .publication-year-group > h3 { letter-spacing: -.018em; }
.site-shell .publication-row h3 { letter-spacing: -.012em; }

/* Header navigation: audience pathways on the left, site sections on the right. */
.header-actions { flex: 1 1 auto; }
.main-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: clamp(.6rem, 1.3vw, 1.35rem); flex-wrap: nowrap; }
.nav-group { display: flex; align-items: center; gap: .26rem; min-width: 0; }
.nav-group-site { justify-content: flex-end; padding-left: clamp(.7rem, 1.4vw, 1.25rem); border-left: 1px solid color-mix(in srgb, #ee7100 54%, var(--line)); }
.main-nav a { font-size: .86rem; letter-spacing: .018em; font-weight: 650; transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.main-nav a:hover, .main-nav a:focus-visible { transform: translateY(-1px); }
.main-nav .nav-branch { border-width: 1px; }
.main-nav .nav-peers { color: #8bd6ff; border-color: rgba(91,197,242,.35); background: rgba(0,78,159,.16); }
.main-nav .nav-apprentice { color: #72e0ba; border-color: rgba(0,168,121,.38); background: rgba(0,120,120,.15); }
.main-nav .nav-beginner { color: #ffb56c; border-color: rgba(238,113,0,.40); background: rgba(213,59,10,.14); }
.main-nav .nav-peers:hover, .main-nav .nav-peers:focus-visible, .main-nav .nav-peers.active { color: #fff; border-color: #5bc5f2; background: rgba(0,78,159,.48); box-shadow: inset 0 -3px #5bc5f2; }
.main-nav .nav-apprentice:hover, .main-nav .nav-apprentice:focus-visible, .main-nav .nav-apprentice.active { color: #fff; border-color: #00a879; background: rgba(0,120,120,.48); box-shadow: inset 0 -3px #00a879; }
.main-nav .nav-beginner:hover, .main-nav .nav-beginner:focus-visible, .main-nav .nav-beginner.active { color: #fff; border-color: #ee7100; background: rgba(213,59,10,.44); box-shadow: inset 0 -3px #fdc300; }
.main-nav .nav-site-link.active { color: var(--ink-strong); border-color: #ee7100; background: rgba(238,113,0,.17); box-shadow: inset 0 -3px #ee7100, 0 0 0 1px rgba(238,113,0,.08); }
.header-contact-button.active { box-shadow: inset 0 -4px #fdc300, 0 0 0 2px rgba(253,195,0,.28); }
html.light-mode .main-nav .nav-peers { color: #003e6b; background: rgba(91,197,242,.16); }
html.light-mode .main-nav .nav-apprentice { color: #006d61; background: rgba(0,168,121,.13); }
html.light-mode .main-nav .nav-beginner { color: #a83a06; background: rgba(238,113,0,.13); }
html.light-mode .main-nav .nav-peers.active,
html.light-mode .main-nav .nav-apprentice.active,
html.light-mode .main-nav .nav-beginner.active { color: #07111f; }

/* Calm landing page: central card with three photographic audience choices. */
.landing-page-v79 { min-height: calc(100svh - var(--header-h)); background: radial-gradient(circle at 50% 16%, rgba(91,197,242,.09), transparent 32rem); }
html.light-mode .landing-page-v79 { background: radial-gradient(circle at 50% 12%, rgba(0,78,159,.07), transparent 34rem); }
.landing-center-v79 { min-height: calc(100svh - var(--header-h)); place-items: center; padding: clamp(1.2rem, 4vh, 3.5rem) 1rem; }
.landing-card-v79 { width: min(1180px, calc(100vw - 64px)); padding: clamp(1.3rem, 2.5vw, 2.2rem); border-radius: 28px; border-top: 3px solid #ee7100; background: rgba(3,7,18,.78); box-shadow: 0 28px 80px rgba(0,0,0,.30); }
html.light-mode .landing-card-v79 { background: rgba(255,255,255,.88); }
.landing-card-content-v79 { position: relative; z-index: 2; }
.landing-card-v79 .landing-logo-lockup { margin-bottom: .4rem; }
.landing-card-v79 .landing-logo { width: clamp(360px, 32vw, 600px); max-height: 165px; }
.landing-intro-v79 { margin: .15rem auto 1.25rem; max-width: 54ch; color: var(--muted); font-size: clamp(.98rem, 1.3vw, 1.12rem); }
.landing-branch-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 1.3vw, 1rem); }
.landing-branch-choice { position: relative; min-height: clamp(160px, 21vw, 245px); overflow: hidden; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; isolation: isolate; box-shadow: 0 12px 32px rgba(0,0,0,.16); transform: translateY(0); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease; }
.landing-branch-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.015); transition: transform .35s ease, filter .25s ease; }
.branch-choice-peers .landing-branch-photo { background-position: 50% 47%; }
.branch-choice-apprentice .landing-branch-photo { background-position: 50% 50%; }
.branch-choice-beginner .landing-branch-photo { background-position: 50% 46%; }
.landing-branch-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,7,18,.05), rgba(3,7,18,.82)); }
.branch-choice-peers .landing-branch-overlay { box-shadow: inset 0 -5px #5bc5f2; }
.branch-choice-apprentice .landing-branch-overlay { box-shadow: inset 0 -5px #00a879; }
.branch-choice-beginner .landing-branch-overlay { box-shadow: inset 0 -5px #ee7100; }
.landing-branch-copy { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: .9rem; display: flex; flex-direction: column; align-items: flex-start; color: #fff; text-align: left; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.landing-branch-copy small { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .82; }
.landing-branch-copy strong { font-size: clamp(1.35rem, 2.3vw, 2.2rem); line-height: 1.05; letter-spacing: -.01em; }
.landing-branch-choice:hover, .landing-branch-choice:focus-visible, .landing-branch-choice.is-active { transform: translateY(-4px); outline: none; }
.branch-choice-peers:hover, .branch-choice-peers:focus-visible, .branch-choice-peers.is-active { border-color: #5bc5f2; box-shadow: 0 18px 44px rgba(0,78,159,.26); }
.branch-choice-apprentice:hover, .branch-choice-apprentice:focus-visible, .branch-choice-apprentice.is-active { border-color: #00a879; box-shadow: 0 18px 44px rgba(0,120,120,.24); }
.branch-choice-beginner:hover, .branch-choice-beginner:focus-visible, .branch-choice-beginner.is-active { border-color: #ee7100; box-shadow: 0 18px 44px rgba(213,59,10,.23); }
.landing-branch-choice:hover .landing-branch-photo, .landing-branch-choice:focus-visible .landing-branch-photo, .landing-branch-choice.is-active .landing-branch-photo { transform: scale(1.055); filter: saturate(1.05) contrast(1.03); }
.landing-branch-details { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .26s ease, opacity .22s ease, margin-top .26s ease; margin-top: 0; }
.landing-branch-details.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 1rem; }
.landing-branch-detail { grid-row: 1; grid-column: 1; min-height: 0; overflow: hidden; opacity: 0; transform: translateY(-5px); pointer-events: none; border-top: 1px solid var(--line); padding: 0 clamp(.25rem, 1vw, .75rem); text-align: left; transition: opacity .2s ease, transform .2s ease, padding-top .24s ease; }
.landing-branch-detail.is-active { opacity: 1; transform: translateY(0); padding-top: .9rem; pointer-events: auto; }
.landing-branch-detail strong { font-size: 1rem; color: var(--ink-strong); }
.landing-branch-detail p { margin: .25rem 0 0; color: var(--muted); max-width: 90ch; line-height: 1.5; }

/* Publication list/tile switch. */
.publication-toolbar-actions { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; margin-bottom: .2rem; }
.publication-view-switch { display: inline-flex; padding: .22rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); }
.publication-view-button { border: 0; border-radius: 999px; padding: .48rem .78rem; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; font-size: .84rem; letter-spacing: .02em; }
.publication-view-button:hover, .publication-view-button:focus-visible { color: var(--ink-strong); outline: none; }
.publication-view-button.is-active { color: #fff; background: #003e6b; box-shadow: 0 3px 12px rgba(0,62,107,.28); }
html.light-mode .publication-view-button.is-active { color: #fff; }

body[data-publication-view="tiles"] .publication-year-group .publication-list,
body[data-publication-view="tiles"] .publication-list-highlighted {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  gap: clamp(.85rem, 1.3vw, 1.2rem) !important;
}
body[data-publication-view="tiles"] .site-shell .publication-row.publication-row-featured {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 190px minmax(0, 1fr);
  min-height: 430px;
  max-height: 430px;
}
body[data-publication-view="tiles"] .site-shell .publication-row.publication-row-featured > .publication-figure {
  width: 100% !important;
  min-height: 190px !important;
  max-height: 190px !important;
  border-right: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, #ee7100 24%, var(--line));
}
body[data-publication-view="tiles"] .site-shell .publication-row.publication-row-featured > .publication-figure img {
  min-height: 190px !important;
  max-height: 190px !important;
}
body[data-publication-view="tiles"] .site-shell .publication-row.publication-row-featured > .publication-row-body {
  align-self: start;
  padding: 1.05rem 1.15rem 1.15rem !important;
}
body[data-publication-view="tiles"] .site-shell .publication-row h3 { max-width: none; font-size: clamp(1.12rem, 1.35vw, 1.42rem) !important; }
body[data-publication-view="tiles"] .site-shell .publication-authors { -webkit-line-clamp: 2; font-size: .85rem; }
body[data-publication-view="tiles"] .site-shell .publication-summary { -webkit-line-clamp: 4; font-size: .9rem; line-height: 1.4; }
body[data-publication-view="tiles"] .publication-highlight-toggle { top: .7rem; right: .7rem; }

@media (max-width: 1120px) {
  .header-inner { width: min(100% - 24px, 1500px); }
  .main-nav { gap: .5rem; }
  .main-nav a { padding: .34rem .44rem; font-size: .79rem; }
  .nav-group { gap: .12rem; }
}
@media (max-width: 900px) {
  .main-nav { flex-wrap: wrap; justify-content: flex-end; }
  .nav-group-site { border-left: 0; padding-left: 0; }
  .landing-card-v79 { width: min(760px, calc(100vw - 32px)); }
  .landing-branch-selector { grid-template-columns: 1fr; }
  .landing-branch-choice { min-height: 145px; }
  .landing-branch-copy strong { font-size: 1.55rem; }
  .publication-toolbar-actions { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .publication-list-toolbar { gap: .8rem; }
  .landing-center-v79 { padding-inline: .65rem; }
  .landing-card-v79 { width: calc(100vw - 20px); padding: 1rem; }
  .landing-card-v79 .landing-logo { width: min(92%, 480px); }
}

/* v79 final typography/mobile navigation refinements */
h1, h2, h3, .editorial-title-block h1, .editorial-title-block h2 {
  letter-spacing: -.015em !important;
}
@media (max-width: 980px) {
  .main-nav.open {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .main-nav .nav-group {
    display: grid;
    width: 100%;
  }
  .main-nav .nav-group-branches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .main-nav .nav-group-site {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, #ee7100 48%, var(--line));
    padding: .65rem 0 0;
  }
  .main-nav .nav-group a { display: block; width: 100%; }
}


/* v81: stable landing selector, unified navigation, stronger active states, publication controls */
@media (min-width: 901px) {
  .header-inner {
    display: flex !important;
    align-items: center !important;
    gap: clamp(.8rem, 1.35vw, 1.5rem) !important;
  }
  .brand { flex: 0 0 auto; }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0;
    gap: clamp(.8rem, 1.35vw, 1.4rem);
  }
  .main-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0;
    justify-content: space-between !important;
    align-items: center !important;
    gap: clamp(.8rem, 1.4vw, 1.5rem) !important;
  }
  .nav-group-branches { justify-content: flex-start !important; }
  .nav-group-site { margin-left: auto; justify-content: flex-end !important; }
  .utility-controls { flex: 0 0 auto; margin-left: 0 !important; }
}

/* Make all three audience-path buttons visually persistent on every page. */
.main-nav .nav-branch {
  border-width: 2px !important;
  border-style: solid !important;
  padding: .48rem .72rem !important;
  border-radius: 999px !important;
}
.main-nav .nav-peers { border-color: rgba(91,197,242,.62) !important; }
.main-nav .nav-apprentice { border-color: rgba(0,168,121,.64) !important; }
.main-nav .nav-beginner { border-color: rgba(238,113,0,.68) !important; }
.main-nav .nav-peers.active {
  border-color: #5bc5f2 !important;
  box-shadow: 0 0 0 2px rgba(91,197,242,.68), inset 0 -4px #5bc5f2 !important;
}
.main-nav .nav-apprentice.active {
  border-color: #00a879 !important;
  box-shadow: 0 0 0 2px rgba(0,168,121,.66), inset 0 -4px #00a879 !important;
}
.main-nav .nav-beginner.active {
  border-color: #ee7100 !important;
  box-shadow: 0 0 0 2px rgba(238,113,0,.70), inset 0 -4px #fdc300 !important;
}
.main-nav .nav-site-link.active {
  border: 2px solid transparent !important;
  border-radius: 0 !important;
  padding: .46rem .72rem !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Reserve the hover-description area so the landing card never changes height. */
.landing-card-v79 {
  min-height: clamp(575px, 67vh, 670px) !important;
  display: flex;
  align-items: center;
}
.landing-card-content-v79 { width: 100%; }
.landing-card-v79 .landing-logo {
  width: clamp(470px, 39vw, 720px) !important;
  max-height: 205px !important;
}
.landing-branch-details,
.landing-branch-details.is-open {
  display: grid !important;
  grid-template-rows: 1fr !important;
  height: clamp(112px, 13vh, 138px) !important;
  min-height: clamp(112px, 13vh, 138px) !important;
  margin-top: 1rem !important;
  opacity: 1 !important;
  overflow: hidden;
}
.landing-branch-detail {
  align-self: start;
  padding-top: .9rem !important;
  opacity: 0;
}
.landing-branch-detail.is-active { opacity: 1; }
.landing-branch-detail strong { font-size: clamp(1.12rem, 1.25vw, 1.28rem) !important; }
.landing-branch-detail p {
  font-size: clamp(1.02rem, 1.18vw, 1.17rem) !important;
  line-height: 1.55 !important;
  margin-top: .32rem !important;
}

/* Highlighted publications are represented only in the highlighted section. */
[data-publication-pool] .publication-row[hidden],
[data-publication-pool] .publication-year-group[hidden] { display: none !important; }
.publication-list-highlighted .publication-highlight-toggle-remove {
  display: none;
}
.highlight-selection-mode .publication-list-highlighted .publication-highlight-toggle-remove {
  display: inline-flex;
}

/* Compact, conventional list/grid icon switch. */
.publication-view-switch {
  gap: .16rem;
  padding: .22rem !important;
}
.publication-view-button {
  width: 2.45rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
}
.publication-view-button svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .landing-card-v79 { min-height: auto !important; }
  .landing-card-v79 .landing-logo { width: min(96%, 560px) !important; max-height: 175px !important; }
  .landing-branch-details,
  .landing-branch-details.is-open {
    height: 145px !important;
    min-height: 145px !important;
  }
  .main-nav .nav-branch { border-width: 2px !important; }
}

/* v81: stronger audience-card selection rings on the landing page. */
.landing-branch-choice { border-width: 2px !important; }
.branch-choice-peers:hover,
.branch-choice-peers:focus-visible,
.branch-choice-peers.is-active {
  box-shadow: 0 0 0 3px rgba(91,197,242,.72), 0 18px 44px rgba(0,78,159,.26) !important;
}
.branch-choice-apprentice:hover,
.branch-choice-apprentice:focus-visible,
.branch-choice-apprentice.is-active {
  box-shadow: 0 0 0 3px rgba(0,168,121,.70), 0 18px 44px rgba(0,120,120,.24) !important;
}
.branch-choice-beginner:hover,
.branch-choice-beginner:focus-visible,
.branch-choice-beginner.is-active {
  box-shadow: 0 0 0 3px rgba(238,113,0,.72), 0 18px 44px rgba(213,59,10,.23) !important;
}

/* v82: keep the landing-page navigation treatment identical on every page. */
.main-nav .nav-branch {
  border-width: 2.5px !important;
  border-style: solid !important;
  border-radius: 999px !important;
  padding: .48rem .74rem !important;
  box-shadow: none !important;
}
.main-nav .nav-branch::after { display: none !important; }
.main-nav .nav-peers {
  color: #8bd6ff !important;
  border-color: #5bc5f2 !important;
  background: rgba(0,78,159,.18) !important;
}
.main-nav .nav-apprentice {
  color: #72e0ba !important;
  border-color: #00a879 !important;
  background: rgba(0,120,120,.17) !important;
}
.main-nav .nav-beginner {
  color: #ffb56c !important;
  border-color: #ee7100 !important;
  background: rgba(213,59,10,.16) !important;
}
.main-nav .nav-peers:hover,
.main-nav .nav-peers:focus-visible,
.main-nav .nav-peers.active {
  color: #fff !important;
  background: rgba(0,78,159,.38) !important;
  border-color: #5bc5f2 !important;
  box-shadow: 0 0 0 3px rgba(91,197,242,.42), inset 0 -3px #5bc5f2 !important;
}
.main-nav .nav-apprentice:hover,
.main-nav .nav-apprentice:focus-visible,
.main-nav .nav-apprentice.active {
  color: #fff !important;
  background: rgba(0,120,120,.38) !important;
  border-color: #00a879 !important;
  box-shadow: 0 0 0 3px rgba(0,168,121,.38), inset 0 -3px #00a879 !important;
}
.main-nav .nav-beginner:hover,
.main-nav .nav-beginner:focus-visible,
.main-nav .nav-beginner.active {
  color: #fff !important;
  background: rgba(213,59,10,.36) !important;
  border-color: #ee7100 !important;
  box-shadow: 0 0 0 3px rgba(238,113,0,.40), inset 0 -3px #fdc300 !important;
}
html.light-mode .main-nav .nav-peers {
  color: #003e6b !important;
  background: rgba(91,197,242,.17) !important;
  border-color: #5bc5f2 !important;
}
html.light-mode .main-nav .nav-apprentice {
  color: #006d61 !important;
  background: rgba(0,168,121,.14) !important;
  border-color: #00a879 !important;
}
html.light-mode .main-nav .nav-beginner {
  color: #a83a06 !important;
  background: rgba(238,113,0,.14) !important;
  border-color: #ee7100 !important;
}
html.light-mode .main-nav .nav-peers:hover,
html.light-mode .main-nav .nav-peers:focus-visible,
html.light-mode .main-nav .nav-peers.active {
  color: #07111f !important;
  background: rgba(91,197,242,.34) !important;
}
html.light-mode .main-nav .nav-apprentice:hover,
html.light-mode .main-nav .nav-apprentice:focus-visible,
html.light-mode .main-nav .nav-apprentice.active {
  color: #07111f !important;
  background: rgba(0,168,121,.28) !important;
}
html.light-mode .main-nav .nav-beginner:hover,
html.light-mode .main-nav .nav-beginner:focus-visible,
html.light-mode .main-nav .nav-beginner.active {
  color: #07111f !important;
  background: rgba(238,113,0,.27) !important;
}

/* v82 publication layouts: list = one full-width row; tiles = exactly three cards per row on wide screens. */
body[data-publication-view="list"] [data-publication-pool] {
  display: block !important;
}
body[data-publication-view="list"] [data-publication-pool] .publication-year-group {
  display: block !important;
}
body[data-publication-view="list"] [data-publication-pool] .publication-year-group > h3 {
  display: block !important;
}
body[data-publication-view="list"] [data-publication-pool] .publication-year-group .publication-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

body[data-publication-view="tiles"] [data-publication-pool] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(.85rem, 1.2vw, 1.2rem) !important;
  align-items: stretch;
}
body[data-publication-view="tiles"] [data-publication-pool] .publication-year-group,
body[data-publication-view="tiles"] [data-publication-pool] .publication-year-group .publication-list {
  display: contents !important;
}
body[data-publication-view="tiles"] [data-publication-pool] .publication-year-group > h3 {
  display: none !important;
}
body[data-publication-view="tiles"] [data-publication-pool] .publication-row.publication-row-featured {
  width: 100%;
  min-width: 0;
  min-height: 430px !important;
  height: 100% !important;
  max-height: none !important;
}
body[data-publication-view="tiles"] .publication-list-highlighted {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 1180px) {
  body[data-publication-view="tiles"] [data-publication-pool],
  body[data-publication-view="tiles"] .publication-list-highlighted {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  body[data-publication-view="tiles"] [data-publication-pool],
  body[data-publication-view="tiles"] .publication-list-highlighted {
    grid-template-columns: 1fr !important;
  }
}
/* Hidden highlighted records must stay out of the normal pool in both layouts. */
body[data-publication-view] [data-publication-pool] .publication-row[hidden],
body[data-publication-view] [data-publication-pool] .publication-year-group[hidden] {
  display: none !important;
}


/* v84: German landing lockup and stable one-line landing instruction */
.landing-logo-lockup-de {
  width: min(92%, 760px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.8rem) !important;
  margin-inline: auto;
}
.landing-logo-de-mark {
  position: relative;
  display: block;
  flex: 0 0 clamp(130px, 13vw, 190px);
  width: clamp(130px, 13vw, 190px);
  aspect-ratio: 1;
}
.landing-logo-de-mark > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.landing-logo-de-copy {
  display: grid;
  justify-items: center;
  min-width: 0;
  color: #8ed8f8;
  line-height: 1.08;
  text-align: center;
}
.landing-logo-de-copy strong {
  display: block;
  max-width: 13.5em;
  font-size: clamp(1.55rem, 2.55vw, 2.65rem);
  font-weight: 700;
  letter-spacing: .005em;
}
.landing-logo-de-copy > span:last-child {
  font-size: clamp(1.4rem, 2.15vw, 2.2rem);
  color: #44c8f5;
  letter-spacing: .015em;
}
.landing-logo-de-rule {
  display: block;
  width: min(100%, 18rem);
  height: 4px;
  margin: .62rem 0 .5rem;
  background: #ee7100;
  border-radius: 999px;
}
html.light-mode .landing-logo-de-copy { color: #003f6d; }
html.light-mode .landing-logo-de-copy > span:last-child { color: #005baa; }

/* Keep the instruction visually stable between English and German. */
.landing-card-v79 .landing-intro-v79 {
  width: min(100%, 48rem);
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .landing-logo-lockup-de { gap: .75rem !important; }
  .landing-logo-de-mark {
    flex-basis: clamp(95px, 23vw, 135px);
    width: clamp(95px, 23vw, 135px);
  }
  .landing-logo-de-copy strong { font-size: clamp(1.15rem, 5vw, 1.65rem); }
  .landing-logo-de-copy > span:last-child { font-size: clamp(1.05rem, 4.4vw, 1.45rem); }
  .landing-card-v79 .landing-intro-v79 {
    white-space: normal;
    min-height: 2.7em;
  }
}

/* v85 — keep the short landing instruction on one line on desktop. */
@media (min-width: 761px) {
  .landing-card-v79 .landing-intro-v79 {
    max-width: none !important;
    white-space: nowrap;
  }
}


/* v86 — landing CTA, independent publication layouts, and unclipped member publication rows */
.landing-card-v79 .landing-logo-lockup,
.landing-card-v79 .landing-logo-lockup-de {
  margin-bottom: clamp(1.35rem, 2.4vh, 2rem) !important;
}
.landing-intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  margin: 0 auto 1.4rem !important;
  font-size: clamp(1.12rem, 1.45vw, 1.32rem) !important;
  font-weight: 650 !important;
  line-height: 1.35;
  color: color-mix(in srgb, var(--ink-strong) 78%, var(--muted)) !important;
}
.landing-intro-arrow {
  display: inline-block;
  flex: 0 0 auto;
  color: #ee7100;
  font-size: 1.45em;
  line-height: 1;
  font-weight: 800;
  transform: translateX(0);
  animation: landing-cta-arrow 1.15s ease-in-out infinite;
}
@keyframes landing-cta-arrow {
  0%, 100% { opacity: .45; transform: translateX(-3px); }
  50% { opacity: 1; transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-intro-arrow { animation: none; opacity: 1; }
}
@media (max-width: 760px) {
  .landing-intro-cta { white-space: normal !important; }
}

/* Independent controls for Albert Lab and previous-member publication collections. */
.publication-columns-control {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.7rem;
  padding: .28rem .42rem .28rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity .18s ease, border-color .18s ease;
}
.publication-columns-control select {
  min-width: 3.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .55rem;
  color: var(--ink-strong);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
}
.publication-columns-control.is-disabled { opacity: .45; }
.publication-columns-control.is-disabled select { cursor: default; }
.member-publication-toolbar {
  margin: 1.35rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.member-publication-toolbar .section-head h3 {
  margin: 0 0 .2rem;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
}
.member-publication-toolbar .section-head p { margin: 0; }

/* List layout: each collection is controlled independently. */
[data-publication-view-scope][data-publication-view="list"] {
  display: block !important;
}
[data-publication-view-scope][data-publication-view="list"] .publication-year-group {
  display: block !important;
}
[data-publication-view-scope][data-publication-view="list"] .publication-year-group > h3 {
  display: block !important;
}
[data-publication-view-scope][data-publication-view="list"] .publication-year-group .publication-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

/* Tile layout: user-selectable 2/3/4 columns, independently for lab and member records. */
[data-publication-view-scope][data-publication-view="tiles"] {
  display: grid !important;
  grid-template-columns: repeat(var(--publication-columns, 3), minmax(0, 1fr)) !important;
  gap: clamp(.85rem, 1.2vw, 1.2rem) !important;
  align-items: stretch;
}
[data-publication-view-scope][data-publication-view="tiles"] .publication-year-group,
[data-publication-view-scope][data-publication-view="tiles"] .publication-year-group .publication-list {
  display: contents !important;
}
[data-publication-view-scope][data-publication-view="tiles"] .publication-year-group > h3 {
  display: none !important;
}

/* Lab tile cards. */
[data-publication-view-scope="lab"][data-publication-view="tiles"] .publication-row.publication-row-featured {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 190px minmax(0, 1fr) !important;
  width: 100%;
  min-width: 0;
  min-height: 430px !important;
  height: 100% !important;
  max-height: none !important;
}
[data-publication-view-scope="lab"][data-publication-view="tiles"] .publication-row.publication-row-featured > .publication-figure {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  border-right: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, #ee7100 24%, var(--line)) !important;
}
[data-publication-view-scope="lab"][data-publication-view="tiles"] .publication-row.publication-row-featured > .publication-figure img {
  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  object-fit: contain !important;
}
[data-publication-view-scope="lab"][data-publication-view="tiles"] .publication-row.publication-row-featured > .publication-row-body {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: start !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 1.05rem 1.15rem 1.15rem !important;
}
[data-publication-view-scope="lab"][data-publication-view="tiles"] .publication-row h3 {
  max-width: none !important;
  font-size: clamp(1.12rem, 1.35vw, 1.42rem) !important;
}

/* Previous-member list rows must grow with their title, authors and summary. */
.member-publications-inner [data-publication-view-scope="member"][data-publication-view="list"] .publication-row.publication-row-with-person {
  display: grid !important;
  grid-template-columns: clamp(118px, 9vw, 160px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(220px, auto) !important;
  height: auto !important;
  min-height: 220px !important;
  max-height: none !important;
  overflow: visible !important;
}
.member-publications-inner [data-publication-view-scope="member"][data-publication-view="list"] .publication-row-with-person > .publication-person-photo,
.member-publications-inner [data-publication-view-scope="member"][data-publication-view="list"] .publication-row-with-person > .publication-person-photo img {
  height: 100% !important;
  min-height: 220px !important;
  max-height: none !important;
}
.member-publications-inner [data-publication-view-scope="member"] .publication-row-with-person > .publication-row-body {
  max-height: none !important;
  overflow: visible !important;
  align-self: start !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

/* Previous-member tiles: portrait above content, same visual rhythm as publication tiles. */
.member-publications-inner [data-publication-view-scope="member"][data-publication-view="tiles"] .publication-row.publication-row-with-person {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 175px minmax(0, 1fr) !important;
  min-width: 0;
  min-height: 430px !important;
  height: 100% !important;
  max-height: none !important;
  overflow: hidden !important;
}
.member-publications-inner [data-publication-view-scope="member"][data-publication-view="tiles"] .publication-row-with-person > .publication-person-photo {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 175px !important;
  min-height: 175px !important;
  max-height: 175px !important;
  border-right: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, #ee7100 22%, var(--line)) !important;
}
.member-publications-inner [data-publication-view-scope="member"][data-publication-view="tiles"] .publication-row-with-person > .publication-person-photo img {
  width: 100% !important;
  height: 175px !important;
  min-height: 175px !important;
  max-height: 175px !important;
  object-fit: cover !important;
  object-position: center 30% !important;
}
.member-publications-inner [data-publication-view-scope="member"][data-publication-view="tiles"] .publication-row-with-person > .publication-row-body {
  grid-column: 1 !important;
  grid-row: 2 !important;
  padding: 1.05rem 1.15rem 1.2rem !important;
}
.member-publications-inner [data-publication-view-scope="member"][data-publication-view="tiles"] .publication-row h3 {
  max-width: none !important;
  font-size: clamp(1.08rem, 1.25vw, 1.35rem) !important;
}

@media (max-width: 1180px) {
  [data-publication-view-scope][data-publication-view="tiles"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  [data-publication-view-scope][data-publication-view="tiles"] {
    grid-template-columns: 1fr !important;
  }
  .member-publications-inner [data-publication-view-scope="member"][data-publication-view="list"] .publication-row.publication-row-with-person {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    min-height: 190px !important;
  }
  .member-publications-inner [data-publication-view-scope="member"][data-publication-view="list"] .publication-row-with-person > .publication-person-photo,
  .member-publications-inner [data-publication-view-scope="member"][data-publication-view="list"] .publication-row-with-person > .publication-person-photo img {
    min-height: 190px !important;
  }
}


/* v91 — transparent/larger logo presentation and publication-profile row sizing. */
/* The SVG itself is transparent; these rules ensure no surrounding image element paints a tile. */
.brand-mark,
.landing-logo-de-mark,
.landing-logo-de-mark > img,
.site-header .brand-mark {
  background: transparent !important;
  background-color: transparent !important;
}

/* Landing lockup ~150% larger than the previous v90 treatment while remaining responsive. */
.landing-card-v79 .landing-logo-lockup-de {
  width: min(97%, 1120px) !important;
  gap: clamp(1.25rem, 2.6vw, 2.7rem) !important;
  margin-bottom: clamp(1rem, 2vh, 1.7rem) !important;
}
.landing-card-v79 .landing-logo-de-mark {
  flex-basis: clamp(195px, 19.5vw, 285px) !important;
  width: clamp(195px, 19.5vw, 285px) !important;
}
.landing-card-v79 .landing-logo-de-copy strong {
  max-width: 14em !important;
  font-size: clamp(2.05rem, 3.45vw, 3.75rem) !important;
}
.landing-card-v79 .landing-logo-de-copy > span:last-child {
  font-size: clamp(1.75rem, 2.9vw, 3rem) !important;
}
.landing-card-v79 .landing-logo-de-rule {
  width: min(100%, 26rem) !important;
  height: 5px !important;
  margin: .8rem 0 .68rem !important;
}
@media (max-width: 900px) {
  .landing-card-v79 .landing-logo-lockup-de { gap: .9rem !important; }
  .landing-card-v79 .landing-logo-de-mark {
    flex-basis: clamp(150px, 29vw, 220px) !important;
    width: clamp(150px, 29vw, 220px) !important;
  }
  .landing-card-v79 .landing-logo-de-copy strong { font-size: clamp(1.4rem, 5.4vw, 2.2rem) !important; }
  .landing-card-v79 .landing-logo-de-copy > span:last-child { font-size: clamp(1.2rem, 4.7vw, 1.85rem) !important; }
}

/* Individual people-publication pages: rows must expand to show the complete visible metadata/summary. */
.person-publications-page .publication-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}
.person-publications-page .publication-row.publication-row-with-person {
  display: grid !important;
  grid-template-columns: clamp(150px, 11vw, 210px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(250px, auto) !important;
  height: auto !important;
  min-height: 250px !important;
  max-height: none !important;
  overflow: visible !important;
}
.person-publications-page .publication-row-with-person > .publication-person-photo,
.person-publications-page .publication-row-with-person > .publication-person-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 250px !important;
  max-height: none !important;
}
.person-publications-page .publication-row-with-person > .publication-person-photo img {
  object-fit: cover !important;
  object-position: center 28% !important;
}
.person-publications-page .publication-row-with-person > .publication-row-body {
  align-self: start !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 1.35rem 1.55rem 1.45rem !important;
}
.person-publications-page .publication-authors,
.person-publications-page .publication-summary {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}
.person-publications-page .publication-summary {
  margin-top: .8rem !important;
  line-height: 1.5 !important;
}
@media (max-width: 760px) {
  .person-publications-page .publication-row.publication-row-with-person {
    grid-template-columns: 105px minmax(0, 1fr) !important;
    min-height: 220px !important;
  }
  .person-publications-page .publication-row-with-person > .publication-person-photo,
  .person-publications-page .publication-row-with-person > .publication-person-photo img {
    min-height: 220px !important;
  }
}

/* v92 — sharper visual language. The audience-path pills remain rounded for
   recognition, while content containers use tighter geometry and harder edges. */
:root {
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-sm: 4px;
}
.card,
.visual-card,
.people-card,
.publication-row,
.member-publications-details,
.contact-card,
.callout,
.splat-card,
.story-copy,
.story-figure,
.story-media,
.story-panel,
.story-voice,
.parallax-window-frame,
.parallax-window-card,
.landing-card,
.landing-choice,
.highlight-selector-panel {
  border-radius: var(--radius-md) !important;
}
.button,
.editorial-contact-link,
.header-contact-button,
.project-layout-toggle,
.publication-view-button,
.highlight-selector-toggle {
  border-radius: 2px !important;
}
.card,
.people-card,
.publication-row,
.visual-card {
  box-shadow: 8px 8px 0 rgba(0,0,0,.12);
}
.card:hover,
.people-card:hover,
.publication-row:hover {
  transform: translate(-2px,-2px);
  box-shadow: 11px 11px 0 color-mix(in srgb, var(--branch) 15%, rgba(0,0,0,.15));
}
html.light-mode .card,
html.light-mode .people-card,
html.light-mode .publication-row,
html.light-mode .visual-card {
  box-shadow: 8px 8px 0 rgba(12,30,50,.07);
}
/* Keep circular utilities and branch pills intentionally round. */
.mode-toggle,
.flag-link,
.nav-branch,
.orcid-icon,
.publication-person-photo,
.person-photo { border-radius: 999px !important; }

/* v93 — CSS colour-space experience and member-publication reveal fix. */
.palette-toggle {
  width: 2.08rem;
  height: 2.08rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
html.light-mode .palette-toggle { background: rgba(255,255,255,.62); }
.palette-toggle:hover,
.palette-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--branch) 45%, white 16%);
  outline-offset: 2px;
}
.palette-toggle-wheel {
  width: 1.02rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, white 0 15%, transparent 62%),
    conic-gradient(from -90deg, #ff2d2d, #ffd42d, #39dc66, #2dd9dd, #3976ff, #ca3dff, #ff2d82, #ff2d2d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 0 0 1px rgba(0,0,0,.16);
}
.palette-toggle[data-palette-mode="personal"] .palette-toggle-wheel {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--palette-favourite, var(--branch)) 60%, transparent), inset 0 0 0 1px rgba(255,255,255,.28);
}

.colour-experience-open { overflow: hidden; }
.colour-experience-modal[hidden] { display: none !important; }
.colour-experience-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0;
  transition: opacity .18s ease;
}
.colour-experience-modal.is-open { opacity: 1; }
.colour-experience-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,5,14,.74);
  backdrop-filter: blur(14px) saturate(.8);
}
html.light-mode .colour-experience-backdrop { background: rgba(238,245,252,.72); }
.colour-experience-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(1.4rem, 3vw, 3.2rem);
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  border-top: 4px solid var(--palette-favourite, #ee7100);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 94%, #07111f 6%), color-mix(in srgb, var(--surface) 94%, #07111f 6%));
  box-shadow: 18px 18px 0 rgba(0,0,0,.22), 0 40px 120px rgba(0,0,0,.48);
  padding: clamp(1.5rem, 4vw, 3.4rem);
  transform: translateY(18px) scale(.985);
  transition: transform .2s ease;
}
.colour-experience-modal.is-open .colour-experience-dialog { transform: translateY(0) scale(1); }
html.light-mode .colour-experience-dialog {
  background: rgba(255,255,255,.96);
  box-shadow: 18px 18px 0 rgba(16,37,60,.09), 0 40px 120px rgba(30,54,82,.18);
}
.colour-experience-close {
  position: absolute;
  right: .75rem;
  top: .65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.colour-experience-copy h2 {
  margin: .25rem 0 .75rem;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 570;
}
.colour-experience-copy > p:last-child { color: var(--muted); max-width: 38rem; }
.colour-experience-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  justify-items: center;
  gap: 1.2rem;
}
.css-colour-wheel {
  position: relative;
  width: min(330px, 66vw);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
  background:
    radial-gradient(circle at center, #fff 0%, rgba(255,255,255,.82) 12%, rgba(255,255,255,.36) 42%, rgba(255,255,255,0) 72%),
    conic-gradient(from 90deg,
      hsl(0 100% 52%), hsl(60 100% 52%), hsl(120 100% 48%), hsl(180 100% 48%),
      hsl(240 100% 58%), hsl(300 100% 55%), hsl(360 100% 52%));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.30),
    0 0 0 1px rgba(0,0,0,.20),
    0 24px 60px rgba(0,0,0,.24);
}
.css-colour-wheel::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.78) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.colour-wheel-cursor {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.72), 0 4px 12px rgba(0,0,0,.28);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.colour-experience-preview {
  width: min(330px, 100%);
  display: grid;
  gap: .45rem;
}
.colour-preview-label,
.colour-experience-preview small {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.colour-experience-preview strong {
  font-family: var(--font-tech);
  letter-spacing: .06em;
}
.colour-harmony-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 42px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.colour-harmony-swatches span { display: block; }
.colour-experience-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: .25rem;
}
.colour-experience-actions .button { min-height: 44px; }
.colour-experience-actions .colour-apply {
  background: var(--palette-favourite, #005aa9);
  border-color: var(--palette-favourite, #005aa9);
}

/* Personal palettes feed the three branch themes and the site's recurring accent
   system. The original maker palette remains untouched until a visitor opts in. */
html.personalized-palette .theme-blue {
  --branch: var(--palette-peers);
  --branch-2: var(--palette-peers-2);
  --branch-bg-a: color-mix(in srgb, var(--palette-peers) 28%, #07111f);
  --branch-bg-b: color-mix(in srgb, var(--palette-peers) 7%, #07111f);
}
html.personalized-palette .theme-green {
  --branch: var(--palette-apprentice);
  --branch-2: var(--palette-apprentice-2);
  --branch-bg-a: color-mix(in srgb, var(--palette-apprentice) 26%, #07111f);
  --branch-bg-b: color-mix(in srgb, var(--palette-apprentice) 7%, #07111f);
}
html.personalized-palette .theme-orange {
  --branch: var(--palette-beginner);
  --branch-2: var(--palette-beginner-2);
  --branch-bg-a: color-mix(in srgb, var(--palette-beginner) 27%, #07111f);
  --branch-bg-b: color-mix(in srgb, var(--palette-beginner) 7%, #07111f);
}
html.light-mode.personalized-palette .theme-blue {
  --branch-bg-a: color-mix(in srgb, var(--palette-peers) 13%, white);
  --branch-bg-b: color-mix(in srgb, var(--palette-peers) 3%, white);
}
html.light-mode.personalized-palette .theme-green {
  --branch-bg-a: color-mix(in srgb, var(--palette-apprentice) 13%, white);
  --branch-bg-b: color-mix(in srgb, var(--palette-apprentice) 3%, white);
}
html.light-mode.personalized-palette .theme-orange {
  --branch-bg-a: color-mix(in srgb, var(--palette-beginner) 13%, white);
  --branch-bg-b: color-mix(in srgb, var(--palette-beginner) 3%, white);
}
html.personalized-palette .site-header::after {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--palette-complement) 20%, transparent),
    var(--palette-beginner) 20%,
    var(--palette-favourite) 50%,
    var(--palette-apprentice) 80%,
    color-mix(in srgb, var(--palette-peers) 20%, transparent)) !important;
}
html.personalized-palette .header-contact-button {
  background: var(--palette-beginner) !important;
  border-color: var(--palette-beginner-2) !important;
}
html.personalized-palette .header-contact-button:hover,
html.personalized-palette .header-contact-button:focus-visible { background: var(--palette-beginner-2) !important; }
html.personalized-palette .landing-card-v79 { border-top-color: var(--palette-favourite) !important; }
html.personalized-palette .landing-intro-arrow { color: var(--palette-complement) !important; }
html.personalized-palette .branch-choice-peers .landing-branch-overlay { box-shadow: inset 0 -5px var(--palette-peers) !important; }
html.personalized-palette .branch-choice-apprentice .landing-branch-overlay { box-shadow: inset 0 -5px var(--palette-apprentice) !important; }
html.personalized-palette .branch-choice-beginner .landing-branch-overlay { box-shadow: inset 0 -5px var(--palette-beginner) !important; }
html.personalized-palette .branch-choice-peers:hover,
html.personalized-palette .branch-choice-peers:focus-visible,
html.personalized-palette .branch-choice-peers.is-active { border-color: var(--palette-peers) !important; }
html.personalized-palette .branch-choice-apprentice:hover,
html.personalized-palette .branch-choice-apprentice:focus-visible,
html.personalized-palette .branch-choice-apprentice.is-active { border-color: var(--palette-apprentice) !important; }
html.personalized-palette .branch-choice-beginner:hover,
html.personalized-palette .branch-choice-beginner:focus-visible,
html.personalized-palette .branch-choice-beginner.is-active { border-color: var(--palette-beginner) !important; }
html.personalized-palette .editorial-contact-link::before,
html.personalized-palette .editorial-cta::before { color: var(--palette-complement) !important; }
html.personalized-palette .button-primary { background: var(--branch) !important; border-color: var(--branch-2) !important; }
html.personalized-palette .publication-highlight-toggle[aria-pressed="true"] { background: var(--palette-beginner) !important; }

/* Ensure a details section opened after page load never leaves its dynamically
   rendered publication collection transparent because of scroll-reveal state. */
.member-publications-details[open] .member-publications-inner .reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

@media (max-width: 760px) {
  .colour-experience-dialog { grid-template-columns: 1fr; max-height: calc(100svh - 2rem); overflow: auto; }
  .colour-experience-actions { grid-column: 1; }
  .css-colour-wheel { width: min(270px, 72vw); }
}
@media (prefers-reduced-motion: reduce) {
  .colour-experience-modal,
  .colour-experience-dialog { transition: none !important; }
}


/* v97 — adult audience illustrations with palette-aware monochrome tinting */
.landing-branch-photo {
  filter: grayscale(1) contrast(1.06);
  background-color: #747b84;
  background-blend-mode: luminosity;
}
.landing-branch-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--branch-image-tint, var(--blue));
  mix-blend-mode: color;
  opacity: .64;
  transition: opacity .28s ease, background-color .28s ease;
}
.branch-choice-peers { --branch-image-tint: var(--blue); }
.branch-choice-apprentice { --branch-image-tint: var(--green); }
.branch-choice-beginner { --branch-image-tint: var(--orange); }
html.personalized-palette .branch-choice-peers { --branch-image-tint: var(--palette-peers); }
html.personalized-palette .branch-choice-apprentice { --branch-image-tint: var(--palette-apprentice); }
html.personalized-palette .branch-choice-beginner { --branch-image-tint: var(--palette-beginner); }
.landing-branch-choice:hover .landing-branch-photo,
.landing-branch-choice:focus-visible .landing-branch-photo,
.landing-branch-choice.is-active .landing-branch-photo {
  filter: grayscale(1) contrast(1.12) brightness(1.04);
}
.landing-branch-choice:hover .landing-branch-photo::before,
.landing-branch-choice:focus-visible .landing-branch-photo::before,
.landing-branch-choice.is-active .landing-branch-photo::before { opacity: .82; }
html.light-mode .landing-branch-photo { filter: grayscale(1) contrast(1.02) brightness(1.08); }
html.light-mode .landing-branch-photo::before { opacity: .50; }

.site-version-badge {
  display: inline-flex;
  margin-top: .55rem;
  padding: .24rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
