/* ══════════════════════════════════════════════════════════════════════
   guides.css — Aloe Yami Products
   Layers on top of site.css. MUST load second.

   Reuses the existing system rather than inventing a parallel one:
   .wrap .d .eyebrow .lede .rv .on-dark .btn* .plate .faq/.faq__item
   .track/.track__step all come from site.css unchanged. Everything here
   is new vocabulary the guides hub and guide posts need that site.css
   has no equivalent for.

   Class names are the ones AUTO_BLOG_ROUTINE.md instructs the routine to
   write. Renaming anything here means updating that file too.
   ══════════════════════════════════════════════════════════════════════ */

/* ── guide post masthead (NOT a numbered catalogue sheet — .pagehead is
   reserved for the five fixed pages; a guide is the periodical insert,
   so it gets its own lighter, undated-sheet treatment on paper) ────── */

.ghead{
  padding:calc(var(--hdr) + clamp(2.4rem,6vw,4.4rem)) 0 clamp(2rem,4vw,3rem);
  background:var(--cream);
  border-bottom:1px solid var(--line);
}
.ghead__crumbs{
  font-size:.78rem;font-weight:600;letter-spacing:.04em;
  color:var(--ink-3);margin-bottom:1.1rem;
}
.ghead__crumbs a{color:var(--ink-2);text-decoration:none}
.ghead__crumbs a:hover{color:var(--green)}
.ghead__crumbs span{opacity:.5;margin:0 .5em}
.ghead h1{max-width:20ch;margin:.9rem 0 1.1rem}
.ghead .lede{max-width:58ch}
.ghead__meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.1rem;
  margin-top:1.6rem;padding-top:1.3rem;border-top:1px dashed var(--line);
  font-size:.86rem;color:var(--ink-3);
}
.ghead__cat{
  font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  font-size:.72rem;color:var(--green);background:var(--good-bg);
  border-radius:999px;padding:.32rem .8rem;
}

/* the cover image sits below the masthead as a full-width plate */
.ghero{margin:0}
.ghero .plate{border-radius:0}

/* ── article body ─────────────────────────────────────────────────── */

.gbody{
  max-width:700px;margin:0 auto;
  padding:clamp(2.6rem,6vw,4.4rem) 0 clamp(1.6rem,3vw,2.2rem);
  font-size:1.06rem;line-height:1.72;color:var(--ink-2);
}
.gbody > * + *{margin-top:1.3rem}
.gbody h2{
  font-family:var(--ff-d);font-weight:600;
  font-size:clamp(1.5rem,3.2vw,1.9rem);line-height:1.22;
  color:var(--ink);letter-spacing:-.01em;margin-top:3rem;
}
.gbody h3{
  font-family:var(--ff-d);font-weight:600;
  font-size:clamp(1.18rem,2.2vw,1.34rem);line-height:1.3;
  color:var(--ink);margin-top:2.1rem;
}
.gbody p{margin-top:1.1rem}
.gbody strong{color:var(--ink);font-weight:650}
.gbody a{color:var(--green);text-decoration-color:var(--line-brass);text-underline-offset:3px}
.gbody a:hover{color:var(--green-md)}

/* ── the answer box: the single most important block on the page ───── */

.answer-box{
  background:linear-gradient(180deg,rgba(142,110,36,.07),rgba(142,110,36,.02));
  border:1px solid var(--line-brass);border-left:3px solid var(--brass);
  border-radius:var(--r);padding:1.3rem 1.5rem;margin-top:1.8rem !important;
  font-size:1.07rem;line-height:1.6;color:var(--ink);
}
.answer-box p{margin:0}
.answer-box p + p{margin-top:.7rem}
.answer-box .ab-label{
  display:block;font-size:.7rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--brass);margin-bottom:.55rem;
}

/* ── at a glance ──────────────────────────────────────────────────── */

.at-a-glance{
  border:1px solid var(--line);border-radius:var(--r);
  background:var(--paper);padding:.4rem 1.5rem 1.2rem;margin-top:2rem;
}
.at-a-glance .aag-h{
  font-family:var(--ff-d);font-weight:600;font-size:.94rem;
  color:var(--ink);letter-spacing:.005em;padding:1rem 0 .3rem;
}
.at-a-glance dl{margin:0}
.at-a-glance dt{
  font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-3);padding-top:.95rem;border-top:1px dashed var(--line);margin-top:.9rem;
}
.at-a-glance dd{margin:.3rem 0 0;font-size:.98rem;line-height:1.55;color:var(--ink)}

/* ── tables ───────────────────────────────────────────────────────── */

