/* Human–Ocean Systems Lab — theme */
  /*-- scss:rules --*/
  
  @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

.reveal {
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.35;
}

.reveal p {
  line-height: 1;
  margin-top: 0;
  margin-bottom: 1em;
}

.reveal p + p {
  margin-top: 1.1em;
}

.reveal ul li {
  line-height: 1.4;
  margin-bottom: 0.9em;
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}

.reveal h1 {
  color: #0d2137;
    font-size: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.reveal h2 {
  color: #0d2137;
    font-size: 1.5em;
  border-bottom: 3px solid #1a5f7a;
  padding-bottom: 0.2em;
  margin-bottom: 0.8em;
  line-height: 1.25;
}

.reveal h3 {
  color: #1a5f7a;
    font-size: 1.1em;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.reveal .slides section {
  background: linear-gradient(180deg, #f8fafb 0%, #eef4f7 100%);
}

.reveal .slides section.title-slide {
  background: linear-gradient(135deg, #0d2137 0%, #1a5f7a 50%, #159895 100%);
}

.reveal .slides section.title-slide h1,
.reveal .slides section.title-slide h2,
.reveal .slides section.title-slide p {
  color: #f8fafb;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.reveal .slides section.title-slide h2 {
  border-bottom-color: rgba(248,250,251,0.5);
}

.reveal a {
  color: #1a5f7a;
    text-decoration: none;
  border-bottom: 1px solid rgba(26,95,122,0.4);
}

.reveal a:hover {
  border-bottom-color: #1a5f7a;
}

.reveal strong {
  color: #0d2137;
    font-weight: 700;
}

.reveal .smaller {
  font-size: 0.85em;
  opacity: 0.9;
}

.reveal .center {
  text-align: center;
}

.reveal ul {
  list-style: none;
}

.reveal ul li::before {
  content: "▸ ";
  color: #1a5f7a;
    font-weight: 700;
  margin-right: 0.35em;
}

.reveal .slide-number {
  color: #1a5f7a;
    font-size: 0.75em;
}

.reveal img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(13,33,55,0.12);
}

.reveal .columns .column {
  padding: 0 0.5em;
}

.reveal .columns .column:not(:last-child) {
  border-right: 1px solid rgba(26,95,122,0.2);
}

.reveal blockquote {
  border-left: 4px solid #1a5f7a;
  background: rgba(26,95,122,0.06);
  padding: 0.6em 1em;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  box-shadow: none;
}

.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
  display: inline;
}

/* First slide — larger text, centered diagram, visual emphasis */
  .reveal section:has(h2.slide-hero) h2 {
    font-size: 2em;
    margin-bottom: 0.4em;
  }

.reveal section:has(h2.slide-hero) h2::before {
  content: "◇ ";
  color: #1a5f7a;
    font-size: 0.6em;
  vertical-align: middle;
  margin-right: 0.15em;
}

.reveal section:has(h2.slide-hero) p {
  font-size: 1.35em;
  line-height: 1.4;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}

.reveal section:has(h2.slide-hero) .mermaid-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.2em 0;
  padding: 1.25em;
}

.reveal section:has(h2.slide-hero) .mermaid-wrap figure,
.reveal section:has(h2.slide-hero) .mermaid-wrap .quarto-float-figure {
  margin: 0 auto;
  text-align: center;
}

.reveal section:has(h2.slide-hero) .mermaid-wrap .mermaid {
  margin: 0 auto;
}

.reveal section:has(h2.slide-hero) svg.mermaid {
  max-width: 100%;
  height: auto;
}

.reveal section:has(h2.slide-hero) .mermaid-wrap text {
  font-size: 16px !important;
  font-weight: 600;
}

/* Subtle card behind diagram */
  .reveal section:has(h2.slide-hero) .mermaid-wrap::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,95,122,0.07) 0%, rgba(21,152,149,0.07) 100%);
    border-radius: 16px;
    border: 1px solid rgba(26,95,122,0.2);
    pointer-events: none;
    z-index: 0;
  }

.reveal section:has(h2.slide-hero) .mermaid-wrap > * {
  position: relative;
  z-index: 1;
}

/* Our Data slide — Leaflet map full width of slide */
  .reveal section#our-data .cell-output-display {
width: 100%;
max-width: 100%;
margin-left: 0;
margin-right: 0;
}

.reveal section#our-data .leaflet.html-widget {
width: 100% !important;
max-width: 100% !important;
height: 65vh !important;
min-height: 420px;
}
