/* KabarFlow 1.3.4 — context-aware editorial sidebar.
   Loaded after editorial-layout.css to preserve existing layout and color modes. */
.kf-sidebar--premium{
  min-width:0;display:flex;flex-direction:column;gap:15px;
  --kf-side-border:var(--kf-editor-border,var(--kf-line));
  --kf-side-surface:var(--kf-surface,#fff);
  --kf-side-soft:var(--kf-surface-soft,#f6f8f9);
}
.kf-sidebar--premium *{box-sizing:border-box}
.kf-sidebar--premium a{text-decoration:none}
.kf-sidebar--premium a:focus-visible{outline:2px solid var(--kf-accent);outline-offset:3px}
.kf-side-intro{display:flex;align-items:center;gap:10px;margin:0 1px 1px;line-height:1.4;color:var(--kf-muted);font-size:9px;letter-spacing:.14em;font-weight:800}
.kf-side-intro span:first-child{color:var(--kf-accent)}
.kf-side-intro-rule{flex:1;height:1px;background:var(--kf-side-border)}
.kf-sidebar--premium .kf-side-card{
  min-width:0;margin:0;padding:16px 16px 14px;
  border:1px solid var(--kf-side-border);border-radius:11px;
  background:var(--kf-side-surface);box-shadow:0 3px 13px rgba(16,40,48,.035);
  overflow:hidden;
}
html[data-kf-theme="dark"] .kf-sidebar--premium .kf-side-card{box-shadow:none}
.kf-sidebar--premium .kf-side-card--feature{padding:0}
.kf-side-feature-top{
  display:flex;align-items:center;gap:8px;padding:11px 14px;
  font-size:9px;letter-spacing:.13em;font-weight:850;line-height:1.3;
  color:var(--kf-ink);background:var(--kf-side-surface)
}
.kf-side-feature-pin{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--kf-accent);box-shadow:0 0 0 3px rgba(0,166,166,.11)}
.kf-side-feature-deco{margin-left:auto;color:var(--kf-accent);font-size:15px;line-height:1}
.kf-side-feature-media{display:block;position:relative;width:100%;aspect-ratio:1.68;overflow:hidden;background:linear-gradient(135deg,#0b4551,#109b9b);}
.kf-side-feature-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.kf-side-feature-media:hover img{transform:scale(1.04)}
.kf-side-feature-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:850;color:rgba(255,255,255,.94);letter-spacing:-.03em;font-size:21px}
.kf-side-feature-fallback>span{font-size:55px;color:#6be0d4}
.kf-side-feature-body{padding:14px 15px 15px}
.kf-side-category{display:inline-flex;color:var(--kf-accent);font-size:10px;font-weight:800;line-height:1.3;margin-bottom:7px}
.kf-side-category:hover{color:var(--kf-ink)}
.kf-sidebar--premium .kf-side-feature-body h2{font-size:16px;line-height:1.47;letter-spacing:-.024em;color:var(--kf-ink);font-weight:800;margin:0 0 14px}
.kf-side-feature-body h2 a,.kf-side-rank-detail h3 a,.kf-side-mini-body h3 a{color:inherit}
.kf-sidebar--premium .kf-side-feature-body h2 a:hover,.kf-sidebar--premium .kf-side-rank-detail h3 a:hover,.kf-sidebar--premium .kf-side-mini-body h3 a:hover{color:var(--kf-accent)}
.kf-side-feature-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--kf-side-border);padding-top:11px;color:var(--kf-muted);font-size:10px}
.kf-side-feature-foot>a{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:7px;background:var(--kf-soft);color:var(--kf-accent)}
.kf-side-feature-foot>a:hover{background:var(--kf-accent);color:#fff}
.kf-side-feature-foot svg{width:15px;height:15px}
.kf-side-card-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-bottom:12px;margin-bottom:3px;border-bottom:1px solid var(--kf-side-border)}
.kf-side-eyebrow{display:block;font-weight:850;letter-spacing:.14em;font-size:9px;line-height:1.4;color:var(--kf-accent);margin-bottom:4px}
.kf-sidebar--premium .kf-side-card-heading h2,.kf-sidebar--premium .kf-side-card--welcome h2{color:var(--kf-ink);font-weight:850;font-size:17px;letter-spacing:-.034em;line-height:1.35;margin:0}
.kf-side-card-heading h2 span,.kf-side-card--welcome h2 span{color:var(--kf-accent)}
.kf-side-heading-icon{font-size:22px;font-weight:700;color:var(--kf-accent);align-self:center;line-height:1}
.kf-side-ranking{list-style:none;margin:0;padding:0}
.kf-side-ranking>li{list-style:none;display:grid;grid-template-columns:31px minmax(0,1fr);gap:10px;align-items:start;padding:13px 0;border-bottom:1px solid var(--kf-side-border)}
.kf-side-ranking>li:last-child{border:0}
.kf-side-rank-number{font-size:25px;font-weight:850;line-height:1.04;letter-spacing:-.06em;color:#c4cbd0;font-family:'Plus Jakarta Sans',sans-serif}
.kf-side-ranking>li:first-child .kf-side-rank-number{color:var(--kf-accent)}
html[data-kf-theme="dark"] .kf-side-rank-number{color:#77828a}
html[data-kf-theme="dark"] .kf-side-ranking>li:first-child .kf-side-rank-number{color:#58d8d0}
.kf-side-rank-detail{min-width:0}
.kf-side-rank-category{display:block;margin-bottom:5px;font-size:9px;font-weight:750;color:var(--kf-accent);line-height:1.2}
.kf-sidebar--premium .kf-side-rank-detail h3{margin:0 0 5px;color:var(--kf-ink);font-size:12px;font-weight:750;line-height:1.5;letter-spacing:-.014em;overflow-wrap:anywhere}
.kf-side-rank-detail time,.kf-side-mini-body time{display:block;color:var(--kf-muted);font-size:10px;line-height:1.4}
.kf-side-more{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 0;margin-top:2px;border-top:1px solid var(--kf-side-border);color:var(--kf-accent);font-size:11px;font-weight:800}
.kf-side-more svg{width:15px;height:15px}
.kf-side-more:hover{color:var(--kf-ink)}
.kf-side-news-list{display:grid;gap:0}
.kf-side-mini-story{display:grid;grid-template-columns:83px minmax(0,1fr);gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid var(--kf-side-border);min-width:0}
.kf-side-mini-story:last-child{border:0;padding-bottom:0}
.kf-side-mini-photo{display:grid;place-items:center;aspect-ratio:1.25;overflow:hidden;border-radius:7px;background:linear-gradient(135deg,#104a5a,#18a7a1);color:#d7fff7;font-size:25px}
.kf-side-mini-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease}
.kf-side-mini-story:hover img{transform:scale(1.05)}
.kf-side-mini-body{min-width:0}
.kf-sidebar--premium .kf-side-mini-body h3{font-size:11px;line-height:1.45;font-weight:760;color:var(--kf-ink);letter-spacing:-.01em;overflow-wrap:anywhere;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.kf-side-card--topics .kf-side-card-heading{margin-bottom:9px}
.kf-side-topics{display:grid;grid-template-columns:1fr;gap:0}
.kf-side-topics a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;color:var(--kf-ink);border-bottom:1px solid var(--kf-side-border);font-size:11px;font-weight:750;min-width:0}
.kf-side-topics a:last-child{border:0;padding-bottom:1px}
.kf-side-topics a:hover{color:var(--kf-accent)}
.kf-side-topic-count{flex-shrink:0;min-width:27px;text-align:center;font-size:9px;color:var(--kf-muted);font-weight:800;background:var(--kf-soft);padding:4px 5px;border-radius:5px}
.kf-sidebar--premium>.kf-ad-slot,.kf-sidebar--premium>.kf-demo-placement{max-width:100%;width:100%;margin:0;min-width:0}
.kf-sidebar--premium .kf-ad-slot--sidebar{border-radius:10px}
.kf-sidebar-widget-area{display:grid;gap:15px;min-width:0}
.kf-sidebar--premium .kf-sidebar-widget-area>.kf-widget{margin:0;padding:16px;background:var(--kf-side-surface);border:1px solid var(--kf-side-border);border-radius:11px;min-width:0;overflow-wrap:anywhere}
.kf-sidebar--premium .kf-widget-title{color:var(--kf-ink);font-size:16px;font-weight:800;letter-spacing:-.025em;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--kf-side-border)}
.kf-sidebar--premium .kf-widget img,.kf-sidebar--premium .kf-widget iframe{max-width:100%;height:auto}
.kf-sidebar--premium .kf-widget ul{padding-left:16px}
.kf-sidebar--premium .kf-widget a:hover{color:var(--kf-accent)}
.kf-side-card--welcome p{font-size:12px;line-height:1.7;color:var(--kf-muted);margin:10px 0}
/* Prevent the taller premium sidebar from sticking beyond the reading viewport. */
@media(min-width:701px){.kf-single-container>.kf-article-layout>.kf-sidebar--premium{position:static;top:auto}}
@media(max-width:900px){
  .kf-sidebar--premium{gap:13px}
  .kf-single-container .kf-article-layout>.kf-sidebar--premium{display:flex;margin-top:35px;max-width:780px;margin-left:auto;margin-right:auto}
  .kf-single-container .kf-article-layout>.kf-sidebar--hide-mobile{display:none}
}
@media(max-width:700px){
  .kf-latest-section>.kf-sidebar--premium{margin-top:28px}
  .kf-sidebar--premium .kf-side-card{border-radius:10px;padding:15px}
  .kf-sidebar--premium .kf-side-card--feature{padding:0}
  .kf-side-feature-media{aspect-ratio:1.94}
  .kf-side-feature-body{padding:13px 15px}
  .kf-sidebar--premium .kf-side-feature-body h2{font-size:16px}
  .kf-side-ranking>li{grid-template-columns:33px 1fr}
  .kf-sidebar--premium .kf-side-rank-detail h3{font-size:13px}
  .kf-side-mini-story{grid-template-columns:96px 1fr}
  .kf-sidebar--premium .kf-side-mini-body h3{font-size:12px}
  .kf-side-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
  .kf-single-container .kf-article-layout>.kf-sidebar--premium{margin-top:37px}
}
@media(max-width:390px){
  .kf-side-mini-story{grid-template-columns:82px 1fr}
  .kf-side-topics{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.kf-side-feature-media img,.kf-side-mini-photo img{transition:none}}
