.adopt-content { overflow:clip; }
.adopt-content .section-heading { font-size:64px; line-height:1.12; }
.adopt-content .section-heading em { color:var(--cats-rust); }
.adopt-content .section-copy { gap:24px; }
.adopt-intro .split-layout { grid-template-columns:624fr 568fr; }
.adopt-intro .section-heading { font-size:72px; line-height:80px; }
.adopt-intro .section-description { max-width:580px; }
.adopt-intro__image { height:528px; overflow:hidden; border-radius:48px; }
.adopt-intro__image img { display:block; width:100%; height:100%; object-fit:cover; object-position:center top; }
.adopt-catalog { background:var(--cats-teal); color:var(--cats-cream); scroll-margin-top:110px; }
.adopt-catalog .eyebrow,.adopt-catalog .section-heading em { color:var(--cats-peach); }
.adopt-filters { display:flex; gap:16px; flex-wrap:wrap; margin-block:24px; }
.adopt-filters .cats-button { min-height:62px; padding:18px 24px; }
.adopt-filters [aria-pressed=true],.adopt-utilities [aria-pressed=true],.adopt-pagination [aria-current=page] { --button-bg:var(--cats-peach); --button-color:var(--cats-teal); }
.adopt-utilities { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:32px; font-size:16px; font-weight:700; }
.adopt-utilities__actions { display:flex; gap:16px; }
.adopt-message { font-size:16px; margin-block:16px; }
.adopt-message:empty { display:none; }
.adopt-grid { align-items:stretch; }
.adopt-grid .cat-card { min-height:560px; }
.adopt-grid .cat-card > [data-cat-open] { margin-top:auto; width:100%; min-height:52px; padding:14px 24px; }
.adopt-grid .cat-card:hover > [data-cat-open],.adopt-grid .cat-card:has(:focus-visible) > [data-cat-open] { --button-bg:var(--cats-teal); --button-color:var(--cats-cream); --button-border:transparent; }
.adopt-grid .cat-card__photo { border-radius:48px; }
.adopt-grid .cat-favorite { top:28px; right:16px; }
.cat-favorite:hover { background:var(--cats-peach); }
.adopt-pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:16px; margin-top:32px; }
.adopt-pagination:empty { margin:0; }
.adopt-pagination .cats-button { min-width:60px; min-height:62px; padding:18px; }
.adopt-story { background:var(--cats-sage); }
.adopt-story .split-layout { grid-template-columns:574fr 596fr; gap:70px; }
.adopt-story .story-image { height:520px; }
.adopt-story .story-image img { object-position:56% center; }
.adopt-content .home-video-cta .section-heading em { color:inherit; }
.adopt-content .adopt-profile-dialog { margin:auto; width:min(1120px,calc(100% - 48px)); padding:32px; }
.adopt-profile-dialog .cat-profile { display:grid; grid-template-columns:432fr 592fr; gap:32px; align-items:center; }
.cat-profile { color:var(--cats-teal); }
.adopt-content .cat-profile .eyebrow { color:var(--cats-rust); }
.cat-profile__photo { height:656px; border-radius:48px; overflow:hidden; }
.cat-profile__photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center top; }
.cat-profile__copy { display:flex; flex-direction:column; gap:24px; min-width:0; }
.cat-profile__heading { display:flex; flex-direction:column; gap:12px; }
.cat-dialog .cat-profile h2 { margin:0; font-size:48px; line-height:58px; }
.cat-profile .cat-tags { display:flex; flex-wrap:wrap; gap:8px; }
.cat-profile__story { font-size:18px; line-height:28px; }
.cat-profile .cat-profile__story h3 { font:700 20px/28px var(--cats-body); margin-bottom:12px; }
.cat-profile__story p + p { margin-top:12px; }
.cat-profile__care { display:flex; gap:24px; padding:16px 20px; background:var(--cats-sage); border-radius:24px; align-items:center; font-size:16px; line-height:24px; }
.cat-profile__care > div { min-width:0; }
.cat-profile__care > div:first-child { flex:0 0 auto; }
.cat-profile__care strong { font:600 32px/40px var(--cats-heading); }
.cat-profile .cat-profile__care h3 { font:700 16px/24px var(--cats-body); margin-bottom:4px; }
.cat-profile__actions { display:flex; gap:16px; flex-wrap:wrap; }
.cat-profile__actions > * { flex:1; }
.cat-dialog .cat-profile .cats-button { margin:0; min-height:56px; padding:16px 24px; }
.cat-profile__questions { display:inline-block; width:fit-content; max-width:100%; align-self:flex-start; justify-self:start; font-size:16px; text-decoration:underline; text-decoration-thickness:1px; }
.adopt-content .adopt-compare { margin:auto; width:min(1120px,calc(100% - 48px)); padding-top:52px; }
.adopt-compare > h2 { margin:0 0 32px; }
.adopt-compare .cat-profile { display:grid; grid-template-columns:300px minmax(0,1fr); gap:32px; padding-block:32px; border-top:1px solid var(--cats-peach); }
.adopt-compare .cat-profile__photo { height:400px; }
.adopt-profile-dialog::backdrop,.adopt-compare::backdrop { background:rgb(15 35 31 / 78%); }
body:has(.adopt-profile-dialog[open],.adopt-compare[open]) { overflow:hidden; }
@media(min-width:701px) and (max-width:1100px) {
 .adopt-content .section-heading { font-size:48px; }
 .adopt-intro .section-heading { font-size:56px; line-height:64px; }
 .adopt-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .adopt-profile-dialog .cat-profile,.adopt-compare .cat-profile { grid-template-columns:280px minmax(0,1fr); }
 .cat-profile__actions { flex-direction:column; }
}
@media(max-width:700px) {
 .adopt-content .section-heading { font-size:36px; line-height:44px; }
 .adopt-content .section-copy { gap:24px; }
 .adopt-content .section-description { font-size:16px; line-height:24px; }
 .adopt-content .eyebrow { font-size:16px; line-height:24px; }
 .adopt-intro .split-layout,.adopt-story .split-layout { grid-template-columns:1fr; gap:24px; }
 .adopt-intro .section-heading { font-size:48px; line-height:54px; }
 .adopt-intro__image { height:320px; border-radius:36px; }
 .adopt-content .cats-button { min-height:48px; padding:12px 16px; }
 .adopt-intro .section-actions { width:100%; }
 .adopt-intro .cats-button,.adopt-story .cats-button { width:100%; }
 .adopt-content .home-statement { font-size:24px; line-height:32px; }
 .adopt-catalog .section-copy { gap:16px; }
 .adopt-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-block:24px 16px; }
 .adopt-filters .cats-button { min-height:44px; padding:10px 12px; }
 .adopt-utilities { display:flex; flex-direction:column; align-items:stretch; gap:16px; margin-bottom:24px; }
 .adopt-utilities__actions > * { flex:1; }
 .adopt-grid { display:grid; grid-template-columns:1fr; gap:16px; }
 .adopt-grid .cat-card,.adopt-grid .cat-card:nth-child(n+5) { display:grid; grid-template-columns:112px minmax(0,1fr); grid-template-rows:auto auto auto auto; column-gap:16px; row-gap:12px; padding:16px; min-height:296px; border-radius:24px; }
 .adopt-grid .cat-card__photo { grid-column:1; grid-row:1/3; height:144px; min-height:0; margin:0; border-radius:20px; }
 .adopt-grid .cat-card h3 { grid-column:2; grid-row:1; align-self:end; padding-right:24px; font-size:24px; line-height:32px; }
 .adopt-grid .cat-tags { grid-column:2; grid-row:2; display:flex; flex-wrap:wrap; align-self:start; align-content:start; gap:6px; }
 .adopt-grid .cat-tag { font-size:14px; line-height:20px; padding:6px 10px; }
 .adopt-grid .cat-tag--breed { flex:0 0 auto; max-width:100%; }
 .adopt-grid .cat-card__description { grid-column:1/-1; grid-row:3; font-size:16px; line-height:24px; min-height:0; }
 .adopt-grid .cat-card > [data-cat-open] { grid-column:1/-1; grid-row:4; align-self:end; min-height:48px; padding:12px 16px; }
 .adopt-grid .cat-favorite { left:auto; top:12px; right:12px; }
 .adopt-pagination { gap:8px; margin-top:24px; }
 .adopt-pagination .cats-button { min-height:44px; min-width:40px; padding:10px 12px; }
 .adopt-story .story-image { height:342px; border-radius:36px; }
 .adopt-story .section-copy { gap:16px; }
 .adopt-content .home-video-cta .cats-button { width:auto; min-width:120px; }
 .adopt-content .adopt-profile-dialog,.adopt-content .adopt-compare { width:calc(100% - 32px); max-height:calc(100dvh - 32px); padding:20px; }
 .adopt-profile-dialog .cat-profile,.adopt-compare .cat-profile { display:flex; flex-direction:column; gap:20px; }
 .cat-profile__photo,.adopt-compare .cat-profile__photo { height:300px; width:100%; border-radius:28px; }
 .cat-profile__copy { gap:20px; width:100%; }
 .cat-dialog .cat-profile h2 { font-size:36px; line-height:44px; }
 .cat-profile__heading .eyebrow { font-size:12px; }
 .cat-profile__story { font-size:16px; line-height:24px; }
 .cat-profile__care { flex-direction:column; align-items:stretch; gap:16px; }
 .cat-profile__actions { flex-direction:column; gap:12px; }
 .cat-dialog .cat-profile .cats-button { width:100%; min-height:50px; padding:13px 20px; }
}
@media(max-width:359px) {
 .adopt-grid .cat-card { grid-template-columns:90px minmax(0,1fr); gap:12px; }
 .adopt-grid .cat-tag { font-size:12px; padding:4px 8px; }
 .adopt-filters .cats-button { font-size:14px; padding-inline:8px; }
 .adopt-grid .cat-card h3 { font-size:22px; }
}


