/* ==========================================================
   Backyard Chicken Gear - "Barnyard" theme, adapted from the Garage Shop Lawn layout
   Charcoal + steel + safety orange, condensed industrial headings.
   Class names are unchanged from the previous theme so build.js
   templates and post HTML keep working.
   ========================================================== */

:root {
  --ink: #1f1c17;          /* dark soil */
  --steel: #2f3d29;        /* deep pasture green panels */
  --steel-2: #3f4f37;
  --iron: #5b6253;         /* muted text */
  --concrete: #f7f2e7;     /* straw-cream page background */
  --concrete-2: #ede5d3;
  --paper: #ffffff;
  --line: #ded3bb;
  --orange: #c4422b;       /* barn red (CTA) */
  --orange-dark: #9a2f1d;  /* accessible link/hover red */
  --yellow: #f2b632;       /* egg yolk */
  --green: #4f7a3a;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.12);
  --head: 'Roboto Slab', 'Rockwell', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hazard: repeating-linear-gradient(90deg, var(--orange) 0 16px, #fbf3e3 16px 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--concrete);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
main { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: .2px; color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 4px solid var(--orange);
}
.site-nav::after { /* thin hazard stripe under the orange bar */
  content: ""; display: block; height: 3px; background: var(--hazard); opacity: .9;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 800; font-size: 24px; letter-spacing: 1px; text-transform: uppercase;
}
.nav-logo:hover { color: var(--yellow); }
.nav-logo-img { width: 38px; height: 38px; border-radius: 4px; object-fit: cover; background: var(--steel); }
.nav-logo .logo-accent { color: var(--orange); }
.logo-mark { width: 40px; height: 40px; display: block; flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #d9dde1; text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: .6px; text-transform: uppercase;
  padding: 8px 12px; border-radius: 4px;
}
.nav-links a:hover { color: #fff; background: var(--steel); }
.nav-links a.nav-cta { background: var(--orange); color: var(--ink); margin-left: 6px; }
.nav-links a.nav-cta:hover { background: var(--orange-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: #fff; border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 71px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 4px solid var(--orange); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; border-radius: 0; }
  .nav-links a.nav-cta { margin: 8px 24px 4px; text-align: center; border-radius: 4px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  max-width: 820px; margin: 22px auto 0; padding: 0 20px;
  font-size: 13px; color: var(--iron); text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.breadcrumbs a { color: var(--iron); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-dark); }
.breadcrumb-sep { margin: 0 6px; color: var(--line); }

/* ---------- Category chip ---------- */
.post-category {
  display: inline-block;
  font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  color: #fff; background: var(--ink);
  padding: 3px 10px 2px; border-left: 4px solid var(--orange); border-radius: 2px;
  text-decoration: none;
}
a.post-category:hover { background: var(--steel); color: var(--yellow); }

/* ---------- Homepage ---------- */
.home-hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(27,30,33,.97) 0%, rgba(27,30,33,.93) 55%, rgba(43,48,54,.88) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 60px),
    var(--ink);
  color: #fff;
  padding: 64px 20px 72px;
}
.home-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--hazard); }
.home-hero-inner { max-width: 1200px; margin: 0 auto; }
.home-hero .eyebrow {
  display: inline-block; font-family: var(--head); font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  font-size: 15px; color: var(--ink); background: var(--yellow); padding: 3px 10px; border-radius: 2px; margin-bottom: 18px;
}
.home-hero h1 {
  color: #fff; margin: 0 0 16px; max-width: 900px;
  font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; line-height: .98;
}
.home-hero h1 .hl { color: var(--orange); }
.home-tagline { max-width: 680px; font-size: 19px; color: #cfd4d9; margin: 0 0 28px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.home-chips a {
  font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .8px; text-transform: uppercase;
  color: #fff; text-decoration: none; padding: 10px 16px; border: 2px solid #4a525a; border-radius: 4px; background: rgba(255,255,255,.03);
}
.home-chips a:hover { border-color: var(--orange); color: var(--orange); }
.home-chips a.primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.home-chips a.primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }

.home-trust {
  max-width: 1200px; margin: -26px auto 0; padding: 0 20px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.home-trust div {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; border-top: 4px solid var(--orange); font-size: 15px; color: var(--iron);
}
.home-trust strong { display: block; font-family: var(--head); font-size: 20px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink); }

