/* Workshop Plans Review — site-21.css v21 (2026-12-05).
   Closes ALL affiliate-link leaks (Sources hoplink tid gadscacr; sticky
   bar returns after close and hides while scrolling down) + removes 4
   off-topic items + fixes the photo-audit defects (desktop 410/1000 with
   22 defects; mobile 520/1000 with 20 defects). Cut-list test is now a
   static visual card (no interactive checkboxes — cold traffic does not
   tick boxes). Design: magazine-quality, light, elegant, premium.
   Cream/white, warm wood tones, terracotta for CTAs only, soft shadows,
   rounded cards, refined typography. No new images, no new fonts, no new
   claims. Shared styles (hub / workbench / privacy) are preserved. */
:root {
  --bg: #fdfbf5;
  --bg-soft: #faf4e8;
  --paper: #ffffff;
  --cream: #fbf5e9;
  --sand: #f5eddc;
  --ink: #241c13;
  --ink-soft: #4a3f31;
  --muted: #6f6355; /* v19 W5: was #8a7c6a (3.7-4.1:1, failed 4.5:1) — now min 5.23:1 on bg/paper/cream/bg-soft/accent-soft/gold-soft */
  --muted-strong: #6b5d4c;
  --line: #e9dcc4;
  --line-soft: #f0e7d2;
  --accent: #b84a26;
  --accent-2: #9c3d1e;
  --accent-soft: #fdf0e7;
  --forest: #2e5a3f;
  --forest-soft: #edf3ea;
  --gold: #a97f2f;
  --gold-soft: #fbf3dc;
  --shadow-sm: 0 2px 10px rgba(62, 44, 20, 0.05);
  --shadow-md: 0 10px 28px rgba(62, 44, 20, 0.08);
  --shadow-lg: 0 18px 44px rgba(62, 44, 20, 0.10);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.75 Inter, system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
p { margin: 0.9rem 0; }
h1, h2, h3 { font-family: Fraunces, Georgia, "Times New Roman", serif; }
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}
h3 { font-size: 1.18rem; font-weight: 600; margin: 1.7rem 0 0.5rem; line-height: 1.35; }
.note { font-size: 0.88rem; color: var(--muted-strong); margin-top: 0.5rem; line-height: 1.6; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---- shared (hub / workbench / privacy) ---- */
.page { max-width: 720px; margin: 0 auto; padding: 0 1.25rem 6.5rem; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 0.6rem; }
.wordmark { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.mast span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-strong); }
.byline { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.4rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.hero { margin: 0 -0.15rem 1.5rem; }
.hero img, figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); object-fit: cover; }
.hero img { aspect-ratio: 8 / 5; object-position: 40% 50%; }
figure img { aspect-ratio: 3 / 2; }
figure { margin: 1.6rem 0 1.8rem; }
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.55rem; letter-spacing: 0.01em; line-height: 1.55; }
.lede { font-size: 1.14rem; line-height: 1.75; color: var(--ink-soft); }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0; margin: 1.7rem 0 0.5rem; }
.toc strong { display: block; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: 0.25rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.steps { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: 0.8rem; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.1rem 1.1rem 4.1rem; position: relative; box-shadow: var(--shadow-sm); }
.steps li::before { content: attr(data-n); position: absolute; left: 0.9rem; top: 1rem; font-family: Fraunces, serif; font-size: 1.35rem; font-weight: 600; color: var(--accent); width: 2.4rem; text-align: center; }
.facts { display: grid; gap: 0.75rem; margin: 1.25rem 0 1.4rem; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.05rem; font-size: 0.95rem; box-shadow: var(--shadow-sm); }
.facts dt { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; font-weight: 700; }
.facts dd { margin: 0; }
footer { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.83rem; line-height: 1.6; }
footer a { color: var(--muted-strong); }
.disclose { margin-top: 0.9rem; font-size: 0.76rem; color: var(--muted-strong); } /* v19 W6: was #9a8d7d (3.24:1) */
.credits { margin-top: 0.55rem; font-size: 0.72rem; color: var(--muted-strong); } /* v19 W7: was #a89d8e (2.67:1) */
.also { margin: 2.2rem 0 0; font-size: 0.95rem; color: var(--muted); }
.hub { padding-bottom: 3rem; }
.hub-list { list-style: none; padding: 0; margin: 1.6rem 0; }
.hub-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 0.9rem; padding: 1.2rem 1.25rem; box-shadow: var(--shadow-sm); }
.hub-list a { font-family: Fraunces, Georgia, serif; font-size: 1.25rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.hub-list p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---- CTA + sticky bar (shared) ---- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: #fffaf3; text-decoration: none;
  font-weight: 700; font-size: 1.05rem; line-height: 1.35; letter-spacing: 0.01em;
  padding: 1.05rem 1.7rem; border-radius: 999px; min-height: 56px;
  box-shadow: 0 8px 20px rgba(184, 74, 38, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cta:hover { background: var(--accent-2); color: #fffaf3; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(184, 74, 38, 0.30); }
.cta-arrow { font-weight: 500; font-size: 1.05em; line-height: 1; }
.cta-disclose { font-size: 13px; line-height: 1.5; color: var(--muted-strong); margin: 1.2rem 0 0.6rem; }
.bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(253, 251, 245, 0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(62, 44, 20, 0.07);
  padding: 0.6rem 1.15rem calc(0.6rem + env(safe-area-inset-bottom));
  display: flex; gap: 0.9rem; align-items: center; justify-content: space-between;
  z-index: 20; transform: translateY(110%); transition: transform 0.25s ease;
}
.bar.is-on { transform: none; }
.bar span { font-size: 0.86rem; color: var(--muted-strong); font-weight: 600; }
.bar .cta { margin: 0; padding: 0.7rem 1.2rem; font-size: 0.93rem; min-height: 46px; box-shadow: 0 4px 12px rgba(184, 74, 38, 0.22); }
.bar-close { order: 3; background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; padding: 0.35rem 0.5rem; cursor: pointer; flex: 0 0 auto; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.bar-close:hover { color: var(--ink); background: var(--sand); }
.bar-disclose { font-size: 0.68rem; color: var(--muted-strong); white-space: nowrap; flex: 0 0 auto; }
.bar.bar-off { display: none; }
@media (max-width: 480px) {
  body { font-size: 17px; }
  .bar { flex-wrap: nowrap; gap: 0.6rem; }
  .bar span { display: none; }
  .bar span.bar-disclose { display: block; order: 2; width: auto; text-align: left; flex: 0 0 auto; }
  .bar .cta { flex: 1 1 auto; width: auto; }
  .bar-close { order: 3; }
}

/* ---- COOP v15 — full aesthetic rebuild ---- */
html[data-page="coop"] { --bg: #fdfbf5; }
html[data-page="coop"] .page { max-width: 1200px; padding: 0 1.25rem 2rem; }
@media (min-width: 820px) { html[data-page="coop"] .narrow { max-width: 1020px; } }
@media (min-width: 1200px) { html[data-page="coop"] .narrow { max-width: 1200px; } }
html[data-page="coop"] body { padding-bottom: 5.5rem; }
/* Consistent section rhythm: every coop section breathes the same way. */
html[data-page="coop"] section.narrow { margin-top: 3.75rem; }
html[data-page="coop"] .mast { padding: 1.3rem 0 0.4rem; border-bottom: 1px solid var(--line); }
html[data-page="coop"] .mast-note { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-strong); }
/* Gold rule above every coop section heading — the signature of the design. */
html[data-page="coop"] section h2::before {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-bottom: 0.85rem;
}
html[data-page="coop"] section h2 { max-width: 22ch; }
/* Keep body paragraphs readable: never a wall wider than ~68 characters. */
html[data-page="coop"] section.narrow > p,
html[data-page="coop"] section.narrow > dl,
html[data-page="coop"] .guide9 p { max-width: 68ch; }

/* Hero: editorial cover panel — copy left, photo right, full height photo */
.hero9 {
  display: grid; gap: 2rem; align-items: stretch;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem 2.4rem; margin-top: 1.4rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .hero9 { grid-template-columns: 1.04fr 0.96fr; gap: 2.75rem; padding: 2.75rem 2.5rem 2.9rem; }
}
.hero9-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
html[data-page="coop"] .kicker {
  display: inline-flex; align-self: flex-start;
  margin: 0 0 0.9rem; padding: 0.38rem 0.85rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); background: var(--paper);
  border: 1px solid var(--gold); border-radius: 999px;
}
html[data-page="coop"] h1 {
  font-size: clamp(2.5rem, 5.8vw, 3.9rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 1.1rem; max-width: 20ch; color: var(--ink);
}
.dek { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 0.9rem; font-weight: 500; max-width: 32rem; }

/* CTA row: button + price badge side by side, badge never grey small print */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin: 0.3rem 0 0.2rem; }
.cta-row .cta { flex: 1 1 auto; max-width: 100%; text-align: center; }
.price-badge {
  margin: 0; display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--paper); border: 1.5px solid var(--gold); border-radius: 999px;
  padding: 0.6rem 1.15rem; font-size: 0.92rem; color: var(--ink); white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.price-badge strong { font-size: 1.6rem; line-height: 1; color: var(--ink); }
.price-badge span { font-size: 0.9rem; color: var(--ink-soft); }
.cta-support { font-size: 0.92rem; color: var(--muted-strong); margin: 0.65rem 0 0; max-width: 36rem; line-height: 1.6; }
@media (max-width: 560px) { .cta-row .cta { flex-basis: 100%; } }

/* Gap band: LIGHT cream card, 2×2 grid of white cards on desktop, larger ✕ */
.gap9 {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.9rem;
  margin: 0.5rem 0 1rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.gap9 h2 { color: var(--ink); margin-top: 0; font-size: clamp(1.6rem, 3.4vw, 2rem); max-width: 24ch; }

.how-time { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--forest); font-weight: 700; background: var(--forest-soft); border-radius: 999px; padding: 0.2rem 0.65rem; }

/* What you will see: two designed panels side by side on desktop */
.see-wrap { display: grid; gap: 1rem; margin-top: 0.4rem; }
@media (min-width: 820px) { .see-wrap { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; } }
.see-group {
  min-width: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.45rem 1.25rem; box-shadow: var(--shadow-sm);
}
.see-group.see-no-wrap { background: var(--accent-soft); border-color: #f2d5c6; }
.see-sub { font-size: 1.08rem; margin: 0 0 0.15rem; color: var(--forest); }
.see-group.see-no-wrap .see-sub { color: var(--accent-2); }
.see-next { list-style: none; margin: 0.85rem 0 0; padding: 0; }
.see-next li { position: relative; padding: 0.45rem 0 0.45rem 1.8rem; font-size: 0.96rem; line-height: 1.6; }
.see-next li::before {
  content: ""; position: absolute; left: 0; top: 0.6rem; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--forest);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23f6f1e8' stroke-width='2' d='M3.5 8.3l3 3 6-6.2'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 0.7rem;
}
.see-no li::before {
  content: "✕"; background: var(--accent); background-image: none; color: #fff;
  font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1.15rem;
}
.see-alert {
  background: var(--paper); border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 0.85rem 1.05rem;
  font-size: 0.98rem; margin: 0.7rem 0 0.25rem; line-height: 1.55;
}
@media (max-width: 720px) { .see-no-wrap { order: -1; } }

/* Proof: large quote card + a real stats band (not a plain list) */
.proof9 { margin-top: 1rem; }
.testimonial {
  margin: 0; background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: 1.8rem 1.9rem 1.6rem; box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 0.4rem; right: 1.4rem;
  font-family: Fraunces, Georgia, serif; font-size: 4.5rem; line-height: 1;
  color: #efe3c2; /* v19 W8: removed dead first declaration (var(--gold-soft)) */
}
.testimonial p {
  font-family: Fraunces, Georgia, serif; font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic; font-weight: 600; line-height: 1.5; color: var(--forest);
  margin: 0 0 0.9rem; position: relative;
}
.testimonial footer { margin: 0; padding: 0; border: 0; font-size: 0.82rem; line-height: 1.55; color: var(--muted-strong); font-style: normal; }
.proof9 .note { font-size: 0.92rem; color: var(--muted-strong); }

/* Cut-list test: numbered cards, strictly equal heights, sage top rule */
.test9 .steps9 { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: grid; gap: 0.9rem; grid-auto-rows: 1fr; }
@media (min-width: 720px) { .test9 .steps9 { grid-template-columns: repeat(3, 1fr); } }
.test9 .steps9 li {
  background: var(--paper); border: 1px solid #d5e0cd; border-top: 3px solid var(--forest);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.2rem 3.4rem; position: relative;
  font-size: 0.95rem; line-height: 1.6; height: 100%; box-shadow: var(--shadow-sm);
}
.test9 .steps9 li::before {
  content: attr(data-n); position: absolute; left: 1rem; top: 1.1rem;
  font-family: Fraunces, serif; font-size: 1.55rem; font-weight: 700; color: var(--forest);
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--forest-soft);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.test9 .note { font-size: 0.92rem; color: var(--muted-strong); }
/* v21: the interactive checkboxes are gone (cold traffic does not tick
   boxes) — the test is a static card with fixed check marks. These rules
   are removed, not left dead. */
.example-box { background: var(--forest-soft); border: 1px solid #d5e0cd; border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin: 0 0 1.3rem; font-size: 0.95rem; line-height: 1.6; }
.example-box p { margin: 0; }

/* PDF note */
.pdf-box { background: var(--gold-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem 1.3rem; margin: 0.5rem auto 1.6rem; box-shadow: var(--shadow-sm); }
/* v19 W4: was `.pdf-box h2` (0,1,1) — the later v17 `html[data-page="coop"] h2`
   scale (0,1,1) overrode it to up to 1.9rem. Higher specificity restores 1.45rem.
   The old `h2::before { display: none; }` was dead: .pdf-box is an <aside>, so the
   `section h2::before` gold rule never applied to it. */
html[data-page="coop"] .pdf-box h2 { font-size: 1.45rem; margin: 0 0 0.4rem; }
.pdf-box p { margin: 0; color: var(--ink-soft); }


/* Straight look: fact cards with a gold top rule, readable labels */
.facts div { border-top: 3px solid var(--gold); padding: 1.15rem 1.15rem; }

/* FAQ: designed accordion cards with a clear open state */
.faq9 { margin-top: 0.5rem; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 0.45rem 1.2rem; margin: 0 0 0.75rem; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item[open] { border-color: var(--gold); box-shadow: var(--shadow-md); }
.faq-item summary { font-weight: 700; font-size: 1.06rem; line-height: 1.45; cursor: pointer; padding: 0.6rem 0; list-style: none; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; color: var(--accent); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft);
  margin-right: 0.6rem; font-size: 1rem; line-height: 1;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item p { margin: 0.4rem 0 0.8rem; padding-left: 2.1rem; font-size: 0.96rem; line-height: 1.65; color: var(--ink-soft); }

/* Verdict: paper card with gold top rule, balanced pros/cons */
.verdict {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem 1.9rem; margin: 0.6rem 0 1.6rem; box-shadow: var(--shadow-md);
}
.verdict h2 { margin-top: 0; font-size: clamp(1.6rem, 3.2vw, 2rem); }
.verdict h2::before { display: none; }
.verdict .cta-row { margin-top: 1.2rem; }
.verdict-line { font-size: 1.1rem; line-height: 1.55; color: var(--forest); margin: 0.75rem 0 0.95rem; }
.verdict .verdict-line { margin-top: 0.25rem; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 1.18rem; }
.verdict .note { font-size: 0.92rem; color: var(--muted-strong); }
.for-whom { font-size: 0.96rem; line-height: 1.6; margin: 1rem 0 0; }
.pros-cons { display: grid; gap: 0.9rem; margin: 1.3rem 0 0.25rem; grid-auto-rows: 1fr; }
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons h3 { font-size: 0.95rem; margin: 0 0 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pros-cons ul { list-style: none; margin: 0; padding: 0; }
.pros-cons li { position: relative; padding: 0.4rem 0 0.4rem 1.8rem; font-size: 0.94rem; line-height: 1.55; }
.pros-cons li::before { position: absolute; left: 0; top: 0.4rem; font-weight: 700; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; }
.pros li::before { content: "✓"; color: var(--forest); background: var(--forest-soft); }
.cons li::before { content: "✕"; color: var(--accent); background: var(--accent-soft); }
.pros, .cons { border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; height: 100%; }
.pros { background: var(--forest-soft); border: 1px solid #d5e0cd; }
.cons { background: var(--accent-soft); border: 1px solid #f2d5c6; }

/* Background guide: warm cream panel, clearly secondary, framed diagram */
.guide9 { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 1.9rem; margin: 0.5rem 0 1.6rem; }
.guide9 h2 { margin-top: 0; }
.guide9 .note {
  background: var(--accent-soft); border: 1px solid #f2d5c6; border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 0.9rem 1.05rem; font-size: 0.93rem; line-height: 1.55;
  color: var(--ink-soft); margin: 1rem 0;
}

/* Sources + footer: a designed closing block, not an empty afterthought */
html[data-page="coop"] footer.narrow {
  margin-top: 3.5rem; padding: 1.9rem 1.7rem 1.7rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--muted-strong);
  font-size: 0.88rem; line-height: 1.65;
}
html[data-page="coop"] footer.narrow p { margin: 0.5rem 0; }
html[data-page="coop"] footer.narrow p:first-child { margin-top: 0; }
html[data-page="coop"] footer.narrow .disclose { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
@media (max-width: 480px) {
  /* V11: wordmark (~235px) + "INDEPENDENT REVIEW" (~153px) do not fit in
     ~320px at a 360px viewport — the note is redundant, hide it. */
  html[data-page="coop"] .mast-note { display: none; }
  /* V19: tighter kicker tracking so it never truncates with "…" at 320px. */
  html[data-page="coop"] .kicker { letter-spacing: 0.12em; font-size: 0.66rem; }
}
@media (max-width: 560px) {
  .hero9 { padding: 1.7rem 1.25rem 1.9rem; gap: 1.4rem; border-radius: 24px; }
  .gap9 { padding: 1.8rem 1.25rem; border-radius: 24px; }
  .guide9 { padding: 1.7rem 1.2rem; }
  .verdict { padding: 1.6rem 1.25rem; }
  .testimonial { padding: 1.4rem 1.25rem; }
  .cta { width: 100%; }
  .bar .cta { width: auto; }
  .cta-row .cta { flex-basis: 100%; }
  .price-badge { width: 100%; justify-content: center; }
  html[data-page="coop"] section.narrow { margin-top: 3rem; }
}

/* ---- COOP v16 — rebuild on real references (REFERENCIAS.md) + inside knowledge (YOUTUBE-REVIEWS.md) ---- */

/* Top nav: the page as a decision tool */
.topnav {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  padding: 0.7rem 0 0.9rem; margin-top: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.topnav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.topnav a:hover { color: var(--accent); }

/* Hero v16: quick answer first, diagram as the visual */
.quick-answer {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0;
  padding: 0.95rem 1.1rem; font-size: 1.05rem; line-height: 1.6;
  color: var(--ink-soft); margin: 0 0 1rem; max-width: 34rem;
  box-shadow: var(--shadow-sm);
}
.quick-answer strong { color: var(--ink); }
.method { font-size: 0.85rem; color: var(--muted-strong); margin: 0 0 0.2rem; line-height: 1.6; max-width: 34rem; }
.hero9-diagram { margin: 0; display: flex; flex-direction: column; }
.hero9-diagram svg {
  width: 100%; height: auto; display: block;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) {
  /* V15: the svg sizes by its own aspect (460:360) and centres against the
     copy column — stretching it to the column height letterboxed the
     drawing inside a tall empty box. */
  .hero9-diagram svg { flex: 0 0 auto; height: auto; min-height: 0; }
}
.hero9-diagram { justify-content: center; }
.hero9-diagram figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.55; }
/* colour-coded diagram: wood coop, green run, gold nests, terracotta roost */
.hero9-diagram svg .d-pill { fill: #ffffff; stroke: #ddd0b8; }
.hero9-diagram svg .d-label { fill: #3d342a; }
.hero9-diagram svg .d-dim { fill: #6f6355; }
.hero9-diagram svg .d-run { fill: #2e5a3f; }

/* Essentials table: numbers before adjectives */
.essentials { margin-top: 2.6rem; }
.ess-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.1rem 0 0.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.ess-table th, .ess-table td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; font-size: 0.96rem; line-height: 1.55; border-bottom: 1px solid var(--line-soft); }
.ess-table tr:last-child th, .ess-table tr:last-child td { border-bottom: 0; }
.ess-table th { width: 11.5rem; font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); font-weight: 700; padding-top: 0.95rem; white-space: nowrap; }
.ess-table td strong { color: var(--ink); }
@media (max-width: 560px) {
  .ess-table th, .ess-table td { display: block; width: auto; padding: 0.55rem 1rem; }
  .ess-table th { padding-bottom: 0; border-bottom: 0; }
  .ess-table td { padding-top: 0.1rem; }
}

/* ONE repeated mould for every analysis section: lede -> facts -> Worth noting -> bottom line */
.claim { margin-top: 3.5rem; }
.claim-lede { font-size: 1.08rem; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.claim-facts { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.8rem; }
.claim-facts li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem 1rem 3rem; position: relative; font-size: 0.96rem; line-height: 1.6;
  box-shadow: var(--shadow-sm);
}
.claim-facts li::before {
  content: "✓"; position: absolute; left: 1rem; top: 1rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--forest-soft); color: var(--forest);
  font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.claim-facts li strong { color: var(--ink); }
.claim-example {
  background: var(--paper); border: 1px dashed var(--gold); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; font-size: 0.97rem; color: var(--ink-soft);
  margin: 0 0 1rem; line-height: 1.55; max-width: 62ch;
}
.claim-steps { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 0.9rem; grid-auto-rows: 1fr; }
@media (min-width: 720px) { .claim-steps { grid-template-columns: repeat(3, 1fr); } }
.claim-steps li {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 1.25rem 1.15rem 1.25rem 3.4rem;
  font-size: 0.95rem; line-height: 1.6; height: 100%; box-shadow: var(--shadow-sm);
}
.claim-steps li::before {
  content: counter(step); counter-increment: step;
  position: absolute; left: 1rem; top: 1.1rem;
  font-family: Fraunces, serif; font-size: 1.55rem; font-weight: 700; color: var(--accent);
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.claim-steps { counter-reset: step; }
.worth-noting {
  background: var(--accent-soft); border: 1px solid #f2d5c6;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 1rem 1.2rem;
  margin: 1.2rem 0 0.9rem; box-shadow: var(--shadow-sm); max-width: 68ch;
}
.worth-noting h3 {
  font-family: Inter, system-ui, sans-serif; font-size: 0.72rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent-2); margin: 0 0 0.35rem; font-weight: 700;
}
.worth-noting p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.bottom-line {
  border-top: 1px solid var(--line); padding-top: 0.85rem;
  font-size: 1rem; line-height: 1.6; color: var(--ink); max-width: 68ch;
}
.bottom-line strong { color: var(--forest); }

/* Gap section keeps its cream card, but now uses the same mould inside */
section.claim.gap9 { margin-top: 3.5rem; }

/* Hen photo: small, down in the guide — never the hero */
.hen-fig { margin: 1.4rem 0; max-width: 520px; }
.hen-fig img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.hen-fig figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.55rem; line-height: 1.55; }

/* v16 mobile tightening */
@media (max-width: 560px) {
  .quick-answer { font-size: 1rem; }
  .ess-table th { font-size: 0.7rem; }
}

/* =====================================================================
   COOP v17 — fixes for the brutal desktop (310/1000) + mobile (340/1000)
   visual audits. One design system, no copy-paste repetition, no voids,
   no fixed element ever covering the footer. Overrides live here, after
   the v16 rules, so they win at equal specificity.
   ===================================================================== */

/* --- Netlify badge: injected by Netlify's HUD script, NOT in our HTML.
   HONEST STATUS (v19 W11): this cannot be removed from code. Netlify's own
   docs say the badge "renders in an isolated frame, so your project's CSS
   can't affect the badge" and "Your stylesheet never touches it" — and a
   field report has CSS display:none !important AND a JS DOM-remover both
   failing against it. The selectors below target the real badge id
   (iframe#nl-badge-frame) as best-effort mitigation only. Guaranteed
   removal is the Netlify panel toggle (Project configuration > General >
   Powered by Netlify badge) — Anderson only; if the setting is locked,
   Netlify says upgrading to Personal ($9/mo) or Pro lets you turn it off. --- */
iframe#nl-badge-frame, [id*="nl-badge" i], [data-netlify-badge],
iframe[src*="netlify"], [class*="netlify-badge" i], [id*="netlify-badge" i] {
  display: none !important;
}

/* --- 3. Typography system: one scale, no widows, pills that never break --- */
html[data-page="coop"] h1 {
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  text-wrap: balance;
}
html[data-page="coop"] h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  text-wrap: balance;
}
h1, h2, h3 { text-wrap: balance; }
html[data-page="coop"] .kicker {
  white-space: nowrap;
  font-size: 0.68rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dek-sub {
  font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 0.9rem; max-width: 32rem;
}

/* --- V3: anchor targets clear the sticky nav --- */
section[id], h2[id], div#verdict, aside[id] { scroll-margin-top: 4.75rem; }

/* --- 12. Uniform rhythm: 64px desktop / 48px mobile, one value each --- */
html[data-page="coop"] section.narrow { margin-top: 4rem; }
html[data-page="coop"] .essentials { margin-top: 4rem; }
html[data-page="coop"] .claim { margin-top: 4rem; }
html[data-page="coop"] section.claim.gap9 { margin-top: 4rem; }
html[data-page="coop"] body { padding-bottom: 6.5rem; }
@media (max-width: 560px) {
  html[data-page="coop"] section.narrow { margin-top: 3rem; }
  html[data-page="coop"] .essentials, html[data-page="coop"] .claim,
  html[data-page="coop"] section.claim.gap9 { margin-top: 3rem; }
}

/* --- 12. Header: logo mark + real sticky nav with subtle shadow --- */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 8px;
  background: var(--gold); color: #fffaf3;
  font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1rem;
  margin-right: 0.5rem; vertical-align: -0.35rem;
}
.wordmark { display: inline-flex; align-items: center; }
.topnav {
  position: sticky; top: 0; z-index: 15;
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(62, 44, 20, 0.07);
  margin-left: -1.25rem; margin-right: -1.25rem;
  padding-left: 1.25rem; padding-right: 1.25rem;
}
@media (max-width: 720px) {
  .topnav {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 0 1.2rem;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; flex: 0 0 auto; }
}

/* --- 13. Hero: 55/45 desktop, quick answer as 3 bold bullets --- */
@media (min-width: 900px) {
  .hero9 { grid-template-columns: 1.22fr 1fr; }
}
.quick-answer ul { margin: 0.45rem 0 0; padding-left: 1.25rem; }
.quick-answer li { margin: 0.35rem 0; font-size: 1rem; line-height: 1.6; }
.quick-answer p { margin: 0; }
.hero9-diagram svg { padding: 0.5rem; }

/* --- V14: short fact lists become a 2x2 grid on desktop, not a long stack --- */
@media (min-width: 720px) {
  .facts-2col { grid-template-columns: 1fr 1fr; }
}

/* --- 5. Repetition killed: ONE "Worth noting" per page (gap section only).
   The other five callouts are distinct, specific, each used once. --- */
.callout {
  background: var(--accent-soft); border: 1px solid #f2d5c6;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 1rem 1.2rem;
  margin: 1.2rem 0 0.9rem; box-shadow: var(--shadow-sm); max-width: 68ch;
}
.callout h3 {
  font-family: Inter, system-ui, sans-serif; font-size: 0.72rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent-2); margin: 0 0 0.35rem; font-weight: 700;
}
.callout p { margin: 0 0 0.5rem; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }

/* --- 5. CTA variety: full pill only in hero + verdict; text link elsewhere --- */
.cta-text { margin: 1.1rem 0 0; }
.cta-link {
  font-weight: 700; font-size: 1.02rem; color: var(--accent);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.cta-link:hover { color: var(--accent-2); }

/* --- 4. Cards: no void — mobile sizes to content; desktop equal heights
   with content distributed (time pill pinned to the bottom) --- */
.claim-steps li, .test9 .steps9 li, .claim-facts li {
  display: flex; flex-direction: column;
}
.claim-steps li .how-time, .test9 .steps9 li .how-time {
  margin-top: auto;
}
.how-time {
  display: block; margin-top: 0.6rem; align-self: flex-start;
}
@media (max-width: 719px) {
  .claim-steps, .test9 .steps9 { grid-auto-rows: auto; }
  .claim-steps li, .test9 .steps9 li { height: auto; }
}
.pros, .cons { display: flex; flex-direction: column; }

/* --- 7. Order: positive BEFORE negative on EVERY viewport --- */
@media (max-width: 720px) { .see-no-wrap { order: 0; } }
.see-wrap { align-items: start; }
.see-group { display: flex; flex-direction: column; }

/* --- 6. Table: zebra rows, compact 2-column cards on mobile --- */
.ess-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.ess-table th { white-space: nowrap; }
@media (max-width: 560px) {
  .ess-table, .ess-table tbody { display: block; }
  .ess-table tr {
    display: grid; grid-template-columns: 8.25rem 1fr; gap: 0 0.8rem;
    padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-soft);
  }
  .ess-table tr:last-child { border-bottom: 0; }
  .ess-table th, .ess-table td { display: block; width: auto; padding: 0; border-bottom: 0; }
  .ess-table th { padding-top: 0.15rem; font-size: 0.7rem; }
  .ess-table td { padding-top: 0; }
}

/* --- 9. Example box as a real list, not a running quote --- */
.example-box ul { margin: 0.5rem 0 0.6rem; padding-left: 1.25rem; }
.example-box li { margin: 0.2rem 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92rem; }
.example-box p:last-child { margin-bottom: 0; }

/* --- 10. FAQ: bigger "+" (20px) aligned to the first line, distinct open state --- */
.faq-item summary {
  display: flex; align-items: flex-start; gap: 0.6rem;
  text-wrap: balance;
}
.faq-item summary::before {
  flex: 0 0 auto; width: 1.5rem; height: 1.5rem;
  font-size: 1.25rem; margin-right: 0; margin-top: 0.1rem;
}
.faq-item[open] { background: #fdf8ec; }

/* --- 11. Footer/sources: readable disclosure, real buttons, chips --- */
html[data-page="coop"] footer.narrow .disclose {
  font-size: 0.85rem; color: var(--muted-strong);
}
.btn-top {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--ink); color: #fffaf3; border-radius: 999px;
  padding: 0.5rem 1rem; font-weight: 700; text-decoration: none; font-size: 0.9rem;
}
.btn-top:hover { color: #fffaf3; background: #3a2d1e; }
.foot-date { color: var(--muted-strong); font-size: 0.88rem; margin-left: 0.6rem; }
.chip-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}

/* --- 2. Sticky bar REBUILT: floating pill, bottom-LEFT (badge lives
   bottom-right), proper margins, never covers the footer (JS hides it
   when the footer is in view; body has 6.5rem bottom padding) --- */
.bar {
  left: 16px; right: auto; bottom: 16px;
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom)) 1.1rem;
  box-shadow: var(--shadow-lg);
  gap: 0.75rem;
}
/* V8: below 720px the bar is CTA + close only — at 561–719px the price
   text truncated to "$67 one-time · 60-day guara…" */
@media (max-width: 719px) {
  .bar .bar-text { display: none; }
}
.bar .bar-text { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .cta { flex: 0 0 auto; white-space: nowrap; }
.bar-close { order: 4; min-width: 44px; min-height: 44px; }
@media (max-width: 560px) {
  .bar {
    border-radius: 18px; padding: 0.5rem; gap: 0.5rem;
    left: 16px; right: 16px; max-width: none;
  }
  .bar .bar-text, .bar span.bar-disclose { display: none; }
  .bar .cta { flex: 1 1 auto; }
  .bar-close { flex: 0 0 auto; }
}


/* --- Audit leftovers: decorative quote scaled down, captions higher contrast --- */
.testimonial::before { font-size: 3rem; top: 0.2rem; right: 1rem; }
.hero9-diagram figcaption, .hen-fig figcaption { color: var(--muted-strong); }

/* =====================================================================
   COOP v19 — fixes for the v18 real audit (AUDIT-REAL-v18.md).
   ===================================================================== */

/* --- W1: the sticky bar STILL truncated at >=720px (V8 was half-fixed).
   The 560px cap never changed, so ~614px of content (text + disclose +
   CTA + close) never fit the pill. Widen the cap on wide screens, and hide
   the disclose in the 720-899px band, where text + CTA + close already
   fill the 560px pill. The bar text itself was also shortened in the HTML
   ("$67 one-time · 60-day", was "... · 60-day guarantee"). --- */
@media (min-width: 900px) { .bar { max-width: 640px; } }
@media (min-width: 720px) and (max-width: 899px) { .bar .bar-disclose { display: none; } }

/* --- W2: the price badge's nowrap content (~273px) is wider than the
   240px available at a 320px viewport — tighten it below 380px. --- */
@media (max-width: 380px) {
  .price-badge { padding: 0.5rem 0.7rem; gap: 0.4rem; }
  .price-badge strong { font-size: 1.3rem; }
  .price-badge span { font-size: 0.82rem; }
}

/* =====================================================================
   COOP v20 — fixes for the desktop (800/1000, D1–D18) + mobile
   (870/1000, D1–D9) audits of the live v19. Host is now Cloudflare
   Pages: https://chicken-coop.pages.dev — this page is the home page
   (also served at /chicken-coop). D1 (canonical/og) is fixed in the HTML.
   ===================================================================== */

/* --- D2: hero void. Centre the diagram column, widen it slightly,
   compact the copy (see the mobile block below), and add a colour key
   under the SVG so the figure fills its column. --- */
.hero9 { align-items: center; }
@media (min-width: 900px) {
  .hero9 { grid-template-columns: 1fr 1.08fr; padding-top: 2.2rem; padding-bottom: 2.3rem; }
}
.diagram-key {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem;
  margin: 0.75rem 0 0; padding: 0; font-size: 0.82rem; color: var(--muted-strong); line-height: 1.5;
}
.diagram-key .sw {
  display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px;
  background: var(--sw); border: 1px solid rgba(0,0,0,0.18);
  margin-right: 0.35rem; vertical-align: -0.08rem;
}

/* --- D3 is HTML (facts-2col on the library list); the 7th card spans full width. --- */
@media (min-width: 720px) { .claim-facts.facts-2col li:last-child { grid-column: 1 / -1; } }

/* --- D4: hen photo wider and centred in its column. --- */
.hen-fig { max-width: 720px; margin-left: auto; margin-right: auto; }

/* --- D5: no verified finished-coop photo exists — the hero stays
   diagram-only. NOT fixed (cannot be fixed without inventing an image). --- */

/* --- D6 (desktop) / D5 (mobile): the guide diagram is gone, replaced by
   a measurements table (HTML). --- */
.measure-table { margin: 1.2rem 0 1.4rem; }
.measure-table caption {
  caption-side: top; text-align: left; font-size: 0.85rem;
  color: var(--muted-strong); margin-bottom: 0.5rem; line-height: 1.55;
}

/* --- D7: demote the testimonial — it is the least reliable content, so
   it no longer gets the prettiest type on the page. --- */
.testimonial { border-left: 3px solid var(--line); }
.testimonial::before { font-size: 2rem; color: #e7dcc4; }
.testimonial p {
  font-family: Inter, system-ui, sans-serif; font-size: 1.05rem;
  font-style: normal; font-weight: 500; line-height: 1.6; color: var(--ink-soft);
}

/* --- D9: one full-bleed moment on wide screens — the guide band touches
   the viewport edges; its inner content stays centred. --- */
html { overflow-x: clip; }
@media (min-width: 900px) {
  html[data-page="coop"] .guide9 {
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    border-radius: 0; border-left: 0; border-right: 0;
    padding-left: 0; padding-right: 0;
  }
  html[data-page="coop"] .guide9 > .narrow { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* --- D11 + mobile D7: the pdf box is no longer a full-width gold band;
   it is a compact card, and its h2 gets the gold rule like every other. --- */
html[data-page="coop"] .pdf-box.narrow { max-width: 680px; }
html[data-page="coop"] .pdf-box h2::before {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-bottom: 0.85rem;
}

/* --- D13: topnav labels now match their headings; the price chip fills
   the rest of the bar. --- */
.nav-price {
  margin-left: auto; font-size: 0.85rem; font-weight: 700;
  color: var(--accent); white-space: nowrap; align-self: center;
}
@media (max-width: 720px) { .nav-price { display: none; } }

/* --- D14: How-it-works cards size to their content on desktop — no more
   void under the short cards. --- */
@media (min-width: 720px) { .claim-steps { grid-auto-rows: auto; } }
.claim-steps li .how-time { margin-top: 0.6rem; }

/* v21: see above — checklist rules removed with the checkboxes. */

/* --- D16: ~145px of dead cream below the footer. The bar hides when the
   footer is in view (track-20.js IntersectionObserver), so 3rem of body
   padding is enough — 80px total with the page's own 2rem. --- */
html[data-page="coop"] body { padding-bottom: 3rem; }

/* --- D17: the gap section loses its cream card — one mould for every
   analysis section. --- */
.gap9 { background: transparent; border: 0; box-shadow: none; padding: 0; }
@media (max-width: 560px) { .gap9 { padding: 0; border-radius: 0; } }

/* --- D18: Back to top is no longer the only black element — a paper
   pill with a border, like the other quiet controls. --- */
.btn-top { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-top:hover { background: var(--bg-soft); color: var(--ink); }

/* --- Mobile D4: only the first guide note is an alert; the other two
   are plain notes. --- */
.guide9 .note-plain { background: none; border: 0; border-left: 0; padding: 0; box-shadow: none; }

/* --- Mobile D6: the "Independent review" note wraps to its own line
   instead of vanishing on small screens. --- */
@media (max-width: 480px) {
  html[data-page="coop"] .mast { flex-wrap: wrap; }
  html[data-page="coop"] .mast-note { display: block; flex-basis: 100%; order: 3; margin-top: 0.15rem; }
}

/* --- Mobile D8: the topnav fades at its right edge so a narrow screen
   shows that it scrolls sideways. --- */
@media (max-width: 720px) {
  .topnav {
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
  }
}
@media (max-width: 360px) {
  .topnav { gap: 0 0.9rem; }
  .topnav a { font-size: 0.85rem; }
}

/* --- Mobile D9 (320px): kicker and essentials table get more room. --- */
@media (max-width: 380px) {
  html[data-page="coop"] .kicker { letter-spacing: 0.08em; font-size: 0.62rem; }
  .ess-table tr { grid-template-columns: 7rem 1fr; }
}

/* --- Mobile D1: compact hero so the first CTA sits above the fold at
   390x844 (was ~925px from the top, ~80px below the fold). Savings:
   mast/topnav padding ~16px, hero margin/padding ~26px, quick-answer
   ~35px (shorter copy + tighter padding), dek/method/disclose ~30px —
   roughly 105px, putting the CTA top near ~820px. --- */
@media (max-width: 560px) {
  html[data-page="coop"] .mast { padding-top: 0.8rem; }
  .topnav { padding-top: 0.55rem; padding-bottom: 0.7rem; }
  .hero9 { margin-top: 0.9rem; }
  html[data-page="coop"] h1 { margin-bottom: 0.7rem; }
  html[data-page="coop"] .kicker { margin-bottom: 0.6rem; }
  .quick-answer { padding: 0.7rem 0.95rem; margin-bottom: 0.7rem; }
  .quick-answer li { margin: 0.25rem 0; }
  .dek { font-size: 1.12rem; margin-bottom: 0.6rem; }
  .dek-sub { margin-bottom: 0.6rem; }
  .method { margin-bottom: 0.1rem; }
  .cta-disclose { margin-top: 0.5rem; margin-bottom: 0.4rem; }
}

/* =====================================================================
   COOP v21 — closes the affiliate leaks (A1–A3) + removes 4 off-topic
   items (B1–B4) + fixes the PHOTO-audit defects: desktop 410/1000
   (22 defects) and mobile 520/1000 (20 defects) of the live v19.
   Host stays Cloudflare Pages: https://chicken-coop.pages.dev.
   Every rule below is an override — it lives after the v20 rules, so it
   wins at equal specificity. No new images, no new fonts, no new claims.
   ===================================================================== */

/* --- Photo D2 (desktop) + D9 (mobile): the page is a narrow document at
   1920px. Widen the column on very wide screens. --- */
@media (min-width: 1600px) {
  html[data-page="coop"] .page { max-width: 1320px; }
  html[data-page="coop"] .narrow { max-width: 1240px; }
}

/* --- Photo D3/D21 (desktop) + D8/D13 (mobile): beige monochrome, one
   mould everywhere. Sections now alternate paper / forest-tint /
   gold-tint cards, so the page has a visible rhythm instead of a beige
   wall. Inner paper cards keep their borders, so they still read. --- */
html[data-page="coop"] section.claim {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow-sm);
}
html[data-page="coop"] section.claim:nth-of-type(even) {
  background: var(--forest-soft); border-color: #d5e0cd;
}
html[data-page="coop"] section.claim:nth-of-type(3n) {
  background: var(--gold-soft); border-color: #ecdfc0;
}
@media (max-width: 560px) {
  html[data-page="coop"] section.claim { padding: 1.7rem 1.25rem; }
}
/* The gap section keeps its own spacing inside the card rhythm. */
section.claim.gap9 { margin-top: 4rem; }

/* --- Photo D10/D14 (desktop): fact cards all look the same. Cycle the
   top border — gold, forest, terracotta — so each card has its own
   accent. Applies to both "Why most free plans" and the library list. --- */
.claim-facts li { border-top: 3px solid var(--gold); }
.claim-facts li:nth-child(3n+2) { border-top-color: var(--forest); }
.claim-facts li:nth-child(3n+3) { border-top-color: var(--accent); }

/* --- Photo D4 (desktop): H1 with no drama. Bigger and tighter on wide
   screens, so it dominates the hero instead of reading like a chapter
   title. --- */
@media (min-width: 1200px) {
  html[data-page="coop"] h1 { font-size: clamp(2.5rem, 5.8vw, 4.1rem); letter-spacing: -0.035em; }
  html[data-page="coop"] h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
}

/* --- Photo D5 (desktop): a weightless header. Stronger wordmark, a
   real logo mark, and the "Independent review" note as a bordered pill. --- */
html[data-page="coop"] .wordmark { font-size: 1.25rem; }
html[data-page="coop"] .logo-mark { width: 2rem; height: 2rem; font-size: 1.15rem; border-radius: 9px; }
html[data-page="coop"] .mast-note {
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 0.3rem 0.8rem; background: var(--paper);
}

/* --- Photo D11 (desktop) + D11 (mobile): the step numbers are tiny and
   the steps look like paragraphs. Bigger circles, bolder titles. --- */
.claim-steps li::before {
  font-size: 1.9rem; width: 2.6rem; height: 2.6rem;
}
.claim-steps li strong { font-size: 1.06rem; }

/* --- Photo D12 (desktop): "THE CATCH" and "WORTH NOTING" are the same
   beige-on-beige box. They are now two different callouts: Worth noting
   is green (a note), The catch / Check this / If it fails stay terracotta
   (a warning). --- */
.worth-noting {
  background: var(--forest-soft); border: 1px solid #d5e0cd;
  border-left: 3px solid var(--forest);
}
.worth-noting h3 { color: var(--forest); }

/* --- Photo D13 (desktop): the "What you will see" panels are dense.
   More air inside them, and a clear divider between the two groups. --- */
.see-group { padding: 1.5rem 1.6rem 1.4rem; }
.see-next li { padding: 0.55rem 0 0.55rem 1.8rem; }
@media (max-width: 819px) {
  .see-group.see-no-wrap { margin-top: 0.35rem; }
}

/* --- Photo D8 (desktop) + D9 (mobile): the essentials table reads like
   a spreadsheet and the $67 is never celebrated. The price row is now a
   gold highlight with a large $67; the total-cost row gets a bold lead. --- */
.ess-table tr:first-child { background: var(--gold-soft); }
.ess-table tr:first-child td strong { font-size: 1.5rem; }
.ess-table tr:nth-child(2) td strong { font-size: 1.12rem; }

/* --- Photo D15 (desktop): the cut-list test was a dead form. It is now
   a static tool card: fixed ✓ marks in the number circles, and the
   filled example carries a PASS chip. No inputs anywhere on the page. --- */
.test9 .steps9 li::before {
  content: attr(data-n); background: var(--forest); color: #fffaf3;
  font-size: 1.35rem;
}
.pass-chip {
  display: inline-block; background: var(--forest); color: #fffaf3;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 999px; padding: 0.25rem 0.7rem; margin-right: 0.45rem;
  vertical-align: 0.05rem;
}
.example-box { border-top: 3px solid var(--forest); }

/* --- Photo D16 (desktop) + D14 (mobile): the hen photo is a bare image
   with a shrugging caption. It now has a real frame and a drawn caption. --- */
.hen-fig {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.7rem; box-shadow: var(--shadow-md);
}
.hen-fig img { border-radius: 10px; }
.hen-fig figcaption {
  margin-top: 0.65rem; padding: 0.55rem 0.7rem 0.15rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem; color: var(--ink-soft); font-weight: 500;
}

/* --- Photo D17 (desktop) + D17 (mobile): the verdict is flat text. It is
   now the visual climax — a full-bleed dark forest band with the white
   verdict card inside it, and PROS/CONS headers as colour chips. --- */
@media (min-width: 900px) {
  html[data-page="coop"] section.verdict-band {
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    background: var(--forest); padding: 3.2rem 0;
    max-width: none;
  }
  html[data-page="coop"] section.verdict-band > .verdict { margin: 0 auto; max-width: 1020px; }
}
@media (max-width: 899px) {
  html[data-page="coop"] section.verdict-band {
    background: var(--forest); border-radius: var(--radius-lg);
    padding: 1.4rem 1.2rem; margin-left: 0; margin-right: 0;
  }
  html[data-page="coop"] section.verdict-band > .verdict { margin: 0; }
}
.pros-cons h3 {
  display: inline-block; border-radius: 999px; padding: 0.3rem 0.85rem;
}
.pros h3 { background: var(--forest); color: #fffaf3; }
.cons h3 { background: var(--accent); color: #fffaf3; }

/* --- Photo D18 (desktop) + D12 (mobile): the FAQ reads like a text file
   and questions hyphenate mid-word. Designed accordion: bigger "+" (now
   1.8rem), clear separators, and NO hyphenation anywhere in a question. --- */
.faq-item { margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-size: 1.1rem;
  -webkit-hyphens: none; -ms-hyphens: none; hyphens: none;
  overflow-wrap: normal; word-break: normal;
}
.faq-item summary::before { width: 1.8rem; height: 1.8rem; font-size: 1.4rem; }
.faq-item[open] { border-left: 3px solid var(--gold); }

/* --- Photo D19 (desktop) + D19 (mobile): Sources and the footer are a
   grey appendix. Sources is now a designed card; notes are separated. --- */
html[data-page="coop"] section.sources {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.9rem 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
html[data-page="coop"] section.sources .note {
  padding-bottom: 0.7rem; margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
}
html[data-page="coop"] section.sources .note:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
@media (max-width: 560px) {
  html[data-page="coop"] section.sources { padding: 1.5rem 1.25rem 1.3rem; }
}

/* --- Photo D20 (desktop) + D1 (mobile): the sticky bar is a crooked pill
   stuck in the bottom-left corner, and it covers content while scrolling.
   It is now CENTRED at the bottom, and it hides while the visitor scrolls
   down (see track-21.js) — it only returns on scroll-up, on stop, after
   a close + one more viewport, or after ~45s. --- */
.bar {
  left: 50%; right: auto;
  transform: translate(-50%, 110%);
}
.bar.is-on { transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .bar { left: 16px; right: 16px; transform: translateY(110%); }
  .bar.is-on { transform: none; }
}

/* --- Photo D22 (desktop): the gold rule is missing on some h2s. It now
   applies to EVERY h2 on the page, including asides. (The verdict h2
   keeps its card's gold top border instead — by design.) --- */
html[data-page="coop"] aside h2::before {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-bottom: 0.85rem;
}

/* --- Photo D6 (desktop) + D16 (mobile): the sticky topnav can slice
   text underneath it while scrolling. Stronger separation: solid
   background, heavier shadow, and more scroll clearance for anchors. --- */
.topnav { box-shadow: 0 4px 16px rgba(62, 44, 20, 0.10); }
section[id], h2[id], div#verdict, aside[id] { scroll-margin-top: 5.25rem; }
@media (max-width: 720px) {
  /* The last nav link was glued to the right edge on phones. */
  .topnav { padding-right: 2rem; }
}

/* --- Photo D7 (mobile): the H1 breaks into 3 ragged lines on phones.
   Slightly smaller and narrower on small screens, so it breaks clean. --- */
@media (max-width: 560px) {
  html[data-page="coop"] h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); max-width: 16ch; }
}

/* --- Photo D3 (mobile): "Last updated" wraps crookedly next to "Back to
   top". On phones they stack. --- */
@media (max-width: 560px) {
  html[data-page="coop"] footer.narrow p:first-child {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem;
  }
  .foot-date { margin-left: 0; }
}

/* --- Photo D18 (mobile): the honesty lines in the hero read like grey
   small print smudging the hero. They stay — they are refund protection —
   but at a readable size and in a stronger colour. --- */
.method { font-size: 0.9rem; }
.cta-disclose { font-size: 0.85rem; }

/* --- Photo D1/D5/D6 (desktop) + D6 (mobile): no real finished-coop photo
   exists, so the hero stays diagram-led. The diagram itself is richer in
   v21 (vent slots + ramp added to the SVG, and the colour key extended)
   and its column is wider, so the hero reads as a plan, not a sketch. --- */
@media (min-width: 900px) {
  .hero9 { grid-template-columns: 1fr 1.15fr; }
}
