/* Palette drawn from the Chubby Bottom Plants woodcut poster:
   ink (near-black green), cream paper, dusty pink blooms,
   ochre-gold roots, sage foliage, slate-blue water. */
:root {
  --ink: #1c2418;
  --ink-soft: #2c3626;
  --paper: #f1ead3;
  --paper-deep: #e5dcbd;
  --card: #faf6e9;
  --pink: #dfa0ab;
  --pink-deep: #b76d7c;
  --gold: #b28a2e;
  --gold-bright: #c9a23f;
  --sage: #47593f;
  --sage-light: #dde4d2;
  --green-dark: #3a4a33;
  --slate: #567182;
  --text: #29301f;
  --muted: #6e6a55;
  --radius: 10px;
}

* { box-sizing: border-box; }

/* The hidden attribute must always win: without this, any author display
   rule (flex/grid/inline-block on a class) overrides the browser's
   [hidden] { display: none } and "hidden" elements stay visible. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
}

/* ---------- Header: dark ink with cream keyline, like the poster frame ---------- */
.site-header {
  background: var(--ink);
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 3px double var(--paper-deep);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  text-decoration: none;
}
.logo img {
  height: 52px;
  width: auto;
  border: 1px solid var(--paper-deep);
  border-radius: 3px;
  display: block;
}
.logo span {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.logo .logo-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0.04em;
  font-style: italic;
  color: var(--pink);
}

.site-header nav a {
  color: var(--paper-deep);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1rem;
}
.site-header nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Hero: framed poster + headline ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 1.5rem;
  border-bottom: 3px double var(--paper-deep);
}
.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-poster {
  width: 230px;
  max-width: 60vw;
  border: 1px solid var(--paper-deep);
  outline: 4px solid var(--ink);
  outline-offset: -6px;
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  display: block;
}
.hero-copy { max-width: 460px; text-align: left; }
.hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: 2.1rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.hero-copy h1 em { color: var(--pink); font-style: normal; }
.hero-copy p {
  margin: 0;
  color: var(--paper-deep);
  font-style: italic;
  font-size: 1.05rem;
}
.hero-rule {
  border: none;
  border-top: 2px solid var(--gold-bright);
  width: 90px;
  margin: 1rem 0;
}
/* Marketplace call-to-action under the slogan */
.hero-marketplace {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: sans-serif;
  font-size: 0.92rem;
  color: var(--paper);
  border: 1.5px solid var(--gold-bright);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
}
.hero-marketplace:hover { background: var(--gold-bright); color: var(--ink); }