.home-section-heading {
  max-width: 1200px; margin: 56px auto 20px; padding: 0 20px;
  font-size: 34px; text-transform: uppercase; letter-spacing: .6px;
  display: flex; align-items: center; gap: 14px;
}
.home-section-heading::after { content: ""; flex: 1; height: 4px; background: var(--hazard); border-radius: 2px; opacity: .85; }

.featured-post { max-width: 1200px; margin: 48px auto 0; padding: 0 20px; }
.featured-link {
  display: grid; grid-template-columns: 1.15fr 1fr; text-decoration: none; color: inherit;
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.featured-link:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: inherit; }
.featured-image { background: #fff; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.featured-image img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.featured-content { padding: 36px 36px 32px; display: flex; flex-direction: column; justify-content: center; background: var(--steel); color: #e6e9ec; }
.featured-content .post-category { align-self: flex-start; background: var(--orange); border-left-color: var(--yellow); color: var(--ink); }
.featured-content h2 { color: #fff; font-size: 38px; margin: 14px 0 12px; }
.featured-content p { color: #c6ccd2; margin: 0 0 18px; font-size: 16px; }
.read-more {
  align-self: flex-start; font-family: var(--head); font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); background: var(--yellow); padding: 8px 16px; border-radius: 3px;
}
@media (max-width: 820px) {
  .featured-link { grid-template-columns: 1fr; }
  .featured-image { border-right: 0; border-bottom: 1px solid var(--line); }
  .featured-content { padding: 26px 22px; }
  .featured-content h2 { font-size: 30px; }
  .home-trust { grid-template-columns: 1fr; margin-top: -20px; }
  .home-hero { padding: 48px 20px 56px; }
}

/* ---------- Post cards (homepage, categories, related) ---------- */
.post-grid, .related-cards {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.related-cards { padding: 0; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border-bottom: 4px solid transparent; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-bottom-color: var(--orange); color: inherit; }
.post-card-thumb { background: #fff; aspect-ratio: 1200 / 630; border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card-body .post-category { align-self: flex-start; font-size: 12px; }
.post-card h3 { font-size: 23px; margin: 10px 0 8px; }
.post-card p { font-size: 15px; color: var(--iron); margin: 0 0 14px; line-height: 1.55; }
.post-card-meta {
  margin-top: auto; display: flex; gap: 14px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--iron);
}
@media (max-width: 960px) { .post-grid, .related-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid, .related-cards { grid-template-columns: 1fr; } }

/* ---------- Home category tiles ---------- */
.home-categories {
  max-width: 1200px; margin: 0 auto 64px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.home-category-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: #fff; text-decoration: none; box-shadow: var(--shadow);
}
.home-category-card img { width: 100%; height: 100%; object-fit: contain; padding: 10px 10px 58px; transition: transform .3s; }
.home-category-card:hover img { transform: scale(1.05); }
.home-category-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--ink); color: #fff; padding: 10px 14px 24px;
  font-family: var(--head); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .5px; line-height: 1.1;
  border-top: 4px solid var(--orange);
}
.home-category-count {
  position: absolute; left: 14px; bottom: 6px; z-index: 1;
  font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--yellow);
}
.home-category-card:hover .home-category-label { background: var(--steel); }
@media (max-width: 960px) { .home-categories { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Article ---------- */
.post { max-width: 820px; margin: 0 auto; padding: 0 20px 40px; }
.post-header { padding: 18px 0 8px; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--iron);
}
.post-meta-sep { color: var(--line); }
.post-header h1 { font-size: clamp(36px, 5vw, 54px); margin: 16px 0 12px; text-transform: none; }
.post-subtitle { font-size: 20px; color: var(--iron); margin: 0; line-height: 1.5; }
.post-disclosure {
  margin: 22px 0 0; padding: 12px 16px; font-size: 13.5px; color: var(--iron);
  background: var(--concrete-2); border-left: 4px solid var(--iron); border-radius: 0 var(--radius) var(--radius) 0;
}
.post-disclosure a { color: var(--ink); }
.post-hero {
  margin: 24px 0 8px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border-bottom: 6px solid var(--ink);
}
.post-hero img { width: 100%; aspect-ratio: 1200 / 630; max-height: 400px; object-fit: contain; }

.post-body { font-size: 18px; }
.post-body h2 {
  font-size: 34px; margin: 48px 0 16px; padding-bottom: 8px; text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 3px solid var(--ink); position: relative;
}
.post-body h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 3px; background: var(--orange); }
.post-body h3 { font-size: 26px; margin: 34px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--orange); font-weight: 700; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body a { font-weight: 600; }
.post-body blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid var(--orange); background: var(--paper); color: var(--iron); }

