/* ═══════════════════════════════════════════════════════════════════
   The Green Border — Long-form pages (guides, FAQ, hubs, articles)

   These 18 pages were the last dark-themed corner of the site. They now
   share the cream canvas with everything else, and they share this one
   stylesheet instead of carrying 18 near-identical copies of it inline:
   the 12 guides were byte-identical to each other, as were the 2 FAQ
   pages, the 2 hub indexes, and the 2 article pages.

   Load order on those pages:
     css/brand.css        tokens
     css/liquid-glass.css canvas, header/footer chrome, utility remap
     css/longform.css     this file — the reading experience

   Color rules, all measured against the darkest canvas stop #F7F3E2:
     headings      --gb-ink-900   13.7:1
     body copy     --gb-ink-700   11.1:1  (long-form wants more than AA)
     muted / meta  --gb-ink-300    5.4:1
     links, accent --gb-green-700  7.9:1
   Accent surfaces stay as low-alpha green over cream, which is where
   the brand shows up on a reading page: as a tint, not as ink.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────────────── */
/* These came from the inline blocks these pages no longer carry.
   box-sizing is left to Tailwind's preflight, which every page loads. */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Page shells ──────────────────────────────────────────────────── */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 130px 20px 40px 20px;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 20px 40px 20px;
}
.hub-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 20px 40px 20px;
}

