/* Hero banner with NASA MODIS satellite image overlaid by dark gradient and centred title. */
.quarto-title-banner {
  position: relative;
  min-height: 60vh;
  margin-top: -56px;
  padding: 5rem 2rem 4rem 2rem;
  background-image:
    linear-gradient(180deg, rgba(20,12,4,0.55) 0%, rgba(40,20,5,0.40) 50%, rgba(80,30,5,0.45) 100%),
    url('images/hero-bg.jpg');
  background-size: cover, cover;
  background-position: center, 15% center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.quarto-title-banner .quarto-title h1.title {
  color: #fff !important;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 22px rgba(0,0,0,0.6);
  margin: 0;
  border: none;
}
.quarto-title-banner .quarto-categories,
.quarto-title-banner .quarto-title-meta {
  display: none;
}

/* navbar transparent so it overlays the hero image, white text */
.navbar {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.0) 100%) !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 100;
}
.navbar .navbar-title,
.navbar .navbar-brand,
.navbar .nav-link,
.navbar a {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.navbar svg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

/* Page background fixed behind everything below the hero. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url('images/page-bg.jpg') center / cover no-repeat fixed,
    linear-gradient(135deg, #fff4d6 0%, #ffe7c2 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(252, 250, 246, 0.70);
  pointer-events: none;
}

/* breathing room on the left so text does not hug the column edge */
main.content,
#quarto-document-content {
  padding-left: 2.25rem;
  padding-right: 1rem;
}

/* Each H2 section rendered as an opaque white card. */
section.level2 {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin: 0 0 2rem 0;
  box-shadow: 0 8px 28px rgba(20, 12, 4, 0.10);
}
section.level2 > section.level3,
section.level2 > section.level4 {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
}
section.level2 > h2:first-child,
section.level2 > .header-section-number + h2 {
  margin-top: 0;
}

/* hide left sidebar entirely; right TOC is the only navigation */
#quarto-sidebar,
.sidebar-navigation {
  display: none !important;
}

/* right TOC styled as an opaque card so it stands out against the
   page background image */
#quarto-margin-sidebar {
  background: #f6f1e7;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 22px rgba(20, 12, 4, 0.12);
  border: 1px solid rgba(20, 12, 4, 0.08);
  font-size: 0.95rem;
}
#quarto-margin-sidebar .toc-title,
#quarto-margin-sidebar > h2,
#quarto-margin-sidebar nav[role="doc-toc"] > h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #6b5a3c;
  margin: 0 0 0.6rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6b5a3c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#quarto-margin-sidebar a.nav-link,
#quarto-margin-sidebar a.nav-link:visited {
  padding: 0.25rem 0;
  color: #555 !important;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  text-decoration: none;
}
#quarto-margin-sidebar a.nav-link:hover {
  color: #6b5a3c !important;
  border-left-color: #b9a785;
}
#quarto-margin-sidebar a.nav-link.active,
#quarto-margin-sidebar a.nav-link.active:visited {
  color: #6b5a3c !important;
  font-weight: 700;
  border-left-color: #6b5a3c;
  background: rgba(107, 90, 60, 0.08);
}

table {
  font-size: 0.95rem;
}

h1, h2, h3 {
  font-weight: 700;
}

code {
  border-radius: 6px;
}

/* embedded GEE app iframe contained inside the main content column so
   the right-side TOC does not overlap the interactive map controls. */
.gee-app-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 80px);
  min-height: 720px;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

/* Feature carousel inside The Application section. Cream panel with a
   horizontally translated track, side arrow buttons, and a slim dot
   indicator row at the bottom. Mirrors the Rasternauts-style multi-slide
   showcase but built without external libraries. */
.cr-carousel {
  position: relative;
  background: #f6f1e7;
  border-radius: 12px;
  padding: 1.75rem 3.25rem 1.5rem 3.25rem;
  margin: 1rem 0 1.5rem 0;
  overflow: hidden;
}
.cr-track {
  position: relative;
  overflow: hidden;
}
.cr-slides {
  display: flex;
  transition: transform 0.4s ease;
}
.cr-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 0.5rem;
  text-align: center;
}
.cr-slide h4 {
  margin: 0 0 0.5rem 0;
  color: #6b5a3c;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
}
.cr-slide p {
  color: #555;
  font-size: 0.95rem;
  max-width: 70ch;
  margin: 0 auto 1rem auto;
  line-height: 1.5;
}
.cr-slide img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(20, 12, 4, 0.18);
  border: 1px solid rgba(20, 12, 4, 0.08);
}
.cr-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 12, 4, 0.15);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b5a3c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  z-index: 2;
}
.cr-btn:hover {
  background: #fff;
  color: #b54200;
}
.cr-prev { left: 0.5rem; }
.cr-next { right: 0.5rem; }
.cr-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}
.cr-dot {
  width: 32px;
  height: 4px;
  background: rgba(20, 12, 4, 0.18);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.cr-dot.active {
  background: #6b5a3c;
}
