/* Pawfamily: white & charcoal with a soft blush accent. Shared by the public site and the owner dashboard. */
:root {
  --white: #ffffff; --paper: #faf8f7; --ink: #1e1d20; --ink-2: #39373c; --muted: #66626a; --line: #ebe6e4; --line-2: #ddd6d3;
  --blush: #e9bcb9; --blush-soft: #f8ecea; --blush-deep: #a4515a;
  --ok: #2e6b4c; --ok-bg: #e6f1ea; --hold: #85550f; --hold-bg: #f8eedb; --done: #5b5860; --done-bg: #efedee; --danger: #b3261e; --danger-bg: #fbeceb;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgb(30 29 32 / .05), 0 12px 32px rgb(30 29 32 / .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
h4, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blush-deep); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blush-deep); }
.muted { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.center { text-align: center; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.light { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.light:hover { border-color: var(--ink); }
.btn.blush { background: var(--blush); border-color: var(--blush); color: var(--ink); }
.btn.blush:hover { background: #e2aeab; }
.btn.sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn.danger { background: transparent; border-color: #e3c3c1; color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--blush); padding-bottom: 1px; background: none; border-top: 0; border-left: 0; border-right: 0; padding-left: 0; padding-right: 0; }
.link:hover { border-bottom-color: var(--ink); }

/* Pills & chips */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.available, .pill.approved, .pill.adopted, .pill.replied, .pill.published { color: var(--ok); background: var(--ok-bg); }
.pill.reserved, .pill.reviewing, .pill.home-check, .pill.draft { color: var(--hold); background: var(--hold-bg); }
.pill.hidden-status, .pill.declined { color: var(--done); background: var(--done-bg); }
.pill.new { color: var(--blush-deep); background: var(--blush-soft); }
.pill.plain { color: var(--blush-deep); background: var(--blush-soft); }
.pill.plain::before { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip .c { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Photos */
.ph { position: relative; overflow: hidden; background: var(--blush-soft); }
.ph img, .ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .pill { position: absolute; top: 14px; left: 14px; background: var(--white); }
.ph-empty { display: grid; place-items: center; color: var(--blush); }
.ph-empty svg { width: 46%; height: 46%; }

/* Header */
.announce { background: var(--ink); color: #f2eeec; font-size: 14px; text-align: center; padding: 9px 16px; padding-top: calc(9px + env(safe-area-inset-top, 0px)); }
.announce a { color: var(--blush); font-weight: 600; text-decoration: none; margin-left: 6px; }
header.site { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .mark { flex: none; width: 42px; height: 42px; }
.brand b { display: block; font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.brand small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav.main { margin-left: auto; display: flex; gap: 2px; }
nav.main a { padding: 8px 11px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); position: relative; white-space: nowrap; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); font-weight: 700; }
nav.main a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--blush); border-radius: 2px; }
.head-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: .2s; }
.menu-btn i::before { position: absolute; top: -6px; } .menu-btn i::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
.drawer { display: none; border-top: 1px solid var(--line); background: var(--white); }
.drawer.open { display: block; }
.drawer a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; text-decoration: none; }
.drawer a[aria-current="page"] { color: var(--blush-deep); font-weight: 700; }
.drawer .btn { width: 100%; margin: 18px 0 22px; border-bottom: 0; color: var(--white); }

/* Sections */
main { min-height: 60vh; }
main:focus { outline: none; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 56px 48px; }
.page-head h1 { font-size: clamp(42px, 6vw, 64px); margin: 10px 0 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
section.sec { padding-block: 80px; }
section.sec.tint { background: var(--paper); }
section.sec.tight { padding-top: 48px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 48px); margin-top: 8px; }
.sec-head p { max-width: 54ch; color: var(--muted); margin-top: 10px; }

.hero { padding-block: 64px 80px; background: linear-gradient(180deg, var(--paper), var(--white)); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(48px, 6.4vw, 80px); margin: 16px 0 20px; }
.hero h1 em { font-style: italic; color: var(--blush-deep); }
.hero .btn-row { margin-top: 30px; }
.hero-pic { position: relative; }
.hero-pic .ph { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); box-shadow: var(--shadow); }
.hero-card { position: absolute; left: -28px; bottom: 36px; background: var(--white); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; text-decoration: none; max-width: 300px; }
.hero-card .num { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--blush-deep); font-variant-numeric: lining-nums tabular-nums; }
.hero-card b { display: block; font-size: 15px; } .hero-card span span { font-size: 13.5px; color: var(--muted); }
.fee-note { display: inline-block; margin-top: 28px; padding: 10px 16px; border-radius: 12px; background: var(--blush-soft); font-size: 14.5px; color: var(--ink-2); }
.fee-note b { color: var(--ink); }

.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust .wrap > div { padding: 26px 22px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.trust .wrap > div:first-child { padding-left: 0; } .trust .wrap > div:last-child { border-right: 0; }
.trust svg { color: var(--blush-deep); margin-bottom: 6px; }
.trust b { font-size: 15.5px; } .trust span { font-size: 14px; color: var(--muted); }

/* Pet cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card .ph { aspect-ratio: 4 / 5; border-radius: var(--r); }
.card .ph img { transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .info { padding-top: 16px; display: grid; gap: 3px; }
.card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 30px; }
.card .sub { color: var(--muted); font-size: 15px; }
.card .fee { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.selects { display: flex; gap: 10px; flex-wrap: wrap; }
.selects select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font-size: 15px; }
.count-line { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.empty h3 { font-size: 30px; color: var(--ink); }

/* Pet profile */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-block: 40px 80px; }
.gallery .ph.main { aspect-ratio: 4 / 5; border-radius: var(--r); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--blush-soft); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.profile h1 { font-size: clamp(48px, 6vw, 72px); margin: 12px 0 6px; }
.profile .desc { font-size: 19px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 28px 0; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fee-box { border: 1px solid var(--blush); background: var(--blush-soft); border-radius: var(--r); padding: 20px 22px; display: grid; gap: 6px; }
.fee-box .amt { font-family: var(--display); font-size: 40px; line-height: 1; font-variant-numeric: lining-nums; }
.fee-box p { color: var(--ink-2); font-size: 15px; }
.profile h2 { font-size: 30px; margin: 34px 0 12px; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); font-size: 17.5px; white-space: pre-line; }
.prose p + p { margin-top: 18px; }
.prose h2 { font-size: 32px; margin: 40px 0 14px; }
.prose ul { padding-left: 20px; color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--blush-deep); font-weight: 800; }
.ticks li.no::before { content: "–"; color: var(--muted); }
.ticks li.no { color: var(--muted); }

/* Splits, steps, stories, help */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .ph { aspect-ratio: 5 / 6; border-radius: 999px 999px var(--r) var(--r); }
.split h2 { font-size: clamp(34px, 4.4vw, 50px); margin: 10px 0 18px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step .n { font-family: var(--display); font-size: 54px; line-height: 1; color: var(--blush); font-variant-numeric: lining-nums; }
.step h3 { font-size: 27px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.story .ph { aspect-ratio: 4 / 3; }
.story .body { padding: 24px; display: grid; gap: 10px; }
.story h3 { font-size: 28px; }
.story p { color: var(--muted); white-space: pre-line; }
.story .who { font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blush-deep); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.panel-card { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--white); display: grid; gap: 12px; align-content: start; }
.panel-card h3 { font-size: 30px; }
.panel-card p { color: var(--muted); }
.panel-card svg { color: var(--blush-deep); }
.band { background: var(--ink); color: #f3efed; padding-block: 72px; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { font-size: clamp(34px, 4.4vw, 50px); color: var(--white); max-width: 20ch; }
.band p { color: #c9c3c6; margin-top: 10px; max-width: 52ch; }
.band .eyebrow { color: var(--blush); }
.band .btn.light.on-dark { color: #f3efed; border-color: #5d5a60; }
.band .btn.light.on-dark:hover { border-color: #f3efed; }

/* FAQ */
.faq { max-width: 820px; }
details.q { border-bottom: 1px solid var(--line); }
details.q summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-top: 7px; border-right: 2px solid var(--blush-deep); border-bottom: 2px solid var(--blush-deep); transform: rotate(45deg); transition: transform .2s; }
details.q[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
details.q p { padding-bottom: 20px; color: var(--muted); max-width: 70ch; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group h2 { font-size: 34px; margin-bottom: 8px; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.form-card h2 { font-size: 38px; margin-bottom: 6px; }
form.stack { display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
legend { font-family: var(--display); font-size: 26px; font-weight: 500; margin-bottom: 4px; padding: 0; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; } /* keep inputs aligned when a neighbour has a hint */
.field > label, .field > .label { font-size: 14.5px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font-size: 16px; }
.field input[type="file"] { padding: 10px; min-height: auto; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--blush-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.field textarea.tall { min-height: 220px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13.5px; }
.err:empty { display: none; }
.hint { font-size: 13.5px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checkline input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--danger-bg); color: var(--danger); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 24px 0; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--blush-soft); color: var(--blush-deep); display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.done h3 { font-size: 34px; }
.side { display: grid; gap: 28px; }
.side h3 { font-size: 26px; margin-bottom: 10px; }
.side dl { margin: 0; display: grid; gap: 14px; }
.side dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
footer.site { background: var(--paper); border-top: 1px solid var(--line); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid h4 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid p { color: var(--muted); margin-top: 12px; max-width: 34ch; }
.foot-grid li { overflow-wrap: anywhere; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.foot-base a { color: var(--muted); }

/* Loading */
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); gap: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blush-deep); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast & dialog */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); background: var(--ink); color: var(--white); padding: 13px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; opacity: 0; transition: .25s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
dialog { border: 0; padding: 0; border-radius: 20px; width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: var(--shadow); background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgb(30 29 32 / .5); }
.d-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: 30px; }
.d-foot { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px; background: var(--white); border-top: 1px solid var(--line); }
.x { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-size: 22px; line-height: 1; flex: none; }
.d-body { padding: 24px; display: grid; gap: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .view-in { animation: fade .3s ease both; }
  @keyframes fade { from { transform: translateY(6px); } to { transform: none; } } /* content stays fully visible: only a gentle slide */
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 1100px) {
  nav.main, .head-cta { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 900px) {
  .hero .wrap, .split, .profile, .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-pic { max-width: 440px; width: 100%; margin: 0 auto; }
  .hero-card { left: 12px; }
  .grid, .stories, .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust .wrap > div:nth-child(2) { border-right: 0; }
  .trust .wrap > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust .wrap > div:nth-child(3) { padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section.sec { padding-block: 56px; }
  .hero { padding-block: 40px 56px; }
  .page-head { padding-block: 40px 32px; }
  .grid, .stories, .cards3, .steps, .row2, .checks, .foot-grid { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; }
  .trust .wrap > div { border-right: 0 !important; border-bottom: 1px solid var(--line); padding-left: 0; }
  .trust .wrap > div:last-child { border-bottom: 0; }
  .form-card { padding: 22px; }
  .brand b { font-size: 24px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- Owner dashboard ---------------- */
.admin-body { background: var(--paper); }
.admin-top { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.admin-top .brand b { font-size: 24px; }
.admin-main { padding-block: 32px 72px; }
.login { max-width: 440px; margin: 48px auto; }
.login h1 { font-size: 42px; margin: 8px 0 6px; }
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.a-nav { position: sticky; top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 2px; }
.a-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.a-nav a:hover { background: var(--paper); }
.a-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--blush); color: var(--ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.a-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.a-head h1 { font-size: 42px; }
.a-head p { color: var(--muted); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: inherit; }
.stat b { display: block; font-family: var(--display); font-size: 44px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat.hl { background: var(--blush-soft); border-color: var(--blush); }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 24px; }
.box > h2 { font-family: var(--body); font-size: 16px; font-weight: 700; padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.box .pad { padding: 20px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list > li.text { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.list .ph { width: 64px; height: 64px; border-radius: 12px; }
.list b.t { font-size: 16px; }
.list .s { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.list .ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.list select, .inline-select { min-height: 38px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 14px; }
.msg { margin-top: 10px; padding: 12px 14px; background: var(--paper); border-radius: 10px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin-top: 10px; font-size: 14.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.notes { margin-top: 12px; display: grid; gap: 8px; }
.pay-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pay-grid .field label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pay-grid input { min-height: 40px; padding: 6px 10px; font-size: 14.5px; }
fieldset.docs { margin-top: 12px; }
@media (max-width: 1100px) { .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notes textarea { width: 100%; min-height: 70px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 15px; resize: vertical; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.photo-grid .ph { aspect-ratio: 1; border-radius: 12px; }
.photo-grid .tools { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 6px; justify-content: space-between; }
.photo-grid .tools button { background: rgb(255 255 255 / .92); border: 0; border-radius: 8px; padding: 4px 8px; font-size: 12.5px; font-weight: 700; }
.photo-grid .main-tag { position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.uploading { display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.setup-note { background: var(--hold-bg); color: var(--ink-2); border: 1px solid #ecd9b6; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.setup-note code { background: rgb(255 255 255 / .7); padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .a-nav { position: static; display: flex; overflow-x: auto; }
  .a-nav a { flex: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .list > li { grid-template-columns: 52px minmax(0, 1fr); }
  .list > li.text { grid-template-columns: 1fr; }
  .list .ph { width: 52px; height: 52px; }
  .list .ctrl { grid-column: 1 / -1; justify-content: flex-start; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Parents, litters, enquiry choices */
.litters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.litter { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 12px; align-content: start; background: var(--white); }
.litter .pair { display: flex; align-items: center; gap: 12px; }
.litter .pair .ph { width: 72px; height: 72px; border-radius: 999px; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); flex: none; }
.litter .x { font-family: var(--display); font-size: 30px; color: var(--blush-deep); }
.litter h3 { font-size: 32px; }
.litter dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 4px 0 0; font-size: 15px; }
.litter dt { color: var(--muted); } .litter dd { margin: 0; font-weight: 600; }
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cat .ph { aspect-ratio: 1; border-radius: var(--r); margin-bottom: 18px; }
.cat h3 { font-size: 34px; margin: 6px 0 4px; }
.cat .sub { color: var(--muted); }
.cat p.note { margin: 12px 0; color: var(--ink-2); }
.parents-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.parents-mini a { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.parents-mini a:hover { border-color: var(--line-2); }
.parents-mini .ph { width: 56px; height: 56px; border-radius: 999px; flex: none; }
.parents-mini b { display: block; } .parents-mini span span { font-size: 13.5px; color: var(--muted); }
fieldset.radios { border: 0; padding: 0; margin: 0; }
fieldset.radios legend { font-size: 14.5px; font-weight: 600; font-family: var(--body); margin-bottom: 8px; }
.radio-chip { position: relative; cursor: pointer; }
.radio-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--white); }
.radio-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.radio-chip input:focus-visible + span { outline: 3px solid var(--blush-deep); outline-offset: 2px; }
.radio-chip input[aria-invalid="true"] + span { border-color: var(--danger); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .litters, .cats, .parents-mini { grid-template-columns: 1fr; } .litter { padding: 20px; } .litter h3 { font-size: 26px; } }

/* =====================================================================
   Phone layout (≤ 760px): show what matters, hide the rest.
   Desktop is unaffected: every rule below is inside this breakpoint,
   and phone-only elements are hidden by default.
   ===================================================================== */
#apply, #waitlist { scroll-margin-top: 90px; } /* land below the sticky header */
.tabbar, .sticky-apply, .swipe-wrap, .fact-chips, .steps-pills, .wizard-progress, .wizard-nav, .lead-short, .read-more, .fab, .a-more-only { display: none; }
.a-nav a.a-more-only { display: none; } /* beats .a-nav a { display: flex } on desktop */
.announce-x { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: #f2eeec; font-size: 20px; line-height: 1; border-radius: 8px; }
.announce { display: flex; align-items: center; justify-content: center; gap: 8px; }
.announce .announce-text { min-width: 0; }

@media (max-width: 760px) {
  /* Header & announcement */
  .announce { justify-content: space-between; padding: 2px 6px 2px 16px; padding-top: calc(2px + env(safe-area-inset-top, 0px)); font-size: 13px; }
  .announce .announce-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  header.site .wrap { min-height: 56px; gap: 12px; }
  .brand .mark { width: 32px; height: 32px; }
  .brand b { font-size: 23px; }
  .brand small { display: none; }
  .menu-btn { width: 44px; height: 44px; }

  /* Bottom tab bar */
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(62px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: rgb(255 255 255 / .97);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: 11.5px; font-weight: 600; color: var(--muted); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--blush-deep); font-weight: 700; }
  body.has-tabbar footer.site { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  body.has-sticky .tabbar { display: none; }
  body.has-sticky footer.site { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

  /* Sections: tighter */
  section.sec { padding-block: 32px; }
  section.sec.tight { padding-top: 16px; }
  .sec-head { margin-bottom: 14px; align-items: baseline; flex-wrap: nowrap; }
  .sec-head > div { min-width: 0; }
  .sec-head > .link { flex: none; white-space: nowrap; }
  .link .lead-long, h2 .lead-short { display: inline; }
  .link .lead-long { display: none; }
  .sec-head h2 { font-size: 27px; margin-top: 2px; }
  .sec-head p, .sec-head .eyebrow { display: none; }
  .page-head { padding-block: 20px 14px; }
  .page-head h1 { font-size: 36px; margin: 4px 0 6px; }
  .page-head .lead { font-size: 14.5px; }
  .page-head .eyebrow { display: none; }

  /* Home: pets straight after a short hero */
  .home { display: flex; flex-direction: column; }
  .home > .o-hero { order: 0; } .home > .o-pets { order: 1; } .home > .o-trust { order: 2; } .home > .o-steps { order: 3; } .home > .o-litters { order: 4; } .home > .o-stories { order: 4; } .home > .o-band { order: 5; }
  .hero { padding-block: 20px 4px; background: none; }
  .hero .wrap { display: block; }
  .hero h1 { font-size: 38px; margin: 8px 0 6px; line-height: 1.05; }
  .hero .eyebrow { font-size: 11.5px; }
  .hero-pic, .hero .btn-row, .hero .fee-note, .lead-long { display: none; }
  .lead-short { display: block; }
  p.lead-short { font-size: 15px; }
  .home > .o-pets { padding-top: 18px; }
  .carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel > * { flex: 0 0 44%; scroll-snap-align: start; }
  .carousel > .empty { flex: 1 0 100%; }
  .stories.carousel > * { flex-basis: 78%; }
  .trust { border: 0; }
  .trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-block: 8px 0; }
  .trust .wrap div { display: flex; align-items: center; gap: 8px; padding: 10px; border: 0 !important; border-radius: 12px; background: var(--paper); }
  .trust .wrap div:first-child, .trust .wrap div:nth-child(3) { padding-left: 10px; }
  .trust svg { width: 18px; height: 18px; flex: none; margin: 0; }
  .trust b { font-size: 13px; line-height: 1.25; }
  .trust span { display: none; }
  .o-steps { background: none !important; }
  .o-steps .steps-full { display: none; }
  .steps-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; font-weight: 600; }
  .steps-pills span { padding: 4px 10px; border-radius: 999px; background: var(--blush-soft); }
  .steps-pills i { font-style: normal; color: var(--blush-deep); }
  .band { padding-block: 32px; }
  .band h2 { font-size: 28px; }
  .band p { display: none; }

  /* Pet cards: 2 per row */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .card .ph { aspect-ratio: 1 / 1.05; border-radius: 12px; }
  .card .ph .pill { top: 8px; left: 8px; padding: 2px 8px; font-size: 11px; }
  .card .info { padding-top: 8px; gap: 1px; }
  .card h3 { font-size: 23px; }
  .card .sub { font-size: 13px; line-height: 1.35; }
  .card .fee { font-size: 13px; }
  .filters { position: sticky; top: 56px; z-index: 30; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -20px 16px; padding: 10px 20px; background: rgb(255 255 255 / .97); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chips, .filters .selects { flex-wrap: nowrap; flex: none; }
  .chip { white-space: nowrap; padding: 7px 14px; font-size: 14px; }
  .selects select { min-height: 38px; font-size: 14px; padding: 6px 10px; border-radius: 999px; }
  .count-line { font-size: 13px; margin-bottom: 12px; }

  /* Pet profile */
  .profile { display: block; padding-block: 0 24px; }
  .gallery { display: none; }
  .swipe-wrap { display: block; position: relative; margin: 0 -20px; }
  .swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe .ph { flex: 0 0 100%; aspect-ratio: 1 / .9; scroll-snap-align: start; }
  .swipe-btn { position: absolute; top: 12px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .94); display: grid; place-items: center; box-shadow: 0 2px 8px rgb(30 29 32 / .12); }
  .swipe-btn.back { left: 14px; } .swipe-btn.share { right: 14px; }
  .swipe-count { position: absolute; right: 14px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgb(30 29 32 / .72); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .profile .crumbs { display: none; }
  .profile > div:last-child { padding-top: 16px; }
  .profile h1 { font-size: 44px; margin: 6px 0 2px; line-height: 1; }
  .profile .desc { font-size: 15.5px; }
  .profile .lead.mt-s { font-size: 15px; }
  .facts, .fee-box, .profile .btn-row.mt-m { display: none; }
  .fact-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .fact-chips span { padding: 5px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
  .profile h2 { font-size: 26px; margin: 22px 0 8px; }
  .story-text.clamped { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .story-text .prose p { font-size: 15.5px; }
  .read-more { display: inline-block; margin-top: 6px; font-size: 14px; }
  .profile .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 14px; }
  .profile .ticks li { grid-template-columns: 16px 1fr; gap: 6px; }
  .sticky-apply { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / .98); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(30 29 32 / .06); }
  .sticky-apply .amt { font-family: var(--display); font-size: 28px; line-height: 1; font-variant-numeric: lining-nums; }
  .sticky-apply small { display: block; font-size: 12px; color: var(--muted); }
  .sticky-apply .btn { min-height: 50px; padding: 12px 22px; flex: none; }

  /* Application: 3 short steps */
  #apply.sec { padding-top: 16px; scroll-margin-top: 56px; }
  .form-card { padding: 0; border: 0; }
  .form-card h2 { font-size: 30px; }
  .wizard-progress { display: block; margin: 14px 0 4px; }
  .wizard-progress .labels { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .wizard-progress .labels .on { color: var(--blush-deep); }
  .wizard-progress .bar { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
  .wizard-progress .bar i { display: block; height: 100%; background: var(--blush-deep); transition: width .25s ease; }
  form.wizard fieldset[data-step]:not(.on), form.wizard > .submit-row { display: none; }
  form.wizard.last > .submit-row { display: block; }
  .wizard-nav { display: flex; gap: 10px; }
  .wizard-nav .btn { flex: 1; }
  form.wizard.last .wizard-nav .next { display: none; }
  form.wizard.first .wizard-nav .prev { display: none; }
  .form-layout .side { display: none; }
  .submit-row .btn { width: 100%; }

  /* Footer: compact */
  .foot-grid > div:nth-child(2), .foot-grid > div:nth-child(3) { display: none; }
  .foot-grid { gap: 20px; }
  footer.site { padding-top: 32px; }
  .foot-base { margin-top: 20px; }

  /* ---------- Owner dashboard on a phone ---------- */
  .admin-main { padding-block: 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .admin-top .wrap { min-height: 56px; }
  .admin-top .btn-row .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
  .admin-top #logout { display: none; }
  .a-nav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px); border-radius: 0; border-width: 1px 0 0; height: calc(62px + env(safe-area-inset-bottom, 0px)); overflow: visible; }
  .a-nav a { flex-direction: column; justify-content: center; gap: 2px; padding: 4px 2px; border-radius: 0; font-size: 11px; position: relative; }
  .a-nav a[aria-current="page"] { background: transparent; color: var(--blush-deep); }
  .a-nav a .ico { display: block; width: 22px; height: 22px; }
  .a-nav a .badge { position: absolute; top: 4px; left: calc(50% + 4px); min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .a-nav .a-desk-only { display: none; }
  .a-more-only, .a-nav a.a-more-only { display: flex; }
  .fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 44; min-height: 52px; padding: 12px 20px; box-shadow: 0 10px 24px rgb(30 29 32 / .25); }
  .a-head { margin-bottom: 14px; }
  .a-head h1 { font-size: 32px; }
  .a-head p { font-size: 13.5px; }
  .a-head > .btn { display: none; }
  .stats { gap: 10px; margin-bottom: 16px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 34px; }
  .stat span { font-size: 13px; }
  details.app-more > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blush-deep); margin-top: 8px; list-style: none; }
  details.app-more > summary::-webkit-details-marker { display: none; }
  .more-links { display: grid; }
  .more-links a, .more-links button { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; font-weight: 600; font-size: 16px; text-align: left; width: 100%; color: var(--ink); }
}
@media (min-width: 761px) {
  details.app-more > summary { display: none; }
  .a-nav .ico { display: none; }
}