/* Profile navigation follows the complete current filtered result set. */
.adopt-content .cat-viewer { width:min(1240px,calc(100% - 48px)); padding:32px 64px 52px; }
.cat-viewer[open] { display:flex; flex-direction:column; overflow:hidden; height:min(820px,calc(100dvh - 48px)); }
.cat-viewer [data-profile-content] { flex:1; min-height:0; overflow:auto; padding-right:4px; scrollbar-width:thin; scrollbar-color:var(--cats-rust) var(--cats-sage); }
.cat-viewer [data-profile-content]:empty { min-height:120px; }
.cat-viewer[aria-busy=true] [data-profile-content] { opacity:.5; }
.cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step] { position:absolute; top:calc(50% - 24px); z-index:3; width:44px; min-height:48px; padding:0; font-size:32px; }
.cat-viewer-navigation > [data-profile-step="-1"] { left:10px; }
.cat-viewer-navigation > [data-profile-step="1"] { right:10px; }

.cat-viewer .cat-profile { min-width:0; }
/* Four comparison columns; additional cats remain in one horizontal row. */
.adopt-content .adopt-compare { width:min(1760px,calc(100% - 48px)); max-width:none; height:min(900px,calc(100dvh - 48px)); max-height:calc(100dvh - 48px); padding:32px; overflow:hidden; }
.adopt-content .adopt-compare[open] { display:flex; flex-direction:column; }
.adopt-compare > h2 { flex:none; margin:0 48px 24px 0; }
.adopt-compare [data-compare-content] { display:flex; align-items:stretch; gap:20px; flex:1; min-height:0; overflow:auto; padding:0 4px 16px; scrollbar-width:thin; scrollbar-color:var(--cats-rust) var(--cats-sage); overscroll-behavior:contain; }
.adopt-compare [data-compare-content]::-webkit-scrollbar { height:6px; width:6px; }
.adopt-compare [data-compare-content]::-webkit-scrollbar-thumb { background:var(--cats-rust); border-radius:8px; }
.adopt-compare [data-compare-content]::-webkit-scrollbar-track { background:var(--cats-sage); }
.adopt-compare .cat-profile { display:flex; flex-direction:column; flex:0 0 calc((100% - 60px) / 4); min-width:250px; gap:20px; border:0; padding:0 0 12px; align-self:flex-start; }
.adopt-compare .cat-profile__photo { width:100%; height:300px; flex:none; }
.adopt-compare .cat-profile__copy { gap:16px; }
.adopt-compare .cat-profile h2 { font-size:32px; line-height:40px; }
.adopt-compare .cat-profile .eyebrow { font-size:12px; }
.adopt-compare .cat-profile .cat-tag { font-size:12px; padding:6px 8px; }
.adopt-compare .cat-profile__story { font-size:16px; line-height:24px; }
.adopt-compare .cat-profile__actions { flex-direction:column; gap:12px; }
.adopt-compare .cat-profile .cats-button { min-height:48px; padding:12px 16px; white-space:normal; }
.adopt-compare .cat-profile__care { padding:12px; }
.adopt-compare .cat-profile__questions { font-size:14px; }
.adopt-content .cat-favorite:is(:hover,:focus-visible) { background:var(--cats-peach); color:var(--cats-teal); }
.adopt-grid .cat-card > .cat-card__photo { margin-top:0; padding:0; min-height:0; }

