/* ==========================================================================
   Terra Vita Hub — Architecture Overlay v300
   Additive on top of institutional-site-v262.css. Does not replace it.
   Goal: unify navigation, role-based entry, audience tagging, next-step CTAs.
   ========================================================================== */

/* ---------- 1. Strip legacy headers/footers if any remain ---------- */
.site-header-2026,
.footer-2026,
.site-footer-rich {
  display: none !important;
}

/* ---------- 2. Canonical header (small refinements over v262) ---------- */
.tvh-header { z-index: 950; }
.tvh-header-inner { gap: 32px; }
.tvh-nav { gap: 4px; }
.tvh-nav a { font-size: 13.5px; padding: 9px 13px; transition: background .12s ease; }
.tvh-nav .find { font-weight: 700; opacity: 0.78; }
.tvh-nav .find:hover { opacity: 1; }

/* Mobile menu toggle — hidden by default, shown <980px */
.tvh-menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--tvh-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  color: var(--tvh-green);
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .tvh-header-inner { flex-direction: row; align-items: center; gap: 12px; }
  .tvh-menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .tvh-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; }
  .tvh-nav.is-open { display: flex; }
  .tvh-nav a { width: 100%; text-align: left; padding: 10px 12px; }
  .tvh-nav .start-route { margin-top: 4px; }
}

/* ---------- 3. Breadcrumbs always visible at top of main ---------- */
.tvh-breadcrumbs {
  font-size: 13px;
  color: var(--tvh-muted);
  padding: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tvh-breadcrumbs a {
  color: var(--tvh-green);
  text-decoration: none;
  font-weight: 800;
}
.tvh-breadcrumbs a:hover { text-decoration: underline; }
.tvh-breadcrumbs .sep { opacity: 0.4; padding: 0 4px; }
.tvh-breadcrumbs .current { color: var(--tvh-muted); font-weight: 700; }

/* ---------- 4. Role-based entry grid (homepage) ---------- */
.tvh-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.tvh-role-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--tvh-line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(12,43,36,.05);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tvh-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(12,43,36,.10);
  border-color: var(--tvh-teal);
}
.tvh-role-card .role-tag {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--tvh-teal);
}
.tvh-role-card .role-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--tvh-green);
  line-height: 1.25;
}
.tvh-role-card .role-desc {
  font-size: 14px;
  color: var(--tvh-muted);
  line-height: 1.5;
}
.tvh-role-card .role-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tvh-teal);
}
.tvh-role-card .role-cta::after { content: " →"; }

/* ---------- 5. Audience tag pills on section headers ---------- */
.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 125, 115, 0.08);
  color: var(--tvh-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-right: 6px;
}

/* ---------- 6. "Next step" / "On this page" footer block ---------- */
.tvh-next-step {
  margin: 28px 0 8px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid var(--tvh-line);
  background: linear-gradient(135deg, rgba(11,125,115,.08), rgba(11,45,94,.04));
}
.tvh-next-step .next-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--tvh-teal);
  margin-bottom: 6px;
}
.tvh-next-step .next-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--tvh-green);
  line-height: 1.3;
  margin-bottom: 12px;
}
.tvh-next-step .next-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- 7. Canonical footer refinement ---------- */
.tvh-footer {
  margin-top: 48px;
  background: var(--tvh-green);
  color: #eaf8f4;
  border-top: 1px solid var(--tvh-line);
}
.tvh-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 26px 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}
.tvh-footer-inner h4 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: rgba(234, 248, 244, 0.6);
  font-weight: 900;
}
.tvh-footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tvh-footer-inner a {
  color: #eaf8f4;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.88;
}
.tvh-footer-inner a:hover { opacity: 1; text-decoration: underline; }
.tvh-footer .brand-block strong { display: block; margin-bottom: 8px; font-size: 16px; }
.tvh-footer .brand-block p { font-size: 13px; opacity: 0.78; line-height: 1.55; margin: 0; }
.tvh-footer .legal-strip {
  border-top: 1px solid rgba(234, 248, 244, 0.12);
  margin: 12px 26px 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  opacity: 0.7;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  .tvh-footer-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- 8. Hide noisy supplementary blocks on homepage ---------- */
/* Reduce repeated boundary boxes etc. — only used by homepage */
body.tvh-home .legacy-block { display: none !important; }
