/* ============================================================================
   PrimeDoggy v2 — assets/css/breed-match.css
   Destination: /wp-content/themes/primedoggy-v2/assets/css/breed-match.css
   Loaded only on the Breed Match page (templates/page-breed-match.php).

   The look and motion approved in the mock-up (docs/breed-match-mockup) on
   16 November 2026. Every class starts with "bm-" so nothing here can touch
   the rest of the site. Colours come from tokens.css.
   ========================================================================== */
.pd-bm {
  --sage-pale: #c8dbd0;
  --bm-muted: #5d6c65;
  --caution: #a4472f;
  --honey-pale: #F7EBCB;
  --blush-pale: #F6E3DA;
  --sky-pale: #DDEAF1;
  --sage-wash: #DCE8DF;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --muted: var(--bm-muted);
  background: linear-gradient(180deg, var(--sage-wash) 0, var(--cream) 320px) no-repeat var(--cream);
  color: var(--charcoal);
  font-family: var(--font-ui);
  line-height: 1.55;
}
.pd-bm, .pd-bm * { box-sizing: border-box; }
:where(.pd-bm) h1, :where(.pd-bm) h2, :where(.pd-bm) h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; line-height: 1.12; color: var(--charcoal); }
:where(.pd-bm) button { font: inherit; color: inherit; cursor: pointer; }
.pd-bm :focus-visible { outline: 3px solid var(--sage-emphasis); outline-offset: 3px; border-radius: 6px; }
:where(.pd-bm) a { color: var(--sage-emphasis); }
:where(.pd-bm) ul { list-style: disc; }
.bm-app { width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; min-height: 60vh; }
.bm-top { display: flex; justify-content: flex-end; min-height: 32px; margin-bottom: 6px; }
.bm-poolnote { font-size: 13px; color: var(--muted); margin: 0 0 22px; max-width: 44ch; }
.bm-tie { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.bm-note { font-size: 14px; color: var(--muted); margin: -8px 0 18px; }
.bm-status { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.bm-status p { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0; max-width: 30ch; }
.bm-start .bm-pool .bm-tile:nth-child(7) { grid-column: auto; }

/* buttons */
.bm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 28px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--sage-emphasis); transition: transform 150ms var(--ease), background-color 150ms var(--ease); }
.bm-btn:active { transform: scale(0.98); }
.bm-btn-primary { background: var(--sage-emphasis); color: var(--white); }
.bm-btn-primary:hover { background: #3d5347; }
.bm-btn-outline { background: transparent; color: var(--sage-emphasis); }
.bm-btn-outline:hover { background: var(--sage-light); }
.bm-quiet { background: none; border: 0; padding: 6px 2px; font-size: 14px; color: var(--sage-emphasis); text-decoration: underline; text-underline-offset: 3px; }

/* screens slide like an app */
.bm-screen { animation: bm-in-right 420ms var(--ease) both; }
.bm-screen.bm-back { animation-name: bm-in-left; }
@keyframes bm-in-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes bm-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes bm-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* start */
.bm-start { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 24px; }
.bm-start h1 { font-size: clamp(40px, 6vw, 68px); }
.bm-hl { background: linear-gradient(transparent 62%, var(--honey) 62%, var(--honey) 92%, transparent 92%); padding: 0 2px; }
.bm-start p.bm-lead { font-size: 18px; color: var(--muted); max-width: 40ch; margin: 18px 0 28px; }
.bm-start .bm-meta { font-size: 13px; color: var(--muted); margin: 14px 0 26px; }
.bm-start .bm-resume { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.bm-start .bm-resume span { font-size: 13px; color: var(--muted); }
.bm-start .bm-doors { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.bm-pool { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* photo tiles, the same landscape shape as the breed cards on the site */
.bm-tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sage-light); border: 1px solid var(--border); }
.bm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-tile .bm-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; color: var(--sage-emphasis); background: linear-gradient(160deg, var(--sage-light), var(--cream-dark)); }
.bm-tile .bm-ph svg { width: 26px; height: 30px; opacity: 0.6; }
.bm-pool .bm-tile:nth-child(4n+2) .bm-ph, .bm-gather .bm-tile:nth-child(4n+2) .bm-ph, .bm-pick:nth-child(4n+2) .bm-ph { background: linear-gradient(160deg, var(--honey-pale), var(--cream-dark)); }
.bm-pool .bm-tile:nth-child(4n+3) .bm-ph, .bm-gather .bm-tile:nth-child(4n+3) .bm-ph, .bm-pick:nth-child(4n+3) .bm-ph { background: linear-gradient(160deg, var(--sky-pale), var(--cream-dark)); }
.bm-pool .bm-tile:nth-child(4n+4) .bm-ph, .bm-gather .bm-tile:nth-child(4n+4) .bm-ph, .bm-pick:nth-child(4n+4) .bm-ph { background: linear-gradient(160deg, var(--blush-pale), var(--cream-dark)); }
.bm-tile .bm-ph b { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.1; }
.bm-tile .bm-ph small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.bm-pool .bm-ph small, .bm-gather .bm-ph small, .bm-pick .bm-ph small { display: none; }
.bm-pool .bm-ph b, .bm-gather .bm-ph b { font-size: 13px; }
.bm-pool .bm-ph svg, .bm-gather .bm-ph svg { width: 18px; height: 21px; }

/* paw trail progress, built on the walking paws from PrimeDoggy IQ */
.bm-trail { display: flex; align-items: center; gap: 10px; height: 44px; margin-bottom: 18px; }
.bm-trail .bm-paw { width: 18px; height: 21px; color: var(--sage-pale); opacity: 0.55; transition: opacity 300ms ease, color 300ms ease, transform 300ms var(--ease); }
.bm-trail .bm-paw:nth-child(odd) { transform: translateY(6px) rotate(90deg); }
.bm-trail .bm-paw:nth-child(even) { transform: translateY(-6px) rotate(90deg); }
.bm-trail .bm-paw.bm-done { color: var(--sage); opacity: 1; }
.bm-trail .bm-paw.bm-now:nth-child(odd) { transform: translateY(6px) rotate(90deg) scale(1.3); color: var(--clay); opacity: 1; }
.bm-trail .bm-paw.bm-now:nth-child(even) { transform: translateY(-6px) rotate(90deg) scale(1.3); color: var(--clay); opacity: 1; }
.bm-trail.bm-long { gap: 6px; flex-wrap: wrap; height: auto; min-height: 44px; }
.bm-trail.bm-long .bm-paw { width: 15px; height: 18px; }
.bm-trail .bm-count { margin-left: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }

/* question */
.bm-q { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.bm-q h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 22px; max-width: 18ch; }
.bm-answers { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.bm-answer { text-align: left; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 18px; min-height: 56px; font-size: 16px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: border-color 150ms ease, background-color 200ms ease, color 200ms ease, opacity 250ms ease, transform 150ms var(--ease); }
.bm-answer .bm-range { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; opacity: 0.8; }
.bm-answer:hover { border-color: var(--sage); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(74, 99, 85, 0.12); }
.bm-hint { margin: -10px 0 18px; color: var(--muted); max-width: 44ch; }
.bm-musts { display: flex; flex-wrap: wrap; gap: 10px; max-width: 660px; }
.bm-must { background: var(--white); border: 1.5px solid var(--border); border-radius: 999px; padding: 12px 18px; min-height: 48px; font-size: 15px; font-weight: 500; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease; }
.bm-must:hover { border-color: var(--sage); }
.bm-must.bm-on { background: var(--sage-emphasis); border-color: var(--sage-emphasis); color: var(--white); }
.bm-must:disabled { opacity: 0.4; cursor: default; }
.bm-answer .bm-tick { width: 22px; height: 22px; flex-shrink: 0; opacity: 0; transform: scale(0.6); transition: opacity 200ms ease, transform 250ms var(--ease); }
.bm-answer.bm-picked { background: var(--sage-emphasis); border-color: var(--sage-emphasis); color: var(--white); }
.bm-answer.bm-picked .bm-tick { opacity: 1; transform: none; }
.bm-answers.bm-chosen .bm-answer:not(.bm-picked) { opacity: 0.35; }
.bm-qfoot { margin-top: 20px; min-height: 32px; }
.bm-art { justify-self: center; width: min(360px, 100%); aspect-ratio: 1; padding: 9%; background: var(--tint, var(--sage-wash)); border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; animation: bm-settle 700ms var(--ease) both; }
@keyframes bm-settle { from { transform: scale(0.94) rotate(-3deg); opacity: 0.4; } to { transform: none; opacity: 1; } }
.bm-art.bm-t1 { --tint: var(--honey-pale); --accent: #b98722; }
.bm-art.bm-t2 { --tint: var(--sky-pale); --accent: #4d7f9c; }
.bm-art.bm-t3 { --tint: var(--blush-pale); --accent: var(--clay); }
.bm-art.bm-t0 { --tint: var(--sage-wash); --accent: var(--sage); }
.bm-art svg { width: 100%; height: 100%; }
.bm-art [pathLength] { fill: none; stroke: var(--sage-emphasis); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bm-draw 1100ms var(--ease) forwards; }
.bm-art .bm-soft { stroke: var(--accent, var(--sage)); stroke-width: 3; }
@keyframes bm-draw { to { stroke-dashoffset: 0; } }

/* finding: the IQ walking paws */
.bm-finding { min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.bm-paw-walk { display: flex; align-items: center; justify-content: center; gap: 18px; height: 70px; }
.bm-paw-walk .bm-paw { width: 30px; height: 34px; color: var(--sage-pale); opacity: 0.4; transition: opacity 250ms ease, color 250ms ease, transform 250ms ease; }
.bm-paw-walk .bm-paw:nth-child(odd) { transform: translateY(10px) rotate(90deg); }
.bm-paw-walk .bm-paw:nth-child(even) { transform: translateY(-10px) rotate(90deg); }
.bm-paw-walk .bm-paw.bm-active { color: var(--sage); opacity: 1; }
.bm-paw-walk .bm-paw.bm-active:nth-child(odd) { transform: translateY(10px) rotate(90deg) scale(1.2); }
.bm-paw-walk .bm-paw.bm-active:nth-child(even) { transform: translateY(-10px) rotate(90deg) scale(1.2); }
.bm-finding p { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 6px 0 0; }
.bm-gather { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 12px; justify-content: center; margin-top: 26px; width: 100%; }
.bm-gather .bm-tile { transition: opacity 520ms ease, transform 620ms var(--ease), box-shadow 400ms ease; animation: bm-fade-up 420ms var(--ease) both; }
.bm-gather .bm-tile.bm-out { opacity: 0; transform: scale(0.82); }
.bm-gather .bm-tile.bm-win { box-shadow: 0 12px 30px rgba(31, 36, 33, 0.22); transform: scale(1.06); }

/* result */
.bm-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-emphasis); margin: 0 0 10px; }
.bm-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.bm-hero .bm-tile { border-radius: 16px; box-shadow: 0 18px 40px rgba(74, 99, 85, 0.18); }
.bm-hero .bm-tile img { animation: bm-drift 26s ease-in-out infinite alternate; }
@keyframes bm-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.bm-hero h2 { font-size: clamp(38px, 5.4vw, 60px); }
.bm-fit { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--sage-light); color: var(--sage-emphasis); font-size: 13px; font-weight: 600; }
.bm-fit.bm-strong { background: var(--sage-emphasis); color: var(--white); }
.bm-fit.bm-trade { background: var(--honey-pale); color: #6b4e12; }
.bm-forYou { font-size: 17px; margin: 0 0 16px; max-width: 46ch; }
.bm-reasons { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bm-reasons li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.bm-reasons svg { width: 20px; height: 20px; padding: 3px; flex-shrink: 0; margin-top: 2px; color: var(--white); background: var(--sage); border-radius: 50%; }
.bm-weigh { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--charcoal); padding: 12px 14px; border-radius: 10px; background: var(--honey-pale); border-left: 4px solid var(--honey); margin: 0 0 18px; }
.bm-weigh b { font-weight: 600; }
.bm-weigh.bm-caution { background: var(--blush-pale); border-left-color: var(--clay); color: var(--caution); }
.bm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bm-rise > * { animation: bm-fade-up 520ms var(--ease) both; }
.bm-rise > *:nth-child(2) { animation-delay: 90ms; } .bm-rise > *:nth-child(3) { animation-delay: 160ms; } .bm-rise > *:nth-child(4) { animation-delay: 230ms; }
.bm-rise > *:nth-child(5) { animation-delay: 300ms; } .bm-rise > *:nth-child(6) { animation-delay: 370ms; } .bm-rise > *:nth-child(7) { animation-delay: 440ms; }

.bm-also { margin-top: 44px; }
.bm-also h3 { font-size: 26px; margin-bottom: 14px; }
.bm-also-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bm-mini { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.bm-mini .bm-tile { border: 0; border-radius: 0; aspect-ratio: 16 / 9; }
.bm-mini .bm-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.bm-mini h4 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 0; line-height: 1.1; }
.bm-mini .bm-fit { margin: 0; align-self: flex-start; }
.bm-mini p { margin: 0; font-size: 14px; color: var(--muted); }

.bm-sharpen { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 26px; border-radius: 16px; background: var(--sage-emphasis); color: var(--white); }
.bm-sharpen h3 { font-size: 30px; color: var(--white); margin-bottom: 4px; }
.bm-sharpen p { margin: 0; max-width: 56ch; font-size: 15px; color: #e6efe9; }
.bm-sharpen .bm-btn-primary { background: var(--honey); border-color: var(--honey); color: #2b2412; }
.bm-sharpen .bm-btn-primary:hover { background: #ecc572; }
.bm-sharpen.bm-done { background: var(--sage-wash); color: var(--charcoal); }
.bm-sharpen.bm-done h3 { color: var(--sage-emphasis); font-size: 26px; }
.bm-sharpen.bm-done p { color: var(--charcoal); }
.bm-kind { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--clay); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 28px; }
.bm-kind h3 { font-size: 26px; margin-bottom: 6px; }
.bm-kind p { margin: 0; font-size: 15px; max-width: 72ch; }

/* change an answer */
.bm-change { margin-top: 40px; padding: 4px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.bm-change > summary { font-size: 24px; padding: 14px 0; }
.bm-change-body { padding: 0 0 18px; }
.bm-change p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-chip { background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; min-height: 44px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; transition: border-color 150ms ease, background-color 150ms ease; }
.bm-chip:hover { border-color: var(--sage); background: var(--sage-light); }
.bm-chip b { font-weight: 600; color: var(--sage-emphasis); }
.bm-change { border-top: 4px solid var(--sky); }
.bm-mini { border-top: 0; box-shadow: 0 8px 22px rgba(74, 99, 85, 0.10); }
.bm-track { background: linear-gradient(90deg, var(--sage-wash), var(--honey-pale)); }

/* folded lines */
.bm-folds { margin-top: 28px; border-top: 1px solid var(--border); }
:where(.pd-bm) details { border-bottom: 1px solid var(--border); }
:where(.pd-bm) summary { list-style: none; cursor: pointer; padding: 18px 4px; min-height: 44px; font-family: var(--font-display); font-size: 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pd-bm summary::-webkit-details-marker { display: none; }
.pd-bm summary::after { content: '+'; font-family: var(--font-ui); font-size: 22px; font-weight: 400; color: var(--sage-emphasis); transition: transform 250ms var(--ease); }
.pd-bm details[open] > summary::after { transform: rotate(45deg); }
.bm-fold-body { padding: 0 4px 22px; font-size: 15px; max-width: 70ch; }
.bm-fold-body p { margin: 0 0 10px; }
.bm-fold-body ul { margin: 0; padding-left: 20px; }

/* the detail: two-marker bars */
.bm-detail { margin-top: 20px; }
.bm-bars { display: flex; flex-direction: column; gap: 26px; margin: 26px 0 6px; }
.bm-bar-row .bm-open { font-size: 12px; color: var(--muted); }
.bm-bar-row { display: grid; grid-template-columns: 190px 1fr 190px; gap: 14px; align-items: center; font-size: 14px; }
.bm-bar-row .bm-lab { font-weight: 500; }
.bm-bar-row .bm-word { color: var(--muted); font-size: 13px; }
.bm-track { position: relative; height: 10px; border-radius: 999px; }
.bm-track .bm-steps { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.bm-track .bm-steps i { border-right: 2px solid var(--cream); }
.bm-track .bm-steps i:last-child { border-right: 0; }
.bm-mk { position: absolute; top: 50%; transition: left 900ms var(--ease); }
.bm-mk.bm-breed { width: 20px; height: 23px; margin: -30px 0 0 -10px; color: var(--sage-emphasis); }
.bm-mk.bm-you { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--white); border: 4px solid var(--clay); }
.bm-legend { display: flex; gap: 20px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.bm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bm-legend .bm-dot { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--clay); background: var(--white); }
.bm-legend svg { width: 13px; height: 15px; color: var(--sage-emphasis); }
.bm-costline { margin: 18px 0 0; font-size: 15px; }
.bm-bar-row .bm-word { display: flex; flex-direction: column; line-height: 1.3; }
.bm-bar-row .bm-word small { font-size: 12px; color: var(--muted); }
.bm-v { font-weight: 600; font-size: 13px; }
.bm-v-ok { color: var(--sage-emphasis); }
.bm-v-near { color: #8a6a1f; }
.bm-v-gap { color: var(--caution); }
.bm-v-none { color: var(--muted); font-weight: 500; }
.bm-cost { margin-top: 26px; padding: 18px 20px; background: var(--honey-pale); border-radius: var(--radius); max-width: 560px; }
.bm-cost h4 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0 0 2px; color: var(--charcoal); }
.bm-cost-figure { font-family: var(--font-display); font-size: 34px; font-weight: 600; margin: 0 0 4px; color: var(--charcoal); font-variant-numeric: tabular-nums; line-height: 1.15; }
.bm-cost p:last-child { margin: 0; font-size: 14px; color: var(--muted); }
.bm-mini-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 2px; }
.bm-chip.bm-open-chip { border-color: var(--sage-emphasis); background: var(--sage-light); }
.bm-menu { flex: 0 0 100%; margin: 4px 0 8px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream); }
.bm-menu-q { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--charcoal) !important; margin: 0 0 10px !important; }
.bm-menu-list { display: grid; gap: 8px; max-width: 520px; }
.bm-menu-list .bm-answer { padding: 12px 16px; font-size: 15px; min-height: 48px; }
.bm-screen.bm-still { animation: none; }
.bm-changed { flex: 0 0 100%; margin: 4px 0 8px !important; padding: 12px 14px; background: var(--sage-wash); border-radius: 10px; font-size: 15px !important; color: var(--charcoal) !important; }
.bm-costline b { font-variant-numeric: tabular-nums; }

/* a day with this breed */
.bm-day { margin-top: 26px; }
.bm-day h4 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0 0 4px; }
.bm-day > p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.bm-day-line { position: relative; padding-left: 28px; display: flex; flex-direction: column; gap: 18px; }
.bm-day-line::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.bm-moment { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; opacity: 0.25; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms var(--ease); }
.bm-moment.bm-seen { opacity: 1; transform: none; }
.bm-moment::before { content: ''; position: absolute; left: -26px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--dot, var(--sage)); border: 2px solid var(--cream); }
.bm-moment { border-top: 4px solid var(--dot, var(--sage)); }
.bm-moment:nth-child(1) { --dot: var(--honey); } .bm-moment:nth-child(2) { --dot: var(--sky); } .bm-moment:nth-child(3) { --dot: var(--clay); } .bm-moment:nth-child(4) { --dot: var(--sage); }
.bm-moment .bm-when { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-emphasis); }
.bm-moment .bm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; font-size: 14px; }
.bm-moment .bm-pair small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.bm-moment .bm-verdict { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--sage-emphasis); }
.bm-moment .bm-verdict.bm-gap { color: var(--caution); }

