/* ============================================================
   PlantMapper — Chickens hub (silo landing page)
   Pairs with plantmapper.css + ecosystem.css + coming-soon.css
   + garden-images.css.

   Same warm hen-and-straw theme as the eleven Chickens topic
   pages (body.theme-chicken), and it reuses their component
   vocabulary — .section / .section-head / .eyebrow, .link-grid
   / .link-card, .etsy-cta, .compliance / .note — so the hub
   reads as the front door of the same set rather than a
   different template.

   The hero is the shared "PlantMapper Hero Glass" standard
   (.cs-hero--photo from coming-soon.css): photograph first, a
   frosted warm-cream panel over it, untouched here.

   Adds five hub-only components: the feature-card grid, the
   statistics strip, the "why keep chickens" split, the getting-
   started timeline and the badge row.

   Photographs only — no illustration, motif or overlay is ever
   painted on top of an image on this page.
   Does not modify any shared stylesheet.
   ============================================================ */


/* ---- warm hen-and-straw theme (matches the topic pages) ----- */
body.theme-chicken {
  --rose:      #B06A3E;   /* warm hen terracotta accent            */
  --rose-deep: #8A4F2E;   /* deep russet — text, icons, rules      */
  --rose-soft: #F6E7DA;   /* pale straw wash                       */
  --bg-cream:  #F6EFE6;   /* warm straw cream                      */
  background:
    radial-gradient(1200px 660px at 84% -12%, #f3e6d6 0%, transparent 58%),
    radial-gradient(960px 560px at -8% 2%, #eef0df 0%, transparent 56%),
    var(--bg);
}

.hub-main { padding-top: 8px; }
.hub-page .section { margin: 54px 0; }
.hub-page .section:first-child { margin-top: 34px; }


/* ============================================================
   HERO additions — the glass panel itself is left exactly as
   the shared standard defines it. These only add breathing room
   and the small meta strip beneath the buttons.
   ============================================================ */
.hub-hero { padding: clamp(56px, 9vw, 104px) 24px; }
.hub-hero .cs-hero-inner { max-width: 668px; }
.hub-hero .floral-rule { margin: 0 auto 14px; justify-content: center; }
.hub-hero h1 { margin-bottom: .55rem; }
.hub-hero .cs-hero-lead { margin-bottom: 1.9rem; max-width: 54ch; }
.hub-hero .cs-hero-actions { gap: .6rem .6rem; }
/* three buttons, one tidy row on anything wider than a phone */
.hub-hero .cs-hero-actions .btn {
  padding: .66rem 1.15rem;
  font-size: .92rem;
  white-space: nowrap;
}

.hub-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(74, 122, 79, .22);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #33493b;
}
.hub-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hub-hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8a4f2e;
}


/* ============================================================
   1. FEATURE CARDS
   ============================================================ */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
}
.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .28s ease, border-color .22s ease;
}
.hub-card:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
/* a soft straw wash that fades up on hover — behind the content, never over a photo */
.hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--rose-soft) 0%, transparent 62%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.hub-card > * { position: relative; }
.hub-card:hover,
.hub-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--rose);
}
.hub-card:hover::before,
.hub-card:focus-within::before { opacity: 1; }

.hub-ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  transition: background .22s ease, color .22s ease, transform .28s ease;
}
.hub-ic svg { width: 24px; height: 24px; display: block; }
.hub-card:hover .hub-ic,
.hub-card:focus-within .hub-ic {
  background: var(--rose-deep);
  color: #fff;
  transform: rotate(-4deg) scale(1.04);
}

.hub-card h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--ink);
}
.hub-card p {
  margin: 0;
  font-size: .89rem;
  line-height: 1.62;
  color: var(--ink-soft);
}
.hub-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--rose-deep);
}
.hub-go svg {
  width: 15px; height: 15px;
  transition: transform .22s ease;
}
.hub-card:hover .hub-go svg,
.hub-card:focus-within .hub-go svg { transform: translateX(4px); }


/* ============================================================
   2. GUIDES LIST — the silo's shared link-card, with a slightly
      roomier grid and a warmer hover than the topic pages use.
   ============================================================ */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 14px;
}
.link-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease, background .2s ease;
}
.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--rose);
  background: var(--bg-cream);
}
.link-card:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.link-card .lc-ic {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--rose-deep);
  margin-bottom: 3px;
  transition: transform .25s ease;
}
.link-card .lc-ic svg { display: block; width: 100%; height: 100%; }
.link-card:hover .lc-ic { transform: translateY(-2px) scale(1.06); }
.link-card .lc-name { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; color: var(--ink); }
.link-card .lc-desc { font-size: .84rem; line-height: 1.55; color: var(--ink-soft); }
.link-card .lc-go {
  font-size: .82rem; font-weight: 600; color: var(--rose-deep); margin-top: 4px;
  transition: letter-spacing .2s ease;
}
.link-card:hover .lc-go { letter-spacing: .012em; }


/* ============================================================
   3. STATISTICS STRIP
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.stat {
  background: var(--bg-elev);
  padding: 26px 22px 24px;
  text-align: center;
}
.stat-num {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin: 9px 0 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
}
.stat-note {
  margin: 7px auto 0;
  max-width: 26ch;
  font-size: .82rem;
  line-height: 1.55;
  /* --muted is only 4.04:1 on white — use --ink-soft (7.9:1) so the
     supporting line clears WCAG AA at this size */
  color: var(--ink-soft);
}

.hub-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}
.hub-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border: 1px solid rgba(176, 106, 62, .22);
  border-radius: 999px;
}
.hub-badges .hb-ic { width: 16px; height: 16px; display: block; }
.hub-badges .hb-ic svg { display: block; width: 100%; height: 100%; }


