/* PPGCosmo website styles */


/* ── Global ──────────────────────────────────── */

a, a:link, a:visited { color: #2B6CB0 !important; }
a:hover, a:active    { color: #1a4a8a !important; }

h2     { color: #1a3a5c !important; border-bottom: none !important; }
h3, h4 { color: #2B6CB0 !important; }

hr { border-color: rgba(43, 108, 176, 0.3) !important; }

.subtitle        { color: #4a6fa5 !important; }
.title, h1.title { text-align: center !important; }


/* ── Navbar ──────────────────────────────────── */

.navbar { background-color: #1a1a1a !important; }

.navbar-brand img {
  height: 30px !important;
  max-height: none !important;
}

.navbar .nav-link,
.navbar-brand              { color: #f0f0f0 !important; }
.navbar .nav-link:hover    { color: #ffffff !important; }

.navbar .nav-link.active {
  color: #ffffff !important;
  border-bottom: 2px solid #ffffff;
  padding-bottom: calc(0.5rem - 2px);
}


/* ── Hero banner ─────────────────────────────── */

.quarto-title-banner {
  background-position: center;
  background-size: cover;
  min-height: 26.5vw;
  display: flex;
  align-items: flex-start;
  padding-top: 2.5rem;
}

.quarto-title-banner .quarto-title { text-align: left; }

.quarto-title-banner h1.title {
  font-style: italic;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
  text-align: left !important;
}

.quarto-title-banner .subtitle {
  font-size: 1.2rem;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.9);
  color: white !important;
  text-align: left !important;
}

@media (max-width: 768px) {
  .quarto-title-banner              { min-height: 180px; padding-top: 1.5rem; }
  .quarto-title-banner h1.title     { font-size: 2rem; }
  .quarto-title-banner .subtitle    { font-size: 1rem; }
}

.photo-credit {
  font-size: 0.60rem;
  color: #ccc;
  text-align: right;
  position: relative;
  z-index: 10;
  margin-top: -5rem;
  margin-bottom: 6.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  float: right;
  padding: 2px 8px;
  border-radius: 3px;
}

body .photo-credit a,
body .photo-credit a:link,
body .photo-credit a:visited { color: #ccc !important; text-decoration: underline !important; }
body .photo-credit a:hover   { color: #fff !important; }

@media (max-width: 768px) {
  .photo-credit { margin-top: -3rem; margin-bottom: 4.5rem; }
}


/* ── Tables & tabs ───────────────────────────── */

thead tr                 { background-color: #1a3a5c !important; color: #ffffff !important; }
thead th                 { color: #ffffff !important; }
tbody tr:nth-child(even) { background-color: #f0f4f8 !important; }

.panel-tabset table { width: 100%; table-layout: fixed; }

.panel-tabset table th:nth-child(2),
.panel-tabset table td:nth-child(2) { width: 8rem; text-align: center; }

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: #2B6CB0 !important;
  border-top-color: #2B6CB0 !important;
}


/* ── People grid ─────────────────────────────── */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.2rem 1rem;
  margin: 1rem 0 2rem 0;
}

.person-card     { text-align: center; }

.person-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #dee2e6;
}

.person-name {
  font-size: 0.8rem;
  line-height: 1.3;
  margin-top: 0.4rem;
  color: #333;
}


/* ── Footer ──────────────────────────────────── */

footer, footer.footer { background-color: #1a1a1a !important; }

.nav-footer {
  max-width: 1400px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 1rem 1rem 1.5rem 1rem;
  background-color: #1a1a1a !important;
}

.nav-footer-center { white-space: nowrap; }

.nav-footer-left,
.nav-footer-center,
.nav-footer-right  { color: #cccccc !important; }

footer a, footer a:link, footer a:visited { color: #cccccc !important; }
footer a:hover                            { color: #90b8e0 !important; }
