/*!
 * store.css: the happywaggytails.com design system ("warm meadow", restyled 30 Oct 2026)
 * ------------------------------------------------------------
 * One stylesheet for every page. Palette and type from
 * docs/superpowers/specs/2026-08-30-hwt-store-design.md §3; the October
 * 2026 restyle (docs/design-2026-10-30.md) keeps the tokens, the SSI chrome
 * and the page anatomy, and adds: self-hosted Quicksand, an SVG logo, a
 * two-row header with a mega menu and a two-level mobile drawer, the image
 * and placeholder system, a sidebar layout (contents list + fact panel) for
 * articles, callouts, product cards, hub tools, the advert slots and the
 * jigsaw slot.
 *
 * WCAG AA contrast (normal text 4.5:1, focus rings and UI 3:1):
 *   --hwt-ink on --hwt-paper          : 10.94:1  (body text)
 *   --hwt-ink-soft on --hwt-paper     :  6.04:1  (captions, bylines)
 *   --hwt-white on --hwt-ink          : 11.79:1  (footer)
 *   --hwt-white on --hwt-amber-deep   :  5.14:1  (filled buttons)
 *   --hwt-amber-deep on --hwt-paper   :  4.77:1  (amber links, focus ring)
 *   --hwt-amber-deep on --hwt-white   :  5.14:1  (product-card icon, hub tags)
 *   --hwt-meadow-deep on --hwt-paper  :  5.30:1  (links)
 *   --hwt-meadow-deep on --hwt-sky-soft:  5.12:1 (nav hover)
 *   --hwt-white on --hwt-meadow       :  4.86:1  (green fills)
 *   --hwt-amber-onink on --hwt-ink    :  4.71:1  (footer hover, footer focus ring)
 *   #cfe6da on --hwt-ink              :  8.97:1  (footer links)
 *   --hwt-ink on #fdecea (vet alert)  :  9.83:1; #9b1c1c border/heading on #fdecea: 6.38:1
 *   --hwt-ink on #eef3f8 (legal box)  : 10.18:1; #2c5d86 heading on #eef3f8: 6.30:1
 *   --hwt-ink on #eef6ee (good to know): 10.30:1; --hwt-meadow-deep heading: 5.30:1+
 *   --hwt-ink on #fff4e0 (welfare box): 10.62:1; #8a4b0f heading on #fff4e0: 6.49:1
 *   #5c5545 on placeholder stripes (#f3eee4/#ece5d6): 6.4:1 / 5.9:1
 *   Raw --hwt-amber and --hwt-sky are never text or focus colors (2.70:1, 2.09:1 on paper).
 */

/* Self-hosted Quicksand (SIL Open Font License, see /store-assets/fonts/OFL.txt).
   Latin subset only, about 15 KB per weight. No request goes to Google. */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/store-assets/fonts/quicksand-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/store-assets/fonts/quicksand-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so headings barely move when Quicksand arrives. */
@font-face {
  font-family: "Quicksand Fallback";
  src: local("Trebuchet MS"), local("Arial");
  size-adjust: 98%;
  ascent-override: 98%;
  descent-override: 25%;
}

