/* Pollinate support pages — a pressed-specimen "herbarium sheet". */
:root {
  --paper: #F4F0E2;
  --sheet: #FBF9EF;
  --twine: #DCD2B8;
  --ink: #2B2A20;
  --graphite: #7D7660;
  --periwinkle: #6F76AB;
  --tree: #A9A15C;
  --grass: #C9992E;
  --weed: #8A6A3C;
  --stem: #7C8F63;
  --hatch: rgba(43, 42, 32, 0.035);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1A14;
    --sheet: #262319;
    --twine: #4A4536;
    --ink: #EDE8D8;
    --graphite: #A79F87;
    --periwinkle: #A4AAD4;
    --hatch: rgba(237, 232, 216, 0.03);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 7px);
  font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--periwinkle); text-underline-offset: 3px; }

.herbarium {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* Masthead: pressed bloom + name, set like a specimen title */
.sprig {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.sprig svg { width: 76px; height: 76px; flex: none; }
.sprig-name {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.sprig-name a { color: inherit; text-decoration: none; }
.sprig-motto { margin: 2px 0 0; color: var(--graphite); font-size: 16px; }

/* The sheet itself, with a stitched edge */
.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: 10px 34px 34px 10px;
  padding: 40px 44px 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
}
.sheet::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed var(--twine);
  border-radius: 6px 28px 28px 6px;
  pointer-events: none;
}

/* Section index, pinned beside the content on wide screens */
.folio-nav { position: relative; z-index: 1; }
.folio-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 28px;
  counter-reset: folio;
}
.folio-nav li { counter-increment: folio; margin: 0 0 10px; }
.folio-nav a {
  display: block;
  color: var(--graphite);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}
.folio-nav a::before {
  content: counter(folio, decimal-leading-zero);
  display: block;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stem);
}
.folio-nav a:hover { color: var(--ink); }

.folio { position: relative; z-index: 1; min-width: 0; }
.folio h1 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.folio h2 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin: 40px 0 10px;
  scroll-margin-top: 20px;
}
.folio p { margin: 0 0 14px; }
.folio ul { padding-left: 20px; margin: 0 0 14px; }
.folio li { margin-bottom: 6px; }
.accession {
  margin: 0 0 26px;
  color: var(--graphite);
  font-size: 14px;
}
.accession b { color: var(--ink); font-weight: 700; }

/* FAQ entries, as numbered specimens */
.specimen {
  border-top: 1.5px dashed var(--twine);
  padding: 4px 0;
}
.specimen:last-of-type { border-bottom: 1.5px dashed var(--twine); }
.specimen summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px 1fr 22px;
  align-items: baseline;
  padding: 14px 0;
  font-weight: 700;
  font-size: 18px;
}
.specimen summary::-webkit-details-marker { display: none; }
.specimen-no {
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stem);
  white-space: nowrap;
}
.specimen summary::after {
  content: "+";
  font-family: "Quicksand", sans-serif;
  font-size: 22px;
  color: var(--periwinkle);
  justify-self: end;
  transition: transform 0.2s ease;
}
.specimen[open] summary::after { transform: rotate(45deg); }
.specimen-body { padding: 0 0 16px 64px; }
.specimen-body p:last-child { margin-bottom: 0; }

/* Data-flow table on the privacy page */
.pressing {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 15px;
}
.pressing th, .pressing td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1.5px dashed var(--twine);
}
.pressing th {
  font-family: "Quicksand", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* Sign-off note at the foot of the sheet */
.field-note {
  margin-top: 36px;
  padding: 18px 20px;
  border-left: 4px solid var(--grass);
  background: color-mix(in srgb, var(--grass) 9%, transparent);
  border-radius: 4px 16px 16px 4px;
}
.field-note p { margin: 0; }
.field-note a { font-weight: 700; }

.underleaf {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--graphite);
  font-size: 14px;
}
.underleaf a { color: var(--graphite); }

/* Phones: one column, index becomes a row of chips */
@media (max-width: 760px) {
  .herbarium { padding: 28px 16px 48px; }
  .sprig svg { width: 58px; height: 58px; }
  .sprig-name { font-size: 28px; }
  .sheet {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px 34px;
    border-radius: 8px 24px 24px 8px;
  }
  .sheet::after { inset: 7px; border-radius: 5px 19px 19px 5px; }
  .folio-nav ol { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .folio-nav li { margin: 0; }
  .folio-nav a {
    padding: 6px 12px;
    border: 1.5px dashed var(--twine);
    border-radius: 999px;
    font-size: 14px;
  }
  .folio-nav a::before { display: none; }
  .specimen summary { grid-template-columns: 58px 1fr 20px; font-size: 17px; }
  .specimen-body { padding-left: 0; }
  .pressing, .pressing tbody, .pressing tr, .pressing td { display: block; width: 100%; }
  .pressing thead { display: none; }
  .pressing tr { border-bottom: 1.5px dashed var(--twine); padding: 10px 0; }
  .pressing td { border: 0; padding: 2px 0; }
  .pressing td::before {
    content: attr(data-col);
    display: block;
    font-family: "Quicksand", sans-serif;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--graphite);
  }
}