/* Quick answer = spec plate */
.post-body .quick-answer {
  margin: 28px 0; padding: 22px 24px 20px; border-radius: var(--radius);
  background: var(--steel); color: #e3e7ea; font-size: 17px; line-height: 1.6;
  border-left: 8px solid var(--orange); box-shadow: var(--shadow);
}
.post-body .quick-answer strong { color: #fff; }
.post-body .quick-answer strong:first-child {
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 2px;
  background: var(--yellow); color: var(--ink); font-family: var(--head); letter-spacing: 1px; text-transform: uppercase;
}
.post-body .quick-answer a { color: var(--yellow); }

.post-body .tip-box {
  margin: 26px 0; padding: 16px 20px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--green); font-size: 16px;
}
.post-body .tip-box strong:first-child { font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .5px; color: var(--green); }
.post-body .warning-box {
  position: relative; margin: 26px 0; padding: 22px 20px 16px; border-radius: var(--radius);
  background: #fff8e6; border: 1px solid #f0d58a; font-size: 16px; overflow: hidden;
}
.post-body .warning-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--hazard); }
.post-body .warning-box strong:first-child { font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .5px; }

/* Tables */
.post-body table {
  width: 100%; border-collapse: collapse; margin: 22px 0 26px; font-size: 15px;
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: block; overflow-x: auto;
}
.post-body th {
  background: var(--ink); color: #fff; text-align: left; padding: 11px 14px; white-space: nowrap;
  font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .6px; text-transform: uppercase;
  border-bottom: 3px solid var(--orange);
}
.post-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body tr:nth-child(even) td { background: #faf8f4; }
.post-body td:first-child { font-weight: 600; }
@media (min-width: 821px) { .post-body table { display: table; } }

/* ---------- Affiliate product cards ---------- */
.affiliate-picks {
  margin: 30px 0 36px; padding: 24px 22px 26px; border-radius: var(--radius);
  background: var(--concrete-2); border: 1px solid var(--line); position: relative;
}
.affiliate-picks::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--hazard); border-radius: var(--radius) var(--radius) 0 0; }
.affiliate-picks-heading { font-size: 30px; text-transform: uppercase; letter-spacing: .5px; margin: 6px 0 4px; }
.affiliate-picks-sub { font-size: 14px; color: var(--iron); margin: 0 0 18px; }
.affiliate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.affiliate-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 16px;
  border: 1px solid transparent; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.affiliate-card:hover { border-color: var(--orange); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.affiliate-card-badge {
  position: absolute; top: -10px; left: 12px; z-index: 2;
  font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: 3px 10px; border-radius: 2px; box-shadow: 0 2px 0 var(--ink);
}
.affiliate-card-image {
  display: flex; align-items: center; justify-content: center;
  background: #fff; height: 210px; border-radius: 4px; margin-bottom: 12px; border: 1px solid #efece5;
}
.affiliate-card-image img { max-height: 190px; width: auto; object-fit: contain; }
.affiliate-card-placeholder { font-size: 48px; }
.affiliate-card-body { display: flex; flex-direction: column; flex: 1; }
.affiliate-card h4 { font-size: 21px; margin: 0 0 6px; line-height: 1.15; }
.affiliate-card h4 a { color: var(--ink); text-decoration: none; }
.affiliate-card h4 a:hover { color: var(--orange-dark); }
.affiliate-card-summary { font-size: 14.5px; color: var(--iron); line-height: 1.55; margin: 0 0 14px; }
.affiliate-card-cta {
  margin-top: auto; display: block; text-align: center; text-decoration: none;
  background: var(--orange); color: var(--ink); padding: 12px 14px; border-radius: 4px;
  font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--orange-dark); transition: background .15s, transform .1s, box-shadow .1s;
}
.affiliate-card-cta:hover { background: var(--orange-dark); color: #fff; }
.affiliate-card-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--orange-dark); }
@media (max-width: 620px) {
  .affiliate-grid { grid-template-columns: 1fr; }
  .affiliate-picks { padding: 22px 14px; }
}

