/* ── Typography ─────────────────────────────────────────── */
/* Fonts, base colors, and the accent color live in theme.scss */
a {
  transition: color 0.15s ease, border-color 0.15s ease;
}

/* ── Profile photo ──────────────────────────────────────── */
.profile-photo {
  border-radius: 4px;
  width: 100%;
  max-width: 210px;
  display: block;
  margin: 0 auto 1.4rem auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* ── Home page sidebar links ────────────────────────────── */
.home-links {
  line-height: 2.1;
  font-size: 0.97rem;
}

/* ── Section headers ────────────────────────────────────── */
h2 {
  margin-top: 2.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e6e6e6;
}

/* ── Publication entries ────────────────────────────────── */
.pub-entry {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #e6e6e6;
}

.pub-entry:last-child {
  border-bottom: none;
}

.pub-links {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.pub-links a {
  margin-right: 0.9rem;
  text-decoration: none;
  color: #2980b9;
  border-bottom: 1px solid transparent;
}

.pub-links a:hover {
  border-bottom-color: #2980b9;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Footer ─────────────────────────────────────────────── */
.nav-footer {
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid #eee;
}

/* ── Contact page ───────────────────────────────────────── */
.contact-block {
  margin-bottom: 2rem;
}

/* ── About page photos ──────────────────────────────────── */
.peru-photo {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  margin-bottom: 0.5rem;
}

/* ── Home hero (about template) ─────────────────────────── */
.about-links .about-link {
  transition: transform 0.15s ease, color 0.15s ease;
}

.about-links .about-link:hover {
  transform: translateY(-2px);
  color: #2980b9;
}

.about-cta {
  font-weight: 600;
  margin-right: 0.8rem;
}

/* ── About page portrait ────────────────────────────────── */
.about-portrait {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ── Research: plain-language paper summaries ───────────── */
.pub-summary {
  margin-top: 0.45rem;
  font-size: 0.93rem;
  color: #555;
  line-height: 1.55;
}

/* ── Home hero (full-width, widescreen) ─────────────────── */
.hero {
  align-items: center;
  margin: 1.5rem 0 1.5rem;
}

.hero-photo {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  display: block;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 2.9rem;
  margin-bottom: 0.1rem;
}

.hero-role {
  font-size: 1.05rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.hero-headline {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #1f4e79;
  margin: 0.4rem 0 0.2rem;
}

.fields-strip {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #555;
  font-weight: 600;
  margin: 0.9rem 0 1.3rem;
}

/* ── Call-to-action buttons ─────────────────────────────── */
.btn-cta {
  display: inline-block;
  background: #1f4e79;
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  font-weight: 600;
  margin: 0.2rem 0.5rem 0.2rem 0;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-cta:hover {
  background: #14324e;
  transform: translateY(-2px);
}

.btn-cta.btn-outline {
  background: transparent;
  color: #1f4e79 !important;
  border: 1.5px solid #1f4e79;
}

.btn-cta.btn-outline:hover {
  background: #1f4e79;
  color: #fff !important;
}

/* ── Theme / feature cards ──────────────────────────────── */
.theme-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  height: 100%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.theme-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.theme-card h3 {
  margin-top: 0;
  color: #1a2230;
}

/* ── Media / interview items ────────────────────────────── */
.media-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid #ececec;
}

.media-item:last-child {
  border-bottom: none;
}

.lang-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.08rem 0.5rem;
  border-radius: 20px;
  margin-left: 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

.lang-en { background: #e8f0f8; color: #1f4e79; }
.lang-es { background: #fbeae5; color: #b4471f; }

/* ── Research: EN/ES summary tabs ───────────────────────── */
.pub-entry .panel-tabset {
  margin-top: 0.5rem;
}

.pub-entry .panel-tabset p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ── Responsive: stack columns on small screens ─────────── */
@media (max-width: 767px) {
  /* Force any multi-column layout to stack vertically */
  .columns {
    display: block;
  }
  .columns > .column {
    width: 100% !important;
    margin-bottom: 1rem;
  }

  /* Profile photo: centered, a touch larger than the desktop sidebar */
  .profile-photo {
    max-width: 180px;
    margin-bottom: 1rem;
  }

  /* Home sidebar links: center and give bigger tap spacing */
  .home-links {
    text-align: center;
    line-height: 2.4;
  }

  /* Tighten the large desktop header margins for mobile reading */
  h2 {
    margin-top: 1.6rem;
  }

  .hero-text {
    text-align: center;
    margin-top: 1rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero-headline {
    font-size: 1.4rem;
  }

  .hero-photo {
    max-width: 240px;
  }
}
