/* ============================================
   GLOBAL
   ============================================ */

body {
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  background-color: #faf9f7;
}

h1, h2, h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: #1a1a1a;
}

h1 {
  font-size: 2.4em;
  line-height: 1.3;
  margin-bottom: 0.3em;
}

h2 {
  font-size: 1.4em;
  margin-top: 1em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #e8e0d5;
  color: #1a1a1a;
}

p {
  margin-bottom: 1em;
  line-height: 1.8;
}

a {
  color: #2a9d8f;
}

a:hover {
  color: #1f7a6e;
}

/* ============================================
   FULL WIDTH TITLE
   ============================================ */

.quarto-title-block .quarto-title h1 {
  font-size: 2.8em;
  line-height: 1.2;
}

#title-block-header {
  grid-column: body-start / page-end;
  padding-left: 1.8em;
}

/* ============================================
   STICKY NOTE
   ============================================ */

.sticky-note {
  background-color: #fff9c4;
  border: 1px solid #f0d060;
  border-radius: 2px;
  padding: 1em 1.2em;
  margin: 0 0 0.5em 0;
  width: 100%;
  max-width: 100%;
  float: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95em;
  line-height: 1.6;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.15);
  transform: rotate(1.8deg);
  position: relative;
  z-index: 1;
}

/* ============================================
   INTRO BOX
   ============================================ */

.intro-box {
  background-color: #f5f2ee;
  border-radius: 8px;
  padding: 2em 2.4em;
  margin: 0em 0 1em 0;
  font-size: 1.02em;
  line-height: 1.9;
  border: 3px solid #d4c9b8;
  font-style: italic;
  color: #3a3a3a;
}

/* ============================================
   CALLOUT BOXES
   ============================================ */

div.callout-tip {
  background-color: #f0f7f4;
  border-left: 4px solid #2a9d8f;
  border-radius: 0 6px 6px 0;
  padding: 0.2em 0.2em 0.2em 0;
  margin: 1.8em 0;
}

div.callout-tip .callout-title-container {
  color: #2a9d8f;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

div.callout-tip .callout-body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95em;
  color: #2c2c2c;
}

/* ============================================
   BODY TEXT JUSTIFICATION
   ============================================ */

#quarto-content p {
  text-align: justify;
}

/* ============================================
   CLOSING NOTE
   ============================================ */

.closing {
  background-color: #f5f2ee;
  border-radius: 8px;
  padding: 2em 2.4em;
  margin: 1em 0;
  font-size: 1.02em;
  line-height: 1.9;
  border: 3px solid #d4c9b8;
}

.closing h2 {
  border-bottom: none;
  margin-top: 0;
  font-size: 1.3em;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */

#TOC {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88em;
  padding: 1em;
  background-color: #f5f2ee;
  border-radius: 6px;
  border: none;
}

#TOC a {
  color: #2a9d8f;
  text-decoration: none;
}

#TOC a:hover {
  color: #1f7a6e;
  text-decoration: underline;
}

#TOC a.active {
  color: #c0392b;
}

/* ============================================
   CODE BUTTON
   ============================================ */

.code-tools-button {
  color: #2a9d8f;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85em;
}

/* ============================================
   ANCHOR LINKS
   ============================================ */

.header-section-link {
  display: none;
}

/* ============================================
   COLUMN MARGIN PHOTOS
   ============================================ */

.column-margin img {
  width: 100%;
  display: block;
  border-radius: 3px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
  margin-top: 1em;
  margin-bottom: 0.4em;
}

.column-margin p {
  margin-top: 0.2em;
  margin-bottom: 1.6em;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88em;
  color: #888;
  font-style: italic;
}

/* ============================================
   PULL QUOTES
   ============================================ */

.pull-quote {
  border-left: 3px solid #2a9d8f;
  padding: 0.6em 1em;
  margin-top: 1.5em;
  margin-bottom: 0;
  font-family: 'Georgia', serif;
  font-size: 0.95em;
  font-style: italic;
  color: #3a3a3a;
  line-height: 1.6;
}

/* ============================================
   FACT BOXES
   ============================================ */

.fact-box {
  background-color: #f0f7f4;
  border-radius: 6px;
  padding: 0.9em 1em;
  margin-top: 1.5em;
  margin-bottom: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.fact-box .fact-number {
  font-size: 1.6em;
  font-weight: 700;
  color: #2a9d8f;
  line-height: 1.2;
  display: block;
}

.fact-box .fact-label {
  font-size: 0.78em;
  color: #555;
  line-height: 1.4;
  display: block;
  margin-top: 0.2em;
}

/* ============================================
   RESOURCE SECTION
   ============================================ */

h2.resources-hidden {
  display: none;
}

.resource-section {
  margin: 1em 0;
}

details {
  border: 2px solid #e8e0d5;
  border-radius: 8px;
  margin-bottom: 1em;
  overflow: hidden;
}

details[open] {
  border-color: #2a9d8f;
}

summary {
  background-color: #f5f2ee;
  padding: 1em 1.4em;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  color: #1a1a1a;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

details[open] summary {
  background-color: #2a9d8f;
  color: white;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '▶';
  font-size: 0.7em;
  transition: transform 0.2s;
}

details[open] summary::before {
  content: '▼';
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1em;
  padding: 1.2em;
  background-color: #faf9f7;
}

.resource-card {
  background-color: white;
  border: 1px solid #e8e0d5;
  border-radius: 6px;
  padding: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.resource-card h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  border: none;
}

#quarto-content .resource-card p {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85em;
  color: #555;
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
  text-align: left;
}

.resource-card a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82em;
  color: #2a9d8f;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.resource-card a:hover {
  text-decoration: underline;
  color: #1f7a6e;
}

/* ============================================
   MOBILE GALLERY
   ============================================ */

.mobile-gallery {
  display: none 
}

@media (max-width: 991px) {
  .mobile-gallery {
    display: block !important;
    margin: 1.5em 0 2em 0;
    background-color: #f5f2ee;
    border-radius: 8px;
    border: 3px solid #d4c9b8;
    overflow: hidden;
  }

  .mobile-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 1.2em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 1px solid #d4c9b8;
  }

  .mobile-gallery-counter {
    font-weight: 400;
    color: #888;
  }

  .mobile-gallery-track-wrapper {
    overflow: hidden;
    width: 100%;
  }

  .mobile-gallery-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
  }

  .mobile-gallery-slide {
    min-width: 100%;
    padding: 1em 1.2em 0.6em 1.2em;
    box-sizing: border-box;
  }

  .mobile-gallery-slide img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    display: block;
  }

  .mobile-gallery-slide p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.82em;
    color: #888;
    font-style: italic;
    margin: 0.5em 0 0 0;
    text-align: left;
    line-height: 1.4;
  }

  .mobile-gallery-controls {
    display: flex;
    justify-content: space-between;
    padding: 0.8em 1.2em;
  }

  .mobile-gallery-btn {
    background-color: #2a9d8f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1.2em;
    font-size: 1.1em;
    cursor: pointer;
    font-family: 'Helvetica Neue', Arial, sans-serif;
  }

  .mobile-gallery-btn:active {
    background-color: #1f7a6e;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .column-margin {
    display: none;
  }
  .mobile-gallery {
    display: block !important;
    margin: 1.5em 0 2em 0;
    background-color: #f5f2ee;
    border-radius: 8px;
    border: 3px solid #d4c9b8;
    overflow: hidden;
  }
  h2 {
    margin-top: 1.2em;
  }
  #quarto-content p {
  text-align: left;
}