:root {
  /* Brand palette */
  --hwt-paper: #faf6ef;
  --hwt-paper-raised: #ffffff;
  --hwt-paper-warm: #f5eee2;
  --hwt-ink: #31393c;
  --hwt-ink-soft: #565f63;
  --hwt-amber: #d98324;
  --hwt-amber-deep: #9d5f1a;
  --hwt-amber-onink: #df933f;
  --hwt-meadow: #4a7c59;
  --hwt-meadow-deep: #437052;
  --hwt-meadow-soft: #eef6ee;
  --hwt-sky: #7fb3d5;
  --hwt-sky-soft: #eaf4fa;
  --hwt-border: #e4dcc9;
  --hwt-white: #ffffff;

  --hwt-font-heading: "Quicksand", "Quicksand Fallback", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --hwt-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --hwt-radius: 14px;
  --hwt-radius-sm: 8px;
  --hwt-shadow: 0 6px 20px rgba(49, 57, 60, 0.08);
  --hwt-shadow-lg: 0 18px 44px rgba(49, 57, 60, 0.18);
  --hwt-max: 1180px;
  --hwt-measure: 70ch;
  --hwt-gutter: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* The bare element rules below skip /store/ pages (<body class="hwt-store">),
   which keep their own theme and only borrow the shared header and footer.
   :where() adds no specificity, so main-site pages are unaffected. */
:where(body:not(.hwt-store)) {
  margin: 0;
  background: var(--hwt-paper);
  color: var(--hwt-ink);
  font-family: var(--hwt-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
@media (min-width: 880px) {
  :where(body:not(.hwt-store)) { font-size: 1.075rem; }
}

:where(body:not(.hwt-store)) :is(h1, h2, h3, h4) {
  font-family: var(--hwt-font-heading);
  font-weight: 700;
  color: var(--hwt-ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

:where(body:not(.hwt-store)) h1 { font-size: clamp(1.85rem, 1.45rem + 1.7vw, 2.7rem); letter-spacing: -0.01em; }
:where(body:not(.hwt-store)) h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
:where(body:not(.hwt-store)) h3 { font-size: 1.15rem; font-weight: 700; }

:where(body:not(.hwt-store)) p { margin: 0 0 1em; }
:where(body:not(.hwt-store)) :is(ul, ol) { margin: 0 0 1em; padding-left: 1.3rem; }
:where(body:not(.hwt-store)) li { margin-bottom: 0.35em; }
:where(body:not(.hwt-store)) li::marker { color: var(--hwt-amber-deep); }

:where(body:not(.hwt-store)) a { color: var(--hwt-meadow-deep); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
:where(body:not(.hwt-store)) a:is(:hover, :focus) { color: var(--hwt-amber-deep); }

:where(body:not(.hwt-store)) img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--hwt-amber-deep);
  outline-offset: 2px;
}

/* Dark-background scope (footer): --hwt-amber-deep on ink is only 2.29:1,
   so the ring color is --hwt-amber-onink (4.71:1) here. */
.hwt-footer :focus-visible {
  outline-color: var(--hwt-amber-onink);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 0; top: -60px; background: var(--hwt-ink);
  color: var(--hwt-white); padding: 0.7em 1.2em; z-index: 10000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ── Tail-curve divider (decorative) ── */
.hwt-tail-rule {
  border: none; height: 10px; margin: 2.4rem 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10' viewBox='0 0 60 10'%3E%3Cpath d='M0 5 C 10 -3, 20 13, 30 5 C 40 -3, 50 13, 60 5' stroke='%237fb3d5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; opacity: 0.6;
}

/* ══════════════════════════ HEADER ══════════════════════════
   Row 1: logo, Amazon search, store selector (hamburger on phones).
   Row 2: the section menu (desktop only; phones use the drawer). */
.hwt-header {
  position: relative;
  background: var(--hwt-paper-raised);
  border-bottom: 1px solid var(--hwt-border);
}
.hwt-header-bar {
  max-width: var(--hwt-max); margin: 0 auto; padding: 0.7rem var(--hwt-gutter);
  display: flex; align-items: center; gap: 1rem 1.5rem; position: relative; z-index: 3;
}
.hwt-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--hwt-font-heading); font-weight: 700; font-size: 1.32rem; line-height: 1.1;
  color: var(--hwt-ink); text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.hwt-logo:is(:hover, :focus) { color: var(--hwt-ink); }
.hwt-logo em { font-style: normal; color: var(--hwt-amber-deep); }
.hwt-logo-mark { display: block; width: 42px; height: 42px; flex: none; }
.hwt-logo-mark .hwt-logo-tail { transform-origin: 33px 30px; transition: transform 0.3s ease; }
.hwt-logo:hover .hwt-logo-tail { animation: hwt-wag 0.5s ease-in-out 2; }
@keyframes hwt-wag { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 75% { transform: rotate(12deg); } }

/* Amazon search, slim, in row 1 */
.hwt-search-bar {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem 0.9rem; flex-wrap: wrap;
}
.hwt-search-inner { display: contents; }
.search-form {
  display: flex; gap: 0; flex: 1 1 340px; min-width: 0; max-width: 560px;
  border: 1px solid var(--hwt-border); border-radius: 999px; background: var(--hwt-white);
  overflow: hidden;
}
.search-form:focus-within { border-color: var(--hwt-meadow); box-shadow: 0 0 0 3px rgba(74,124,89,0.18); }
.search-category, #site-search {
  font-family: var(--hwt-font-body); font-size: 0.9rem; padding: 0.5rem 0.75rem;
  border: 0; background: transparent; color: var(--hwt-ink); min-width: 0;
}
.search-category { flex: 0 1 150px; border-right: 1px solid var(--hwt-border); background: var(--hwt-paper); border-radius: 0; }
#site-search { flex: 1 1 140px; }
#site-search:focus-visible, .search-category:focus-visible { outline-offset: -3px; }
.search-form button {
  flex: none; font-family: var(--hwt-font-heading); font-weight: 700; font-size: 0.88rem;
  background: var(--hwt-meadow); color: var(--hwt-white); border: none;
  padding: 0.5rem 1.05rem; cursor: pointer;
}
.search-form button:hover { background: var(--hwt-meadow-deep); }
.search-form button:focus-visible { outline-offset: -3px; outline-color: var(--hwt-ink); }

/* Amazon store selector (rendered by amzstore-ui.js): a quiet pill. A
   reserved min-height stops the header growing when the script fills it. */
.store-block { font-size: 0.8rem; min-height: 30px; display: flex; align-items: center; flex: none; }
@media (min-width: 601px) {
  /* reserve the pill's width so the search field doesn't narrow when the script fills it */
  .store-block { min-width: 11.5rem; justify-content: flex-end; }
}
.store-block .gstore-indicator {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--hwt-border); border-radius: 999px; padding: 0.15rem 0.2rem 0.15rem 0.65rem;
  background: var(--hwt-paper); color: var(--hwt-ink-soft);
}
.store-block .gstore-label { color: var(--hwt-ink-soft); white-space: nowrap; }
.store-block .gstore-full { display: none; }
.store-block .gstore-short { display: inline; }
.store-block .gstore-change-btn {
  font: 700 0.75rem/1 var(--hwt-font-body); color: var(--hwt-meadow-deep);
  background: var(--hwt-white); border: 1px solid var(--hwt-border); border-radius: 999px;
  padding: 0.3rem 0.6rem; cursor: pointer;
}
.store-block .gstore-change-btn:hover { background: var(--hwt-sky-soft); }

.hwt-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--hwt-border);
  border-radius: var(--hwt-radius-sm); background: var(--hwt-paper); cursor: pointer; flex: none;
}
.hwt-hamburger span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--hwt-ink); }

