/* KennelPort template "ak": the AK sample (docs/reference/ak-sample.html) as a
   multi-page site, in any colour scheme (scheme-<id>.css). Fonts are served from
   the site (plan 3.3), under the SIL Open Font License (LICENSE-*.txt beside them). The site's CSP allows no
   inline styles, so every style lives here. */
:root { --wrap: 1120px; }
/* Colours, fonts, heading weight, script line and corners come from the site's
   colour scheme: scheme-<id>.css beside this file, loaded first (plan 3.13). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, .flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: var(--display-w); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.script { font-family: var(--f-script); font-weight: 400; font-style: var(--script-style); color: var(--brass); font-size: var(--script-size); line-height: 1; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.band { background: var(--band); }
.head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 36px; position: relative; }
.head p.lede { max-width: 58ch; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: rectangles. One solid main action; the rest outlined or text with an arrow. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--r); font: 700 .9rem/1 var(--f-body); letter-spacing: .04em; border: 1.5px solid var(--accent); cursor: pointer; transition: background .2s, color .2s; }
.btn.solid { background: var(--accent); color: var(--accent-ink); }
.btn.solid:hover { filter: brightness(1.08); }
.btn.line { background: transparent; color: var(--accent); }
.btn.line:hover { background: var(--accent); color: var(--accent-ink); }
.more { font-weight: 700; color: var(--accent); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(3px); }

/* Header + nested menu */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; flex: none; color: var(--ink); }
.brand b { display: block; font: 600 1.15rem/1.1 var(--f-display); letter-spacing: .01em; }
.brand span { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
/* Her own logo in place of the monogram; tap for full size (plan 3.12). */
.brand-logo { display: block; flex: none; line-height: 0; border-radius: var(--r); }
.brand-logo img { height: 56px; width: auto; max-width: 96px; object-fit: contain; }
a.brand-logo { cursor: zoom-in; }
.brand-name { display: block; min-width: 0; }
footer.site .brand-logo img { height: 64px; max-width: 110px; }
@media (max-width: 420px) { .brand-logo img { height: 46px; max-width: 76px; } }
dialog.logo-zoom { border: 0; padding: 0; background: transparent; max-width: min(92vw, 640px); max-height: 92vh; overflow: visible; }
dialog.logo-zoom::backdrop { background: rgba(0, 0, 0, .78); }
dialog.logo-zoom img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: var(--r); }
dialog.logo-zoom form { position: absolute; top: -14px; right: -14px; }
.logo-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
nav.main > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
nav.main li { position: relative; }
.navtop { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font: 600 .92rem var(--f-body); color: var(--ink); background: none; border: 0; cursor: pointer; border-radius: var(--r); }
.navtop .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.navtop[aria-current="page"] { color: var(--accent); }
.drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.drop a { display: block; padding: 9px 12px; border-radius: var(--r); font-size: .92rem; }
.drop a:hover { background: var(--band); color: var(--accent); }
@media (hover: hover) and (min-width: 961px) { nav.main li:hover > .drop { opacity: 1; visibility: visible; transform: none; } }
nav.main li.open > .drop { opacity: 1; visibility: visible; transform: none; }
nav.main li.open > .navtop .chev { transform: rotate(225deg) translate(-2px, -1px); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; } .menu-toggle span::after { position: absolute; top: 6px; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  nav.main { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 110px); overflow-y: auto; }
  nav.main.show { display: block; }
  nav.main > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  nav.main > ul > li { border-bottom: 1px solid var(--line); }
  nav.main > ul > li:last-child { border: 0; padding-top: 12px; }
  .navtop { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1rem; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; display: none; min-width: 0; }
  nav.main li.open > .drop { display: block; }
  nav.main .btn { width: 100%; }
}

