/* =====================================================================
   Kzamiza Blog — public styles (mobile-first, RTL, light/dark)
   ===================================================================== */
:root {
    --kb-navy: #0b2540;
    --kb-primary: #0f5983;
    --kb-primary-2: #1a7ab5;
    --kb-teal: #2eb6af;
    --kb-gold: #fec73b;
    --kb-gold-2: #f5a524;

    --kb-bg: #f5f7fb;
    --kb-surface: #ffffff;
    --kb-surface-2: #f0f4f9;
    --kb-ink: #0d1b2e;
    --kb-ink-2: #3a4a60;
    --kb-muted: #6b7a90;
    --kb-line: #e3e9f2;
    --kb-shadow: 0 1px 2px rgb(13 27 46 / 0.05), 0 12px 32px -18px rgb(13 27 46 / 0.25);
    --kb-shadow-lg: 0 30px 60px -30px rgb(11 37 64 / 0.45);

    --kb-radius: 1.25rem;
    --kb-font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --kb-nav-h: 64px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --kb-bg: #07111f;
        --kb-surface: #0d1b2e;
        --kb-surface-2: #12243b;
        --kb-ink: #eef3fa;
        --kb-ink-2: #c3cfde;
        --kb-muted: #8797ad;
        --kb-line: rgb(255 255 255 / 0.09);
        --kb-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -18px rgb(0 0 0 / 0.6);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kb-nav-h) + 16px); }
body.kb { margin: 0; background: var(--kb-bg); color: var(--kb-ink); font-family: var(--kb-font); font-size: 16px; line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; }
:focus-visible { outline: 3px solid var(--kb-gold); outline-offset: 2px; border-radius: 6px; }
.kb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kb-skip { position: fixed; top: -100px; right: 16px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--kb-gold); color: var(--kb-navy); font-weight: 800; }
.kb-skip:focus { top: 12px; }
.kb-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .kb-wrap { padding-inline: 28px; } }

/* ---------------- buttons / pills ---------------- */
.kb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 15px; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.kb-btn:active { transform: translateY(1px) scale(.99); }
.kb-btn--gold { background: linear-gradient(135deg, var(--kb-gold), var(--kb-gold-2)); color: #3b2500; box-shadow: 0 10px 24px -12px rgb(245 165 36 / .9); }
.kb-btn--gold:hover { filter: brightness(1.05); box-shadow: 0 14px 30px -12px rgb(245 165 36 / 1); }
.kb-btn--primary { background: linear-gradient(135deg, var(--kb-primary), var(--kb-teal)); color: #fff; }
.kb-btn--lg { min-height: 54px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.kb-btn--block { width: 100%; }
.kb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--kb-primary)) 12%, transparent); color: var(--c, var(--kb-primary)); font-size: 13px; font-weight: 800; line-height: 1.6; }
.kb-pill--solid { background: var(--c, var(--kb-primary)); color: #fff; }
.kb-pill--glass { background: rgb(255 255 255 / .18); color: #fff; backdrop-filter: blur(6px); }
.kb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--kb-gold); box-shadow: 0 0 0 0 rgb(254 199 59 / .7); animation: kb-pulse 2s infinite; }
@keyframes kb-pulse { 70% { box-shadow: 0 0 0 10px rgb(254 199 59 / 0); } 100% { box-shadow: 0 0 0 0 rgb(254 199 59 / 0); } }

/* ---------------- nav ---------------- */
.kb-nav { position: sticky; top: 0; z-index: 40; height: var(--kb-nav-h); background: color-mix(in srgb, var(--kb-surface) 82%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.kb-nav.is-scrolled { border-color: var(--kb-line); box-shadow: 0 10px 30px -24px rgb(13 27 46 / .5); }
.kb-nav__in { display: flex; align-items: center; gap: 16px; height: 100%; }
.kb-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.kb-brand img { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px -8px rgb(15 89 131 / .6); }
.kb-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.kb-brand b { font-size: 17px; font-weight: 900; }
.kb-brand small { font-size: 12px; font-weight: 700; color: var(--kb-teal); }
.kb-brand--light b { color: #fff; }
.kb-nav__links { display: none; gap: 4px; margin-inline-start: 12px; }
.kb-nav__links a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--kb-ink-2); transition: background-color .15s ease, color .15s ease; }
.kb-nav__links a:hover, .kb-nav__links a.on { background: var(--kb-surface-2); color: var(--kb-primary); }
.kb-nav__tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.kb-nav__search { display: none; align-items: center; gap: 8px; width: 230px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--kb-surface-2); border: 1px solid var(--kb-line); }
.kb-nav__search:focus-within { border-color: var(--kb-teal); }
.kb-nav__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--kb-ink); font-size: 14px; }
.kb-nav__search svg, .kb-hero__search svg, .kb-drawer__search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--kb-muted); stroke-width: 2.2; stroke-linecap: round; }
.kb-nav__cta { display: none; min-height: 42px; padding: 0 16px; font-size: 14px; }
.kb-nav__menu { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 12px; background: var(--kb-surface-2); }
.kb-nav__menu span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--kb-ink); transition: transform .2s ease, opacity .2s ease; }
.kb-nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kb-nav__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kb-nav__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 640px) { .kb-nav__cta { display: inline-flex; } }
@media (min-width: 1100px) {
    .kb-nav__links { display: flex; }
    .kb-nav__search { display: flex; }
    .kb-nav__menu { display: none; }
}