@media(max-width:1100px) { .adopt-compare .cat-profile { flex-basis:calc((100% - 40px)/3); } }
@media(max-width:700px) {
 .adopt-content .cat-viewer { width:calc(100% - 24px); padding:56px 20px 24px; }
 .cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step] { top:8px; width:40px; min-height:40px; }
 .cat-viewer-navigation > [data-profile-step="-1"] { left:12px; }
 .cat-viewer-navigation > [data-profile-step="1"] { left:62px; right:auto; }

 .adopt-content .adopt-compare { width:calc(100% - 24px); height:calc(100dvh - 24px); max-height:calc(100dvh - 24px); padding:24px 16px 12px; }
 .adopt-compare > h2 { font-size:32px; margin-bottom:16px; }
 .adopt-compare .cat-profile { flex:0 0 calc(100% - 16px); min-width:240px; width:auto; }
 .adopt-compare .cat-profile__photo { height:280px; }
 .adopt-grid .cat-card > .cat-card__photo { grid-column:1; grid-row:1/3; min-height:0; padding:0; margin:0; }
}




/* The modal shell holds navigation outside its cream content panel. */
.cat-dialog.cat-viewer { background:transparent; padding:0 60px; width:min(1360px,calc(100% - 24px)); max-width:none; height:auto; max-height:min(820px,calc(100dvh - 48px)); overflow:visible; border-radius:0; }
.cat-viewer__panel { position:relative; display:flex; flex-direction:column; flex:0 1 auto; min-height:0; max-height:min(820px,calc(100dvh - 48px)); width:100%; padding:32px; background:var(--cats-cream); border-radius:24px; overflow:hidden; }
.cat-viewer__panel [data-profile-content] { min-width:0; }
.cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step] { top:calc(50% - 24px); width:44px; min-height:48px; }
.cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step="-1"] { left:4px; }
.cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step="1"] { right:4px; left:auto; }
@media(max-width:700px) {
 .cat-dialog.cat-viewer { width:calc(100% - 24px); padding:0; height:auto; max-height:calc(100dvh - 24px); gap:10px; }
 .cat-viewer__panel { padding:52px 20px 20px; max-height:calc(100dvh - 78px); }
 .cat-dialog.cat-viewer .cat-viewer-navigation { position:static; display:flex; justify-content:center; gap:20px; flex:0 0 44px; }
 .cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step] { position:relative; inset:auto; width:44px; min-height:44px; margin:0; isolation:isolate; }
}



