/* ─────────────────────────────────────────────────────────────────────
   TrailMates premium theme — shared across the site.
   Matches the /group and /event share pages: dark forest topo hero,
   centered Playfair headline, amber glass pill, cream "sheet" that slides
   up over the hero, white rounded cards, orange gradient buttons.

   Opt-in: a page loads this file and adds class="tm-theme" to <body>.
   Every rule is scoped under body.tm-theme so it wins over each page's
   own inline <style> without touching the page markup.
   ───────────────────────────────────────────────────────────────────── */
body.tm-theme,
body.tm-guide {
  --tm-forest: #2D5016;
  --tm-forest-deep: #14240B;
  --tm-amber: #F0A020;
  --tm-trail: #E8691A;
  --tm-trail-deep: #C25210;
  --tm-cream: #F5F0E8;
  --tm-paper: #FBF8F2;
  --tm-ink: #1A1A18;
  --tm-mid: #55554C;
  --tm-light: #8A8A7E;
  --tm-line: rgba(26, 26, 24, 0.08);
  --tm-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400' fill='none' stroke='%23F5F0E8' stroke-opacity='0.06' stroke-width='1.2'%3E%3Cpath d='M-20 80 C 80 40, 160 120, 260 70 S 420 60, 440 90'/%3E%3Cpath d='M-20 140 C 90 100, 170 180, 270 130 S 420 120, 440 150'/%3E%3Cpath d='M-20 210 C 70 170, 180 250, 280 200 S 420 190, 440 220'/%3E%3Cpath d='M-20 280 C 100 240, 160 320, 270 270 S 420 260, 440 290'/%3E%3Cpath d='M-20 350 C 80 310, 190 390, 280 340 S 420 330, 440 360'/%3E%3C/svg%3E");
  --tm-hero-bg:
    linear-gradient(180deg, rgba(20,36,11,0) 0%, rgba(20,36,11,0.35) 75%, #14240B 100%),
    var(--tm-topo),
    radial-gradient(120% 90% at 50% 0%, #3F6B23 0%, #22400F 48%, #14240B 100%);
  background: var(--tm-paper);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar (legal / safety / support pages use a bare <nav>) ───── */
body.tm-theme > nav,
body.tm-theme .site-header {
  background: #1d3610 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: calc(env(safe-area-inset-top) + 14px) 20px 14px !important;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 5;
}
body.tm-theme > nav .nav-logo {
  display: inline-flex; align-items: center; gap: 0;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: italic; font-weight: 700; letter-spacing: 0.01em !important;
  font-size: 1.2rem !important; color: var(--tm-cream) !important; text-decoration: none;
}
body.tm-theme > nav .nav-logo span { color: var(--tm-cream) !important; }
body.tm-theme > nav .nav-logo::before {
  content: ""; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; margin-right: 9px;
  background: var(--tm-cream) url('/logo-nav.png') center / 24px auto no-repeat;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
body.tm-theme > nav .nav-back {
  color: rgba(245,240,232,0.75) !important; font-size: 0.85rem !important; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(245,240,232,0.18);
  background: rgba(245,240,232,0.08);
}
body.tm-theme > nav .nav-cta {
  background: rgba(245,240,232,0.1) !important; color: var(--tm-cream) !important;
  border: 1px solid rgba(245,240,232,0.2) !important; border-radius: 999px !important;
  padding: 7px 12px !important; font-size: 0.8rem !important; font-weight: 600 !important;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
body.tm-theme .hero {
  background: var(--tm-hero-bg) !important;
  color: var(--tm-cream);
  text-align: center;
  padding: 34px 22px 96px !important;
  position: relative;
  border: 0 !important;
}
body.tm-theme .hero .hero-inner { max-width: 640px; margin: 0 auto; padding: 0 !important; }
body.tm-theme .hero-tag,
body.tm-theme .hero .eyebrow,
body.tm-theme .hero-badge {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 7px 14px !important; border-radius: 999px !important;
  background: rgba(245,240,232,0.1) !important;
  border: 1px solid rgba(245,240,232,0.18) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--tm-amber) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.74rem !important; font-weight: 700 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase;
  margin: 0 auto 20px !important;
}
body.tm-theme .hero-tag::before,
body.tm-theme .hero .eyebrow::before,
body.tm-theme .hero-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tm-amber); box-shadow: 0 0 0 4px rgba(240,160,32,0.18);
}
body.tm-theme .hero h1 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 900 !important;
  font-size: clamp(2.2rem, 9vw, 3.4rem) !important;
  line-height: 1.08 !important; letter-spacing: -0.01em !important;
  color: var(--tm-cream) !important;
  margin: 0 auto 12px !important; max-width: 16ch;
  text-wrap: balance;
}
body.tm-theme .hero h1 span,
body.tm-theme .hero h1 em { color: var(--tm-amber) !important; font-style: italic; }
body.tm-theme .hero .hero-sub,
body.tm-theme .hero p {
  color: rgba(245,240,232,0.78) !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 1.02rem !important; line-height: 1.6 !important;
  max-width: 34rem; margin-left: auto !important; margin-right: auto !important;
  font-style: normal !important;
}
body.tm-theme .hero .hero-meta { font-size: 0.82rem !important; color: rgba(245,240,232,0.55) !important; margin-top: 8px; }

/* ── Sheet: the main content panel slides up over the hero ─────────── */
body.tm-theme .container,
body.tm-theme main.page-wrap {
  position: relative; z-index: 2;
  max-width: 760px !important;
  margin: -64px auto 0 !important;
  background: var(--tm-paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 50px rgba(0,0,0,0.18);
  padding: 34px 20px 56px !important;
}
body.tm-theme .container::before,
body.tm-theme main.page-wrap::before {
  content: ""; display: block; width: 40px; height: 4px; border-radius: 4px;
  background: rgba(26,26,24,0.12); margin: -16px auto 26px;
}

/* Legal-style numbered sections → cards */
body.tm-theme .section {
  background: #fff; border: 1px solid var(--tm-line); border-radius: 20px;
  padding: 20px 18px !important; margin-bottom: 14px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
body.tm-theme .section-header { margin-bottom: 10px !important; gap: 12px; }
body.tm-theme .section-num {
  width: 30px !important; height: 30px !important; min-width: 30px;
  border-radius: 10px !important;
  background: #eef4e6 !important; color: var(--tm-forest) !important;
  font-weight: 800 !important; font-size: 0.85rem !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  margin-right: 0 !important;
}
body.tm-theme .section-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.2rem !important; font-weight: 700 !important; color: var(--tm-ink) !important;
}
body.tm-theme .section-body { color: var(--tm-mid) !important; font-size: 0.96rem !important; }
body.tm-theme .section-body a { color: var(--tm-trail-deep); }

body.tm-theme .warning-box,
body.tm-theme .critical-box,
body.tm-theme .ccpa-box,
body.tm-theme .intro-callout,
body.tm-theme .intro-box,
body.tm-theme .report-box {
  border-radius: 16px !important;
  border: 1px solid rgba(232,105,26,0.25) !important;
  border-left: 4px solid var(--tm-trail) !important;
  background: #FFF6EE !important;
  box-shadow: none !important;
}

/* Safety / community guideline cards */
body.tm-theme .safety-section,
body.tm-theme .principle {
  background: #fff; border: 1px solid var(--tm-line); border-radius: 20px;
  padding: 20px 18px !important; margin-bottom: 14px !important;
}
body.tm-theme .safety-section .section-header,
body.tm-theme .principle-header { gap: 12px; }
body.tm-theme .section-icon,
body.tm-theme .principle-icon {
  width: 40px; height: 40px; border-radius: 12px; background: #eef4e6;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.tm-theme .principle-title,
body.tm-theme .safety-section .section-title { font-size: 1.25rem !important; }
body.tm-theme .divider { display: none !important; }

/* Support page */
body.tm-theme .contact-strip {
  background: transparent !important; position: relative; z-index: 3;
  margin: -84px auto 0 !important; padding: 0 20px 18px !important; color: var(--tm-cream) !important;
}
body.tm-theme .contact-strip p { color: rgba(245,240,232,0.8) !important; }
body.tm-theme .contact-strip a {
  background: linear-gradient(180deg, #F07A2C 0%, var(--tm-trail) 55%, var(--tm-trail-deep) 100%) !important;
  color: #fff !important; border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(232,105,26,0.35) !important;
}
body.tm-theme .contact-strip + .container { margin-top: 0 !important; }
body.tm-theme .faq-item { border-color: var(--tm-line) !important; }
body.tm-theme .form-card {
  background: #fff !important; border: 1px solid var(--tm-line) !important;
  border-radius: 20px !important; box-shadow: none !important;
}

/* Buttons */
body.tm-theme .submit-btn,
body.tm-theme .btn-primary,
body.tm-theme button[type="submit"] {
  background: linear-gradient(180deg, #F07A2C 0%, var(--tm-trail) 55%, var(--tm-trail-deep) 100%) !important;
  color: #fff !important; border: 0 !important; border-radius: 16px !important;
  box-shadow: 0 10px 24px rgba(232,105,26,0.3), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  font-weight: 700 !important;
}

/* Footer */
body.tm-theme > footer {
  background: var(--tm-forest-deep) !important;
  color: rgba(245,240,232,0.7) !important;
  padding: 36px 20px calc(env(safe-area-inset-bottom) + 36px) !important;
  text-align: center;
}
body.tm-theme > footer .footer-logo {
  font-family: 'Playfair Display', Georgia, serif !important; font-style: italic;
  font-weight: 700 !important; letter-spacing: 0 !important; font-size: 1.3rem !important;
  color: var(--tm-cream) !important; margin-bottom: 14px;
}
body.tm-theme > footer .footer-logo span { color: var(--tm-cream) !important; }
body.tm-theme > footer a { color: rgba(245,240,232,0.7) !important; }

@media (min-width: 720px) {
  body.tm-theme .hero { padding: 56px 24px 120px !important; }
  body.tm-theme .container,
  body.tm-theme main.page-wrap { border-radius: 28px; margin-bottom: 48px !important; padding: 40px 36px 48px !important; }
}

/* ── Reset-password page (site-header + card) ────────────────────── */
body.tm-theme .site-header {
  background: var(--tm-hero-bg) !important;
  justify-content: center !important;
  padding: calc(env(safe-area-inset-top) + 28px) 20px 110px !important;
}
body.tm-theme .site-header .brand-name {
  font-family: 'Playfair Display', Georgia, serif !important; font-style: italic;
  font-weight: 700 !important; color: var(--tm-cream) !important; letter-spacing: 0.01em !important;
}
body.tm-theme .site-header + main { position: relative; z-index: 6; }
body.tm-theme .site-header + main .card {
  margin-top: -80px !important;
  border-radius: 24px !important; border: 1px solid var(--tm-line) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18) !important; background: #fff !important;
}

/* ─────────────────────────────────────────────────────────────────────
   Homepage (body.tm-home): light-touch alignment only — the homepage
   keeps its own layout; this brings the brand bar, eyebrow pill, button
   finish and card shapes in line with the share pages.
   ───────────────────────────────────────────────────────────────────── */
body.tm-home .nav-logo-mark {
  background: #F5F0E8; border-radius: 8px; padding: 3px; height: 30px !important; width: 30px !important;
  object-fit: contain; box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
body.tm-home .nav-logo-text {
  font-family: 'Playfair Display', Georgia, serif !important; font-style: italic; font-weight: 700 !important;
  color: #F5F0E8 !important; letter-spacing: 0.01em !important;
}
body.tm-home .nav-logo-text span { color: #F5F0E8 !important; }
body.tm-home .nav-cta,
body.tm-home .btn-primary,
body.tm-home .waitlist-cta-large {
  background: linear-gradient(180deg, #F07A2C 0%, #E8691A 55%, #C25210 100%) !important;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(232,105,26,0.32), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  font-weight: 700 !important;
}
body.tm-home .hero-cta-row .btn-primary { border-radius: 18px !important; padding: 1.05rem 1.5rem !important; }
body.tm-home .btn-secondary {
  border-radius: 18px !important;
  background: rgba(245,240,232,0.08) !important; border: 1px solid rgba(245,240,232,0.18) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.tm-home .hero-eyebrow {
  display: inline-flex !important; gap: 8px !important; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(245,240,232,0.1); border: 1px solid rgba(245,240,232,0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: 'DM Sans', sans-serif !important; font-weight: 700; font-size: 0.72rem !important;
  letter-spacing: 0.12em !important; color: #F0A020 !important;
}
body.tm-home .hero-eyebrow::before,
body.tm-home .hero-eyebrow::after { display: none !important; }
body.tm-home .hero-meta-item {
  padding: 7px 12px; border-radius: 999px;
  background: rgba(245,240,232,0.08); border: 1px solid rgba(245,240,232,0.14);
}
body.tm-home .problem-card,
body.tm-home .feature-card,
body.tm-home .safety-pillar,
body.tm-home .blog-card {
  border-radius: 20px !important;
  border: 1px solid rgba(26,26,24,0.08) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 10px 30px rgba(20,36,11,0.06) !important;
}


/* ─────────────────────────────────────────────────────────────────────
   Guides + blog (pSEO pages) — opt-in with class="tm-guide" on <body>.
   Dark topo band behind the header, content on a cream sheet that
   overlaps it, rounded stat cards, dark CTA band, gradient buttons.
   ───────────────────────────────────────────────────────────────────── */
body.tm-guide { background: var(--tm-cream); color: var(--tm-ink); }
body.tm-guide h1, body.tm-guide h2, body.tm-guide h3 { color: var(--tm-forest-deep); letter-spacing: -0.01em; }
body.tm-guide a { color: var(--tm-forest); text-decoration-color: rgba(45,80,22,0.35); text-underline-offset: 3px; }
body.tm-guide a:hover { color: var(--tm-trail); }

/* Header band */
body.tm-guide .tm-header {
  background: var(--tm-hero-bg);
  padding: calc(env(safe-area-inset-top) + 16px) 0 96px;
}
body.tm-guide .tm-header:has(+ .tm-blog-hero) { padding-bottom: 8px; }
body.tm-guide .tm-logo {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  font-size: 1.25rem; color: var(--tm-cream); gap: 0;
}
body.tm-guide .tm-logo .tm-mountain { display: none; }
body.tm-guide .tm-logo:not(:has(.tm-logo-img))::before {
  content: ""; width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; margin-right: 10px;
  background: var(--tm-cream) url('/logo-nav.png') center / 26px auto no-repeat;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* Brand lockup in the forest header: symbol + live "TrailMates" text */
body.tm-guide .tm-logo-img { display: block; height: 40px; width: auto; margin-right: 10px; }
body.tm-guide .tm-nav { gap: 8px; }
body.tm-guide .tm-nav a {
  color: rgba(245,240,232,0.85); font-size: 0.85rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(245,240,232,0.16); background: rgba(245,240,232,0.07);
  transition: background .15s, color .15s;
}
body.tm-guide .tm-nav a:hover { background: rgba(245,240,232,0.16); color: var(--tm-cream); }
body.tm-guide .tm-nav a[href*="apps.apple.com"] {
  background: linear-gradient(135deg, var(--tm-trail), var(--tm-trail-deep));
  border-color: transparent; color: #fff;
}

/* Sheet */
body.tm-guide main.tm-wrap,
body.tm-guide main.tm-article-wrap {
  position: relative; z-index: 2;
  margin: -64px auto 0; padding: 30px 36px 36px;
  background: var(--tm-paper);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(20,36,11,0.14), 0 2px 6px rgba(20,36,11,0.06);
}
body.tm-guide main.tm-wrap { max-width: 880px; }
body.tm-guide main.tm-article-wrap { max-width: 780px; padding-bottom: 36px; }
body.tm-guide main.tm-wrap::before,
body.tm-guide main.tm-article-wrap::before {
  content: ""; display: block; width: 44px; height: 5px; border-radius: 99px;
  background: rgba(26,26,24,0.12); margin: -14px auto 18px;
}

/* Breadcrumb */
body.tm-guide .tm-crumb { font-size: 0.8rem; color: var(--tm-light); margin: 0 0 18px; }
body.tm-guide .tm-crumb a { color: var(--tm-mid); }
body.tm-guide .tm-crumb .sep { color: rgba(26,26,24,0.2); }

/* Hero inside the sheet */
body.tm-guide .tm-hero { border-bottom: 1px solid var(--tm-line); padding-bottom: 22px; margin-bottom: 26px; }
body.tm-guide .tm-hero h1,
body.tm-guide main.tm-article-wrap h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 700; line-height: 1.08; margin-bottom: 14px; }
body.tm-guide .tm-hero p { color: var(--tm-mid); font-size: 1.08rem; }

/* Pills + badges */
body.tm-guide .tm-pill {
  background: rgba(240,160,32,0.12); border: 1px solid rgba(240,160,32,0.32);
  color: #8A5A08; font-weight: 600; font-size: 0.78rem; padding: 5px 12px;
}
body.tm-guide .tm-badge { border-radius: 999px; padding: 4px 11px; }
body.tm-guide .tm-cat-badge { border-radius: 999px; }

/* Stat cards */
body.tm-guide .tm-stats { gap: 12px; margin: 22px 0 10px; }
body.tm-guide .tm-stat {
  background: #fff; border: 1px solid var(--tm-line); border-left: 0;
  border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(20,36,11,0.05);
}
body.tm-guide .tm-stat .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--tm-light); margin-bottom: 4px; }
body.tm-guide .tm-stat .val { font-size: 1.2rem; font-weight: 700; color: var(--tm-forest-deep); }

/* Sections */
body.tm-guide .tm-section h2,
body.tm-guide main h2 { font-size: 1.6rem; font-weight: 700; }
body.tm-guide .tm-section h2::before {
  content: ""; display: block; width: 28px; height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--tm-amber), var(--tm-trail)); margin-bottom: 12px;
}

/* Cards / callouts */
body.tm-guide .tm-card,
body.tm-guide .tm-stat-block,
body.tm-guide .tm-checklist,
body.tm-guide .tm-myths,
body.tm-guide .tm-resources,
body.tm-guide .tm-featured {
  background: #fff; border: 1px solid var(--tm-line); border-radius: 20px;
  box-shadow: 0 6px 20px rgba(20,36,11,0.06);
}
body.tm-guide .tm-tipbox,
body.tm-guide .tm-tip {
  background: linear-gradient(135deg, rgba(240,160,32,0.10), rgba(232,105,26,0.07));
  border: 1px solid rgba(232,105,26,0.22); border-left: 0; border-radius: 20px; padding: 18px 22px;
}
body.tm-guide .tm-closure { border-radius: 20px; }
body.tm-guide .tm-faq details { border-radius: 16px; }

/* Blog home hero + featured */
body.tm-guide .tm-blog-hero {
  background: var(--tm-hero-bg); color: var(--tm-cream); text-align: center;
  padding: 40px 22px 110px; margin: 0; border: 0; max-width: none;
}
body.tm-guide .tm-blog-hero h1 { color: var(--tm-cream); font-size: clamp(2.3rem, 6vw, 3.4rem); font-weight: 700; }
body.tm-guide .tm-blog-hero .sub { color: rgba(245,240,232,0.78); }
body.tm-guide .tm-featured-wrap { position: relative; z-index: 2; margin-top: -84px; }
body.tm-guide .tm-featured { padding: 32px 34px; }
body.tm-guide .tm-featured .badge,
body.tm-guide .tm-card .badge { border-radius: 999px; }
body.tm-guide .tm-filters label { border-radius: 999px; }
body.tm-guide .tm-card:hover,
body.tm-guide .tm-featured:hover { border-color: rgba(232,105,26,0.4); box-shadow: 0 12px 30px rgba(20,36,11,0.1); }

/* CTA band */
body.tm-guide .tm-cta {
  background: var(--tm-hero-bg); border: 0; color: var(--tm-cream);
  margin: 0; padding: 120px 22px 64px; margin-top: -64px;
}
body.tm-guide .tm-cta h2 { color: var(--tm-cream); font-size: clamp(1.9rem, 4.5vw, 2.5rem); font-weight: 700; }
body.tm-guide .tm-cta p { color: rgba(245,240,232,0.8); }
body.tm-guide .tm-btn {
  background: linear-gradient(135deg, var(--tm-trail), var(--tm-trail-deep));
  border: 0; border-radius: 16px; color: #fff; font-weight: 700;
  box-shadow: 0 10px 24px rgba(232,105,26,0.32);
}
body.tm-guide .tm-btn:hover { filter: brightness(1.06); color: #fff; }
body.tm-guide .tm-cta .tm-btn + .tm-btn,
body.tm-guide .tm-btn-alt {
  background: rgba(245,240,232,0.1); border: 1px solid rgba(245,240,232,0.25);
  box-shadow: none; color: var(--tm-cream);
}

/* Footer */
body.tm-guide .tm-footer { background: var(--tm-forest-deep); color: rgba(245,240,232,0.7); padding: 28px 20px 34px; }
body.tm-guide .tm-footer a { color: rgba(245,240,232,0.85); text-decoration: none; }
body.tm-guide .tm-footer a:hover { color: var(--tm-amber); }
body.tm-guide .tm-footer a.tm-social { display: inline-flex; align-items: center; gap: 5px; }
body.tm-guide .tm-footer a.tm-social svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 768px) {
  body.tm-guide .tm-header { padding-bottom: 84px; }
  body.tm-guide .tm-header-inner { gap: 12px; }
  body.tm-guide .tm-nav { gap: 6px; }
  body.tm-guide .tm-nav a { font-size: 0.78rem; padding: 6px 11px; }
  body.tm-guide main.tm-wrap,
  body.tm-guide main.tm-article-wrap { margin: -60px 10px 0; padding: 26px 20px 30px; border-radius: 24px; }
  body.tm-guide .tm-stats { grid-template-columns: repeat(2, 1fr); }
  body.tm-guide .tm-featured { padding: 24px 22px; }
}

/* Blog home: one continuous band behind header + hero (no seam) */
body.tm-guide:has(.tm-blog-hero) {
  background: var(--tm-hero-bg);
  background-size: 100% 560px; background-repeat: no-repeat;
  background-color: var(--tm-cream);
}
body.tm-guide .tm-header:has(+ .tm-blog-hero),
body.tm-guide .tm-blog-hero { background: transparent; }
@media (max-width: 768px) { body.tm-guide:has(.tm-blog-hero) { background-size: 100% 480px; } }

/* ── Black store badges (same as /group and /event pages) ─────────── */
a.tm-store {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 190px; padding: 11px 20px; border-radius: 14px;
  background: #1A1A18; color: #fff !important; text-decoration: none !important;
  border: 1px solid rgba(245,240,232,0.18);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif; text-align: left;
  transition: transform .15s ease, background .15s ease;
}
a.tm-store:hover { background: #000; color: #fff !important; transform: translateY(-1px); }
a.tm-store:active { transform: scale(0.98); }
a.tm-store svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
a.tm-store span { display: block; }
a.tm-store small { display: block; font-size: 0.66rem; opacity: 0.75; line-height: 1.1; letter-spacing: 0.01em; }
a.tm-store b { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.15; }
body.tm-guide .tm-cta-btns { gap: 12px; }
body.tm-home .hero-cta-row a.tm-store,
body.tm-home .waitlist-cta-row a.tm-store { min-width: 200px; }
@media (max-width: 768px) {
  body.tm-guide .tm-cta-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  body.tm-guide .tm-cta-btns a.tm-store { min-width: 0; padding: 11px 10px; gap: 8px; }
  body.tm-guide .tm-cta-btns a.tm-store b { font-size: 0.95rem; }
  body.tm-home .hero-cta-row a.tm-store,
  body.tm-home .waitlist-cta-row a.tm-store { width: 100%; }
}
