/* ---------- dogs row: spaced out, sitting behind the boxes ---------- */
html body .dogs-zone { position: relative; z-index: 1; padding-top: 36px; clip-path: inset(-700px -700px calc(var(--dog-overlap, -4px) - 4px) -700px); }
html body .dogs-row { width: 1200px; max-width: calc(100% - 24px); aspect-ratio: 2400 / 632; margin: 0 auto; }
html body main .stats { position: relative; z-index: 2; margin-top: calc(var(--dog-overlap, -4px) * -1); }
@media (max-width: 700px) { html body main .stats { margin-top: calc(var(--dog-overlap, -4px) * -.5); } }

/* ---------- How it works: no rounded band, background options ---------- */
html body .hv { --hv-bg: #192A4F; }
html body .hv::before { border-radius: 0; background: var(--hv-bg); }
html body .hv[data-bg="navy"]::before { background: radial-gradient(760px 420px at 86% 4%, rgba(226,240,233,.10), rgba(226,240,233,0) 62%), #192A4F; }
html body .hv[data-bg="blue"] { --hv-bg: #4962AA; }
html body .hv[data-bg="sky"] { --hv-bg: #E1EAF6; }
html body .hv[data-bg="sand"] { --hv-bg: #EAF1F9; }
html body .hv[data-bg="mint"] { --hv-bg: #E2F0E9; }
html body .hv[data-bg="cream"] { --hv-bg: #F7F9FC; }
html body .hv::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 290px; pointer-events: none; background: #fff; opacity: 0;
  -webkit-mask: url(/homepage/sections/doodle.webp) 0 0 / 780px 780px; mask: url(/homepage/sections/doodle.webp) 0 0 / 780px 780px; }
html body .hv[data-doodles="on"]::after { opacity: .07; }
html body .hv[data-doodles="on"][data-bg="blue"]::after { opacity: .12; }
html body .hv[data-doodles="on"]:is([data-bg="sky"],[data-bg="sand"],[data-bg="mint"],[data-bg="cream"])::after { background: #192A4F; opacity: .085; }
@media (max-width: 900px) { html body .hv::before, html body .hv::after { bottom: auto; height: var(--band, 60%); border-radius: 0; } }
/* light grounds: navy title, red phrase, body copy */
html body .hv:is([data-bg="sky"],[data-bg="sand"],[data-bg="mint"],[data-bg="cream"]) .hv-top .h-xl { color: #192A4F; }
html body .hv:is([data-bg="sky"],[data-bg="sand"],[data-bg="mint"],[data-bg="cream"]) .hv-top .t-red { color: #D93F53; }
html body .hv:is([data-bg="sky"],[data-bg="sand"],[data-bg="mint"],[data-bg="cream"]) .hv-top p { color: #475467; }
html body .hv:is([data-bg="sky"],[data-bg="sand"],[data-bg="mint"],[data-bg="cream"]) .eyebrow.on-dark { color: #D93F53; }
html body .hv:is([data-bg="sky"],[data-bg="sand"],[data-bg="mint"],[data-bg="cream"]) .vsb-link { color: #192A4F; }
html body .hv:is([data-bg="sky"],[data-bg="sand"],[data-bg="mint"],[data-bg="cream"]) .hv-card { box-shadow: 0 28px 60px rgba(25,42,79,.14), 0 0 0 1px rgba(25,42,79,.07); }
html body .hv[data-bg="blue"] .hv-top .t-red, html body .hv[data-bg="blue"] .eyebrow.on-dark { color: #FFD0D7; }
html body .hv[data-bg="blue"] .hv-top p { color: rgba(255,255,255,.92); }

/* ---------- kennel license + review cards ---------- */
html body .kb2-g1 .kb-lic, html body .kb2-g1 .kb-rev { box-shadow: none; }
.kb2-g1 .lic-trail, .kb2-g1 .lic-dog, .kb2-g1 .lic-rose, .kb2-g1 .lic-tag, .kb2-g1 .lic-stamp, .kb2-g1 .rev-pup, .kb2-g1 .rev-lie, .kb2-g1 .kb-paws { display: none; }
.kb2-g1 .kb-lic, .kb2-g1 .kb-rev { isolation: isolate; }
.pw { display: block; flex: none; }

/* A. dog tag on the license, puppy peeking over the review */
.kb2-g1[data-cards="a"] .kb-lic { display: grid; grid-template-columns: 66px minmax(0, 1fr); grid-template-areas: "tag top" "tag title" "row row"; column-gap: 14px; row-gap: 4px; align-items: start; background: linear-gradient(160deg, #E6F3EC, #DCEBE3); }
.kb2-g1[data-cards="a"] .kb-lic::before { display: none; }
.kb2-g1[data-cards="a"] .lic-tag { display: block; grid-area: tag; width: 66px; margin: -2px 0 0 -2px; color: #3F7F68; transform-origin: 50% 12%; animation: licsway 4.6s ease-in-out infinite; filter: drop-shadow(0 7px 8px rgba(25,42,79,.14)); }
.kb2-g1 .lic-tag svg { display: block; width: 100%; height: auto; overflow: visible; }
.kb2-g1 .lic-tag .disc { fill: #fff; stroke: #3F7F68; stroke-width: 2.4; }
.kb2-g1 .lic-tag .ring { stroke: rgba(63,127,104,.55); stroke-width: 1.6; stroke-dasharray: 3 4.5; }
.kb2-g1 .lic-tag .loop { stroke: #3F7F68; stroke-width: 2.4; }
.kb2-g1 .lic-tag .chain { stroke: rgba(63,127,104,.6); stroke-width: 2; stroke-dasharray: 1 4.5; stroke-linecap: round; }
@keyframes licsway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(5deg); } }
.kb2-g1[data-cards="a"] .lic-top { grid-area: top; display: flex; justify-content: flex-end; }
.kb2-g1[data-cards="a"] .kb-lic-t { grid-area: title; margin: 0; }
.kb2-g1[data-cards="a"] .kb-lic-row { grid-area: row; margin-top: 8px; position: relative; z-index: 1; }
.kb2-g1[data-cards="a"] .lic-trail { display: none; position: absolute; z-index: -1; right: 8px; bottom: 8px; width: 92px; color: #3F7F68; opacity: .14; transform: rotate(-8deg); }
.kb2-g1[data-cards="a"] .kb-lic-row dd { font-family: "Rubik", monospace; letter-spacing: .06em; }

.kb2-g1[data-cards="a"] .kb-rev { background: linear-gradient(170deg, #EAF1F9, #E1EAF6); padding-top: 18px; }
.kb2-g1[data-cards="a"] .kb-rev .kb-quote { margin-top: 28px; isolation: isolate; box-shadow: 0 6px 16px rgba(25,42,79,.07); }
.kb2-g1[data-cards="a"] .kb-quote::before { right: auto; left: 12px; top: -4px; color: #F3C9CF; }
.kb2-g1[data-cards="a"] .kb-quote::after { content: ""; position: absolute; left: 26px; bottom: -8px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 0 0 4px 0; z-index: -1; }
.kb2-g1[data-cards="a"] .rev-pup { display: block; position: absolute; z-index: 3; right: 16px; top: 56px; width: 78px; height: auto; transform-origin: 50% 100%; animation: pupbob 5.2s ease-in-out infinite; }
@keyframes pupbob { 0%, 78%, 100% { transform: translateY(0); } 84% { transform: translateY(-5px); } 90% { transform: translateY(0); } 94% { transform: translateY(-3px); } }
.kb2-g1[data-cards="a"] .kb-stars { display: flex; }

/* B. certificate on the license, paw rating + lying puppy on the review */
.kb2-g1[data-cards="b"] .kb-lic { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "rose stamp" "title title" "row row"; column-gap: 10px; row-gap: 10px; align-items: center; background: #EEF6F1; box-shadow: inset 0 0 0 1.5px rgba(63,127,104,.55), inset 0 0 0 5px #EEF6F1, inset 0 0 0 6.5px rgba(63,127,104,.28) !important; padding: 22px 24px 18px; }
.kb2-g1[data-cards="b"] .kb-lic::before { display: none; }
.kb2-g1[data-cards="b"] .lic-rose { display: grid; place-items: center; grid-area: rose; position: relative; width: 56px; height: 56px; color: #3F7F68; }
.kb2-g1 .lic-rose > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kb2-g1 .lic-rose .scal { fill: #fff; stroke: #3F7F68; stroke-width: 1.8; stroke-linejoin: round; }
.kb2-g1 .lic-rose circle { stroke: rgba(63,127,104,.6); stroke-width: 1.3; }
.kb2-g1 .rose-paw { position: relative; display: grid; place-items: center; }
.kb2-g1[data-cards="b"] .lic-top { display: none; }
.kb2-g1[data-cards="b"] .kb-lic-t { grid-area: title; margin: 0; }
.kb2-g1[data-cards="b"] .kb-lic-row { grid-area: row; margin-top: 4px; position: relative; z-index: 1; }
.kb2-g1[data-cards="b"] .kb-lic-row dd { font-family: "Rubik", monospace; letter-spacing: .06em; }
.kb2-g1[data-cards="b"] .lic-stamp { display: block; grid-area: stamp; justify-self: end; padding: 5px 10px 4px; border: 2px solid #1F7A4D; border-radius: 6px; color: #1F7A4D; font: 700 11px/1 Rubik, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; transform: rotate(-8deg); opacity: .9; }
.kb2-g1[data-cards="b"] .lic-stamp::after { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(31,122,77,.45); border-radius: 3px; }
.kb2-g1[data-cards="b"] .lic-stamp { position: relative; }

.kb2-g1[data-cards="b"] .kb-rev { background: #fff; box-shadow: inset 0 0 0 1.5px #D6E2F2 !important; }
.kb2-g1[data-cards="b"] .kb-stars { display: none; }
.kb2-g1[data-cards="b"] .kb-paws { display: flex; gap: 3px; color: #F2B33D; }
.kb2-g1[data-cards="b"] .kb-quote { background: none; padding: 0; margin-top: 14px; box-shadow: none; }
.kb2-g1[data-cards="b"] .kb-quote p { background: #EAF1F9; padding: 12px 14px; border-radius: 18px 18px 18px 4px; }
.kb2-g1[data-cards="b"] .kb-quote::before { right: 12px; top: -6px; color: #fff; z-index: 1; }
.kb2-g1[data-cards="b"] .kb-quote footer { min-height: 58px; margin-top: 2px; padding: 0 0 2px 4px; }
.kb2-g1[data-cards="b"] .kb-avs i { border-color: #fff; }
.kb2-g1[data-cards="b"] .rev-lie { display: block; position: absolute; z-index: 3; right: 12px; bottom: 10px; width: 76px; height: auto; }
.kb2-g1[data-cards="b"] .kb-rev { padding-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { .lic-tag, .rev-pup { animation: none !important; } }

/* ================= round 2 ================= */
/* dashboard section ("Check It. Pay Safely. Keep Track.") */
html body .kb2 { position: relative; margin-top: 0; padding: 96px 0 104px; background: var(--pm-bg, #E1EAF6); }
html body .kb2[data-promo="cream"] { --pm-bg: #F7F9FC; }
html body .kb2[data-promo="sky"] { --pm-bg: #E1EAF6; }
html body .kb2[data-promo="sand"] { --pm-bg: #EAF1F9; }
html body .kb2[data-promo="mint"] { --pm-bg: #E2F0E9; }
html body .kb2[data-promo="blue"] { --pm-bg: #D3DEF2; }
html body .kb2 > .kb2-in { position: relative; z-index: 1; }
html body .kb2::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: #192A4F; opacity: 0;
  -webkit-mask: url(/homepage/sections/doodle.webp) 0 0 / 820px 820px; mask: url(/homepage/sections/doodle.webp) 0 0 / 820px 820px; }
/* growth sketch under the left copy */
.kb2 .kb2-sketch { display: none; }
.kb2 .kb2-sketch { display: block; margin-top: 34px; width: min(100%, 380px); aspect-ratio: 1204 / 540; background: #192A4F; opacity: .5;
  -webkit-mask: url(/homepage/sections/trio.webp) center bottom / contain no-repeat; mask: url(/homepage/sections/trio.webp) center bottom / contain no-repeat; }
.kb2 .kb2-copies .is-soon { cursor: default; }
@media (max-width: 900px) { html body .kb2 { padding: 56px 0 64px; } .kb2 .kb2-sketch { margin-inline: auto; } }

/* life stage card: buttons only, no slider */
.kb2 .kb-life .sc3-rangebox { display: none; }
.kb2 .kb-life .sc3-scrub { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px 12px; text-align: center; }
.kb2 .kb-life .sc3-radios { width: 100%; gap: 4px; }
.kb2 .kb-life .sc3-radios button { flex: 1; min-height: 42px; padding: 0 10px; }
.kb2 .kb-life .sc3-hint { grid-column: auto; margin: 0; font-size: 11px; }
.kb2 .kb-life .sc3-panel h3 { text-wrap: balance; }

/* family album: fit the three dog tabs, tidy the pile */
.kb2-g3 { gap: 16px; }
.kb-fam .sc5-tabs { gap: 6px; margin-top: 14px; }
.kb-fam .sc5-tlist { gap: 5px; }
.kb-fam .sc5-tabs button { gap: 6px; min-height: 42px; padding: 3px 8px 3px 3px; }
.kb-fam .sc5-tabs img { width: 34px; height: 34px; }
.kb-fam .sc5-tabs b { font-size: 13.5px; overflow: visible; text-overflow: clip; }
.kb-fam .sc5-add { width: 42px; height: 42px; }
.kb-fam .sc5-main { margin-top: 14px; }
.kb-fam .sc5-pile { height: 268px; }
.kb-fam .sc-pola:nth-child(1) { left: 1%; top: 10px; width: 52%; }
.kb-fam .sc-pola:nth-child(2) { right: 1%; top: 0; width: 41%; }
.kb-fam .sc-pola:nth-child(3) { right: 5%; bottom: 0; top: auto; width: 41%; }
.kb-fam .sc-note { aspect-ratio: 16 / 9; }
.kb-fam .sc-pola figcaption { padding: 7px 2px 8px; font-size: 12px; }
.kb-fam .sc5-stats { margin-top: 16px; }
.kb-fam .sc5-stats dt { font-size: 9.5px; white-space: nowrap; }

/* schedule: even rhythm, share box at the bottom */
.kb2-g3 .kb-sched { padding: 24px 22px 22px; }
.kb2-g3 .d-tl { gap: 8px; margin-top: 14px; }
.kb2-g3 .kb-sched .kb-share { margin-top: auto; }
.kb2-g3 .kb-sched .d-tl { margin-bottom: 18px; }
.kb2 .kb-life .sc3-hint { text-transform: none; letter-spacing: 0; font: 400 12.5px/1.35 var(--ui); color: var(--body-2); }
.kb2-g3 .d-tl { gap: 13px; }
.kb2-g3 .kb-sched .d-tl { margin-bottom: 20px; }
/* phones/tablets: life stage card stacks (photo on top) */
@media (max-width: 900px) {
  .kb2 .kb-life { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 18px; padding: 22px 18px 18px; }
  .kb-life .sc3-photo { grid-row: auto; justify-self: center; }
  .kb-life .sc3-blob { width: min(240px, 70vw); }
  .kb-life .sc3-panels { align-self: start; }
}

/* ================= round 3 ================= */
/* dashboard step 3: chip lives on the step, no copy/button under the tabs */
.kb2 .kb2-copies .t-copy-empty { display: none; }
.kb2 .kb-tab .soon-chip { display: inline-block; margin: 7px 0 0; padding: 3px 8px; font: 700 10px/1 var(--ui, system-ui); letter-spacing: .06em; text-transform: uppercase; color: #3A2A00; background: #F5C84B; }
.kb2 .kb-tab > span { display: block; }
.kb2 .kb2-sketch { margin-top: 40px; opacity: .55; }
/* family album: three equal tiles, nothing wraps or bleeds */
.kb-fam .sc5-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kb-fam .sc5-stats > div { min-width: 0; padding: 12px 12px 13px; }
.kb-fam .sc5-stats dt { display: flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; }
.kb-fam .sc5-stats dd { margin: 5px 0 0; font-size: 16px; line-height: 1.2; white-space: nowrap; }
/* timeline only: fills the card evenly */
.kb2-g3 .kb-sched { display: flex; flex-direction: column; }
.kb2-g3 .kb-sched .d-tl { flex: 1; justify-content: space-between; gap: 10px; margin-bottom: 0; }
/* soft fade so the cropped dog chests settle into the white above the boxes */
.kb-fam .sc5-add { display: none !important; }
.kb-fam .sc5-tabs { display: block; }
.kb2-g3 .kb-sched .kb-share { display: none !important; }
.kb2 .kb2-copies { display: none; }
.kb2 .kb2-sketch { width: min(100%, 440px); margin-top: 44px; }
.kb-fam .sc5-stats { gap: 8px; }
.kb-fam .sc5-stats > div { padding: 12px 10px 13px; }
.kb-fam .sc5-stats dt { font-size: 9px; letter-spacing: .04em; gap: 4px; }
.kb-fam .sc5-stats dt .ico { flex: none; width: 13px; height: 13px; }

/* ================= round 4 ================= */
.kb2 .kb2-sketch { margin-top: 36px; }
/* tab 1: score card fills its height evenly */
.kb2-g1 .kb-score { display: flex; flex-direction: column; }
.kb2-g1 .kb-score .d-score-in { flex: 1; align-items: center; }
/* tab 2: cards without the links stay balanced */
.kb2-g2 .kb-cover, .kb2-g2 .kb-flag { justify-content: center; }
.kb2-g1 .kb-score .vsb-bars { gap: 19px; }
.kb2-g1 .kb-score .vsb-bars li { margin: 0; }

/* ================= round 5: Meet the Breeds, sketched dog-park scene ================= */
html body .popular { --br-bg: #fff; background: #fff; padding-top: 0; }
html body .popular #adoptable { background: var(--br-bg); padding-top: 100px; }
html body .popular[data-br="white"] { --br-bg: #fff; }
html body .popular[data-br="orig"] { --br-bg: #F7F9FC; }
html body .popular[data-br="paper"] { --br-bg: #FBF6EA; }
html body .popular[data-br="mint"] { --br-bg: #EAF3EE; }
html body .popular[data-br="mist"] { --br-bg: #E9EFF8; }
#adoptable { position: relative; isolation: isolate; }
#adoptable .sb7-railwrap::before, #adoptable .sb7-railwrap::after { content: ""; position: absolute; z-index: -1; bottom: calc(100% - 6px); width: min(36vw, 540px); aspect-ratio: 1000 / 780; pointer-events: none; background: center bottom / 100% 100% no-repeat; opacity: .5; }
#adoptable .sb7-railwrap::before { left: 0; background-image: url(/homepage/sections/park-left.webp); }
#adoptable .sb7-railwrap::after { right: 0; background-image: url(/homepage/sections/park-right.webp); }
@media (max-width: 900px) { html body .popular #adoptable { padding-top: 76px; } #adoptable .sb7-railwrap::before, #adoptable .sb7-railwrap::after { width: 58vw; opacity: .38; } }
/* For Professionals sits on white now, so the cards get an edge */
html body .pv .pv-card { border: 1px solid #E3E8F1; box-shadow: 0 18px 44px -18px rgba(25,42,79,.28), 0 2px 8px rgba(25,42,79,.06); }

/* night-audit r3 r3-imgheroes-03: phone-size park backgrounds (-m webp) for #adoptable; desktop keeps full-size webp. Saves ~330KB on phones. */
@media (max-width: 900px) {
  #adoptable .sb7-railwrap::before { background-image: url(/homepage/sections/park-left-m.webp); }
  #adoptable .sb7-railwrap::after { background-image: url(/homepage/sections/park-right-m.webp); }
}