/* Equal circular controls with centered vector chevrons. */
.cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step] { width:48px; height:48px; min-height:48px; aspect-ratio:1; padding:0; margin:0; }
.cat-viewer-navigation .cats-button__label { gap:0; line-height:1; }
.cat-viewer-navigation svg { display:block; flex:none; }
@media(max-width:700px) { .cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step] { width:44px; height:44px; min-height:44px; } }

/* Center the shared top-layer dialogs in the viewport on every page. */
.cat-dialog.cat-viewer,.cat-dialog.adopt-compare { position:fixed; inset:0; margin:auto; }
.cat-dialog.cat-viewer { height:fit-content; }
/* Shared grid rows align every comparison column to the tallest content. */
.adopt-compare [data-compare-content] { display:grid; grid-auto-flow:column; grid-auto-columns:max(250px,calc((100% - 60px)/4)); grid-template-rows:332px repeat(5,auto); align-content:start; gap:20px; }
.adopt-compare .cat-profile { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:subgrid; grid-row:1 / span 6; gap:20px; min-width:0; width:auto; padding:0; align-self:stretch; }
.adopt-compare .cat-profile__copy { display:contents; }
.adopt-compare .cat-profile__photo.cat-gallery { grid-row:1; height:332px; width:100%; }
.adopt-compare .cat-profile__heading { grid-row:2; }
.adopt-compare .cat-profile__story { grid-row:3; }
.adopt-compare .cat-profile__care { grid-row:4; }
.adopt-compare .cat-profile__actions { grid-row:5; align-self:start; }
.adopt-compare .cat-profile__questions { grid-row:6; align-self:start; }
@media(max-width:1100px) {
 .adopt-compare [data-compare-content] { grid-auto-columns:max(250px,calc((100% - 40px)/3)); }
}
@media(max-width:700px) {
 .adopt-compare [data-compare-content] { grid-auto-columns:max(240px,calc(100% - 16px)); grid-template-rows:312px repeat(5,auto); }
 .adopt-compare .cat-profile__photo.cat-gallery { height:312px; }
}

