:root{--kf-compact-gap:clamp(.65rem,2vw,1rem)}
/* Global chrome: one header + one compact world switch. */
.kf-account-door{display:none!important}
.kf-world-bar{position:sticky;top:0;z-index:40;padding:.35rem 0!important;box-shadow:0 8px 22px rgba(21,24,21,.08)}
.kf-world-bar-inner{display:flex!important;align-items:center;justify-content:center;min-height:44px!important}
.kf-world-bar .kf-world-label,.kf-world-bar small{display:none!important}
.kf-world-switch{gap:.35rem!important}
.kf-world-switch a{min-height:38px!important;padding:.45rem .85rem!important;border-radius:999px!important}

/* Homepage: useful first, explanation later. */
.hk-hero{padding:clamp(1.25rem,4vw,2.4rem) 0!important;min-height:0!important}
.kf-rc103-home-hero{max-width:980px}
.kf-rc103-home-hero h1{max-width:760px;margin:.35rem 0 .55rem;font-size:clamp(2.1rem,6vw,4.5rem);line-height:.98}
.kf-rc103-home-hero .hk-deck{max-width:720px;margin:0 0 1rem;font-size:clamp(1rem,2vw,1.18rem)}
.kf-rc103-world-doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;max-width:760px}
.kf-rc103-world-doors>a{display:flex;align-items:center;gap:.7rem;padding:.8rem 1rem;border:1px solid var(--line,#ddd4c7);border-radius:18px;text-decoration:none;background:var(--paper,#fffaf1);color:inherit}
.kf-rc103-world-doors>a>span{font-size:1.55rem}.kf-rc103-world-doors b,.kf-rc103-world-doors small{display:block}.kf-rc103-world-doors small{opacity:.72;margin-top:.08rem}
.kf-rc103-primary-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;max-width:760px;margin-top:.65rem}
.kf-rc103-primary-actions a{display:flex;align-items:center;gap:.4rem;padding:.65rem .72rem;border-radius:14px;background:rgba(255,255,255,.58);border:1px solid rgba(60,50,40,.12);text-decoration:none;color:inherit;font-size:.9rem}
.kf-rc103-explore{display:flex;align-items:end;justify-content:space-between;gap:1rem;padding-top:1.3rem!important;padding-bottom:.75rem!important}
.kf-rc103-explore h2{margin:.15rem 0 0}.kf-rc103-explore nav{display:flex;flex-wrap:wrap;gap:.45rem}.kf-rc103-explore nav a{padding:.55rem .75rem;border-radius:999px;border:1px solid var(--line,#ddd4c7);text-decoration:none;color:inherit;background:#fff}
#animalWall.kf-home-photo-board{padding-top:.8rem!important;padding-bottom:1.4rem!important}
#animalWall .kf-heading p{max-width:680px}
/* Pulse defaults compact. Severe alerts still render in the scroll row. */
.kf-community-pulse{padding:1rem 0!important}
.kf-community-pulse-head{display:grid!important;grid-template-columns:1fr auto auto!important;gap:.8rem!important;align-items:center!important}
.kf-community-pulse-head h2{font-size:clamp(1.2rem,2.6vw,1.65rem)!important;margin:.1rem 0!important}
.kf-community-pulse-head>div:first-child>p:not(.kf-pulse-kicker){display:none}
.kf-community-pulse-grid{display:flex!important;overflow-x:auto!important;gap:.65rem!important;scroll-snap-type:x proximity;padding:.25rem 0 .45rem}
.kf-community-pulse-grid>*{flex:0 0 min(320px,82vw)!important;scroll-snap-align:start;min-height:0!important}
.kf-pulse-utility,.kf-official-alert{padding:.75rem!important}
.kf-pulse-utility p,.kf-official-alert p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:.25rem 0!important}
.kf-community-pulse-actions,.kf-community-pulse-note{display:none!important}
.kf-community-pulse.is-expanded .kf-community-pulse-actions{display:flex!important}.kf-community-pulse.is-expanded .kf-community-pulse-note{display:block!important}
.kf-pulse-expand{border:1px solid var(--line,#ddd4c7);background:#fff;border-radius:999px;padding:.48rem .72rem;cursor:pointer}

/* Animal Help tabs */
.kf-community-tabs{position:sticky;top:52px;z-index:32;display:flex;gap:.35rem;overflow-x:auto;background:rgba(251,247,239,.95);backdrop-filter:blur(12px);padding:.55rem .2rem;margin:.2rem 0 .8rem;border-bottom:1px solid rgba(60,50,40,.12)}
.kf-community-tabs button{white-space:nowrap;border:1px solid var(--line,#ddd4c7);background:#fff;border-radius:999px;padding:.58rem .9rem;font:inherit;cursor:pointer}
.kf-community-tabs button.active{background:#19241d;color:#fff;border-color:#19241d}
.kf-community-case-placeholder{padding:1rem;border:1px dashed var(--line,#ddd4c7);border-radius:16px;background:#fff;margin-bottom:1rem}
.kf-source-more{display:flex;justify-content:center;align-items:center;gap:.8rem;padding:1rem 0 0}.kf-source-more small{opacity:.7}

/* Marketplace search first */
.kf-marketplace-main{padding-top:1rem!important}
.kf-marketplace-hero{min-height:0!important;padding:1rem!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:1rem!important}
.kf-marketplace-hero h1{font-size:clamp(2rem,5vw,3.4rem)!important;margin:.15rem 0 .4rem!important}.kf-marketplace-hero p{max-width:720px!important;margin:0!important}
.kf-marketplace-section{padding:1rem 0!important}
.kf-marketplace-searchbar{display:grid;grid-template-columns:2fr 1.2fr .7fr .85fr;gap:.55rem;margin-bottom:.55rem}.kf-marketplace-searchbar label{display:grid;gap:.25rem;font-size:.82rem;font-weight:700}.kf-marketplace-searchbar input,.kf-marketplace-searchbar select{width:100%;min-height:44px;border:1px solid var(--line,#ddd4c7);border-radius:12px;padding:.6rem .7rem;background:#fff;font:inherit}
.kf-market-category-chips{display:flex;gap:.38rem;overflow-x:auto;padding:.1rem 0 .75rem}.kf-market-category-chips button{white-space:nowrap;border:1px solid var(--line,#ddd4c7);background:#fff;border-radius:999px;padding:.5rem .72rem;cursor:pointer}.kf-market-category-chips button.active{background:#19241d;color:#fff;border-color:#19241d}
.kf-market-results-head{display:flex;justify-content:space-between;align-items:end;gap:.8rem;margin:.35rem 0 .8rem}.kf-market-results-head h2{margin:.08rem 0}.kf-market-load-more{text-align:center;padding:1rem}.kf-marketplace-safety{padding:.75rem 0!important}.kf-marketplace-safety details{border:1px solid var(--line,#ddd4c7);border-radius:14px;background:#fff;padding:.7rem .85rem}.kf-marketplace-safety summary{cursor:pointer;font-weight:800}

/* Food Now compact status cards */
.kf-food-card{padding:1rem!important}.kf-food-card h3{margin:.35rem 0!important}.kf-food-next{margin:.4rem 0!important}.kf-food-details{margin-top:.7rem;border-top:1px solid rgba(60,50,40,.12);padding-top:.55rem}.kf-food-details summary{cursor:pointer;font-weight:750}.kf-food-details p,.kf-food-details small,.kf-food-details a{display:block;margin:.45rem 0}.kf-food-state.happening{background:#dff4e6!important;color:#184e2c!important}.kf-food-state.upcoming{background:#fff2c7!important;color:#684b00!important}.kf-food-state.ended{background:#ece9e4!important;color:#625b52!important}.kf-food-focus{outline:3px solid rgba(180,120,40,.38);outline-offset:3px}

/* Account grouped dashboard */
.kf-member-dashboard--grouped{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem!important}.kf-dashboard-world{display:grid;gap:.45rem;border:1px solid var(--line,#ddd4c7);border-radius:18px;padding:.85rem;background:#fff}.kf-dashboard-world>a{display:grid!important;grid-template-columns:auto 1fr!important;gap:.15rem .55rem!important}.kf-dashboard-world>a span{grid-row:1/3}.kf-dashboard-world>a small{grid-column:2}

@media(max-width:720px){
 .site-header .header-row{min-height:58px}.site-header .brand small{display:none}.desktop-nav{display:none!important}
 .kf-world-bar{top:0}.kf-world-bar-inner{justify-content:center;padding-inline:.55rem!important}.kf-world-switch{width:100%;display:grid!important;grid-template-columns:1fr 1fr}.kf-world-switch a{justify-content:center!important;text-align:center}
 .hk-hero{padding:.85rem 0!important}.kf-rc103-home-hero h1{font-size:2.25rem}.kf-rc103-home-hero .hk-deck{font-size:.98rem;margin-bottom:.7rem}
 .kf-rc103-world-doors{grid-template-columns:1fr 1fr}.kf-rc103-world-doors>a{padding:.62rem .7rem}.kf-rc103-world-doors small{font-size:.73rem}
 .kf-rc103-primary-actions{grid-template-columns:1fr 1fr}.kf-rc103-primary-actions a{min-height:44px}
 .kf-community-pulse-head{grid-template-columns:1fr auto!important}.kf-community-pulse-stamp{grid-column:1/-1;font-size:.76rem}.kf-community-pulse{padding:.7rem 0!important}
 .kf-rc103-explore{align-items:flex-start;flex-direction:column}.kf-rc103-explore nav{overflow-x:auto;flex-wrap:nowrap;width:100%}.kf-rc103-explore nav a{white-space:nowrap}
 .kf-community-tabs{top:44px;margin-inline:-.25rem;padding-inline:.25rem}
 .kf-marketplace-hero{align-items:flex-start!important;flex-direction:column!important}.kf-marketplace-searchbar{grid-template-columns:1fr 1fr}.kf-marketplace-searchbar label:first-child{grid-column:1/-1}
 .kf-member-dashboard--grouped{grid-template-columns:1fr}
}
@media(max-width:420px){
 .kf-rc103-home-hero h1{font-size:2rem}.kf-rc103-world-doors{grid-template-columns:1fr 1fr}.kf-rc103-world-doors>a>span{display:none}.kf-rc103-world-doors>a{min-height:58px}.kf-rc103-primary-actions a{font-size:.82rem;padding:.55rem}.kf-community-pulse-grid>*{flex-basis:78vw!important}.kf-marketplace-searchbar{grid-template-columns:1fr}.kf-marketplace-searchbar label:first-child{grid-column:auto}
}

@media(max-width:720px){#kfAdoptRoster .kf-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.5rem!important}#kfAdoptRoster .kf-record-card{padding:.7rem!important}#kfAdoptRoster .kf-record-card h3{font-size:.95rem!important;margin:.15rem 0!important}#kfAdoptRoster .kf-record-card p{font-size:.78rem!important;margin:.12rem 0!important}#kfAdoptRoster .kf-record-source{font-size:.66rem!important}#kfAdoptRoster .kf-record-card a{font-size:.78rem!important}}
/* KindraCares + clarity pass */
.kf-world-switch{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));max-width:620px;width:100%}
.kf-world-switch a{justify-content:center!important;text-align:center}
.kf-care-door{background:#eef3ef!important}.kf-care-door[aria-current="page"]{background:#19241d!important;color:#fff!important}
.kf-home-main-doors{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px}.kf-home-main-doors .kf-home-care{border-color:rgba(21,76,61,.38);background:#eef3ef}.kf-home-orientation{align-items:flex-start}.kf-home-orientation>div{max-width:720px}.kf-home-orientation>div>p:last-child{line-height:1.55;margin:.45rem 0 0;color:#565d58}.brand-mark{object-fit:contain}
@media(max-width:720px){.kf-world-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important}.kf-world-switch a{padding:.42rem .35rem!important;font-size:.82rem}.kf-home-main-doors{grid-template-columns:1fr}.kf-home-main-doors>a{min-height:64px}.kf-home-orientation{display:grid!important}}
.kf-guided-entry{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:1rem;align-items:start;padding-top:1rem!important;padding-bottom:1rem!important}.kf-guided-entry h2{margin:.15rem 0 .4rem}.kf-guided-entry>div>p:last-child{line-height:1.5;color:#59605b}.kf-guided-entry nav{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.kf-guided-entry nav a{display:grid;gap:.18rem;border:1px solid var(--line,#ddd4c7);border-radius:16px;background:#fff;padding:.75rem;text-decoration:none;color:inherit}.kf-guided-entry nav small{opacity:.7;line-height:1.35}.kf-guided-community nav a:first-child,.kf-guided-animal nav a:last-child{background:#eef3ef;border-color:rgba(21,76,61,.25)}.kf-member-dashboard--grouped{grid-template-columns:repeat(3,minmax(0,1fr))!important}.kf-dashboard-care{background:#eef3ef!important}
@media(max-width:820px){.kf-guided-entry{grid-template-columns:1fr}.kf-member-dashboard--grouped{grid-template-columns:1fr!important}}
@media(max-width:520px){.kf-guided-entry nav{grid-template-columns:1fr}}
