/* =================================================================
   LiveGood Blog
   Design language ported from the collagen lander
   (clients/websites/livegood/assets/css/styles.css)
   ================================================================= */

:root {
  --brand:        #e8472b;   /* LiveGood red/orange */
  --brand-dark:   #c8381f;
  --leaf:         #7db544;   /* leaf green accent */
  --leaf-dark:    #5e9130;
  --ink:          #1a1d1f;
  --ink-soft:     #4a5056;
  --muted:        #7a838b;
  --line:         #e7e9ec;
  --bg:           #ffffff;
  --bg-soft:      #f6f8f5;
  --bg-cream:     #fbf7f0;
  --gold:         #f5a623;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 2px 8px rgba(26,29,31,.06);
  --shadow:       0 10px 30px rgba(26,29,31,.10);
  --maxw:         1140px;
  --font:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Author display rules (e.g. .tile { display:flex }) override the UA's
   [hidden] style, which silently breaks JS filtering. Restore it globally. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 780px; }

.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--soft { background: var(--bg-soft); }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leaf-dark);
  margin-bottom: 12px;
}

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, #f1583d 0%, var(--brand) 60%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(232,71,43,.30);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(232,71,43,.40); }
.btn--sm { font-size: .9rem; padding: 10px 20px; }
.btn--ghost {
  background: #fff;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--leaf); color: var(--ink); }

.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 64px;
}
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { width: 140px; height: auto; }
.site-header__nav { display: flex; gap: 20px; margin-left: auto; }
.site-header__nav a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.site-header__nav a:hover { color: var(--brand); }
.site-header__cta { flex-shrink: 0; }

/* Hamburger: hidden on desktop, replaces nav + CTA on phones. */
.site-header__burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0; border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.site-header__burger:hover { background: var(--bg-soft); }
.site-header__burger-bar {
  display: block; height: 2.5px; width: 100%;
  background: var(--ink); border-radius: 2px;
}
.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu panel: sits under the sticky header, scrolls on its own. */
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 59;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  padding: 18px 0 32px;
}
html.menu-open { overflow: hidden; }
.mobile-menu__search {
  display: flex; gap: 8px; align-items: center;
  border: 1.5px solid var(--line); border-radius: 50px;
  padding: 4px 6px 4px 16px; margin-bottom: 14px;
  background: var(--bg-soft);
}
.mobile-menu__search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font: inherit; font-size: 1rem; color: var(--ink); outline: none;
}
.mobile-menu__search button {
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--leaf); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  display: block; padding: 14px 4px;
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu__heading {
  margin: 22px 4px 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--leaf-dark);
}
.mobile-menu__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-menu__topics a {
  padding: 8px 14px; border-radius: 50px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
}
.mobile-menu__cta { width: 100%; margin-top: 24px; }

@media (min-width: 761px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 760px) {
  .site-header__inner { gap: 10px; }
  .site-header__logo img { width: 118px; }
  .site-header__nav { display: none; }
  /* Keep the Shop CTA in the bar on phones, tightened to fit beside the burger. */
  .site-header__cta { margin-left: auto; font-size: .82rem; padding: 9px 14px; }
  .site-header__burger { display: flex; margin-left: 0; }
}
@media (max-width: 340px) {
  .site-header__cta { display: none; }
  .site-header__burger { margin-left: auto; }
}

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #fff 100%);
  padding: clamp(48px, 7vw, 90px) 0 clamp(32px, 5vw, 60px);
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 320px; object-fit: cover; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--leaf); }
.card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.card__meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.card__teaser { font-size: .92rem; color: var(--ink-soft); flex-grow: 1; }
.card__more { font-size: .88rem; font-weight: 700; color: var(--brand); }

