/* ============================================================
   PlantMapper — Feeding Chickens (Chickens silo)
   Pairs with plantmapper.css + ecosystem.css + garden-images.css.
   Uses the same warm hen-and-straw theme as the rest of the
   Chickens silo (body.theme-chicken), then adds the components
   this page needs: a wide feed comparison table, life-stage cards
   with protein meters, a daily feeding-schedule strip, safe-food
   and never-feed panels, a seasonal strip and treat cards.
   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 chicken-coops.css) ---- */
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);
}

/* ============================================================
   WIDE DATA TABLES (feed comparison + safe foods)
   Scroll horizontally on small screens rather than squashing.
   ============================================================ */
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.table-scroll::-webkit-scrollbar { height: 9px; }
.table-scroll::-webkit-scrollbar-thumb { background: #d9cdbd; border-radius: 999px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.data-table--wide { min-width: 880px; }
.data-table--food { min-width: 720px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table thead th {
  position: sticky; top: 0;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  /* headings wrap onto two lines so every column fits a desktop
     container without horizontal scrolling; the min-width above is
     the fallback that turns on scrolling for tablets and phones */
  white-space: normal;
  line-height: 1.25;
}
.data-table thead th:first-child { white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: rgba(246, 239, 230, .55); }
.data-table tbody tr:hover { background: var(--rose-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; color: var(--ink); }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .note { color: var(--ink-soft); font-size: .82rem; }
.data-table .pill-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  background: var(--rose-soft);
  color: var(--rose-deep);
}
.data-table .pill-tag.t-veg   { background: var(--green-soft); color: var(--green-deep); }
.data-table .pill-tag.t-fruit { background: #f6e2ea; color: #8a4260; }
.data-table .pill-tag.t-herb  { background: #e6efdc; color: #4d6a37; }
.table-hint {
  margin: 8px 0 0;
  font-size: .78rem;
  color: var(--muted);
}
.table-hint svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }

/* ============================================================
   LIFE-STAGE CARDS with protein meter
   ============================================================ */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}
.stage-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .25s ease;
}
.stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.stage-head { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.stage-head span {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.stage-head span svg { width: 19px; height: 19px; }
.stage-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.stage-age {
  margin: 0 0 12px 44px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--rose-deep);
}
.stage-card > p { margin: 0 0 12px; font-size: .88rem; color: var(--ink-soft); }

.protein-meter { margin: 0 0 12px; }
.protein-bar {
  height: 9px; border-radius: 999px;
  background: var(--bg-cream); overflow: hidden;
}
.protein-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #d0a24f, #b06a3e);
}
.protein-label {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: .74rem; font-weight: 700; color: var(--rose-deep);
}
.protein-label em { font-style: normal; color: var(--muted); font-weight: 600; }

/* Normal inline text flow, NOT flex — a flex row would split the bold
   lead-in and the sentence that follows it into separate columns. */
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-list li {
  position: relative;
  padding: 7px 0 7px 15px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.stage-list li b { color: var(--ink); font-weight: 600; }
.stage-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

/* ============================================================
   DAILY FEEDING SCHEDULE STRIP
   ============================================================ */
.day-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.day-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 20px;
  box-shadow: var(--shadow-1);
}
.day-card .day-ic {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.day-card .day-ic svg { width: 19px; height: 19px; }
.day-card.d-morning .day-ic { background: #fbeecd; color: #8a6a2e; }
.day-card.d-afternoon .day-ic { background: #e4efdb; color: #4d6a37; }
.day-card.d-evening .day-ic { background: #e0dcef; color: #55497e; }
.day-card.d-water .day-ic { background: #dbeaf1; color: #3f6a83; }
.day-card.d-treats .day-ic { background: var(--rose-soft); color: var(--rose-deep); }
.day-card.d-season .day-ic { background: #f0ddc7; color: #8a4f2e; }
.day-time {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 2px;
}
.day-card h3 { margin: 0 0 6px; font-family: var(--font-serif); font-weight: 600; font-size: 1.04rem; }
.day-card p { margin: 0; font-size: .86rem; color: var(--ink-soft); }

/* ============================================================
   NEVER-FEED WARNING PANEL
   ============================================================ */
.danger-panel {
  border: 1px solid #e4c3b2;
  border-left: 4px solid #a8452c;
  background: linear-gradient(180deg, #fdf1ec 0%, var(--bg-elev) 62%);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-1);
}
.danger-head { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.danger-head span {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: #f6ded4; color: #a8452c;
  display: inline-flex; align-items: center; justify-content: center;
}
.danger-head span svg { width: 20px; height: 20px; }
.danger-head h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.16rem; color: #7d3320; }
.danger-panel > p { margin: 0 0 18px; font-size: .9rem; color: var(--ink-soft); }
.danger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 12px;
}
.danger-card {
  background: var(--bg-elev);
  border: 1px solid #eddbd1;
  border-radius: var(--radius-sm, 12px);
  padding: 14px 16px;
}
.danger-card h4 {
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-serif); font-weight: 600; font-size: .98rem; color: #7d3320;
}
.danger-card h4 .x {
  flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #f6ded4; color: #a8452c;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 800;
}
.danger-card p { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.danger-foot {
  margin: 18px 0 0; padding-top: 14px;
  border-top: 1px solid #eddbd1;
  font-size: .86rem; color: var(--ink-soft);
}
.danger-foot b { color: #7d3320; }

/* ============================================================
   SEASONAL STRIP
   ============================================================ */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.season-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 19px;
  box-shadow: var(--shadow-1);
}
.season-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.season-head span {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}
.season-head span svg { width: 17px; height: 17px; }
.season-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.06rem; }
.season-card.s-spring .season-head span { background: #e4efdb; color: #4d6a37; }
.season-card.s-summer .season-head span { background: #fbeecd; color: #8a6a2e; }
.season-card.s-autumn .season-head span { background: #f6e0cf; color: #8a4f2e; }
.season-card.s-winter .season-head span { background: #dde8ef; color: #3f5c72; }
.season-card p { margin: 8px 0; font-size: .86rem; color: var(--ink-soft); }
.season-card ul { margin: 0; padding-left: 17px; font-size: .84rem; color: var(--ink-soft); }
.season-card li { margin-bottom: 5px; }
.season-key {
  display: inline-block; margin-bottom: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--rose-deep);
  background: var(--bg-cream); border-radius: 999px; padding: 2px 9px;
}

/* ============================================================
   TREAT CARDS
   ============================================================ */
.treat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
}
.treat-card {
  display: flex;            /* so the "how often" line sits flush at the */
  flex-direction: column;   /* bottom of every card in a row             */
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 19px;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.treat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--rose); }
.treat-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.treat-head span {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  background: var(--rose-soft); color: var(--rose-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.treat-head span svg { width: 17px; height: 17px; }
.treat-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem; }
.treat-card p { margin: 0 0 9px; font-size: .85rem; color: var(--ink-soft); }
.treat-when {
  display: block;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: .76rem; font-weight: 600; color: var(--rose-deep);
}

/* ============================================================
   SHARED COMPONENTS reused across the Chickens silo — kept
   identical to chicken-coops.css so the silo reads as one set.
   ============================================================ */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.scheme {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  box-shadow: var(--shadow-1);
}
.scheme h3 { margin: 0 0 3px; font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; }
.scheme .scheme-meta {
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--rose-deep); margin: 0 0 11px;
}
.scheme ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .9rem; }
.scheme li { margin-bottom: 6px; }
.scheme li b { color: var(--ink); font-weight: 600; }
.scheme .scheme-note {
  margin: 12px 0 0; padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-soft);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.link-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 17px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--rose); }
.link-card .lc-ic { width: 26px; height: 26px; color: var(--rose-deep); margin-bottom: 4px; }
.link-card .lc-ic svg { display: block; width: 100%; height: 100%; }
.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; color: var(--ink-soft); }
.link-card .lc-go { font-size: .82rem; font-weight: 600; color: var(--rose-deep); margin-top: 2px; }
.link-card .lc-soon {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--earth); background: var(--bg-cream);
  border-radius: 999px; padding: 2px 8px; align-self: flex-start; margin-top: 2px;
}

.callout-tip {
  background: var(--rose-soft);
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 15px 20px;
}
.callout-tip p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.callout-tip p strong, .callout-tip p b { color: var(--rose-deep); font-weight: 600; }

.cost-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 4px;
  font-size: .92rem; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.cost-table th, .cost-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.cost-table thead th {
  background: var(--rose-soft); color: var(--rose-deep); font-weight: 700;
  font-size: .8rem; letter-spacing: .03em; text-transform: uppercase;
}
.cost-table td:last-child, .cost-table th:last-child { text-align: right; }
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table tfoot td { font-weight: 700; color: var(--ink); background: var(--bg-cream); }

/* ---- narrow-phone hero guard ----
   .eco-hero--photo .eco-hero-inner uses a `1fr` track, whose automatic
   minimum is min-content. The hero disclaimer is a flex row of inline
   links, so on a page with several of them its min-content width can
   exceed a small phone viewport and stretch the whole hero panel.
   minmax(0,1fr) caps the track, and letting the disclaimer wrap keeps
   the text inside the frosted panel. Scoped to this page only. */
.eco-hero--photo .eco-hero-inner { grid-template-columns: minmax(0, 1fr); }
.eco-hero--photo .eco-hero-inner > div { max-width: min(528px, 100%); }
.eco-hero--photo .disclaimer { flex-wrap: wrap; }

/* ---- FAQ / disclosure notes use <h3> here for a correct H1–H4
        outline, so mirror the shared .compliance .note h4 styling
        exactly — the notes look identical to every other page. ---- */
.compliance .note h3 {
  margin: 0 0 5px;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-family: inherit;
  font-weight: 700;
}

/* ---- HARD GUARD — belt and braces.
   Nothing may ever paint a decorative pseudo-element on top of a
   photograph on this page. Photographs only. ---- */
.gt-gallery figure::before, .gt-gallery figure::after,
.gt-feature::before, .gt-finished::before { content: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Six-card sections sit as an even 3 + 3 on desktop rather than an
   awkward 4 + 2 with a lone card stranded on the second row. */
@media (min-width: 980px) {
  .stage-grid, .day-strip, .treat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 861px) and (max-width: 979px) {
  .stage-grid, .day-strip, .treat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .data-table { font-size: .82rem; }
  .data-table th, .data-table td { padding: 9px 11px; }
  .danger-panel { padding: 20px 18px; }
  .stage-age { margin-left: 0; }
}
@media (max-width: 480px) {
  .day-strip, .treat-grid, .stage-grid { grid-template-columns: 1fr; }
  .danger-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-card, .treat-card, .link-card { transition: none; }
  .stage-card:hover, .treat-card:hover, .link-card:hover { transform: none; }
}