/* Ornament */
.sprig { position: absolute; width: 120px; height: 60px; color: var(--accent); opacity: .28; pointer-events: none; }
.sprig.l { left: calc(50% - 300px); top: 6px; transform: scaleX(-1); }
.sprig.r { right: calc(50% - 300px); top: 6px; }
@media (max-width: 720px) { .sprig { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-copy h1 .script { display: block; font-size: .78em; margin-top: 6px; }
.hero-copy p { color: var(--muted); max-width: 46ch; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero.no-photos { grid-template-columns: 1fr; }
/* The collage: each box has its own shape (wide 4:3, tall 4:5, square), set on its
   photo so the frame round it doesn't change it, and the layout places them; the
   breeder picks the photo for each box and which part to keep (f-top / f-middle /
   f-bottom). */
.hero-photos { position: relative; display: grid; gap: 12px; width: 100%; min-width: 0; }
.hero-photos .box img { width: 100%; height: auto; object-fit: cover; border-radius: var(--r); display: block; }
.box.wide img { aspect-ratio: 4 / 3; }
.box.tall img { aspect-ratio: 4 / 5; }
.box.square img { aspect-ratio: 1; }
.f-top img { object-position: 50% 0; }
.f-bottom img { object-position: 50% 100%; }
.hero-photos.tall_two_wide .box.tall img { height: 100%; aspect-ratio: auto; }
/* Each photo's frame, in the scheme's own colours. Mat: a soft card (the
   parent-dog circles' surface border and hairline). Double: the mat with a brass
   inner rule. Vine: a leafy stem all the way round the photo, its pieces masks
   (vine-*.svg) filled with the accent. None: the bare photo. */
.hero-photos .box { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 3px); padding: 5px; box-shadow: var(--shadow); min-width: 0; }
.frame-double .box { padding: 10px; }
.frame-double .box::after { content: ""; position: absolute; inset: 4px; border: 1.5px solid var(--brass); border-radius: calc(var(--r) + 1px); pointer-events: none; }
.frame-none .box, .frame-sprig .box { background: none; border: 0; padding: 0; box-shadow: none; }
.frame-sprig { gap: 16px; }
.frame-sprig .box { padding: 22px; }
.vine { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.vine i { position: absolute; display: block; background: var(--accent); opacity: .85; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.vine .t, .vine .b { left: 56px; right: 56px; height: 28px; }
.vine .l, .vine .r { top: 56px; bottom: 56px; width: 28px; }
.vine .t { top: 0; } .vine .b { bottom: 0; transform: scaleY(-1); }
.vine .l { left: 0; } .vine .r { right: 0; transform: scaleX(-1); }
.vine i.t, .vine i.b { -webkit-mask: url(vine-h.svg) repeat-x 0 0 / 102px 28px; mask: url(vine-h.svg) repeat-x 0 0 / 102px 28px; }
.vine i.l, .vine i.r { -webkit-mask: url(vine-v.svg) repeat-y 0 0 / 28px 102px; mask: url(vine-v.svg) repeat-y 0 0 / 28px 102px; }
.vine .c { width: 56px; height: 56px; }
.vine i.c { -webkit-mask: url(vine-c.svg) no-repeat 0 0 / 56px 56px; mask: url(vine-c.svg) no-repeat 0 0 / 56px 56px; }
.vine .tl { top: 0; left: 0; } .vine .tr { top: 0; right: 0; transform: scaleX(-1); }
.vine .bl { bottom: 0; left: 0; transform: scaleY(-1); } .vine .br { bottom: 0; right: 0; transform: scale(-1, -1); }
.hero-photos.one_tall { max-width: 440px; justify-self: center; }
.hero-photos.two_tall, .hero-photos.wide_two_square, .hero-photos.four_square { grid-template-columns: 1fr 1fr; }
.hero-photos.two_wide { max-width: 520px; justify-self: center; }
.hero-photos.tall_two_wide { grid-template-columns: 1.2fr 1fr; }
.hero-photos.tall_two_wide .box.tall { grid-row: span 2; }
.hero-photos.wide_two_square .box.wide { grid-column: span 2; }
/* The banner: a wide strip right under the header, across the page. */
.banner { aspect-ratio: 5 / 2; max-height: 440px; width: 100%; overflow: hidden; border-bottom: 4px solid var(--surface); box-shadow: 0 1px 0 var(--line); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.facts div { display: grid; }
.facts b { font: var(--display-w) 1.6rem/1 var(--f-display); }
.facts span { font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
/* A long fact wraps inside a third of the row, so three sit side by side; short ones keep their own width. On a phone each may take the full line. */
.facts div { flex: 0 1 auto; max-width: calc((100% - 56px) / 3); align-content: start; }
.facts span { line-height: 1.5; }
@media (max-width: 720px) { .facts div { max-width: 100%; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* Story + features. The photo is a tall 4:5 beside the words, the same shape at
   every width, so a breeder has one shape to pick a photo for; on a phone it is
   shrunk and centred above them rather than running the whole width. With no
   photo the words take the width: no empty box is drawn.
   height: auto is what makes aspect-ratio bite: the <img> carries the photo's own
   width and height, and that height would otherwise win over the ratio and leave
   the photo as tall as its own pixels, zoomed right in to fill the column. */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.story.no-photo { grid-template-columns: 1fr; }
.story img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); max-width: 100%; }
.story-copy { display: grid; gap: 16px; min-width: 0; }
.story-copy > p { color: var(--muted); max-width: 60ch; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.feature { display: grid; gap: 6px; align-content: start; }
.feature svg { width: 34px; height: 34px; color: var(--accent); }
.feature b { font-family: var(--f-display); font-weight: var(--display-w); font-size: 1.05rem; }
.feature p { font-size: .88rem; color: var(--muted); }
/* Her story photo in a frame (the collage's: .box and .frame-* below). */
.story-pic { min-width: 0; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story img { max-width: 300px; justify-self: center; } .story-pic { justify-self: center; width: 100%; max-width: 300px; } .story-pic img { max-width: 100%; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Slider */
.slider { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; min-width: 0; }
.track.three { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
.track.two { grid-auto-columns: calc((100% - 20px) / 2); }
@media (max-width: 960px) { .track, .track.three { grid-auto-columns: calc((100% - 20px) / 2.2); } }
@media (max-width: 560px) { .track, .track.three, .track.two { grid-auto-columns: 82%; gap: 14px; } }
.slider-ctl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 42px; height: 42px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r); cursor: pointer; font-size: 1.1rem; }
.arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.arrow:disabled { opacity: .35; cursor: default; }
.count { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .08em; }

/* Co-owned dogs living with a co-owner: light cards, no flip, smaller and more of
   them across; the partner kennels' logos under them. */
.track.light { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; }
@media (max-width: 960px) { .track.light { grid-auto-columns: calc((100% - 2 * 16px) / 2.5); } }
@media (max-width: 560px) { .track.light { grid-auto-columns: 60%; gap: 12px; } }
.cocard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; height: 100%; }
.cocard:hover { border-color: var(--accent); }
.cocard > img, .cocard > .ph-photo { width: 100%; aspect-ratio: 4 / 3; flex: none; }
.cocard > img { height: auto; object-fit: cover; display: block; } /* height: auto: see .story img */
.cocard > .ph-photo { font-size: .9rem; }
.cocard .cobody { display: grid; gap: 2px; padding: 10px 12px 12px; }
.cocard .call { font-family: var(--f-display); font-weight: var(--display-w); font-size: 1.05rem; }
.cowith { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.plogo { width: 22px; height: 22px; object-fit: contain; border-radius: 3px; flex: none; }
.pk { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.partners { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.partners li { display: flex; }
.partners a, .partners li > span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .86rem; }
.partners .plogo { width: 44px; height: 44px; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.partners a:hover, .partners a:focus-visible { color: var(--ink); }
.partners a:hover .plogo, .partners a:focus-visible .plogo { filter: none; opacity: 1; }

/* Photo beside details: a dog's photo with its details beside it and its bio under
   both. Two across on a wide screen, one full-width card otherwise; each card puts
   its photo on top when it is narrow (a phone). Built from the dog page's parts. */
.dogrows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 961px) { .dogrows:not(.one) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dogrows.one { max-width: 780px; margin: 0 auto; }
.dogrow { container-type: inline-size; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(14px, 2.4vw, 22px); display: grid; gap: 14px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.dr-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(14px, 2.4vw, 24px); align-items: start; }
.dogrow.no-photo .dr-top { grid-template-columns: minmax(0, 1fr); }
.dogrow .photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--band); display: block; }
.dogrow .photo.ph-photo { display: grid; place-items: center; font-size: .9rem; }
.dr-info, .dr-under { display: grid; gap: 6px; min-width: 0; align-content: start; }
.dogrow .call { font: var(--display-w) 1.35rem/1.2 var(--f-display); }
.dogrow .reg { color: var(--muted); font-style: italic; font-size: .9rem; }
.dogrow .line1 { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: .86rem; color: var(--muted); }
.dogrow .eyebrow { margin-top: 6px; }
.dogrow .bio { color: var(--muted); margin: 0; }
.dogrow .cowith { margin-top: 2px; }
@container (max-width: 420px) { .dr-top { grid-template-columns: minmax(0, 1fr); } .dogrow .photo { aspect-ratio: 4 / 3; } }

/* A Dog cards block's "line between cards": where its cards stack one under
   another, a 4px accent bar in the gap between each card and the next. */
@media (max-width: 960px) { .dogrows.lines { gap: 44px; } .dogrows.lines > * + * { position: relative; } .dogrows.lines > * + *::before { content: ''; position: absolute; left: 20%; right: 20%; top: -24px; height: 4px; border-radius: 2px; background: var(--accent); } }
@media (max-width: 560px) { .grid.lines { grid-template-columns: minmax(0, 1fr); gap: 44px; } .grid.lines > * + * { position: relative; } .grid.lines > * + *::before { content: ''; position: absolute; left: 20%; right: 20%; top: -24px; height: 4px; border-radius: 2px; background: var(--accent); } }

/* Flip cards */
/* A card is as tall as its taller side needs, never under 430px: both faces sit in one
   grid cell, so neither is cut off (a full health panel, a bio on the front). The photo
   keeps one height; the coloured part under it takes whatever is left. */
.flip { perspective: 1200px; cursor: pointer; min-height: 430px; border-radius: var(--r); display: grid; }
/* Cards in one row are as tall as the tallest (the owner, 2026-11-24): a card straight in
   a grid stretches by itself; one inside a wrapper (the Dogs block's Show filter) fills it. */
.grid > div > .flip { height: 100%; }
/* Breed and role beside titles, and tags, wherever a card puts them (the front's caption
   and Photo beside details style theirs further below): a space between the pieces. */
.line1 { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.flip-in { position: relative; display: grid; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,.7,.3,1); }
@media (hover: hover) { .flip:hover .flip-in { transform: rotateY(180deg); } }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.face { position: relative; grid-area: 1 / 1; min-width: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.front > img, .front > .ph-photo { width: 100%; height: 320px; flex: none; object-fit: cover; display: block; }
.front > .ph-photo { display: grid; }
.front .cap { padding: 14px 16px 16px; display: grid; gap: 2px; align-content: start; flex: 1; border-top: 1px solid var(--line); }
.front .cap:first-child, .front .turn + .cap { border-top: 0; }
.cap .bio { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }
.cap .call { font: var(--display-w) 1.35rem/1.1 var(--f-display); }
.cap .reg { font-size: .8rem; color: var(--muted); font-style: italic; }
.cap .line1 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-top: 4px; display: flex; justify-content: space-between; gap: 8px; }
.turn { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 88%, transparent); border-radius: var(--r); color: var(--ink); font-size: .95rem; }
.back { transform: rotateY(180deg); padding: 20px 18px 18px; gap: 10px; }
.back .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .1; }
.back > :not(.bg) { position: relative; }
.back .call { font: var(--display-w) 1.35rem/1.1 var(--f-display); }
.back .reg { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: -6px; }
.tests { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .84rem; }
.tests li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 4px; }
.tests li span:last-child { font-weight: 700; text-align: right; }
/* Two-column lists: on a big card (flip, photo beside details, Featured) site.js sets a
   list (data-cols) in two columns only where one per line would make the card grow past
   its photo or its other side; a row too long for half the width (.wide) keeps the whole
   line, before the short ones (each list on its own: details with details, results with
   results; in health results each kind on its own rows, set by site.js with order), so
   the short ones pair up rather than going long, short, long, short. The
   left column's rows (.l) draw the dotted line between the columns, down to the last
   pair (.end).
   Without the script, one per line in its own order, as before. */
.tests.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.tests.cols li:not(.wide) { white-space: nowrap; }
.tests.cols li.wide { grid-column: 1 / -1; order: -1; }
.tests.cols li.l { position: relative; }
.tests.cols li.l::after { content: ""; position: absolute; top: 0; bottom: -5px; right: -9px; border-right: 1px dotted var(--line); }
.tests.cols li.l.end::after { bottom: 0; }
.back .bio { font-size: .86rem; color: var(--muted); margin: 0; }
.back .more { margin-top: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* A pill's colour: one of the scheme's (c-*); .avail and .res are the two it had before. */
.status { --pc: var(--held); color: var(--pc); }
.c-accent { --pc: var(--accent); } .c-brass { --pc: var(--brass); } .c-ok, .status.avail { --pc: var(--ok); }
.c-held, .status.res { --pc: var(--held); } .c-ink { --pc: var(--ink); } .c-muted { --pc: var(--muted); }
/* The site's pill style (html data-pills); none is the dot above. */
[data-pills] .status::before { display: none; }
[data-pills] .status { font-size: .68rem; letter-spacing: .13em; line-height: 1.2; }
[data-pills] .line1.tags, [data-pills] .cap .line1:has(.status) { flex-wrap: wrap; gap: 6px; }
[data-pills="ribbon"] .status { background: var(--pc); color: var(--bg); padding: 4px 10px 4px 14px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); }
[data-pills="capsule"] .status { padding: 3px 11px; border: 1.5px solid currentColor; border-radius: 999px; }
[data-pills="chip"] .status { text-transform: none; letter-spacing: .01em; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r); background: color-mix(in srgb, var(--pc) 13%, transparent); }
[data-pills="chip"] .status::before { display: block; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); }
[data-pills="wave"] .status, [data-pills="satin"] .status { padding: 7px 16px; line-height: 1; color: var(--bg); background: var(--pc);
  -webkit-mask: url(wave.svg) center / 28px 100% repeat-x; mask: url(wave.svg) center / 28px 100% repeat-x;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%); }
/* The wave is a file beside this one, as the vine's are: the site's CSP allows images from
   the site only, so a data: URL mask was blocked and the pill drew nothing (2026-11-25). */
[data-pills="satin"] .status { background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 72%, #fff) 0%, var(--pc) 45%, color-mix(in srgb, var(--pc) 80%, #000) 100%); }
.ribbon { position: absolute; left: 0; top: 14px; background: var(--ink); color: var(--bg); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; }
.flip-hint { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Litter cards */
.litters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .litters { grid-template-columns: minmax(0, 1fr); } }
.litter { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.pair .names { min-width: 0; overflow-wrap: anywhere; }
.litter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; align-content: start; }
.pair { display: flex; align-items: center; gap: 14px; }
.pair img, .pair .ph { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); flex: none; }
.pair .ph { display: grid; place-items: center; background: var(--band); color: var(--muted); font-family: var(--f-display); font-size: 1.4rem; }
.pair .x { font: 400 1.6rem var(--f-display); color: var(--brass); }
.pair .names { display: grid; min-width: 0; }
.pair .names b { font: var(--display-w) 1.2rem/1.2 var(--f-display); }
@media (max-width: 420px) { .litter { padding: 18px 16px; } .pair { gap: 8px; } .pair .x { font-size: 1.3rem; } .pair img, .pair .ph { width: 58px; height: 58px; } .pair .names b { font-size: 1.05rem; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* Reviews */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start; height: 100%; }
.stars { color: var(--brass); letter-spacing: 2px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.5; }
.review .who { display: flex; align-items: center; gap: 12px; font-size: .86rem; }
.review .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* CTA band */
.cta { background: var(--accent); color: var(--accent-ink); }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-block: 48px; }
.cta h2 { color: inherit; }
.cta p { opacity: .85; max-width: 52ch; margin-top: 8px; }
.cta .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
@media (max-width: 700px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Expanders */
.acc { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
details.x { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
details.x > summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font: var(--display-w) 1.08rem/1.35 var(--f-display); position: relative; }
details.x > summary::-webkit-details-marker { display: none; }
details.x > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.x[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
details.x .body { padding: 0 20px 18px; color: var(--muted); display: grid; gap: 10px; max-width: 70ch; }

/* Steps */
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; height: 100%; }
.step .n { font: var(--display-w) 2.2rem/1 var(--f-display); color: var(--brass); }
.step p { color: var(--muted); font-size: .92rem; }
/* An Extras block's highlighted one, as the Extras page's .pkg.top; its label a pill. */
.step.top { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.step > .status:first-child, .pkg > .status:first-child { justify-self: start; }

/* Extended homegoing packages */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .pkgs { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.pkg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 22px; display: grid; gap: 12px; position: relative; }
.pkg.top { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.pkg .weeks { display: flex; align-items: baseline; gap: 10px; }
.pkg .weeks b { font: var(--display-w) 3rem/1 var(--f-display); color: var(--accent); }
.pkg .weeks span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.pkg h3 { font-size: 1.35rem; }
.pkg .price { font: var(--display-w) 1.3rem var(--f-display); font-variant-numeric: tabular-nums; color: var(--brass); }
.pkg > p { color: var(--muted); font-size: .93rem; }
.pkg details { border-top: 1px solid var(--line); padding-top: 10px; }
.pkg summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: .9rem; list-style: none; position: relative; padding-right: 20px; }
.pkg summary::-webkit-details-marker { display: none; }
.pkg summary::after { content: ""; position: absolute; right: 4px; top: 45%; width: 7px; height: 7px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-50%) rotate(45deg); transition: transform .2s; }
.pkg details[open] summary::after { transform: translateY(-10%) rotate(225deg); }
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.checks li::before { content: ""; width: 10px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); margin-top: 6px; }

/* Filter row */
.filter { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.filter label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
select, input[type="text"], input[type="email"], input[type="search"], textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-height: 44px; max-width: 100%; }
select { padding-right: 36px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* Waitlist (KennelOS public list, embedded) */
.embed { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.embed-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; background: var(--band); border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--muted); letter-spacing: .06em; }
.embed-bar b { color: var(--ink); letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.embed-in { padding: clamp(14px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.embed-in > *, .card { min-width: 0; }
.embed { width: 100%; }
form.inline input { min-width: 0; }
.embed-in header { display: grid; gap: 8px; }
.embed-in h2 { font-size: 1.7rem; }
.intro { white-space: pre-line; color: var(--muted); max-width: 66ch; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--surface); }
details.card > summary { list-style: none; cursor: pointer; position: relative; padding-right: 30px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h3 { font-size: 1.12rem; }
details.card > summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.card[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
details.card[open] > summary { margin-bottom: 12px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
ul.plain > li { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
ul.plain > li:first-child { border: 0; padding-top: 0; }
.parent-tests summary { cursor: pointer; color: var(--accent); font-weight: 700; margin-top: 4px; }
.parent-tests ul { list-style: none; padding: 6px 0 0; margin: 0; display: grid; gap: 4px; }
form.inline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
form.inline input { flex: 1 1 220px; }
.note-sample { font-size: .85rem; color: var(--held); min-height: 1.2em; }
.searchbox { display: grid; gap: 6px; }
.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th { text-align: left; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); font-weight: 700; }
table.list td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num { font-variant-numeric: tabular-nums; color: var(--muted); width: 3.5em; font-weight: 700; }
table.list tr.deciding td { color: var(--muted); }
table.list td:nth-child(2) { white-space: nowrap; }
@media (max-width: 400px) { .card { padding: 14px 12px; } form.inline input { flex-basis: 100%; } form.inline .btn { width: 100%; } table.list { font-size: .9rem; } table.list td:nth-child(2) { white-space: normal; } }
@media (max-width: 560px) { table.list td, table.list th { padding-left: 6px; padding-right: 6px; } }
td.tip, th.tip { width: 36px; text-align: right; }
.added-tip { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font: italic 700 .78rem/1 Georgia, serif; cursor: pointer; }
.added-tip::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 8px); white-space: nowrap; background: var(--ink); color: var(--bg); font: 600 .78rem/1 var(--f-body); padding: 7px 9px; border-radius: var(--r); opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.added-tip:hover::after, .added-tip:focus-visible::after, .added-tip.open::after { opacity: 1; visibility: visible; }
/* A program icon (KennelOS's list): its own column left of the number; its bubble wraps and opens below, from the column's left edge. */
table.list.marks td:nth-child(2) { white-space: normal; }
table.list.marks td:nth-child(3) { white-space: nowrap; }
table.list th.mark, table.list td.mark { width: 26px; padding-right: 0; position: relative; }
.program-tip { position: static; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; }
.program-tip svg { display: block; width: 18px; height: 18px; flex: none; }
.program-tip::after { right: auto; left: 0; bottom: auto; top: calc(100% - 4px); white-space: normal; width: max-content; max-width: min(260px, 70vw); line-height: 1.35; text-align: left; z-index: 5; }
.searchbox[hidden], table.list tr[hidden] { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.powered { text-align: center; font-size: .76rem; color: var(--muted); padding: 12px; border-top: 1px solid var(--line); letter-spacing: .04em; }

@media (max-width: 520px) {
  table.list thead { display: none; }
  table.list tr { display: grid; grid-template-columns: 2.8em minmax(0, 1fr) 28px; column-gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.list tr:last-child { border-bottom: 0; }
  table.list td { border: 0; padding: 0; white-space: normal; }
  table.list td.num { grid-row: 1 / 3; width: auto; }
  table.list td:nth-child(2) { grid-column: 2; white-space: normal; }
  table.list td:nth-child(3) { grid-column: 2; grid-row: 2; color: var(--muted); font-size: .86rem; }
  table.list td.tip { grid-column: 3; grid-row: 1 / 3; align-self: center; width: auto; }
  /* With program icons: the icon in a column of its own before the number. */
  table.list.marks tr { grid-template-columns: 22px 2.4em minmax(0, 1fr) 28px; }
  table.list.marks td.mark { grid-column: 1; grid-row: 1 / 3; width: auto; padding: 1px 0 0; }
  table.list.marks td.num { grid-column: 2; }
  table.list.marks td:nth-child(3) { grid-column: 3; grid-row: 1; white-space: normal; color: inherit; font-size: inherit; }
  table.list.marks td:nth-child(4) { grid-column: 3; grid-row: 2; color: var(--muted); font-size: .86rem; }
  table.list.marks td.tip { grid-column: 4; }
}

.draft-note { max-width: 820px; margin: 0 auto 16px; border: 1px dashed var(--brass); color: var(--muted); padding: 10px 14px; font-size: .88rem; border-radius: var(--r); }

/* How to pay */
.pay { max-width: 860px; margin: 28px auto 0; display: grid; gap: 16px; }
.pay > header { display: grid; gap: 6px; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pay-card h3 { font-size: 1.3rem; }
.pay-when { font-size: .88rem; color: var(--muted); }
.pay-when b { color: var(--ink); }
.methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.methods li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.methods li:first-child { border-top: 0; }
.methods .m { font-weight: 700; }
.methods .d { overflow-wrap: anywhere; }
.copy { font: 700 .74rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 9px; cursor: pointer; min-height: 32px; }
.copy:hover { border-color: var(--accent); }
.pay-note { background: var(--band); border-left: 3px solid var(--brass); padding: 10px 12px; font-size: .88rem; }
.pay-safe { font-size: .86rem; color: var(--muted); text-align: center; max-width: 62ch; margin: 0 auto; }
.pay-msg { font-size: .85rem; color: var(--held); min-height: 1.2em; }

/* Review form */
.review-share { margin-top: 28px; text-align: center; }
.review-share > summary { list-style: none; display: inline-flex; }
.review-share > summary::-webkit-details-marker { display: none; }
.review-share[open] > summary { display: none; }
.review-form { text-align: left; margin-top: 0; }
.apply-form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .apply-form .row { grid-template-columns: minmax(0, 1fr); } }
.apply-form select, .apply-form input[type="text"], .apply-form input[type="email"], .apply-form input[type="month"], .apply-form textarea { width: 100%; min-width: 0; }
input[type="month"] { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-height: 44px; }
.stars-in { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 6px; font-size: .85rem; font-weight: 700; }
.stars-in legend { padding: 0; margin-bottom: 6px; }
.star-row { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apply-form .star-row label { font-size: 1.9rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; display: block; }
.apply-form .star-row input:checked ~ label, .apply-form .star-row label:hover, .apply-form .star-row label:hover ~ label { color: var(--brass); }
.star-row input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
input[type="file"] { font: inherit; font-size: .85rem; max-width: 100%; }

/* Apply form */
.apply-form { max-width: 720px; margin: 28px auto 0; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); }
.apply-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .apply-form .row { grid-template-columns: 1fr; } }
.apply-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; min-width: 0; }
.apply-form .done { background: var(--band); border-left: 3px solid var(--accent); padding: 12px 14px; font-size: .92rem; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.contact > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; }
.contact b { font-family: var(--f-display); font-weight: var(--display-w); font-size: 1.1rem; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
footer.site { background: var(--foot); color: var(--foot-ink); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-block: 52px 28px; }
footer.site h4 { margin: 0 0 10px; font: 700 .72rem var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--foot-muted); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; }
footer.site a:hover { color: var(--brass); }
footer.site .brand svg { color: var(--foot-ink); }
footer.site .brand span { color: var(--foot-muted); }
footer.site .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .78rem; color: var(--foot-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr 1fr; } footer.site .wrap > :first-child { grid-column: 1 / -1; } }

/* ---- Additions for the multi-page template (no inline styles) ---- */
body { margin: 0; }
img { max-width: 100%; }
.section.tight { padding-top: 28px; }
.center { text-align: center; }
.mt-26 { margin-top: 26px; }
.mt-20 { margin-top: 20px; }
.ph-photo { flex: 1; display: grid; place-items: center; background: var(--band); color: var(--muted); font-family: var(--f-display); font-size: 1.1rem; }
.narrow-grid { max-width: 300px; margin: 0 auto; }
.step details.x { border: 0; background: none; }
.step details.x > summary { padding: 4px 30px 4px 0; font-size: .92rem; font-family: var(--f-body); font-weight: 700; color: var(--accent); }
.step details.x .body { padding: 6px 0 0; font-size: .9rem; }
.pkg .lead { margin-top: 8px; }
.pkg .closing { margin-top: 10px; }
.prose { display: grid; gap: 14px; max-width: 70ch; margin: 0 auto; color: var(--muted); }
.prose h2 { color: var(--ink); font-size: 1.5rem; margin-top: 12px; }
.prose a { color: var(--accent); text-decoration: underline; }
.notice { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.dogpage { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
/* height: auto for the same reason as .story img above: the <img> carries the
   photo's own height, which would otherwise win over the ratio. */
.dogpage .photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--band); }
.dogpage .info { display: grid; gap: 14px; min-width: 0; }
.dogpage .reg { color: var(--muted); font-style: italic; }
.dogpage .bio { color: var(--muted); }
.dogpage .tests { max-width: 460px; }
@media (max-width: 860px) { .dogpage { grid-template-columns: 1fr; } }
.contact a { color: var(--accent); }
.preview-bar { position: sticky; top: 0; z-index: 70; background: #D9B45A; color: #1B1A18; font: 700 .82rem/1.3 var(--f-body); text-align: center; padding: 8px 16px; letter-spacing: .04em; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 10px 14px; z-index: 80; }
.skip:focus { left: 8px; top: 8px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--accent); }
.foot-brand { display: grid; gap: 14px; }
.foot-brand p { color: var(--foot-muted); max-width: 36ch; }
footer.site .fine a { text-decoration: underline; }
.pagehead { padding-block: clamp(40px, 6vw, 72px) 8px; text-align: center; display: grid; gap: 10px; justify-items: center; position: relative; }
.pagehead p.lede { max-width: 60ch; color: var(--muted); }
.mt-6 { margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply-form .done.bad { border-left-color: #A3261E; }
.apply-form .q-hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
/* KennelOS's application form, drawn here (plan 3.8) */
.apply-form [hidden] { display: none !important; }
.apply-form.kos { scroll-margin-top: 90px; }
.apply-form [data-kos-step="done"] { display: grid; gap: 10px; justify-items: start; }
.apply-form.kos form { display: grid; gap: 16px; min-width: 0; }
.apply-form .q-hint { display: block; margin-top: 2px; }
.apply-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.apply-form legend { font-size: .85rem; font-weight: 700; padding: 0; }
.apply-form .choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.apply-form .choice { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: .92rem; }
.apply-form .req { color: var(--accent); }
.apply-form .notice-q { background: var(--band); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; }
.apply-form input[type="date"] { width: 100%; min-width: 0; }
.apply-form .kos-confirm { display: flex; align-items: end; }
.kos-faq { display: grid; gap: 8px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.cf-turnstile { min-height: 65px; }
input:not([type]), input[type="tel"], input[type="number"] { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-height: 44px; max-width: 100%; }
.apply-form input:not([type]), .apply-form input[type="tel"] { width: 100%; min-width: 0; }

/* How to pay (plan 3.9), as in the AK sample. */
.pay { max-width: 860px; margin: 40px auto 0; display: grid; gap: 16px; }
.pay > header { display: grid; gap: 6px; justify-items: center; }
.pay > header .muted { max-width: 58ch; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pay-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 520px; width: 100%; margin: 0 auto; }
@media (max-width: 700px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pay-card h3 { font-size: 1.3rem; }
.pay-when { font-size: .88rem; color: var(--muted); }
.pay-when b { color: var(--ink); }
.methods { list-style: none; margin: 0; padding: 0; display: grid; }
.methods li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.methods li:first-child { border-top: 0; }
.methods .m { font-weight: 700; overflow-wrap: anywhere; }
.methods .d { overflow-wrap: anywhere; }
.copy { font: 700 .74rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 9px; cursor: pointer; min-height: 32px; }
.copy:hover { border-color: var(--accent); }
.pay-note { background: var(--band); border-left: 3px solid var(--brass); padding: 10px 12px; font-size: .88rem; }
.pay-safe { font-size: .86rem; color: var(--muted); text-align: center; max-width: 62ch; margin: 0 auto; }
.dogpage .pay-safe { text-align: left; margin: 14px 0 0; }
.pay-safe a { color: var(--accent); font-weight: 700; }

/* Albums (phase 5): cards, the gallery, and the viewer */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.album-card { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.album-card img, .album-card .ph-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.album-card .ph-photo { background: var(--band); }
.album-meta { display: grid; gap: 2px; padding: 12px 14px 14px; }
.album-meta b { font: var(--display-w) 1.1rem/1.25 var(--f-display); }
.album-card:hover .album-meta b { color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } }
.gal-item { display: block; line-height: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.gal-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .2s; }
.gal-item:hover img { transform: scale(1.03); }
dialog.viewer { border: 0; padding: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; overflow: hidden; }
dialog.viewer::backdrop { background: rgba(0, 0, 0, .92); }
dialog.viewer[open] { display: grid; place-items: center; }
dialog.viewer img { width: auto; height: auto; max-width: 96vw; max-height: 88dvh; object-fit: contain; border-radius: var(--r); }
.viewer button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.viewer button:hover { background: rgba(255, 255, 255, .26); }
.v-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.v-next { right: 12px; top: 50%; transform: translateY(-50%); }
.v-close { right: 12px; top: 12px; }
.v-count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: rgba(255, 255, 255, .8); }
/* A set of one (a flyer): nothing to step through. */
.viewer.one .v-prev, .viewer.one .v-next, .viewer.one .v-count { display: none; }
/* A Photo or Cards block's photo that opens full size: a magnifier in its corner. */
a.zoom { position: relative; display: block; line-height: 0; cursor: zoom-in; border-radius: inherit; }
.zoom-ic { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none; transition: background .2s; }
.zoom-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
a.zoom:hover .zoom-ic { background: rgba(0, 0, 0, .75); }

/* Videos and posts (plan 3.3): a preview until tapped, then the provider's player */
.ems { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.em { margin: 0; display: grid; gap: 8px; min-width: 0; }
.em-start, .em iframe { position: relative; display: block; width: 100%; border: 0; border-radius: var(--r); overflow: hidden; background: var(--band); }
.em-wide .em-start, .em-wide iframe { aspect-ratio: 16 / 9; }
.em-tall .em-start, .em-tall iframe { aspect-ratio: 9 / 16; max-width: 260px; }
.em-post .em-start { aspect-ratio: 4 / 3; max-width: 500px; }
.em-post iframe { height: 620px; max-width: 500px; }
.em-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-ph { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 14%; font: 600 1.05rem var(--f-display); color: var(--muted); }
.em-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .62); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.em-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.em-start:hover .em-play { background: var(--accent); }
.em figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: .92rem; }

/* Share (plan 5.4) */
.share-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.share-row.center { justify-content: center; }
.share-row[hidden] { display: none; }
/* A Featured block's Meet and Share, side by side (they wrap on a narrow phone). */
.feature-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feature-acts > .share-row { margin-top: 0; }

/* Home badges: one or two logos right under the banner, side by side on any screen.
   Brands' logos are drawn for a light background, so in dark mode each sits on a
   light panel (--logo-panel, set by the scheme); in light mode it is invisible. */
.badges { padding-top: 18px; padding-bottom: 4px; }
.badges ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 28px); max-width: 520px; align-items: center; justify-items: center; }
.badges ul.badges-1 { grid-template-columns: minmax(0, 1fr); max-width: 260px; }
.badges li { width: 100%; display: flex; justify-content: center; }
.badges a { display: block; line-height: 0; border-radius: var(--r); }
.badges img { display: block; width: 100%; max-width: 240px; height: auto; max-height: 140px; object-fit: contain; box-sizing: border-box; background: var(--logo-panel); padding: var(--logo-pad); border-radius: var(--r); }
/* Each badge: its logo, then its name and web address (and a transport service's
   code) under it, centred. */
.badges li { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.badges .badge-label { margin-top: 4px; font: var(--display-w) 1rem/1.25 var(--f-display); color: var(--ink); }
.badges a.badge-addr, .badges .badge-addr { line-height: 1.3; font-size: .84rem; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.badges a.badge-addr:hover { color: var(--accent); text-decoration: underline; }
.badges .badge-code { font-size: .84rem; line-height: 1.3; }
.badges .badge-code b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--accent); }
.badges .badge-name { display: grid; place-items: center; width: 100%; max-width: 240px; min-height: 84px; box-sizing: border-box; padding: var(--logo-pad); background: var(--logo-panel); border: 1px solid var(--line); border-radius: var(--r); font: var(--display-w) 1.1rem/1.2 var(--f-display); color: var(--ink); }
/* A badge row inside a page (BADGE_PLACES), and the transport services on
   Getting your pup home (which may wrap onto more rows). */
.badges-row { padding: 0; text-align: center; }
.badges-row > .eyebrow { display: block; margin-bottom: 12px; }
.badges-row > p { margin: -4px auto 14px; max-width: 520px; }
.badges-row ul.badges-wrap { max-width: 560px; }

/* Recommended products. */
.prod .prod-pic-link { display: block; line-height: 0; }
.prod .prod-pic { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; box-sizing: border-box; background: var(--logo-panel); padding: var(--logo-pad); border-radius: var(--r); }
.prod .prod-code { font-size: .93rem; }
.prod .prod-code b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--accent); }
.prod .btn { justify-self: start; }
/* A litter's page: its parents side by side, Dam over the mother and Sire over
   the father, two columns even on a phone; then the litter's facts. */
.parents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 20px); max-width: 760px; margin: 0 auto; }
.parents.one { grid-template-columns: minmax(0, 1fr); max-width: 370px; }
.parent { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.parent > .eyebrow { text-align: center; }
.parent-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(14px, 3vw, 22px); display: grid; gap: 6px; justify-items: center; text-align: center; min-width: 0; overflow-wrap: anywhere; height: 100%; box-sizing: border-box; align-content: start; }
.parent-card img, .parent-card .ph { width: clamp(72px, 20vw, 110px); height: clamp(72px, 20vw, 110px); border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); margin-bottom: 4px; }
.parent-card .ph { display: grid; place-items: center; background: var(--band); color: var(--muted); font-family: var(--f-display); font-size: 1.6rem; }
.parent-card .call { font: var(--display-w) 1.2rem/1.2 var(--f-display); }
.parent-card .reg { color: var(--muted); font-style: italic; font-size: .85rem; }
.parent-card .tests { width: 100%; text-align: left; margin-top: 6px; font-size: .78rem; }
.parent-card .tests li { flex-wrap: wrap; gap: 0 8px; }
.parent-card .more { margin-top: 4px; }
.litter-facts { max-width: 460px; margin: 0 auto; }

/* ---------- The owner's own blocks, and every block's look (site builder step 4) ---------- */
/* A block's colour: the scheme's, by name. .kb-o keeps the scheme's values so the
   inner wrap can swap them: on Accent or the footer colour every part of the block
   reads in that colour's own ink (the scheme's pairs, 4.5:1 or better). */
.kb-o { --kb-a: var(--accent); --kb-ai: var(--accent-ink); --kb-f: var(--foot); --kb-fi: var(--foot-ink); --kb-fm: var(--foot-muted); }
.kb.bg-surface { background: var(--surface); }
.kb.bg-band { background: var(--band); }
.kb.bg-accent { --bg: var(--kb-a); --surface: var(--kb-a); --band: var(--kb-a); --ink: var(--kb-ai); --muted: var(--kb-ai); --brass: var(--kb-ai); --accent: var(--kb-ai); --accent-ink: var(--kb-a); --line: color-mix(in srgb, var(--kb-ai) 35%, transparent); background: var(--kb-a); color: var(--kb-ai); }
.kb.bg-foot { --bg: var(--kb-f); --surface: var(--kb-f); --band: var(--kb-f); --ink: var(--kb-fi); --muted: var(--kb-fm); --brass: var(--kb-fi); --accent: var(--kb-fi); --accent-ink: var(--kb-f); --line: color-mix(in srgb, var(--kb-fi) 30%, transparent); background: var(--kb-f); color: var(--kb-fi); }
.kb.bg-accent .section.band, .kb.bg-foot .section.band, .kb.bg-accent .cta, .kb.bg-foot .cta { background: transparent; }
.kb.py-s { padding-block: 16px; } .kb.py-m { padding-block: 36px; } .kb.py-l { padding-block: 64px; }
.kb.px-s { padding-inline: 12px; } .kb.px-m { padding-inline: clamp(16px, 4vw, 40px); } .kb.px-l { padding-inline: clamp(24px, 8vw, 96px); }
.kb.t-xs { font-size: .85em; } .kb.t-s { font-size: .93em; } .kb.t-l { font-size: 1.15em; }
.kb.t-xs h2, .kb.t-s h2, .kb.t-l h2 { font-size: calc(clamp(1.8rem, 3.6vw, 2.5rem) * var(--kb-t, 1)); }
.kb.t-xs { --kb-t: .8; } .kb.t-s { --kb-t: .9; } .kb.t-l { --kb-t: 1.15; }

.own-banner { background: var(--accent); color: var(--accent-ink); }
.kb .own-banner { background: transparent; color: inherit; }
.own-banner .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-block: 44px; }
.own-banner h2 { color: inherit; }
.own-banner p { opacity: .88; max-width: 56ch; margin-top: 8px; }
.own-banner .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
/* In a coloured wrap the scheme's pair is already swapped: a filled button in its colours. */
.kb .own-banner .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 700px) { .own-banner .wrap { grid-template-columns: 1fr; } }

