/*
Theme Name: StructuralMG Blog
Description: Blog theme matching the StructuralMG static site — same header, footer, logo, colors and typography.
Version: 1.2.2
Author: StructuralMG
Text Domain: structuralmg-blog
*/

/* ═══════════════════════════════════════════════
   SAFE-T Project Microsite — StructuralMG palette
════════════════════════════════════════════════ */

:root {
  --green-darkest: #04342C;
  --green-dark:    #085041;
  --green-mid:     #0F6E56;
  --green-base:    #1D9E75;
  --green-light:   #5DCAA5;
  --green-pale:    #9FE1CB;
  --green-ghost:   #E1F5EE;

  --text-primary:   #1a1a18;
  --text-secondary: #5a5a55;
  --text-muted:     #8a8a82;

  --bg-white:  #ffffff;
  --bg-off:    #f7f6f2;
  --bg-subtle: #f0efe9;

  --border-light: rgba(0,0,0,0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Public Sans', system-ui, sans-serif;

  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 0; }
.section--off { background: var(--bg-off); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-base);
  display: block;
  margin-bottom: 10px;
}

.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.section-intro { color: var(--text-secondary); max-width: none; margin-bottom: 40px; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn--primary { background: var(--green-base); color: #fff; }
.btn--primary:hover { background: var(--green-mid); transform: translateY(-1px); }

.btn--ghost { color: var(--green-pale); border-color: rgba(93,202,165,0.5); }
.btn--ghost:hover { background: rgba(93,202,165,0.1); color: #fff; }

.btn--dark-outline { color: var(--green-mid); border-color: var(--green-mid); }
.btn--dark-outline:hover { background: var(--green-ghost); }

/* ── Top banner (parent site link) ────────────── */
.parent-banner {
  background: var(--green-darkest);
  color: var(--green-pale);
  font-size: 12px;
  padding: 7px 0;
  text-align: center;
}
.parent-banner a { color: var(--green-light); text-decoration: underline; }

/* ── Navigation ───────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-darkest);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-brand .brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.nav-links a:hover { color: var(--text-primary); background: var(--bg-subtle); }
.nav-links a.active { color: var(--green-mid); background: var(--green-ghost); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: var(--green-darkest);
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 85% 30%, rgba(29,158,117,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 8% 90%, rgba(93,202,165,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero-grant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green-light);
  background: rgba(29,158,117,0.14);
  border: 1px solid rgba(93,202,165,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero .hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--green-light);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 20px;
}

.hero .hero-question {
  font-size: 16px;
  color: var(--green-pale);
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(93,202,165,0.2);
}

.hero-meta-item { min-width: 140px; }
.hero-meta-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-light); margin-bottom: 4px; }
.hero-meta-value { font-size: 14px; color: #fff; }

/* ── Abstract block ───────────────────────────── */
.abstract-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.abstract-text { font-size: 16.5px; line-height: 1.8; color: var(--text-primary); }

.fact-card {
  background: var(--green-darkest);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}

.fact-card h3 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.fact-row { padding: 10px 0; border-bottom: 1px solid rgba(93,202,165,0.15); }
.fact-row:last-child { border-bottom: none; }
.fact-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-light); }
.fact-value { font-size: 13px; color: rgba(255,255,255,0.9); margin-top: 2px; }
.fact-value a { color: var(--green-pale); text-decoration: underline; }

@media (max-width: 860px) {
  .abstract-grid { grid-template-columns: 1fr; }
  .fact-card { position: static; }
}

/* ── Objectives ───────────────────────────────── */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.objective-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-base);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.2s;
}

.objective-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.objective-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--green-base);
  font-weight: 700;
  margin-bottom: 10px;
}

.objective-card h3 { font-size: 16px; margin-bottom: 8px; }
.objective-card p { font-size: 14px; color: var(--text-secondary); }

/* ── Methods strip ────────────────────────────── */
.methods-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.method-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-ghost);
  color: var(--green-mid);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 24px;
}