.g-table-wrap{
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  border:1px solid var(--line);border-radius:var(--r);margin-top:1.9rem;
}
.g-table{width:100%;min-width:420px;border-collapse:collapse;font-size:.94rem}
.g-table caption{
  caption-side:top;text-align:left;font-size:.72rem;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);
  padding:.9rem 1.1rem .6rem;
}
.g-table th,.g-table td{padding:.75rem 1.1rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.g-table thead th{background:var(--sand);font-family:var(--ff-d);font-weight:600;font-size:.84rem;color:var(--ink)}
.g-table tbody tr:last-child td{border-bottom:0}
.g-table tbody tr:nth-child(even) td{background:rgba(235,223,195,.28)}
.g-table td.fig,.g-table th.fig{font-family:var(--ff-d);font-weight:600;white-space:nowrap;color:var(--green)}
.g-table tfoot td{background:var(--sand);font-weight:650;color:var(--ink)}

/* ── lists ────────────────────────────────────────────────────────── */

.g-list{list-style:none;margin-top:1.5rem;padding:0}
.g-list li{position:relative;padding-left:1.7rem;margin-top:.8rem;font-size:1.02rem;line-height:1.6}
.g-list li::before{
  content:"";position:absolute;left:.2rem;top:.6rem;
  width:6px;height:6px;border-radius:1px;background:var(--brass);
}

/* ── callouts ─────────────────────────────────────────────────────── */

.g-note,.g-warn{
  border-radius:var(--r);padding:1.1rem 1.4rem;margin-top:1.9rem;
  font-size:.98rem;line-height:1.6;
}
.g-note{background:var(--paper);border:1px solid var(--line);border-left:3px solid var(--ink-3);color:var(--ink-2)}
.g-warn{background:var(--warn-bg);border:1px solid rgba(138,100,8,.28);border-left:3px solid var(--warn);color:#5C4806}
.g-note .gn-label,.g-warn .gw-label{
  display:block;font-size:.68rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;margin-bottom:.4rem;opacity:.85;
}
.g-note p,.g-warn p{margin:0}
.g-note p + p,.g-warn p + p{margin-top:.6rem}

/* the compliance disclaimer — same fixed wording every time it appears,
   visually distinct so it reads as a label, not as house copy */
.g-disclaimer{
  background:var(--sand);border-radius:var(--r-sm);
  padding:.9rem 1.2rem;margin-top:2rem;
  font-size:.82rem;line-height:1.55;color:var(--ink-2);
}
.g-disclaimer b{color:var(--ink)}

/* ── key points ───────────────────────────────────────────────────── */

.key-points{
  background:var(--green-dk);border-radius:var(--r);
  padding:1.7rem 1.8rem;margin-top:2.6rem;color:rgba(250,246,236,.82);
}
.key-points .kp-h{
  font-family:var(--ff-d);font-weight:600;font-size:1.05rem;
  color:var(--cream);margin-bottom:.9rem;
}
.key-points ul{list-style:none;margin:0;padding:0}
.key-points li{position:relative;padding-left:1.6rem;margin-top:.7rem;font-size:.98rem;line-height:1.58}
.key-points li::before{
  content:"";position:absolute;left:.1rem;top:.55rem;
  width:7px;height:7px;border-radius:50%;background:var(--brass-lt);
}
.key-points strong{color:var(--cream)}

/* ── figures ──────────────────────────────────────────────────────── */

.gfig{margin-top:2.2rem}
.gfig figcaption{margin-top:.6rem;font-size:.8rem;line-height:1.5;color:var(--ink-3)}

/* ── FAQ — reuses .faq / .faq__item from site.css verbatim; this just
   fixes the spacing when it sits inside .gbody instead of a .qgroup ── */
.gbody .faq{margin-top:1.6rem}

/* ── the closing CTA ──────────────────────────────────────────────── */

.gcta{
  margin-top:2.8rem;border-radius:var(--r-lg);
  background:linear-gradient(155deg,var(--green-md) 0%,var(--green-dk) 100%);
  padding:clamp(1.7rem,4vw,2.6rem);color:rgba(250,246,236,.82);
}
.gcta h2{color:var(--cream) !important;margin:0 0 .6rem !important;font-size:clamp(1.4rem,3vw,1.7rem)}
.gcta p{margin:0 0 1.3rem;font-size:1.02rem;line-height:1.6;max-width:52ch}
.gcta__btns{display:flex;flex-wrap:wrap;gap:.8rem}

/* ══════════════════════════════════════════════════════════════════
   GUIDES HUB (guides.html)
   ══════════════════════════════════════════════════════════════════ */

.g-filters{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.7rem}
.g-filters .filter{
  font-size:.78rem;font-weight:600;letter-spacing:.02em;
  color:var(--ink-2);background:var(--paper);border:1px solid var(--line);
  border-radius:999px;padding:.5rem 1rem;cursor:pointer;transition:all .2s ease;
}
.g-filters .filter:hover{border-color:var(--green);color:var(--green)}
.g-filters .filter.active{color:var(--cream);background:var(--green);border-color:var(--green)}

.g-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));
  gap:1.6rem;margin-top:2.3rem;
}
.g-card{
  display:flex;flex-direction:column;background:var(--paper);
  border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
  text-decoration:none;transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s var(--ease);
}
.g-card:hover{transform:translateY(-4px);border-color:var(--line-brass);box-shadow:var(--sh-md)}
.g-card .plate{border-radius:0}
.g-card__body{padding:1.15rem 1.3rem 1.4rem;display:flex;flex-direction:column;flex:1}
.g-card .gc-cat{
  font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--brass);
}
.g-card h3{
  font-family:var(--ff-d);font-weight:600;font-size:1.12rem;line-height:1.32;
  color:var(--ink);margin:.55rem 0 .5rem;letter-spacing:-.005em;
}
.g-card p{font-size:.9rem;line-height:1.55;color:var(--ink-2);margin:0 0 1rem}
.g-card .gc-foot{
  margin-top:auto;display:flex;align-items:center;justify-content:space-between;
  gap:.7rem;font-size:.74rem;color:var(--ink-3);
}
.g-card .gc-read{color:var(--green);font-weight:600}
.g-empty{grid-column:1/-1;padding:2.4rem 0;text-align:center;color:var(--ink-3);font-size:.95rem}

/* ── responsive ───────────────────────────────────────────────────── */

@media (max-width:640px){
  .gbody{font-size:1.02rem}
  .answer-box{padding:1.1rem 1.1rem}
  .at-a-glance{padding:.3rem 1.1rem 1rem}
  .key-points{padding:1.4rem 1.3rem}
  .g-grid{grid-template-columns:1fr}
}