.consumables-picks { background: var(--paper); }
.consumables-picks .affiliate-picks-heading::before { content: "\1F527  "; }

.affiliate-bottom-cta {
  margin: 36px 0; padding: 28px 26px; border-radius: var(--radius); text-align: center;
  background: var(--ink); color: #cfd4d9; border-bottom: 6px solid var(--orange);
}
.affiliate-bottom-cta h3 { color: #fff; font-size: 32px; text-transform: uppercase; margin: 0 0 8px; }
.affiliate-bottom-cta p { margin: 0 0 18px; }
.affiliate-bottom-button {
  display: inline-block; text-decoration: none; background: var(--orange); color: var(--ink); padding: 13px 26px; border-radius: 4px;
  font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--orange-dark);
}
.affiliate-bottom-button:hover { background: var(--orange-dark); color: #fff; }

.bounty-box {
  margin: 20px 0 30px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--paper); border: 1px dashed var(--iron); font-size: 15px;
}
.bounty-box .bounty-line { margin: 0; }
.bounty-box .bounty-line + .bounty-line { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bounty-box a { font-weight: 700; }

.methodology-box, .sources-box {
  margin: 30px 0; padding: 20px 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); font-size: 15px; color: var(--iron);
}
.methodology-heading, .sources-heading { font-size: 22px; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; color: var(--ink); }
.methodology-box p { margin: 0; }
.sources-box ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.sources-box li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 620px) { .sources-box ul { columns: 1; } }

.post-footer { margin-top: 40px; }
.post-share {
  padding: 16px 18px; border-radius: var(--radius); background: var(--concrete-2); font-size: 15px; margin-bottom: 30px;
}
.post-share strong { font-family: var(--head); font-size: 18px; text-transform: uppercase; letter-spacing: .5px; }
.post-related h3 {
  font-size: 30px; text-transform: uppercase; margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.post-related h3::after { content: ""; flex: 1; height: 4px; background: var(--hazard); border-radius: 2px; opacity: .85; }
.post-related .related-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .post-related .related-cards { grid-template-columns: 1fr; } }

