/* GetGutBrain guide pages (learn hub, guides, legal pages, category hubs).
   Restored 2026-10-07: pages referenced /guide.css but the file was never deployed. */
:root {
  --purple: #582186;
  --purple-dark: #2b0f42;
  --purple-light: #7a35b3;
  --purple-soft: #f4eefb;
  --green: #1b7a43;
  --gold: #c59b27;
  --text: #140d1c;
  --muted: #574f62;
  --line: #e7dcf3;
  --bg: #f8f7fa;
  --card: #ffffff;
  --head: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 2px; }
a:hover { color: var(--purple-light); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.topbar { background: var(--purple-dark); color: #fff; font-size: 12px; letter-spacing: .06em; text-align: center; padding: 8px 16px; }
.topbar a { color: #fff; font-weight: 700; }

.brand { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-top: 18px; padding-bottom: 18px; }
.brand-mark { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: .08em; color: var(--purple-dark); text-decoration: none; }
.brand-note { font-size: 13px; color: var(--muted); }

.hero { background: linear-gradient(135deg, var(--purple-soft), #fff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--purple-light); margin-bottom: 8px; }
.hero h1 { font-family: var(--head); font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 14px; color: var(--purple-dark); }
.hero p { max-width: 760px; margin: 0 0 10px; color: var(--muted); }
.reviewed { font-size: 13px; }
.disclosure { font-size: 13px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 14px; }

.content { padding-top: 32px; padding-bottom: 48px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; min-width: 0; }
.article h2 { font-family: var(--head); font-size: 26px; line-height: 1.25; color: var(--purple-dark); margin: 28px 0 10px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; margin: 20px 0 6px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.answer-block { background: var(--purple-soft); border-radius: 10px; padding: 14px 18px; margin: 0 0 18px; }

.comparison-block { margin: 18px 0; }
.comparison-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article th { background: var(--purple-soft); }

.guide-faqs, .related-guides, .guide-sources { margin-top: 28px; }
.guide-faq { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
.guide-faq summary { cursor: pointer; font-weight: 700; }
.guide-faq p { margin: 8px 0 0; }
.guide-sources { font-size: 14px; color: var(--muted); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.related-grid a { display: flex; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; font-weight: 600; background: #fff; }
.related-grid a:hover { border-color: var(--purple-light); }

.aside { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.aside h2 { font-family: var(--head); font-size: 21px; line-height: 1.25; margin: 0 0 10px; color: var(--purple-dark); }
.aside p { font-size: 15px; color: var(--muted); }
.cta { display: inline-block; background: var(--purple); color: #fff !important; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 20px; margin: 6px 0 12px; }
.cta:hover { background: var(--purple-light); }
.back { font-size: 14px; }

/* Category hub product cards */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.hub-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; text-decoration: none; color: var(--text); }
.hub-card:hover { border-color: var(--purple-light); }
.hub-card img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 10px; }
.hub-card span { padding: 0 12px; }
.hub-card .hub-name { font-weight: 700; color: var(--purple-dark); line-height: 1.35; }
.hub-card .hub-desc { font-size: 14px; color: var(--muted); line-height: 1.45; padding-bottom: 14px; padding-top: 4px; }

.footer { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; }
.footer p { flex-basis: 100%; color: var(--muted); margin: 8px 0 0; }

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .article { padding: 20px; }
}
