/* Afodabo Blog (v10) — muonekano wa kisasa unaoendana na mfumo (tokens: --primary, --accent, --text, --surface ...) */
body.blog-page { --bl: var(--primary); --bl-2: var(--accent); --bl-soft: color-mix(in srgb, var(--bl) 11%, transparent); --bl-radius: 22px; --bl-w: 1240px; background: var(--bg); }
body.blog-page .bl-content { min-height: 50vh; }
/* Blog iko ndani ya layout ya site (layouts.app): upana wa eneo la maudhui */
body.app.blog-page .shell.wide .content-wrap { grid-template-columns: minmax(0, 1240px); padding: 16px 28px 60px; }
body.app.blog-page .main { min-width: 0; }
@media (max-width: 767px) { body.app.blog-page .shell.wide .content-wrap { padding: 0 0 80px; } }
.bl-wrap { width: 100%; margin-inline: auto; }
@media (max-width: 767px) { .bl-wrap { width: calc(100% - 28px); } }
.bl-muted { color: var(--muted); }
.bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- Upau wa blog (ndani ya ukurasa wa site) ---------------- */
.bl-bar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: 14px; padding: 10px 0; margin-bottom: 6px;
    background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--line); }
.bl-bar-t { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.bl-bar-t .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; background: linear-gradient(135deg, var(--bl), var(--bl-2)); flex: none; }
.bl-bar-t b { display: block; font-size: 1rem; letter-spacing: -.01em; line-height: 1.2; }
.bl-bar-t small { display: block; font-size: .72rem; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-nav { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.bl-nav::-webkit-scrollbar { display: none; }
.bl-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; font-weight: 700; font-size: .84rem; color: var(--muted); background: var(--field); white-space: nowrap; transition: background .15s, color .15s; }
.bl-nav a i { color: var(--c, var(--bl)); }
.bl-nav a:hover { color: var(--text); background: var(--bl-soft); }
.bl-nav a.on { background: var(--text); color: var(--bg); }
.bl-nav a.on i { color: inherit; }
.bl-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.bl-ib { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 0; background: var(--field); cursor: pointer; color: var(--text); font-size: 1.1rem; position: relative; }
.bl-ib:hover { background: var(--bl-soft); color: var(--bl); }
.bl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: .88rem; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.bl-btn:active { transform: scale(.97); }
.bl-btn.pri { background: linear-gradient(135deg, var(--bl), color-mix(in srgb, var(--bl) 65%, var(--bl-2))); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--bl) 60%, transparent); }
.bl-btn.ghost { background: var(--field); color: var(--text); }
.bl-btn.line { border-color: var(--line); color: var(--text); background: var(--surface-strong); }
.bl-btn.sm { padding: 7px 12px; font-size: .8rem; }
@media (max-width: 1100px) { .bl-bar-t small { display: none; } }
@media (max-width: 767px) {
    .bl-bar { top: 54px; flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; margin-bottom: 0; }
    .bl-bar-t .ic { width: 34px; height: 34px; border-radius: 11px; font-size: 1rem; }
    .bl-nav { order: 3; flex-basis: 100%; margin: 0 -14px; padding: 0 14px; }
    .bl-bar .hide-m { display: none; }
}