/* health tests in the detail */
.bm-tests { margin-top: 22px; }
.bm-tests h4, .bm-day h4 { color: var(--charcoal); }
.bm-tests h4 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.bm-tests ul { margin: 0 0 8px; padding-left: 20px; }

/* picker and owner view */
.bm-picker h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 8px; }
.bm-picker > p { color: var(--muted); margin: 0 0 22px; }
.bm-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bm-pick { background: none; border: 0; padding: 0; text-align: left; border-radius: var(--radius); transition: transform 200ms var(--ease); }
.bm-pick:hover { transform: translateY(-3px); }
.bm-pick span { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; }
.bm-needs { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }

/* share */
.bm-scrim { position: fixed; inset: 0; background: rgba(31, 36, 33, 0.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20; animation: bm-fade 200ms ease both; }
@keyframes bm-fade { from { opacity: 0; } to { opacity: 1; } }
.bm-sharebox { background: var(--cream); border-radius: 16px; padding: 22px; width: min(420px, 100%); animation: bm-fade-up 320ms var(--ease) both; }
.bm-sharecard { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.bm-sharecard .bm-tile { border: 0; border-radius: 0; }
.bm-sharecard .bm-txt { padding: 16px 18px 18px; }
.bm-sharecard .bm-txt small { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-emphasis); }
.bm-sharecard .bm-txt b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.05; margin: 4px 0 8px; }
.bm-sharecard .bm-txt span { font-size: 13px; color: var(--muted); }
.bm-sharebox .bm-actions { margin-top: 16px; justify-content: space-between; }