.own-button { display: flex; padding-block: 18px; }
.own-button.a-left { justify-content: flex-start; } .own-button.a-center { justify-content: center; } .own-button.a-right { justify-content: flex-end; }
.btn.sz-s { min-height: 36px; padding: 7px 16px; font-size: .8em; }
.btn.sz-m { font-size: .9em; }
.btn.sz-l { min-height: 54px; padding: 14px 32px; font-size: 1.05em; }

.own-divider { display: flex; justify-content: center; padding-block: 22px; }
.own-divider hr { border: 0; height: 1px; background: var(--line); width: 100%; margin: 0; }
.own-divider.brass hr { height: 2px; background: var(--brass); }
.own-divider.w-narrow hr { max-width: 160px; } .own-divider.w-wide hr { max-width: 720px; }
.own-divider .orn { width: 120px; height: 60px; color: var(--accent); opacity: .5; }

/* A text block: the template's section head and prose, centred like every other
   section head, or set to one side. */
.own-words { padding-block: clamp(32px, 5vw, 56px); }
.own-words .head { margin-bottom: 20px; }
.own-words .head:last-child { margin-bottom: 0; }
.own-words.a-left .head { justify-items: start; text-align: left; }
.own-words.a-left .prose { margin-inline: 0; }
.own-words.a-center .prose { text-align: center; }
.own-words.a-right .head { justify-items: end; text-align: right; }
.own-words.a-right .prose { margin-inline: auto 0; text-align: right; }