/* Keep thin scroll tracks near the panel edges, clear of rounded corners. */
.cat-viewer__panel [data-profile-content] { margin-right:-24px; padding-right:28px; }
.adopt-compare [data-compare-content] { margin-right:-24px; margin-bottom:-24px; padding-right:28px; padding-bottom:40px; }
.cat-viewer [data-profile-content],.adopt-compare [data-compare-content] { scrollbar-width:thin; scrollbar-color:var(--cats-rust) transparent; }
@supports selector(::-webkit-scrollbar) {
 .cat-viewer [data-profile-content],.adopt-compare [data-compare-content] { scrollbar-width:auto; scrollbar-color:auto; }
 .cat-viewer [data-profile-content]::-webkit-scrollbar,.adopt-compare [data-compare-content]::-webkit-scrollbar { width:3px; height:3px; }
 .cat-viewer [data-profile-content]::-webkit-scrollbar-thumb,.adopt-compare [data-compare-content]::-webkit-scrollbar-thumb { background:var(--cats-rust); border-radius:6px; }
 .cat-viewer [data-profile-content]::-webkit-scrollbar-track,.adopt-compare [data-compare-content]::-webkit-scrollbar-track { background:transparent; margin:12px; }
 .cat-viewer [data-profile-content]::-webkit-scrollbar-button,.adopt-compare [data-compare-content]::-webkit-scrollbar-button { display:none!important; width:0!important; height:0!important; }
 .cat-viewer [data-profile-content]::-webkit-scrollbar-corner,.adopt-compare [data-compare-content]::-webkit-scrollbar-corner { background:transparent; }
}
.adopt-pagination .cats-button,.adopt-pagination__gap { min-width:52px; min-height:52px; padding:14px 18px; }
.adopt-pagination__gap { display:inline-flex; align-items:center; justify-content:center; border-radius:100px; background:var(--cats-cream); color:var(--cats-teal); font-size:16px; line-height:24px; }
@media(max-width:700px) {
 .cat-viewer__panel [data-profile-content] { margin-right:-14px; padding-right:18px; }
 .adopt-compare [data-compare-content] { margin-right:-10px; margin-bottom:-6px; padding-right:14px; padding-bottom:22px; }
 .adopt-pagination .cats-button,.adopt-pagination__gap { min-width:44px; min-height:44px; padding:10px 12px; }
}

/* The comparison viewport ends after a whole column; its scrollbar stays outside. */
.adopt-content .adopt-compare { padding-right:8px; }
.adopt-compare [data-compare-content] { margin-right:0; padding-right:4px; scroll-snap-type:x proximity; }
.adopt-compare .cat-profile { scroll-snap-align:start; }
.cat-dialog .dialog-close { display:flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; }
.cat-dialog .dialog-close svg { display:block; pointer-events:none; }
@supports selector(::-webkit-scrollbar) {
 .cat-viewer [data-profile-content]::-webkit-scrollbar,.adopt-compare [data-compare-content]::-webkit-scrollbar { width:7px; height:7px; }
 .cat-viewer [data-profile-content]::-webkit-scrollbar-track,.adopt-compare [data-compare-content]::-webkit-scrollbar-track { background:rgb(220 233 225 / 55%); border-radius:8px; }
 .cat-viewer [data-profile-content]::-webkit-scrollbar-thumb,.adopt-compare [data-compare-content]::-webkit-scrollbar-thumb { border:2px solid transparent; background-clip:padding-box; }
 .cat-viewer [data-profile-content]::-webkit-scrollbar-thumb:hover,.adopt-compare [data-compare-content]::-webkit-scrollbar-thumb:hover { border-width:1px; }
}
@media(max-width:700px) { .adopt-content .adopt-compare { padding-right:6px; } }

