/* css styles */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Source+Sans+3:wght@500;600&display=swap");

/* Background image for the entire page */
body {
  background-image: url('images/Moorea.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Dark overlay for better text readability */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Main content card */
#quarto-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 2em;
  border-radius: 10px;
  margin: 2em auto;
  max-width: min(1200px, 92%);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Non–full-width pages: comfortable reading column */
#quarto-content:not(.page-layout-full) main.content {
  max-width: min(52rem, 100%);
  margin-inline: auto;
}

/* Full-width pages (e.g. Time series): let Plotly / htmlwidgets use full content area */
#quarto-content.page-layout-full main.content {
  max-width: 100%;
}

#quarto-content.page-layout-full .html-widget,
#quarto-content.page-layout-full .plotly,
#quarto-content.page-layout-full .js-plotly-plot {
  max-width: 100%;
}

/* Body text rhythm */
body:not(.quarto-dashboard) #quarto-document-content p,
body:not(.quarto-dashboard) #quarto-document-content li {
  line-height: 1.65;
}

/* Home: language tabs — readable measure */
#quarto-document-content .panel-tabset .tab-pane {
  max-width: 72ch;
  margin-inline: auto;
}

/* Home: tab strip */
#quarto-document-content .panel-tabset .nav-tabs {
  border-bottom: 1px solid rgba(13, 79, 92, 0.2);
  gap: 0.25rem;
  flex-wrap: wrap;
}

#quarto-document-content .panel-tabset .nav-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  color: #444;
}

#quarto-document-content .panel-tabset .nav-tabs .nav-link:hover {
  border-color: rgba(13, 79, 92, 0.25);
  background: rgba(13, 79, 92, 0.06);
}

#quarto-document-content .panel-tabset .nav-tabs .nav-link.active {
  color: #fff;
  background: #0d4f5c;
  border-color: #0d4f5c;
}

#quarto-document-content .panel-tabset .tab-content {
  padding-top: 1.25rem;
}

/* About / team template */
.quarto-about {
  max-width: 65ch;
  margin-inline: auto;
}

/* Home: hide Quarto default title block (duplicate of .home-hero-title); full title remains in <title> */
#quarto-content.page-layout-full #quarto-document-content > header#title-block-header.quarto-title-block {
  display: none;
}

/* Home hero: title stack */
.home-hero-heading {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 1.75rem;
  padding: 0 0.5rem;
}

.home-hero-title {
  font-family: "Merriweather", serif;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem);
  font-weight: 700;
  margin: 0 0 0.12rem;
  line-height: 1.18;
  color: #0d4f5c;
}

.home-hero-subtitle {
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(1.08rem, 0.95rem + 0.55vw, 1.42rem);
  margin: 0;
  font-weight: 600;
  color: #2d4a50;
  letter-spacing: 0.01em;
}

/* Team page: partner logos */
.team-logos-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.team-logos-row img {
  max-height: 56px;
  width: auto;
}

/* Hide dashboard navbar title and author (only on dashboard pages) */
.quarto-dashboard .navbar-title,
.quarto-dashboard .navbar-author,
.quarto-dashboard .navbar-title-text {
  display: none !important;
}

/* Video hero (index.qmd) */
.video-hero {
  position: relative;
  width: 100%;
  max-width: 95%;
  margin: 0 auto 2rem;
  padding-bottom: 50%;
  overflow: hidden;
  background: #000;
}

.video-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.video-overlay h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
}

.video-overlay p {
  margin: 0.5rem 0 0;
  max-width: 900px;
  opacity: 0.95;
  font-size: 1rem;
  line-height: 1.4;
}
