/* Breeders Aid Help Centre — builds on /assets/styles.css (same colours and type). */
.help-main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 18px; font-size: 15px; font-weight: 700; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--coral); }
.button.ghost { background: #fff; color: var(--ink); }
.button { border: 0; cursor: pointer; font: inherit; font-weight: 900; }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }

/* Hero and search */
.help-hero { padding: 26px 0 10px; max-width: 760px; }
.help-hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; margin: 0 0 12px; }
.help-search { position: relative; margin: 8px 0 6px; }
.help-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink);
  padding: 16px 84px 16px 20px; border-radius: 999px; border: 2px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.help-search input::placeholder { color: var(--faint); font-weight: 600; }
.search-bernie { position: absolute; right: 10px; bottom: -6px; width: 64px; height: 64px; pointer-events: none; }
.search-bernie img { width: 64px; height: 64px; object-fit: contain; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.help-search.is-searching .search-bernie img, .help-search.is-empty .search-bernie img { opacity: 1; transform: none; }
.help-results { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; margin: 12px 0 20px; }
.help-results a { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.help-results a:hover, .help-results a:focus { background: var(--cream-2); }
.help-results strong { display: block; font-size: 17px; }
.help-results span { color: var(--soft); font-size: 15px; }
.help-results .cat { color: var(--coral); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.no-results { display: flex; gap: 14px; align-items: center; padding: 10px 12px; }
.no-results img { width: 72px; height: 72px; flex: none; }

/* Featured guide and category cards */
.featured, .cat-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.featured { margin: 34px 0 30px; padding: 26px 26px 22px; border-left: 6px solid var(--grape); }
.featured h2 { margin: 0 0 6px; font-size: 26px; }
.featured h2 a, .cat-card h2 a { color: var(--ink); text-decoration: none; }
.featured-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px 22px; margin-top: 18px; }
.cat-card { padding: 22px 22px 18px; }
.cat-card h2 { font-size: 22px; margin: 0 0 4px; }
.cat-card p { color: var(--soft); margin: 0 0 10px; }
.cat-card ul { margin: 0 0 10px; padding-left: 18px; }
.cat-card li { margin: 3px 0; }
.cat-card li a { color: var(--ink); }
.cat-card .more { font-weight: 800; color: var(--coral); text-decoration: none; }

/* Bernie peeking over a card's top edge (only his head shows; the card hides the rest) */
.peek { position: absolute; top: -40px; right: 22px; width: 64px; height: 40px; overflow: hidden; pointer-events: none; }
.peek img { display: block; width: 64px; height: 64px; transform: translateY(44px); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.peek.up img { transform: translateY(4px); }
.peek.up.tilt img { transform: translateY(4px) rotate(-9deg); transform-origin: 50% 80%; }
.peek.chin { top: -46px; height: 46px; }
.peek.chin img { transform: translateY(2px); }

/* Category and article pages */
.cat-head { max-width: 760px; padding: 6px 0 4px; }
.cat-head h1, .article h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 10px; }
.art-list { list-style: none; padding: 0; margin: 10px 0; max-width: 760px; display: grid; gap: 12px; }
.art-list a { display: block; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px 20px; text-decoration: none; color: var(--ink); }
.art-list a span { display: block; color: var(--soft); margin-top: 2px; }
.art-list li.is-done a strong::after { content: '  ✓ done'; color: var(--mint); font-size: 14px; }
.article { max-width: 760px; }
.article .eyebrow a { color: inherit; text-decoration: none; }
.article-body h2 { font-size: 26px; margin: 34px 0 10px; }
.article-body h3 { font-size: 20px; margin: 22px 0 6px; }
.article-body p, .article-body li { color: #3e3656; font-size: 18px; line-height: 1.55; }
.article-body ul.bullets { padding-left: 20px; }
.article-body ul.bullets li { margin: 8px 0; }
.toc { background: var(--cream-2); border-radius: 18px; padding: 12px 20px; margin: 8px 0 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc a { color: var(--ink); font-weight: 700; }
.shot { margin: 12px 0 18px; }
.shot img { display: block; width: min(300px, 78vw); height: auto; border-radius: 26px; border: 6px solid #2B2340; box-shadow: var(--shadow); background: #fff; }
.shot figcaption { color: var(--soft); font-size: 15px; margin-top: 8px; max-width: 320px; }
.done-box { position: relative; margin: 36px 0 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 110px 20px 22px; }
.done-box p { margin: 0 0 10px; font-weight: 800; }
.done-box .done-msg { margin: 10px 0 0; color: var(--mint); }
.done-bernie { position: absolute; right: 18px; bottom: 12px; width: 72px; height: 72px; }
.done-bernie img { width: 72px; height: 72px; object-fit: contain; }
.back a { font-weight: 800; color: var(--coral); text-decoration: none; }
.related { margin-top: 26px; }
.related h2 { font-size: 20px; }
.help-footer { max-width: 1120px; margin: 0 auto; padding: 20px 20px 120px; color: var(--soft); }
.help-footer .small { font-size: 14px; color: var(--faint); }

/* The corner Bernie */
.corner-bernie { position: fixed; right: 16px; bottom: 12px; width: 84px; height: 84px; z-index: 5; pointer-events: none; }
.corner-bernie img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(43,35,64,.12)); }

@media (max-width: 560px) {
  .help-search input { font-size: 16px; padding-right: 70px; }
  .search-bernie, .search-bernie img { width: 54px; height: 54px; }
  .toc ol { columns: 1; }
  .corner-bernie, .corner-bernie img { width: 64px; height: 64px; }
  .done-box { padding-right: 96px; }
  .article-body p, .article-body li { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .peek img, .search-bernie img { transition: none; }
}

/* Printing (the whelping quick-start in particular): one clean page, no site chrome. */
@media print {
  .site-header, .crumbs, .help-footer, .corner-bernie, .done-box, .related, .back, .print-row, .toc, .skip { display: none !important; }
  body.help { background: #fff; }
  .help-main { padding: 0; max-width: none; }
  .article { max-width: none; }
  .article h1 { font-size: 26px; }
  .article .lead { font-size: 15px; margin-bottom: 8px; }
  .article-body h2 { font-size: 18px; margin: 14px 0 4px; break-after: avoid; }
  .article-body p, .article-body li { font-size: 12.5px; line-height: 1.4; color: #000; }
  .steps li { padding-bottom: 6px; }
  .shot { display: none; }
  a { color: #000; text-decoration: none; }
}
.article-body ul.sub { margin: 6px 0 2px; padding-left: 20px; list-style: disc; }
.article-body ul.sub li { padding: 2px 0; counter-increment: none; }
.article-body ul.sub li::before { content: none; }

/* Helpful pose on the featured card, and a nap on an idle page */
.peek.chin.helpful { height: 64px; top: -64px; width: 70px; }
.peek.chin.helpful img { width: 70px; height: 70px; transform: none; }
.nap-bernie { position: absolute; right: 18px; top: -60px; width: 70px; height: 70px; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; z-index: 2; }
.nap-bernie.on { opacity: 1; transform: none; }
.nap-bernie img { width: 70px; height: 70px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .nap-bernie { display: none; } }