/* ---------- Category pills + tiles ---------- */
.hero__intro { max-width: 72ch; }
.hero__brand {
  margin-top: 22px;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  background: rgba(255,255,255,.7);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 60ch;
}
.hero__slogan {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero__promise { margin: 0 0 14px; color: var(--ink-soft); }
.hero__brand .btn { margin-top: 2px; }

.browse-bar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.pill-scroller { position: relative; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Mobile: one scrollable line of pills with edge fades that appear only
   when there is more to scroll in that direction (toggled in home.js). */
@media (max-width: 760px) {
  .pill-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 6px;
  }
  .pill-row::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; white-space: nowrap; }
  .pill-scroller::before,
  .pill-scroller::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity .2s ease;
  }
  .pill-scroller::before { left: 0; background: linear-gradient(90deg, #fff 25%, rgba(255,255,255,0)); }
  .pill-scroller::after { right: 0; background: linear-gradient(270deg, #fff 25%, rgba(255,255,255,0)); }
  .pill-scroller.fade-left::before { opacity: 1; }
  .pill-scroller.fade-right::after { opacity: 1; }
}
.pill {
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--leaf); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill__count { opacity: .55; font-weight: 600; font-size: .78rem; margin-left: 2px; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--leaf); }
.tile__visual {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.tile__visual img:not(.tile__mark) { width: 100%; height: 100%; object-fit: cover; }
.tile__mark { opacity: .5; }
.tile__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex-grow: 1; }
.tile__body h2 { font-size: 1.05rem; margin: 0; flex-grow: 1; }
.tile__meta { font-size: .8rem; color: var(--muted); margin: 0; }

.cat-chip {
  display: inline-block;
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 11px;
  border-radius: 50px;
  background: var(--bg-soft);
  color: var(--ink-soft);
}
a.cat-chip:hover { color: var(--brand); }

/* Category tints (tile headers + chips) */
.tile__visual--vitamins-minerals   { background: #eaf3e0; }
.tile__visual--protein-fitness     { background: #e6eef7; }
.tile__visual--greens-superfoods   { background: #e3f0d8; }
.tile__visual--wellness-essentials { background: #fbf7f0; }
.tile__visual--immune-inflammation { background: #fdeee7; }
.tile__visual--cbd-hemp            { background: #e9f0e6; }
.tile__visual--beauty-aging        { background: #faeae8; }
.tile__visual--energy-focus        { background: #fdf3dd; }
.tile__visual--sleep-stress        { background: #ece9f6; }
.tile__visual--gut-health          { background: #e2f1ee; }
.tile__visual--weight-management   { background: #fdeedd; }

.cat-chip--vitamins-minerals   { background: #eaf3e0; color: #3f6320; }
.cat-chip--protein-fitness     { background: #e6eef7; color: #2c4c74; }
.cat-chip--greens-superfoods   { background: #e3f0d8; color: #3f6320; }
.cat-chip--wellness-essentials { background: #f4ecdd; color: #6d5426; }
.cat-chip--immune-inflammation { background: #fdeee7; color: #93401f; }
.cat-chip--cbd-hemp            { background: #e9f0e6; color: #3d5c38; }
.cat-chip--beauty-aging        { background: #faeae8; color: #8c4038; }
.cat-chip--energy-focus        { background: #fdf3dd; color: #806018; }
.cat-chip--sleep-stress        { background: #ece9f6; color: #4c4278; }
.cat-chip--gut-health          { background: #e2f1ee; color: #1f5e52; }
.cat-chip--weight-management   { background: #fdeedd; color: #8a4f1d; }

/* ---------- Pager (listing pages) ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}
.pager__btn {
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  padding: 10px 22px;
  transition: border-color .15s ease, color .15s ease;
}
a.pager__btn:hover { border-color: var(--leaf); color: var(--ink); }
.pager__btn--disabled { opacity: .4; }
.pager__label {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  min-width: 96px;
  text-align: center;
}

/* ---------- Contributor profile ---------- */
.profile-head { display: flex; gap: 24px; align-items: center; margin-top: 6px; }
.profile-head__photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.profile-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 4px; }
.profile-head__role { color: var(--ink-soft); font-weight: 600; margin: 0 0 10px; }
.profile-head__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-head__topics span {
  font-size: .76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 50px;
  background: #e3f0d8;
  color: #3f6320;
}
.profile-bio { padding-top: clamp(18px, 3vw, 28px); }
.profile-creds {
  background: var(--bg-cream);
  border: 1px solid #f0e7d8;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin: 10px 0 30px;
}
.profile-creds h2 { font-size: 1.15rem; }
.profile-creds ul { margin: 0; padding-left: 1.2em; }
.profile-creds li { margin-bottom: 6px; }
.related__count { font-weight: 600; font-size: .85rem; color: var(--muted); }

.post-meta__avatar-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-meta__byline a { color: var(--leaf-dark); }
.post-meta__byline a:hover { color: var(--brand); }

@media (max-width: 560px) {
  .profile-head { flex-direction: column; text-align: center; align-items: center; }
  .profile-head__topics { justify-content: center; }
}

/* ---------- Directory ---------- */
.directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.directory-search { margin: 0; }
.directory-search .directory-filter { width: 100%; }
.directory-filter {
  font: inherit;
  padding: 11px 18px;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  min-width: min(320px, 100%);
  background: #fff;
}
.directory-filter:focus { outline: none; border-color: var(--leaf); }
.directory-month h3 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--leaf-dark);
  margin: 28px 0 6px;
}
.directory-list { list-style: none; margin: 0; padding: 0; }
.directory-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.directory-list a { font-weight: 600; font-size: .97rem; }
.directory-list a:hover { color: var(--brand); }
.directory-list__meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.directory-empty { color: var(--muted); margin-top: 20px; }

/* ---------- Post ---------- */
.post-hero {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #fff 100%);
  padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 34px);
}
.post-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--leaf-dark); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.post-meta__byline { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.post-meta__byline strong { display: block; }
.post-meta__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.post-meta__reviewed { display: block; font-size: .82rem; color: var(--muted); }
.post-meta__facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.post-meta__facts svg { vertical-align: -2px; margin-right: 3px; }

/* Ask AI block: centered label, engine icons centered on the line below.
   Icons sit grayscale and light up on hover, like traderspost.io's row. */
.ask-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
  text-align: center;
}
.ask-ai__label { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0; }
.ask-ai__label strong { color: var(--ink); }
.ask-ai__spark { color: var(--brand); flex-shrink: 0; }
.ask-ai__list { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ask-ai__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  transition: background-color .15s;
}
.ask-ai__link img { width: 18px; height: 18px; filter: grayscale(1); opacity: .75; transition: filter .15s, opacity .15s; }
.ask-ai__link:hover, .ask-ai__link:focus-visible { background: var(--bg-soft); }
.ask-ai__link:hover img, .ask-ai__link:focus-visible img { filter: none; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.post-body { padding: clamp(24px, 4vw, 40px) 0 8px; font-size: 1.05rem; }
.post-body h2 { font-size: 1.55rem; margin-top: 1.6em; }
.post-body h3 { font-size: 1.2rem; margin-top: 1.4em; }
.post-body a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(232,71,43,.35); text-underline-offset: 3px; }
.post-body a:hover { color: var(--brand); }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1rem; }
.post-body li { margin-bottom: .35em; }
.post-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.2em 0;
}
.post-figure {
  margin: 1.4em 0 0;
}
.post-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.post-body blockquote {
  margin: 1.4em 0;
  padding: 4px 22px;
  border-left: 4px solid var(--leaf);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}
.post-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-body th { background: var(--bg-soft); }

.post-cta-inline { margin: 1.6em 0; text-align: center; }
/* .post-body a styling must not bleed into CTA buttons rendered in the body */
.post-body a.btn, .post-body a.btn:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Footer CTA ---------- */
.post-cta {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--bg-cream);
  border: 1px solid #f0e7d8;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 36px);
  margin: clamp(28px, 5vw, 44px) 0;
}
.post-cta__media { flex: 0 0 150px; }
.post-cta__media img { width: 150px; }
.post-cta__eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--leaf-dark);
  margin-bottom: 6px;
}
.post-cta__copy h2 { font-size: 1.4rem; }
.post-cta__copy > p { color: var(--ink-soft); }
.post-cta__alt { margin: 12px 0 0; font-size: .88rem; }
.post-cta__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 14px;
}
.post-cta__price-member {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.post-cta__price-member small {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.post-cta__price-retail {
  font-size: .95rem;
  color: var(--ink-soft);
  text-decoration: line-through;
}
.post-cta__alt a { color: var(--leaf-dark); font-weight: 700; }
.post-cta__alt a:hover { color: var(--brand); }

.post-cta__copy { min-width: 0; }
.post-cta .btn { white-space: normal; text-align: center; }
@media (max-width: 620px) {
  .post-cta { flex-direction: column; text-align: center; }
}

/* ---------- Related ---------- */
.related { margin-bottom: clamp(32px, 5vw, 52px); }
.related h2 { font-size: 1.3rem; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.related__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.related__card:hover { border-color: var(--leaf); transform: translateY(-2px); }
.related__card h3 { font-size: .98rem; margin-bottom: 4px; }
.related__meta { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd4d8;
  padding: clamp(40px, 6vw, 64px) 0 28px;
  margin-top: 40px;
  font-size: .92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer__grid--five { grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr; }
.site-footer__brand img { margin-bottom: 12px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__social { display: flex; gap: 14px; margin-top: 14px; align-items: center; }
/* Shared social set (white on the dark footer, leaf green on hover); every
   icon sits in the same 20px box so the set reads at one optical size. */
.site-footer__social a { color: #fff; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.site-footer__social a:hover { color: var(--leaf); }
.site-footer__social .social-icon { width: 20px; height: 20px; display: block; }
.site-footer__col h3 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer__col a:hover { color: var(--leaf); }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px;
  padding-top: 20px;
  font-size: .8rem;
  color: #9aa3ab;
}
.site-footer__legal p { max-width: 90ch; }

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Product tray (posts with a product) ---------- */
.tray {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(26,29,31,.12);
}
.tray__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding-top: 8px; padding-bottom: 8px;
}
.tray__toggle, .tray__close {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.tray__toggle:hover, .tray__close:hover { border-color: var(--leaf); }
.tray__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.tray__close { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.tray__lead {
  margin: 0;
  flex: 1 1 260px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.tray__product {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 6px 6px 6px 10px;
  border: 1px solid #f0e7d8;
  background: var(--bg-cream);
  border-radius: 50px;
}
.tray__thumb {
  width: 48px; height: 48px; object-fit: contain;
  background: #fff; border-radius: 50%;
}
.tray__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tray__name { font-size: .95rem; }
.tray__price { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray__price b { color: var(--brand-dark); font-size: .95rem; }
.tray__price s { color: var(--muted); }
.tray__buy { flex-shrink: 0; }

.tray__detail {
  border-top: 1px solid var(--line);
  max-height: min(70vh, 640px);
  overflow-y: auto;
  background: var(--bg-soft);
}
.tray__detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  padding-top: 26px; padding-bottom: 30px;
}
.tray__story, .tray__offer { min-width: 0; }
.tray__offer .btn { white-space: normal; text-align: center; }
.tray__story h2 { font-size: 1.4rem; margin-bottom: 10px; }
.tray__story p { color: var(--ink-soft); }
.tray__mission {
  margin: 14px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--leaf);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.tray__offer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.tray__offer img { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 10px; display: block; }
.tray__offer h3 { font-size: 1.15rem; }
.tray__offer p { color: var(--ink-soft); font-size: .95rem; }
.tray__offer-price b { font-size: 1.3rem; color: var(--brand-dark); }
.tray__offer-price small { color: var(--ink-soft); font-weight: 600; }
.tray__offer-price s { color: var(--muted); margin-left: 6px; }
.tray__offer-alt { margin: 10px 0 0; font-size: .9rem; }
.tray__offer-alt a { color: var(--leaf-dark); font-weight: 700; }
/* Opened: the tray fills the viewport (over the sticky header too) and the
   detail panel takes all the remaining height; the page behind stops scrolling. */
.tray--open {
  top: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
}
.tray--open .tray__inner { flex: 0 0 auto; }
.tray--open .tray__detail { flex: 1 1 auto; max-height: none; }
html.tray-open { overflow: hidden; }
/* Room for the bar so the page's last content is never hidden behind it. */
body.has-tray { padding-bottom: 88px; }

@media (max-width: 760px) {
  .tray__inner { flex-wrap: wrap; gap: 10px; min-height: 0; }
  .tray__lead { flex: 1 1 0; font-size: .85rem; order: 1; }
  .tray__toggle { order: 0; width: 36px; height: 36px; }
  .tray__close { order: 2; width: 36px; height: 36px; }
  .tray__product { order: 3; flex: 1 1 100%; padding-right: 6px; }
  .tray__meta { flex: 1; min-width: 0; }
  .tray__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tray__detail-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 18px; }
  body.has-tray { padding-bottom: 132px; }
}
