/* ============================================================
   Blog — editorial layer for blog.html + /blog-*.html posts
   Palette & type inherited from style.css (:root vars)
   ============================================================ */

/* ---------- shared page rhythm ---------- */
.explore,
.blog-body,
.blog-index-body {
  padding: clamp(58px, 7vw, 104px) 0 10px;
}
.blog-index-body { padding-top: clamp(34px, 4vw, 54px); }

/* ---------- home teaser (index) ---------- */
.explore .section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(30px, 4vw, 46px); }
.explore .eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 12px;
}
.explore .all-guides { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 40px); }

/* ---------- card grid (index + related) ---------- */
.bgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 20px;
}
.bgrid.tight { gap: 16px; }

.bcard {
  position: relative;
  display: flex; flex-direction: column; gap: 11px;
  padding: 25px 24px 21px;
  background: linear-gradient(180deg, var(--moss) 0%, rgba(18, 31, 24, 0.55) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.bcard:hover { border-color: rgba(196, 162, 86, 0.45); transform: translateY(-3px); }
.bcard:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.bcard .btags { display: flex; flex-wrap: wrap; gap: 8px; }
.btag {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); border: 1px solid rgba(196, 162, 86, 0.35);
  padding: 4px 10px; border-radius: 999px;
}
.bcard h3, .bcard h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.32rem; line-height: 1.24; color: var(--parchment); margin: 0;
}
.bcard .dek { color: var(--sage); font-size: 0.93rem; line-height: 1.62; margin: 0; }
.bcard .go {
  margin-top: auto; padding-top: 8px;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass);
}
.bcard .go::after { content: " \2192"; }

/* featured card — the master guide */
.bcard.feat {
  grid-column: 1 / -1;
  min-height: 300px;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
}
.bcard.feat .feat-media { position: absolute; inset: 0; z-index: 0; }
.bcard.feat .feat-media img { width: 100%; height: 100%; object-fit: cover; }
.bcard.feat .feat-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6, 12, 9, 0.92) 0%, rgba(6, 12, 9, 0.55) 60%, rgba(6, 12, 9, 0.35) 100%);
}
.bcard.feat > * { position: relative; z-index: 2; }
.bcard.feat h3, .bcard.feat h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); max-width: 640px; }
.bcard.feat .dek { max-width: 560px; font-size: 1rem; color: rgba(234, 229, 217, 0.85); }
.bcard.feat .btag { background: rgba(6, 12, 9, 0.5); }

/* ---------- article shell ---------- */
.blog-wrap { max-width: 780px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 26px); }

.blog-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--sage);
  margin: 22px 0 4px;
}
.blog-meta .dot { color: var(--brass); }

/* ---------- long-form prose ---------- */
.prose { padding-top: 8px; }
.prose > *:first-child { margin-top: 0; }

.prose p {
  margin: 0 0 1.15em;
  font-size: 1.02rem; line-height: 1.78;
  color: rgba(234, 229, 217, 0.82);
}
.prose p.lead {
  font-size: 1.16rem; line-height: 1.7; color: var(--parchment);
}
.prose h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem); line-height: 1.25;
  color: var(--parchment);
  margin: 2.1em 0 0.7em;
}
.prose h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 1.06rem; letter-spacing: 0.02em;
  color: var(--brass);
  margin: 1.8em 0 0.55em;
}
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li {
  margin-bottom: 0.55em; line-height: 1.7;
  color: rgba(234, 229, 217, 0.82);
}
.prose li::marker { color: var(--brass); }
.prose strong { color: var(--parchment); font-weight: 600; }

/* ---------- inline editorial figures ---------- */
.pfig { margin: 2.1em 0; }
.pfig img {
  display: block; width: 100%; height: auto;
  max-height: 620px; object-fit: cover; object-position: center;
  border-radius: 14px; border: 1px solid var(--line);
}
.pfig figcaption {
  margin-top: 11px;
  font-size: 0.87rem; line-height: 1.62;
  color: rgba(234, 229, 217, 0.72);
}
.pfig .credit {
  display: block; margin-top: 5px;
  font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--sage);
}
.pfig .credit a { color: var(--brass); text-decoration: none; }
.pfig .credit a:hover { color: var(--brass-hi); text-decoration: underline; }

