/* ==========================================================================
   NeuroMicrobioma 2026 - Custom Stylesheet
   Palette taken from the logo: cream, deep navy, gold and sage
   ========================================================================== */

:root {
  --navy: #0c1f3a;
  --navy-soft: #1c3456;
  --gold: #b3873a;
  --gold-soft: #f3ead9;
  --sage: #7fa39c;
  --cream: #fbf8f3;
  --cream-alt: #f4efe6;
  --surface: #ffffff;
  --text: #1d2a3d;
  --text-muted: #5f6b7a;
  --border: rgba(12, 31, 58, 0.09);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(12, 31, 58, 0.04), 0 8px 24px rgba(12, 31, 58, 0.05);
  --shadow-hover: 0 2px 4px rgba(12, 31, 58, 0.05), 0 16px 40px rgba(12, 31, 58, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

a {
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover { color: var(--gold); }

::selection { background: var(--gold-soft); }

/* Navbar */
.navbar {
  height: var(--nav-h);
  background: rgba(251, 248, 243, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 248, 243, 0.92);
}

.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy) !important;
}

.brand-year { color: var(--gold); }

.navbar-toggler { color: var(--navy); padding-right: 0; }
.navbar-toggler:focus { box-shadow: none; }

/* Language switch: outside the collapse, so it stays visible on mobile */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn .flag { font-size: 0.95rem; line-height: 1; }
.lang-btn:hover { color: var(--navy); }

.lang-btn[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

@media (min-width: 1200px) {
  .lang-switch { margin-left: 0.75rem; }
}

/* Phones: brand, language switch and menu button must share one line */
@media (max-width: 575.98px) {
  .navbar-brand { font-size: 1.1rem; margin-right: 0.5rem; }
  .lang-btn { gap: 0.25rem; padding: 0.25rem 0.45rem; font-size: 0.68rem; }
  .lang-btn .flag { font-size: 0.85rem; }
  .navbar-toggler { padding: 0.25rem 0 0.25rem 0.5rem; }
  .navbar-toggler .bi { font-size: 1.6rem !important; }
}

@media (max-width: 380px) {
  .navbar-brand .brand-year { display: none; }
}

@media (max-width: 340px) {
  .navbar-brand { font-size: 1rem; }
  .lang-btn { padding: 0.25rem 0.35rem; }
}

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy) !important;
}

@media (min-width: 1200px) {
  .navbar-nav { align-items: center; }
  .nav-link { padding: 0.4rem 0.6rem !important; white-space: nowrap; }

  .nav-link::after {
    content: '';
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.1rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
  }

  .nav-link:hover::after,
  .nav-link.active::after { transform: scaleX(1); }
}

@media (max-width: 1199.98px) {
  .navbar-collapse {
    background: var(--cream);
    margin: 0 -12px;
    padding: 0.5rem 12px 1.25rem;
    border-bottom: 1px solid var(--border);
  }
}

/* Buttons */
.btn-primary-custom,
.btn-ghost,
.btn-light-custom,
.btn-outline-light-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease, color 0.2s ease;
}

.btn-primary-custom {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus-visible {
  background: var(--navy-soft);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(12, 31, 58, 0.18);
}

.btn-block-custom { width: 100%; margin-top: 1.75rem; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(12, 31, 58, 0.2);
}

.btn-ghost:hover {
  color: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.btn-light-custom {
  background: #fff;
  color: var(--navy);
  border: 1px solid #fff;
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
}

.btn-light-custom:hover { color: var(--navy); transform: translateY(-2px); }

.btn-outline-light-custom {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
}

.btn-outline-light-custom:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }

/* Form buttons not open yet: "disabled" shows the "Em breve" label and hides the external-link icon */
.btn .soon { display: none; }

.btn.disabled .soon {
  display: inline;
  margin-left: 0.5rem;
  font-weight: 400;
}

.btn.disabled .bi-box-arrow-up-right { display: none; }

.btn-primary-custom.disabled {
  opacity: 1;
  background: var(--cream-alt);
  border: 1px dashed rgba(12, 31, 58, 0.25);
  color: var(--text-muted);
}

.btn-light-custom.disabled {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
}

.btn-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-icon:hover { background: var(--gold-soft); transform: scale(1.05); }

/* Hero */
.hero-section {
  padding: calc(var(--nav-h) + 72px) 0 96px;
  background:
    radial-gradient(60% 50% at 85% 40%, rgba(179, 135, 58, 0.08), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(127, 163, 156, 0.10), transparent 70%),
    var(--cream);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-meta i { color: var(--gold); margin-right: 0.4rem; }

.hero-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.btn-cal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(12, 31, 58, 0.15);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-cal:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 31, 58, 0.08);
}

