/* MADASIA · October 2026
   Editable layout corrections. Plants grow from a page edge or section seam;
   unrotated bases never float above the paper. */
[hidden] { display: none !important; }
body { overflow-x: clip; }
button { cursor: pointer; }
.chapter { gap: 12px; }
.chapter .chapter-line { font-size: 0; }
.plant { animation: none; rotate: none; }

/* Hero: a vine from the top seam, a fern from the lower rule. */
.hero-vine {
  top: 0; right: min(-45px, calc((1440px - 100vw) / 2 - 45px));
  width: 310px; left: auto; transform: none; z-index: 4;
}
.hero-fern {
  left: auto; right: min(-1px, calc((1440px - 100vw) / 2 - 1px));
  bottom: 24px; width: 400px; transform: scaleX(-1); transform-origin: center; z-index: 4;
}
.hero-bottom { z-index: 9; }
.turtle-postcard { z-index: 7; }
.hero-topline > span:first-child { color: var(--deep); display: inline; }

/* A clear introduction; the next plant starts at the atlas seam. */
.field-introduction { padding-top: 80px; padding-bottom: 48px; }
.intro-heading, .intro-story, .values-thread { position: relative; z-index: 7; }
.intro-story { padding-top: 35px; }
.values-thread { margin-top: 55px; }
.atlas-section { margin-top: 30px; }
.atlas-fern {
  top: auto; bottom: calc(100% - 8px); right: -80px; left: auto;
  width: 285px; transform: scaleX(-1); opacity: .85; z-index: 2;
}
.atlas-map > svg { display: block; }
.map-marker { z-index: 2; }
.region-fieldnote { overflow: visible; }
.region-note-content { min-height: 290px; }
.region-preview-empty { min-height: 68px; font-size: 12px; }

/* Photographs have their own clear space; plants attach to the outer seams. */
.specimen-section { max-width: none; padding: 100px 9% 115px; }
.specimen-section > .section-heading, .specimen-spread { max-width: 1150px; margin-inline: auto; }
.specimen-vine { top: 0; right: -115px; width: 275px; transform: none; z-index: 1; }
.specimen-fern { left: -20px; right: auto; bottom: 0; width: 290px; transform: none; z-index: 1; }
.specimen-spread { z-index: 3; }
.specimen-scribble { bottom: -8px; }