/* "I have a breed in mind": the breed picker (piece 1 of slice 3) */
.bm-choose { max-width: 720px; }
.bm-choose h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; max-width: 20ch; }
.bm-choose .bm-hint { margin: 0 0 18px; }
.bm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bm-search { display: block; margin-bottom: 14px; }
.bm-search input { width: 100%; min-height: 56px; padding: 14px 18px; font-size: 16px; font-family: inherit; color: var(--charcoal); background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); }
.bm-search input:focus { border-color: var(--sage-emphasis); outline: none; box-shadow: 0 0 0 3px var(--sage-pale); }
.bm-rbs { display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.bm-rb { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; min-height: 64px; padding: 8px 16px 8px 8px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 16px; font-weight: 600; transition: border-color 150ms ease, transform 150ms var(--ease); }
.bm-rb[hidden] { display: none; }
.bm-rb:hover { border-color: var(--sage); transform: translateY(-1px); }
.bm-rbph { flex: 0 0 56px; width: 56px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--sage-light); display: flex; align-items: center; justify-content: center; color: var(--sage-emphasis); }
.bm-rbph svg { width: 22px; height: 26px; opacity: 0.6; }
.bm-rbph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-kind.bm-fine { border-left-color: var(--sage); margin-top: 36px; }

@media (max-width: 820px) {
  .bm-app { padding-top: 20px; }
  .bm-start, .bm-q, .bm-hero, .bm-needs { grid-template-columns: 1fr; gap: 26px; }
  .bm-q .bm-art { order: -1; width: 150px; justify-self: start; }
  .bm-also-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; }
  .bm-also-row .bm-mini { flex: 0 0 82%; scroll-snap-align: start; }
  .bm-gather { grid-template-columns: repeat(3, 1fr); }
  .bm-pick-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bm-bar-row .bm-word { order: 3; }
  .bm-bar-row .bm-track { margin-top: 16px; }
  .bm-moment .bm-pair { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-bm *, .pd-bm *::before, .pd-bm *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .bm-art [pathLength] { stroke-dashoffset: 0; }
  .bm-moment { opacity: 1; transform: none; }
}