/* hero photo attribution (CC BY / BY-SA requirement) */
.hero-credit {
  position: absolute; z-index: 3;
  left: clamp(16px, 4vw, 42px); bottom: 13px;
  margin: 0; font-size: 0.7rem; letter-spacing: 0.05em;
  color: rgba(234, 229, 217, 0.5);
}
.hero-credit a { color: rgba(214, 183, 108, 0.7); text-decoration: none; }
.hero-credit a:hover { color: var(--brass-hi); }
@media (max-width: 720px) {
  .hero-credit { font-size: 0.6rem; bottom: 9px; max-width: 60vw; }
}

.prose a {
  color: var(--brass-hi); text-decoration: underline;
  text-decoration-color: rgba(196, 162, 86, 0.4); text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--brass); }
/* brass CTA buttons inside prose must keep dark label + no underline
   (defeats .prose a — otherwise gold text on brass background = invisible) */
.prose a.btn-brass {
  color: var(--pine); text-decoration: none;
}

.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display); font-size: 1.12rem; font-style: italic;
  line-height: 1.6; color: var(--parchment);
}

/* fact callout inside prose */
.callout {
  margin: 1.6em 0; padding: 18px 20px;
  background: rgba(196, 162, 86, 0.07);
  border: 1px solid rgba(196, 162, 86, 0.28);
  border-radius: 14px;
}
.callout p { margin: 0; font-size: 0.95rem; color: rgba(234, 229, 217, 0.88) !important; }
.callout p + p { margin-top: 0.6em; }
.callout strong { color: var(--brass-hi); }

/* ---------- mid-article conversion box ---------- */
.midcta {
  margin: 2em 0; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(196, 162, 86, 0.10), rgba(196, 162, 86, 0.03));
  border: 1px solid rgba(196, 162, 86, 0.35);
  border-radius: 16px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.midcta p {
  margin: 0; flex: 1 1 300px;
  font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5;
  color: var(--parchment) !important;
}

/* ---------- AdSense slots (homepage + blog articles) ----------
   The wrapper is empty until js/main.js has both consent and a configured ad
   unit, so non-adblocked readers never see a blank hole. Once the <ins> exists
   the min-height reserves the 250/280px the responsive unit usually needs;
   AdSense marks it filled/unfilled and we collapse the unfilled ones. */
.ad-slot {
  margin: 2.4em 0;
  padding: 0;
  min-width: 0;
  text-align: center;
  overflow: hidden;
}
.ad-slot:empty { display: none; }
.ad-slot::before {
  content: "Advertisement";
  display: block;
  margin-bottom: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234, 229, 217, 0.42);
}
.ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 250px;
}
.ad-slot ins.adsbygoogle[data-ad-status="filled"] { min-height: 0; }
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none; }
.ad-slot[hidden] { display: none; }

/* homepage unit: centred column between the reviews and the blog teaser */
.home-ad { max-width: 970px; margin: 0 auto; padding: 0 24px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 13px; margin-top: 6px; }
.faq-item {
  background: var(--moss);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.faq-item h3 {
  margin: 0 0 8px; font-family: var(--font-body); font-weight: 600;
  font-size: 1.01rem; line-height: 1.45; color: var(--parchment);
}
.faq-item p { margin: 0; font-size: 0.95rem; line-height: 1.68; color: rgba(234, 229, 217, 0.78); }

/* ---------- related + end matter ---------- */
.related { padding: clamp(46px, 6vw, 74px) 0 0; }
/* 780px article shell fits exactly 3 cards per row (295px min would orphan the 3rd) */
.related .bgrid { grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); }
.related h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.85rem); color: var(--parchment); margin: 0 0 24px; text-align: center; }

/* ---------- blog index intro ---------- */
.blog-intro { max-width: 760px; margin: 0 auto; }
.blog-intro p { font-size: 1.04rem; line-height: 1.78; color: rgba(234, 229, 217, 0.82); margin: 0 0 1.1em; }
.blog-intro a { color: var(--brass-hi); text-decoration: underline; text-decoration-color: rgba(196, 162, 86, 0.4); text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .bgrid { grid-template-columns: 1fr; }
  .bcard.feat { min-height: 260px; }
  .midcta { flex-direction: column; align-items: flex-start; }
  .ad-slot ins.adsbygoogle { min-height: 280px; }
}