.kb-drawer { position: fixed; inset: var(--kb-nav-h) 0 0; z-index: 39; background: rgb(7 17 31 / .45); backdrop-filter: blur(4px); }
.kb-drawer[hidden] { display: none; }
.kb-drawer__panel { display: flex; flex-direction: column; gap: 4px; max-height: 100%; overflow-y: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--kb-surface); border-radius: 0 0 24px 24px; animation: kb-drop .22s ease; }
@keyframes kb-drop { from { transform: translateY(-12px); opacity: 0; } }
.kb-drawer__search { display: flex; align-items: center; gap: 10px; height: 50px; margin-bottom: 8px; padding: 0 14px; border-radius: 14px; background: var(--kb-surface-2); border: 1px solid var(--kb-line); }
.kb-drawer__search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--kb-ink); font-size: 16px; }
.kb-drawer__label { margin: 10px 4px 2px; font-size: 12px; font-weight: 800; color: var(--kb-muted); }
.kb-drawer__link { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 12px; font-weight: 800; }
.kb-drawer__link:hover { background: var(--kb-surface-2); }
.kb-drawer__link i { width: 10px; height: 10px; border-radius: 4px; background: var(--c, var(--kb-primary)); }
.kb-drawer__link small { margin-inline-start: auto; color: var(--kb-muted); font-weight: 700; }
.kb-drawer .kb-btn { margin-top: 12px; }

/* ---------------- hero (listing) ---------------- */
.kb-hero { position: relative; overflow: hidden; padding: 28px 0 40px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, var(--kb-primary-2) 0%, transparent 55%), linear-gradient(160deg, var(--kb-navy) 0%, #0d3557 55%, color-mix(in srgb, var(--c, var(--kb-teal)) 55%, var(--kb-navy)) 100%); }
.kb-hero__mesh { position: absolute; inset: 0; pointer-events: none; }
.kb-hero__mesh i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: kb-float 14s ease-in-out infinite alternate; }
.kb-hero__mesh i:nth-child(1) { width: 320px; height: 320px; top: -80px; left: -60px; background: var(--kb-teal); }
.kb-hero__mesh i:nth-child(2) { width: 260px; height: 260px; bottom: -120px; right: 20%; background: var(--kb-gold); opacity: .28; animation-duration: 18s; }
.kb-hero__mesh i:nth-child(3) { width: 220px; height: 220px; top: 30%; left: 40%; background: #6d5dfc; opacity: .3; animation-duration: 22s; }
@keyframes kb-float { to { transform: translate3d(30px, 20px, 0) scale(1.1); } }
.kb-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.kb-hero__in { position: relative; z-index: 1; }
.kb-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 6px; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); font-size: 13px; font-weight: 800; color: #d8ecff; }
.kb-hero h1 { margin: 6px 0 10px; font-size: clamp(30px, 8vw, 58px); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.kb-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--kb-gold), #ffe08a 50%, var(--kb-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kb-hero__lead { max-width: 640px; margin: 0; font-size: clamp(15px, 3.8vw, 19px); line-height: 1.85; color: #cfe0f2; }
.kb-hero__search { display: flex; align-items: center; gap: 8px; max-width: 620px; margin-top: 22px; padding: 6px 6px 6px 6px; padding-inline-start: 16px; border-radius: 18px; background: rgb(255 255 255 / .96); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .6); }
.kb-hero__search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: #0d1b2e; font-size: 16px; }
.kb-hero__search input::placeholder { color: #8a97a8; }
.kb-hero__search .kb-btn { min-height: 46px; padding: 0 18px; border-radius: 13px; }
.kb-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.kb-hero__facts li { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); }
.kb-hero__facts b { font-size: 20px; font-weight: 900; color: var(--kb-gold); }
.kb-hero__facts span { font-size: 13px; color: #cfe0f2; font-weight: 700; }
.kb-hero--compact { padding: 22px 0 30px; }
.kb-hero--compact h1 { font-size: clamp(28px, 7vw, 44px); }
@media (min-width: 900px) { .kb-hero { padding: 40px 0 64px; } .kb-hero__search { margin-top: 28px; } }

/* breadcrumbs */
.kb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--kb-muted); }
.kb-crumbs a:hover { color: var(--kb-primary); }
.kb-crumbs--light { color: #a9c2dc; }
.kb-crumbs--light a:hover { color: #fff; }
.kb-crumbs [aria-current] { color: inherit; opacity: .9; }

/* ---------------- category chips ---------------- */
.kb-cats { position: sticky; top: var(--kb-nav-h); z-index: 30; margin-top: -22px; }
.kb-cats__in { display: flex; gap: 8px; overflow-x: auto; padding-top: 2px; padding-bottom: 10px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.kb-cats__in::-webkit-scrollbar { display: none; }
.kb-chip { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 14px; background: var(--kb-surface); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow); font-size: 14.5px; font-weight: 800; color: var(--kb-ink-2); scroll-snap-align: start; transition: transform .15s ease, border-color .15s ease, background-color .15s ease; }
.kb-chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--kb-primary)); }
.kb-chip small { padding: 0 7px; border-radius: 999px; background: var(--kb-surface-2); font-size: 12px; color: var(--kb-muted); }
.kb-chip:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--c, var(--kb-primary)) 50%, var(--kb-line)); }
.kb-chip.on { background: var(--kb-ink); border-color: var(--kb-ink); color: var(--kb-bg); }
.kb-chip.on small { background: rgb(255 255 255 / .15); color: inherit; }