/* ---- "I already have a dog" (Nov 19, 2026) ---- */
.bm-own { max-width: 720px; }
.bm-own-head { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; }
.bm-own-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 0; }
.bm-own-ph { flex: 0 0 96px; width: 96px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--sage-light); display: flex; align-items: center; justify-content: center; color: var(--sage); }
.bm-own-ph svg { width: 28px; height: 32px; opacity: 0.6; }
.bm-own-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-own .bm-hint { margin: 0 0 18px; }
.bm-own-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bm-own-list li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; font-size: 16px; }
.bm-own-list li svg { flex: 0 0 18px; width: 18px; height: 21px; margin-top: 2px; color: var(--sage-emphasis); opacity: 0.7; }
.bm-own-note { margin: 0 0 22px; max-width: 60ch; font-size: 14px; color: var(--muted); }
.bm-own-foot { margin-top: 16px; }
@media (max-width: 640px) { .bm-own-ph { flex-basis: 72px; width: 72px; height: 54px; } }

/* ---- Links and returning visitors (Nov 19, 2026) ---- */
.bm-welcome { margin: 0 0 18px; padding: 12px 16px; background: var(--sage-light); border-radius: 12px; font-size: 14px; max-width: 70ch; }
.bm-share { margin: 28px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bm-share-note { flex: 1 1 260px; margin: 0; max-width: 46ch; font-size: 13px; color: var(--muted); }

/* ---- What living with this breed may ask of you (Nov 19, 2026) ---- */
.bm-asks { margin-top: 22px; }
.bm-asks h4 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0 0 8px; color: var(--charcoal); }
.bm-asks .bm-own-list { margin: 0 0 12px; padding: 0; }
.bm-own-topic { display: block; margin-top: 4px; font-size: 13px; color: var(--sage-emphasis); text-decoration: underline; text-underline-offset: 2px; }
/* Strengths above the demands in "I already have a dog" (Nov 21, 2026) */
.bm-own-label { font-family: inherit; line-height: 1.3; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-emphasis); margin: 22px 0 10px; }
.bm-own-good li { background: var(--sage-light); border-color: var(--sage-light); }
.bm-own-good li svg { opacity: 0.85; }

