/* ============================================================
   Cardiac Imaging USZ – shared stylesheet
   Design language: USZ institutional (Nuklearmedizin)
   ============================================================ */

:root {
  --usz-blue:      #003B71;
  --usz-blue-mid:  #005092;
  --usz-accent:    #0085CA;
  --usz-accent-dk: #006ba6;
  --usz-light-bg:  #F4F7FA;
  --usz-border:    #D6E2ED;
  --usz-text:      #1A1A1A;
  --usz-muted:     #4A5568;
  --white:         #FFFFFF;
  --shadow-sm:     0 2px 14px rgba(0,59,113,0.08);
  --shadow-md:     0 8px 30px rgba(0,59,113,0.12);
  --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  font-family: var(--font);
  color: var(--usz-text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--usz-accent-dk); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── TOPBAR ── */
.topbar {
  background: var(--usz-blue);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 7px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.topbar a { color: rgba(255,255,255,0.7); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── HEADER / NAV ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--usz-blue);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--usz-blue); border-radius: 9px;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text .name {
  font-size: 18px; font-weight: 700; color: var(--usz-blue);
  letter-spacing: -0.01em; line-height: 1.1;
}
.brand-text .sub { font-size: 12px; color: var(--usz-muted); font-weight: 400; }

/* nav */
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--usz-text);
  font-size: 14px; font-weight: 600;
  padding: 9px 10px; border-radius: 7px;
  transition: background .15s, color .15s; white-space: nowrap;
}
.nav a:hover { background: var(--usz-light-bg); color: var(--usz-blue); }
.nav a.active { color: var(--usz-blue); background: var(--usz-light-bg); }
.nav a.ext::after { content: " ↗"; font-size: 11px; opacity: .6; }
.nav .tool {
  color: var(--usz-accent-dk);
  font-size: 12.5px; padding: 8px 7px;
}
.nav-divider { width: 1px; height: 22px; background: var(--usz-border); margin: 0 5px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--usz-blue);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--usz-blue) 0%, var(--usz-blue-mid) 55%, #004e7a 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(circle at 82% 18%, rgba(0,133,202,0.55) 0%, transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(0,133,202,0.30) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 50px 28px 58px;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12); padding: 6px 14px; border-radius: 30px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.02em; max-width: 15ch;
}
.hero h1 span { color: #7ecbf0; }
.hero p.lead {
  margin-top: 8px; font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,0.85); max-width: 62ch;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 9px; font-weight: 600; font-size: 15.5px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--usz-blue); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--usz-light-bg); }
.btn-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.16); }
.btn-solid { background: var(--usz-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--usz-accent-dk); }
/* outline variant for use on light backgrounds (btn-outline assumes a dark one) */
.btn-ghost { background: var(--white); color: var(--usz-blue); border-color: var(--usz-border); }
.btn-ghost:hover { background: var(--usz-light-bg); border-color: var(--usz-accent); }
.btn .arrow {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--usz-accent); color: #fff; font-size: 13px;
}
.btn-solid .arrow, .btn-outline .arrow { background: rgba(255,255,255,0.25); }

/* ── SECTIONS ── */
section { padding: 68px 0; }
section.alt { background: var(--usz-light-bg); }
.section-head { max-width: 72ch; margin-bottom: 42px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--usz-accent-dk); margin-bottom: 12px;
}
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: var(--usz-blue);
     letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 21px; font-weight: 700; color: var(--usz-blue); margin-bottom: 8px; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--usz-muted); }
p + p { margin-top: 14px; }