/* ── Timeline ─────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; max-width: 720px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
}

.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--green-light);
}

.timeline-item.done .timeline-dot { background: var(--green-base); border-color: var(--green-base); }

.timeline-date { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--green-mid); margin-bottom: 4px; }
.timeline-item h3 { font-size: 16px; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--text-secondary); }

.timeline-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
.timeline-badge.done { background: var(--green-ghost); color: var(--green-mid); }
.timeline-badge.upcoming { background: var(--bg-subtle); color: var(--text-muted); }

/* ── Team ─────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.2s;
}

.team-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); }

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-mid);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 { font-size: 16px; margin-bottom: 4px; }
.team-role { font-size: 12.5px; color: var(--green-mid); font-weight: 500; margin-bottom: 10px; }
.team-bio { font-size: 13px; color: var(--text-secondary); }
.team-email { display: inline-block; font-size: 12px; color: var(--green-mid); margin-top: 12px; text-decoration: underline; }

/* ── Results ──────────────────────────────────── */
.results-list { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }

.result-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.result-marker {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-ghost);
  color: var(--green-mid);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.result-item p { font-size: 14.5px; color: var(--text-primary); }

/* Key numbers band */
.numbers-band {
  background: var(--green-darkest);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.number-item { text-align: center; }
.number-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--green-light); line-height: 1; }
.number-label { font-size: 12px; color: var(--green-pale); margin-top: 8px; }

/* Impact cards */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.impact-card {
  background: var(--bg-off);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.impact-card h3 { font-size: 15px; color: var(--green-mid); margin-bottom: 10px; }
.impact-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ── Publications ─────────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }

.pub-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: all 0.2s;
}

.pub-item:hover { border-color: var(--green-light); box-shadow: var(--shadow); }

.pub-year {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--green-ghost);
  color: var(--green-mid);
  padding: 3px 12px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.pub-item h3 { font-size: 16px; line-height: 1.45; margin-bottom: 6px; }
.pub-authors { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.pub-venue { font-size: 13px; color: var(--text-muted); font-style: italic; margin-bottom: 12px; }
.pub-links { display: flex; gap: 10px; flex-wrap: wrap; }

.pub-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-mid);
  border: 1px solid var(--green-light);
  padding: 5px 14px;
  border-radius: 16px;
  transition: background 0.15s;
}
.pub-link:hover { background: var(--green-ghost); }

/* ── Funding strip ────────────────────────────── */
.funding-strip {
  background: var(--bg-subtle);
  padding: 32px 0;
  text-align: center;
}
.funding-strip p { font-size: 13px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.funding-strip strong { color: var(--text-primary); }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: var(--green-darkest);
  padding: 48px 0 28px;
  color: var(--green-pale);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-tagline { font-size: 13px; color: rgba(159,225,203,0.7); max-width: 300px; }

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 13px; color: rgba(159,225,203,0.75); transition: color 0.15s; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(93,202,165,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(159,225,203,0.5);
}

.footer-bottom a { color: var(--green-light); text-decoration: underline; }

/* ── Reveal animation ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Page hero (subpages) ─────────────────────── */
.page-hero { background: var(--green-darkest); padding: 64px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--green-pale); }

/* ── Progress bar ("we are here") ─────────────── */
.progress-wrap { max-width: 720px; margin-bottom: 8px; }

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.progress-labels small { font-weight: 400; color: var(--text-muted); }

.progress-track {
  position: relative;
  height: 12px;
  background: var(--bg-subtle);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-base));
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.4, 1);
}

.progress-marker {
  position: absolute;
  top: -34px;
  left: 0%;
  transform: translateX(-50%);
  text-align: center;
  transition: left 1.2s cubic-bezier(0.25, 1, 0.4, 1);
}

.progress-marker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--green-darkest);
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  margin-bottom: 4px;
}

.progress-marker-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-darkest);
  border: 4px solid var(--green-light);
  margin: 6px auto 0;
  box-shadow: 0 2px 8px rgba(4,52,44,0.35);
}

.progress-pct {
  font-size: 12px;
  color: var(--green-mid);
  font-weight: 600;
  margin-top: 12px;
}