/* ============================================================================
   Page text and breed card list below the tool (23 November 2026)
   The card rules are the same as the breed row on /blog (assets/css/blog.css),
   scoped here so blog.css does not have to load on this page.
   ========================================================================== */
.pd-bm-info { width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 20px 72px; }
.pd-bm-info-text { max-width: 720px; }
.pd-bm-info-text h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 44px 0 14px; }
.pd-bm-info-text h2:first-child { margin-top: 24px; }
.pd-bm-info-text h3 { font-size: 20px; margin: 26px 0 8px; }
.pd-bm-info-text p, .pd-bm-info-text li { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.pd-bm-info-text ul, .pd-bm-info-text ol { margin: 0 0 18px; padding-left: 22px; }
.pd-bm-breeds { margin-top: 52px; padding-top: 12px; border-top: 1px solid var(--border); }
.pd-bm-breeds h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 28px 0 10px; }
.pd-bm-breeds-intro { font-size: 15px; color: var(--muted); margin: 0 0 22px; }
.pd-bm-breeds .pd-breed-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 22px; }
@media (max-width: 1024px) { .pd-bm-breeds .pd-breed-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pd-bm-breeds .pd-breed-grid { grid-template-columns: repeat(2, 1fr); } }
.pd-bm-breeds .pd-breed-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; transition: transform var(--dur-std) var(--ease-out-expo), box-shadow var(--dur-std) var(--ease-out-expo); }
.pd-bm-breeds .pd-breed-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(31, 36, 33, 0.10); }
.pd-bm-breeds .pd-breed-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pd-bm-breeds .pd-breed-card-media-fallback { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--cream-dark); }
.pd-bm-breeds .pd-breed-card-title { display: block; padding: 10px 12px 14px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--charcoal); line-height: 1.35; }
.pd-bm-breeds .pd-breed-card:hover .pd-breed-card-title { color: var(--sage-emphasis); }
@media (prefers-reduced-motion: reduce) { .pd-bm-breeds .pd-breed-card { transition: none; } .pd-bm-breeds .pd-breed-card:hover { transform: none; } }