/* ── GRID / CARDS ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--usz-border); border-radius: 14px;
  padding: 26px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--usz-accent); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--usz-light-bg); color: var(--usz-accent-dk); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--usz-muted); font-size: 15.5px; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.member {
  background: var(--white); border: 1px solid var(--usz-border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member .photo { aspect-ratio: 1 / 1; background: var(--usz-light-bg); overflow: hidden; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.member .role-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--usz-accent-dk);
  background: var(--usz-light-bg); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px;
}
.member h3 { margin-bottom: 2px; font-size: 20px; }
.member .title { font-size: 14px; color: var(--usz-muted); font-weight: 600; }
.member .focus { margin-top: 12px; font-size: 14.5px; color: var(--usz-muted); flex: 1; }
.member .links { margin-top: 16px; display: flex; gap: 14px; }
.member .links a {
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--usz-accent-dk);
  display: inline-flex; align-items: center; gap: 5px;
}
.member .links a:hover { text-decoration: underline; }

/* ── PUBLICATIONS ── */
.pub-list { display: grid; gap: 16px; }
.pub {
  background: var(--white); border: 1px solid var(--usz-border); border-left: 4px solid var(--usz-accent);
  border-radius: 10px; padding: 20px 24px;
  transition: box-shadow .16s, transform .16s;
}
.pub:hover { box-shadow: var(--shadow-sm); transform: translateX(3px); }
.pub .pub-title { font-size: 17px; font-weight: 700; color: var(--usz-blue); line-height: 1.35; }
.pub .pub-meta { margin-top: 6px; font-size: 14.5px; color: var(--usz-muted); }
.pub .pub-meta .journal { font-style: italic; }
.pub .pub-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--usz-accent-dk);
}
.pub .pub-link:hover { text-decoration: underline; }

/* ── FOCUS THEMES (research) ── */
.theme {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--usz-border);
}
.theme:last-child { border-bottom: 0; }
.theme .t-icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: var(--usz-blue); color: #fff;
}
.theme .t-icon svg { width: 28px; height: 28px; }
.theme h3 { margin-bottom: 6px; }
.theme p { color: var(--usz-muted); font-size: 16px; }

/* ── TOOLS CALLOUT ── */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--usz-border); border-radius: 14px;
  padding: 26px; text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--usz-accent); }
.tool-card .t-mark {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: var(--usz-blue); color: #fff;
}
.tool-card .t-mark svg { width: 27px; height: 27px; }
.tool-card h3 { margin-bottom: 4px; }
.tool-card .h-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 4px; }
.tool-card .h-row h3 { margin-bottom: 0; }
.flag {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  color: #8A5300; background: #FFF3DF; border: 1px solid #F0DAB4;
}
.tool-card p { color: var(--usz-muted); font-size: 15px; }
.tool-card .go { margin-top: 10px; font-weight: 700; color: var(--usz-accent-dk); font-size: 14.5px; }

/* ── CALCULATOR / TOOL PAGES ── */
.calc-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

.calc-card {
  background: var(--white); border: 1px solid var(--usz-border);
  border-radius: 14px; padding: 30px 32px;
}
.calc-group + .calc-group { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--usz-border); }
.calc-group > h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--usz-accent-dk); margin-bottom: 16px;
}

.field { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 7px 0; }
.field > label, .field > .f-name { font-size: 15.5px; font-weight: 600; color: var(--usz-text); }
.field .hint { display: block; font-size: 13px; font-weight: 400; color: var(--usz-muted); }

.field input[type="number"] {
  font: inherit; font-size: 15.5px; width: 108px; text-align: right;
  padding: 8px 12px; border: 1px solid var(--usz-border); border-radius: 8px;
  background: var(--white); color: var(--usz-text);
}
.field input[type="number"]:focus { outline: 2px solid var(--usz-accent); outline-offset: 1px; border-color: transparent; }
.field input[type="number"].invalid { border-color: #C0392B; background: #FDF3F2; }

/* yes / no segmented control, built on real radios so it stays keyboard-accessible */
.seg { display: inline-flex; flex-shrink: 0; border: 1px solid var(--usz-border); border-radius: 8px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  font-size: 14px; font-weight: 600; color: var(--usz-muted);
  padding: 7px 18px; cursor: pointer; background: var(--white);
  transition: background .13s, color .13s;
}
.seg label + input + label { border-left: 1px solid var(--usz-border); }
.seg label:hover { background: var(--usz-light-bg); }
.seg input:checked + label { background: var(--usz-blue); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--usz-accent); outline-offset: -2px; }

.calc-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* result panel */
.calc-result {
  position: sticky; top: 96px;
  background: var(--usz-light-bg); border: 1px solid var(--usz-border);
  border-radius: 14px; padding: 26px 28px;
}
.calc-result .r-label {
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--usz-accent-dk); margin-bottom: 10px;
}
.calc-result .r-value {
  font-size: 46px; font-weight: 700; line-height: 1.05; color: var(--usz-blue);
  letter-spacing: -0.02em;
}
.calc-result .r-value.empty { font-size: 26px; color: var(--usz-muted); font-weight: 600; }
.calc-result .r-caption { font-size: 14px; color: var(--usz-muted); margin-top: 8px; }
.calc-bar { height: 9px; border-radius: 6px; background: #DCE6EF; overflow: hidden; margin-top: 18px; }
.calc-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--usz-accent) 0%, var(--usz-blue) 100%);
  transition: width .45s ease;
}
.calc-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--usz-muted); margin-top: 6px; }