/* ============================================================
   4. WHY KEEP CHICKENS
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: start;
}
.why-list { display: grid; gap: 14px; }
.why-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .26s ease, border-color .2s ease;
}
.why-item:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-2);
  border-color: var(--rose);
}
.why-ic {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--rose-soft);
  color: var(--rose-deep);
}
.why-ic svg { width: 23px; height: 23px; display: block; }
.why-item h3 {
  margin: 1px 0 4px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink);
}
.why-item p { margin: 0; font-size: .89rem; line-height: 1.65; color: var(--ink-soft); }
.why-item a { color: var(--rose-deep); font-weight: 600; }

.why-figure {
  margin: 0;
  align-self: start;          /* never stretch to the height of the list beside it */
  position: sticky;
  top: 92px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--rose-soft);
}
.why-figure img {
  display: block;
  width: 100%;
  height: auto;               /* beat the presentational height attribute */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .6s ease;
}
.why-figure:hover img { transform: scale(1.04); }
.why-figure figcaption {
  padding: 12px 16px 14px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-figure { position: static; }
  .why-figure img { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .hub-hero .cs-hero-actions .btn { white-space: normal; }
}


/* ============================================================
   5. GETTING-STARTED TIMELINE
   ============================================================ */
.tl {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 16px;
}
/* the connecting rail, drawn behind the dots */
.tl::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--rose) 0%, rgba(176, 106, 62, .22) 100%);
  border-radius: 2px;
}
.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tl-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2px solid var(--rose);
  color: var(--rose-deep);
  box-shadow: var(--shadow-1);
  transition: background .24s ease, color .24s ease, transform .24s ease;
}
.tl-dot svg { width: 22px; height: 22px; display: block; }
.tl-body {
  padding: 16px 20px 17px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .26s ease, border-color .2s ease;
}
.tl-step:hover .tl-dot { background: var(--rose-deep); color: #fff; transform: scale(1.06); }
.tl-step:hover .tl-body { transform: translateX(3px); box-shadow: var(--shadow-2); border-color: var(--rose); }
.tl-n {
  margin: 0 0 3px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.tl-body h3 {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.tl-body p { margin: 0; font-size: .89rem; line-height: 1.65; color: var(--ink-soft); }
.tl-go {
  display: inline-block;
  margin-top: 9px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--rose-deep);
  text-decoration: none;
}
.tl-go:hover { text-decoration: underline; }

/* steps reveal as they scroll into view; see chickens.js */
.tl[data-tl-anim] .tl-step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.tl[data-tl-anim] .tl-step.is-in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .tl::before { left: 19px; }
  .tl-step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .tl-dot { width: 40px; height: 40px; }
  .tl-dot svg { width: 19px; height: 19px; }
}


/* ============================================================
   6. FAQ PREVIEW — mirrors the topic pages' expandable notes
   ============================================================ */
.compliance .note h3 {
  margin: 0;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-family: inherit;
  font-weight: 700;
}
.faq-list { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); align-items: start; }
.faq-list .note { padding-top: 0; padding-bottom: 0; }
.faq-list .note > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
}
.faq-list .note > summary::-webkit-details-marker { display: none; }
.faq-list .note > summary:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.faq-list .note-chev {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  margin-top: 2px;
  color: var(--rose-deep);
  transition: transform .18s ease;
}
.faq-list .note-chev svg { display: block; width: 100%; height: 100%; }
.faq-list .note[open] .note-chev { transform: rotate(180deg); }
.faq-list .note > p { margin: 0; padding-bottom: 16px; font-size: .88rem; line-height: 1.68; }
.faq-list .note > p a { color: var(--rose-deep); font-weight: 600; }
.faq-list .note[open] { background: var(--bg-elev); }


/* ============================================================
   7. CLOSING CTA — shared .etsy-cta, chicken-themed image well
   ============================================================ */
.etsy-cta .kit-shot { border-radius: var(--radius); overflow: hidden; }
.etsy-cta .kit-cover { display: block; width: 100%; height: auto; object-fit: cover; }


/* ============================================================
   HARD GUARD — nothing may ever paint a decorative pseudo-element
   on top of a photograph on this page. (This is the bug Matt
   reported on Best Egg Laying Breeds; it must not come back.)
   ============================================================ */
.why-figure::before, .why-figure::after,
.why-figure img + *,
.etsy-cta .kit-shot::before, .etsy-cta .kit-shot::after { content: none !important; background: none !important; }


/* ============================================================
   MOTION & PRINT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hub-card, .hub-card::before, .hub-ic, .hub-go svg,
  .link-card, .link-card .lc-ic, .link-card .lc-go,
  .why-item, .why-figure img, .tl-dot, .tl-body,
  .faq-list .note-chev { transition: none !important; }
  .tl[data-tl-anim] .tl-step { opacity: 1; transform: none; transition: none; }
  .hub-card:hover, .why-item:hover, .link-card:hover,
  .tl-step:hover .tl-body, .tl-step:hover .tl-dot { transform: none; }
  .why-figure:hover img { transform: none; }
}

@media print {
  .hub-hero { background: none; color: var(--ink); padding: 0 0 18px; }
  .hub-hero .cs-hero-inner { background: none; box-shadow: none; border: 0; backdrop-filter: none; }
  .cs-hero-actions, .hub-badges, .hub-go { display: none !important; }
  .hub-card, .link-card, .why-item, .tl-body, .stat { box-shadow: none; break-inside: avoid; }
  .faq-list .note > p { display: block !important; }
}