/* ============================================================================
   Sectioned page text (23 November 2026). The look follows the breed guides
   (assets/css/breed-guide.css): sage-topped cards, a short sage bar over each
   heading, the guide's table and its question-and-answer list. All scoped to
   the page text so nothing else on the site is touched.
   ========================================================================== */
.pd-bm-info-text { max-width: none; }
.pd-bm-info-text .pdm-sec { display: flex; flex-direction: column; gap: 22px; margin: 0 0 68px; }
.pd-bm-info-text .pdm-sec > * { margin-top: 0; margin-bottom: 0; }
.pd-bm-info-text .pdm-sec h2 { margin: 0; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.15; }
.pd-bm-info-text .pdm-sec h2::before { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--sage); margin-bottom: 16px; }
.pd-bm-info-text .pdm-sec h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; }
.pd-bm-info-text .pdm-label { display: block; margin: 0; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-emphasis); }
.pd-bm-info-text .pdm-lead { max-width: 780px; font-size: 18px; line-height: 1.7; margin: 0; }
.pd-bm-info-text .pdm-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pd-bm-info-text .pdm-key { max-width: 820px; margin: 0; padding: 18px 22px; background: var(--sage-light); border-left: 4px solid var(--sage); border-radius: 0 10px 10px 0; font-size: 17px; line-height: 1.6; }
.pd-bm-info-text .pdm-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px 26px; }
.pd-bm-info-text .pdm-card p { font-size: 16px; line-height: 1.6; margin: 0; }