main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
  box-shadow: 3px 3px 0 rgba(28, 36, 24, 0.12);
}
/* Dropdowns on the first row; checkboxes (plus clear button and count) on the second */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem;
}
.filter-row-checks {
  align-items: center;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--paper-deep);
}
.filter-row-checks .filter-check { padding-bottom: 0; }
.filter-group { display: flex; flex-direction: column; }
.filter-group label { margin: 0 0 0.2rem; font-family: sans-serif; font-size: 0.75rem; color: var(--muted); }
.filter-group select {
  min-width: 130px;
  padding: 0.4rem 0.5rem;
  border: 1px solid #c6bd9e;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  background: #fffdf4;
  color: var(--text);
}
/* Search box + sort dropdown on their own row above the attribute filters */
.filter-row-search {
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--paper-deep);
}
.filter-group-search { flex: 1 1 220px; }
.filter-group-search input[type='search'] {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #c6bd9e;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  background: #fffdf4;
  color: var(--text);
}
.filter-group-search input[type='search']:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.filter-check {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: sans-serif; font-size: 0.85rem; color: var(--text);
  margin: 0; padding-bottom: 0.45rem; cursor: pointer;
}
.filter-check input { accent-color: var(--sage); }
.filter-count { font-family: sans-serif; font-size: 0.8rem; color: var(--muted); margin-left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.chip {
  font-family: sans-serif;
  font-size: 0.7rem;
  background: var(--sage-light);
  color: var(--sage);
  border: 1px solid #c3ceb2;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}
.chip-pet { background: #f5dde1; color: var(--pink-deep); border-color: #e3bcc3; }
.chip-unique { background: #f3e7c9; color: var(--gold); border-color: #ddc98d; }
.chip-variety { background: #e7e0ef; color: #5b4a78; border-color: #ccc0dd; }

/* ---------- Catalog cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative; /* anchors the wish-list heart over the photo */
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(28, 36, 24, 0.14);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(28, 36, 24, 0.2); }

.card a.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }

.card img, .photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--sage-light);
  border-bottom: 1px solid var(--paper-deep);
}
.photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 0.9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.card-body h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.sci-name { font-style: italic; color: var(--muted); font-size: 0.88rem; margin: 0; }

.price-row { margin-top: 0.5rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.price { font-size: 1.3rem; font-weight: bold; color: var(--gold); }
.price-range { font-size: 0.82rem; color: var(--muted); }

.badge {
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-family: sans-serif;
}
.badge.sold { background: var(--paper-deep); color: var(--muted); border: 1px solid #c6bd9e; }

/* Per-size price list (detail page) */
.size-list { list-style: none; padding: 0; margin: 0.6rem 0 0; max-width: 340px; }
.size-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.size-list .price { font-size: 1.15rem; }

/* Back-in-stock waitlist signup (sold-out detail page) */
.waitlist {
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-left: 4px solid var(--pink-deep);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.9rem 0;
}
.waitlist p { margin: 0 0 0.5rem; font-size: 0.93rem; }
.waitlist form { display: flex; gap: 0.5rem; }
.waitlist input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .waitlist form { flex-direction: column; } }

.wait-note { font-family: sans-serif; font-size: 0.78rem; color: var(--pink-deep); margin-left: 0.35rem; white-space: nowrap; }

/* Admin: one-of-a-kind checkbox */
.unique-check { display: flex; align-items: center; gap: 0.45rem; cursor: pointer; margin-top: 0.9rem; }
.unique-check input { accent-color: var(--gold); }

/* Admin: one row per offered size (label / price / filter category / remove) */
.size-row {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 1.3fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}
.size-row .size-remove { line-height: 1; }
@media (max-width: 600px) {
  .size-row { grid-template-columns: 1fr 1.4fr auto; }
  .size-row .size-label { grid-column: 1 / -1; }
}

/* Admin: one row per additional gallery item (preview / caption / remove) */
.media-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}
.media-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--paper-deep);
  background: #000;
  display: block;
}
.media-row .media-remove { line-height: 1; }

.empty-note { text-align: center; color: var(--muted); padding: 3rem 1rem; font-style: italic; }

