/* Categories are entry points; the category page contains only its catalogue. */
#categoryList .kupio-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
#categoryList .kupio-category-tile{display:flex;position:relative;min-width:0;min-height:92px;align-items:center;gap:12px;padding:12px;background:var(--ui-surface,#fff);color:var(--ink,#222);border:1px solid var(--line,#e4e1e9);border-radius:12px;text-decoration:none;transition:border-color .15s,background .15s}
#categoryList .kupio-category-tile:hover{border-color:#5a388a;background:var(--ui-soft,#f8f6fa)}
#categoryList .kupio-category-tile:focus-visible,.category-page-back a:focus-visible{outline:3px solid #5a388a;outline-offset:3px}
#categoryList .kupio-category-tile img,#categoryList .kupio-category-symbol{width:48px;height:48px;flex:0 0 48px;object-fit:cover;border-radius:8px}
#categoryList .kupio-category-symbol{display:grid;place-items:center;background:var(--ui-soft,#f6f4f9);font-size:25px}
#categoryList .kupio-category-title{font-size:14px;line-height:1.35;font-weight:700;overflow-wrap:normal}
#categoryList .kupio-category-arrow{margin-left:auto;color:var(--accent,#563087);font-size:18px}
.category-page-back{display:none}
body.category-page:not(.app-subview) .category-page-back{display:flex;align-items:center;gap:8px;margin:4px 0 20px;color:var(--muted,#62646a);font-size:14px}
.category-page-back a{color:var(--accent,#563087);font-weight:700;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
body.category-page:not(.app-subview) :is(.ui4-home-intro,.home118-how,.category-section,.home-demand,.ui4-home-help){display:none!important}
body.category-page:not(.app-subview) .results-section{padding-top:24px!important}
body.category-page:not(.app-subview) .result-heading{display:flex}
@media(max-width:1100px){#categoryList .kupio-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){#categoryList .kupio-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#categoryList .kupio-category-tile{min-height:76px;padding:10px;gap:9px}#categoryList .kupio-category-tile img,#categoryList .kupio-category-symbol{width:36px;height:36px;flex-basis:36px}#categoryList .kupio-category-title{font-size:14px}#categoryList .kupio-category-arrow{display:none}.category-page-back{flex-wrap:wrap}body.category-page:not(.app-subview) .results-section{padding-top:16px!important}}
@media(prefers-reduced-motion:reduce){#categoryList .kupio-category-tile{transition:none}}
/* Each category has an editorial introduction and real subcategory shortcuts. */
#categoryLanding{display:none}
body.category-page:not(.app-subview) #categoryLanding{display:block}
.category-hero{display:grid;grid-template-columns:minmax(0,1fr) 265px;min-height:248px;gap:32px;align-items:center;padding:28px 32px;border:1px solid #e5e0ec;border-radius:14px;background:#f6f4f9;color:#26232c;overflow:hidden}
.category-hero-copy{min-width:0;max-width:680px}
.category-hero-kicker{font-size:12px;letter-spacing:.1em;font-weight:750;color:#5a388a}
.category-hero h1{font-size:clamp(28px,3vw,38px);line-height:1.12;letter-spacing:-.035em;margin:10px 0 10px;color:#26232c}
.category-hero-headline{font-weight:700;font-size:18px;line-height:1.35;margin:0 0 4px}
.category-hero-description{font-size:15px;line-height:1.5;margin:0;color:#5c5862}
.category-hero-image{width:100%;max-width:254px;aspect-ratio:1;object-fit:cover;border-radius:10px;justify-self:end}
.category-hero-search{display:flex;gap:8px;margin-top:20px;max-width:580px}
.category-hero-search input{flex:1;min-width:0;height:48px;border:1px solid #beb4cc;border-radius:8px;background:white;color:#26232c;padding:0 14px;font-size:16px}
.category-hero-search .btn{min-height:48px;padding-inline:22px}
.category-quick{margin:28px 0 32px}
.category-quick-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:14px}
.category-quick h2{font-size:21px;line-height:1.25;margin:0 0 4px;color:var(--ink)}
.category-quick p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
.category-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.category-shortcut{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-height:68px;padding:14px 16px;border:1px solid var(--line,#e4e0e9);border-radius:10px;background:var(--ui-surface,#fff);color:var(--ink,#25232b);font-weight:700;font-size:15px;line-height:1.35;cursor:pointer}
.category-shortcut span:first-child{overflow-wrap:anywhere}.category-shortcut span:last-child{color:var(--accent,#563087);font-size:19px;flex:none}.category-shortcut:hover,.category-shortcut.is-selected{border-color:#5a388a;background:var(--ui-soft,#f8f6fa)}
.category-shortcut:focus-visible,.category-hero-search input:focus-visible,.category-more-sections summary:focus-visible{outline:3px solid #5a388a;outline-offset:3px}
.category-more-sections{margin-top:10px}.category-more-sections summary{width:fit-content;cursor:pointer;color:var(--accent,#563087);font-size:14px;font-weight:700;min-height:44px;display:flex;align-items:center;gap:8px}.category-more-sections .category-shortcut-grid{margin-top:4px}
body.category-page:not(.app-subview) .results-section>.result-heading{margin-top:8px}
@media(max-width:760px){.category-hero{grid-template-columns:minmax(0,1fr) 104px;gap:14px;padding:18px;min-height:0;align-items:start}.category-hero h1{font-size:26px;margin:8px 0}.category-hero-headline{font-size:16px}.category-hero-description{font-size:14px}.category-hero-image{width:104px;aspect-ratio:1;align-self:start}.category-hero-search{grid-column:1 / -1;margin-top:14px}.category-hero-copy{display:contents}.category-hero-kicker,.category-hero h1,.category-hero-headline,.category-hero-description{grid-column:1}.category-hero{row-gap:0}.category-hero-image{grid-column:2;grid-row:1 / 5}.category-hero-search{grid-row:5}.category-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-shortcut{padding:12px;min-height:64px;font-size:14px}.category-quick{margin:24px 0}.category-quick-head{align-items:start;flex-direction:column;gap:8px}}
@media(max-width:350px){.category-hero{grid-template-columns:minmax(0,1fr) 78px}.category-hero-image{width:78px}.category-hero h1{font-size:23px}}
@media(prefers-color-scheme:dark){.category-hero{background:#292332;border-color:#51465f;color:#f3f1f6}.category-hero h1{color:#f3f1f6}.category-hero-kicker{color:#d8d1e2}.category-hero-description{color:#d0c9d4}.category-hero-search input{background:#202020;color:#fff;border-color:#91859e}}
/* Keep the search label accessible without taking space in the layout. */
.category-hero-search .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.category-hero-image{height:auto}
/* Mobile: keep the category identity and shortcuts compact so listings appear immediately. */
@media(max-width:760px){
 body.category-page:not(.app-subview) .results-section{padding-top:4px!important}
 body.category-page:not(.app-subview) .category-page-back{margin:0 0 6px;font-size:13px}
 .category-hero{grid-template-columns:minmax(0,1fr) 64px;column-gap:12px;row-gap:0;padding:14px;align-items:center}
 .category-hero-kicker,.category-hero-description{display:none}
 .category-hero h1{grid-row:1;margin:0 0 3px;font-size:22px;line-height:1.18;overflow-wrap:anywhere}
 .category-hero-headline{grid-row:2;font-size:14px;line-height:1.3;margin:0}
 .category-hero-image{grid-row:1 / 3;width:64px;height:64px;align-self:center}
 .category-hero-search{grid-row:3;margin-top:12px;width:100%}
 .category-hero-search input{height:44px}
 .category-hero-search .btn{min-height:44px;padding-inline:16px}
 .category-quick{position:relative;margin:16px 0 12px}
 .category-quick-head{min-height:44px;margin:0;padding-right:118px;justify-content:center}
 .category-quick h2{font-size:17px;margin:0}
 .category-quick p{display:none}
 .category-quick-head .category-clear-sub{min-height:44px;text-align:left}
 .category-quick > .category-shortcut-grid{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 0 4px}
 .category-quick > .category-shortcut-grid::-webkit-scrollbar{display:none}
 .category-quick > .category-shortcut-grid .category-shortcut{flex:0 0 auto;max-width:75%;min-height:44px;padding:8px 12px;font-size:14px;white-space:normal}
 .category-quick > .category-shortcut-grid .category-shortcut span:last-child{display:none}
 .category-more-sections{margin:0}
 .category-more-sections summary{position:absolute;right:0;top:0;min-height:44px;white-space:nowrap}
 .category-more-sections .category-shortcut-grid{margin-top:8px}
 body.category-page:not(.app-subview) .results-section>.result-heading{margin-top:0}
}
@media(max-width:350px){.category-hero{grid-template-columns:minmax(0,1fr) 56px}.category-hero-image{width:56px;height:56px}.category-hero h1{font-size:20px}}

.category-shortcut.category-mobile-only{display:none}
@media(max-width:760px){.category-shortcut.category-mobile-only{display:flex}}
@media(max-width:760px){.category-quick:has(.category-more-sections[open]) > .category-shortcut-grid{display:none}}
/* Compact category entry points on the mobile home page. */
.home-category-expand{display:none}
@media(max-width:760px){
 .category-section .home-all-results{display:none!important}
 .category-section .home-category-expand:not([hidden]){display:inline-flex;align-items:center;gap:5px;min-height:44px;white-space:nowrap}
 .category-section .home-category-expand:focus-visible{outline:3px solid #5a388a;outline-offset:3px}
 #categoryList:not([data-expanded="true"]) .kupio-category-tile:not([data-home-primary="true"]){display:none}
 #categoryList .kupio-category-tile{min-height:60px;padding:8px 10px}
 #categoryList .kupio-category-tile img,#categoryList .kupio-category-symbol{width:32px;height:32px;flex-basis:32px}
}
@media(max-width:760px){#categoryList .kupio-category-title{min-width:0;overflow-wrap:anywhere}}
@media(max-width:350px){#categoryList .kupio-category-tile{padding:8px 7px;gap:6px}#categoryList .kupio-category-tile img,#categoryList .kupio-category-symbol{width:24px;height:24px;flex-basis:24px}#categoryList .kupio-category-title{font-size:13px;letter-spacing:-.15px}}
@media(max-width:350px){#categoryList .kupio-category-tile{padding-inline:5px;gap:4px}#categoryList .kupio-category-symbol{font-size:18px}}
@media (min-width:351px) and (max-width:760px){#categoryList .kupio-category-tile{padding:8px;gap:6px}#categoryList .kupio-category-tile img,#categoryList .kupio-category-symbol{width:28px;height:28px;flex-basis:28px}#categoryList .kupio-category-symbol{font-size:20px}}
/* Touch target is the whole tile, not its decorative image. */
@media(max-width:760px){#categoryList .kupio-category-tile img{min-height:0!important}}
@media (min-width:351px) and (max-width:760px){#categoryList .kupio-category-tile img{height:28px!important}}
@media(max-width:350px){#categoryList .kupio-category-tile img{height:24px!important}}