/* ---------------- section titles ---------------- */
.kb-sec-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 16px; font-size: clamp(20px, 5vw, 26px); font-weight: 900; }
.kb-sec-title span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--kb-primary), var(--kb-teal)); color: #fff; font-size: 13px; }

/* ---------------- featured (magazine) ---------------- */
.kb-featured__grid { display: grid; gap: 16px; }
.kb-feature { position: relative; overflow: hidden; min-height: 360px; border-radius: 26px; background: var(--kb-navy); box-shadow: var(--kb-shadow-lg); isolation: isolate; }
.kb-feature__media { position: absolute; inset: 0; z-index: -1; }
.kb-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.kb-feature:hover .kb-feature__media img { transform: scale(1.04); }
.kb-feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(7 17 31 / 0) 20%, rgb(7 17 31 / .55) 55%, rgb(7 17 31 / .95) 100%); }
.kb-feature__body > .kb-pill { align-self: flex-start; }
.kb-feature__body { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: 100%; min-height: inherit; padding: 22px; color: #fff; }
.kb-feature h3 { margin: 0; font-size: clamp(22px, 5.6vw, 34px); font-weight: 900; line-height: 1.35; }
.kb-feature h3 a { background-image: linear-gradient(var(--kb-gold), var(--kb-gold)); background-size: 0 3px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .35s ease; }
.kb-feature:hover h3 a { background-size: 100% 3px; }
.kb-feature p { display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #d3e1f0; font-size: 15px; }
.kb-feature .kb-card__meta { color: #b9cbe0; }
.kb-featured__side { display: grid; gap: 16px; }
@media (min-width: 900px) {
    .kb-featured__grid { grid-template-columns: 1.55fr 1fr; }
    .kb-feature { min-height: 460px; }
    .kb-feature__body { padding: 34px; }
}

/* ---------------- cards ---------------- */
.kb-layout { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 1100px) { .kb-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; } }
.kb-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.kb-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--kb-radius); background: var(--kb-surface); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.kb-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 35%, var(--kb-line)); box-shadow: 0 26px 50px -28px color-mix(in srgb, var(--c) 70%, #000); }
.kb-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--kb-surface-2); }
.kb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.kb-card:hover .kb-card__media img { transform: scale(1.05); }
.kb-card__ph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--c, var(--kb-teal)) 70%, #fff) 0, transparent 45%), linear-gradient(135deg, var(--kb-navy), var(--c, var(--kb-primary))); }
.kb-card__ph b { font-size: 64px; font-weight: 900; color: rgb(255 255 255 / .9); text-shadow: 0 10px 30px rgb(0 0 0 / .3); }
.kb-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.kb-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kb-card__read { font-size: 12.5px; font-weight: 700; color: var(--kb-muted); }
.kb-card__title { margin: 2px 0 0; font-size: 19px; font-weight: 900; line-height: 1.5; }
.kb-card__title a { transition: color .15s ease; }
.kb-card__title a::after { content: ''; position: absolute; inset: 0; }
.kb-card { position: relative; }
.kb-card__top .kb-pill, .kb-card__media { position: relative; z-index: 1; }
.kb-card:hover .kb-card__title a { color: var(--c); }
.kb-card__excerpt { display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--kb-ink-2); font-size: 15px; line-height: 1.8; }
.kb-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--kb-muted); }
.kb-card--sm { flex-direction: row; align-items: stretch; }
.kb-card--sm .kb-card__media { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
.kb-card--sm .kb-card__ph b { font-size: 40px; }
.kb-card--sm .kb-card__body { padding: 14px; }
.kb-card--sm .kb-card__title { font-size: 16.5px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* inline CTA inside grid */
.kb-inline-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px 22px; border-radius: var(--kb-radius); color: #fff; background: linear-gradient(150deg, var(--kb-navy), var(--kb-primary) 60%, var(--kb-teal)); box-shadow: var(--kb-shadow-lg); }
.kb-inline-cta__glow { position: absolute; width: 240px; height: 240px; top: -100px; left: -60px; border-radius: 50%; background: var(--kb-gold); opacity: .25; filter: blur(50px); }
.kb-inline-cta p { position: relative; margin: 0; color: #d6e6f5; }
.kb-inline-cta__eyebrow { font-size: 13px; font-weight: 800; }
.kb-inline-cta__title { font-size: 22px; font-weight: 900; line-height: 1.45; color: #fff !important; }
.kb-inline-cta .kb-btn { position: relative; align-self: flex-start; margin-top: 6px; }
@media (min-width: 640px) { .kb-inline-cta { grid-column: 1 / -1; padding: 30px 34px; } }

/* empty + pager */
.kb-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; border-radius: var(--kb-radius); background: var(--kb-surface); border: 1px dashed var(--kb-line); text-align: center; }
.kb-empty > span { font-size: 46px; }
.kb-empty h3 { margin: 0; font-size: 22px; }
.kb-empty p { margin: 0 0 8px; color: var(--kb-muted); }
.kb-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.kb-pager__btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 14px; background: var(--kb-surface); border: 1px solid var(--kb-line); font-weight: 800; box-shadow: var(--kb-shadow); }
.kb-pager__btn:hover { border-color: var(--kb-teal); color: var(--kb-primary); }
.kb-pager__info { font-size: 14px; font-weight: 700; color: var(--kb-muted); margin-inline: auto; }

/* sidebar */
.kb-layout__side { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1100px) { .kb-layout__side { position: sticky; top: calc(var(--kb-nav-h) + 76px); align-self: start; padding-top: 74px; } }
.kb-side-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border-radius: var(--kb-radius); color: #fff; background: radial-gradient(circle at 0 0, rgb(46 182 175 / .55), transparent 55%), linear-gradient(160deg, var(--kb-navy), var(--kb-primary)); }
.kb-side-cta img { border-radius: 16px; background: #fff; margin-bottom: 6px; }
.kb-side-cta__title { margin: 0; font-size: 20px; font-weight: 900; }
.kb-side-cta p { margin: 0 0 8px; color: #cfe0f2; font-size: 14.5px; }
.kb-side-box { padding: 18px; border-radius: var(--kb-radius); background: var(--kb-surface); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow); }
.kb-side-box__title { margin: 0 0 12px; font-size: 17px; font-weight: 900; }
.kb-popular { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.kb-popular li { display: flex; gap: 12px; }
.kb-popular__n { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--kb-surface-2); font-weight: 900; color: var(--kb-primary); }
.kb-popular li:first-child .kb-popular__n { background: linear-gradient(135deg, var(--kb-gold), var(--kb-gold-2)); color: #3b2500; }
.kb-popular a { display: block; font-weight: 800; line-height: 1.55; font-size: 15px; }
.kb-popular a:hover { color: var(--kb-primary); }
.kb-popular small { font-size: 12.5px; color: var(--kb-muted); }
.kb-side-cats { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.kb-side-cats a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; font-weight: 800; font-size: 15px; }
.kb-side-cats a:hover { background: var(--kb-surface-2); }
.kb-side-cats i { width: 10px; height: 10px; border-radius: 4px; background: var(--c); }
.kb-side-cats small { margin-inline-start: auto; color: var(--kb-muted); }

/* =====================================================================
   Article
   ===================================================================== */
.kb-progress { position: fixed; top: 0; inset-inline: 0; z-index: 60; height: 3px; pointer-events: none; }
.kb-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: right; background: linear-gradient(90deg, var(--kb-teal), var(--kb-gold)); }
.kb-preview-bar { padding: 10px 16px; background: #fff7db; color: #7a5300; font-weight: 800; text-align: center; font-size: 14px; }

.kb-ahead { position: relative; overflow: hidden; padding: 22px 0 28px; }
.kb-ahead__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--kb-bg)), var(--kb-bg)); }
.kb-ahead__bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.kb-ahead__bg i:nth-child(1) { width: 380px; height: 380px; top: -200px; right: -100px; background: var(--c); }
.kb-ahead__bg i:nth-child(2) { width: 260px; height: 260px; top: -80px; left: 10%; background: var(--kb-gold); opacity: .18; }
.kb-ahead { isolation: isolate; }
.kb-ahead__in { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 920px; }
.kb-ahead__title { margin: 4px 0 0; font-size: clamp(27px, 7.4vw, 50px); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; }
.kb-ahead__lead { margin: 0; font-size: clamp(16px, 4vw, 20px); line-height: 1.9; color: var(--kb-ink-2); }
.kb-ahead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.kb-author { display: flex; align-items: center; gap: 10px; }
.kb-author__av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--c), var(--kb-teal)); color: #fff; font-size: 18px; font-weight: 900; }
.kb-author b { display: block; font-size: 15px; line-height: 1.3; }
.kb-author small { font-size: 12.5px; color: var(--kb-muted); font-weight: 700; }
.kb-ahead__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 700; color: var(--kb-muted); }
.kb-updated { color: var(--kb-teal); }

