/* Styles apply only to the homepage category block and its admin preview. */
.kd-home-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.kd-home-categories>.cat{display:flex;align-items:center;gap:12px;min-width:0;min-height:78px;padding:15px;border:1px solid var(--kd-line,#e3eaf4);border-radius:var(--kd-radius,15px);background:var(--kd-surface,#fff);color:var(--kd-ink,#172b4d);text-decoration:none;transition:border-color .15s,box-shadow .15s}
.kd-home-categories>.cat:hover{border-color:var(--kd-brand);box-shadow:0 5px 18px rgba(var(--kd-brand-rgb,23,104,235),.08)}
.kd-home-categories .cat-emoji{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:var(--kd-soft,#eff5ff);color:var(--kd-light-link,var(--kd-link,var(--kd-brand)))}
.kd-home-categories .cat-emoji>.kd-icon{width:30px;height:30px;color:inherit}
.kd-home-categories>.cat strong{min-width:0;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.kd-home-categories--tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.kd-home-categories--tiles>.cat{flex-direction:column;justify-content:center;min-height:132px;padding:20px;text-align:center}
.kd-home-categories--tiles .cat-emoji{width:54px;height:54px;flex-basis:54px}
.kd-home-categories--tiles .cat-emoji>.kd-icon{width:36px;height:36px}
.kd-home-categories--columns{grid-template-columns:repeat(3,minmax(0,1fr))}
.kd-home-categories--columns>.cat{min-height:90px}
.kd-home-categories--balanced{grid-template-columns:repeat(6,minmax(0,1fr))}
.kd-home-categories--balanced>.cat{grid-column:span 2;min-height:90px}
.kd-home-categories--balanced>.cat:nth-child(5n+4),.kd-home-categories--balanced>.cat:nth-child(5n+5){grid-column:span 3}
.kd-home-categories--list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 18px}
.kd-home-categories--list>.cat{min-height:58px;padding:10px 14px}
.kd-home-categories--list .cat-emoji{flex-basis:32px;width:32px;height:32px;border-radius:9px}
.kd-home-categories--list .cat-emoji>.kd-icon{width:24px;height:24px}
.kd-home-categories--featured{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(96px,auto)}
.kd-home-categories--featured>.cat:first-child{grid-column:span 2;grid-row:span 2;flex-direction:column;justify-content:center;text-align:center;min-height:205px;background:var(--kd-soft,#eff5ff)}
.kd-home-categories--featured>.cat:first-child strong{font-size:22px}
.kd-home-categories--featured>.cat:first-child .cat-emoji{width:72px;height:72px;flex-basis:72px;background:var(--kd-surface,#fff)}
.kd-home-categories--featured>.cat:first-child .kd-icon{width:48px;height:48px}
.kd-home-categories>.empty{grid-column:1/-1}
@media(max-width:1050px){.kd-home-categories--cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:750px){.kd-home-categories{gap:10px}.kd-home-categories--cards,.kd-home-categories--tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.kd-home-categories--cards>.cat{flex-direction:column;justify-content:center;text-align:center;min-height:112px;padding:12px 8px}.kd-home-categories--columns{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-home-categories--featured{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-home-categories--featured>.cat:first-child{grid-column:1/-1;grid-row:auto;min-height:144px}.kd-home-categories>.cat strong{font-size:14px}.kd-home-categories--featured>.cat:first-child strong{font-size:20px}}
@media(max-width:540px){.kd-home-categories--balanced{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-home-categories--balanced>.cat,.kd-home-categories--balanced>.cat:nth-child(5n+4),.kd-home-categories--balanced>.cat:nth-child(5n+5){grid-column:auto}.kd-home-categories--list{grid-template-columns:minmax(0,1fr)}.kd-home-categories--tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-home-categories--tiles>.cat{padding:16px 10px;min-height:124px}}
@media(max-width:430px){.kd-home-categories--cards{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-home-categories--cards>.cat{flex-direction:row;justify-content:flex-start;text-align:left;min-height:78px;padding:10px}.kd-home-categories--cards .cat-emoji{width:36px;height:36px;flex-basis:36px}.kd-home-categories--columns>.cat,.kd-home-categories--balanced>.cat,.kd-home-categories--featured>.cat{flex-direction:column;justify-content:center;text-align:center;padding:12px 10px}.kd-home-categories--featured>.cat:first-child{flex-direction:row}}
.kd-home-categories>.cat.selected{border-color:var(--kd-brand);background:var(--kd-soft,#eff5ff)}
/* 4.5: readable category names and calmer cards; existing layout choices remain. */
.kd-home-categories{gap:12px}.kd-home-categories--cards{grid-template-columns:repeat(4,minmax(0,1fr))}.kd-home-categories>.cat{min-height:94px;padding:18px;gap:14px;border-radius:14px;box-shadow:0 2px 10px #17345403}.kd-home-categories>.cat strong{font-weight:600;font-size:15px;line-height:1.45;letter-spacing:-.1px}.kd-home-categories .cat-emoji{width:46px;height:46px;flex-basis:46px;background:var(--kd-soft);border-radius:13px}.kd-home-categories--list>.cat{min-height:65px;padding:12px 15px}.kd-home-categories--tiles>.cat{min-height:145px;gap:13px}.kd-home-categories--tiles .cat-emoji{width:54px;height:54px;flex-basis:54px}.kd-home-categories--featured>.cat:first-child .kd-home-category-copy{flex:0 0 auto}.kd-home-categories--featured>.cat:first-child .kd-home-category-arrow{display:none}.kd-home-categories--featured>.cat:first-child small{font-size:12px}.kd-home-categories--tiles .kd-home-category-arrow{display:none}.kd-home-categories--list .cat-emoji{width:34px;height:34px;flex-basis:34px}.kd-home-categories--list .kd-home-category-copy small{display:none}
@media(max-width:1050px){.kd-home-categories--cards{grid-template-columns:repeat(3,minmax(0,1fr))}.kd-home-categories>.cat{padding:15px;gap:11px}}
@media(max-width:750px){.kd-home-categories--cards{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-home-categories--cards>.cat{flex-direction:row;justify-content:flex-start;text-align:left;min-height:84px;padding:14px 12px}.kd-home-categories>.cat strong{font-size:14px}.kd-home-categories .cat-emoji{width:38px;height:38px;flex-basis:38px;border-radius:11px}.kd-home-categories .cat-emoji>.kd-icon{width:27px;height:27px}}
@media(max-width:430px){.kd-home-categories{gap:9px}.kd-home-categories--cards>.cat{flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:14px;min-height:112px;gap:10px}.kd-home-categories>.cat strong{font-size:13px}.kd-home-categories--list>.cat{min-height:60px}.kd-home-categories--list{grid-template-columns:1fr}}
