/* stories.css — shared styles for /stories/ and the /wild-bees/ state pages.
   Same palette as the landing page (index.html). Public folder: see
   functions/_middleware.js PUBLIC_PREFIXES. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #fdf6e3; color: #3a2a12; line-height: 1.7;
}
a { color: #b8730a; }
.wrap { max-width: 680px; margin: 0 auto; padding: 24px 18px 64px; }
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 0.9rem; }
.topbar img { width: 26px; height: 26px; border-radius: 8px; }
.topbar a { text-decoration: none; font-weight: 600; color: #3a2a12; }
.topbar .sep { color: #c9b98a; }
.kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8a6a2a; margin-bottom: 8px; }
h1 { font-size: clamp(1.6rem, 5.5vw, 2.1rem); line-height: 1.25; font-weight: 600; margin-bottom: 12px; }
.dek { font-size: 1.08rem; color: #6b5c38; margin-bottom: 22px; }
h2 { font-size: 1.25rem; font-weight: 600; margin: 34px 0 10px; }
p { margin-bottom: 15px; font-size: 1rem; }
ul { margin: 0 0 15px 22px; }
li { margin-bottom: 7px; }
.meta { font-size: 0.8rem; color: #8a7a55; margin-bottom: 26px; }
.callout { background: #fffaf0; border: 1px solid #ecdfc0; border-left: 4px solid #f5a623; border-radius: 12px; padding: 14px 16px; margin: 20px 0; font-size: 0.95rem; }
.callout.safety { border-left-color: #d85a30; }
.stats { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.stat { flex: 1; min-width: 140px; background: #fff; border: 1px solid #ecdfc0; border-radius: 12px; padding: 14px 10px; text-align: center; }
.stat .num { font-size: 1.6rem; font-weight: 600; color: #3a2a12; line-height: 1.2; }
.stat .lbl { font-size: 0.75rem; color: #8a7a55; margin-top: 2px; }
.cta-box { background: #fffaf0; border: 1px solid #ecdfc0; border-radius: 16px; padding: 20px 18px; margin: 36px 0 20px; text-align: center; }
.cta-box h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.cta-box p { font-size: 0.94rem; color: #6b5c38; }
.btn { display: inline-block; text-decoration: none; font-family: inherit; font-weight: 500; font-size: 0.96rem; border-radius: 999px; padding: 12px 26px; border: none; cursor: pointer; background: #f5a623; color: #412402; }
.sources { font-size: 0.85rem; color: #6b5c38; border-top: 1px solid #ecdfc0; margin-top: 34px; padding-top: 14px; }
.sources h2 { font-size: 0.95rem; margin: 0 0 8px; }
.sources li { margin-bottom: 5px; }
.card { display: block; text-decoration: none; background: #fffaf0; border: 1px solid #ecdfc0; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; color: inherit; }
.card .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #7a5a1e; margin-bottom: 4px; }
.card .t { font-weight: 600; font-size: 1.02rem; margin-bottom: 4px; }
.card .d { font-size: 0.88rem; color: #6b5c38; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 20px; }
.state-grid a { background: #fffaf0; border: 1px solid #ecdfc0; border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; text-decoration: none; color: #3a2a12; }
.state-grid a span { color: #8a7a55; font-size: 0.78rem; }
/* email signup */
.stp-signup { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.stp-signup input[type=email] { flex: 1; min-width: 200px; font-family: inherit; font-size: 0.95rem; padding: 11px 14px; border-radius: 999px; border: 1px solid #d9c69a; background: #fff; }
.stp-signup .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.stp-msg { font-size: 0.88rem; margin-top: 10px; min-height: 1.2em; }
.stp-fine { font-size: 0.74rem; color: #8a7a55; margin-top: 8px; }
footer.site { text-align: center; font-size: 0.78rem; color: #8a7a55; padding-top: 18px; border-top: 1px solid #ecdfc0; }
footer.site a { color: #8a7a55; }
/* citations (added 2026-11-01) */
sup.ref { font-size: 0.7em; line-height: 0; margin-left: 1px; }
sup.ref a { text-decoration: none; font-weight: 600; }
.citations { margin-top: 38px; padding: 20px 18px; background: #fffaf0; border: 1px solid #ecdfc0; border-radius: 16px; }
.citations h2 { margin: 0 0 6px; font-size: 1.1rem; }
.cite-note { font-size: 0.82rem; color: #8a7a55; margin-bottom: 12px; }
.cite-list { list-style: none; margin: 0; counter-reset: c; padding: 0; }
.cite-list li { counter-increment: c; position: relative; padding: 12px 0 12px 34px; border-top: 1px solid #ecdfc0; font-size: 0.88rem; line-height: 1.55; margin: 0; }
.cite-list li::before { content: "[" counter(c) "]"; position: absolute; left: 0; top: 12px; font-weight: 600; color: #8a6a2a; }
.cite-list li:target { background: #fff3d6; }
.cite-link { display: inline-block; margin-top: 4px; font-size: 0.82rem; font-weight: 600; }
.cite-supports { display: block; margin-top: 4px; font-size: 0.8rem; color: #8a7a55; }

/* read next (2026-11-01) */
.readnext { margin-top: 34px; }
.readnext h2 { font-size: 1.1rem; margin-bottom: 10px; }
.readnext p { font-size: 0.9rem; }

/* cite / share (2026-11-04) */
.share { margin-top: 28px; padding: 16px 18px; border: 1px solid #ecdfc0; border-radius: 14px; background: #fffaf0; }
.share h2 { margin: 0 0 8px; font-size: 1rem; }
.share-cite { font-size: 0.85rem; color: #6b5c38; margin-bottom: 8px; word-break: break-word; }
.share-links { font-size: 0.88rem; margin: 0; }
