/* FAQ, contact and blog (v2): build on home.css (.kh tokens and components). */

/* ---------------------------------------------------------------- shared */
.kpg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: #5f6b7a; font-size: 13.5px; }
.kh .kpg-crumbs a { color: #3d4a48 !important; text-decoration: none; }
.kh .kpg-crumbs a:hover { color: var(--kh-ink) !important; text-decoration: underline; }
.kpg-crumbs--light { color: rgba(255, 255, 255, .6); }
.kh .kpg-crumbs--light a { color: rgba(255, 255, 255, .8) !important; }
.kh .kpg-crumbs--light a:hover { color: #fff !important; }

/* Light hero, running up under the floating header */
.kpg-hero { padding: calc(108px + clamp(24px, 3.5vw, 48px)) 0 clamp(36px, 4.5vw, 56px); background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--kh-accent) 26%, transparent), transparent 60%), var(--kh-soft); }
.public-site .kisoma-public-navbar + .kh > .kpg-hero:first-child,
.public-site .kisoma-public-navbar + .kh > .kct-hero:first-child,
.public-site .kisoma-public-navbar + .kh > main:first-child > .kpg-hero:first-child { margin-top: -84px; }
:root .public-site .kh .kpg-hero h1 { margin: 12px 0 0; color: var(--kh-ink) !important; font-size: clamp(30px, 3.8vw, 48px) !important; line-height: 1.1 !important; letter-spacing: -0.025em !important; text-wrap: balance; }
.kpg-hero__lead { max-width: 640px; margin: 16px 0 0; color: #3d4a48; font-size: 16.5px; line-height: 1.6; }
.kpg-hero--center { text-align: center; }
.kpg-hero--center .kpg-crumbs { justify-content: center; }
.kpg-hero--center .kpg-hero__lead { margin-inline: auto; }

/* ================================================================ FAQ */
.kfq-search { position: relative; max-width: 620px; margin: 28px auto 0; }
.kfq-search i { position: absolute; top: 50%; left: 18px; color: #5f6b7a; transform: translateY(-50%); }
.kfq-search input { width: 100%; min-height: 56px; padding: 0 18px 0 48px; border: 1px solid #cfd8d4; border-radius: 12px; background: #fff; color: var(--kh-ink); font-size: 16px; box-shadow: 0 16px 40px -28px rgba(10, 22, 22, .4); }
.kfq-search input:focus { outline: none; border-color: var(--kh-night-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kh-accent) 45%, transparent); }
.kfq-search__status { margin: 12px 0 0; color: #5f6b7a; font-size: 14px; }

.kfq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.kfq-group + .kfq-group { margin-top: 40px; }
:root .public-site .kh .kfq-group h2 { margin: 0 0 16px; color: var(--kh-ink) !important; font-size: 22px !important; line-height: 1.3 !important; }
.kfq-item summary, .kct .kfq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
.kfq-item summary::-webkit-details-marker { display: none; }
.kfq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--kh-ink); font-size: 20px; line-height: 1; transition: transform .18s ease; }
.kfq-item[open] summary::after { transform: rotate(45deg); }
.kfq-item .kh-faq__a { padding: 0 20px 18px !important; }
.kfq-empty { padding: 40px 24px; border: 1px dashed var(--kh-line); border-radius: var(--kh-radius); text-align: center; }
.kfq-empty i { color: var(--kh-ink); font-size: 28px; }
:root .public-site .kh .kfq-empty h2 { margin: 12px 0 0; font-size: 20px !important; }
.kfq-empty p { margin: 8px 0 18px; color: #4a5654; }

.kfq-help { position: sticky; top: 110px; display: grid; gap: 14px; }
.kfq-help__card { padding: 24px; border-radius: var(--kh-radius-lg); background: var(--kh-night-2); color: rgba(255, 255, 255, .78); }
.kfq-help__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--kh-accent); color: var(--kh-accent-ink); font-size: 18px; }
:root .public-site .kh .kfq-help__card h2 { margin: 16px 0 0; color: #fff !important; font-size: 20px !important; }
.kfq-help__card p { margin: 8px 0 0; font-size: 14.5px; }
.kfq-help__actions { display: grid; gap: 10px; margin-top: 18px; }
.kfq-help__actions .kh-btn { width: 100%; }
.kfq-help__mail { margin-top: 14px !important; font-size: 14px; }
.kh .kfq-help__mail a { color: #fff !important; }
.kfq-links { display: grid; overflow: hidden; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: #fff; }
.kh .kfq-links a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--kh-line); color: var(--kh-ink) !important; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.kfq-links a:last-child { border-bottom: 0; }
.kfq-links a:hover { background: var(--kh-soft); }
.kfq-links i { width: 18px; color: var(--kh-night-2); text-align: center; }

/* ================================================================ contact */
.kh .kct-hero { padding-bottom: clamp(48px, 6vw, 80px); text-align: left; }
.kct-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.kct-hero__copy .kh-hero__badge { margin-inline: 0; }
.kct-hero .kh-hero__lead { margin-inline: 0; }

.kct-ways { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.kh .kct-ways a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #fff !important; font-size: 15.5px; font-weight: 500; text-decoration: none; transition: border-color .18s ease, background-color .18s ease; }
.kct-ways a:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .09); }
.kct-ways__icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--kh-accent); color: var(--kh-accent-ink); font-size: 18px; }
.kct-ways small { display: block; color: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kct-social { display: flex; gap: 8px; margin-top: 18px; }
.kh .kct-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; color: #fff !important; }
.kct-social a:hover { border-color: var(--kh-accent); color: var(--kh-accent) !important; }

.kct-form-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--kh-radius-lg); background: #fff; color: var(--kh-ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
:root .public-site .kh .kct-form-card h2 { margin: 0; color: var(--kh-ink) !important; font-size: 22px !important; }
.kct-form-card > p { margin: 6px 0 18px; color: #4a5654; font-size: 14.5px; }
.kct-form { display: grid; gap: 14px; }
.kct-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kct-field label { display: block; margin-bottom: 6px; color: var(--kh-ink); font-size: 13.5px; font-weight: 600; }
.kct-optional { color: #8a9593; font-weight: 400; }
.kct-field input, .kct-field select, .kct-field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfd8d4; border-radius: var(--kh-btn-radius); background: #fff; color: var(--kh-ink); font: inherit; font-size: 15px; }
.kct-field textarea { min-height: 112px; resize: vertical; }
.kct-field input:focus, .kct-field select:focus, .kct-field textarea:focus { outline: none; border-color: var(--kh-night-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kh-accent) 45%, transparent); }
.kct-captcha { overflow-x: auto; }
.kct-submit { width: 100%; justify-content: space-between !important; }
.kct-form__note { margin: 0; color: #8a9593; font-size: 12.5px; text-align: center; }

.kct-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.kct-steps li { padding: 24px; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: #fff; }
.kct-steps span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--kh-night-2); color: var(--kh-accent); font-size: 14px; font-weight: 700; }
:root .public-site .kh .kct-steps h3 { margin: 16px 0 0; color: var(--kh-ink) !important; font-size: 18px !important; }
.kct-steps p { margin: 8px 0 0; color: #4a5654; font-size: 14.5px; line-height: 1.6; }

/* ================================================================ blog index */
.kbl-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px 48px; align-items: end; }
.kbl-search { position: relative; }
.kbl-search i { position: absolute; top: 50%; left: 16px; color: #5f6b7a; transform: translateY(-50%); }
.kbl-search input { width: 100%; min-height: 50px; padding: 0 16px 0 44px; border: 1px solid #cfd8d4; border-radius: 12px; background: #fff; color: var(--kh-ink); font-size: 15.5px; }
.kbl-search input:focus { outline: none; border-color: var(--kh-night-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kh-accent) 45%, transparent); }
.kbl-cats { display: flex; gap: 8px; margin-top: 28px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.kh .kbl-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--kh-line); border-radius: 999px; background: #fff; color: #3d4a48 !important; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.kh .kbl-cats a:hover { border-color: var(--kh-ink); color: var(--kh-ink) !important; }
.kh .kbl-cats a.is-active { border-color: var(--kh-night-2); background: var(--kh-night-2); color: #fff !important; }
.kbl-cats small { padding: 1px 7px; border-radius: 999px; background: var(--kh-soft); color: #5f6b7a; font-size: 11.5px; }
.kbl-cats a.is-active small { background: rgba(255, 255, 255, .16); color: #fff; }
.kbl-status { margin: 0 0 18px; color: #5f6b7a; font-size: 14px; }

.kbl-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; margin-bottom: 28px; overflow: hidden; border: 1px solid var(--kh-line); border-radius: var(--kh-radius-lg); background: #fff; }
.kbl-featured__image { display: block; min-height: 300px; background: var(--kh-soft); }
.kbl-featured__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kbl-featured__body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.5vw, 40px); }
.kbl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kh .kbl-tags a.kh-pill { text-decoration: none; color: #3d4a48 !important; }
:root .public-site .kh .kbl-featured h2 { margin: 16px 0 0; font-size: clamp(22px, 2.4vw, 30px) !important; line-height: 1.2 !important; }
.kh .kbl-featured h2 a, .kh .kbl-card h3 a { color: var(--kh-ink) !important; text-decoration: none; }
.kh .kbl-featured h2 a:hover, .kh .kbl-card h3 a:hover { text-decoration: underline; }
.kbl-featured__body > p:not(.kbl-meta) { margin: 12px 0 0; color: #4a5654; font-size: 15.5px; line-height: 1.65; }
.kbl-featured__body .kh-btn { margin-top: auto; }
.kbl-featured .kbl-meta { margin: 14px 0 22px; }

.kbl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1199.98px) {
    .kbl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kbl-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: #fff; transition: border-color .18s ease; }
.kbl-card:hover { border-color: var(--kh-ink); }
.kbl-card__image { display: block; aspect-ratio: 16 / 9; background: var(--kh-soft); }
.kbl-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kbl-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.kh .kbl-card__cat { color: var(--kh-night-2) !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
:root .public-site .kh .kbl-card h3 { margin: 8px 0 0; font-size: 17px !important; line-height: 1.35 !important; }
.kbl-card__body > p:not(.kbl-meta) { margin: 8px 0 0; color: #4a5654; font-size: 14.5px; line-height: 1.6; }
.kbl-card .kbl-meta { margin-top: auto; padding-top: 14px; }
.kbl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: #5f6b7a; font-size: 13px; }
.kbl-meta > * + *::before { content: "·"; margin-right: 14px; }
.kbl-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, var(--kh-night-2), var(--kh-night)); color: var(--kh-accent); font-size: 32px; }

.kbl-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.kh .kbl-pages a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--kh-line); border-radius: var(--kh-btn-radius); background: #fff; color: var(--kh-ink) !important; font-weight: 600; text-decoration: none; }
.kh .kbl-pages a:hover { border-color: var(--kh-ink); }
.kh .kbl-pages a.is-active { border-color: var(--kh-night-2); background: var(--kh-night-2); color: #fff !important; }

.kbl-empty { padding: 48px 24px; border: 1px dashed var(--kh-line); border-radius: var(--kh-radius); background: #fff; text-align: center; }
.kbl-empty i { color: var(--kh-ink); font-size: 30px; }
:root .public-site .kh .kbl-empty h1, :root .public-site .kh .kbl-empty h2 { margin: 14px 0 0; font-size: 22px !important; }
.kbl-empty p { margin: 8px 0 20px; color: #4a5654; }

/* ================================================================ article */
.kar-hero__inner { max-width: 860px; }
.kar-cat { margin-bottom: 4px; text-decoration: none; }
.kh .kar-cat { color: var(--kh-accent-ink) !important; }
.kar-lede { max-width: 720px; margin: 16px 0 0; color: #3d4a48; font-size: 18px; line-height: 1.6; }
.kar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; color: #5f6b7a; font-size: 14px; }
.kar-meta__author { display: inline-flex; align-items: center; gap: 10px; color: var(--kh-ink); font-weight: 600; }
.kar-meta__author img, .kar-meta__initial { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.kar-meta__initial { display: inline-flex; align-items: center; justify-content: center; background: var(--kh-night-2); color: var(--kh-accent); font-size: 14px; }

.kar-body { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.kar-image img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--kh-radius-lg); }
.kar-image figcaption { margin-top: 10px; color: #5f6b7a; font-size: 13.5px; text-align: center; }

.kar-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--kh-line); }
.kar-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kar-share > span { margin-right: 4px; color: var(--kh-ink); font-size: 14px; font-weight: 600; }
.kh .kar-share a, .kar-share button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--kh-line); border-radius: 10px; background: #fff; color: var(--kh-ink) !important; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.kar-share a:hover, .kar-share button:hover { border-color: var(--kh-ink); }
.kar-share button.is-copied { border-color: var(--kh-night-2); background: var(--kh-accent); }

.kar-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 32px; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--kh-radius-lg); background: radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--kh-brand) 30%, transparent), transparent 70%), var(--kh-night-2); color: rgba(255, 255, 255, .78); }
.kar-promo .kh-eyebrow { color: var(--kh-accent); }
:root .public-site .kh .kar-promo h2 { margin: 10px 0 0; color: #fff !important; font-size: clamp(20px, 2.2vw, 26px) !important; line-height: 1.25 !important; }
.kar-promo p { margin: 8px 0 0; font-size: 15px; }
.kar-promo__actions { display: grid; gap: 10px; }

.kar-related { margin-top: clamp(40px, 5vw, 64px); }
:root .public-site .kh .kar-related > h2 { margin: 0 0 18px; color: var(--kh-ink) !important; font-size: 24px !important; }
.kar-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.kh .kar-adjacent__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); color: var(--kh-ink) !important; text-decoration: none; }
.kar-adjacent__item:hover { border-color: var(--kh-ink); }
.kar-adjacent__item--next { text-align: right; }
.kar-adjacent__item small { color: #5f6b7a; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.kar-adjacent__item span { font-weight: 600; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
    .kfq-grid, .kct-hero__grid, .kbl-hero__grid, .kbl-featured, .kar-promo { grid-template-columns: minmax(0, 1fr); }
    .kfq-help { position: static; }
    .kbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kct-steps { grid-template-columns: minmax(0, 1fr); }
    .kbl-featured__image { min-height: 220px; }
}

@media (max-width: 575.98px) {
    .public-site .kisoma-public-navbar + .kh > .kpg-hero:first-child,
    .public-site .kisoma-public-navbar + .kh > .kct-hero:first-child,
    .public-site .kisoma-public-navbar + .kh > main:first-child > .kpg-hero:first-child { margin-top: -72px; }
    .kpg-hero { padding-top: calc(96px + 16px); }
    .kct-form__row, .kbl-grid, .kar-adjacent { grid-template-columns: minmax(0, 1fr); }
    .kar-adjacent__item--next { text-align: left; }
}

/* ================================================================ legal pages */
.klg-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px 48px; align-items: end; }
.klg-hero__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--kh-night-2); color: var(--kh-accent); font-size: 20px; }
.klg-switch { display: grid; gap: 8px; }
.kh .klg-switch a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--kh-line); border-radius: 12px; background: #fff; color: var(--kh-ink) !important; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: border-color .18s ease; }
.kh .klg-switch a:hover { border-color: var(--kh-ink); }
.kh .klg-switch a.is-active { border-color: var(--kh-night-2); background: var(--kh-night-2); color: #fff !important; }
.klg-switch i { width: 18px; color: var(--kh-night-2); text-align: center; }
.klg-switch a.is-active i { color: var(--kh-accent); }

.klg-body { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 72px); }
.klg-summary { margin-bottom: 28px; padding: 20px 22px; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: color-mix(in srgb, var(--kh-accent) 14%, #fff); }
.klg-summary__title { margin: 0; color: var(--kh-ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.klg-summary .kh-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; padding-top: 12px; border-top-color: color-mix(in srgb, var(--kh-night-2) 15%, transparent); }

.klg-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 40px; padding: clamp(22px, 3.5vw, 32px); border-radius: var(--kh-radius-lg); background: var(--kh-night-2); color: rgba(255, 255, 255, .78); }
:root .public-site .kh .klg-help h2 { margin: 0; color: #fff !important; font-size: 22px !important; }
.klg-help p { margin: 8px 0 0; font-size: 15px; }
.klg-help__actions { display: grid; gap: 10px; }

@media (max-width: 991.98px) {
    .klg-hero__grid, .klg-help { grid-template-columns: minmax(0, 1fr); }
    .klg-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kh .klg-switch a { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13.5px; }
}

@media (max-width: 575.98px) {
    .klg-switch, .klg-summary .kh-checks { grid-template-columns: minmax(0, 1fr); }
    .kh .klg-switch a { flex-direction: row; align-items: center; }
}
/* Prose (legal documents and blog articles) in the new palette */
:root .public-site .kh .kisoma-prose :is(h2, h3, h4) { color: var(--kh-ink) !important; letter-spacing: -0.012em !important; }
.kh .kisoma-prose a { color: var(--kh-night-2) !important; text-decoration: underline; text-underline-offset: 3px; }
.kh .kisoma-prose a:hover { color: var(--kh-brand) !important; }
.kh .kisoma-prose :is(p, li) { color: #2c3836; }
.kh .kisoma-prose strong { color: var(--kh-ink); }
.kh .kisoma-content-toc a.is-active, .kh .kisoma-content-toc a[aria-current] { color: var(--kh-night-2) !important; border-color: var(--kh-night-2) !important; }
/* ================================================================ blog: category rows and compact cards */
.kbl-body { padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.kbl-row + .kbl-row { margin-top: clamp(28px, 3.5vw, 40px); padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--kh-line); }
.kbl-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
:root .public-site .kh .kbl-row__head h2 { margin: 0; color: var(--kh-ink) !important; font-size: clamp(20px, 2vw, 24px) !important; line-height: 1.25 !important; }
.kh .kbl-row__head h2 a { color: inherit !important; text-decoration: none; }
.kh .kbl-row__head h2 a:hover { text-decoration: underline; }
.kh .kbl-row__all { flex: 0 0 auto; color: var(--kh-night-2) !important; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.kh .kbl-row__all:hover { text-decoration: underline; }

.kbl-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }

.kbc { display: flex; flex-direction: column; min-width: 0; }
.kbc__image { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--kh-soft); }
.kbc__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.kbc:hover .kbc__image img { transform: scale(1.03); }
.kbc__fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--kh-night-2), var(--kh-night)); color: var(--kh-accent); font-size: 28px; }
:root .public-site .kh .kbc__title {
    display: -webkit-box;
    min-height: calc(2 * 1.35em);
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--kh-ink) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.005em !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.kh .kbc__title a { color: inherit !important; text-decoration: none; }
.kh .kbc__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kbc__meta { display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 0; color: #5f6b7a; font-size: 13px; line-height: 1.5; }
.kbc__meta > * + *::before { content: "|"; margin: 0 8px; color: #b3bcba; }
.kbc__author { overflow: hidden; max-width: 100%; color: var(--kh-night-2); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 991.98px) {
    .kbl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    /* Category rows swipe sideways on phones; the single-category grid stacks. */
    .kbl-row .kbl-cards { --kbl-bleed: calc(var(--bs-gutter-x, 1.5rem) * .5); display: flex; gap: 14px; margin-inline: calc(-1 * var(--kbl-bleed)); padding: 0 var(--kbl-bleed) 6px; scroll-padding-inline: var(--kbl-bleed); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .kbl-row .kbl-cards::-webkit-scrollbar { display: none; }
    .kbl-row .kbc { flex: 0 0 72%; scroll-snap-align: start; }
    .kbl-cards--grid { grid-template-columns: minmax(0, 1fr); }
    .kbl-row__head { align-items: center; }
}
/* ================================================================ article (v3): reading aids and typography */
.kar-progress { position: fixed; inset: 0 0 auto; z-index: 1100; height: 3px; pointer-events: none; }
.kar-progress span { display: block; height: 100%; background: var(--kh-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .1s linear; }

/* The featured image sits half on the hero */
.kar-hero--image { padding-bottom: clamp(110px, 14vw, 170px); }
.kar-hero--image + .kar-body { padding-top: 0; }
.kar-image { position: relative; z-index: 1; margin-top: calc(-1 * clamp(90px, 12vw, 140px)); margin-bottom: clamp(28px, 4vw, 48px); }
.kar-image__frame { position: relative; max-width: 1040px; margin: 0 auto; overflow: hidden; border: 1px solid var(--kh-line); border-radius: var(--kh-radius-lg); background: #fff; box-shadow: 0 40px 80px -40px rgba(4, 10, 7, .45); }
.kar-image__frame img { display: block; width: 100%; max-height: 480px; object-fit: contain; border-radius: 0 !important; background: #fff; }
.kh .kar-image__full { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(10, 22, 22, .78); color: #fff !important; font-size: 12.5px; font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); }
.kh .kar-image__full:hover { background: var(--kh-night-2); }
.kar-image figcaption { max-width: 1040px; margin: 10px auto 0; color: #5f6b7a; font-size: 13.5px; text-align: center; }

/* Body typography */
.kh .kar-prose { color: #26322f; font-size: 18px; line-height: 1.78; }
.kh .kar-prose > * + * { margin-top: 1.1em; }
:root .public-site .kh .kar-prose h2 { margin-top: 2.2em !important; margin-bottom: .55em; font-size: clamp(23px, 2.2vw, 28px) !important; line-height: 1.25 !important; scroll-margin-top: 110px; }
:root .public-site .kh .kar-prose h3 { margin-top: 1.7em !important; margin-bottom: .45em; font-size: clamp(19px, 1.8vw, 21px) !important; line-height: 1.3 !important; scroll-margin-top: 110px; }
.kh .kar-prose :is(p, li) { color: #26322f; font-size: inherit; }
.kh .kar-prose ul, .kh .kar-prose ol { padding-left: 1.3em; }
.kh .kar-prose li + li { margin-top: .4em; }
.kh .kar-prose ul li::marker { color: var(--kh-brand); }
.kh .kar-prose ol li::marker { color: var(--kh-night-2); font-weight: 700; }
.kh .kar-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--kh-line); opacity: 1; }
.kh .kar-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--kh-accent); color: var(--kh-ink); font-size: 1.05em; font-style: normal; }
.kh .kar-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.kh .kar-prose figure { margin: 1.8em 0; }
.kh .kar-prose figcaption { margin-top: 8px; color: #5f6b7a; font-size: 14px; text-align: center; }

/* "Quick answer" and "Source" paragraphs */
.kh .kar-prose .kar-quick { position: relative; margin: 1.6em 0; padding: 18px 20px 18px 54px; border: 1px solid color-mix(in srgb, var(--kh-night-2) 18%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--kh-accent) 22%, #fff); color: var(--kh-ink); font-size: 17px; line-height: 1.65; }
.kh .kar-prose .kar-quick::before { content: "\f0eb"; position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--kh-night-2); color: var(--kh-accent); font-family: "Font Awesome 6 Free"; font-size: 12px; font-weight: 900; }
.kh .kar-prose .kar-source { margin-top: .6em; color: #5f6b7a; font-size: 14px; font-style: italic; }

/* Tables */
.kh .kar-prose .kar-table { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--kh-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.kh .kar-prose .kar-table table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.kh .kar-prose .kar-table :is(th, td) { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--kh-line); text-align: left; vertical-align: top; }
.kh .kar-prose .kar-table thead th, .kh .kar-prose .kar-table tr:first-child th { background: var(--kh-soft); color: var(--kh-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kh .kar-prose .kar-table tbody tr:last-child > * { border-bottom: 0; }
.kh .kar-prose .kar-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--kh-soft) 60%, #fff); }

/* After the article: aligned with the text column */
.kar-after { display: grid; grid-template-columns: 230px minmax(0, 780px); column-gap: clamp(34px, 5vw, 64px); }
.kar-after > * { grid-column: 2; }
.kar-end { margin-top: 40px; }
.kh .kar-end__cat { color: #3d4a48 !important; text-decoration: none; }
.kar-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 22px; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: var(--kh-soft); }
.kar-author img, .kar-author__initial { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.kar-author__initial { display: inline-flex; align-items: center; justify-content: center; background: var(--kh-night-2); color: var(--kh-accent); font-size: 22px; font-weight: 600; }
.kar-author p { margin: 0; }
.kar-author__label { color: #5f6b7a; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.kar-author__name { margin-top: 2px !important; color: var(--kh-ink); font-size: 18px; font-weight: 600; }
.kar-author__bio { margin-top: 6px !important; color: #4a5654; font-size: 14.5px; line-height: 1.6; }
.kar-after .kar-promo { margin-top: 24px; }
.kar-adjacent { margin-top: clamp(36px, 4vw, 56px); }
.kar-related .kbl-row__head { margin-bottom: 18px; }

@media (max-width: 991.98px) {
    .kar-after { grid-template-columns: minmax(0, 1fr); }
    .kar-after > * { grid-column: 1; }
}

@media (max-width: 575.98px) {
    .kh .kar-prose { font-size: 17px; }
    .kar-image { margin-top: -80px; }
    .kar-hero--image { padding-bottom: 100px; }
    .kar-image__frame img { max-height: 280px; }
    .kar-author { flex-direction: column; }
    .kar-related .kbl-cards { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
    .kar-progress span { transition: none; }
}