.kb-cover { margin: 0 auto; }
.kb-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 22px; box-shadow: var(--kb-shadow-lg); }
@media (max-width: 639px) { .kb-cover { padding-inline: 0; } .kb-cover img { border-radius: 0; } }

.kb-read { display: grid; gap: 24px; padding-top: 26px; padding-bottom: 40px; }
.kb-read__main { min-width: 0; max-width: 760px; width: 100%; margin-inline: auto; }
.kb-read__side { min-width: 0; }
.kb-share--side { display: none; }
@media (min-width: 1100px) {
    .kb-read { grid-template-columns: 280px minmax(0, 760px); justify-content: center; gap: 56px; padding-top: 40px; }
    .kb-read__main { margin: 0; }
    .kb-read__side { position: sticky; top: calc(var(--kb-nav-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - var(--kb-nav-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
    .kb-share--side { display: block; }
}

/* TOC */
.kb-toc { border-radius: 18px; background: var(--kb-surface); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow); }
.kb-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; list-style: none; cursor: pointer; font-weight: 900; }
.kb-toc summary::-webkit-details-marker { display: none; }
.kb-toc summary small { color: var(--kb-muted); font-weight: 700; }
.kb-toc summary::after { content: '⌄'; margin-inline-start: 6px; font-size: 18px; line-height: 1; color: var(--kb-muted); transition: transform .2s ease; }
.kb-toc[open] summary::after { transform: rotate(180deg); }
.kb-toc ol, .kb-sheet__toc { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 10px 12px; list-style: none; counter-reset: toc; }
.kb-toc li, .kb-sheet__toc li { counter-increment: toc; }
.kb-toc a, .kb-sheet__toc a { position: relative; display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 700; line-height: 1.6; color: var(--kb-ink-2); transition: background-color .15s ease, color .15s ease; }
.kb-toc li:not(.kb-toc__sub) > a::before, .kb-sheet__toc li:not(.kb-toc__sub) > a::before { content: counter(toc); flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--kb-surface-2); font-size: 12px; color: var(--kb-muted); }
.kb-toc__sub a { padding-inline-start: 42px; font-size: 13.5px; font-weight: 600; }
.kb-toc a:hover, .kb-sheet__toc a:hover { background: var(--kb-surface-2); color: var(--kb-ink); }
.kb-toc a.on { background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c); }
.kb-toc a.on::before { background: var(--c) !important; color: #fff !important; }

/* prose */
.kb-prose { font-size: 18px; line-height: 2.05; color: var(--kb-ink-2); overflow-wrap: anywhere; }
@media (min-width: 768px) { .kb-prose { font-size: 19px; } }
.kb-prose > :first-child { margin-top: 0; }
.kb-prose p { margin: 0 0 1.25em; }
/* Lead paragraph (no drop cap: it would break Arabic letter joining) */
.kb-prose > p:first-of-type { font-size: 1.08em; color: var(--kb-ink); }
.kb-prose h2 { position: relative; margin: 1.9em 0 .7em; padding-inline-start: 18px; font-size: clamp(23px, 5.6vw, 30px); font-weight: 900; line-height: 1.45; color: var(--kb-ink); }
.kb-prose h2::before { content: ''; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 6px; border-radius: 6px; background: linear-gradient(180deg, var(--c), var(--kb-teal)); }
.kb-prose h3 { margin: 1.6em 0 .5em; font-size: clamp(20px, 4.8vw, 24px); font-weight: 900; line-height: 1.5; color: var(--kb-ink); }
.kb-prose h4 { margin: 1.4em 0 .4em; font-size: 19px; font-weight: 800; color: var(--kb-ink); }
.kb-prose a { color: var(--c); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--c) 35%, transparent); transition: text-decoration-color .15s ease; }
.kb-prose a:hover { text-decoration-color: var(--c); }
.kb-prose strong, .kb-prose b { color: var(--kb-ink); font-weight: 800; }
.kb-prose mark { padding: 0 .2em; border-radius: 4px; background: color-mix(in srgb, var(--kb-gold) 45%, transparent); color: inherit; }
.kb-prose ul, .kb-prose ol { margin: 0 0 1.3em; padding-inline-start: 1.6em; }
.kb-prose li { margin: .35em 0; padding-inline-start: .3em; }
.kb-prose ul { list-style: none; padding-inline-start: 1.4em; }
.kb-prose ul > li { position: relative; }
.kb-prose ul > li::before { content: ''; position: absolute; inset-inline-start: -1.1em; top: .82em; width: 8px; height: 8px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }
.kb-prose ol > li::marker { color: var(--c); font-weight: 900; }
.kb-prose blockquote { position: relative; margin: 1.6em 0; padding: 22px 24px 22px 22px; padding-inline-start: 26px; border-radius: 18px; background: color-mix(in srgb, var(--c) 7%, var(--kb-surface)); border-inline-start: 5px solid var(--c); font-size: 1.05em; font-weight: 700; color: var(--kb-ink); }
.kb-prose blockquote::after { content: '”'; position: absolute; inset-inline-end: 16px; top: -10px; font-size: 80px; line-height: 1; color: color-mix(in srgb, var(--c) 25%, transparent); font-family: Georgia, serif; }
.kb-prose blockquote p:last-child { margin-bottom: 0; }
.kb-prose img { margin: 1.4em auto; border-radius: 16px; box-shadow: var(--kb-shadow); }
.kb-prose figure { margin: 1.6em 0; }
.kb-prose figcaption { margin-top: -0.6em; text-align: center; font-size: 14px; color: var(--kb-muted); }
.kb-prose hr { margin: 2.2em auto; width: 120px; height: 6px; border: 0; border-radius: 6px; background: radial-gradient(circle, var(--c) 2px, transparent 3px) 0 0 / 20px 6px repeat-x; }
.kb-prose code { padding: .1em .4em; border-radius: 6px; background: var(--kb-surface-2); font-size: .88em; direction: ltr; unicode-bidi: embed; }
.kb-prose pre { overflow-x: auto; padding: 16px; border-radius: 14px; background: #0b1626; color: #e2e8f0; direction: ltr; text-align: left; }
.kb-prose pre code { background: none; padding: 0; }
.kb-table { overflow-x: auto; margin: 1.5em 0; border-radius: 16px; border: 1px solid var(--kb-line); }
.kb-prose table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 16px; }
.kb-prose th { background: var(--kb-surface-2); color: var(--kb-ink); font-weight: 900; }
.kb-prose th, .kb-prose td { padding: 12px 14px; border-bottom: 1px solid var(--kb-line); text-align: right; }
.kb-prose tr:last-child td { border-bottom: 0; }
.kb-prose [data-callout] { margin: 1.5em 0; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--kb-gold) 14%, var(--kb-surface)); border: 1px solid color-mix(in srgb, var(--kb-gold) 45%, transparent); }