/* Text in columns: the story's features (a display-face subheading over its words),
   roomier for longer reading, two or three across; one under another on a phone. */
.own-cols { padding-block: clamp(32px, 5vw, 56px); }
.own-cols .head { margin-bottom: 28px; }
.own-cols.a-left .head { justify-items: start; text-align: left; }
.own-cols.a-right .head { justify-items: end; text-align: right; }
.own-cols .features { gap: 30px clamp(28px, 4vw, 56px); margin-top: 0; }
.own-cols .features.n-2 { grid-template-columns: repeat(2, 1fr); }
.own-cols .feature { gap: 8px; }
.own-cols .feature b { font-size: 1.25rem; line-height: 1.2; }
.own-cols .feature p { font-size: .98rem; line-height: 1.65; }
@media (max-width: 860px) { .own-cols .features.n-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .own-cols .features.n-2, .own-cols .features.n-3 { grid-template-columns: 1fr; } }

.own-spacer.h-xs { height: 12px; } .own-spacer.h-s { height: 28px; } .own-spacer.h-m { height: 56px; } .own-spacer.h-l { height: 96px; }

.own-photo { margin: 0 auto; padding-block: 20px; }
.own-photo img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--r); }
.own-photo.wide img { aspect-ratio: 3 / 2; } .own-photo.tall { max-width: 520px; } .own-photo.tall img { aspect-ratio: 4 / 5; }
.own-photo.square { max-width: 620px; } .own-photo.square img { aspect-ratio: 1; }
.own-photo.full { padding-block: 0; } .own-photo.full img { aspect-ratio: 5 / 2; max-height: 520px; border-radius: 0; }
/* The whole photo, uncropped (a flyer): its own shape, no wider than a tall photo's column on a computer. */
.own-photo.whole { max-width: 620px; } .own-photo.whole img { object-fit: contain; }
/* A framed photo (hers or the owner's): the collage's box and frames (.frame-*, .vine above). */
.own-photo .box, .story-pic .box { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 3px); padding: 5px; box-shadow: var(--shadow); }
.own-photo.frame-double .box, .story-pic.frame-double .box { padding: 10px; }
.own-photo.frame-sprig .box, .story-pic.frame-sprig .box { background: none; border: 0; box-shadow: none; padding: 22px; }
.own-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.own-photo.full figcaption { padding-inline: 16px; }
.own-photo.f-top img, .own-over.f-top img { object-position: 50% 0; }
.own-photo.f-bottom img, .own-over.f-bottom img { object-position: 50% 100%; }
/* The owner's photo beside words: the story's grid, the photo on the right on a
   computer when she picks it; on a phone it stays above the words. */