.pd-bm-info-text .pdm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pd-bm-info-text .pdm-step { border-top: 4px solid var(--sage); }
.pd-bm-info-text .pdm-step-2 { border-top-color: var(--honey); }
.pd-bm-info-text .pdm-step-3 { border-top-color: var(--sky); }
.pd-bm-info-text .pdm-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--sage-light); color: var(--sage-emphasis); font-family: var(--font-ui); font-size: 16px; font-weight: 600; }
.pd-bm-info-text .pdm-step-2 .pdm-num { background: #F8EBCB; color: #8A6D3B; }
.pd-bm-info-text .pdm-step-3 .pdm-num { background: #DDE9F0; color: #3F6B84; }

.pd-bm-info-text .pdm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pd-bm-info-text .pdm-tile { border-top: 4px solid var(--sage); }
.pd-bm-info-text .pdm-tile:nth-child(2) { border-top-color: var(--clay); }
.pd-bm-info-text .pdm-tile:nth-child(3) { border-top-color: var(--honey); }

.pd-bm-info-text .pdm-asks { background: var(--sage-light); border-color: #CFDDD4; padding: 28px 30px; }
.pd-bm-info-text .pdm-asks .pdm-label { margin-bottom: 14px; }
.pd-bm-info-text .pdm-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.pd-bm-info-text .pdm-ticks li { position: relative; margin: 0; padding-left: 26px; font-size: 16px; line-height: 1.5; }
.pd-bm-info-text .pdm-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--sage-emphasis); }

.pd-bm-info-text .pdm-table { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--white); }
.pd-bm-info-text .pdm-table table { width: 100%; border-collapse: collapse; margin: 0; }
.pd-bm-info-text .pdm-table th { padding: 12px 20px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-emphasis); background: var(--sage-light); border-bottom: 2px solid var(--sage); }
.pd-bm-info-text .pdm-table td { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 16px; line-height: 1.5; text-align: left; vertical-align: top; }
.pd-bm-info-text .pdm-table tbody tr:first-child td { border-top: 0; }
.pd-bm-info-text .pdm-table td:first-child { width: 42%; font-weight: 500; }
.pd-bm-info-text .pdm-table td:last-child { color: #4a524e; }

.pd-bm-info-text .pdm-faq { max-width: 900px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--white); overflow: hidden; }
.pd-bm-info-text .pdm-faq details { padding: 18px 24px; border-top: 1px solid var(--border); }
.pd-bm-info-text .pdm-faq details:first-child { border-top: 0; }
.pd-bm-info-text .pdm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-family: var(--font-ui); font-size: 17px; font-weight: 500; }
.pd-bm-info-text .pdm-faq summary::-webkit-details-marker { display: none; }
.pd-bm-info-text .pdm-faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--sage); }
.pd-bm-info-text .pdm-faq details[open] summary::after { content: "\2013"; }
.pd-bm-info-text .pdm-faq details[open] summary { color: var(--sage-emphasis); }
.pd-bm-info-text .pdm-faq details p { max-width: 780px; margin: 10px 0 0; font-size: 16px; line-height: 1.65; }
.pd-bm-info-text .pdm-faq summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; border-radius: 4px; }

