/* ==========================================================================
   Hopfield — Seafront Enamel
   Flat enamel colour, hard rims, beach-hut identity. Mobile first.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/display.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/text.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/text-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

:root {
  /* Enamel palette */
  --blue: #183a8c;
  --blue-deep: #0f2a6b;
  --blue-wash: #e9eff9;
  --red: #c8321e;
  --red-deep: #9e2414;
  --green: #1f6b4a;
  --green-deep: #154d35;
  --mustard: #e3a81b;
  --mustard-deep: #c48d0a;
  --ink: #0f1a2b;
  --ink-2: #3a4760;      /* secondary text on white: 9.4:1 */
  --rule: #c9d3e3;
  --white: #ffffff;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Atkinson Next", "Segoe UI", system-ui, sans-serif;

  --r-plate: 14px;
  --r-small: 8px;
  --rim: 3px;
  --plate-shadow: 0 10px 24px -14px rgb(15 26 43 / .55), 0 2px 4px -2px rgb(15 26 43 / .25);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;
  --wrap: 76rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

/* Hut colours: the portable identity of each breed and category */
.hut-cocker-spaniel   { --hut: #c8321e; --hut-ink: #fff; }
.hut-cockapoo         { --hut: #e3a81b; --hut-ink: #0f1a2b; }
.hut-german-shepherd  { --hut: #1f6b4a; --hut-ink: #fff; }
.hut-cavapoo          { --hut: #2f6fb8; --hut-ink: #fff; }
.hut-dachshund        { --hut: #b2501a; --hut-ink: #fff; }
.hut-labrador         { --hut: #183a8c; --hut-ink: #fff; }
.hut-golden-retriever { --hut: #d98e04; --hut-ink: #0f1a2b; }
.hut-border-collie    { --hut: #2a3647; --hut-ink: #fff; }
.hut-french-bulldog   { --hut: #b23a63; --hut-ink: #fff; }
.hut-poodle           { --hut: #0f6e78; --hut-ink: #fff; }
.hut-kittens, .hut-british-shorthair, .hut-ragdoll, .hut-maine-coon, .hut-bengal, .hut-siamese, .hut-sphynx, .hut-persian, .hut-domestic-cat
                      { --hut: #5e2f6e; --hut-ink: #fff; }
.hut-puppies          { --hut: #183a8c; --hut-ink: #fff; }

/* View transitions: a hut on the home page becomes the sign on its breed page */
.hut-row .hut-labrador .hut-door, .page-hero .enamel.hut-labrador { view-transition-name: hut-labrador; }
.hut-row .hut-cockapoo .hut-door, .page-hero .enamel.hut-cockapoo { view-transition-name: hut-cockapoo; }
.hut-row .hut-cavapoo .hut-door, .page-hero .enamel.hut-cavapoo { view-transition-name: hut-cavapoo; }
.hut-row .hut-cocker-spaniel .hut-door, .page-hero .enamel.hut-cocker-spaniel { view-transition-name: hut-cocker-spaniel; }
.hut-row .hut-poodle .hut-door, .page-hero .enamel.hut-poodle { view-transition-name: hut-poodle; }
.hut-row .hut-german-shepherd .hut-door, .page-hero .enamel.hut-german-shepherd { view-transition-name: hut-german-shepherd; }
.hut-row .hut-dachshund .hut-door, .page-hero .enamel.hut-dachshund { view-transition-name: hut-dachshund; }
.hut-row .hut-golden-retriever .hut-door, .page-hero .enamel.hut-golden-retriever { view-transition-name: hut-golden-retriever; }
.hut-row .hut-border-collie .hut-door, .page-hero .enamel.hut-border-collie { view-transition-name: hut-border-collie; }
.hut-row .hut-french-bulldog .hut-door, .page-hero .enamel.hut-french-bulldog { view-transition-name: hut-french-bulldog; }
.hut-row .hut-kittens .hut-door, .page-hero .enamel.hut-kittens { view-transition-name: hut-kittens; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease-out); }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); margin-top: 1.4em; font-stretch: 80%; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2.5px; }
::selection { background: var(--mustard); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--mustard); border-radius: 4px; }
html { scrollbar-color: var(--blue) var(--blue-wash); }
small, .small { font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -4rem; background: var(--mustard); color: var(--ink); padding: var(--s2) var(--s4); font-weight: 700; z-index: 100; border-radius: var(--r-small); }
.skip:focus { top: var(--s4); }
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 42rem); margin-inline: auto; padding-block: var(--s6) var(--s8); }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

mark.check { background: #ffe58a; color: #5a3a00; padding: 0 .3em; border-radius: 3px; font-size: .85em; font-weight: 700; box-shadow: 0 0 0 1px #d9a800; }

/* --------------------------------------------------------------------------
   Enamel plates — the core material
   -------------------------------------------------------------------------- */
.enamel {
  --plate: var(--hut, var(--blue));
  --plate-ink: var(--hut-ink, #fff);
  position: relative;
  background: var(--plate);
  color: var(--plate-ink);
  border-radius: var(--r-plate);
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.5rem) clamp(1.5rem, 1rem + 3vw, 3.75rem);
  box-shadow: inset 0 0 0 7px var(--plate), inset 0 0 0 calc(7px + var(--rim)) currentColor, var(--plate-shadow);
}
/* screw fixings at the four corners */
.enamel::before, .enamel::after {
  content: ""; position: absolute; inset: 15px; pointer-events: none;
  background:
    radial-gradient(circle at 5px 5px, rgb(255 255 255 / .9) 0 2.5px, rgb(0 0 0 / .35) 2.6px 3.6px, transparent 3.7px) top left / 10px 10px no-repeat,
    radial-gradient(circle at 5px 5px, rgb(255 255 255 / .9) 0 2.5px, rgb(0 0 0 / .35) 2.6px 3.6px, transparent 3.7px) top right / 10px 10px no-repeat;
}
.enamel::after { inset: auto 15px 15px 15px; height: 10px; }
.enamel a:not(.btn) { color: inherit; }
.enamel .btn-ghost { color: inherit; }
.enamel h1, .enamel h2 { color: inherit; }
.enamel .lede, .enamel .lede p { color: inherit; opacity: .94; }
.enamel-red { --hut: var(--red); --hut-ink: #fff; }

/* Count plate: an honest stencilled number */
.count-plate {
  display: inline-grid; place-items: center;
  min-width: 2.1em; height: 2.1em; padding: 0 .35em;
  font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 1.1em; line-height: 1;
  background: var(--mustard); color: var(--ink);
  border-radius: 6px; box-shadow: inset 0 0 0 2px var(--ink);
  font-variant-numeric: tabular-nums;
}
.count-plate.count-zero { background: var(--white); color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 1.08rem; letter-spacing: .01em;
  min-height: 3rem; padding: .7rem 1.35rem;
  border-radius: var(--r-small); border: 0; cursor: pointer; text-decoration: none;
  background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: background-color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.btn:hover { background: var(--blue-wash); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mustard); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 6px 14px -8px rgb(15 26 43 / .55); }
.btn-primary:hover { background: #f0b92e; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgb(255 255 255 / .12); color: inherit; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-danger { background: var(--red); color: var(--white); box-shadow: inset 0 0 0 2px var(--red-deep); }
.btn-danger:hover { background: var(--red-deep); color: var(--white); }
.btn-small { min-height: 2.5rem; padding: .45rem 1rem; font-size: 1rem; }
.btn-large { min-height: 3.4rem; padding: .85rem 1.6rem; font-size: 1.2rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* --------------------------------------------------------------------------
   Header / footer
   -------------------------------------------------------------------------- */
.env-strip { background: var(--mustard); color: var(--ink); text-align: center; font-size: .85rem; font-weight: 700; padding: .3rem 1rem; }
.site-header { background: var(--white); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark span { font-family: var(--display); font-stretch: 66%; font-weight: 900; font-size: 1.9rem; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
.wordmark small { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: .72rem; letter-spacing: .14em; background: var(--red); color: var(--white); padding: .2em .45em .15em; border-radius: 4px; }
.wordmark-mark { width: 2.25rem; height: 2.25rem; padding: .3rem; background: var(--blue); color: var(--mustard); border-radius: 8px; box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 3.5px #fff; }
.nav-toggle { display: inline-grid; place-items: center; width: 3rem; height: 3rem; background: none; border: 2px solid var(--ink); border-radius: var(--r-small); color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 1.12rem; }
.site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -4px 0 var(--mustard); }
.site-nav a:not(.btn):hover { color: var(--blue); }
.nav-open .site-nav { display: block; position: absolute; inset: 100% 0 auto; background: var(--white); border-bottom: 3px solid var(--ink); padding: var(--s4) 1.25rem var(--s5); }
.nav-open .site-nav li { border-top: 1px solid var(--rule); }
.nav-open .site-nav li a { display: block; padding: .8rem 0; }
.nav-open .site-nav .nav-cta { border: 0; padding-top: var(--s3); }
.nav-open .site-nav .nav-cta a { display: flex; }
@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: 1.6rem; }
}

.breadcrumbs { padding-top: var(--s4); font-size: .92rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .5rem; color: var(--ink-2); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 700; }

.site-footer { margin-top: var(--s9); background: var(--blue-deep); color: #e6ecf7; padding-top: var(--s8); }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1.25rem; color: var(--mustard); margin: 0 0 .75rem; letter-spacing: .02em; text-transform: uppercase; font-stretch: 70%; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .95rem; }
.wordmark-footer span { color: #fff; }
.wordmark-footer .wordmark-mark { background: var(--mustard); color: var(--blue-deep); box-shadow: inset 0 0 0 2px var(--mustard), inset 0 0 0 3.5px var(--blue-deep); }
.footer-warning { display: flex; gap: .6rem; background: var(--red); color: #fff; padding: .85rem 1rem; border-radius: var(--r-small); font-weight: 700; box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3.5px #fff; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); border-top: 1px solid rgb(255 255 255 / .2); margin-top: var(--s7); padding-block: var(--s5); font-size: .9rem; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s4); margin: 0; padding: 0; }
.footer-legal p { margin: 0; }
.site-footer .link-btn { color: #fff; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Home: hero sign + search plate
   -------------------------------------------------------------------------- */
.hero { padding-top: var(--s4); }
.enamel-hero { padding-top: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); padding-bottom: clamp(5rem, 3.5rem + 3vw, 6rem); display: grid; gap: var(--s6); }
@media (min-width: 62rem) { .enamel-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; } }
.hero-copy { min-width: 0; }
.checks-plate { background: var(--white); color: var(--ink); border-radius: 10px; padding: var(--s5); box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 4px var(--red), 0 18px 30px -18px rgb(0 0 0 / .55); }
.checks-plate .checks-plate-title { margin: 0 0 var(--s3); font-family: var(--display); font-stretch: 64%; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: 1.7rem; line-height: 1; color: var(--red); }
.checks-plate ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.checks-plate li { display: grid; grid-template-columns: 1.7rem 1fr; gap: .6rem; align-items: start; font-size: 1.02rem; line-height: 1.4; }
.checks-plate li .icon { width: 1.7rem; height: 1.7rem; padding: .25rem; background: var(--green); color: #fff; border-radius: 50%; }
.checks-plate p:not(.checks-plate-title) { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 2px solid var(--rule); font-size: .92rem; color: var(--ink-2); }
.checks-plate a { color: var(--blue); font-weight: 700; }
@media (max-width: 61.99rem) { .checks-plate { display: none; } }
.enamel-hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 5.4rem); font-stretch: 64%; font-weight: 900; max-width: 17ch; margin-bottom: .3em; line-height: .94; }
.hero-sub { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 40ch; margin-bottom: var(--s5); }
.hero-sub p { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.search-plate {
  position: relative; z-index: 2;
  display: grid; gap: var(--s3); grid-template-columns: 1fr;
  margin: calc(-1 * clamp(3.5rem, 2.5rem + 3vw, 4.5rem)) clamp(.75rem, 3vw, 2.5rem) 0;
  padding: var(--s5);
  background: var(--white); border-radius: var(--r-plate);
  box-shadow: inset 0 0 0 2px var(--ink), var(--plate-shadow);
}
.search-plate .btn { align-self: end; }
@media (min-width: 40rem) { .search-plate { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .search-plate { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }

.filter label, .field label, .field legend, .alert-form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], input[type="file"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  min-height: 3rem; padding: .6rem .8rem;
  border: 2px solid var(--ink); border-radius: var(--r-small);
}
select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230f1a2b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 1.1rem; }
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--mustard); outline-offset: 1px; box-shadow: none; border-radius: var(--r-small); }
::placeholder { color: #5b6780; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; flex: none; }

/* --------------------------------------------------------------------------
   Beach huts — breed navigation and the signature interaction
   -------------------------------------------------------------------------- */
.huts-section { padding-block: var(--s6) var(--s6); }
.huts-section h2 { margin-top: 0; }
.hut-row {
  list-style: none; margin: 0; padding: 0 0 var(--s3);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s2);
  border-bottom: 10px solid var(--ink); /* the promenade */
}
@media (max-width: 35.99rem) { .hut-name { font-size: 1rem; } .hut-count { font-size: .8rem; } }
@media (min-width: 36rem) { .hut-row { gap: var(--s5) var(--s3); } }
@media (min-width: 56rem) { .hut-row { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 74rem) { .hut-row { grid-template-columns: repeat(11, 1fr); gap: var(--s5) var(--s2); } .hut-name { font-size: 1.05rem; } }
.hut a { display: grid; justify-items: center; text-decoration: none; color: var(--ink); perspective: 600px; }
.hut-roof { display: block; width: 100%; aspect-ratio: 3 / 1; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin-bottom: -1px; }
.hut-door {
  position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 5 / 4;
  background: var(--hut);
  /* weatherboard lines: hard-edged, no blend */
  background-image: repeating-linear-gradient(90deg, transparent 0 14px, rgb(15 26 43 / .16) 14px 16px);
  color: var(--hut-ink);
  box-shadow: inset 0 0 0 3px var(--ink);
  overflow: hidden;
}
.hut-door::before { /* the door itself, swings open */
  content: ""; position: absolute; left: 32%; right: 32%; top: 30%; bottom: 0;
  background: var(--hut); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 6px var(--hut), inset 0 0 0 7.5px var(--hut-ink);
  transform-origin: left center;
  transition: transform .55s var(--ease-out), filter .55s;
  z-index: 1;
}
.hut-door::after { /* the dark interior revealed */
  content: ""; position: absolute; left: 32%; right: 32%; top: 30%; bottom: 0; background: var(--ink);
}
.hut-name { margin-top: .7rem; font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 1.2rem; line-height: 1.05; text-align: center; }
.hut-count { font-size: .88rem; color: var(--ink-2); text-align: center; }
.hut a:hover .hut-door::before, .hut a:focus-visible .hut-door::before, .hut.is-open .hut-door::before { transform: rotateY(-72deg); filter: brightness(.82); }
.hut a:hover .hut-name { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
.hut a:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .hut-door::before { transition: none; }
  .hut a:hover .hut-door::before, .hut a:focus-visible .hut-door::before { transform: none; filter: brightness(.75); }
}

/* --------------------------------------------------------------------------
   Sections, prose, layout
   -------------------------------------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-top: var(--s8); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.more { font-weight: 700; }
.latest { padding-top: 0; }

.page-head { padding-block: var(--s6) var(--s4); max-width: 48rem; }
.lede { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); color: var(--ink-2); }
.lede p:last-child { margin-bottom: 0; }
.page-hero { padding-top: var(--s4); }
.enamel-page h1 { max-width: 20ch; margin-bottom: .4em; }
.enamel-page .lede { max-width: 58ch; }
.hero-links { margin: var(--s4) 0 0; font-weight: 700; }

.content-grid { display: grid; gap: var(--s6); margin-top: var(--s5); }
.content-grid > * { min-width: 0; }
@media (min-width: 62rem) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--s7); align-items: start; }
  .side { position: sticky; top: 6rem; }
  .content-grid-form { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); }
  .content-grid-form .apply { position: sticky; top: 6rem; }
}
.prose { max-width: 70ch; }
.prose-wrap > * { max-width: 70ch; }
.prose h2 { scroll-margin-top: 6rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; background: var(--blue-wash); border-radius: var(--r-small); }
.prose-section:first-child h2 { margin-top: .6em; }
.table-wrap { overflow-x: auto; margin: 1.25em 0; border-radius: var(--r-small); box-shadow: inset 0 0 0 2px var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-family: var(--display); font-stretch: 80%; font-weight: 800; letter-spacing: .01em; }
tbody tr:last-child > * { border-bottom: 0; }

.toc { background: var(--blue-wash); border-radius: var(--r-plate); padding: var(--s5); margin: var(--s4) 0 var(--s6); max-width: 70ch; }
.toc h2 { font-size: 1.2rem; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .04em; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 16rem; column-gap: var(--s6); }
.toc li { margin-bottom: .3rem; break-inside: avoid; }

.article { padding-bottom: var(--s6); }

/* FAQ as hinged plates */
.faq { margin-top: var(--s7); }
.faq-item { border-top: 2px solid var(--ink); }
.faq-item:last-of-type { border-bottom: 2px solid var(--ink); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); padding: 1.05rem 0; font-weight: 700; font-size: 1.1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 1.3rem; height: 1.3rem; margin-top: .15rem; flex: none; background: var(--blue); -webkit-mask: url("../img/plus.svg") center / contain no-repeat; mask: url("../img/plus.svg") center / contain no-repeat; transition: rotate .3s var(--ease-out); }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item summary:hover { color: var(--blue); }
.faq-answer { padding-bottom: var(--s4); max-width: 68ch; }

.sources { margin-top: var(--s6); font-size: .92rem; color: var(--ink-2); }
.sources summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.sources ul { padding-left: 1.2rem; margin-top: .75rem; }
.sources a { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Listings
   -------------------------------------------------------------------------- */
.listings { margin-top: var(--s7); }
.listings-head { display: grid; gap: var(--s4); margin-bottom: var(--s5); }
.listings-count { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.filters { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: end; padding: var(--s4); border-radius: var(--r-plate); background: var(--blue-wash); }
.filters .btn { grid-column: 1 / -1; }
@media (min-width: 48rem) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; } .filters .btn { grid-column: auto; } }
.filters select { min-height: 2.75rem; }

.listing-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.listing-card-link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: var(--ink);
  background: var(--white); border-radius: var(--r-plate); overflow: hidden;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.listing-card-link:hover { color: var(--ink); transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--ink), 0 14px 22px -16px rgb(15 26 43 / .6); }
.listing-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--hut, var(--blue)); border-bottom: 2px solid var(--ink); }
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; }
.photo-pending {
  height: 100%; display: grid; place-content: center; justify-items: center; gap: .4rem; text-align: center;
  color: var(--hut-ink, #fff); background-color: var(--hut, var(--blue));
  background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgb(15 26 43 / .14) 18px 20px);
  font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: .95rem;
}
.photo-pending-icon { width: 3.5rem; height: 3.5rem; }
.photo-pending-large { aspect-ratio: 4 / 3; border-radius: var(--r-plate); box-shadow: inset 0 0 0 3px var(--ink); font-size: 1.15rem; }
.photo-pending-large .photo-pending-icon { width: 6rem; height: 6rem; }
.listing-card-body { padding: var(--s4) var(--s4) var(--s5); display: grid; gap: .15rem; flex: 1; align-content: start; }
.listing-card-title { margin: 0; font-size: 1.35rem; }
.listing-card-meta, .listing-card-ready { margin: 0; color: var(--ink-2); font-size: .95rem; }
.listing-card-price { margin: .35rem 0 .2rem; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.listing-card-checks { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .15rem; font-size: .88rem; }
.listing-card-checks li { display: flex; gap: .35rem; align-items: center; }
.listing-card-checks .icon { color: var(--green); width: 1rem; height: 1rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; background: var(--ink); color: #fff; }
.tag-test { position: absolute; top: .6rem; left: .6rem; background: var(--mustard); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.listing-head .tag-test { position: static; }

.pagination { display: flex; justify-content: center; align-items: center; gap: var(--s5); margin-top: var(--s6); font-weight: 700; }

/* Empty state: alert sign-up */
.alert-box { display: grid; gap: var(--s5); padding: var(--s6); border-radius: var(--r-plate); background: var(--blue-wash); box-shadow: inset 0 0 0 2px var(--ink); }
.alert-box h3 { margin-top: 0; font-size: 1.6rem; }
.alert-box p { margin: 0; max-width: 52ch; }
.inline-field { display: flex; gap: var(--s2); flex-wrap: wrap; }
.inline-field input { flex: 1 1 14rem; }
@media (min-width: 52rem) { .alert-box { grid-template-columns: 1.2fr 1fr; align-items: center; } }

/* --------------------------------------------------------------------------
   Notice boards: rules set in enamel
   -------------------------------------------------------------------------- */
.byelaws { padding-block: var(--s8) 0; }
.enamel-notice { --hut: var(--white); --hut-ink: var(--ink); box-shadow: inset 0 0 0 7px var(--white), inset 0 0 0 10px var(--blue), var(--plate-shadow); }
.enamel-notice h2 { margin-top: 0; color: var(--red); text-transform: uppercase; font-stretch: 64%; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: .01em; }
.byelaw-list { list-style: none; counter-reset: rule; padding: 0; margin: var(--s5) 0; display: grid; gap: var(--s5) var(--s6); }
@media (min-width: 48rem) { .byelaw-list { grid-template-columns: 1fr 1fr; } }
.byelaw-list li { counter-increment: rule; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 var(--s4); }
.byelaw-list li::before { content: counter(rule); grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 1.35rem; }
.byelaw-list h3 { margin: .2rem 0 .3rem; color: var(--blue); }
.byelaw-list p { margin: 0; color: var(--ink-2); }
.enamel-foot { margin: 0; padding-top: var(--s4); border-top: 2px solid var(--rule); font-weight: 700; }
.enamel-notice .enamel-foot a { color: var(--blue); }

.notice-board { background: var(--white); border-radius: var(--r-plate); overflow: hidden; box-shadow: inset 0 0 0 2px var(--ink); margin-bottom: var(--s5); }
.notice-board-title { margin: 0; padding: .9rem var(--s5); background: var(--red); color: #fff; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; font-stretch: 66%; }
.notice-board-rules { margin: 0; padding: var(--s4) var(--s5) var(--s2) 2.6rem; font-size: .97rem; }
.notice-board-rules li { margin-bottom: .55rem; }
.notice-board-rules li::marker { font-family: var(--display); font-weight: 900; color: var(--red); }
.notice-board-foot { margin: 0; padding: 0 var(--s5) var(--s4); font-size: .92rem; font-weight: 700; }

/* Direction boards: links to towns and breeds */
.station-board { background: var(--green); color: #fff; border-radius: var(--r-plate); padding: var(--s5); box-shadow: inset 0 0 0 6px var(--green), inset 0 0 0 8px #fff; }
.station-board h2, .station-board h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mustard); margin: 0 0 .5rem; font-stretch: 72%; }
.station-board h2:not(:first-child), .station-board h3:not(:first-child) { margin-top: var(--s5); }
.station-board ul { list-style: none; padding: 0; margin: 0; }
.station-board li { border-top: 1px solid rgb(255 255 255 / .22); }
.station-board a { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; color: #fff; text-decoration: none; font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 1.05rem; }
.station-board a::after { content: ""; width: 1.1rem; height: 1.1rem; flex: none; background: currentColor; -webkit-mask: url("../img/arrow.svg") center / contain no-repeat; mask: url("../img/arrow.svg") center / contain no-repeat; transition: translate .2s var(--ease-out); }
.station-board a:hover::after { translate: 4px 0; }
.station-board a:hover { text-decoration: underline; text-underline-offset: .15em; }
.station-board p { margin: 0; font-size: .95rem; }

.towns-section { margin-top: var(--s8); }
.towns-grid { display: grid; gap: var(--s6); }
.towns-grid h2 { margin-top: 0; }
@media (min-width: 56rem) { .towns-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* County hub */
.split-huts { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 40rem) { .split-huts { grid-template-columns: 1fr 1fr; } }
.big-hut { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 var(--s4); padding: var(--s5); border-radius: var(--r-plate); background: var(--hut); color: var(--hut-ink); text-decoration: none; box-shadow: inset 0 0 0 3px var(--ink); background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgb(15 26 43 / .14) 18px 20px); }
.big-hut .count-plate { grid-row: span 2; font-size: 1.6rem; }
.big-hut strong { font-family: var(--display); font-stretch: 66%; font-weight: 900; font-size: 2.2rem; line-height: 1; }
.big-hut:hover { color: var(--hut-ink); filter: brightness(1.08); }

/* Town plate */

/* Guide index + find strip */
.guide-list { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.guide-item a { display: grid; gap: .35rem; height: 100%; padding: var(--s5); border-radius: var(--r-plate); text-decoration: none; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 2px var(--ink), inset 0 10px 0 var(--hut); padding-top: calc(var(--s5) + 8px); }
.guide-item strong { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.6rem; line-height: 1; }
.guide-item span { color: var(--ink-2); font-size: .95rem; }
.guide-item a:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: .12em; }
.find-strip { display: flex; align-items: center; gap: var(--s4); margin: var(--s5) 0; padding: var(--s4) var(--s5); border-radius: var(--r-plate); background: var(--hut); color: var(--hut-ink); text-decoration: none; font-family: var(--display); font-stretch: 76%; font-weight: 800; font-size: 1.3rem; line-height: 1.1; box-shadow: inset 0 0 0 3px var(--ink); max-width: 70ch; }
.find-strip small { display: block; font-family: var(--text); font-stretch: 100%; font-weight: 400; font-size: .92rem; opacity: .95; }
.find-strip .icon { margin-left: auto; width: 1.6rem; height: 1.6rem; transition: translate .25s var(--ease-out); }
.find-strip:hover { color: var(--hut-ink); }
.find-strip:hover .icon { translate: 5px 0; }
.related { margin-top: var(--s7); }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.related a { display: inline-block; padding: .4rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); text-decoration: none; color: var(--ink); font-weight: 700; }
.related a:hover { background: var(--blue-wash); }

/* --------------------------------------------------------------------------
   Listing page
   -------------------------------------------------------------------------- */
.listing { padding-top: var(--s4); }
.listing-head { margin-bottom: var(--s5); }
.listing-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); margin-bottom: .2em; }
.listing-sub { color: var(--ink-2); font-size: 1.1rem; }
.listing-layout { display: grid; gap: var(--s6); }
.listing-layout > * { min-width: 0; }
@media (min-width: 62rem) { .listing-layout { grid-template-columns: minmax(0, 1fr) 24rem; gap: var(--s7); align-items: start; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-small); }
.gallery-lead { grid-column: 1 / -1; }
.gallery-lead img { border-radius: var(--r-plate); }
.gallery > .photo-pending { grid-column: 1 / -1; }
.facts { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { padding: .7rem 0; border-top: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 700; padding-right: var(--s4); }
.facts .price { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.6rem; line-height: 1.1; }
.facts .price small { font-family: var(--text); font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.listing-side > * + * { margin-top: var(--s5); }
.breeder-plate { padding: var(--s5); border-radius: var(--r-plate); background: var(--blue); color: #fff; box-shadow: inset 0 0 0 6px var(--blue), inset 0 0 0 8px #fff; }
.breeder-plate h2.breeder-name { margin: 0 0 var(--s4); color: #fff; }
.breeder-name { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.7rem; line-height: 1.05; margin-bottom: var(--s4); }
.checks-list { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: .5rem; }
.checks-list li { display: flex; gap: .55rem; align-items: flex-start; }
.checks-list .icon { color: var(--mustard); margin-top: .1em; }
.breeder-plate a { color: #fff; }
.enquiry { padding: var(--s5); border-radius: var(--r-plate); box-shadow: inset 0 0 0 2px var(--ink); scroll-margin-top: 6rem; }
.enquiry h2 { margin-top: 0; }
.report-link { display: flex; align-items: center; gap: .4rem; font-weight: 700; }
.report-link .icon { color: var(--red); }
.similar { margin-top: var(--s8); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s4); }
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s4); min-width: 0; }
.form legend { font-family: var(--display); font-stretch: 76%; font-weight: 800; font-size: 1.45rem; margin-bottom: var(--s2); padding: 0; }
.field { min-width: 0; }
.field-hint { margin: 0 0 .4rem; color: var(--ink-2); font-size: .92rem; }
.field-error { margin: 0 0 .4rem; color: var(--red-deep); font-weight: 700; font-size: .95rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; }
.field-check label { font-weight: 400; margin: 0; font-size: 1rem; }
.field-check .field-hint, .field-check .field-error { grid-column: 2; }
.field-radios legend { font-family: var(--text); font-stretch: 100%; font-weight: 700; font-size: .95rem; }
.radios { display: grid; gap: .5rem; }
.radio { display: flex; gap: .65rem; align-items: flex-start; }
.radio label { font-weight: 400; margin: 0; }
.field-row { display: grid; gap: var(--s4); }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-aside { margin-top: var(--s5); }
.error-summary { padding: var(--s4) var(--s5); border-radius: var(--r-small); box-shadow: inset 0 0 0 3px var(--red); background: #fff4f1; margin-bottom: var(--s4); }
.error-summary h2 { margin: 0 0 .5rem; font-size: 1.3rem; color: var(--red-deep); }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--red-deep); font-weight: 700; }
.error-summary p { margin: 0; font-weight: 700; color: var(--red-deep); }
.panel { padding: var(--s5); border-radius: var(--r-plate); box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.panel h2 { margin-top: 0; }
.apply { scroll-margin-top: 6rem; }

.notice { padding: var(--s3) var(--s4); border-radius: var(--r-small); margin-block: var(--s4); box-shadow: inset 0 0 0 2px var(--ink); background: var(--blue-wash); }
.notice p { margin: 0; }
.notice-success { background: #e7f4ec; box-shadow: inset 0 0 0 2px var(--green); }
.notice-error { background: #fff4f1; box-shadow: inset 0 0 0 2px var(--red); }
.flashes { padding-top: var(--s3); }

.thanks, .error-page { text-align: left; }
.thanks-next, .error-page > p { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.error-code { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 5rem; line-height: 1; margin: 0 0 .2em; color: var(--mustard); }

/* Account + photos */
.account { padding-bottom: var(--s7); }
.account-actions { margin-bottom: var(--s5); }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.row-actions form { display: inline; }
.status { display: inline-block; padding: .1rem .5rem; border-radius: 4px; font-size: .82rem; font-weight: 700; background: var(--blue-wash); color: var(--ink); text-transform: capitalize; white-space: nowrap; }
.status-live, .status-approved { background: #d6efdf; color: var(--green-deep); }
.status-pending_review, .status-pending, .status-new, .status-in_review { background: #fdf0cc; color: #6b4c00; }
.status-removed, .status-suspended, .status-rejected { background: #fbe1dc; color: var(--red-deep); }
.photo-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--s3); margin: var(--s4) 0 var(--s6); }
.photo-grid img { border-radius: var(--r-small); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.logout { margin-top: var(--s7); }
.secret code { font-size: 1.3rem; letter-spacing: .1em; background: var(--blue-wash); padding: .5rem .8rem; border-radius: var(--r-small); display: inline-block; }

/* Cookie banner */
.cookie-banner { position: fixed; inset: auto 0 0; z-index: 60; background: var(--ink); color: #fff; padding-block: var(--s4); border-top: 4px solid var(--mustard); }
.cookie-inner { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.cookie-inner p { margin: 0; max-width: 60ch; }
.cookie-inner a { color: #fff; }
.cookie-actions { display: flex; gap: var(--s2); }

/* --------------------------------------------------------------------------
   Admin (inherits tokens, stays plain)
   -------------------------------------------------------------------------- */
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); min-height: 3.5rem; }
.admin-bar a, .admin-bar .link-btn { color: #fff; }
.admin-brand { font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.3rem; text-decoration: none; margin-right: auto; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: var(--s4); }
.admin-main { padding-block: var(--s5) var(--s8); }
.admin-main h1 { font-size: 2.2rem; }
.stat-row { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: var(--s6); }
.stat { display: block; padding: var(--s4); border-radius: var(--r-small); box-shadow: inset 0 0 0 2px var(--ink); text-decoration: none; color: var(--ink); }
.stat strong { display: block; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 2.4rem; line-height: 1; }
.admin-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; margin-top: var(--s5); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s4); margin-bottom: var(--s4); font-weight: 700; }
.tabs [aria-current] { color: var(--ink); text-decoration: none; box-shadow: inset 0 -3px 0 var(--mustard); }
.data td small { color: var(--ink-2); }
.vetting fieldset { padding: var(--s4); border-radius: var(--r-small); box-shadow: inset 0 0 0 2px var(--rule); }
.auth { padding-top: var(--s7); }

/* --------------------------------------------------------------------------
   Print: the buying checklist is meant to be printed
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .breadcrumbs, .env-strip, .cookie-banner, .print-line, .toc, .faq, .sources { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .prose { max-width: none; }
  h2 { break-after: avoid; }
  li { break-inside: avoid; }
}

.enamel-town { --hut: var(--green); --hut-ink: #fff; }

/* Behind the door: the live stencilled count, revealed as the door swings */
.hut-inside { position: absolute; left: 32%; right: 32%; top: 30%; bottom: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: .1rem; color: var(--mustard); font-family: var(--display); font-stretch: 62%; font-weight: 900; line-height: 1; text-align: center; }
.hut-inside b { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); }
.hut-door { isolation: isolate; }
.hut-door::after { z-index: -1; }
.hut-inside { z-index: 0; }
.hut-door::before { z-index: 1; }
@media (min-width: 30rem) and (max-width: 47.99rem) { .filters { grid-template-columns: 1fr 1fr; } }

/* Low inventory: the alert plate fills the empty columns instead of leaving a hole */
.listing-grid-sparse { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.alert-inline { grid-column: span 3; display: grid; align-content: center; gap: var(--s4); padding: var(--s6); border-radius: var(--r-plate); background: var(--blue-wash); box-shadow: inset 0 0 0 2px var(--ink); }
.alert-inline h3 { margin: 0; font-size: 1.5rem; }
.alert-inline p { margin: 0; max-width: 46ch; }
@media (max-width: 61.99rem) { .alert-inline { grid-column: 1 / -1; } }
@media (min-width: 62rem) { .listing-grid-sparse[data-count="2"] .alert-inline { grid-column: span 2; } .listing-grid-sparse[data-count="3"] .alert-inline { grid-column: span 1; } }
/* Guides: sticky contents plate in the breed's hut colour uses the right column */
.guide-layout { display: grid; gap: var(--s6); }
.guide-layout > * { min-width: 0; }
@media (min-width: 64rem) { .guide-layout { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--s7); align-items: start; } .guide-side { position: sticky; top: 6rem; } }
.guide-hero { margin-top: var(--s4); }
.toc-plate { background: var(--hut); color: var(--hut-ink); border-radius: var(--r-plate); padding: var(--s5); box-shadow: inset 0 0 0 6px var(--hut), inset 0 0 0 8px var(--hut-ink); }
.toc-plate h2 { margin: 0 0 .6rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: inherit; }
.toc-plate ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .95rem; }
.toc-plate a:not(.btn) { color: inherit; }
.toc-plate .btn { margin-top: var(--s4); width: 100%; }
