/* Shared presentation only. Existing guide, lesson and exam engines remain owners. */
#klg-home-single .ka-mode-pills,#ka-profile-mode.ka-mode-pills{display:flex!important;gap:6px;margin:0 0 20px;padding:0;width:100%;box-sizing:border-box;align-items:stretch}
#ka-profile-mode.ka-mode-pills{width:auto;margin:12px 20px 24px}
.ka-mode-pills .ka-mode-pill{flex:1;min-width:0;min-height:44px;padding:9px 8px;border:1px solid transparent;border-radius:24px;background:#f1f4f5;color:#43565f;font:650 12px/1.35 system-ui,sans-serif;text-align:center;cursor:pointer;white-space:normal;overflow-wrap:normal;word-break:normal}
.ka-mode-pills .ka-mode-pill[aria-pressed=true]{background:#008f80;color:#fff}
.ka-mode-pills .ka-mode-pill:focus-visible{outline:3px solid #ffb703;outline-offset:2px}
#home #klg-home-single .klgd-search{margin-bottom:24px!important}
#home #klg-home-single .klgd-search input{font-size:14px!important}
#home #klg-home-single .klgd-card-head h2{font-size:17px!important;line-height:1.4!important}
#home #klg-home-single .klgd-guide-label{font-size:12px!important;line-height:1.4!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
#home #klg-home-single .klgd-grid{column-gap:10px!important;row-gap:18px!important}
#home #klg-home-single .klgd-guide-tile{min-height:86px!important;justify-content:flex-start!important}
#home #klg-home-single .klgd-course-copy strong,#home #klg-home-single .klgd-explore-copy strong{font-size:16px!important;line-height:1.45!important}
#home #klg-home-single .klgd-course-copy small,#home #klg-home-single .klgd-explore-copy small{font-size:13px!important;line-height:1.55!important}
#home #klg-home-single .ka-start-card{border:1px solid #cde5df!important;background:#f3faf7!important;border-radius:16px!important;padding:18px!important;margin-bottom:24px!important}
#home #klg-home-single .ka-start-card .klgd-course{padding-bottom:0!important;border:0!important;background:transparent!important}
.ka-course-page .klgd-course{padding:19px 0!important}
.ka-course-page .klgd-card{padding:0 16px!important}
.ka-course-page .ka-track-number{display:block;font:700 11px/1.3 system-ui,sans-serif;letter-spacing:.08em;color:#008f80;margin-bottom:4px}
.ka-course-page .klgd-course-art .klg-vivid-tile,.klg-ico .klg-vivid-tile{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:12px!important;background:var(--tile-color)!important}
.ka-course-page .klgd-course-art .klg-vivid-tile svg,.klg-ico .klg-vivid-tile svg{width:25px!important;height:25px!important;fill:none!important;stroke:white!important;stroke-width:1.8!important}
#explore #klg-categories button.klg-vivid-explore-tile::before{width:44px!important;height:44px!important;border-radius:12px!important;background-size:25px 25px!important}
#explore #klg-categories button.klg-vivid-explore-tile{font-size:12px!important;line-height:1.4!important;min-height:84px!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
#explore #klg-categories button .ka-category-label{font-size:12px!important;line-height:1.4!important}
#explore #klg-places-status{font-size:14px!important;line-height:1.6!important;color:#526a78!important;padding:10px 0!important}
/* Reserved provider slot: no empty box and no stretching/cropping of ad creative. */
#home-after-actions:empty,#home-after-actions[hidden]{display:none!important}
#home-after-actions{box-sizing:border-box;display:flex;justify-content:center;max-width:100%;margin:0 auto 20px;padding:0;border:0;background:transparent;overflow:visible}
html[data-kolig-adfree=verified] #home-after-actions{display:none!important}
@media(max-width:360px){.ka-mode-pills .ka-mode-pill{font-size:11px;padding:9px 5px}#home #klg-home-single .klgd-grid{column-gap:6px!important}}

#home #klg-home-single .klgd-guide-tile{display:flex!important;flex-direction:column!important;gap:7px!important;padding:3px 0!important}#home #klg-home-single .klgd-guide-icon{display:grid!important;place-items:center!important;flex:0 0 46px!important;width:46px!important;height:46px!important;margin:0!important;align-self:center!important}

#home #klg-home-single .klgd-guide-label{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important}#explore #klg-categories button.klg-vivid-explore-tile,#explore #klg-categories button .ka-category-label{overflow-wrap:anywhere!important}

@media(max-width:340px){#home #klg-home-single .klgd-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:12px!important}}

/* Review 6: slim selector surfaces, with a 44px touch target. */
#klg-home-single .ka-mode-pills,#ka-profile-mode.ka-mode-pills{gap:6px;margin-bottom:12px}
.ka-mode-pills .ka-mode-pill{position:relative;isolation:isolate;min-height:44px;padding:6px 7px;border:0;border-radius:9px;background:transparent!important;color:#526670;font:550 11.5px/1.25 system-ui,sans-serif}
.ka-mode-pills .ka-mode-pill::before{content:'';position:absolute;inset:4px 0;z-index:-1;border:1px solid #e5ecec;border-radius:9px;background:#f5f7f8}
.ka-mode-pills .ka-mode-pill[aria-pressed=true]{color:#007f73;font-weight:700}
.ka-mode-pills .ka-mode-pill[aria-pressed=true]::before{background:#eaf7f3;border-color:#aad9cf}
#home-after-actions{max-width:none;margin-top:0;margin-bottom:18px;padding:0 0 0;flex:none;min-width:0}
.ka-ad-layout-preview{box-sizing:border-box;width:320px;max-width:100%;height:50px;flex:none;display:flex;align-items:center;justify-content:center;background:#f2f4f5;border:1px dashed #c4cecf;border-radius:6px;color:#687a80;font:600 10px/1.4 system-ui,sans-serif;letter-spacing:.04em}
@media(max-width:360px){.ka-mode-pills .ka-mode-pill{font-size:11px;padding:6px 5px}}
