/* Static-rail multilingual catalog. Ad requests remain in the shared stack. */
body.kbt-catalog-layout [data-catalog-layout] {
    --catalog-static-version:1;
    --catalog-compact-fallback-version:1;
    box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;
    width:min(100%,1432px);margin:0 auto;padding:20px 16px 32px;direction:ltr;
    color:var(--msn-ink);font-family:var(--msn-font,system-ui,sans-serif);
}
body.kbt-catalog-layout [data-catalog-layout][data-catalog-rails="0"] {width:min(100%,1064px)}
body.kbt-catalog-layout [data-catalog-layout] *,
body.kbt-catalog-layout [data-catalog-layout] *::before,
body.kbt-catalog-layout [data-catalog-layout] *::after {box-sizing:border-box}
body.kbt-catalog-layout .kbt-catalog-center {
    display:block;min-width:0;min-height:0;width:100%;max-width:none;margin:0;padding:0;
    overflow:visible;scroll-padding-top:12px;direction:ltr;
}
html[dir="rtl"] body.kbt-catalog-layout .kbt-catalog-center {direction:rtl}
body.kbt-catalog-layout .kbt-catalog-center:focus-visible {
    outline:2px solid var(--msn-link);outline-offset:-2px;
}
/* Pending rails stay hidden until the matching inline selector chooses a size. */
body.kbt-catalog-layout .kbt-catalog-rail {display:none;width:160px;min-width:160px;padding-block-start:20px;align-self:start;overflow:visible}
body.kbt-catalog-layout .kbt-catalog-rail:not([data-catalog-rail-height="400"]):not([data-catalog-rail-height="600"]) {display:none!important}
body.kbt-catalog-layout .kbt-catalog-rail[data-catalog-rail-height="400"] {--catalog-rail-height:400px}
body.kbt-catalog-layout .kbt-catalog-rail[data-catalog-rail-height="600"] {--catalog-rail-height:600px}
/* Override shared 600px reservations without scaling or clipping paid content. */
body.kbt-catalog-layout .kbt-catalog-rail:is([data-catalog-rail-height="400"],[data-catalog-rail-height="600"]) .kbt-ad-slot[data-gam-rail="1"] > .kbt-ad-slot-inner,
body.kbt-catalog-layout .kbt-catalog-rail:is([data-catalog-rail-height="400"],[data-catalog-rail-height="600"]) .kbt-ad-slot[data-gam-rail="1"] > .kbt-ad-slot-inner > .kbt-gam-ad {
    height:var(--catalog-rail-height)!important;min-height:var(--catalog-rail-height)!important;max-height:var(--catalog-rail-height)!important;
}
body.kbt-catalog-layout .kbt-catalog-rail[data-catalog-rail-height="400"] .kbt-gam-ad {
    display:flex;align-items:center;justify-content:center;
}
/* A compact passback keeps its natural size inside the original reservation. */
body.kbt-catalog-layout .kbt-catalog-rail[data-catalog-rail-height="400"] [data-catalog-compact-fallback="1"] .kbt-gam-ad[data-kbt-google-first-owned="third"][data-kbt-adapex-sizes="[[120,240]]"] {
    display:block!important;flex:0 0 auto;box-sizing:content-box;
    width:120px!important;min-width:120px!important;max-width:120px!important;
    height:240px!important;min-height:240px!important;max-height:240px!important;
    margin:0 auto!important;padding:0!important;border:0;
}
body.kbt-catalog-layout .kbt-catalog-title {
    position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
html.kbt-msn-local body.kbt-catalog-layout .kbt-catalog-topads:has(> .kbt-top-provider-group) {
    display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;
    align-items:start;gap:16px!important;min-width:0;margin:0 0 12px;
}
body.kbt-catalog-layout .kbt-catalog-topads:not(:has(> .kbt-top-provider-group)) {display:none}
html[data-kbt-header-layout="compact"] body.kbt-catalog-layout .msn-local-header .msn-local-shortcut[aria-current="location"] {
    background:var(--msn-hover)!important;box-shadow:inset 0 -3px 0 var(--msn-link);color:var(--msn-link);
}
body.kbt-catalog-layout [data-catalog-layout] .msn-catalog-category {min-width:0;margin:0 0 18px;padding-top:10px;scroll-margin-top:10px}
body.kbt-catalog-layout .msn-catalog-category-heading {gap:8px;margin-bottom:8px}
body.kbt-catalog-layout .msn-catalog-category-heading h2 {font-size:18px;line-height:24px}
body.kbt-catalog-layout .kbt-catalog-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px;margin:0;min-width:0}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card {display:flex;grid-column:auto;min-width:0;border:1px solid var(--msn-line);background:var(--msn-card)}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card:hover {background:var(--msn-hover)}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-link {display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:10px;flex:1;min-width:0;height:auto;min-height:90px;padding:8px}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-media {width:64px;height:64px;aspect-ratio:1;border-radius:5px}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-copy {min-width:0;min-height:64px;gap:6px;padding:0}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-category {display:none}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-copy h3 {flex-shrink:0;min-height:36px;max-height:36px;font-size:14px;line-height:18px;-webkit-line-clamp:2}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-footer {flex-wrap:nowrap;gap:4px;padding-top:0}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-rating {min-width:0;max-width:calc(100% - 18px);gap:4px;direction:ltr}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-rating-stars {flex:0 0 auto;font-size:12px;line-height:14px;letter-spacing:0}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-rating-meta {min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:14px}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-cta {flex:0 0 auto;font-size:0;gap:0}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-cta > span {font-size:14px;line-height:16px}
body.kbt-catalog-layout .kbt-catalog-grid .msn-feed-card-link:focus-visible {outline:2px solid var(--msn-link);outline-offset:-2px}
body.kbt-catalog-layout .msn-catalog-map {display:none!important}