/* Row 2: section menu */
.hwt-nav { border-top: 1px solid #f0ebdd; background: var(--hwt-paper-raised); position: relative; z-index: 2; }
.hwt-nav-list {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem;
  max-width: var(--hwt-max); margin: 0 auto; padding: 0.25rem calc(var(--hwt-gutter) - 0.6rem);
}
.hwt-nav-list > li { margin: 0; }
.hwt-nav-list > li:last-child { margin-left: auto; }
.hwt-nav-link, .hwt-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-family: var(--hwt-font-heading); font-weight: 700; font-size: 0.95rem;
  color: var(--hwt-ink); text-decoration: none; background: none; border: none;
  padding: 0.55rem 0.65rem; border-radius: var(--hwt-radius-sm); cursor: pointer;
}
.hwt-nav-link:hover, .hwt-dropdown-toggle:hover,
.hwt-dropdown-toggle[aria-expanded="true"] { background: var(--hwt-sky-soft); color: var(--hwt-meadow-deep); }
.hwt-nav-link[aria-current="page"], .hwt-dropdown-toggle.is-current { color: var(--hwt-meadow-deep); box-shadow: inset 0 -3px 0 var(--hwt-amber); }
.hwt-caret { font-size: 0.7em; transition: transform 0.15s ease; }
.hwt-dropdown-toggle[aria-expanded="true"] .hwt-caret { transform: rotate(180deg); }
.hwt-nav-shop {
  background: var(--hwt-amber-deep); color: var(--hwt-white);
  padding: 0.45rem 0.95rem; border-radius: 999px;
}
.hwt-nav-shop:hover, .hwt-nav-shop:focus { background: #874f16; color: var(--hwt-white); }
.hwt-nav-shop svg { width: 16px; height: 16px; }

.hwt-dropdown { position: relative; }
.hwt-dropdown-panel {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 250px; max-width: min(92vw, 340px); max-height: 75vh; overflow-y: auto;
  background: var(--hwt-paper-raised); border: 1px solid var(--hwt-border);
  border-radius: var(--hwt-radius); box-shadow: var(--hwt-shadow-lg);
  padding: 0.6rem; z-index: 50;
}
.hwt-dropdown-panel.is-open { display: block; }
/* Mega panels: several columns of links */
.hwt-dropdown-panel.hwt-mega { max-width: min(92vw, 960px); width: max-content; }
.hwt-mega.is-open { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(200px, 1fr)); gap: 0.2rem 1rem; }
.hwt-dropdown:nth-last-child(-n+4) .hwt-dropdown-panel { left: auto; right: 0; }
#horsesPanel.hwt-mega { left: 50%; right: auto; transform: translateX(-50%); }
.hwt-mega-col { min-width: 0; }
.hwt-dropdown-panel a, .hwt-dropdown-panel .hwt-pending {
  display: block; padding: 0.4rem 0.6rem; border-radius: var(--hwt-radius-sm);
  color: var(--hwt-ink); text-decoration: none; font-size: 0.92rem; line-height: 1.35;
}
.hwt-dropdown-panel a:hover, .hwt-dropdown-panel a:focus { background: var(--hwt-sky-soft); color: var(--hwt-meadow-deep); }
.hwt-dropdown-panel a.hwt-hub-link { font-weight: 700; color: var(--hwt-meadow-deep); }
.hwt-dropdown-panel hr { border: none; border-top: 1px solid var(--hwt-border); margin: 0.4rem 0.2rem; }
.hwt-dropdown-heading {
  font-family: var(--hwt-font-heading); font-weight: 700; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--hwt-ink-soft);
  padding: 0.55rem 0.6rem 0.15rem;
}
.hwt-pending { color: var(--hwt-ink-soft); cursor: default; position: relative; }
.hwt-pending::after {
  content: "soon"; font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--hwt-ink); background: #fbe9d3;
  border-radius: 999px; padding: 0.05em 0.5em; margin-left: 0.5em; vertical-align: middle;
}

/* Mobile drawer: one <details> per section (two levels, no script needed
   to open a section; store-nav.js opens and closes the drawer itself). */
.hwt-drawer { position: fixed; inset: 0; z-index: 9000; visibility: hidden; }
.hwt-drawer[aria-hidden="false"] { visibility: visible; }
.hwt-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(49,57,60,0.5);
  opacity: 0; transition: opacity 0.2s ease;
}
.hwt-drawer[aria-hidden="false"] .hwt-drawer-backdrop { opacity: 1; }
.hwt-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 90vw);
  background: var(--hwt-paper-raised); box-shadow: var(--hwt-shadow-lg);
  transform: translateX(100%); transition: transform 0.22s ease; overflow-y: auto;
  overscroll-behavior: contain;
}
.hwt-drawer[aria-hidden="false"] .hwt-drawer-panel { transform: translateX(0); }
.hwt-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--hwt-border);
  position: sticky; top: 0; background: var(--hwt-paper-raised); z-index: 1;
}
.hwt-drawer-head .hwt-logo { font-size: 1.05rem; }
.hwt-drawer-head .hwt-logo-mark { width: 32px; height: 32px; }
.hwt-drawer-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hwt-border);
  background: var(--hwt-paper); cursor: pointer; font-size: 1rem; color: var(--hwt-ink);
}
.hwt-drawer-body { padding: 0.4rem 1rem 2rem; }
.hwt-drawer-body > a, .hwt-drawer-group a, .hwt-drawer-body .hwt-pending {
  display: block; padding: 0.55rem 0.3rem; border-bottom: 1px solid #f0ebdd;
  color: var(--hwt-ink); text-decoration: none; font-size: 0.97rem;
}
.hwt-drawer-body > a { font-family: var(--hwt-font-heading); font-weight: 700; }
.hwt-drawer-body a:hover, .hwt-drawer-body a:focus { color: var(--hwt-meadow-deep); }
.hwt-drawer-group { border-bottom: 1px solid #f0ebdd; }
.hwt-drawer-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.3rem; font-family: var(--hwt-font-heading); font-weight: 700; font-size: 1.02rem; color: var(--hwt-ink);
}
.hwt-drawer-group > summary::-webkit-details-marker { display: none; }
.hwt-drawer-group > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--hwt-amber-deep); }
.hwt-drawer-group[open] > summary::after { content: "\2212"; }
.hwt-drawer-group > div { padding: 0 0 0.6rem 0.7rem; }
.hwt-drawer-group a:last-child { border-bottom: 0; }
.hwt-drawer-section {
  font-family: var(--hwt-font-heading); font-weight: 700; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--hwt-ink-soft);
  margin: 0.8rem 0 0.1rem;
}
.hwt-drawer-shop { margin-top: 1rem; text-align: center; border-radius: 999px; }
.hwt-drawer-body > a.hwt-drawer-shop { background: var(--hwt-amber-deep); color: var(--hwt-white); border: 0; }
body.hwt-drawer-open { overflow: hidden; }