/* Utafutaji */
.bl-search { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: none; padding: 12vh 16px 0; }
.bl-search.open { display: block; animation: blFade .2s ease-out; }
.bl-search form { width: min(680px, 100%); margin: 0 auto; display: flex; gap: 10px; align-items: center; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 20px; padding: 10px 10px 10px 18px; box-shadow: var(--shadow-lg); }
.bl-search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.15rem; outline: none; padding: 8px 0; }
.bl-search .hint { width: min(680px, 100%); margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bl-search .hint a { padding: 6px 12px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; }

/* Breaking ticker */
.bl-breaking { background: #111; color: #fff; overflow: hidden; display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 12px; border-radius: 14px; margin: 10px 0 0; }
@media (max-width: 767px) { .bl-breaking { border-radius: 0; margin: 0; } }
.bl-breaking .lb { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; background: #e11d48; padding: 5px 10px; border-radius: 6px; }
.bl-breaking .lb::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blPulse 1.2s infinite; }
.bl-breaking .track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.bl-breaking .run { display: inline-flex; gap: 42px; white-space: nowrap; animation: blTicker var(--dur, 30s) linear infinite; padding-left: 20px; }
.bl-breaking .run:hover { animation-play-state: paused; }
.bl-breaking a { font-weight: 600; font-size: .88rem; opacity: .92; }
.bl-breaking a:hover { opacity: 1; text-decoration: underline; }
.bl-breaking a::before { content: "•"; margin-right: 12px; color: #e11d48; }
@keyframes blTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blPulse { 50% { opacity: .25; } }
@keyframes blFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- Hero (ukurasa wa mbele) ---------------- */
.bl-hero { position: relative; padding: 34px 0 24px; overflow: hidden; border-radius: 26px; }
.bl-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 520px; background: radial-gradient(40% 60% at 20% 30%, color-mix(in srgb, var(--bl-2) 28%, transparent), transparent 70%), radial-gradient(40% 60% at 85% 10%, color-mix(in srgb, var(--bl) 22%, transparent), transparent 70%); pointer-events: none; }
.bl-hero.has-img { padding: 60px 0 50px; color: #fff; margin-top: 12px; }
.bl-hero.has-img .bl-wrap { width: calc(100% - 60px); }
.bl-hero.has-img::before { inset: 0; height: auto; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65)), var(--hero-img) center/cover; }
.bl-hero .bl-wrap { position: relative; }
.bl-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bl); background: var(--bl-soft); padding: 6px 12px; border-radius: 999px; }
.bl-hero.has-img .bl-eyebrow { color: #fff; background: rgba(255,255,255,.16); }
.bl-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 16px 0 12px; max-width: 16ch; }
.bl-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--bl), var(--bl-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-hero.has-img h1 em { color: #fff; background: none; }
.bl-hero p.sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 60ch; margin: 0 0 22px; line-height: 1.6; }
.bl-hero.has-img p.sub { color: rgba(255,255,255,.85); }
.bl-hero-search { display: flex; gap: 8px; max-width: 560px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 18px; padding: 7px 7px 7px 16px; box-shadow: var(--shadow); }
.bl-hero-search i { align-self: center; color: var(--muted); }
.bl-hero-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; color: var(--text); }
.bl-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 20px; font-size: .85rem; color: var(--muted); }
.bl-hero.has-img .bl-stats { color: rgba(255,255,255,.8); }
.bl-stats b { display: block; font-size: 1.35rem; color: var(--text); letter-spacing: -.02em; }
.bl-hero.has-img .bl-stats b { color: #fff; }

/* Featured */
.bl-feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin: 6px 0 34px; }
.bl-feature .side { display: grid; gap: 16px; }
.bl-ov { position: relative; display: block; border-radius: var(--bl-radius); overflow: hidden; min-height: 220px; background: #0f2a18; isolation: isolate; animation: blUp .5s ease-out both; }
.bl-ov.big { min-height: 460px; }
.bl-ov > img, .bl-ov > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; z-index: -2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bl-ov:hover > img { transform: scale(1.05); }
/* Avatar ya mwandishi ndani ya kadi (ilikuwa inatanuka kama duara kubwa la jani) */
.bl-ov .bl-meta .avatar, .bl-ov .bl-meta img { position: static; width: 20px; height: 20px; object-fit: cover; transform: none; z-index: auto; }
.bl-ov::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.82)); }
.bl-ov .in { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; }
.bl-ov.big .in { padding: 30px; }
.bl-ov h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.015em; margin: 10px 0 8px; line-height: 1.25; }
.bl-ov.big h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.12; }
.bl-ov p { margin: 0 0 12px; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-ov .bl-meta { color: rgba(255,255,255,.8); }
.bl-ov .noimg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 80% at 20% 20%, var(--c, var(--bl)), #0f2a18); }
@media (max-width: 900px) {
    .bl-feature { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .bl-feature::-webkit-scrollbar { display: none; }
    .bl-feature .side { display: contents; }
    .bl-ov, .bl-ov.big { flex: 0 0 86%; min-height: 360px; scroll-snap-align: center; }
}

/* ---------------- Layout + kadi ---------------- */
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; padding-bottom: 40px; }
.bl-layout.solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1060px) { .bl-layout { grid-template-columns: minmax(0, 1fr); } }
.bl-sec { margin-bottom: 38px; }
.bl-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bl-sec-h h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 10px; }
.bl-sec-h h2 .dot { width: 10px; height: 10px; border-radius: 4px; background: var(--c, var(--bl)); }
.bl-sec-h .more { margin-left: auto; font-weight: 700; font-size: .85rem; color: var(--bl); display: inline-flex; gap: 5px; align-items: center; }
.bl-sec-h .views { margin-left: auto; display: inline-flex; background: var(--field); border-radius: 999px; padding: 3px; }
.bl-sec-h .views button { border: 0; background: none; width: 34px; height: 30px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.bl-sec-h .views button.on { background: var(--surface-strong); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.bl-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.bl-card { display: flex; flex-direction: column; background: var(--surface-strong, #fff); border: 1px solid var(--line); border-radius: var(--bl-radius); overflow: hidden; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; animation: blUp .45s ease-out both; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(15, 42, 24, .35); }
.bl-card .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--field); }
.bl-card .ph img, .bl-card .ph video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bl-card:hover .ph img { transform: scale(1.06); }
.bl-card .ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: linear-gradient(135deg, var(--c, var(--bl)), color-mix(in srgb, var(--c, var(--bl)) 45%, #0f2a18)); }
.bl-card .ph .play { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; }
.bl-card .ph .flag { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.bl-card .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bl-card h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.32; margin: 0; }
.bl-card h3 a:hover { color: var(--bl); }
.bl-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card .bl-meta { margin-top: auto; padding-top: 6px; }

.bl-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--bl)); }
.bl-cat.pill { color: #fff; background: var(--c, var(--bl)); padding: 5px 10px; border-radius: 999px; }
.bl-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bl-badge.hot { background: #e11d48; }
.bl-badge.pin { background: var(--highlight, #f59e0b); }
.bl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; color: var(--muted); }
.bl-meta .who { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: inherit; }
.bl-meta .who .avatar { --size: 24px; }
.bl-meta i { margin-right: 3px; }
.bl-meta .tick { color: var(--bl); }

/* Mstari (list) */
.bl-grid.list, .bl-list { display: flex; flex-direction: column; gap: 16px; }
.bl-grid.list .bl-card, .bl-row { flex-direction: row; }
.bl-grid.list .bl-card .ph { flex: 0 0 min(300px, 38%); aspect-ratio: auto; min-height: 170px; }
@media (max-width: 560px) { .bl-grid.list .bl-card { flex-direction: column; } .bl-grid.list .bl-card .ph { flex: none; aspect-ratio: 16/10; } }

/* Mini (sidebar, zinazohusiana) */
.bl-mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.bl-mini + .bl-mini { border-top: 1px solid var(--line); }
.bl-mini .n { font-size: 1.5rem; font-weight: 900; color: color-mix(in srgb, var(--bl) 35%, var(--line)); width: 28px; flex: none; letter-spacing: -.04em; }
.bl-mini .th { width: 72px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: var(--field); }
.bl-mini .th img { width: 100%; height: 100%; object-fit: cover; }
.bl-mini h4 { font-size: .88rem; font-weight: 700; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-mini:hover h4 { color: var(--bl); }

/* Safu ya kategoria (magazine) */
.bl-catrow { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.bl-catrow .rest { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) { .bl-catrow { grid-template-columns: 1fr; } }

.bl-more { display: flex; justify-content: center; margin-top: 26px; }
.bl-empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--bl-radius); color: var(--muted); }
.bl-empty i { font-size: 2.6rem; display: block; margin-bottom: 10px; color: var(--bl); }
.bl-pages { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.bl-pages a, .bl-pages span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; background: var(--surface-strong); }
.bl-pages .on { background: var(--bl); color: #fff; border-color: var(--bl); }

/* ---------------- Sidebar widgets ---------------- */
.bl-aside { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1060px) { .bl-aside { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.bl-w { background: var(--surface-strong, #fff); border: 1px solid var(--line); border-radius: var(--bl-radius); padding: 18px; }
.bl-w h3 { font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.bl-w h3 i { color: var(--bl); font-size: 1rem; }
.bl-tabs { display: flex; gap: 4px; background: var(--field); padding: 3px; border-radius: 999px; margin-bottom: 6px; }
.bl-tabs button { flex: 1; border: 0; background: none; padding: 6px; border-radius: 999px; font-weight: 700; font-size: .78rem; cursor: pointer; color: var(--muted); }
.bl-tabs button.on { background: var(--surface-strong); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.bl-weather { color: #fff; border: 0; background: radial-gradient(120% 120% at 100% 0, #38bdf8, #0369a1 60%, #0c4a6e); position: relative; overflow: hidden; }
.bl-weather h3 { color: rgba(255,255,255,.8); } .bl-weather h3 i { color: #fff; }
.bl-weather .big { display: flex; align-items: center; gap: 14px; }
.bl-weather .big i { font-size: 3.2rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.bl-weather .t { font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.bl-weather .row3 { display: flex; gap: 16px; margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.85); }
.bl-prices .p { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.bl-prices .p + .p { border-top: 1px solid var(--line); }
.bl-prices .p .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bl-soft); color: var(--bl); flex: none; }
.bl-prices .p .nm { flex: 1; min-width: 0; font-weight: 700; font-size: .88rem; }
.bl-prices .p .nm small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.bl-prices .p .v { text-align: right; font-weight: 800; font-size: .88rem; }
.bl-prices .p .v small { display: block; font-size: .72rem; font-weight: 700; }
.up { color: #16a34a; } .down { color: #e11d48; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.bl-tags a { padding: 6px 11px; border-radius: 999px; background: var(--field); font-size: .8rem; font-weight: 700; color: var(--muted); }
.bl-tags a:hover { background: var(--bl-soft); color: var(--bl); }
.bl-poll .opt { position: relative; display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); cursor: pointer; font-weight: 700; font-size: .86rem; overflow: hidden; }
.bl-poll .opt .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--bl-soft); transition: width .6s cubic-bezier(.2, .7, .2, 1); z-index: 0; }
.bl-poll .opt span { position: relative; z-index: 1; }
.bl-poll .opt.mine { border-color: var(--bl); }
.bl-poll.done .opt { cursor: default; }
.bl-news { background: linear-gradient(145deg, #0f2a18, color-mix(in srgb, var(--bl) 70%, #0f2a18)); color: #fff; border: 0; position: relative; overflow: hidden; }
.bl-news::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; top: -50px; border-radius: 50%; background: color-mix(in srgb, var(--bl-2) 45%, transparent); filter: blur(10px); }
.bl-news h3 { color: #fff; text-transform: none; letter-spacing: -.01em; font-size: 1.1rem; }
.bl-news h3 i { color: var(--bl-2); }
.bl-news p { color: rgba(255,255,255,.78); font-size: .86rem; margin: 0 0 12px; position: relative; }
.bl-news form { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.bl-news input { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; border-radius: 12px; padding: 11px 13px; outline: none; }
.bl-news input::placeholder { color: rgba(255,255,255,.6); }
.bl-news .bl-btn.pri { background: #fff; color: #0f2a18; box-shadow: none; }
.bl-news .ok { background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px; font-weight: 700; }
.bl-cta { text-align: center; }
.bl-cta .ic { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--bl), var(--bl-2)); color: #fff; font-size: 1.6rem; }
.bl-cta h4 { margin: 0 0 6px; font-size: 1.05rem; }
.bl-cta p { color: var(--muted); font-size: .86rem; margin: 0 0 12px; }
.bl-social { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--field); font-size: 1.1rem; }
.bl-social a:hover { background: var(--bl); color: #fff; }

/* ---------------- Ukurasa wa kategoria / tafuta ---------------- */
.bl-head { padding: 36px 0 24px; position: relative; }
.bl-head .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--c, var(--bl)), color-mix(in srgb, var(--c, var(--bl)) 50%, #0f2a18)); margin-bottom: 14px; }
.bl-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.bl-head p { color: var(--muted); max-width: 64ch; margin: 0; }
.bl-crumbs { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.bl-crumbs a:hover { color: var(--bl); }

/* ---------------- Makala (show) ---------------- */
.bl-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--bl), var(--bl-2)); box-shadow: 0 0 10px color-mix(in srgb, var(--bl) 60%, transparent); transition: width .1s linear; }
.bl-art-head { padding: 34px 0 20px; }
.bl-art-head .in { max-width: 820px; margin: 0 auto; text-align: center; }
.bl-art-head h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 16px 0 14px; }
.bl-art-head .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); line-height: 1.6; margin: 0 auto 20px; max-width: 64ch; }
.bl-art-head .bl-meta { justify-content: center; font-size: .86rem; }
.bl-art-head .bl-meta .who .avatar { --size: 34px; }
.bl-art-head .bl-crumbs { justify-content: center; }
.bl-langsw { display: inline-flex; gap: 4px; margin-top: 16px; padding: 3px; border-radius: 999px; background: var(--field); font-size: .78rem; font-weight: 800; }
.bl-langsw a { padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.bl-langsw a.on { background: var(--surface-strong); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.bl-cover { position: relative; max-width: 1100px; margin: 0 auto 30px; border-radius: 28px; overflow: hidden; background: var(--field); aspect-ratio: 16 / 8; box-shadow: 0 30px 60px -30px rgba(15, 42, 24, .45); isolation: isolate; }
.bl-cover img, .bl-cover video, .bl-cover iframe { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; border: 0; display: block; }
/* "Smart": picha nzima inaonekana (haikatwi), nafasi iliyobaki inajazwa na picha ile ile iliyofifishwa */
.bl-cover.fit-smart, .bl-cover.fit-original { aspect-ratio: auto; background: #0f1a12; }
.bl-cover.fit-smart::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--cover-img) center / cover; filter: blur(28px) saturate(1.15) brightness(.75); transform: scale(1.1); }
.bl-cover.fit-smart img { height: auto; max-height: min(72vh, 680px); object-fit: contain; margin: 0 auto; }
.bl-cover.fit-original img { height: auto; max-height: none; object-fit: contain; }
.bl-cover.fit-smart video, .bl-cover.fit-original video, .bl-cover.fit-smart iframe, .bl-cover.fit-original iframe { aspect-ratio: 16 / 9; height: auto; }
.bl-cover figcaption { font-size: .8rem; color: var(--muted); text-align: center; padding: 8px; }
@media (max-width: 700px) { .bl-cover { border-radius: 18px; margin-inline: 0; aspect-ratio: 4 / 3; } .bl-cover.fit-smart, .bl-cover.fit-original { aspect-ratio: auto; } .bl-cover.fit-smart img { max-height: 62vh; } }

.bl-art { display: grid; grid-template-columns: 64px minmax(0, 720px) 250px; justify-content: center; gap: 40px; align-items: start; }
@media (max-width: 1180px) { .bl-art { grid-template-columns: 56px minmax(0, 720px); } .bl-toc-side { display: none; } }
@media (max-width: 800px) { .bl-art { grid-template-columns: minmax(0, 1fr); } .bl-rail { display: none !important; } }
.bl-rail { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bl-rail button, .bl-rail a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-strong); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; color: var(--text); transition: transform .15s, background .15s; position: relative; }
.bl-rail button:hover, .bl-rail a:hover { transform: scale(1.08); background: var(--bl-soft); color: var(--bl); }
.bl-rail .n { font-size: .7rem; font-weight: 800; color: var(--muted); margin-top: -6px; }
.bl-rail .on { color: #e11d48; }
.bl-rail .saved { color: var(--bl); }
.bl-toc-side { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow: auto; }
.bl-toc h4 { font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.bl-toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); font-size: .85rem; color: var(--muted); line-height: 1.35; }
.bl-toc a.l3 { padding-left: 24px; font-size: .8rem; }
.bl-toc a.on { color: var(--bl); border-color: var(--bl); font-weight: 700; }
.bl-toc-inline { display: none; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-strong); }
.bl-toc-inline summary { padding: 13px 16px; font-weight: 800; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.bl-toc-inline summary::-webkit-details-marker { display: none; }
.bl-toc-inline .bl-toc { padding: 0 16px 14px; }
@media (max-width: 1180px) { .bl-toc-inline { display: block; } }

/* Maandishi ya makala */
.bl-prose { --fs: 1.1rem; font-size: var(--fs); line-height: 1.85; color: color-mix(in srgb, var(--text) 92%, var(--muted)); overflow-wrap: anywhere; }
.bl-prose > * { margin: 0 0 1.15em; }
.bl-prose h2, .bl-prose h3, .bl-prose h4 { color: var(--text); letter-spacing: -.02em; line-height: 1.25; scroll-margin-top: 90px; position: relative; }
.bl-prose h2 { font-size: 1.6em; margin: 1.8em 0 .6em; }
.bl-prose h3 { font-size: 1.28em; margin: 1.5em 0 .5em; }
.bl-prose h2 .anc, .bl-prose h3 .anc { opacity: 0; margin-left: 8px; font-size: .7em; color: var(--bl); transition: opacity .15s; }
.bl-prose h2:hover .anc, .bl-prose h3:hover .anc { opacity: 1; }
.bl-prose a { color: var(--bl); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--bl) 35%, transparent); }
.bl-prose a:hover { text-decoration-color: var(--bl); }
.bl-prose strong, .bl-prose b { color: var(--text); }
.bl-prose img { border-radius: 18px; margin: 1.6em auto; cursor: zoom-in; height: auto; }
.bl-prose figure { margin: 1.6em 0; } .bl-prose figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: -1em; }
.bl-prose blockquote { margin: 1.6em 0; padding: 18px 22px 18px 24px; border-left: 4px solid var(--bl); background: var(--bl-soft); border-radius: 0 18px 18px 0; font-size: 1.08em; font-weight: 600; color: var(--text); }
.bl-prose ul, .bl-prose ol { padding-left: 1.4em; }
.bl-prose li { margin: .35em 0; }
.bl-prose li::marker { color: var(--bl); font-weight: 800; }
.bl-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.bl-prose pre { background: #0f1f17; color: #d7f5df; padding: 16px; border-radius: 14px; overflow: auto; font-size: .88em; line-height: 1.6; }
.bl-prose code { background: var(--field); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.bl-prose pre code { background: none; padding: 0; }
.bl-prose table { width: 100%; border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
.bl-prose th, .bl-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.bl-prose th { background: var(--field); font-weight: 800; }
.bl-prose iframe, .bl-prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 18px; }
.bl-prose .ql-align-center { text-align: center; } .bl-prose .ql-align-right { text-align: right; } .bl-prose .ql-align-justify { text-align: justify; }
.bl-prose .ql-size-small { font-size: .85em; } .bl-prose .ql-size-large { font-size: 1.3em; } .bl-prose .ql-size-huge { font-size: 1.7em; }
.bl-prose .ql-indent-1 { padding-left: 2em; } .bl-prose .ql-indent-2 { padding-left: 4em; }
.bl-prose > p:first-of-type::first-letter { float: left; font-size: 3.4em; line-height: .9; font-weight: 800; margin: .08em .1em 0 0; color: var(--bl); }
.bl-prose mark { background: color-mix(in srgb, var(--highlight, #f59e0b) 35%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; }

.bl-tools-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bl-tools-row .sp { flex: 1; }
.bl-act { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-strong); font-weight: 800; font-size: .85rem; cursor: pointer; color: var(--text); transition: transform .15s, background .15s, color .15s; }
.bl-act:hover { background: var(--bl-soft); color: var(--bl); }
.bl-act:active { transform: scale(.95); }
.bl-act.on { background: #ffe4e6; border-color: #fecdd3; color: #e11d48; }
html[data-mode="dark"] .bl-act.on { background: rgba(225, 29, 72, .15); border-color: rgba(225, 29, 72, .35); }
.bl-act.saved { background: var(--bl-soft); color: var(--bl); border-color: color-mix(in srgb, var(--bl) 30%, transparent); }
.bl-act.pop i { animation: blPop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes blPop { 40% { transform: scale(1.5); } }
.bl-share { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-share a, .bl-share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; font-size: 1.05rem; }
.bl-share .wa { background: #25d366; } .bl-share .fb { background: #1877f2; } .bl-share .x { background: #111; } .bl-share .li { background: #0a66c2; } .bl-share .tg { background: #229ed9; } .bl-share .cp { background: var(--field); color: var(--text); }
.bl-fs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bl-fs button { border: 0; background: var(--surface-strong); padding: 8px 12px; cursor: pointer; font-weight: 800; color: var(--text); }
.bl-fs button + button { border-left: 1px solid var(--line); }
.bl-tts.on { background: var(--bl); color: #fff; border-color: var(--bl); }
.bl-art-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bl-art-tags a { padding: 7px 13px; border-radius: 999px; background: var(--field); font-weight: 700; font-size: .82rem; }
.bl-art-tags a:hover { background: var(--bl-soft); color: var(--bl); }

.bl-author { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--bl-radius); background: var(--surface-strong); border: 1px solid var(--line); margin: 30px 0; }
.bl-author .avatar { --size: 64px; }
.bl-author .who { font-weight: 800; font-size: 1.05rem; }
.bl-author p { margin: 6px 0 12px; color: var(--muted); font-size: .92rem; }
.bl-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.bl-pn a { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-strong); display: block; transition: border-color .15s; }
.bl-pn a:hover { border-color: var(--bl); }
.bl-pn small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bl-pn b { font-size: .95rem; line-height: 1.35; display: block; }
.bl-pn .n { text-align: right; }
@media (max-width: 560px) { .bl-pn { grid-template-columns: 1fr; } .bl-pn .n { text-align: left; } }

/* Comments */
.bl-comments { margin-top: 34px; scroll-margin-top: 90px; }
.bl-cform { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 24px; }
.bl-cform .box { flex: 1; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.bl-cform .box:focus-within { border-color: var(--bl); box-shadow: 0 0 0 4px var(--bl-soft); }
.bl-cform textarea { width: 100%; border: 0; outline: none; background: none; resize: vertical; min-height: 70px; font-size: .95rem; }
.bl-cform .row2 { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.bl-cform .row2 input { flex: 1 1 160px; border: 1px solid var(--line); background: var(--field); border-radius: 10px; padding: 9px 11px; outline: none; }
.bl-cform .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bl-cform .replying { font-size: .8rem; color: var(--bl); font-weight: 700; display: none; }
.bl-cform.is-reply .replying { display: inline-flex; gap: 6px; align-items: center; }
.bl-c { display: flex; gap: 12px; padding: 14px 0; }
.bl-c + .bl-c { border-top: 1px solid var(--line); }
.bl-c .avatar { --size: 38px; }
.bl-c .top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.bl-c .top b { font-size: .9rem; }
.bl-c .top small { color: var(--muted); font-size: .75rem; }
.bl-c .top .auth { font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--bl); padding: 2px 6px; border-radius: 5px; }
.bl-c p { margin: 4px 0 6px; line-height: 1.6; white-space: pre-line; }
.bl-c .rp { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: .78rem; cursor: pointer; padding: 0; }
.bl-c .rp:hover { color: var(--bl); }
.bl-c .kids { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--line); }
.bl-c .kids .bl-c { padding: 10px 0; }
.bl-c:target, .bl-c.flash { animation: blFlash 2s ease-out; border-radius: 12px; }
@keyframes blFlash { 0%, 40% { background: var(--bl-soft); } 100% { background: transparent; } }

/* Mobile: kitufe cha vitendo vya makala */
.bl-mbar { display: none; }
@media (max-width: 800px) {
    .bl-mbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface-strong, #fff) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 12px 30px -10px rgba(0,0,0,.3); transition: transform .3s, opacity .3s; }
    .bl-mbar.hide { transform: translate(-50%, 140%); opacity: 0; }
    .bl-mbar button, .bl-mbar a { border: 0; background: none; height: 42px; min-width: 46px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-weight: 800; font-size: .8rem; color: var(--text); cursor: pointer; }
    .bl-mbar .on { color: #e11d48; } .bl-mbar .saved { color: var(--bl); }
    html.nav-fixed .bl-mbar { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
body:not(.app) .bl-mbar, body.blog-page.no-bnav .bl-mbar { bottom: 18px; }

/* Picha kubwa (lightbox) */
.bl-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; animation: blFade .2s; }
.bl-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* Footer ndogo ya blog (footer kuu ni ya site) */
.bl-foot { border-top: 1px solid var(--line); margin-top: 26px; padding: 18px 0 10px; }
.bl-foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.bl-foot-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bl-foot-links a:hover { color: var(--bl); }
@media (max-width: 767px) { .bl-foot { padding: 16px 14px 10px; } }

.bl-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 130; background: #111; color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: blUp .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .bl-card, .bl-ov, .bl-breaking .run { animation: none !important; } }
@media print {
    .bl-bar, .side-left, .m-top, .bl-breaking, .bl-rail, .bl-mbar, .bl-tools-row, .bl-comments, .bl-foot, .bottom-nav, .bl-aside, .bl-toc-side, .bl-toc-inline, .bl-pn, #af-splash { display: none !important; }
    .bl-art { display: block; } .bl-prose { font-size: 12pt; color: #000; }
}


/* ═══════════ Template za kadi (Admin → Blog → "Mtindo wa kadi") ═══════════
   classic (default) · glass · minimal · bold · split — zote zinafanya kazi kwenye simu pia */
body.blog-page.bl-cat-normal .bl-cat { text-transform: none; letter-spacing: 0; font-size: .74rem; }

/* 1. Glass: paneli ya kioo chini ya picha */
body.bl-tpl-glass .bl-ov::after { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); }
body.bl-tpl-glass .bl-ov .in { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; border-radius: calc(var(--bl-radius) - 6px);
  background: rgba(15, 26, 18, .38); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(255,255,255,.18); }
body.bl-tpl-glass .bl-ov.big .in { left: 18px; right: 18px; bottom: 18px; padding: 22px 24px; }
body.bl-tpl-glass .bl-card { border: 0; box-shadow: 0 10px 30px -18px rgba(15, 42, 24, .35); }

/* 2. Minimal: picha juu, maandishi chini (hakuna giza juu ya picha) */
body.bl-tpl-minimal .bl-ov { background: transparent; min-height: 0 !important; overflow: visible; display: flex; flex-direction: column; }
body.bl-tpl-minimal .bl-ov::after { display: none; }
body.bl-tpl-minimal .bl-ov > img, body.bl-tpl-minimal .bl-ov > video, body.bl-tpl-minimal .bl-ov > .noimg { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; height: auto; border-radius: var(--bl-radius); }
body.bl-tpl-minimal .bl-ov.big > img, body.bl-tpl-minimal .bl-ov.big > video, body.bl-tpl-minimal .bl-ov.big > .noimg { aspect-ratio: 16 / 9; }
body.bl-tpl-minimal .bl-ov:hover > img { transform: none; opacity: .92; }
body.bl-tpl-minimal .bl-ov .in { position: relative; padding: 14px 2px 4px; color: var(--text); }
body.bl-tpl-minimal .bl-ov p, body.bl-tpl-minimal .bl-ov .bl-meta { color: var(--muted); }
body.bl-tpl-minimal .bl-card { border: 0; background: transparent; }
body.bl-tpl-minimal .bl-card .ph { border-radius: var(--bl-radius); }
body.bl-tpl-minimal .bl-card .bd { padding: 14px 2px 4px; }
body.bl-tpl-minimal .bl-card:hover { transform: none; box-shadow: none; }

/* 3. Bold: kadi nyeusi, mstari wa rangi ya kategoria, vichwa vikubwa */
body.bl-tpl-bold .bl-ov::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(6,14,9,.92)); }
body.bl-tpl-bold .bl-ov { border-bottom: 5px solid var(--c, var(--bl)); }
body.bl-tpl-bold .bl-ov h3 { font-size: 1.35rem; letter-spacing: -.025em; }
body.bl-tpl-bold .bl-ov.big h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
body.bl-tpl-bold .bl-card { background: #0f1a12; color: #eef5ef; border: 0; border-top: 4px solid var(--c, var(--bl)); }
body.bl-tpl-bold .bl-card h3 a { color: #fff; }
body.bl-tpl-bold .bl-card p, body.bl-tpl-bold .bl-card .bl-meta { color: rgba(238, 245, 239, .7); }

/* 4. Split: kadi kubwa ina picha upande mmoja na maandishi upande mwingine */
@media (min-width: 861px) {
  body.bl-tpl-split .bl-ov.big { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface-strong, #fff); border: 1px solid var(--line); min-height: 420px; }
  body.bl-tpl-split .bl-ov.big::after { display: none; }
  body.bl-tpl-split .bl-ov.big > img, body.bl-tpl-split .bl-ov.big > video, body.bl-tpl-split .bl-ov.big > .noimg { position: relative; z-index: 0; height: 100%; }
  body.bl-tpl-split .bl-ov.big .in { position: relative; align-self: center; color: var(--text); padding: 34px; }
  body.bl-tpl-split .bl-ov.big p, body.bl-tpl-split .bl-ov.big .bl-meta { color: var(--muted); }
  body.bl-tpl-split .bl-feature { grid-template-columns: 1fr; }
  body.bl-tpl-split .bl-feature .side { grid-template-columns: 1fr 1fr; }
}

/* Simu: kadi zinapumua zaidi na maandishi yanasomeka vizuri */
@media (max-width: 700px) {
  .bl-ov .in { padding: 16px; }
  .bl-ov.big .in { padding: 18px; }
  .bl-ov h3 { font-size: 1.12rem; }
  .bl-ov.big h3 { font-size: 1.35rem; }
  .bl-ov .bl-meta { font-size: .72rem; gap: 8px; }
  .bl-ov .bl-meta .who { display: none; }
  body.bl-tpl-glass .bl-ov .in, body.bl-tpl-glass .bl-ov.big .in { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
  body.bl-tpl-minimal .bl-ov, body.bl-tpl-minimal .bl-ov.big { flex: 0 0 82%; }
}
.bl-cat-edit { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--field); color: var(--muted); font-size: .7rem; margin-left: 4px; vertical-align: middle; text-decoration: none; }
.bl-cat-edit:hover { color: var(--bl); }

/* Utafutaji wa papo hapo */
.bl-live-host { position: relative; }
.bl-live { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; max-height: min(62vh, 480px); overflow: auto; background: var(--surface-strong, #fff);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(15, 42, 24, .35); padding: 8px; text-align: left; color: var(--text); }
.bl-live.loading::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--bl), transparent); animation: blLiveBar 1s linear infinite; }
@keyframes blLiveBar { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.bl-live-it { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.bl-live-it:hover, .bl-live-it.on, .bl-live-all.on { background: var(--field); }
.bl-live-it .th { width: 58px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--field); color: var(--muted); }
.bl-live-it .th img { width: 100%; height: 100%; object-fit: cover; }
.bl-live-it .tx { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.bl-live-it em { font-style: normal; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c, var(--bl)); }
.bl-live-it b { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-live-it small { font-size: .72rem; color: var(--muted); }
.bl-live-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bl-live-chips .chip { font-size: .75rem; }
.bl-live-all { display: block; text-align: center; padding: 10px; font-weight: 700; font-size: .85rem; color: var(--bl); border-radius: 12px; text-decoration: none; }
.bl-live-empty { padding: 18px 12px; color: var(--muted); font-size: .88rem; text-align: center; }
.bl-search .bl-live { top: calc(100% + 4px); }
.bl-trnote { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--field); color: var(--muted); font-size: .8rem; }
.bl-trnote a { color: var(--bl); font-weight: 700; }
.bl-trnote .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--bl); animation: blSpin .8s linear infinite; }
@keyframes blSpin { to { transform: rotate(360deg); } }

/* Dropdown ya utafutaji isikatwe na hero */
.bl-hero { overflow: visible; }
.bl-hero::before { inset: 0; height: auto; border-radius: inherit; }
.bl-hero .bl-hero-search { position: relative; z-index: 30; }