/* ── Team card links row ──────────────────────── */
.team-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.team-link-chip {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--green-mid);
  background: var(--green-ghost);
  padding: 4px 12px;
  border-radius: 14px;
  transition: background 0.15s;
}
.team-link-chip:hover { background: var(--green-pale); }

/* ── Outreach & open data ─────────────────────── */
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.outreach-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.2s;
}
.outreach-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); }

.outreach-type {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-ghost);
  padding: 3px 11px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.outreach-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.outreach-card p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; }
.outreach-card .pub-link { font-size: 12px; }

.data-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.data-item-info h3 { font-size: 14.5px; margin-bottom: 3px; }
.data-item-info p { font-size: 12.5px; color: var(--text-muted); margin: 0; }

.team-position { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

/* ═══════════════════════════════════════════════
   HYCAVE-specific components
════════════════════════════════════════════════ */

/* ── Hero showcase (SafeInCave simulation) ────── */
.hero-showcase {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(93,202,165,0.2);
  background: #0a1628;
  max-width: 420px;
}
.hero-showcase img { width: 100%; display: block; }
.hero-showcase-caption {
  font-size: 11px;
  color: var(--green-pale);
  padding: 10px 14px;
  background: rgba(4,52,44,0.6);
  line-height: 1.5;
}

.hero-grid-showcase {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid-showcase { grid-template-columns: 1fr; }
  .hero-showcase { max-width: 100%; margin-top: 32px; }
}

/* ── Novelty cards ────────────────────────────── */
.novelty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.novelty-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.2s;
}
.novelty-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); }
.novelty-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  width: 44px;
}
.novelty-card h3 { font-size: 16px; margin-bottom: 8px; }
.novelty-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ── Work packages ────────────────────────────── */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.wp-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--green-base);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s;
}
.wp-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.wp-code {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-base);
  margin-bottom: 8px;
}
.wp-card h3 { font-size: 14.5px; margin-bottom: 6px; }
.wp-card p { font-size: 13px; color: var(--text-secondary); }

/* ── Milestones grid ──────────────────────────── */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.milestone-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s;
}
.milestone-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); }
.milestone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.milestone-code {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--green-base);
}
.milestone-quarter {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-ghost);
  padding: 3px 10px;
  border-radius: 12px;
}
.milestone-card h3 { font-size: 14.5px; margin-bottom: 6px; }
.milestone-card p { font-size: 13px; color: var(--text-secondary); }

/* ── Placeholder block ────────────────────────── */
.placeholder-block {
  background: var(--bg-off);
  border: 1px dashed var(--green-light);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.placeholder-block .placeholder-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.placeholder-block p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   StructuralMG main site components
════════════════════════════════════════════════ */

/* ── Dropdown nav ─────────────────────────────── */
.has-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 0;
  border-top: 8px solid transparent;
  background-clip: padding-box;
  left: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 230px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  z-index: 200;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 9px 14px !important;
  font-size: 13px !important;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--bg-subtle); }
@media (max-width: 900px) {
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; min-width: 0; }
}

/* ── Stats band ───────────────────────────────── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
}
.stat-label { font-size: 12.5px; color: var(--green-pale); margin-top: 6px; }
@media (max-width: 640px) { .stats-band { grid-template-columns: repeat(2,1fr); gap: 32px 16px; } }

/* ── Affiliation badges ───────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 10px;
}
.badge--ubb { background: var(--green-ghost); color: var(--green-mid); }
.badge--pfa { background: #fdf0e3; color: #b56a1e; }
.team-badges { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }

.affil-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.affil-legend .badge { margin-right: 6px; }

/* ── Service cards ────────────────────────────── */
.services-block { margin-bottom: 40px; }
.services-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.services-block-head h2 { font-size: 1.4rem; }
.services-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.service-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.2s;
}
.service-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card h3 { font-size: 15px; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.service-more { font-size: 12.5px; color: var(--green-mid); font-weight: 600; }

.service-chip-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: all 0.2s;
}
.service-chip-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); }
.service-chip-card span { font-size: 14px; font-weight: 500; }
.service-chip-card .service-icon { width: 38px; height: 38px; margin: 0; flex-shrink: 0; }

