/* ============================================================
   PlantMapper — Winter Care (Chickens silo)
   Pairs with plantmapper.css + ecosystem.css + garden-images.css.
   Same warm hen-and-straw theme as the rest of the Chickens silo
   (body.theme-chicken), and the same component set as
   chicken-health.css so the two pages read as one silo: severity
   pills, emergency / advice panels, ailment and inspection cards,
   wide data tables, a numbered sequence, an enrichment grid and
   printable seasonal checklists.
   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 (symptom triage + parasite comparison)
   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--mid  { min-width: 760px; }
.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; }
.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; }

/* ---- urgency pills used inside the triage table and elsewhere ---- */
.sev {
  display: inline-block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.sev-watch { background: #e9efdc; color: #4d6a37; }   /* monitor at home   */
.sev-soon  { background: #fbeecd; color: #8a6a2e; }   /* vet within a day  */
.sev-vet   { background: #f0ddc7; color: #8a4f2e; }   /* vet appointment   */
.sev-now   { background: #f6ded4; color: #a8452c; }   /* urgent / emergency*/

/* ============================================================
   HEAD-TO-TOE INSPECTION CARDS
   ============================================================ */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}
.check-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;
}
.check-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.check-head { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.check-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;
}
.check-head span svg { width: 19px; height: 19px; }
.check-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.check-what {
  margin: 0 0 12px 44px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--rose-deep);
}
.check-card > p { margin: 0 0 11px; font-size: .88rem; color: var(--ink-soft); }

/* Normal inline text flow, NOT flex — a flex row would split the bold
   lead-in and the sentence that follows it into separate columns. */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-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);
}
.check-list li b { color: var(--ink); font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rose);
}
.check-list li.bad::before { background: #a8452c; }

/* ============================================================
   NORMAL vs ABNORMAL two-column comparison
   ============================================================ */
.norm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.norm-col {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
}
.norm-col.is-good { border-left: 4px solid #6d8a4f; }
.norm-col.is-bad  { border-left: 4px solid #a8452c; }
.norm-col h3 {
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem;
}
.norm-col.is-good h3 { color: #3f5c31; }
.norm-col.is-bad  h3 { color: #7d3320; }
.norm-col h3 .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .74rem; font-weight: 800;
}
.norm-col.is-good h3 .tick { background: #e2ecd6; color: #3f5c31; }
.norm-col.is-bad  h3 .tick { background: #f6ded4; color: #a8452c; }
.norm-col > p { margin: 0 0 12px; font-size: .87rem; color: var(--ink-soft); }
.norm-col ul { margin: 0; padding-left: 18px; font-size: .87rem; color: var(--ink-soft); }
.norm-col li { margin-bottom: 7px; }
.norm-col li b { color: var(--ink); font-weight: 600; }

/* ============================================================
   EMERGENCY / VETERINARY ALERT PANELS
   .danger-panel  = red, "act now"
   .vet-panel     = amber, "this needs a vet"
   ============================================================ */
.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; }

.vet-panel {
  border: 1px solid #e6d5ab;
  border-left: 4px solid #b08a3e;
  background: linear-gradient(180deg, #fbf4e4 0%, var(--bg-elev) 62%);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-1);
}
.vet-head { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.vet-head span {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: #f7ecd0; color: #866223;
  display: inline-flex; align-items: center; justify-content: center;
}
.vet-head span svg { width: 19px; height: 19px; }
.vet-head h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem; color: #6f5219; }
.vet-panel p { margin: 0 0 9px; font-size: .89rem; color: var(--ink-soft); }
.vet-panel p:last-child { margin-bottom: 0; }
.vet-panel b, .vet-panel strong { color: #6f5219; font-weight: 700; }
.vet-panel ul { margin: 0 0 4px; padding-left: 18px; font-size: .88rem; color: var(--ink-soft); }
.vet-panel li { margin-bottom: 6px; }

/* ============================================================
   AILMENT CARDS (respiratory, parasites, crop, disease…)
   ============================================================ */
.ail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.ail-card {
  display: flex; flex-direction: column;
  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, border-color .2s ease;
}
.ail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--rose); }
.ail-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
}
.ail-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem; }
.ail-card > p { margin: 0 0 10px; font-size: .87rem; color: var(--ink-soft); }
.ail-row {
  margin: 0; padding: 9px 0 0;
  border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--ink-soft); line-height: 1.5;
}
.ail-row + .ail-row { margin-top: 8px; }
.ail-row b {
  display: block;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--rose-deep); margin-bottom: 2px;
}
.ail-card .ail-foot { margin-top: auto; }

/* ============================================================
   NUMBERED SEQUENCE (quarantine / isolation procedure)
   ============================================================ */
.step-list { list-style: none; counter-reset: pmstep; margin: 0; padding: 0; display: grid; gap: 12px; }
.step-list li {
  counter-increment: pmstep;
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 60px;
  box-shadow: var(--shadow-1);
  font-size: .88rem; color: var(--ink-soft); line-height: 1.55;
}
.step-list li::before {
  content: counter(pmstep);
  position: absolute; left: 17px; top: 15px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--rose-soft); color: var(--rose-deep);
  display: grid; place-items: center;
  font-size: .84rem; font-weight: 800;
}
.step-list li h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}