/* Compact profile: scrollable photograph/details and persistent actions, as in Figma. */
.cat-viewer__footer[hidden] { display:none; }
@media(max-width:900px) {
 .cat-dialog.cat-viewer { width:min(480px,calc(100% - 48px)); padding:0; height:fit-content; max-height:calc(100dvh - 24px); gap:12px; }
 .cat-dialog.cat-viewer .cat-viewer-navigation { position:static; display:flex; justify-content:center; gap:20px; flex:0 0 44px; }
 .cat-dialog.cat-viewer .cat-viewer__panel { flex:none; height:min(780px,calc(100dvh - 92px)); max-height:none; padding:0; border-radius:20px; overflow:visible; }
 .cat-viewer__panel [data-profile-content] { --profile-scroll-gap:3px; --profile-scrollbar-gutter:0px; flex:1; min-height:0; width:calc(100% + var(--profile-scroll-gap) + var(--profile-scrollbar-gutter)); margin:0; padding:0 var(--profile-scroll-gap) 0 0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; border-radius:20px 0 0 0; }
 .cat-viewer__panel [data-profile-content]::-webkit-scrollbar { width:6px; }
 .cat-viewer__panel [data-profile-content]::-webkit-scrollbar-track { margin-block:20px; }
 .cat-viewer__footer { border-radius:0 0 20px 20px; }
 .cat-viewer .cat-profile { display:flex; flex-direction:column; gap:0; width:100%; }
 .cat-viewer .cat-profile__photo.cat-gallery { flex:none; width:100%; height:232px; margin:0; }
 .cat-viewer .cat-gallery__viewport { border-radius:20px 20px 36px 36px; }
 .cat-viewer .cat-profile__photo.cat-gallery:has(.cat-gallery__pagination[aria-hidden=true]) { height:200px; }
 .cat-viewer .cat-gallery__pagination[aria-hidden=true] { display:none; }
 .cat-viewer .cat-profile__copy { padding:20px; gap:20px; }
 .cat-viewer .cat-profile__heading { gap:8px; }
 .cat-viewer .cat-profile h2 { font-size:32px; line-height:40px; }
 .cat-viewer .cat-profile__heading .eyebrow { font-size:14px; line-height:20px; }
 .cat-viewer .cat-profile .cat-tag { font-size:14px; line-height:21px; padding:6px 12px; max-width:100%; white-space:normal; }
 .cat-viewer .cat-profile__story h3 { font-size:18px; line-height:24px; margin-bottom:8px; }
 .cat-viewer .cat-profile__care { padding:16px; border-radius:20px; }
 .cat-viewer .cat-profile__care p { font-size:14px; line-height:20px; }
 .cat-viewer__footer { flex:none; display:flex; flex-direction:column; align-items:stretch; gap:12px; padding:16px; background:var(--cats-cream); }
 .cat-viewer__footer .cat-profile__actions { display:flex; flex-direction:column; gap:12px; }
 .cat-viewer__footer .cat-profile__actions > .cats-button { flex:none; width:100%; min-height:50px; margin:0; padding:13px 16px; font-size:16px; }
 .cat-viewer__footer .cat-profile__questions { max-width:100%; align-self:center; font-size:16px; line-height:24px; }
 .cat-viewer .dialog-close { top:12px; right:12px; z-index:5; width:44px; height:44px; background:var(--cats-cream); border-radius:50%; }
 .cat-dialog.cat-viewer .cat-viewer-navigation > [data-profile-step] { position:relative; inset:auto; flex:none; overflow:hidden; }
 .cat-viewer-navigation > .cats-button::before { inset:0; width:100%; height:100%; pointer-events:none; }
 .adopt-grid .cat-card,.adopt-grid .cat-card:nth-child(n+5) { min-height:0; border-radius:20px; }
 .adopt-grid .cat-card__photo { border-radius:36px; }
 .adopt-grid .cat-card h3 { overflow-wrap:anywhere; }
 .adopt-grid .cat-tags { min-width:0; }
 .adopt-grid .cat-tag { width:fit-content; min-width:0; max-width:100%; white-space:normal; }
 .adopt-compare [data-compare-content] { grid-auto-columns:100%; grid-template-rows:264px repeat(5,auto); scroll-snap-type:x mandatory; }
 .adopt-compare .cat-profile__photo.cat-gallery { height:264px; }
}
@media(max-width:359px) { .cat-viewer__footer .cat-profile__questions { font-size:14px; } }
@media(max-height:540px) and (max-width:700px) {
 .cat-dialog.cat-viewer { width:calc(100% - 24px); gap:8px; }
 .cat-dialog.cat-viewer .cat-viewer__panel { height:calc(100dvh - 76px); }
 .cat-viewer__footer { padding:8px 16px; gap:6px; }
 .cat-viewer__footer .cat-profile__actions { flex-direction:row; gap:8px; }
 .cat-viewer__footer .cat-profile__actions > .cats-button { flex:1; width:auto; min-height:44px; padding:8px; font-size:14px; }
}

