/* Scoped to editorial template. Content determines grid height, never the rail. */
.k24-editorial-template .k24-ed-adaptive{grid-template-columns:minmax(0,1fr) minmax(220px,280px);align-items:start}
.k24-editorial-template .k24-ed-adaptive-rail{position:static;align-self:stretch;contain:size;min-height:0;max-height:none;overflow:auto;padding:0;border:0;border-radius:0;background:transparent;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin}
.k24-editorial-template .k24-ed-toc-panel,.k24-editorial-template .k24-ed-rail-panel{border:1px solid #dfe5eb;background:#f8fafc;border-radius:12px;padding:14px;min-width:0;flex:none;box-sizing:border-box}
.k24-editorial-template .k24-ed-toc-panel{max-height:420px;overflow:auto;scrollbar-width:thin}
.k24-editorial-template .k24-ed-rail-extra{display:grid;gap:14px;flex:none;min-width:0}
.k24-editorial-template .k24-ed-rail-panel h2{font-size:15px;line-height:1.35;color:#172033;font-weight:850;margin:0 0 12px;padding-left:8px;border-left:3px solid #ffd400}
.k24-editorial-template .k24-ed-rail-list{display:grid;gap:9px}
.k24-editorial-template .k24-ed-tile{background:#fff;border:1px solid #e0e5eb;border-radius:9px;padding:9px;min-width:0}
.k24-editorial-template .k24-ed-tile-link{display:grid;grid-template-columns:76px minmax(0,1fr);gap:9px;text-decoration:none;color:#172033;align-items:start}
.k24-editorial-template .k24-ed-tile-image{height:76px;display:grid;place-items:center;overflow:hidden;background:#fff;border-radius:6px}
.k24-editorial-template .k24-ed-tile-image img{width:100%;height:76px;object-fit:contain;display:block}
.k24-editorial-template .k24-ed-tile-copy{display:grid;gap:5px;line-height:1.35;font-size:12px;min-width:0;overflow-wrap:anywhere}
.k24-editorial-template .k24-ed-tile-copy strong{font-size:13px;font-weight:800}
.k24-editorial-template .k24-ed-tile-copy>span{color:#526075}
.k24-editorial-template .k24-ed-tile-copy .k24-ed-tile-cta{color:#172033;font-weight:800;background:#ffd400;border-radius:5px;padding:4px 7px;justify-self:start}
.k24-editorial-template .k24-ed-tile-link:hover strong{text-decoration:underline}
.k24-editorial-template .k24-ed-tile-fallback{font-size:11px;color:#66758a}
.k24-editorial-template .k24-ed-rail-articles ul{padding:0;list-style:none;margin:0}.k24-editorial-template .k24-ed-rail-articles li{padding:8px 0;border-top:1px solid #e0e5eb}
.k24-editorial-template .k24-ed-adaptive-rail [hidden]{display:none!important}
@media(max-width:960px){.k24-editorial-template .k24-ed-adaptive{grid-template-columns:minmax(0,1fr)}.k24-editorial-template .k24-ed-adaptive-rail{display:contents;contain:none;overflow:visible}.k24-editorial-template .k24-ed-toc-panel{grid-row:1;grid-column:1;max-height:350px}.k24-editorial-template .k24-ed-adaptive .k24-ed-content{grid-row:2;grid-column:1}.k24-editorial-template .k24-ed-rail-extra{grid-row:3;grid-column:1}.k24-editorial-template .k24-ed-rail-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.k24-editorial-template .k24-ed-rail-list{grid-template-columns:1fr}}