/* FAQ */
.kb-faq { margin-top: 36px; }
.kb-faq h2 { margin: 0 0 14px; font-size: 26px; font-weight: 900; }
.kb-faq details { margin-bottom: 10px; border-radius: 16px; background: var(--kb-surface); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow); transition: border-color .2s ease; }
.kb-faq details[open] { border-color: color-mix(in srgb, var(--c) 45%, var(--kb-line)); }
.kb-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; font-size: 17px; font-weight: 800; line-height: 1.6; }
.kb-faq summary::-webkit-details-marker { display: none; }
.kb-faq summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--kb-surface-2); font-size: 20px; color: var(--c); transition: transform .2s ease; }
.kb-faq details[open] summary::after { transform: rotate(45deg); }
.kb-faq details > div { padding: 0 18px 16px; color: var(--kb-ink-2); line-height: 1.95; }
.kb-faq details > div p { margin: 0; }

/* tags */
.kb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.kb-tags a { padding: 6px 14px; border-radius: 999px; background: var(--kb-surface); border: 1px solid var(--kb-line); font-size: 14px; font-weight: 700; color: var(--kb-ink-2); }
.kb-tags a:hover { border-color: var(--c); color: var(--c); }

/* reactions */
.kb-react { margin-top: 34px; padding: 22px; border-radius: 22px; background: var(--kb-surface); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow); text-align: center; }
.kb-react__head h2 { margin: 0; font-size: 22px; font-weight: 900; }
.kb-react__head p { margin: 4px 0 16px; color: var(--kb-muted); font-size: 14px; font-weight: 700; }
.kb-react__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .kb-react__row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kb-react__btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 16px; background: var(--kb-surface-2); border: 2px solid transparent; transition: transform .15s ease, border-color .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.kb-react__btn:hover { transform: translateY(-3px); }
.kb-react__emoji { font-size: 30px; line-height: 1.2; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.kb-react__btn:hover .kb-react__emoji { transform: scale(1.18) rotate(-6deg); }
.kb-react__label { font-size: 12.5px; font-weight: 800; color: var(--kb-ink-2); }
.kb-react__count { min-height: 18px; font-size: 13px; font-weight: 900; color: var(--kb-muted); font-variant-numeric: tabular-nums; }
.kb-react__btn[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 10%, var(--kb-surface)); border-color: var(--c); }
.kb-react__btn[aria-pressed="true"] .kb-react__count { color: var(--c); }
.kb-react__btn.pop .kb-react__emoji { animation: kb-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes kb-pop { 40% { transform: scale(1.55) rotate(-10deg); } }
.kb-burst { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.kb-burst span { position: absolute; font-size: 22px; animation: kb-fly .9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes kb-fly { from { opacity: 1; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(var(--r)); } }

/* big CTA */
.kb-cta { position: relative; overflow: hidden; display: grid; gap: 18px; margin-top: 34px; padding: 26px 22px; border-radius: 26px; color: #fff; background: radial-gradient(circle at 100% 0, rgb(254 199 59 / .32), transparent 45%), radial-gradient(circle at 0 100%, rgb(46 182 175 / .5), transparent 50%), linear-gradient(150deg, var(--kb-navy), var(--kb-primary)); box-shadow: var(--kb-shadow-lg); }
.kb-cta__art { display: flex; gap: 10px; }
.kb-cta__art span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); font-size: 26px; animation: kb-bob 3.6s ease-in-out infinite; }
.kb-cta__art span:nth-child(2) { animation-delay: .4s; }
.kb-cta__art span:nth-child(3) { animation-delay: .8s; }
@keyframes kb-bob { 50% { transform: translateY(-6px); } }
.kb-cta__eyebrow { margin: 0; font-size: 14px; font-weight: 800; color: var(--kb-gold); }
.kb-cta__title { margin: 4px 0 10px; font-size: clamp(22px, 5.6vw, 30px); font-weight: 900; line-height: 1.4; }
.kb-cta ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 4px; color: #d6e6f5; font-weight: 700; }
@media (min-width: 768px) { .kb-cta { grid-template-columns: auto 1fr; align-items: center; padding: 34px; } .kb-cta__art { flex-direction: column; } }

/* share */
.kb-share p { margin: 0 0 10px; font-weight: 900; font-size: 15px; }
.kb-share--side { padding: 16px; border-radius: 18px; background: var(--kb-surface); border: 1px solid var(--kb-line); }
.kb-share--inline { margin-top: 28px; padding: 18px; border-radius: 18px; background: var(--kb-surface-2); text-align: center; }
.kb-share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-share--inline .kb-share__row { justify-content: center; }
.kb-share__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--kb-surface); border: 1px solid var(--kb-line); color: var(--kb-ink-2); transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.kb-share__btn svg { width: 19px; height: 19px; fill: currentColor; }
.kb-share__btn--copy svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kb-share__btn:hover { transform: translateY(-2px); color: #fff; }
.kb-share__btn--wa:hover { background: #25d366; }
.kb-share__btn--fb:hover { background: #1877f2; }
.kb-share__btn--tg:hover { background: #229ed9; }
.kb-share__btn--x:hover { background: #111; }
.kb-share__btn--in:hover { background: #0a66c2; }
.kb-share__btn--copy:hover { background: var(--kb-primary); }

/* prev / next */
.kb-prevnext { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .kb-prevnext { grid-template-columns: 1fr 1fr; } }
.kb-prevnext__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--kb-surface); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow); transition: border-color .15s ease, transform .15s ease; }
.kb-prevnext__item:hover { border-color: var(--kb-teal); transform: translateY(-2px); }
.kb-prevnext__item small { color: var(--kb-muted); font-weight: 800; }
.kb-prevnext__item b { font-weight: 900; line-height: 1.55; }
.kb-prevnext__item--end { text-align: left; }

.kb-related { padding: 20px 0 64px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c) 6%, transparent)); }

/* ---------------- mobile dock + sheets ---------------- */
.kb-dock { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--kb-surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--kb-line); box-shadow: 0 18px 40px -16px rgb(7 17 31 / .55); transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.kb-dock.show { transform: none; }
.kb-dock__btn { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 0; min-height: 50px; padding: 4px; border-radius: 14px; font-size: 18px; line-height: 1.2; }
.kb-dock__btn b { font-size: 11px; font-weight: 800; color: var(--kb-ink-2); min-height: 14px; }
.kb-dock__btn:active { background: var(--kb-surface-2); }
.kb-dock__cta { display: grid; place-items: center; flex: 1.4; min-height: 50px; padding: 0 12px; border-radius: 14px; background: linear-gradient(135deg, var(--kb-gold), var(--kb-gold-2)); color: #3b2500; font-weight: 900; font-size: 14px; white-space: nowrap; }
@media (min-width: 1100px) { .kb-dock { display: none; } }
body.kb--article { padding-bottom: 0; }
@media (max-width: 1099px) { body.kb--article .kb-foot { padding-bottom: 96px; } }

.kb-sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; background: rgb(7 17 31 / .5); backdrop-filter: blur(3px); }
.kb-sheet[hidden] { display: none; }
.kb-sheet__panel { width: 100%; max-height: 78vh; overflow-y: auto; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--kb-surface); animation: kb-sheet .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes kb-sheet { from { transform: translateY(100%); } }
.kb-sheet__grip { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: var(--kb-line); }
.kb-sheet__title { margin: 0 0 12px; font-size: 18px; font-weight: 900; text-align: center; }
.kb-react__row--sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.kb-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 90; padding: 10px 18px; border-radius: 14px; background: var(--kb-ink); color: var(--kb-bg); font-weight: 800; font-size: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.kb-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- footer ---------------- */
.kb-foot { padding: 0 0 28px; color: #b8c8da; background: var(--kb-navy); }
.kb-foot__cta { position: relative; top: -36px; display: grid; gap: 16px; align-items: center; padding: 26px 22px; border-radius: 26px; background: radial-gradient(circle at 100% 0, rgb(46 182 175 / .55), transparent 55%), linear-gradient(140deg, #123b63, var(--kb-primary)); color: #fff; box-shadow: var(--kb-shadow-lg); }
.kb-foot__eyebrow { margin: 0; color: var(--kb-gold); font-weight: 800; font-size: 14px; }
.kb-foot__cta h2 { margin: 4px 0 6px; font-size: clamp(22px, 5.4vw, 30px); font-weight: 900; line-height: 1.4; }
.kb-foot__cta p { margin: 0; color: #d6e6f5; }
@media (min-width: 768px) { .kb-foot__cta { grid-template-columns: 1fr auto; padding: 34px 40px; } }
.kb-foot__grid { display: grid; gap: 26px; padding-top: 4px; }
@media (min-width: 768px) { .kb-foot__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.kb-foot__about p { margin: 12px 0 0; line-height: 1.9; font-size: 14.5px; }
.kb-foot__head { margin: 0 0 8px; color: #fff; font-weight: 900; }
.kb-foot nav a { display: block; padding: 5px 0; font-size: 14.5px; font-weight: 600; }
.kb-foot nav a:hover { color: var(--kb-gold); }
.kb-foot__social { display: flex; gap: 8px; margin-top: 14px; }
.kb-foot__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgb(255 255 255 / .08); color: #fff; font-weight: 900; }
.kb-foot__copy { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .08); font-size: 13px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------------- TL;DR + brand box (GEO) ---------------- */
.kb-tldr { position: relative; margin: 0 0 28px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--kb-gold) 16%, var(--kb-surface)), color-mix(in srgb, var(--kb-teal) 10%, var(--kb-surface))); border: 1px solid color-mix(in srgb, var(--kb-gold) 45%, transparent); }
.kb-tldr__label { margin: 0 0 6px; font-size: 14px; font-weight: 900; color: color-mix(in srgb, var(--kb-gold-2) 70%, var(--kb-ink)); }
.kb-tldr__text { margin: 0; font-size: 17.5px; line-height: 1.95; font-weight: 600; color: var(--kb-ink); }
.kb-about { display: flex; gap: 16px; align-items: flex-start; margin-top: 34px; padding: 20px; border-radius: 20px; background: var(--kb-surface); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow); }
.kb-about img { flex-shrink: 0; border-radius: 16px; background: #fff; }
.kb-about h2 { margin: 0 0 6px; font-size: 19px; font-weight: 900; }
.kb-about p { margin: 0; color: var(--kb-ink-2); line-height: 1.9; font-size: 15.5px; }
.kb-about__links { margin-top: 8px !important; font-weight: 800; font-size: 14px !important; }
.kb-about__links a { color: var(--kb-primary); }
@media (prefers-color-scheme: dark) { .kb-about__links a { color: var(--kb-teal); } }
@media (max-width: 520px) { .kb-about { flex-direction: column; } }
.kb-foot__contact { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.kb-foot__contact a:hover { color: var(--kb-gold); }
.kb-foot__contact b { color: #fff; }
.kb-wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; transition: color 150ms ease; }
.kb-wa svg { flex-shrink: 0; color: #25d366; transition: color 150ms ease; }
.kb-wa:hover { color: var(--kb-gold); }
.kb-wa:hover svg { color: var(--kb-gold); }

/* ---------------- featured: image beside text (covers carry their own title art) ---------------- */
.kb-feature { display: flex; flex-direction: column; min-height: 0; background: linear-gradient(160deg, var(--kb-navy), color-mix(in srgb, var(--c) 45%, var(--kb-navy))); }
.kb-feature::after { display: none; }
.kb-feature__media { position: relative; inset: auto; z-index: 0; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.kb-feature__body { min-height: 0; height: auto; justify-content: flex-start; padding: 20px 22px 24px; }
@media (min-width: 900px) {
    .kb-feature { min-height: 0; }
    .kb-feature__body { padding: 24px 30px 30px; }
    .kb-feature h3 { font-size: clamp(22px, 2.2vw, 30px); }
}
.kb-card--sm { align-items: center; }
.kb-card--sm .kb-card__media { width: 46%; aspect-ratio: 16 / 9; align-self: center; margin: 10px; margin-inline-end: 0; border-radius: 12px; }
.kb-featured__side .kb-card--sm { flex-direction: column; align-items: stretch; }
.kb-featured__side .kb-card--sm .kb-card__media { width: 100%; margin: 0; border-radius: 0; }
.kb-featured__side .kb-card--sm .kb-card__title { -webkit-line-clamp: 2; }
.kb-featured__side .kb-card--sm .kb-card__body { padding: 12px 16px 14px; gap: 4px; }
.kb-card__top .kb-pill { white-space: nowrap; }
.kb-feature__body { flex: 1; }