/* ── Reading progress ─────────────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #558203, #b9ab47);
  z-index: 10001;
}

/* ── Breadcrumbs ──────────────────────────────────────────────────── */
.breadcrumb-nav {
  font-size: 0.85rem;
  color: var(--gb-ink-300, #5f6749);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb-nav a {
  color: var(--gb-green-700, #375302);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav .sep { color: var(--gb-ink-300, #5f6749); }

/* ── Article header ───────────────────────────────────────────────── */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(85, 130, 3, 0.18);
}
.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gb-ink-900, #22280f);
  font-family: 'Fraunces', Georgia, serif;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--gb-ink-300, #5f6749);
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.article-tag,
.tag {
  display: inline-block;
  background: rgba(85, 130, 3, 0.10);
  border: 1px solid rgba(85, 130, 3, 0.30);
  color: var(--gb-green-700, #375302);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Article body ─────────────────────────────────────────────────── */
.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 40px 0 20px 0;
  color: var(--gb-ink-900, #22280f);
  font-family: 'Fraunces', Georgia, serif;
}
.article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 30px 0 15px 0;
  color: var(--gb-green-700, #375302);
}
.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--gb-ink-700, #31371c);
}
.article-content strong { color: var(--gb-green-700, #375302); }
.article-content a { color: var(--gb-green-700, #375302); }
.article-content ul,
.article-content ol {
  margin: 20px 0 20px 30px;
  line-height: 1.8;
}
.article-content li {
  margin-bottom: 12px;
  color: var(--gb-ink-700, #31371c);
}

/* Section anchor links reveal on hover over the heading. */
.article-content h2 .anchor-link {
  opacity: 0;
  margin-left: 10px;
  color: var(--gb-green-600, #476d03);
  text-decoration: none;
  font-size: 1.05rem;
  vertical-align: middle;
  transition: opacity 0.15s ease;
}
.article-content h2:hover .anchor-link,
.article-content h2 .anchor-link:focus { opacity: 1; }

/* ── Data tables ──────────────────────────────────────────────────── */
/* Each guide named its table for its own subject; they are one component. */
.measurements-table,
.dosage-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  border: 1px solid rgba(85, 130, 3, 0.25);
  border-radius: 8px;
  overflow: hidden;
}
.measurements-table th,
.dosage-table th {
  background: rgba(85, 130, 3, 0.12);
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(85, 130, 3, 0.25);
  color: var(--gb-green-700, #375302);
  font-weight: 700;
}
.measurements-table td,
.dosage-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(85, 130, 3, 0.15);
  color: var(--gb-ink-700, #31371c);
}
.measurements-table tr:last-child td,
.dosage-table tr:last-child td { border-bottom: none; }

/* ── Callout boxes ────────────────────────────────────────────────── */
/* Same component, three names across the guides. */
.extract-box,
.safety-box,
.method-box {
  background: rgba(85, 130, 3, 0.07);
  border-left: 4px solid var(--gb-green-500, #558203);
  padding: 20px;
  margin: 30px 0;
  border-radius: 4px;
}
.extract-box h4,
.safety-box h4,
.method-box h4 {
  color: var(--gb-green-700, #375302);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.extract-box ul,
.safety-box ul,
.method-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.extract-box li,
.safety-box li,
.method-box li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: var(--gb-ink-700, #31371c);
}
.extract-box li:before,
.safety-box li:before,
.method-box li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gb-green-600, #476d03);
  font-weight: bold;
}

/* A warning is status, not decoration, so it keeps the rose family. */
.warning-box {
  background: rgba(190, 18, 60, 0.06);
  border-left: 4px solid #be123c;
  padding: 20px;
  margin: 30px 0;
  border-radius: 4px;
}
.warning-box h4 {
  color: #be123c;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.warning-box li { color: var(--gb-ink-700, #31371c); }

/* ── Table of contents ────────────────────────────────────────────── */
.toc-box {
  background: rgba(85, 130, 3, 0.06);
  border: 1px solid rgba(85, 130, 3, 0.22);
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
}
.toc-box h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gb-green-700, #375302);
  margin: 0 0 14px 0;
  font-family: 'Fraunces', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.toc-box ol {
  margin: 0 0 0 20px;
  line-height: 2;
}
.toc-box li { margin: 0; }
.toc-box a {
  color: var(--gb-ink-700, #31371c);
  text-decoration: none;
}
.toc-box a:hover { color: var(--gb-green-700, #375302); text-decoration: underline; }
.toc-box a.active { color: var(--gb-green-700, #375302); font-weight: 700; }

/* ── FAQ accordion ────────────────────────────────────────────────── */
.faq-section { margin: 40px 0; }
.faq-item {
  border: 1px solid rgba(85, 130, 3, 0.22);
  border-radius: 10px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--gb-ink-900, #22280f);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--gb-green-600, #476d03);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--gb-green-700, #375302); }
.faq-item .faq-answer {
  padding: 0 20px 18px 20px;
  color: var(--gb-ink-700, #31371c);
  line-height: 1.7;
}
.faq-item .faq-answer a { color: var(--gb-green-700, #375302); }
.faq-more { font-size: 0.95rem; color: var(--gb-ink-300, #5f6749); }
.faq-more a { color: var(--gb-green-700, #375302); }

/* ── FAQ page ─────────────────────────────────────────────────────── */
.faq-hero { text-align: center; margin-bottom: 40px; }
.faq-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gb-ink-900, #22280f);
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  margin-bottom: 16px;
}
.faq-hero p {
  color: var(--gb-ink-500, #4b5233);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}
.faq-toc {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}
.faq-topic { margin-bottom: 46px; }
.faq-topic h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gb-ink-900, #22280f);
  font-family: 'Fraunces', Georgia, serif;
  margin-bottom: 18px;
}
.topic-emoji { margin-right: 6px; }
.topic-source { color: var(--gb-ink-300, #5f6749); font-size: 0.9rem; }
.topic-source a { color: var(--gb-green-700, #375302); }
.faq-no-results,
.no-results {
  display: none;
  text-align: center;
  color: var(--gb-ink-300, #5f6749);
  padding: 30px 0;
}

/* ── Hub (education index) ────────────────────────────────────────── */
.hub-hero { text-align: center; margin-bottom: 36px; }
.hub-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gb-ink-900, #22280f);
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hub-hero p {
  color: var(--gb-ink-500, #4b5233);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}
.hub-controls { margin-bottom: 34px; }
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Pills and chips share one skin: search filters, TOC jumps, share
   buttons. Ink label on a white-glass pill with a green rim. */
.faq-toc a,
.filter-chip,
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(85, 130, 3, 0.28);
  color: var(--gb-ink-700, #31371c);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.faq-toc a:hover,
.filter-chip:hover,
.share-btn:hover {
  border-color: rgba(85, 130, 3, 0.6);
  color: var(--gb-green-700, #375302);
  background: rgba(255, 255, 255, 0.85);
}
.filter-chip.active {
  background: rgba(85, 130, 3, 0.14);
  border-color: var(--gb-green-500, #558203);
  color: var(--gb-green-700, #375302);
}

/* Search inputs on the hub and FAQ pages. */
.hub-search,
.faq-search {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto 18px auto;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(85, 130, 3, 0.28);
  border-radius: 50px;
  padding: 13px 22px;
  color: var(--gb-ink-900, #22280f);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.faq-search { margin-bottom: 30px; }
.hub-search::placeholder,
.faq-search::placeholder { color: var(--gb-ink-300, #5f6749); }
.hub-search:focus,
.faq-search:focus { border-color: rgba(85, 130, 3, 0.6); }

/* ── Guide cards ──────────────────────────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(85, 130, 3, 0.22);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.guide-card:hover {
  border-color: rgba(85, 130, 3, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(45, 48, 20, 0.12);
}
.guide-card.hidden { display: none; }
.guide-card .guide-emoji { font-size: 2.2rem; margin-bottom: 16px; }
.guide-card h2 {
  color: var(--gb-ink-900, #22280f);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Fraunces', Georgia, serif;
  margin-bottom: 10px;
  line-height: 1.3;
}
.guide-card p {
  color: var(--gb-ink-500, #4b5233);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.guide-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--gb-ink-300, #5f6749);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.guide-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.guide-tag {
  background: rgba(85, 130, 3, 0.10);
  border: 1px solid rgba(85, 130, 3, 0.30);
  color: var(--gb-green-700, #375302);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.guide-card .guide-cta {
  color: var(--gb-green-700, #375302);
  font-weight: 700;
  font-size: 0.9rem;
}
/* "Read" marker. Cream is the accent here, so the label is cream-800 on
   a cream tint — cream-on-cream at reading size does not survive. */
.read-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(220, 207, 110, 0.30);
  border: 1px solid rgba(138, 124, 46, 0.45);
  color: var(--gb-cream-800, #4a431a);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── Related guides ───────────────────────────────────────────────── */
.related-section {
  margin: 50px 0 20px 0;
  padding-top: 30px;
  border-top: 1px solid rgba(85, 130, 3, 0.18);
}
.related-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gb-ink-900, #22280f);
  font-family: 'Fraunces', Georgia, serif;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  display: block;
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(85, 130, 3, 0.22);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover {
  border-color: rgba(85, 130, 3, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 48, 20, 0.10);
}
.related-card .related-emoji { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.related-card h3 {
  color: var(--gb-ink-900, #22280f);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}
.related-card p {
  color: var(--gb-ink-500, #4b5233);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}
.related-card .related-cta {
  color: var(--gb-green-700, #375302);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
}

/* ── Share bar ────────────────────────────────────────────────────── */
.share-bar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.share-label {
  color: var(--gb-ink-300, #5f6749);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Author box ───────────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(85, 130, 3, 0.18);
  border-radius: 12px;
  padding: 22px;
  margin: 40px 0 0 0;
  align-items: flex-start;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #558203, #375302);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.author-box h3 {
  color: var(--gb-ink-900, #22280f);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1rem;
}
.author-box p {
  color: var(--gb-ink-500, #4b5233);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Up next ──────────────────────────────────────────────────────── */
.upnext-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(85, 130, 3, 0.14), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(85, 130, 3, 0.35);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 30px 0 0 0;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.upnext-card:hover {
  border-color: rgba(85, 130, 3, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(45, 48, 20, 0.13);
}
.upnext-card .upnext-label {
  color: var(--gb-cream-700, #6b6224);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.upnext-card .upnext-title {
  color: var(--gb-ink-900, #22280f);
  font-weight: 700;
  font-size: 1.15rem;
  font-family: 'Fraunces', Georgia, serif;
}
.upnext-card .upnext-arrow {
  color: var(--gb-green-600, #476d03);
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* ── Page CTAs ────────────────────────────────────────────────────── */
.cta-box,
.hub-cta,
.faq-cta {
  background: rgba(85, 130, 3, 0.09);
  border: 1px solid rgba(85, 130, 3, 0.3);
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  margin: 40px 0;
}
.hub-cta { padding: 36px; }
.cta-box p,
.hub-cta p,
.faq-cta p {
  margin-bottom: 20px;
  color: var(--gb-ink-500, #4b5233);
  line-height: 1.6;
}
.hub-cta h2,
.faq-cta h2 {
  color: var(--gb-ink-900, #22280f);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
/* `.article-content a` is more specific than a bare `.cta-btn`, so the
   button inside a guide body needs the qualified selector too, or its
   white label falls back to link green on a green fill. */
.cta-btn,
.article-content a.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #558203, #375302);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 130, 3, 0.3);
}

/* ── Language switcher ────────────────────────────────────────────── */
.lang-switch {
  margin-left: auto;
  color: var(--gb-green-700, #375302);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.lang-switch:hover { text-decoration: underline; }

/* ── Print ────────────────────────────────────────────────────────── */
@media print {
  body { background: #ffffff !important; color: #111111; }
  #tgb-glass-header, #reading-progress, .share-bar, .upnext-card, .related-section,
  .cta-box, #tgb-scroll-btn, .toc-box, .skip-link, .lang-switch, .faq-more, footer,
  .breadcrumb-nav, .anchor-link, .hub-controls, .hub-cta, .faq-cta,
  .tgb-mobile-nav { display: none !important; }
  .article-container, .faq-container, .hub-container { padding: 0 !important; max-width: 100% !important; }
  .article-title, .article-content h2, .article-content h3, .faq-topic h2, .faq-hero h1 { color: #000000 !important; }
  .article-content p, .article-content li, .article-content td,
  .faq-item .faq-answer, .faq-item summary { color: #222222 !important; }
  .article-content strong, .faq-item .faq-answer strong { color: #375302 !important; }
  .faq-item, .extract-box, table { page-break-inside: avoid; }
  .faq-item summary::after { display: none; }
  .faq-item, .extract-box { border-color: #cccccc !important; background: #f8f8f8 !important; }
  a { color: #375302 !important; }
}

/* ── Small screens ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .article-container { padding-top: 100px; }
  .faq-container,
  .hub-container { padding-top: 100px; }
  .article-title { font-size: 1.8rem; }
  .article-content h2 { font-size: 1.5rem; }
  .faq-hero h1 { font-size: 1.9rem; }
  .hub-hero h1 { font-size: 2rem; }
  .measurements-table th, .measurements-table td,
  .dosage-table th, .dosage-table td { padding: 12px; font-size: 0.9rem; }
}