@media (max-width: 1023px) {
  .store-block .gstore-change-btn { padding: 0.3rem 0.5rem; }
}
@media (max-width: 880px) {
  .hwt-hamburger { display: flex; }
  .hwt-nav { display: none; }
  .hwt-header-bar { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .hwt-search-bar { order: 3; flex: 1 1 100%; justify-content: space-between; }
  .search-form { max-width: none; }
}
@media (max-width: 600px) {
  .hwt-logo { font-size: 1.15rem; }
  .hwt-logo-mark { width: 36px; height: 36px; }
  .search-category { display: none; }
  .search-form { flex-basis: 100%; }
  .store-block { width: 100%; justify-content: flex-end; }
}

/* ══════════════════════════ MAIN LAYOUT ══════════════════════════ */
main { display: block; }
main:focus { outline: none; }

.hwt-breadcrumb {
  max-width: var(--hwt-max); margin: 0 auto; padding: 1rem var(--hwt-gutter) 0;
  font-size: 0.86rem; color: var(--hwt-ink-soft);
}
.hwt-breadcrumb a { color: var(--hwt-meadow-deep); }
.hwt-breadcrumb .sep { margin: 0 0.4em; opacity: 0.6; }

.hwt-intro {
  max-width: var(--hwt-max); margin: 0 auto; padding: 1rem var(--hwt-gutter) 0.4rem;
}
.hwt-intro h1 { margin-bottom: 0.45em; max-width: 30ch; }
.hwt-intro p { max-width: var(--hwt-measure); color: var(--hwt-ink); }
.hwt-intro .hwt-lead { font-size: 1.12rem; color: var(--hwt-ink-soft); }

.direct-answer {
  max-width: var(--hwt-measure); margin: 0.8em 0 1.2em; padding: 1.05rem 1.3rem 1.05rem 3.2rem;
  background: var(--hwt-sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5d86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 12.5l2.5 2.5 5-5.5'/%3E%3C/svg%3E") no-repeat 1.05rem 1.15rem / 1.45rem;
  border-left: 5px solid var(--hwt-sky);
  border-radius: var(--hwt-radius-sm); font-size: 1.05rem; color: var(--hwt-ink);
}

/* Full-width stacked blocks (hubs, shopping pages, homepage) */
.hwt-compare { max-width: var(--hwt-max); margin: 0 auto; padding: 0.4rem var(--hwt-gutter) 1rem; }
.hwt-compare-scroll { overflow-x: auto; border: 1px solid var(--hwt-border); border-radius: var(--hwt-radius); background: var(--hwt-white); }
.hwt-compare table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.94rem; }
.hwt-compare caption { text-align: left; font-weight: 700; font-family: var(--hwt-font-heading); padding: 0.7rem 1rem 0.3rem; }
.hwt-compare th, .hwt-compare td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--hwt-border); text-align: left; vertical-align: top; }
.hwt-compare tr:last-child > * { border-bottom: 0; }
.hwt-compare thead th { background: var(--hwt-meadow); color: var(--hwt-white); font-family: var(--hwt-font-heading); }
.hwt-compare tbody tr:nth-child(even) { background: #fbf8f2; }

/* Fact panel: two-column snapshot tables (breed and species pages) */
.hwt-facts table { min-width: 0; font-size: 0.92rem; }
.hwt-facts th[scope="row"] { width: 36%; color: var(--hwt-ink-soft); font-weight: 600; }
.hwt-facts caption { font-size: 1.02rem; padding: 0.85rem 1rem 0.5rem; background: var(--hwt-meadow-soft); border-bottom: 1px solid var(--hwt-border); }
.hwt-facts tbody tr:nth-child(even) { background: transparent; }
.hwt-facts > p { font-size: 0.92rem; color: var(--hwt-ink-soft); margin-bottom: 0.6rem; }

.hwt-product-section, .hwt-article-section {
  max-width: var(--hwt-max); margin: 0 auto; padding: 1.1rem var(--hwt-gutter);
  scroll-margin-top: 1rem;
}
.hwt-article-section h2, .hwt-product-section h2 { color: var(--hwt-ink); }
.hwt-article-section h2 { padding-top: 0.2rem; }
.hwt-product-section > p, .hwt-article-section > p,
.hwt-article-section > :is(ul, ol) { max-width: var(--hwt-measure); }
.hwt-article-section h3 { margin-top: 1.2em; }

/* ── Article layout: content column + sidebar (contents list, fact panel) ──
   <div class="hwt-layout">
     <figure class="hwt-figure hwt-figure--hero">…</figure>
     <aside class="hwt-sidebar">fact panel + contents list</aside>
     <div class="hwt-content">sections…</div>
   </div>
   Phones: one column in that order. Desktop: the sidebar sits on the right
   and the contents list sticks while you scroll. */
.hwt-layout {
  max-width: var(--hwt-max); margin: 0 auto; padding: 0 var(--hwt-gutter);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.75rem;
}
.hwt-layout > * { min-width: 0; }
.hwt-layout :is(.hwt-article-section, .hwt-product-section, .hwt-faq, .hwt-crosslinks, .hwt-compare, .hwt-byline, .hwt-intro) {
  max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
}
.hwt-content > .hwt-vet-note { margin: 1.6rem 0 0.9rem; }
.hwt-content > .hwt-byline { margin-bottom: 1.6rem; }
.hwt-sidebar { padding: 0.4rem 0 0.6rem; }
.hwt-sidebar .hwt-compare { padding: 0 0 1rem; }
@media (min-width: 1024px) {
  .hwt-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .hwt-layout > .hwt-figure--hero { grid-column: 1; grid-row: 1; }
  .hwt-layout > .hwt-sidebar { grid-column: 2; grid-row: 1 / span 2; padding-top: 1rem; }
  .hwt-layout > .hwt-content { grid-column: 1; grid-row: 2; }
  .hwt-layout > .hwt-sidebar:first-child + .hwt-content { grid-row: 1; }
  .hwt-sidebar .hwt-toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}

/* Contents list ("On this page"). Closed on phones, open on desktop. */
.hwt-toc {
  background: var(--hwt-paper-raised); border: 1px solid var(--hwt-border); border-radius: var(--hwt-radius);
  margin: 0 0 1rem; font-size: 0.92rem;
}
.hwt-toc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; font-family: var(--hwt-font-heading); font-weight: 700; font-size: 1rem;
}
.hwt-toc summary::-webkit-details-marker { display: none; }
.hwt-toc summary::after { content: "\25BE"; color: var(--hwt-amber-deep); transition: transform 0.15s ease; }
.hwt-toc details[open] summary::after { transform: rotate(180deg); }
.hwt-toc ol { list-style: none; margin: 0; padding: 0 0.6rem 0.7rem; counter-reset: toc; }
.hwt-toc li { margin: 0; counter-increment: toc; }
.hwt-toc a {
  display: flex; gap: 0.55rem; padding: 0.38rem 0.45rem; border-radius: var(--hwt-radius-sm);
  color: var(--hwt-ink); text-decoration: none; line-height: 1.35; border-left: 3px solid transparent;
}
.hwt-toc a::before { content: counter(toc); flex: none; min-width: 1.2em; font-weight: 700; color: var(--hwt-amber-deep); font-size: 0.85em; padding-top: 0.08em; }
.hwt-toc a:hover, .hwt-toc a:focus { background: var(--hwt-sky-soft); color: var(--hwt-meadow-deep); }
.hwt-toc a.is-active { border-left-color: var(--hwt-amber); background: var(--hwt-paper); color: var(--hwt-meadow-deep); font-weight: 600; }
@supports selector(::details-content) {
  @media (min-width: 1024px) {
    .hwt-toc summary { cursor: default; pointer-events: none; }
    .hwt-toc summary::after { display: none; }
    .hwt-toc details::details-content { display: block; content-visibility: visible; }
  }
}