/* ---------- Detail page ---------- */
.detail-page { max-width: 900px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
@media (max-width: 700px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-layout img {
  width: 100%;
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(28, 36, 24, 0.16);
}
.detail-page h1 { color: var(--ink); }

/* ---------- Detail-page media gallery ---------- */
.gallery-stage img,
.gallery-stage video {
  width: 100%;
  display: block;
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(28, 36, 24, 0.16);
  background: #000;
}
.gallery-caption {
  font-family: sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-style: italic;
}
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.gallery-thumb {
  position: relative;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: none;
}
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.gallery-thumb.active { border-color: var(--sage); }
.gallery-thumb:hover { border-color: var(--gold-bright); }
.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.care-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.care-list li {
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-left: 4px solid var(--sage);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
}
.care-list b { color: var(--sage); }

/* Bloom-time highlight on the plant detail page */
.bloom-note {
  background: #f6ecef;
  border: 1px solid #e6cdd6;
  border-left: 4px solid var(--pink-deep, #b3607a);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  margin: 0.8rem 0 0;
  font-size: 0.93rem;
}
.bloom-note b { color: var(--pink-deep, #b3607a); }
.bloom-disclaimer {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

/* Fragrance line on the plant detail page; unpleasant scents get warning colors */
.scent-note {
  background: var(--sage-light);
  border: 1px solid #c3ceb2;
  border-left: 4px solid var(--sage);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  margin: 0.8rem 0 0;
  font-size: 0.93rem;
}
.scent-note b { color: var(--sage); }
.scent-note.scent-warn {
  background: #f5dde1;
  border-color: #e3bcc3;
  border-left-color: var(--pink-deep);
}
.scent-note.scent-warn b { color: var(--pink-deep); }

/* Admin: bloom-season checkboxes in a tidy row */
.bloom-seasons { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0.3rem 0 0.5rem; }

.back-link { color: var(--sage); font-size: 0.9rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: sans-serif;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--sage);
  color: var(--paper);
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--sage); }
.btn.fb { background: #1877f2; }
.btn.msgr { background: #0084ff; }
.btn.wish { background: var(--pink-deep); }
.btn.danger { background: #a04a35; }
.btn.small { font-size: 0.8rem; padding: 0.35rem 0.7rem; }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 760px; margin: 0 auto; }
.panel {
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.2rem 0;
  box-shadow: 4px 4px 0 rgba(28, 36, 24, 0.12);
}
.panel h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gold-bright);
  display: inline-block;
  padding-bottom: 0.15rem;
}
.panel h3 { color: var(--sage) !important; }

label { display: block; font-family: sans-serif; font-size: 0.8rem; color: var(--muted); margin: 0.7rem 0 0.2rem; }
input[type="text"], input[type="number"], input[type="password"], input[type="email"], textarea, select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #c6bd9e;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fffdf4;
  color: var(--text);
}
textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--sage); border-color: var(--sage); }

.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.ai-note {
  font-family: sans-serif; font-size: 0.85rem;
  background: var(--sage-light);
  border: 1px solid #c3ceb2;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin: 0.8rem 0;
}
.ai-note.warn { background: #f5dde1; border-color: #e3bcc3; }
/* Gentle amber nudge (differentiate same-species records) — noticeable, not alarming */
.ai-note.nudge { background: #f6edd6; border-color: #e3d3a8; }
.ai-note.ok-note { background: var(--sage-light); border-color: #c3ceb2; }

.correct-row { display: flex; gap: 0.5rem; align-items: stretch; }
.correct-row input { flex: 1; }
.correct-row .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .correct-row { flex-direction: column; }
}

.preview-img[hidden] { display: none; }
.preview-img {
  max-width: 240px;
  border: 1px solid var(--paper-deep);
  border-radius: 8px;
  margin-top: 0.6rem;
  display: block;
  box-shadow: 4px 4px 0 rgba(28, 36, 24, 0.12);
}

/* Search box above the seller's own listings */
.list-search { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 1rem; }
.list-search input[type='search'] {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border: 1px solid #c6bd9e;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fffdf4;
  color: var(--text);
}
.list-search input[type='search']:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
/* The sort dropdown next to the search box (global selects are width:100%) */
.list-search select { width: auto; flex: 0 0 auto; font-size: 0.9rem; }

.admin-list-item {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 0.7rem 0; border-bottom: 1px solid var(--paper-deep);
}
.admin-list-item img,
.admin-list-item video {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--paper-deep); background: var(--sage-light);
}
.admin-list-item .info { flex: 1; min-width: 0; }
.admin-list-item .info b { display: block; }
.admin-list-item .actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }

.status-msg { font-family: sans-serif; font-size: 0.85rem; margin-top: 0.6rem; }
.status-msg.err { color: #a04a35; }
.status-msg.ok { color: var(--sage); }

/* ---------- Admin: "which of my plants is this?" match results ---------- */
.match-features {
  font-family: sans-serif;
  font-size: 0.88rem;
  background: var(--sage-light);
  border: 1px solid #c3ceb2;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin: 0.8rem 0;
}
.match-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fffdf4;
  border: 1px solid var(--paper-deep);
  border-left: 4px solid var(--sage);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.7rem;
}
.match-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--paper-deep);
  background: var(--sage-light);
}
.match-body { flex: 1; min-width: 0; }
.match-body .sci-name { display: block; }
.match-why { font-size: 0.9rem; margin: 0.35rem 0 0; }
/* The differences that confirm/rule out a candidate — the amber "check this" note */
.match-diff {
  font-family: sans-serif;
  font-size: 0.85rem;
  background: #f6edd6;
  border: 1px solid #e3d3a8;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin: 0.45rem 0 0;
}
.match-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.chip.match-conf-high { background: var(--sage-light); color: var(--sage); border-color: #c3ceb2; }
.chip.match-conf-medium { background: #f3e7c9; color: var(--gold); border-color: #ddc98d; }
.chip.match-conf-low { background: #f5dde1; color: var(--pink-deep); border-color: #e3bcc3; }
@media (max-width: 520px) {
  .match-card { flex-wrap: wrap; }
}

/* ---------- Wish list ---------- */
/* Count badge on the header "♥ Wish list" link */
.wish-count {
  display: inline-block;
  background: var(--pink);
  color: var(--ink);
  font-family: sans-serif;
  font-size: 0.72rem;
  line-height: 1.2;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  margin-left: 0.35rem;
  vertical-align: 1px;
}

/* Heart toggle over each catalog card's photo */
.wish-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--paper-deep);
  border-radius: 50%;
  background: rgba(250, 246, 233, 0.92);
  color: var(--pink-deep);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(28, 36, 24, 0.18);
}
.wish-btn:hover { background: #fff; transform: scale(1.07); }
.wish-btn.active { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }

/* Wish list / share buttons on the plant detail page */
.detail-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- Admin tab bar ---------- */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.admin-tabs button {
  font-family: sans-serif;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--paper-deep);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.admin-tabs button:hover { border-color: var(--sage); }
.admin-tabs button.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* ---------- Events page ---------- */
.events-page { max-width: 760px; }
.events-title { color: var(--ink); margin: 0.8rem 0 0.3rem; }
.events-intro { color: var(--muted); font-size: 0.95rem; margin-top: 0; }
.appointment-panel h2 { margin-top: 0; color: var(--green-dark); }
.appointment-copy { margin: 0; }
.events-heading { color: var(--green-dark); margin: 2rem 0 1rem; }

.event-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(28, 36, 24, 0.14);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.event-date {
  flex: 0 0 auto;
  width: 64px;
  text-align: center;
  background: var(--sage-light);
  border: 1px solid #c3ceb2;
  border-radius: 10px;
  padding: 0.45rem 0.2rem;
  font-family: sans-serif;
}
.event-month { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); }
.event-day { display: block; font-size: 1.5rem; font-weight: bold; color: var(--green-dark); line-height: 1.1; }
.event-body { flex: 1; min-width: 0; }
.event-title { margin: 0 0 0.25rem; color: var(--green-dark); }
.event-title a { color: inherit; }
.event-when, .event-where { font-family: sans-serif; font-size: 0.85rem; color: var(--muted); margin: 0.1rem 0; }
.event-details { font-size: 0.95rem; margin: 0.5rem 0 0; white-space: pre-line; }
/* Multi-day badge ("17–18") needs a slightly smaller number to fit */
.event-day-range { font-size: 1.05rem; padding-top: 0.2rem; }

/* Event photo gallery (reuses the shared gallery classes) */
.event-gallery { margin-top: 0.8rem; max-width: 460px; }
.event-gallery .gallery-stage img,
.event-gallery .gallery-stage video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Past events in the admin list stay editable but read as done */
.event-past { opacity: 0.6; }

/* ---------- FAQ page ---------- */
.faq-page { max-width: 760px; }
.faq-title { color: var(--ink); margin: 0.8rem 0 1rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(28, 36, 24, 0.14);
  margin-bottom: 0.9rem;
}
.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--green-dark);
}
.faq-item summary::marker { color: var(--gold); }
.faq-item summary:hover { color: var(--sage); }
.faq-item[open] summary { border-bottom: 1px dashed var(--paper-deep); }
.faq-answer { padding: 0.15rem 1.15rem 0.4rem; }
.faq-answer a { color: var(--sage); }