/* The forest caption stays readable; foliage sits behind the paper. */
.mission-scene { margin-top: 0; margin-bottom: 0; gap: 70px; }
.mission-background {
  background-image: linear-gradient(90deg, #17342108 25%, #102d226e 66%, #102d2299), url('../media/rainforest.webp');
}
.mission-paper { flex: 0 1 530px; }
.mission-label { margin-left: auto; margin-right: 0; flex: 0 0 245px; gap: 20px; font-size: 42px; color: #fffbeb; }
.mission-label .little-sun { font-size: 33px; }
.mission-label > span:last-child { white-space: nowrap; }
.mission-fern { left: -25px; bottom: 0; width: 330px; transform: none; z-index: 3; }
.journal-entry { gap: 18px; }
.join-section { overflow: hidden; }
.join-fern { right: -1px; bottom: -1px; width: 275px; transform: scaleX(-1); opacity: .75; }
.join-content { max-width: 780px; margin-inline: auto; }
.footer-main > div:first-child { align-self: start; }

/* Static multi-page frontend and content returned by the self-hosted API. */
.archive-page { overflow: clip; }
.archive-vine { top: 0 !important; right: -90px !important; width: 260px !important; transform: none !important; z-index: 0; }
.archive-heading > :not(.plant) { position: relative; z-index: 1; }
.archive-empty { padding: 60px 20px; text-align: center; }
.archive-empty h2 { font-size: 36px; }
.archive-empty p { margin: 15px 0 25px; }
.archive-empty button { border-bottom: 1px solid var(--deep); padding: 10px 0; }
.detail-wrap { max-width: 1180px; padding: 75px 6% 100px; margin: auto; }
.detail-heading { margin: 42px 0 36px; }
.detail-heading .chapter { margin-bottom: 20px; }
.detail-heading h1 { font-size: clamp(42px, 5vw, 70px); line-height: 1.03; overflow-wrap: anywhere; }
.detail-heading time { display: block; margin-top: 22px; font-size: 13px; color: #67705d; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.detail-image { display: block; width: 100%; max-height: 540px; object-fit: cover; padding: 9px; background: #fffbf2; }
.detail-copy { white-space: pre-line; font-size: 15px; line-height: 1.85; }
.detail-copy p + p { margin-top: 18px; }
.detail-source { margin-top: 26px; }
.species-facts { margin-top: 30px; width: 100%; border-collapse: collapse; background: #fffbf270; }
.species-facts caption { text-align: left; font: 500 32px var(--serif); padding: 20px 0; }
.species-facts th, .species-facts td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.species-facts th { width: 40%; font-weight: 500; color: #65734b; }
.detail-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 55px; }
.detail-gallery img { width: 100%; height: 220px; object-fit: cover; }
.detail-gallery figcaption { font-size: 12px; margin-top: 10px; }
.news-detail { max-width: 960px; }
.news-detail .detail-image { max-height: 280px; object-fit: contain; margin: 35px 0; }
.news-detail .detail-copy { font-size: 17px; }
.news-index { max-width: 1050px; }
.partner-directory { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.partner-directory a { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 35px 22px; background: var(--paper-light); border: 1px solid var(--line); }
.partner-directory img { width: 170px; height: 90px; object-fit: contain; }
.partner-directory strong { font-weight: 500; }
.partner-directory p { font-size: 12px; text-align: center; line-height: 1.7; }
.data-empty { padding: 32px 0; font-size: 14px; }
.partner-window:focus-within .partner-track { animation-play-state: paused; }
.partner-window.is-paused .partner-track { animation-play-state: paused; }
.partner-track.is-static { animation: none; width: 100%; }
.partner-track.is-static .partner-group { flex-wrap: wrap; }

@media (max-width: 1190px) {
  .hero-fern { width: 300px; }
  .hero-vine { width: 250px; right: -65px; }
  .atlas-fern { right: -110px; width: 260px; }
  .specimen-vine { right: -135px; }
  .mission-scene { gap: 35px; padding-inline: 7%; }
  .mission-label { font-size: 34px; flex-basis: 200px; }
  .join-fern { width: 200px; opacity: .5; }
}
@media (max-width: 980px) {
  .hero-copy h1 { font-size: clamp(53px, 7.4vw, 69px); }
  .hero-vine { width: 220px; right: -60px; }
  .hero-fern { width: 245px; }
  .specimen-section { padding-inline: 8%; }
  .specimen-vine { width: 220px; right: -125px; }
  .specimen-fern { width: 220px; }
  .mission-label { font-size: 28px; flex-basis: 185px; gap: 10px; padding-left: 0; }
  .mission-label .little-sun { font-size: 25px; }
  .mission-scene { gap: 30px; }
  .mission-paper { padding: 40px 32px; }
  .mission-fern { width: 240px; }
  .detail-grid { gap: 30px; }
  .partner-directory { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .hero-copy h1 { font-size: clamp(53px,12.3vw,78px); }
  .hero-vine { top: 565px; right: -48px; width: 175px; }
  .hero-fern { bottom: 11px; width: 175px; right: -1px; }
  .hero-bottom { min-height: 62px; padding-right: 85px; font-size: 7px; }
  .hero-bottom > a { max-width: 200px; }
  .field-introduction { padding-top: 48px; padding-bottom: 35px; }
  .intro-story { padding-top: 30px; }
  .values-thread { margin-top: 35px; }
  .atlas-fern { display: none; }
  .atlas-section { padding-bottom: 58px; }
  .region-note-content { min-height: 0; }
  .specimen-section { padding: 65px 7% 100px; }
  .specimen-vine { right: -117px; width: 185px; top: 0; }
  .specimen-fern { width: 165px; left: -22px; bottom: 0; }
  .specimen-scribble { right: 6px; bottom: -30px; }
  .mission-scene { margin: 0; padding: 55px 7% 65px; min-height: auto; }
  .mission-paper { padding: 35px 27px; }
  .mission-label { margin-top: 35px; width: 190px; font-size: 29px; }
  .mission-fern { width: 180px; left: -30px; }
  .journal-section { padding-top: 65px; }
  .join-fern { width: 135px; opacity: .7; }
  .join-section { padding-bottom: 85px; }
  .archive-vine { right: -130px !important; width: 210px !important; }
  .archive-heading h1 { max-width: 90%; }
  .detail-wrap { padding: 45px 7% 70px; }
  .detail-grid { display: flex; flex-direction: column; gap: 25px; }
  .detail-grid > * { width: 100%; }
  .detail-gallery { grid-template-columns: 1fr; }
  .species-facts th, .species-facts td { display: block; width: 100%; }
  .species-facts th { padding-bottom: 3px; border-bottom: 0; }
  .species-facts td { padding-top: 3px; }
  .partner-directory { grid-template-columns: 1fr; }
  .journal-entry h3 { overflow-wrap: anywhere; }
}
@media (max-width: 370px) {
  .hero-copy h1 { font-size: 50px; }
  .hero-vine { top: 550px; }
  .hero-fern { width: 150px; }
  .hero-bottom { font-size: 6px; }
}
@media print { .plant { display: none; } }

/* Updated copy and the requested project / participation submenus. */
.intro-story > p:first-child { font-family: var(--sans); font-size: 15px; line-height: 1.85; margin-bottom: 24px; }
.join-content > p:not(.field-label) { max-width: 630px; margin-inline: auto; }
.desktop-navigation { align-items: center; padding-left: 0; }
.nav-disclosure { position: relative; }
.nav-disclosure > summary { display: flex; align-items: center; gap: 7px; padding: 10px 0; font-size: 12px; list-style: none; cursor: pointer; }
.nav-disclosure > summary::-webkit-details-marker { display: none; }
.nav-disclosure > summary::marker { content: ''; }
.nav-disclosure > summary > svg { transition: transform .2s; flex: none; }
.nav-disclosure[open] > summary > svg { transform: rotate(180deg); }
.desktop-navigation .nav-disclosure.is-current > summary { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--rust); }
.desktop-navigation .nav-dropdown { position: absolute; top: 100%; left: -18px; min-width: 220px; padding: 10px; background: var(--paper-light); border: 1px solid var(--line); box-shadow: 0 14px 30px #183c2c18; }
.desktop-navigation .nav-dropdown > a { display: block; white-space: nowrap; padding: 12px 14px; font-size: 12px; }
.desktop-navigation .nav-dropdown > a::after { display: none; }
.nav-dropdown > a:hover, .nav-dropdown > a:focus-visible { background: #e9e5d8; }
.nav-dropdown > a[aria-current] { color: var(--rust); }
.mobile-navigation .nav-disclosure > summary { font-size: 15px; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.mobile-navigation .nav-dropdown { padding: 0 0 8px 18px; }
.mobile-navigation .nav-dropdown > a { font-size: 13px; padding: 13px 8px; }
@media (max-width: 680px) {
  .intro-story > p:first-child { font-size: 14px; }
  .intro-heading h2 { font-size: clamp(38px,10.7vw,46px); }
}