.hero-logo {
  max-width: 440px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: float-in 1s var(--ease) both;
}

.hero-logo img { display: block; }

@keyframes float-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 112px 0; }
.section-compact { padding: 64px 0; }
.section-alt { background: var(--cream-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-subtitle strong { color: var(--navy); font-weight: 500; }

.subhead {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--navy);
}

section p { color: var(--text-muted); }
section .lead-text { color: var(--navy); }

/* Cards */
.card-custom {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.card-title-custom {
  font-size: 1.75rem;
  margin: 1.1rem 0 0.75rem;
}

.card-dark {
  background: var(--navy);
  border-color: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}

.card-dark .card-title-custom { color: #fff; }
.card-dark p { color: rgba(255, 255, 255, 0.72); }
.card-icon { font-size: 1.75rem; color: var(--gold); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.check-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.check-list li::before {
  content: '\F272'; /* bootstrap-icons: check2 */
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--gold);
}

.dark-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dark-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.dark-links li:last-child a { border-bottom: 0; padding-bottom: 0; }
.dark-links i { color: var(--gold); font-size: 1rem; }
.dark-links a:hover { color: #fff; }

.card-solidary {
  background: linear-gradient(160deg, #fff 0%, var(--gold-soft) 140%);
}

.placeholder-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px dashed rgba(12, 31, 58, 0.18);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.placeholder-card i { color: var(--gold); font-size: 1.25rem; }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.tag-gold { background: var(--gold-soft); color: #7a5a22; }
.tag-navy { background: rgba(12, 31, 58, 0.07); color: var(--navy); }

/* Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
}

.feature-list i { color: var(--gold); }

.note {
  font-size: 0.85rem;
  font-style: italic;
  margin: 0;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.timeline li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 0.95rem;
}

.timeline li:last-child { border-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline span { color: var(--text-muted); }
.timeline strong { color: var(--navy); font-weight: 600; white-space: nowrap; }
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.6rem 0 0.6rem 2.75rem;
  color: var(--text-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gold-soft);
}

.steps strong { color: var(--navy); font-weight: 600; }

/* PIX */
.pix-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.pix-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pix-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  word-break: break-all;
}

.link-subtle {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

/* Speakers */
.speaker-card {
  height: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.speaker-card { scroll-margin-top: calc(var(--nav-h) + 16px); }

.speaker-img {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-alt);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--gold-soft);
}

.avatar-initials {
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--sage);
  background: var(--cream-alt);
}

.speaker-img.avatar-initials { font-size: 2.25rem; }

.speaker-name { font-size: 1.4rem; margin-bottom: 0.25rem; }
.speaker-inst { font-size: 0.85rem; color: var(--gold) !important; margin-bottom: 0.75rem; }
.speaker-talk { font-size: 0.9rem; font-weight: 600; color: var(--navy) !important; margin-bottom: 0.5rem; }
.speaker-bio { font-size: 0.85rem; margin: 0; }

.speaker-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

/* Program */
.program { max-width: 860px; margin: 0 auto; }

.day-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 132px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--navy);
  line-height: 1.25;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.day-tab strong { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; }
.day-tab span { font-size: 0.75rem; color: var(--text-muted); }
.day-tab:hover { transform: translateY(-2px); }

.day-tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.day-tab[aria-selected="true"] span { color: rgba(255, 255, 255, 0.7); }

.program-day { animation: fade-in 0.5s var(--ease); }

.program-day-theme {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy) !important;
}

.program-day-theme span {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-note {
  max-width: 860px;
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
  text-align: center;
}

.program-note i { color: var(--gold); }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.program-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.program-item:last-child { border-bottom: 0; }

.program-time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--navy);
  padding-top: 0.15rem;
}

.program-type {
  display: inline-flex;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.program-title { font-size: 1.5rem; margin: 0.2rem 0 0; }

.program-item.is-break .program-title { font-size: 1.15rem; color: var(--text-muted); }
.program-item.is-break .program-type { color: var(--sage); }

/* Short discussion slots: one compact line */
.program-item.is-minor { padding: 0.55rem 0; }
.program-item.is-minor .program-time { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); padding-top: 0; }

.program-minor {
  display: inline-flex;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.program-minor i { color: var(--sage); }

.program-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.9rem;
}

.program-speaker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1.25;
}