/* ---------- About-us page ---------- */
.about-page { max-width: 1000px; }
.about-title { color: var(--ink); margin: 0.8rem 0 0.3rem; }
.about-intro { color: var(--muted); font-size: 0.95rem; margin-top: 0; max-width: 620px; }
.about-heading { color: var(--green-dark); margin: 2.2rem 0 1rem; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}

.member-card {
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(28, 36, 24, 0.14);
  display: flex;
  flex-direction: column;
}

/* The member's gallery reuses the detail-page gallery classes; cap the stage
   so portrait photos don't make one card tower over the rest. */
.member-gallery { padding: 0.6rem 0.6rem 0; }
.member-gallery .gallery-stage img,
.member-gallery .gallery-stage video {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.member-placeholder {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: var(--sage-light);
}

.member-body { padding: 0.9rem 1.1rem 1.1rem; }
.member-name { margin: 0; color: var(--green-dark); }
.member-role { font-family: sans-serif; font-size: 0.82rem; color: var(--muted); margin: 0.15rem 0 0.5rem; }
.member-bio { font-size: 0.95rem; margin: 0; white-space: pre-line; }

/* The wish-list page itself */
.wishlist-page { max-width: 760px; }
.wishlist-title { color: var(--ink); margin: 0.8rem 0 0.3rem; }
.wish-intro { color: var(--muted); font-size: 0.95rem; margin-top: 0; }
.wishlist-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.6rem;
  box-shadow: 3px 3px 0 rgba(28, 36, 24, 0.12);
}
.wishlist-item img,
.wish-thumb-placeholder {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--paper-deep);
  background: var(--sage-light);
  display: block;
}
.wish-thumb-placeholder { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.wishlist-item .info { flex: 1; min-width: 0; }
.wishlist-item .info a { text-decoration: none; color: var(--ink); }
.wishlist-item .info a:hover b { text-decoration: underline; }
.wishlist-item .info .sci-name { display: block; }
.wishlist-item .price { font-size: 1.05rem; white-space: nowrap; }

.send-panel .send-intro { font-size: 0.93rem; }
.send-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.email-row { margin-top: 0.4rem; }
.email-row-fields { display: flex; gap: 0.5rem; }
.email-row-fields input { flex: 1; min-width: 0; }
.email-row-fields .btn { white-space: nowrap; }
.msg-preview { margin-top: 0.8rem; }
.msg-preview textarea { font-family: monospace; font-size: 0.8rem; }

@media (max-width: 520px) {
  .wishlist-item { flex-wrap: wrap; }
  .wishlist-item .price { margin-left: auto; }
  .email-row-fields { flex-direction: column; }
  .send-buttons .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header { padding: 0.6rem 1rem; }
  .logo img { height: 42px; }
  .logo span { font-size: 1.02rem; letter-spacing: 0.06em; }
  .site-header nav a { margin-left: 0.75rem; font-size: 0.9rem; }

  .hero { padding: 1.8rem 1rem; }
  .hero-inner { gap: 1.4rem; }
  .hero-poster { width: 180px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: 1.55rem; }
  .hero-rule { margin: 0.8rem auto; }

  main { padding: 1rem 0.9rem 2.5rem; }

  /* Filter bar: dropdowns become a tidy two-column grid, checkboxes stack */
  .filter-bar { padding: 0.8rem 0.9rem; }
  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0.6rem;
  }
  .filter-group select { min-width: 0; width: 100%; }
  /* Search gets a full-width row of its own; the sort dropdown sits below it */
  .filter-group-search { grid-column: 1 / -1; }
  .filter-row-checks { grid-template-columns: 1fr; gap: 0.5rem; }
  .filter-check { padding: 0; }
  #clearFilters { width: 100%; }
  .filter-count { margin-left: 0; text-align: right; }

  .grid { gap: 1rem; }

  .detail-layout { gap: 1.2rem; margin-top: 1rem; }
  .detail-page h1 { font-size: 1.5rem; }

  /* Admin: panels hug the screen, list rows stack */
  .panel { padding: 1.1rem 1rem; margin: 0.9rem 0; }
  .admin-list-item { flex-wrap: wrap; }
  .admin-list-item .info { flex: 1 1 calc(100% - 80px); }
  .admin-list-item .actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    padding-top: 0.3rem;
  }
  .admin-list-item .actions .btn { flex: 1 1 auto; text-align: center; }

  /* Comfortable touch targets */
  .btn { padding: 0.65rem 1rem; }
  .btn.small { padding: 0.5rem 0.7rem; }
  input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="search"], textarea, select {
    font-size: 1rem; /* prevents iOS zoom-on-focus */
    padding: 0.6rem 0.7rem;
  }
}

@media (max-width: 380px) {
  .logo .logo-sub { display: none; }
  .hero-poster { width: 150px; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  border-top: 3px double var(--paper-deep);
  text-align: center;
  color: var(--paper-deep);
  font-size: 0.85rem;
  padding: 1.6rem 1rem;
  font-style: italic;
  margin-top: 2rem;
}
footer img { height: 44px; display: block; margin: 0 auto 0.5rem; border: 1px solid var(--paper-deep); border-radius: 3px; }

/* Facebook Marketplace link + scannable QR code, on every public page */
.footer-marketplace {
  display: block;
  margin-top: 1.2rem;
  color: var(--paper-deep);
  text-decoration: none;
  font-style: normal;
  font-family: sans-serif;
  font-size: 0.85rem;
}
.footer-marketplace:hover { color: #fff; }
.footer-marketplace:hover span { text-decoration: underline; }
footer img.footer-qr {
  height: 96px;
  width: 96px;
  background: #fff;
  padding: 5px;
  border: 1px solid var(--paper-deep);
  border-radius: 8px;
  margin: 0 auto 0.45rem;
}