/* ── Team link cards ──────────────────────────── */
.team-card--link { display: block; text-align: center; cursor: pointer; }
.team-view { font-size: 12.5px; color: var(--green-mid); font-weight: 600; margin-top: 12px; display: inline-block; }

/* ── Alumni ───────────────────────────────────── */
.alumni-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.alumni-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.alumni-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.alumni-meta { font-size: 12px; color: var(--green-mid); margin: 2px 0 6px; }
.alumni-status { font-size: 13.5px; color: var(--text-secondary); }

/* ── Projects ─────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.project-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
}
.project-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.project-img { aspect-ratio: 16/9; background: var(--green-dark); overflow: hidden; }
.project-img img { width:100%; height:100%; object-fit: cover; }
.project-img-ph {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--green-dark), var(--green-darkest));
  color: var(--green-light); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: 1px;
}
.project-body { padding: 22px; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.project-sub { font-size: 12.5px; color: var(--green-mid); font-weight: 500; margin-bottom: 10px; }
.project-body p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; }
.project-link { font-size: 13px; color: var(--green-mid); font-weight: 600; }

/* ── World map ────────────────────────────────── */
.worldmap-wrap {
  background: var(--green-darkest);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}
.worldmap-svg { width: 100%; height: auto; display: block; }
.map-countries path {
  fill: rgba(93,202,165,0.12);
  stroke: rgba(93,202,165,0.28);
  stroke-width: 0.15;
}
.map-pin .pin-dot { fill: var(--green-light); }
.map-pin .pin-pulse { fill: var(--green-base); opacity: 0.35; animation: pinpulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map-pin:hover .pin-dot { fill: #fff; }
.map-pin { cursor: pointer; }
@keyframes pinpulse { 0%{ transform: scale(0.6); opacity:0.6;} 70%{ transform: scale(2.2); opacity:0;} 100%{opacity:0;} }

.map-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; }
.map-legend-item { font-size: 12.5px; color: var(--green-pale); display: flex; align-items: center; gap: 7px; }
.map-legend-item::before { content:''; width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); flex-shrink: 0; }

/* ── Member CV page ───────────────────────────── */
.cv-hero { background: var(--green-darkest); padding: 64px 0 48px; }
.cv-hero-inner { display: flex; gap: 32px; align-items: flex-start; }
.cv-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--green-mid); color: #fff;
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; border: 3px solid rgba(93,202,165,0.3);
}
.cv-avatar img { width:100%; height:100%; object-fit: cover; }
.cv-hero h1 { color:#fff; font-size: 2rem; margin-bottom: 6px; }
.cv-role { color: var(--green-light); font-size: 15px; margin-bottom: 4px; }
.cv-focus { color: var(--green-pale); font-size: 13.5px; margin-bottom: 16px; }
.cv-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cv-link {
  font-size: 12.5px; color: var(--green-pale);
  border: 1px solid rgba(93,202,165,0.4); padding: 5px 14px; border-radius: 16px;
  transition: all 0.15s;
}
.cv-link:hover { background: rgba(93,202,165,0.12); color: #fff; }
.cv-body { padding: 56px 0; }
.cv-narrative { max-width: 720px; }
.cv-narrative p { font-size: 15.5px; line-height: 1.8; color: var(--text-primary); margin-bottom: 1.3rem; }
.cv-section-title { font-family: var(--font-display); font-size: 1.3rem; margin: 40px 0 18px; }
.cv-resp-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.cv-resp-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-secondary); }
.cv-resp-item::before { content:''; width:7px; height:7px; border-radius:50%; background: var(--green-base); margin-top: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .cv-hero-inner { flex-direction: column; align-items: center; text-align: center; } .cv-links { justify-content: center; } }