/* preliminary / research-use notice */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #FFF9F0; border: 1px solid #F0DAB4; border-left: 4px solid #E0A030;
  border-radius: 10px; padding: 18px 20px; margin-bottom: 30px;
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: #B27400; margin-top: 1px; }
.notice strong { display: block; color: #8A5300; font-size: 15px; margin-bottom: 3px; }
.notice p { font-size: 14.5px; color: var(--usz-muted); }

@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}
@media (max-width: 620px) {
  .calc-card { padding: 24px 20px; }
  .field { flex-direction: column; align-items: flex-start; gap: 9px; }
  .field input[type="number"] { width: 100%; text-align: left; }
}

/* ── LOGO STRIP (collaborations) ── */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.logo-chip {
  padding: 14px 22px; border: 1px solid var(--usz-border); border-radius: 10px;
  background: var(--white); font-weight: 600; color: var(--usz-blue); font-size: 15px;
}
.fund-list { display: grid; gap: 14px; }
.fund-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; background: var(--white); border: 1px solid var(--usz-border); border-radius: 12px;
}
.fund-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--usz-accent); margin-top: 8px; flex-shrink: 0; }
.fund-item strong { color: var(--usz-blue); display: block; font-size: 16px; }
.fund-item span { color: var(--usz-muted); font-size: 14.5px; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(155deg, var(--usz-blue), var(--usz-blue-mid));
  color: #fff; border-radius: 18px; padding: 48px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 14px auto 26px; max-width: 60ch; font-size: 18px; }
.cta-band .hero-actions { justify-content: center; }

/* ── FOOTER ── */
footer {
  background: var(--usz-blue); color: rgba(255,255,255,0.72); padding: 54px 0 26px; margin-top: 10px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .02em; }
footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; font-size: 14.5px; }
footer .f-brand .name { color: #fff; font-weight: 700; font-size: 18px; }
footer .f-brand p { font-size: 14.5px; margin-top: 10px; max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ── PAGE HEADER (subpages) ── */
.page-hero {
  background: linear-gradient(155deg, var(--usz-blue) 0%, var(--usz-blue-mid) 100%);
  color: #fff; padding: 58px 0 62px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 85% 20%, rgba(0,133,202,0.5) 0%, transparent 45%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.page-hero p { margin-top: 14px; font-size: 18px; color: rgba(255,255,255,0.85); max-width: 66ch; }
.crumb { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; letter-spacing: .04em; }
.crumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.crumb a:hover { color: #fff; }

/* ── HERO HEADLINE + LOGO ── */
.hero-headrow {
  display: flex; align-items: center; gap: clamp(22px, 4vw, 56px);
  margin: -22px 0 -26px;
}
.hero-headrow h1 { flex: 1; max-width: none; }
.hero-logo {
  flex-shrink: 0; width: clamp(140px, 19vw, 210px); height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
  animation: heartfloat 6s ease-in-out infinite;
}

/* ── HERO WITH VISUAL (legacy split, unused) ── */
.hero-inner.split {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center;
}
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,133,202,0.55) 0%, rgba(0,133,202,0) 68%);
  filter: blur(6px);
}
.hero-visual img {
  position: relative; width: 100%; max-width: 460px;
  filter: drop-shadow(0 26px 40px rgba(0,0,0,0.38));
  animation: heartfloat 6s ease-in-out infinite;
}
@keyframes heartfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-visual img { animation: none; } }