.program-speaker strong { display: block; font-size: 0.9rem; font-weight: 500; }
.program-speaker small { display: block; font-size: 0.75rem; color: var(--text-muted); }

.program-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.program-avatar.avatar-initials { font-size: 0.95rem; }

.program-desc,
.program-place {
  font-size: 0.9rem;
  margin: 0.6rem 0 0;
}

.program-place i { color: var(--gold); }

/* Location */
.info-row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
}

.info-row + .info-row { border-top: 1px solid var(--border); }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { padding-bottom: 0; }
.info-row > div { flex: 1; min-width: 0; }
.info-row i { color: var(--gold); font-size: 1.2rem; }
.info-row h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.info-row p { font-size: 0.9rem; margin: 0; }

/* Address: the whole row is clickable and opens the directions chooser */
.info-row.address-row {
  margin: -1rem -1rem 0;
  padding: 1rem;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease;
}

.address-row:hover,
.address-row:focus-visible { background: var(--cream); }

.address-name {
  font-size: 1rem !important;
  font-weight: 500;
  color: var(--navy);
}

.address-chevron {
  align-self: center;
  margin-left: auto;
  font-size: 1rem !important;
  color: var(--text-muted) !important;
  transition: transform 0.25s var(--ease), color 0.25s ease;
}

.address-row:hover .address-chevron {
  color: var(--gold) !important;
  transform: translateX(3px);
}

.resource-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.resource-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

.resource-links a:hover { border-color: var(--gold); transform: translateY(-1px); }
.resource-links strong { display: block; font-size: 0.9rem; font-weight: 500; }
.resource-links small { display: block; font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.resource-links .bi { margin-left: auto; font-size: 0.9rem !important; color: var(--gold); }

/* Bottom sheet (directions app chooser) */
.sheet.offcanvas-bottom {
  height: auto;
  max-width: 560px;
  margin: 0 auto;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--cream);
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet .offcanvas-header { padding: 1.5rem 1.5rem 0.75rem; align-items: flex-start; }
.sheet .offcanvas-title { font-size: 1.6rem; margin: 0; }
.sheet-sub { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.sheet .offcanvas-body { padding: 0.5rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }

.sheet-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}

.sheet-option:hover,
.sheet-option:active { color: var(--navy); border-color: var(--gold); transform: scale(0.99); }
.sheet-option > .bi:first-child { font-size: 1.4rem; color: var(--gold); }
.sheet-option > .bi:last-child { margin-left: auto; color: var(--text-muted); }
.sheet-option strong { display: block; font-weight: 600; }
.sheet-option small { display: block; font-size: 0.8rem; color: var(--text-muted); }

.map-frame {
  height: 100%;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: saturate(0.85);
}

/* Team */
.team-card {
  height: 100%;
  padding: 1.75rem;
  border-top: 2px solid var(--gold);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
}

.team-card h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.team-card p { margin: 0; font-size: 0.95rem; }

.group-label,
.team-inst {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold) !important;
}

.group-label { text-align: center; margin-bottom: 1.25rem; }
.team-inst { margin-bottom: 0.75rem !important; }

.person-card {
  height: 100%;
  padding: 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.person-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a22;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-name {
  margin: 0.9rem 0 0.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy) !important;
}

.person-inst { margin: 0; font-size: 0.9rem; }

.name-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.name-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-weight: 500;
}

.name-list li:last-child { border-bottom: 0; }

.name-list small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.partner-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.partner-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.partner-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.text-muted-custom { color: var(--text-muted); font-style: italic; }

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
}

.footer-title {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
}

.footer-link i { color: var(--gold); }
.footer-link:hover { color: var(--gold); }

@media (min-width: 992px) {
  .footer-links { align-items: flex-end; }
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Toast */
.toast-container { z-index: 1090; }
.toast .bi { color: var(--sage); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 991.98px) {
  .section { padding: 80px 0; }
  .hero-section { padding: calc(var(--nav-h) + 40px) 0 72px; }
  .hero-logo { max-width: 340px; }
}

@media (max-width: 575.98px) {
  .card-custom { padding: 1.5rem; }
  .timeline li { flex-direction: column; gap: 0.1rem; }
  .program-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .program-item.is-minor { grid-template-columns: auto 1fr; gap: 0.75rem; }
  .day-tab { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