/* ── Home highlights ──────────────────────────── */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.highlight-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px;
}
.highlight-card .service-icon { margin-bottom: 14px; }
.highlight-card h3 { font-size: 16px; margin-bottom: 8px; }
.highlight-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ── Round 2 fixes ────────────────────────────── */
/* 3. Hero eyebrow visibility on dark background */
.hero .hero-eyebrow { color: var(--green-light) !important; opacity: 1; }

/* 5+7. SAML badge (replaces UBB) */
.badge--saml { background: var(--green-ghost); color: var(--green-mid); }

/* 11. Wider hover bridge for dropdowns */
.has-dropdown { padding-bottom: 4px; }


/* ── Round 3 additions ────────────────────────── */
.private-project-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-base);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 860px;
}
.private-project-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pp-funder { font-size: 13px; color: var(--green-mid); font-weight: 600; margin-bottom: 4px; }
.pp-pi { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.pp-result { font-size: 13px; color: var(--text-secondary); font-style: italic; line-height: 1.6; }
.pp-result a { color: var(--green-mid); text-decoration: underline; }

.project-pi { font-size: 12.5px; color: var(--text-primary); font-weight: 600; margin-bottom: 2px; }
.project-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

/* News post cards from WordPress */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-card {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
}
.news-card:hover { border-color: var(--green-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.news-thumb { aspect-ratio: 16/9; background: var(--green-dark); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg, var(--green-dark), var(--green-darkest)); color: var(--green-light); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.news-body { padding: 20px; }
.news-date { font-size: 11.5px; color: var(--green-mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.news-title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.4; margin-bottom: 8px; }
.news-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Logo integration ─────────────────────────── */
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 40px; width: auto; display: block; }
.footer-logo { width: 220px; height: auto; margin-bottom: 16px; display: block; }
@media (max-width: 640px) { .nav-logo-img { height: 34px; } }

/* ═══ WordPress blog-specific ═══ */
.blog-hero { background: var(--green-darkest); padding: 56px 0; }
.blog-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 8px; }
.blog-hero p { color: var(--green-pale); }
.blog-hero .post-meta { color: var(--green-light); font-size: 14px; margin-top: 12px; }

.wp-post-content { font-size: 16px; line-height: 1.8; color: var(--text-primary); }
.wp-post-content h2, .wp-post-content h3 { margin: 2rem 0 1rem; }
.wp-post-content p { margin-bottom: 1.4rem; }
.wp-post-content img { border-radius: var(--radius-md); margin: 1.5rem 0; height: auto; }
.wp-post-content a { color: var(--green-mid); text-decoration: underline; }
.wp-post-content ul, .wp-post-content ol { margin: 1rem 0 1.4rem 1.5rem; }
.wp-post-content li { margin-bottom: 0.5rem; }
.wp-post-content blockquote { border-left: 3px solid var(--green-light); padding-left: 18px; color: var(--text-secondary); font-style: italic; margin: 1.5rem 0; }
.wp-post-content .wp-caption { max-width: 100%; }
.wp-post-content .wp-caption-text, .wp-post-content figcaption { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border-light); font-size: 14px; }
.post-nav a { color: var(--green-mid); font-weight: 500; }

.pagination, .nav-links-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-secondary); }
.pagination .page-numbers.current { background: var(--green-base); color: #fff; border-color: var(--green-base); }
.pagination .page-numbers:hover:not(.current) { background: var(--bg-subtle); }

.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }

/* ═══ Featured image banner (v1.1) ═══ */
/* Landscape images: content-width banner, gentle 2:1 crop, rounded */
.post-banner--wide {
  max-width: 1160px;
  margin: 36px auto -8px;
  padding: 0 32px;
}
.post-banner--wide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

/* Portrait/square images: shown whole, centered, never cropped */
.post-banner--tall {
  max-width: 1160px;
  margin: 36px auto -8px;
  padding: 0 32px;
  text-align: center;
}
.post-banner--tall img {
  max-height: 560px;
  width: auto;
  max-width: 100%;
  display: inline-block;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .post-banner--wide, .post-banner--tall { padding: 0 20px; margin-top: 24px; }
  .post-banner--tall img { max-height: 420px; }
}