/* Center-only scrolling also works in short desktop windows with no paid rails. */
@media(min-width:1320px) and (min-height:490px) and (hover:hover) and (pointer:fine) {
    body.kbt-catalog-layout[data-catalog-mounted="1"] [data-catalog-layout] {
        grid-template-rows:minmax(0,1fr);
        justify-content:center;align-items:stretch;gap:24px;
        height:calc(100dvh - var(--catalog-header-height,64px));
        min-height:0;margin:0 auto;padding:12px;
    }
    body.kbt-catalog-layout[data-catalog-mounted="1"] [data-catalog-layout][data-catalog-rails="1"] {grid-template-columns:160px minmax(0,1040px) 160px}
    /* Hidden asides must not move the catalog into the left rail's grid track. */
    body.kbt-catalog-layout[data-catalog-mounted="1"] [data-catalog-rails="1"] .kbt-catalog-center {grid-column:2;grid-row:1}
    body.kbt-catalog-layout[data-catalog-mounted="1"] [data-catalog-rails="1"] > .kbt-catalog-rail:first-child {grid-column:1;grid-row:1}
    body.kbt-catalog-layout[data-catalog-mounted="1"] [data-catalog-rails="1"] > .kbt-catalog-rail:last-child {grid-column:3;grid-row:1}
    body.kbt-catalog-layout[data-catalog-mounted="1"] .kbt-catalog-center {
        height:auto;min-height:0;overflow-x:hidden;overflow-y:auto;
        scrollbar-width:thin;scrollbar-gutter:stable;padding-inline-end:6px;padding-block-end:132px;
    }
}
/* Select once before the first request; resizing only hides an ad that no longer fits.
   Content starts at 96px; the full rail clears the existing 123px bottom anchor. */
@media(min-width:1320px) and (min-height:630px) and (hover:hover) and (pointer:fine) {
    body.kbt-catalog-layout[data-catalog-mounted="1"] [data-catalog-rails="1"] .kbt-catalog-rail[data-catalog-rail-height="400"] {display:block}
}
@media(min-width:1320px) and (min-height:830px) and (hover:hover) and (pointer:fine) {
    body.kbt-catalog-layout[data-catalog-mounted="1"] [data-catalog-rails="1"] .kbt-catalog-rail[data-catalog-rail-height="600"] {display:block}
}
@media(max-width:1050px) {
    body.kbt-catalog-layout .kbt-catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1360px) {
    body.kbt-catalog-layout .kbt-catalog-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:600px) {
    body.kbt-catalog-layout [data-catalog-layout] {padding:14px 10px 26px;gap:0}
    body.kbt-catalog-layout .kbt-catalog-grid {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:768px) {
    html.kbt-msn-local body.kbt-catalog-layout .kbt-catalog-topads:has(> .kbt-top-provider-group) {display:none!important}
}
@media(prefers-reduced-motion:reduce) {
    body.kbt-catalog-layout [data-catalog-scroll] {scroll-behavior:auto!important}
}
