/* KASWA Blog V2 — scoped presentation themes. Existing SEO/links/data unchanged. */
.kb-v2-blog { --kb-paper:#faf9f6;--kb-ink:#172936;--kb-gold:#9a742d;--kb-red:#c71922;--kb-border:#e3e5e6;background:var(--kb-paper);color:var(--kb-ink) }
.kb-v2-blog .kb-main-columns{min-width:0}
.kb-v2-blog .kb-story-card {min-width:0;overflow:hidden;border-color:var(--kb-border)}
.kb-v2-blog .kb-story-grid{align-content:start}
.kb-v2-blog .kb-story-card img{width:100%;object-fit:cover}
.kb-v2-blog .kb-side{min-width:0}
.kb-v2-blog .kb-brand-rail{background:#f6f1e7!important;color:#172936!important;border-color:#dfd2b8!important}
.kb-v2-blog a:focus-visible{outline:2px solid var(--kb-red);outline-offset:3px}
/* 1: Portal — newsroom two-column cards and right editorial rail. */
.kb-theme-portal .kb-story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* 2: Magazine — featured lead and bigger visual cards. */
.kb-theme-magazine .kb-featured-story{border-color:#dec99f;box-shadow:0 10px 28px #17293614}
.kb-theme-magazine .kb-featured-story img{object-position:center}
.kb-theme-magazine .kb-story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.kb-theme-magazine .kb-story-card{border-radius:20px}
.kb-theme-magazine .kb-story-card .kb-story-figure{aspect-ratio:5/4}
.kb-theme-magazine .kb-story-card h3{font-size:21px}
/* 3: Compact — single dense news list with left thumbnail. */
.kb-theme-compact .kb-story-grid{display:grid;grid-template-columns:1fr!important;gap:10px}
.kb-theme-compact .kb-story-card{display:grid!important;grid-template-columns:clamp(126px,22vw,210px) minmax(0,1fr);border-radius:12px;min-height:0}
.kb-theme-compact .kb-story-card .kb-story-figure{aspect-ratio:4/3;height:100%;min-height:135px}
.kb-theme-compact .kb-story-card .kb-story-content{padding:12px 16px}
.kb-theme-compact .kb-story-card h3{font-size:16px;line-height:1.35;margin-top:5px}
.kb-theme-compact .kb-story-card .kb-story-excerpt{margin-top:6px;-webkit-line-clamp:2}
.kb-theme-compact .kb-featured-story .kb-featured-image{min-height:155px;max-height:220px}
/* 4: Classic — minimal 3-column card gallery; right rail follows cards. */
.kb-theme-classic .kb-story-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.kb-theme-classic .kb-story-card h3{font-size:16px}
.kb-theme-classic .kb-story-card .kb-story-content{padding:14px}
.kb-theme-classic .kb-featured-story{box-shadow:none;border-radius:14px}
.kb-theme-classic .kb-story-card .kb-story-figure{aspect-ratio:4/3}
/* Article has a separate theme preference. */
.kb-article-page.kb-article-theme-magazine .kb-article-top{background:#f6f1e7!important}
.kb-article-page.kb-article-theme-magazine .kb-article-lead-image{max-height:460px;object-fit:cover}
.kb-article-page.kb-article-theme-compact .kb-article-top .k-container{padding-top:15px!important;padding-bottom:20px!important}
.kb-article-page.kb-article-theme-compact .kb-article-lead-image{max-height:270px;object-fit:cover}
.kb-article-page.kb-article-theme-classic .kb-article-top{background:#fff!important;border-color:#e3e5e6}
.kb-article-page.kb-article-theme-classic .kb-article-lead-image{max-height:370px;object-fit:cover}
@media (min-width:1280px){
 .kb-theme-magazine .kb-main-columns{grid-template-columns:minmax(0,1fr) 260px}
 .kb-theme-compact .kb-main-columns{grid-template-columns:minmax(0,1fr) 245px}
 .kb-theme-classic .kb-main-columns{display:block!important}
 .kb-theme-classic .kb-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px;gap:14px}
}
@media (max-width:1023px){
 .kb-theme-classic .kb-story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
 .kb-v2-blog .kb-story-grid,.kb-theme-magazine .kb-story-grid,.kb-theme-classic .kb-story-grid{grid-template-columns:1fr}
 .kb-theme-compact .kb-story-card{grid-template-columns:118px minmax(0,1fr)}
 .kb-theme-compact .kb-story-card .kb-story-figure{min-height:128px}
 .kb-theme-compact .kb-story-card .kb-story-content{padding:10px}
 .kb-theme-compact .kb-story-card h3{font-size:14px}
 .kb-theme-compact .kb-story-excerpt{display:none}
 .kb-theme-compact .kb-story-card .kb-story-meta{display:none}
 .kb-theme-classic .kb-side{display:block}
}