/* ── SECTION FIGURE (generic image band) ── */
.figure-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.figure-band .fig { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.figure-band img { width: 100%; display: block; }

/* ── SOCIAL ICONS (team) ── */
.socials { margin-top: 14px; display: flex; gap: 9px; flex-wrap: wrap; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: var(--usz-light-bg); color: var(--usz-blue); border: 1px solid var(--usz-border);
  transition: background .15s, color .15s, transform .15s; text-decoration: none;
}
.socials a:hover { background: var(--usz-blue); color: #fff; transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.socials .orcid:hover { background: #A6CE39; border-color: #A6CE39; color: #fff; }
.socials .x-link:hover { background: #111; border-color: #111; }
.socials .li:hover { background: #0A66C2; border-color: #0A66C2; }
.socials .pm:hover { background: var(--usz-accent); border-color: var(--usz-accent); }

/* ── PARTNER / FUNDER WALL ── */
.partner-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner {
  display: flex; align-items: center; gap: 15px;
  background: var(--white); border: 1px solid var(--usz-border); border-radius: 12px;
  padding: 18px 20px; transition: box-shadow .16s, transform .16s, border-color .16s;
}
.partner:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); border-color: var(--usz-accent); }
.partner .mono {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; letter-spacing: .01em; color: #fff; background: var(--usz-blue);
}
.partner .mono.alt { background: var(--usz-accent); }
.partner .mono.teal { background: #0a7d8c; }
/* .mono.logo is applied automatically by nav.js when a real logo file exists
   at the badge's data-logo path (see assets/logos/README.txt). */
.partner .mono.logo {
  background: var(--white); border: 1px solid var(--usz-border); padding: 5px;
}
.partner .mono img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.partner .p-name { display: block; font-weight: 700; color: var(--usz-blue); font-size: 15px; line-height: 1.25; }
.partner .p-kind { display: block; font-size: 12.5px; color: var(--usz-muted); margin-top: 2px; }

/* ── LIVE PUBLICATIONS ── */
.pub-authors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.author-chip {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 15px; border-radius: 22px; border: 1px solid var(--usz-border);
  background: var(--white); color: var(--usz-blue);
  transition: background .15s, color .15s, border-color .15s;
}
.author-chip:hover { border-color: var(--usz-accent); color: var(--usz-accent-dk); }
.author-chip.active { background: var(--usz-blue); color: #fff; border-color: var(--usz-blue); }

.pub-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.pub-search {
  flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--usz-border); border-radius: 10px; padding: 10px 14px;
}
.pub-search svg { width: 18px; height: 18px; color: var(--usz-muted); flex-shrink: 0; }
.pub-search input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; color: var(--usz-text); }
.pub-count { font-size: 14.5px; font-weight: 600; color: var(--usz-muted); white-space: nowrap; }
.pub-count b { color: var(--usz-blue); }

.pub-status {
  display: flex; align-items: center; gap: 12px; padding: 26px; justify-content: center;
  color: var(--usz-muted); font-size: 15.5px;
}
.spinner {
  width: 22px; height: 22px; border: 3px solid var(--usz-border); border-top-color: var(--usz-accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pub-year-head {
  font-size: 15px; font-weight: 700; color: var(--usz-accent-dk); letter-spacing: .04em;
  margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--usz-border);
}
.pub-year-head:first-child { margin-top: 0; }
.pub .authors { margin-top: 5px; font-size: 14px; color: var(--usz-muted); }
.pub .authors .me { color: var(--usz-blue); font-weight: 700; }
.pub .pub-tags { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.pub .pub-tags a {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600;
  text-decoration: none; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--usz-border);
  color: var(--usz-accent-dk); background: var(--white); transition: background .15s, color .15s;
}
.pub .pub-tags a:hover { background: var(--usz-accent); color: #fff; border-color: var(--usz-accent); }
.pub .pub-tags a.doi:hover { background: var(--usz-blue); border-color: var(--usz-blue); }
.load-more-wrap { text-align: center; margin-top: 30px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .f-brand { grid-column: 1 / -1; }
  .partner-wall { grid-template-columns: repeat(2, 1fr); }
  .figure-band { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .hero-inner.split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-visual img { max-width: 300px; }
}
@media (max-width: 620px) {
  .hero-headrow { flex-direction: column-reverse; align-items: flex-start; gap: 18px; margin: 0; }
  .hero-logo { width: 128px; }
}
/* Five tool links no longer fit next to the main nav below ~1120px,
   so the burger menu takes over earlier than the other breakpoints. */
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 3px solid var(--usz-blue);
    padding: 12px 16px 18px; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a, .nav .tool { padding: 12px 14px; font-size: 16px; }
  .nav-divider { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .team-grid, .tools, .fund-list { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero-inner { padding: 56px 28px; }
  .cta-band { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner span { font-size: 12px; }
}