/* ============================================================
   FIRST-AID KIT GRID
   ============================================================ */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
}
.kit-item {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
  box-shadow: var(--shadow-1);
}
.kit-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.kit-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;
}
.kit-head span svg { width: 17px; height: 17px; }
.kit-item h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1rem; }
.kit-item p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

/* ============================================================
   PRINTABLE-STYLE CHECKLIST
   ============================================================ */
.tick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.tick-col {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 21px;
  box-shadow: var(--shadow-1);
}
.tick-col h3 {
  margin: 0 0 3px;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.06rem;
}
.tick-col .tick-when {
  margin: 0 0 11px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--rose-deep);
}
.tick-col ul { list-style: none; margin: 0; padding: 0; }
.tick-col li {
  position: relative;
  padding: 7px 0 7px 26px;
  border-top: 1px solid var(--line);
  font-size: .86rem; line-height: 1.5; color: var(--ink-soft);
}
.tick-col li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 15px; height: 15px;
  border: 1.6px solid var(--rose);
  border-radius: 4px;
  background: var(--bg);
}
.tick-col li b { color: var(--ink); font-weight: 600; }

/* ============================================================
   SHARED COMPONENTS reused across the Chickens silo — kept
   identical to feeding-chickens.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;
}

/* ---- multi-paragraph section intros ----
   The shared .section-head p rule is margin:0, which is right for the
   single-paragraph intros used elsewhere. Several intros on this page
   run to two or three paragraphs, so give them a gap. Scoped to this
   page only; the shared rule is untouched. ---- */
.section-head p + p { margin-top: .72em; }

/* ---- 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- and nine-card sections sit as even rows on desktop rather
   than an awkward 4 + 2 with a lone card stranded on a second row. */
@media (min-width: 980px) {
  .check-grid, .ail-grid, .kit-grid, .tick-grid { grid-template-columns: repeat(3, 1fr); }
  /* every .danger-grid on this page holds six or nine cards — 3 across
     keeps them as even rows rather than 4 + 2 or 4 + 4 + 1 */
  .danger-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 861px) and (max-width: 979px) {
  .check-grid, .ail-grid, .kit-grid, .tick-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; }
  .vet-panel { padding: 18px 17px; }
  .check-what { margin-left: 0; }
  .step-list li { padding: 15px 16px 15px 54px; }
}
@media (max-width: 480px) {
  .check-grid, .ail-grid, .kit-grid, .tick-grid, .norm-grid { grid-template-columns: 1fr; }
  .danger-grid { grid-template-columns: 1fr; }
  .ail-top { flex-direction: column; align-items: flex-start; gap: 6px; }
}

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