.pd-bm-info-text .pdm-sources { padding: 26px 30px; }
.pd-bm-info-text .pdm-sources .pdm-label { margin-bottom: 12px; }
.pd-bm-info-text .pdm-arrows { list-style: none; margin: 0 0 16px; padding: 0; }
.pd-bm-info-text .pdm-arrows li { position: relative; margin: 10px 0 0; padding-left: 24px; font-size: 15px; line-height: 1.5; }
.pd-bm-info-text .pdm-arrows li:first-child { margin-top: 0; }
.pd-bm-info-text .pdm-arrows li::before { content: "\2192"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--sage); }
.pd-bm-info-text .pdm-arrows a { color: var(--sage-emphasis); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .pd-bm-info-text .pdm-steps { grid-template-columns: 1fr; }
  .pd-bm-info-text .pdm-ticks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pd-bm-info-text .pdm-sec { margin-bottom: 52px; }
  .pd-bm-info-text .pdm-lead { font-size: 17px; }
  .pd-bm-info-text .pdm-table th, .pd-bm-info-text .pdm-table td { padding: 12px 14px; font-size: 15px; }
  .pd-bm-info-text .pdm-table td:first-child { width: 46%; }
  .pd-bm-info-text .pdm-faq details { padding: 16px 18px; }
}

/* Breed cards now sit first, directly under the tool (23 November 2026, v12) */
.pd-bm-breeds { margin-top: 0; padding-top: 0; border-top: 0; margin-bottom: 64px; }
.pd-bm-breeds h2 { margin-top: 36px; }
.pd-bm-info-text .pdm-card a, .pd-bm-info-text .pdm-lead a, .pd-bm-info-text .pdm-key a, .pd-bm-info-text .pdm-faq a { color: var(--sage-emphasis); text-decoration: underline; text-underline-offset: 3px; }
.pd-bm-info-text .pdm-faq details p a { color: var(--sage-emphasis); text-decoration: underline; text-underline-offset: 3px; }

/* Closing image and start button (23 November 2026, v13) */
.pd-bm-info-text .pdm-closing { gap: 20px; margin-bottom: 0; }
.pd-bm-info-text .pdm-hero { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--white); }
.pd-bm-info-text .pdm-hero img { display: block; width: 100%; height: auto; }
.pd-bm-info-text .pdm-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.pd-bm-info-text .pdm-cta p { margin: 0; font-size: 18px; line-height: 1.5; }

/* ============================================================================
   Wider page and larger start-screen photo grid (23 November 2026, v14)
   ========================================================================== */
.bm-app { max-width: 1280px; }
.pd-bm-info { max-width: 1280px; }
.bm-start { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.bm-start .bm-pool { gap: 14px; }
.bm-start .bm-poolnote { margin-top: 32px; }
@media (max-width: 820px) {
  .bm-start { grid-template-columns: 1fr; gap: 26px; }
  .bm-start .bm-poolnote { margin-top: 24px; }
}

/* Start over sits beside the progress count (24 Nov 2026) */
.bm-trailrow { display: flex; align-items: center; flex-wrap: wrap; column-gap: 32px; margin-bottom: 18px; }
.bm-trailrow .bm-trail { margin-bottom: 0; }
.bm-trailrow .bm-restart-inline { margin-left: 0; }