/* Its words lined up left (as the story's), centred or right. */
.story-copy.a-center { text-align: center; justify-items: center; } .story-copy.a-center > p { margin-inline: auto; }
.story-copy.a-right { text-align: right; justify-items: end; } .story-copy.a-right > p { margin-inline: auto 0; }
@media (min-width: 861px) { .story.pic-right { grid-template-columns: 1.1fr .9fr; } .story.pic-right > :first-child { order: 2; } }
/* The owner's gallery strip: the album page's gallery (.gal-item, the viewer) in one
   row, as many across as she shows on a computer (twelve scroll, six at a time), and
   sideways on a phone, the next photo peeking so it reads as more. */
.gallery.strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 8px) / 6); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; padding-bottom: 4px; }
.gallery.strip > * { scroll-snap-align: start; }
.gallery.strip.n-4 { grid-auto-columns: calc((100% - 3 * 8px) / 4); }
.gallery.strip.n-8 { grid-auto-columns: calc((100% - 7 * 8px) / 8); }
/* A border round the whole strip: a thin line, the photo frames' soft mat, or the mat
   with a fine brass line inside it. */
.strip-frame { border-radius: calc(var(--r) + 4px); }
.strip-frame.frame-line { border: 1px solid var(--line); padding: 10px; }
.strip-frame.frame-mat, .strip-frame.frame-double { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 12px; box-shadow: var(--shadow); }
.strip-frame.frame-double { padding: 16px; }
.strip-frame.frame-double::after { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--brass); border-radius: calc(var(--r) + 1px); pointer-events: none; }
@media (max-width: 760px) { .strip-frame.frame-line, .strip-frame.frame-mat { padding: 8px; } .strip-frame.frame-double { padding: 12px; } .strip-frame.frame-double::after { inset: 4px; } }
@media (max-width: 760px) { .gallery.strip, .gallery.strip.n-4, .gallery.strip.n-8 { grid-auto-columns: calc((100% - 2 * 6px) / 2.6); gap: 6px; } }
/* The owner's collage block: Home's collage (.hero-photos, its boxes and frames) on its
   own, centred, at most about two photos' width so four squares don't fill a computer's screen. */