/* ---------- Category pages ---------- */
.category-header {
  background: var(--ink); color: #cfd4d9; position: relative; margin: 18px 0 30px;
  padding: 44px max(20px, calc((100% - 1160px) / 2)) 50px;
}
.category-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--hazard); }
.category-header h1 { color: #fff; font-size: clamp(38px, 5.5vw, 60px); text-transform: uppercase; margin: 0 0 10px; }
.category-header p { margin: 0; font-size: 18px; }
.category-intro {
  max-width: 1200px; margin: 0 auto 30px; padding: 0 20px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start;
}
.category-intro p { margin: 0; font-size: 17px; }
.category-intro .start-here {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; border-top: 5px solid var(--orange);
}
.category-intro .start-here strong { font-family: var(--head); font-size: 22px; text-transform: uppercase; letter-spacing: .5px; }
.category-intro .start-here ul { list-style: none; margin: 10px 0 0; padding: 0; }
.category-intro .start-here li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 15.5px; }
.category-intro .start-here li::before { content: "\25B8"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.category-intro .start-here a { color: var(--ink); font-weight: 600; text-decoration: none; }
.category-intro .start-here a:hover { color: var(--orange-dark); text-decoration: underline; }
@media (max-width: 820px) { .category-intro { grid-template-columns: 1fr; } }

.category-grid {
  max-width: 1200px; margin: 0 auto 60px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.category-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-bottom: 4px solid var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-bottom-color: var(--orange); color: inherit; }
.category-card-thumb { background: #fff; aspect-ratio: 1200 / 630; border-bottom: 1px solid var(--line); }
.category-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.category-card-body { padding: 16px 18px 18px; }
.category-card h3 { font-size: 25px; text-transform: uppercase; margin: 0 0 6px; }
.category-card p { font-size: 15px; color: var(--iron); margin: 0; }
@media (max-width: 960px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .category-grid { grid-template-columns: 1fr; } }

/* ---------- Static pages (about, editorial, privacy, disclosure) use .post ---------- */

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb5bc; margin-top: 60px; position: relative; padding-top: 10px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--hazard); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 20px 34px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.footer-brand { font-family: var(--head); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin: 0 0 8px; }
.footer-brand span { color: var(--orange); }
.footer-col h4 { color: #fff; font-size: 18px; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 10px; }
.footer-col a { display: block; color: #aeb5bc; text-decoration: none; padding: 3px 0; }
.footer-col a:hover { color: var(--yellow); }
.footer-inner p { margin: 0 0 10px; }
.footer-disclosure { font-size: 13px; color: #8d959d; border-top: 1px solid var(--steel-2); padding-top: 18px; }
.footer-disclosure a, .footer-inner p a { color: #d9dde1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.footer-links a { color: #aeb5bc; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Misc embeds (calculator etc.) ---------- */
.post-body input, .post-body select, .post-body button {
  font: inherit;
}
.post-body button {
  background: var(--orange); color: var(--ink); border: 0; border-radius: 4px; padding: 10px 16px; cursor: pointer;
  font-family: var(--head); font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
}
.post-body button:hover { background: var(--orange-dark); }

/* Wider breadcrumbs on hub pages */
.page-category .breadcrumbs, .page-categories .breadcrumbs { max-width: 1200px; }

/* ===== Backyard Chicken Gear extras (product sections, specs, calculator) ===== */
.post-body .product{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;background:var(--paper);border:1px solid var(--line);border-left:5px solid var(--orange);border-radius:var(--radius);padding:22px;margin:28px 0;box-shadow:var(--shadow)}
.post-body .product-img{display:block;background:#fff;border-radius:6px;padding:8px;border:1px solid var(--line);align-self:start}
.post-body .product-img img{width:100%;height:170px;object-fit:contain}
.post-body .product h3{margin-top:0}
.post-body .product .best{display:inline-block;font-family:var(--head);font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase;background:var(--yellow);color:var(--ink);padding:3px 10px;border-radius:999px;margin:0 0 8px}
.post-body .specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 16px;font-size:14.5px;margin:10px 0 14px;padding:12px 14px;background:var(--concrete);border-radius:6px}
.post-body .specs div b{display:block;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--iron);font-weight:700}
.post-body .proscons{display:grid;grid-template-columns:1fr 1fr;gap:16px;font-size:15.5px}
.post-body .proscons h4{font-family:var(--head);font-size:13px;letter-spacing:.06em;text-transform:uppercase;margin:0 0 6px;color:var(--steel)}
.post-body .proscons ul{margin:0;padding-left:18px}
.btn-amazon{display:inline-block;background:var(--orange);color:#fff !important;font-weight:700;text-decoration:none !important;padding:11px 18px;border-radius:6px;margin-top:12px}
.btn-amazon:hover{background:var(--orange-dark)}
.post-body .math{background:#fff6dd;border-left:5px solid var(--yellow);border-radius:6px;padding:16px 18px;margin:22px 0}
.post-body .callout{background:#fbebe6;border-left:5px solid var(--orange);border-radius:6px;padding:14px 18px;margin:22px 0}
.post-body .note{font-size:14px;color:var(--iron)}
.post-body .tablebox{overflow-x:auto;margin:18px 0 26px}
.calc{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin:22px 0;box-shadow:var(--shadow)}
.calc .row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:16px}
.calc label{display:block;font-weight:600;font-size:14px;margin-bottom:4px}
.calc input,.calc select{width:100%;font:inherit;padding:9px 10px;border:1px solid var(--line);border-radius:6px;background:#fff}
.results{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.results div{background:var(--concrete);border-radius:6px;padding:12px 14px}
.results b{display:block;font-family:var(--head);font-size:28px;color:var(--steel);font-variant-numeric:tabular-nums}
.results span{font-size:13px;color:var(--iron)}
.post-body .faq h3{font-size:19px;margin:22px 0 6px}
@media (max-width:700px){.post-body .product{grid-template-columns:1fr}.post-body .product-img img{height:200px}.post-body .proscons{grid-template-columns:1fr}}