/* ── Product module: cards that open the visitor's own Amazon store ── */
.hwt-product-section {
  --pad: 1.2rem;
}
.hwt-product-section.hwt-shop-box, .hwt-layout .hwt-product-section {
  background: var(--hwt-paper-raised); border: 1px solid var(--hwt-border); border-radius: var(--hwt-radius);
  padding: var(--pad) var(--pad) calc(var(--pad) + 0.2rem); margin: 1.4rem 0;
  box-shadow: var(--hwt-shadow);
}
.hwt-layout .hwt-product-section { padding-left: var(--pad); padding-right: var(--pad); }
main > .hwt-product-section.hwt-shop-box {
  max-width: calc(var(--hwt-max) - 2 * var(--hwt-gutter));
  margin-left: max(var(--hwt-gutter), calc(50% - var(--hwt-max) / 2 + var(--hwt-gutter)));
  margin-right: max(var(--hwt-gutter), calc(50% - var(--hwt-max) / 2 + var(--hwt-gutter)));
}
.hwt-product-section > h2::before {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: 0.4em; vertical-align: -0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d5f1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hwt-affiliate-note { font-size: 0.82rem; color: var(--hwt-ink-soft); margin: -0.2rem 0 0.8rem; }
.hwt-affiliate-note a { color: var(--hwt-ink-soft); }

.hwt-button-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  gap: 0.6rem; margin-top: 0.8rem;
}
.hwt-search-btn {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 3rem; text-align: left;
  font-family: var(--hwt-font-body); font-weight: 600; font-size: 0.93rem; line-height: 1.3;
  background: var(--hwt-white); color: var(--hwt-ink); border: 1px solid var(--hwt-border);
  border-radius: 12px; padding: 0.55rem 0.75rem; cursor: pointer;
  box-shadow: 0 1px 0 rgba(49,57,60,0.05); transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.hwt-search-btn::before {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: #fbe9d3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d5f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E") no-repeat center / 1.05rem;
}
.hwt-search-btn::after {
  content: "\2197"; margin-left: auto; flex: none; color: var(--hwt-amber-deep); font-weight: 700; padding-left: 0.3rem;
}
.hwt-search-btn:hover { border-color: var(--hwt-amber); box-shadow: var(--hwt-shadow); transform: translateY(-1px); }
.hwt-search-btn:focus-visible { outline-offset: 2px; }
.hwt-btn-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.hwt-btn-why { font-weight: 400; font-size: 0.82rem; color: var(--hwt-ink-soft); }

/* ── Callouts ── */
.hwt-vet-note {
  max-width: var(--hwt-measure); background: #fdf1e4; border: 1px solid #f0d6a8;
  border-left: 5px solid var(--hwt-amber); border-radius: var(--hwt-radius-sm);
  padding: 0.9rem 1.1rem; font-size: 0.96rem;
}
/* When the vet note sits directly in <main> (older pages), align it with the column. */
main > .hwt-vet-note {
  margin-left: max(var(--hwt-gutter), calc(50% - var(--hwt-max) / 2 + var(--hwt-gutter)));
  margin-right: var(--hwt-gutter); margin-top: 1.6rem; margin-bottom: 0.9rem;
}

/* Bold see-your-vet notice (decision 4): impossible to miss. */
.hwt-vet-alert {
  max-width: var(--hwt-measure); margin: 1.2rem 0;
  background: #fdecea; border: 2px solid #9b1c1c; border-radius: var(--hwt-radius);
  padding: 0.95rem 1.1rem 0.95rem 3.3rem; font-size: 1rem; color: var(--hwt-ink);
  position: relative;
}
.hwt-vet-alert::before {
  content: ""; position: absolute; left: 0.95rem; top: 0.95rem; width: 1.6rem; height: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%239b1c1c'/%3E%3Cpath d='M12 6.5v7' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.5' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hwt-vet-alert strong { color: #7a1515; font-size: 1.04em; }
main > .hwt-vet-alert { margin-left: max(var(--hwt-gutter), calc(50% - var(--hwt-max) / 2 + var(--hwt-gutter))); margin-right: var(--hwt-gutter); }

.hwt-legal, .hwt-good-to-know, .hwt-warning {
  max-width: var(--hwt-measure); margin: 1.6rem 0; padding: 1.05rem 1.25rem 0.5rem;
  border-radius: var(--hwt-radius); position: relative;
}
.hwt-legal :is(h2, h3), .hwt-good-to-know :is(h2, h3), .hwt-warning :is(h2, h3) {
  font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5em;
}
.hwt-legal :is(h2, h3)::before, .hwt-good-to-know :is(h2, h3)::before, .hwt-warning :is(h2, h3)::before {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; background: no-repeat center / contain;
}
.hwt-legal { background: #eef3f8; border: 1px solid #c9d8e6; border-left: 6px solid #2c5d86; }
.hwt-legal :is(h2, h3) { color: #2c5d86; }
.hwt-legal :is(h2, h3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5d86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M7 21h10M4 7h16M6 7l-3 7a3 3 0 0 0 6 0zM18 7l-3 7a3 3 0 0 0 6 0z'/%3E%3C/svg%3E");
}
.hwt-legal li { margin-bottom: 0.5em; }
.hwt-good-to-know { background: var(--hwt-meadow-soft); border: 1px solid #cfe2d1; border-left: 6px solid var(--hwt-meadow); }
.hwt-good-to-know :is(h2, h3) { color: var(--hwt-meadow-deep); }
.hwt-good-to-know :is(h2, h3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23437052' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
}
/* Welfare warning: "think hard before you buy" */
.hwt-warning { background: #fff4e0; border: 1px solid #f0d6a8; border-left: 6px solid var(--hwt-amber); }
.hwt-warning :is(h2, h3) { color: #8a4b0f; }
.hwt-warning :is(h2, h3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a4b0f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18h.01'/%3E%3C/svg%3E");
}
main > :is(.hwt-legal, .hwt-good-to-know, .hwt-warning) {
  margin-left: max(var(--hwt-gutter), calc(50% - var(--hwt-max) / 2 + var(--hwt-gutter))); margin-right: var(--hwt-gutter);
}

/* Steps (numbered how-to) */
.hwt-steps { counter-reset: step; list-style: none; padding-left: 0; max-width: var(--hwt-measure); }
.hwt-steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 0.9rem; }
.hwt-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--hwt-meadow); color: var(--hwt-white); font: 700 0.95rem/1.85rem var(--hwt-font-heading); text-align: center;
}

.hwt-byline {
  max-width: var(--hwt-max); margin: 0.4rem auto 0; padding: 0 var(--hwt-gutter);
  font-size: 0.86rem; color: var(--hwt-ink-soft);
}
main > .hwt-byline { margin-bottom: 1.8rem; }

.hwt-crosslinks {
  max-width: var(--hwt-max); margin: 1.2rem auto 0; padding: 1rem var(--hwt-gutter);
  border-top: 1px solid var(--hwt-border);
}
.hwt-crosslinks h2 { font-size: 1.1rem; }
.hwt-crosslinks ul { margin: 0; padding-left: 1.2rem; }
.hwt-crosslinks li { margin-bottom: 0.35rem; }

.hwt-faq { max-width: var(--hwt-max); margin: 0 auto; padding: 1rem var(--hwt-gutter) 2rem; }
.hwt-faq-lead { color: var(--hwt-ink-soft); }
.hwt-faq-item { border-bottom: 1px solid var(--hwt-border); padding: 1rem 0; }
.hwt-faq-item:first-of-type { border-top: 1px solid var(--hwt-border); }
.hwt-faq-item h3 { margin-bottom: 0.35em; font-size: 1.08rem; }
.hwt-faq-item p { max-width: var(--hwt-measure); margin-bottom: 0; color: var(--hwt-ink); }

/* ══════════════════════════ IMAGES ══════════════════════════
   Real images: <picture> with AVIF/WebP + JPG, width/height set, lazy below
   the first. Until Richard's Midjourney images arrive, a striped
   placeholder carries the prompt ID from docs/image-prompts/. */
.hwt-figure { margin: 0.6rem 0 1.5rem; }
.hwt-figure img, .hwt-figure picture { display: block; width: 100%; height: auto; border-radius: var(--hwt-radius); }
.hwt-figure figcaption { font-size: 0.88rem; color: var(--hwt-ink-soft); margin-top: 0.45rem; }
main > .hwt-figure { max-width: var(--hwt-max); margin-left: auto; margin-right: auto; padding: 0 var(--hwt-gutter); }
.hwt-figure--hero .hwt-img-placeholder, .hwt-figure--hero img { box-shadow: var(--hwt-shadow); }
.hwt-figure--inline { max-width: 640px; }

.hwt-img-placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%;
  aspect-ratio: 4 / 3; padding: 1rem; text-align: center;
  background: repeating-linear-gradient(45deg, #f3eee4, #f3eee4 12px, #ece5d6 12px, #ece5d6 24px);
  border: 2px dashed #cbbf9f; border-radius: var(--hwt-radius);
}
.hwt-img-placeholder::after {
  content: "Image coming soon \00B7  " attr(data-mj-prompt);
  font: 700 0.82rem/1.3 var(--hwt-font-heading); color: #5c5545;
  background: rgba(255,255,255,0.75); padding: 0.3rem 0.65rem; border-radius: 999px;
}

/* ══════════════════════════ HUBS ══════════════════════════ */
.hwt-hub-grid {
  max-width: var(--hwt-max); margin: 0.6rem auto 1.4rem; padding: 0 var(--hwt-gutter);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0.9rem;
}
.hwt-hub-card {
  display: flex; flex-direction: column; padding: 1rem 1.15rem; background: var(--hwt-paper-raised);
  border: 1px solid var(--hwt-border); border-radius: var(--hwt-radius);
  box-shadow: var(--hwt-shadow); text-decoration: none; color: var(--hwt-ink);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hwt-hub-card:hover, .hwt-hub-card:focus {
  transform: translateY(-2px); box-shadow: var(--hwt-shadow-lg); color: var(--hwt-ink); border-color: var(--hwt-amber);
}
.hwt-hub-card h3 { margin: 0 0 0.3em; font-size: 1.02rem; color: var(--hwt-meadow-deep); }
.hwt-hub-card p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--hwt-ink-soft); }
/* Image tiles: a picture (or placeholder) on top of the card */
.hwt-hub-card--img { padding: 0; overflow: hidden; }
.hwt-hub-card--img > :is(.hwt-img-placeholder, picture, img) {
  border: 0; border-radius: 0; aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; display: flex;
}
.hwt-hub-card--img > .hwt-img-placeholder { border-bottom: 1px dashed #cbbf9f; }
.hwt-hub-card--img > .hwt-img-placeholder::after { font-size: 0.72rem; }
.hwt-hub-card--img > :is(h3, p) { padding: 0 1rem; }
.hwt-hub-card--img > h3 { padding-top: 0.85rem; }
.hwt-hub-card--img > p:last-child { padding-bottom: 1rem; }
.hwt-hub-card-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--hwt-meadow-deep); background: var(--hwt-sky-soft);
  border-radius: 999px; padding: 0.15em 0.65em; margin-bottom: 0.5em;
}
.hwt-hub-card.is-pending { cursor: default; background: #fbf8f2; }
.hwt-hub-card.is-pending h3 { color: var(--hwt-ink-soft); }
.hwt-hub-card.is-pending .hwt-hub-card-tag { color: var(--hwt-ink); background: #fbe9d3; }
.hwt-hub-group-heading {
  max-width: var(--hwt-max); margin: 1.8rem auto 0; padding: 0 var(--hwt-gutter);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
}
.hwt-hub-group { scroll-margin-top: 1rem; }
.hwt-hub-group-intro { max-width: var(--hwt-max); margin: 0.3rem auto 0; padding: 0 var(--hwt-gutter); color: var(--hwt-ink-soft); }
.hwt-hub-group-intro p { max-width: var(--hwt-measure); margin: 0; }
/* Picture tiles: three across on desktop, two on phones */
.hwt-hub-grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 600px) {
  .hwt-hub-grid { gap: 0.55rem; }
  .hwt-hub-card { padding: 0.75rem 0.9rem; box-shadow: none; }
  .hwt-hub-card p { font-size: 0.85rem; }
  .hwt-hub-grid--tiles { grid-template-columns: 1fr 1fr; }
  .hwt-hub-grid--tiles .hwt-hub-card--img { padding: 0; }
  .hwt-hub-grid--tiles .hwt-hub-card--img > :is(h3, p) { padding: 0 0.65rem; }
  .hwt-hub-grid--tiles .hwt-hub-card--img > h3 { padding-top: 0.55rem; font-size: 0.95rem; }
  .hwt-hub-grid--tiles .hwt-hub-card--img > p:last-child { padding-bottom: 0.65rem; font-size: 0.8rem; }
  .hwt-hub-grid--tiles .hwt-img-placeholder::after { content: "Image soon"; }
}

/* Compact list for long A–Z groups (e.g. 35 breeds) */
.hwt-hub-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0.6rem; }
.hwt-hub-grid--compact .hwt-hub-card { padding: 0.7rem 0.9rem; box-shadow: none; }
.hwt-hub-grid--compact .hwt-hub-card h3 { font-size: 0.97rem; margin: 0; }
.hwt-hub-grid--compact .hwt-hub-card p { font-size: 0.84rem; margin-top: 0.2rem; }

/* Hub tools: jump bar of group links + card filter */
.hwt-hub-tools {
  max-width: var(--hwt-max); margin: 0.4rem auto 0.6rem; padding: 0 var(--hwt-gutter);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center;
}
.hwt-jump { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.hwt-jump li { margin: 0; }
.hwt-jump a {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  background: var(--hwt-paper-raised); border: 1px solid var(--hwt-border); color: var(--hwt-ink); text-decoration: none;
}
.hwt-jump a:hover, .hwt-jump a:focus { border-color: var(--hwt-meadow); color: var(--hwt-meadow-deep); }
.hwt-filter { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.hwt-filter label { font-size: 0.88rem; color: var(--hwt-ink-soft); }
.hwt-filter input {
  font: inherit; font-size: 0.92rem; padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--hwt-border); background: var(--hwt-white); color: var(--hwt-ink); width: 15rem; max-width: 60vw;
}
.hwt-filter-empty { max-width: var(--hwt-max); margin: 1rem auto; padding: 0 var(--hwt-gutter); color: var(--hwt-ink-soft); }
[hidden] { display: none !important; }

/* Hub and homepage hero: words left, picture right */
.hwt-hero {
  max-width: var(--hwt-max); margin: 0 auto; padding: 1.1rem var(--hwt-gutter) 0.6rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 2.5rem; align-items: center;
}
.hwt-hero .hwt-intro { padding: 0; }
.hwt-hero .hwt-figure { margin: 0; }
@media (min-width: 880px) {
  .hwt-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-top: 1.6rem; }
}
.hwt-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.hwt-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.15rem; border-radius: 999px;
  font-family: var(--hwt-font-heading); font-weight: 700; font-size: 0.98rem; text-decoration: none;
  background: var(--hwt-meadow); color: var(--hwt-white); border: 2px solid var(--hwt-meadow);
}
.hwt-btn:hover, .hwt-btn:focus { background: var(--hwt-meadow-deep); border-color: var(--hwt-meadow-deep); color: var(--hwt-white); }
.hwt-btn--ghost { background: transparent; color: var(--hwt-meadow-deep); }
.hwt-btn--ghost:hover, .hwt-btn--ghost:focus { background: var(--hwt-meadow-soft); color: var(--hwt-meadow-deep); }

/* Section tiles with icons (homepage "by animal") */
.hwt-tile-icon { width: 2.4rem; height: 2.4rem; margin-bottom: 0.5rem; color: var(--hwt-meadow-deep); }

/* ══════════════════════════ ADVERT SLOTS (decision 10) ══════════════════════════
   /menu/ad-slot-1.html, ad-slot-pets.html, ad-slot-store.html (and the themed
   ad-cottages / ad-insurance) each hold one empty .hwt-ad box. It takes no
   space until /store-assets/js/ad-loader.js fills it, after the page has
   loaded, when the browser is idle and the box is near the screen. A filled
   box keeps a fixed reserved height, so nothing jumps when the advert itself
   arrives. */
.hwt-ad { display: block; height: 0; overflow: hidden; margin: 0; padding: 0; }
.hwt-ad.is-filled {
  height: auto; overflow: visible;
  max-width: var(--hwt-max); margin: 2rem auto; padding: 0 var(--hwt-gutter);
}
.hwt-layout .hwt-ad.is-filled { padding: 0; margin: 2rem 0; }
.hwt-ad--advertiser.is-filled { text-align: center; }
.hwt-ad--advertiser .hwt-ad-box { display: block; width: 100%; height: var(--hwt-ad-h, 280px); overflow: hidden; }
.hwt-ad-label {
  display: block; height: 1.3rem; margin: 0 0 0.3rem; font-size: 0.72rem; line-height: 1.3rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--hwt-ink-soft);
}

/* Jigsaw slot (Richard's Jigsaw Publisher, later): empty include for now. */
.hwt-jigsaw-slot:empty { display: none; }
.hwt-jigsaw-slot { margin: 1.5rem 0; }

/* ══════════════════════════ FOOTER ══════════════════════════ */
.hwt-footer { background: var(--hwt-ink); color: #dfe4e2; margin-top: 2.5rem; position: relative; }
.hwt-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='14' viewBox='0 0 60 14'%3E%3Cpath d='M0 14 C 10 2, 20 2, 30 8 C 40 14, 50 4, 60 8 V14z' fill='%2331393c'/%3E%3C/svg%3E") repeat-x bottom / 60px 14px;
}
.hwt-footer-inner {
  max-width: var(--hwt-max); margin: 0 auto; padding: 2.2rem var(--hwt-gutter) 1rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem 2rem;
}
.hwt-footer-inner h3 { color: var(--hwt-white); font-size: 1rem; margin-bottom: 0.6em; }
.hwt-footer-inner p { font-size: 0.93rem; }
.hwt-footer-inner a { color: #cfe6da; }
.hwt-footer-inner a:hover, .hwt-footer-inner a:focus { color: var(--hwt-amber-onink); }
.hwt-footer-inner ul { list-style: none; margin: 0; padding: 0; }
.hwt-footer-inner li { margin-bottom: 0.4rem; font-size: 0.93rem; }
.hwt-footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--hwt-font-heading); font-weight: 700; color: var(--hwt-white); }
.hwt-footer-disclosure {
  max-width: var(--hwt-max); margin: 0 auto; padding: 1rem var(--hwt-gutter) 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: #b7bfbc;
}
.hwt-footer-disclosure p { margin: 0 0 0.5em; max-width: 110ch; }
.hwt-footer-disclosure strong { color: #dfe4e2; }
.hwt-footer-disclosure a { color: #cfe6da; }
.hwt-footer-disclosure a:hover, .hwt-footer-disclosure a:focus { color: var(--hwt-amber-onink); }

/* Plain content pages (about, privacy, 404) */
.hwt-prose { max-width: var(--hwt-max); margin: 0 auto; padding: 0.4rem var(--hwt-gutter) 1rem; }
.hwt-prose > * { max-width: var(--hwt-measure); }
.hwt-prose h2 { margin-top: 1.4em; }

@media print {
  .hwt-header, .hwt-drawer, .hwt-footer, .hwt-ad, .hwt-toc, .hwt-jigsaw-slot, .hwt-product-section { display: none !important; }
  :where(body:not(.hwt-store)) { background: #fff; font-size: 11pt; }
}