.own-collage { padding-block: 20px; }
.own-collage .hero-photos { max-width: 760px; margin-inline: auto; }
.own-collage .hero-photos.one_tall { max-width: 440px; }
.own-collage .hero-photos.two_wide { max-width: 520px; }

/* Text over a photo: white words on a shade dark enough to read at its lightest. */
.own-over { position: relative; display: grid; min-height: clamp(280px, 48vw, 520px); overflow: hidden; color: #fff; }
.own-over > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.own-over .over { position: relative; display: flex; padding-block: 32px; }
.own-over.shade-light .over { background: rgba(0, 0, 0, .38); }
.own-over.shade-medium .over { background: rgba(0, 0, 0, .5); }
.own-over.shade-dark .over { background: rgba(0, 0, 0, .66); }
.own-over .over .wrap { width: 100%; }
.own-over.v-top .over { align-items: flex-start; } .own-over.v-middle .over { align-items: center; } .own-over.v-bottom .over { align-items: flex-end; }
.own-over.h-center .over .wrap { text-align: center; } .own-over.h-right .over .wrap { text-align: right; }
.own-over h2 { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.own-over p { max-width: 56ch; margin-top: 8px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); display: inline-block; }
.own-over .btn { margin-top: 16px; display: flex; width: fit-content; }
.own-over.h-center .btn { margin-inline: auto; } .own-over.h-right .btn { margin-left: auto; }

/* The owner's Cards block (render/pages/cards.js): the portal prototype's photo-top
   card (.pcard) in the site's surface, line and corners; a step's brass figure; the
   site's pills. Side by side two, three or four across (one on a phone), or in the
   slider. shape-*: the photo's box; shape-whole keeps each photo's own shape. */
.own-cards .head { margin-bottom: 28px; }
.own-cards.a-left .head { justify-items: start; text-align: left; }
.own-cards.a-right .head { justify-items: end; text-align: right; }
.own-cardgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.own-cardgrid.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.own-cardgrid.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .own-cardgrid.n-3, .own-cardgrid.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .own-cardgrid, .own-cardgrid.n-2, .own-cardgrid.n-3, .own-cardgrid.n-4 { grid-template-columns: 1fr; gap: 16px; } }
.own-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; height: 100%; }
.own-card > .ph { line-height: 0; }
.own-card > .ph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.shape-square .own-card > .ph img { aspect-ratio: 1; }
.shape-tall .own-card > .ph img { aspect-ratio: 4 / 5; }
.shape-whole .own-card > .ph img { aspect-ratio: auto; object-fit: contain; }
.own-card > .body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.own-card .n { font: var(--display-w) 2.2rem/1 var(--f-display); color: var(--brass); }
.own-card .tags { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.own-card h3 { font-size: 1.2rem; }
.own-card .words { display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.own-card .go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.own-cards.a-center .own-card > .body { justify-items: center; text-align: center; }
.own-cards.a-center .own-card .tags, .own-cards.a-center .own-card .go { justify-content: center; }
.own-cards.a-right .own-card > .body { justify-items: end; text-align: right; }
.own-cards.a-right .own-card .tags, .own-cards.a-right .own-card .go { justify-content: flex-end; }
