/*
 * Katy News Futuristic Article Body
 * All styles are intentionally scoped under .knfb-wrap so the plugin does
 * not alter the theme header, navigation, side panel, footer, or global body.
 */
.knfb-wrap {
    --knfb-max: 1180px;
    --knfb-ink: #071c38;
    --knfb-muted: #63728a;
    --knfb-blue: #0a66ff;
    --knfb-blue-2: #2c8cff;
    --knfb-line: #dfe8f4;
    --knfb-surface: #ffffff;
    --knfb-soft: #f5f9ff;
    --knfb-radius: 18px;
    --knfb-shadow: 0 16px 38px rgba(23, 65, 116, .12);
    width: 100%;
    color: var(--knfb-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    isolation: isolate;
}

.knfb-wrap *,
.knfb-wrap *::before,
.knfb-wrap *::after {
    box-sizing: border-box;
}

.knfb-inner {
    width: min(var(--knfb-max), calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 36px;
}

.knfb-wrap a {
    color: inherit;
    text-decoration: none;
}

.knfb-intro {
    position: relative;
    min-height: 178px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    overflow: hidden;
    border: 1px solid #dfebf8;
    border-radius: 26px;
    margin-bottom: 18px;
    padding: 28px 34px;
    background:
        linear-gradient(115deg, rgba(255,255,255,.97) 0%, rgba(249,252,255,.96) 52%, rgba(232,243,255,.88) 100%),
        radial-gradient(circle at 82% 25%, rgba(10,102,255,.12), transparent 38%);
    box-shadow: 0 16px 50px rgba(35, 84, 145, .09);
}


.knfb-intro-copy {
    position: relative;
    z-index: 2;
}

.knfb-eyebrow {
    margin-bottom: 8px;
    color: var(--knfb-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.knfb-main-heading {
    margin: 0 0 8px;
    color: var(--knfb-ink);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 850;
}

.knfb-subheading {
    margin: 0;
    max-width: 620px;
    color: #53627a;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.5;
}

.knfb-preferred-source-wrap {
    margin-top: 18px;
}

.knfb-preferred-source-button,
.knfb-wrap .knfb-preferred-source-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid rgba(14, 95, 210, .18);
    border-radius: 12px;
    background: #0b63ce;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 8px 22px rgba(10, 95, 210, .18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.knfb-preferred-source-button:hover,
.knfb-preferred-source-button:focus-visible {
    background: #084fa9;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 11px 26px rgba(10, 95, 210, .24);
}


.knfb-filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    margin-bottom: 10px;
    scrollbar-width: thin;
}

.knfb-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #dbe7f4;
    border-radius: 13px;
    background: rgba(255,255,255,.95);
    color: #183251;
    box-shadow: 0 6px 16px rgba(23, 65, 116, .05);
    font-size: 13px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.knfb-chip:hover,
.knfb-chip:focus-visible {
    transform: translateY(-1px);
    border-color: #94bfff;
    color: var(--knfb-blue);
    box-shadow: 0 8px 22px rgba(10,102,255,.10);
}

.knfb-chip.is-active {
    color: #fff;
    border-color: var(--knfb-blue);
    background: linear-gradient(135deg, #0a66ff, #278eff);
    box-shadow: 0 10px 26px rgba(10,102,255,.25);
}

.knfb-chip-icon {
    opacity: .95;
    font-size: 14px;
}

.knfb-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 14px;
    margin-top: 4px;
}

.knfb-hero-card,
.knfb-support-card,
.knfb-standard-card,
.knfb-tall-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe8f4;
    background: var(--knfb-surface);
    box-shadow: var(--knfb-shadow);
}

.knfb-hero-card {
    min-height: 518px;
    border-radius: 22px;
}

.knfb-hero-card .knfb-card-media,
.knfb-tall-card .knfb-card-media {
    position: absolute;
    inset: 0;
    display: block;
}

.knfb-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.knfb-image-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 75% 18%, rgba(34,138,255,.65), transparent 28%),
        linear-gradient(135deg, #0b2d58, #0a66ff 60%, #6db9ff);
    color: rgba(255,255,255,.92);
    font-weight: 900;
    letter-spacing: .14em;
}

.knfb-hero-card:hover .knfb-image,
.knfb-support-card:hover .knfb-image,
.knfb-standard-card:hover .knfb-image,
.knfb-tall-card:hover .knfb-image {
    transform: scale(1.035);
}

.knfb-media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,18,39,.06) 18%, rgba(3,17,36,.22) 48%, rgba(2,14,30,.90) 100%);
}

.knfb-hero-content,
.knfb-tall-content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
}

.knfb-hero-content h3,
.knfb-tall-content h3,
.knfb-support-content h3,
.knfb-standard-content h3 {
    margin: 0;
    letter-spacing: -.025em;
}

.knfb-hero-content h3 {
    max-width: 760px;
    margin-top: 10px;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.05;
    font-weight: 880;
}

.knfb-hero-content p {
    max-width: 690px;
    margin: 10px 0 20px;
    color: rgba(255,255,255,.92);
    line-height: 1.55;
    font-size: 15px;
}

.knfb-date {
    display: inline-block;
    color: #718096;
    font-size: 12px;
    line-height: 1.2;
}

.knfb-hero-content .knfb-date,
.knfb-tall-content .knfb-date {
    display: block;
    margin-top: 12px;
    color: rgba(255,255,255,.8);
}

.knfb-badge,
.knfb-badge-float {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 8px;
    color: #fff !important;
    background: linear-gradient(135deg, #0a66ff, #328fff);
    box-shadow: 0 6px 14px rgba(10,102,255,.22);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.knfb-badge-float {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 2;
}

.knfb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #0a66ff, #1683ff);
    box-shadow: 0 10px 24px rgba(10,102,255,.28);
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.knfb-button:hover,
.knfb-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(10,102,255,.34);
}

.knfb-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.knfb-support-card {
    min-height: 250px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
}

.knfb-support-card .knfb-card-media {
    position: relative;
    display: block;
    height: 116px;
    overflow: hidden;
}

.knfb-support-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 14px 14px;
}

.knfb-support-content .knfb-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.knfb-support-content .knfb-date {
    margin: 0 0 6px;
}

.knfb-support-content h3 {
    font-size: 17px;
    line-height: 1.18;
    font-weight: 850;
}

.knfb-text-link {
    margin-top: auto;
    padding-top: 10px;
    color: var(--knfb-blue) !important;
    font-size: 12px;
    font-weight: 850;
}

.knfb-text-link-light {
    color: #fff !important;
}

.knfb-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 12px;
}

.knfb-section-heading h3 {
    position: relative;
    margin: 0;
    padding-left: 15px;
    color: var(--knfb-ink);
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 900;
}

.knfb-section-heading h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 5px;
    border-radius: 99px;
    background: linear-gradient(180deg, #0a66ff, #44a5ff);
}

.knfb-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #0a66ff, rgba(10,102,255,0));
    opacity: .35;
}

.knfb-section-heading > a {
    color: var(--knfb-blue);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

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

.knfb-latest-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knfb-standard-card {
    display: flex;
    flex-direction: column;
    min-height: 374px;
    border-radius: 18px;
}

.knfb-standard-card .knfb-card-media {
    position: relative;
    display: block;
    height: 154px;
    overflow: hidden;
}

.knfb-standard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 15px 15px;
}

.knfb-standard-content h3 {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.22;
    font-weight: 850;
}

.knfb-standard-content p {
    margin: 8px 0 0;
    color: #5e6d83;
    font-size: 13px;
    line-height: 1.45;
}

.knfb-magazine-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 14px;
}

.knfb-hero-magazine {
    min-height: 560px;
}

.knfb-tall-card {
    min-height: 560px;
    border-radius: 22px;
}

.knfb-tall-content h3 {
    margin-top: 10px;
    font-size: clamp(25px, 2.6vw, 38px);
    line-height: 1.07;
    font-weight: 880;
}

.knfb-tall-content p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.9);
    line-height: 1.5;
    font-size: 14px;
}

.knfb-grid-only {
    margin-top: 4px;
}

.knfb-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid #d8e8fb;
    border-radius: 18px;
    background:
        radial-gradient(circle at 86% 15%, rgba(10,102,255,.11), transparent 22%),
        linear-gradient(135deg, #f8fbff, #eaf4ff);
    box-shadow: 0 12px 32px rgba(23, 65, 116, .08);
}

.knfb-cta-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #0a66ff;
    background: #fff;
    border: 1px solid #cfe2fb;
    box-shadow: 0 8px 18px rgba(10,102,255,.11);
    font-size: 22px;
    font-weight: 900;
}

.knfb-cta-copy h3 {
    margin: 0;
    color: var(--knfb-ink);
    font-size: 19px;
    font-weight: 880;
}

.knfb-cta-copy p {
    margin: 4px 0 0;
    color: #5c6d83;
    font-size: 13px;
}

.knfb-empty {
    padding: 28px;
    border: 1px dashed #b9cee8;
    border-radius: 16px;
    background: #f7fbff;
    color: #40536b;
    text-align: center;
}

/* Category color helpers based on common Katy News slugs. */
.knfb-cat-traffic,
.knfb-cat-road-closures { background: linear-gradient(135deg, #ff7a00, #ff9f2f); }
.knfb-cat-schools,
.knfb-cat-education { background: linear-gradient(135deg, #1169ff, #4395ff); }
.knfb-cat-events { background: linear-gradient(135deg, #ff3156, #ff6680); }
.knfb-cat-weather { background: linear-gradient(135deg, #13b95e, #53d781); }
.knfb-cat-business { background: linear-gradient(135deg, #7337e6, #9d6cff); }
.knfb-cat-sports { background: linear-gradient(135deg, #056f7d, #20a9bb); }
.knfb-cat-public-safety,
.knfb-cat-safety { background: linear-gradient(135deg, #b3261e, #df433b); }

@media (max-width: 1024px) {
    .knfb-spotlight { grid-template-columns: 1fr; }
    .knfb-hero-card { min-height: 500px; }
    .knfb-support-card { min-height: 240px; }
    .knfb-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .knfb-magazine-grid { grid-template-columns: 1fr; }
    .knfb-tall-card { min-height: 440px; }
}

@media (max-width: 767px) {
    .knfb-inner { width: min(100%, calc(100% - 22px)); padding: 16px 0 24px; }
    .knfb-intro { min-height: auto; grid-template-columns: 1fr; padding: 24px 20px; border-radius: 20px; }
    .knfb-main-heading { max-width: 90%; font-size: clamp(31px, 10vw, 44px); }
    .knfb-subheading { max-width: 88%; font-size: 16px; }
    .knfb-filter-bar { margin-left: -2px; margin-right: -2px; }
    .knfb-chip { min-height: 40px; padding: 0 14px; }
    .knfb-hero-card { min-height: 445px; border-radius: 18px; }
    .knfb-hero-content { left: 18px; right: 18px; bottom: 18px; }
    .knfb-hero-content h3 { font-size: clamp(28px, 9vw, 38px); }
    .knfb-hero-content p { font-size: 13px; margin-bottom: 14px; }
    .knfb-support-grid { grid-template-columns: 1fr; }
    .knfb-support-card { min-height: 0; display: grid; grid-template-columns: 136px minmax(0, 1fr); }
    .knfb-support-card .knfb-card-media { height: 100%; min-height: 160px; }
    .knfb-support-content { position: relative; padding: 14px; }
    .knfb-support-content .knfb-badge { position: static; margin-bottom: 8px; }
    .knfb-section-heading { gap: 8px; }
    .knfb-heading-line { display: none; }
    .knfb-section-heading > a { margin-left: auto; }
    .knfb-latest-grid,
    .knfb-latest-grid-three { grid-template-columns: 1fr; }
    .knfb-standard-card { min-height: 0; display: grid; grid-template-columns: 138px minmax(0, 1fr); }
    .knfb-standard-card .knfb-card-media { height: 100%; min-height: 190px; }
    .knfb-standard-content { padding: 14px; }
    .knfb-standard-content p { display: none; }
    .knfb-tall-card { min-height: 430px; }
    .knfb-cta { grid-template-columns: auto 1fr; }
    .knfb-cta-button { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .knfb-wrap *,
    .knfb-wrap *::before,
    .knfb-wrap *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ============================================================
   v1.1 layout engine: card orientation + newspaper layouts.
   Everything remains scoped to .knfb-wrap so the theme shell,
   header, navigation, side panel and footer remain untouched.
   ============================================================ */
.knfb-wrap {
    --knfb-cols: 3;
}

.knfb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 7px 0 0;
    color: #718096;
    font-size: 11px;
    line-height: 1.35;
}

.knfb-meta-light { color: rgba(255,255,255,.82); }
.knfb-meta-sep { opacity: .65; }
.knfb-card-excerpt { margin: 8px 0 0; color: #5e6d83; font-size: 12px; line-height: 1.45; }

/* User-selectable desktop column count. */
.knfb-wrap .knfb-latest-grid,
.knfb-wrap .knfb-newspaper-grid,
.knfb-wrap .knfb-newspaper-columns-grid {
    grid-template-columns: repeat(var(--knfb-cols), minmax(0, 1fr));
}

/* VERTICAL: image above copy. */
.knfb-orientation-vertical .knfb-standard-card,
.knfb-orientation-vertical .knfb-support-card {
    display: flex;
    grid-template-columns: none;
    flex-direction: column;
}

.knfb-orientation-vertical .knfb-standard-card .knfb-card-media { height: 168px; min-height: 168px; }
.knfb-orientation-vertical .knfb-support-card .knfb-card-media { height: 122px; min-height: 122px; }

/* HORIZONTAL: image beside copy. This applies to secondary cards and grids. */
.knfb-orientation-horizontal .knfb-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knfb-orientation-horizontal .knfb-support-grid {
    grid-template-columns: 1fr;
}

.knfb-orientation-horizontal .knfb-standard-card,
.knfb-orientation-horizontal .knfb-support-card {
    min-height: 188px;
    display: grid;
    grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
    flex-direction: initial;
}

.knfb-orientation-horizontal .knfb-standard-card .knfb-card-media,
.knfb-orientation-horizontal .knfb-support-card .knfb-card-media {
    width: 100%;
    height: 100%;
    min-height: 188px;
}

.knfb-orientation-horizontal .knfb-support-content .knfb-badge {
    position: static;
    margin-bottom: 8px;
}

.knfb-orientation-horizontal .knfb-standard-content,
.knfb-orientation-horizontal .knfb-support-content {
    min-width: 0;
    padding: 16px;
}

.knfb-orientation-horizontal .knfb-standard-content h3,
.knfb-orientation-horizontal .knfb-support-content h3 {
    font-size: 18px;
}

/* Auto defaults to vertical on desktops; responsive rules below shift it naturally. */
.knfb-orientation-auto .knfb-latest-grid { grid-template-columns: repeat(var(--knfb-cols), minmax(0, 1fr)); }

/* When featured images are disabled, convert overlays into readable surfaces. */
.knfb-no-images .knfb-hero-card,
.knfb-no-images .knfb-tall-card {
    min-height: 330px;
    background:
        radial-gradient(circle at 88% 16%, rgba(10,102,255,.12), transparent 28%),
        linear-gradient(135deg, #071c38, #0a315f 58%, #0a66ff);
}

.knfb-no-images .knfb-hero-content,
.knfb-no-images .knfb-tall-content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 34px;
}

.knfb-no-images .knfb-support-card,
.knfb-no-images .knfb-standard-card {
    min-height: 0;
}

/* ========================== NEWSPAPER ========================== */
.knfb-layout-newspaper,
.knfb-layout-newspaper_columns {
    --knfb-paper-ink: #111820;
    --knfb-paper-muted: #5b6066;
    --knfb-paper-rule: #202833;
    --knfb-paper-accent: #0a5fc8;
    color: var(--knfb-paper-ink);
}

.knfb-newspaper-accent-black { --knfb-paper-accent: #111820; }

.knfb-layout-newspaper .knfb-inner,
.knfb-layout-newspaper_columns .knfb-inner {
    background: #fffefb;
}

.knfb-newspaper-masthead {
    margin: 3px 0 14px;
    text-align: center;
    color: var(--knfb-paper-ink);
    font-family: Georgia, "Times New Roman", serif;
}

.knfb-paper-rule { width: 100%; border-top: 1px solid var(--knfb-paper-rule); }
.knfb-paper-rule-top { border-top-width: 4px; padding-top: 3px; border-bottom: 1px solid var(--knfb-paper-rule); }
.knfb-paper-rule-bottom { margin-top: 12px; border-top-width: 1px; border-bottom: 4px solid var(--knfb-paper-rule); height: 6px; }

.knfb-paper-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 7px 2px 3px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.knfb-paper-meta span:first-child { text-align: left; }
.knfb-paper-meta span:last-child { text-align: right; }

.knfb-newspaper-masthead h2 {
    margin: 7px 0 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7.3vw, 86px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 800;
}

.knfb-newspaper-masthead p {
    margin: 7px 0 0;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: #4e5965;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.knfb-layout-newspaper .knfb-filter-bar,
.knfb-layout-newspaper_columns .knfb-filter-bar {
    border-bottom: 1px solid #c8c8c8;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.knfb-layout-newspaper .knfb-chip,
.knfb-layout-newspaper_columns .knfb-chip {
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-family: Georgia, "Times New Roman", serif;
    color: #20252b;
    font-size: 12px;
}

.knfb-layout-newspaper .knfb-chip.is-active,
.knfb-layout-newspaper_columns .knfb-chip.is-active {
    background: var(--knfb-paper-accent);
    color: #fff;
    box-shadow: none;
}

.knfb-newspaper-front {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr);
    gap: 22px;
    align-items: stretch;
    padding: 5px 0 18px;
    border-bottom: 3px double #202833;
}

.knfb-newspaper-lead-wrap { min-width: 0; }

.knfb-paper-lead {
    height: 100%;
    padding-right: 22px;
    border-right: 1px solid #aeb3b8;
    font-family: Georgia, "Times New Roman", serif;
}

.knfb-paper-kicker {
    margin-bottom: 7px;
    color: var(--knfb-paper-accent);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.knfb-paper-lead h3,
.knfb-paper-item h3 {
    margin: 0;
    color: var(--knfb-paper-ink);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.knfb-paper-lead h3 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: .96;
}

.knfb-paper-lead .knfb-meta,
.knfb-paper-item .knfb-meta {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: #686d72;
}

.knfb-paper-image {
    display: block;
    height: 330px;
    margin: 15px 0 13px;
    overflow: hidden;
    border: 1px solid #9da3a8;
}

.knfb-paper-deck {
    margin: 10px 0 8px;
    color: #353a3f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.45;
}

.knfb-paper-read {
    color: var(--knfb-paper-accent) !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.knfb-newspaper-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.knfb-paper-item {
    break-inside: avoid;
    padding: 0 0 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #b8bdc1;
    background: transparent;
}

.knfb-paper-item:last-child { margin-bottom: 0; }

.knfb-paper-item h3 {
    font-size: 23px;
    line-height: 1.02;
}

.knfb-paper-item p {
    margin: 8px 0 0;
    color: #3f4449;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.44;
}

.knfb-paper-thumb {
    display: block;
    width: 100%;
    height: 145px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #b3b7bb;
}

.knfb-paper-item-side .knfb-paper-thumb { height: 130px; }
.knfb-paper-item-side h3 { font-size: 25px; }

.knfb-newspaper-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 17px 0 13px;
    color: var(--knfb-paper-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.knfb-newspaper-divider::before,
.knfb-newspaper-divider::after {
    content: "";
    height: 3px;
    flex: 1;
    border-top: 1px solid #202833;
    border-bottom: 1px solid #202833;
}

.knfb-newspaper-grid,
.knfb-newspaper-columns-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid #94999e;
    border-bottom: 1px solid #94999e;
}

.knfb-newspaper-grid .knfb-paper-item,
.knfb-newspaper-columns-grid .knfb-paper-item {
    margin: 0;
    padding: 16px;
    border-bottom: 0;
    border-right: 1px solid #b6bbc0;
}

.knfb-newspaper-grid .knfb-paper-item:nth-child(3n),
.knfb-newspaper-columns-grid .knfb-paper-item:nth-child(3n) { border-right-color: #b6bbc0; }

.knfb-newspaper-grid .knfb-paper-item h3,
.knfb-newspaper-columns-grid .knfb-paper-item h3 { font-size: 25px; }

.knfb-newspaper-columns-grid .knfb-paper-item-feature-column {
    grid-column: span 2;
}
.knfb-newspaper-columns-grid .knfb-paper-item-feature-column h3 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: .98;
}
.knfb-newspaper-columns-grid .knfb-paper-item-feature-column .knfb-paper-thumb { height: 280px; }

/* Horizontal option is also available for newspaper cards. */
.knfb-orientation-horizontal .knfb-newspaper-grid .knfb-paper-item,
.knfb-orientation-horizontal .knfb-newspaper-columns-grid .knfb-paper-item:not(.knfb-paper-item-feature-column) {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 14px;
}
.knfb-orientation-horizontal .knfb-paper-item .knfb-paper-thumb {
    height: 100%;
    min-height: 155px;
    margin: 0;
}

/* ======================= HEADLINE LIST ======================= */
.knfb-headline-list {
    border-top: 1px solid #d9e3ef;
}

.knfb-headline-row {
    display: grid;
    grid-template-columns: 52px 180px minmax(0, 1fr) 44px;
    gap: 18px;
    align-items: center;
    min-height: 164px;
    padding: 15px 5px;
    border-bottom: 1px solid #d9e3ef;
}

.knfb-headline-number {
    align-self: start;
    padding-top: 7px;
    color: #a8bad0;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}

.knfb-headline-image {
    height: 126px;
    overflow: hidden;
    border-radius: 12px;
}

.knfb-headline-copy { min-width: 0; }
.knfb-headline-topline { margin-bottom: 5px; color: var(--knfb-blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.knfb-headline-copy h3 { margin: 0; font-size: clamp(21px, 2.2vw, 31px); line-height: 1.06; font-weight: 880; letter-spacing: -.03em; }
.knfb-headline-copy p { margin: 8px 0 0; color: #5e6d83; font-size: 13px; line-height: 1.45; }
.knfb-headline-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #cddcf0; border-radius: 50%; color: var(--knfb-blue) !important; font-size: 20px; font-weight: 800; }

.knfb-no-images .knfb-headline-row { grid-template-columns: 52px minmax(0, 1fr) 44px; }

/* Newspaper CTA stays clean and print-like. */
.knfb-layout-newspaper .knfb-cta,
.knfb-layout-newspaper_columns .knfb-cta {
    border-radius: 0;
    border-color: #9ea4aa;
    box-shadow: none;
    background: #f6f4ef;
}

@media (max-width: 1100px) {
    .knfb-wrap .knfb-latest-grid,
    .knfb-wrap .knfb-newspaper-grid,
    .knfb-wrap .knfb-newspaper-columns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .knfb-newspaper-columns-grid .knfb-paper-item-feature-column { grid-column: span 2; }
    .knfb-orientation-horizontal .knfb-latest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .knfb-wrap .knfb-latest-grid,
    .knfb-wrap .knfb-newspaper-grid,
    .knfb-wrap .knfb-newspaper-columns-grid { grid-template-columns: 1fr; }

    .knfb-orientation-horizontal .knfb-standard-card,
    .knfb-orientation-horizontal .knfb-support-card {
        grid-template-columns: 132px minmax(0, 1fr);
        min-height: 168px;
    }

    .knfb-orientation-horizontal .knfb-standard-card .knfb-card-media,
    .knfb-orientation-horizontal .knfb-support-card .knfb-card-media {
        min-height: 168px;
    }

    .knfb-paper-meta { grid-template-columns: 1fr; text-align: center; }
    .knfb-paper-meta span:first-child,
    .knfb-paper-meta span:last-child { text-align: center; }
    .knfb-newspaper-masthead h2 { font-size: clamp(42px, 14vw, 62px); }
    .knfb-newspaper-front { grid-template-columns: 1fr; gap: 18px; }
    .knfb-paper-lead { padding-right: 0; border-right: 0; border-bottom: 1px solid #9da3a8; padding-bottom: 18px; }
    .knfb-paper-lead h3 { font-size: clamp(36px, 12vw, 54px); }
    .knfb-paper-image { height: 240px; }
    .knfb-newspaper-columns-grid .knfb-paper-item-feature-column { grid-column: auto; }
    .knfb-newspaper-grid .knfb-paper-item,
    .knfb-newspaper-columns-grid .knfb-paper-item { border-right: 0; border-bottom: 1px solid #b6bbc0; padding: 15px 0; }
    .knfb-orientation-horizontal .knfb-newspaper-grid .knfb-paper-item,
    .knfb-orientation-horizontal .knfb-newspaper-columns-grid .knfb-paper-item:not(.knfb-paper-item-feature-column) { grid-template-columns: 125px minmax(0,1fr); }

    .knfb-headline-row { grid-template-columns: 36px 108px minmax(0,1fr); gap: 10px; min-height: 136px; }
    .knfb-headline-arrow { display: none; }
    .knfb-headline-image { height: 104px; border-radius: 9px; }
    .knfb-headline-copy h3 { font-size: 18px; }
    .knfb-headline-copy p { display: none; }
    .knfb-no-images .knfb-headline-row { grid-template-columns: 36px minmax(0,1fr); }
}

.knfb-no-images .knfb-support-content .knfb-badge {
    position: static;
    margin-bottom: 8px;
}

/* ============================================================
   v1.2: expanded layout library + AJAX Load More.
   All rules remain scoped to .knfb-wrap / KNFB classes.
   ============================================================ */

/* Keep the two additional newspaper designs in the same print system. */
.knfb-layout-broadsheet,
.knfb-layout-sunday {
    --knfb-paper-ink: #111820;
    --knfb-paper-muted: #5b6066;
    --knfb-paper-rule: #202833;
    --knfb-paper-accent: #0a5fc8;
    color: var(--knfb-paper-ink);
}

.knfb-layout-broadsheet.knfb-newspaper-accent-black,
.knfb-layout-sunday.knfb-newspaper-accent-black {
    --knfb-paper-accent: #111820;
}

.knfb-layout-broadsheet .knfb-inner,
.knfb-layout-sunday .knfb-inner {
    background: #fffefb;
}

.knfb-layout-broadsheet .knfb-filter-bar,
.knfb-layout-sunday .knfb-filter-bar {
    border-bottom: 1px solid #c8c8c8;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.knfb-layout-broadsheet .knfb-chip,
.knfb-layout-sunday .knfb-chip {
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-family: Georgia, "Times New Roman", serif;
    color: #20252b;
    font-size: 12px;
}

.knfb-layout-broadsheet .knfb-chip.is-active,
.knfb-layout-sunday .knfb-chip.is-active {
    background: var(--knfb-paper-accent);
    color: #fff;
    box-shadow: none;
}

.knfb-layout-broadsheet .knfb-cta,
.knfb-layout-sunday .knfb-cta {
    border-radius: 0;
    border-color: #9ea4aa;
    box-shadow: none;
    background: #f6f4ef;
}

/* Split lead: two equally important top stories. */
.knfb-split-leads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.knfb-hero-split {
    min-height: 430px;
}

.knfb-hero-split .knfb-hero-content h3 {
    font-size: clamp(27px, 3vw, 42px);
}

/* Metro: one dominant story with a compact stack alongside. */
.knfb-metro-front {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    gap: 15px;
    align-items: stretch;
}

.knfb-hero-metro {
    min-height: 560px;
}

.knfb-metro-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.knfb-metro-stack .knfb-support-card {
    min-height: 128px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.knfb-metro-stack .knfb-support-card .knfb-card-media {
    height: 100%;
    min-height: 128px;
}

.knfb-metro-stack .knfb-support-content {
    padding: 12px 13px;
}

.knfb-metro-stack .knfb-support-content .knfb-badge {
    position: static;
    margin-bottom: 5px;
}

.knfb-metro-stack .knfb-support-content h3 {
    font-size: 16px;
}

.knfb-metro-stack .knfb-card-excerpt,
.knfb-metro-stack .knfb-text-link {
    display: none;
}

/* Masonry keeps variable-height stories compact while preserving reading flow. */
.knfb-masonry-grid {
    column-count: var(--knfb-cols);
    column-gap: 16px;
    margin-top: 4px;
}

.knfb-masonry-grid .knfb-standard-card {
    width: 100%;
    display: inline-flex;
    margin: 0 0 16px;
    break-inside: avoid;
    vertical-align: top;
}

.knfb-masonry-grid .knfb-standard-card:nth-child(3n+1) .knfb-card-media {
    height: 225px;
}

.knfb-masonry-grid .knfb-standard-card:nth-child(4n+2) .knfb-card-media {
    height: 185px;
}

/* Photo stories: image-first, high-impact cards. */
.knfb-photo-grid {
    display: grid;
    grid-template-columns: repeat(var(--knfb-cols), minmax(0, 1fr));
    gap: 16px;
}

.knfb-photo-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #071c38, #0d396d);
    box-shadow: var(--knfb-shadow);
}

.knfb-photo-media {
    position: absolute;
    inset: 0;
    display: block;
}

.knfb-photo-card .knfb-image {
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.knfb-photo-card:hover .knfb-image {
    transform: scale(1.045);
}

.knfb-photo-copy {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #fff;
}

.knfb-photo-copy h3 {
    margin: 9px 0 0;
    font-size: clamp(22px, 2.4vw, 33px);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 880;
}

.knfb-photo-copy p {
    margin: 9px 0 0;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    line-height: 1.45;
}

.knfb-no-images .knfb-photo-card {
    min-height: 280px;
}

.knfb-no-images .knfb-photo-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 24px;
}

/* News Wire: high-density chronological newsroom layout. */
.knfb-wire-list {
    border-top: 3px solid var(--knfb-ink);
    border-bottom: 1px solid #cfd9e6;
}

.knfb-wire-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 180px;
    gap: 18px;
    align-items: center;
    padding: 17px 5px;
    border-bottom: 1px solid #d9e3ef;
}

.knfb-wire-row:last-child {
    border-bottom: 0;
}

.knfb-wire-date {
    align-self: start;
    padding-top: 5px;
    color: #7b8797;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.knfb-wire-copy {
    min-width: 0;
}

.knfb-wire-category {
    margin-bottom: 4px;
    color: var(--knfb-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.knfb-wire-copy h3 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 880;
}

.knfb-wire-copy p {
    margin: 7px 0 0;
    color: #5e6d83;
    font-size: 13px;
    line-height: 1.45;
}

.knfb-wire-thumb {
    height: 105px;
    overflow: hidden;
    border-radius: 12px;
}

.knfb-no-images .knfb-wire-row {
    grid-template-columns: 96px minmax(0, 1fr);
}

/* Broadsheet: three-column newspaper front with the lead in the center. */
.knfb-broadsheet-front {
    display: grid;
    grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr) minmax(190px, .55fr);
    gap: 18px;
    padding: 4px 0 18px;
    border-bottom: 4px double var(--knfb-paper-rule);
}

.knfb-broadsheet-lead {
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid #aeb3b8;
    border-right: 1px solid #aeb3b8;
}

.knfb-broadsheet-lead .knfb-paper-lead {
    padding-right: 0;
    border-right: 0;
}

.knfb-broadsheet-lead .knfb-paper-lead h3 {
    font-size: clamp(44px, 5.4vw, 76px);
}

.knfb-broadsheet-side .knfb-paper-item h3 {
    font-size: 21px;
}

.knfb-broadsheet-side .knfb-paper-thumb {
    height: 115px;
}

.knfb-broadsheet-grid {
    display: grid;
    grid-template-columns: repeat(var(--knfb-cols), minmax(0, 1fr));
    border-top: 1px solid #969ca2;
    border-bottom: 1px solid #969ca2;
}

.knfb-broadsheet-grid .knfb-paper-item {
    margin: 0;
    padding: 16px;
    border-right: 1px solid #b6bbc0;
    border-bottom: 0;
}

.knfb-broadsheet-grid .knfb-paper-item h3 {
    font-size: 24px;
}

/* Sunday Edition: large storytelling lead + an "Inside Today" rail. */
.knfb-sunday-front {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 24px;
    padding: 5px 0 20px;
    border-bottom: 4px double var(--knfb-paper-rule);
}

.knfb-sunday-lead .knfb-paper-lead {
    padding-right: 24px;
}

.knfb-sunday-lead .knfb-paper-lead h3 {
    font-size: clamp(44px, 5.6vw, 78px);
}

.knfb-sunday-label {
    margin-bottom: 13px;
    padding: 8px 10px;
    border-top: 4px solid var(--knfb-paper-accent);
    border-bottom: 1px solid #b2b6ba;
    color: var(--knfb-paper-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 800;
    text-transform: uppercase;
}

.knfb-paper-item-sunday-side h3 {
    font-size: 27px;
}

.knfb-sunday-grid {
    display: grid;
    grid-template-columns: repeat(var(--knfb-cols), minmax(0, 1fr));
    border-top: 1px solid #969ca2;
    border-bottom: 1px solid #969ca2;
}

.knfb-sunday-grid .knfb-paper-item {
    margin: 0;
    padding: 16px;
    border-right: 1px solid #b6bbc0;
    border-bottom: 0;
}

.knfb-sunday-grid .knfb-paper-item h3 {
    font-size: 25px;
}

/* AJAX Load More */
.knfb-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 6px;
}

.knfb-load-more {
    appearance: none;
    border: 1px solid #bcd5f4;
    min-width: 210px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #071c38, #0a66ff);
    color: #fff;
    box-shadow: 0 12px 26px rgba(10,102,255,.18);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.knfb-load-more:hover,
.knfb-load-more:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(10,102,255,.27);
}

.knfb-load-more:disabled {
    cursor: wait;
    opacity: .68;
    transform: none;
}

.knfb-load-more-arrow {
    font-size: 17px;
    line-height: 1;
}

.knfb-load-more.is-loading .knfb-load-more-arrow {
    animation: knfb-load-pulse .8s ease-in-out infinite alternate;
}

.knfb-load-more-status {
    min-height: 18px;
    color: #7a3440;
    font-size: 12px;
    font-weight: 650;
}

.knfb-layout-newspaper .knfb-load-more,
.knfb-layout-newspaper_columns .knfb-load-more,
.knfb-layout-broadsheet .knfb-load-more,
.knfb-layout-sunday .knfb-load-more {
    border: 1px solid var(--knfb-paper-rule);
    border-radius: 0;
    background: var(--knfb-paper-ink);
    box-shadow: none;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: .03em;
}

@keyframes knfb-load-pulse {
    from { transform: translateY(-1px); opacity: .65; }
    to { transform: translateY(3px); opacity: 1; }
}

@media (max-width: 1100px) {
    .knfb-metro-front,
    .knfb-sunday-front {
        grid-template-columns: 1fr;
    }

    .knfb-broadsheet-front {
        grid-template-columns: minmax(0, 1.5fr) minmax(240px, .6fr);
    }

    .knfb-broadsheet-lead {
        grid-column: 1;
        grid-row: 1 / span 2;
        border-left: 0;
        padding-left: 0;
    }

    .knfb-broadsheet-left,
    .knfb-broadsheet-right {
        grid-column: 2;
    }

    .knfb-masonry-grid {
        column-count: 2;
    }

    .knfb-photo-grid,
    .knfb-broadsheet-grid,
    .knfb-sunday-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .knfb-split-leads,
    .knfb-metro-front,
    .knfb-broadsheet-front,
    .knfb-sunday-front {
        grid-template-columns: 1fr;
    }

    .knfb-hero-split,
    .knfb-hero-metro {
        min-height: 420px;
    }

    .knfb-metro-stack .knfb-support-card {
        grid-template-columns: 128px minmax(0, 1fr);
        min-height: 150px;
    }

    .knfb-masonry-grid {
        column-count: 1;
    }

    .knfb-photo-grid,
    .knfb-broadsheet-grid,
    .knfb-sunday-grid {
        grid-template-columns: 1fr;
    }

    .knfb-photo-card {
        min-height: 340px;
    }

    .knfb-wire-row,
    .knfb-no-images .knfb-wire-row {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 11px;
    }

    .knfb-wire-thumb {
        display: none;
    }

    .knfb-wire-copy p {
        display: none;
    }

    .knfb-broadsheet-lead,
    .knfb-broadsheet-left,
    .knfb-broadsheet-right {
        grid-column: auto;
        grid-row: auto;
        border-left: 0;
        border-right: 0;
        padding: 0;
    }

    .knfb-broadsheet-lead {
        order: -1;
        padding-bottom: 18px;
        border-bottom: 1px solid #9da3a8;
    }

    .knfb-broadsheet-grid .knfb-paper-item,
    .knfb-sunday-grid .knfb-paper-item {
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid #b6bbc0;
    }

    .knfb-sunday-lead .knfb-paper-lead {
        padding-right: 0;
        border-right: 0;
    }

    .knfb-load-more {
        width: min(100%, 340px);
    }
}

/* ============================================================
   v1.3 marketing/topic section engine + gap-free compositions.
   ============================================================ */
.knfb-wrap .knfb-fill-grid,
.knfb-wrap .knfb-topic-grid,
.knfb-wrap .knfb-sectioned-top {
    grid-auto-flow: dense;
    align-items: start;
}

/* Keep the top spotlight balanced: 518px lead beside a 2x2 support grid.
   This prevents the tall right rail from leaving the large blank area that
   can occur when global horizontal card orientation is selected. */
.knfb-layout-spotlight .knfb-support-grid,
.knfb-marketing-hub-support {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start;
}

.knfb-layout-spotlight .knfb-support-grid .knfb-support-card,
.knfb-marketing-hub-support .knfb-support-card {
    min-height: 250px;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
}

.knfb-layout-spotlight .knfb-support-grid .knfb-support-card .knfb-card-media,
.knfb-marketing-hub-support .knfb-support-card .knfb-card-media {
    width: 100%;
    height: 116px !important;
    min-height: 116px !important;
}

.knfb-layout-spotlight .knfb-support-grid .knfb-support-content,
.knfb-marketing-hub-support .knfb-support-content {
    padding: 13px 14px 14px;
}

.knfb-layout-spotlight .knfb-support-grid .knfb-support-content .knfb-badge,
.knfb-marketing-hub-support .knfb-support-content .knfb-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
}

.knfb-marketing-hub-top {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 14px;
    align-items: start;
    margin-top: 4px;
}

.knfb-marketing-hub-support {
    display: grid;
    gap: 14px;
}

.knfb-sectioned-top {
    display: grid;
    grid-template-columns: repeat(var(--knfb-cols), minmax(0, 1fr));
    gap: 14px;
}

/* Repeatable page zones: Restaurants, Politics, Schools, Business, etc. */
.knfb-topic-section {
    margin: 30px 0 0;
    padding-top: 2px;
}

.knfb-topic-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #dbe6f2;
}

.knfb-topic-heading-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.knfb-topic-heading-bar {
    width: 5px;
    height: 27px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--knfb-blue), #4da7ff);
}

.knfb-topic-heading h3 {
    margin: 0;
    color: var(--knfb-ink);
    font-size: clamp(21px, 2.4vw, 29px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.025em;
}

.knfb-topic-heading > a {
    flex: 0 0 auto;
    color: var(--knfb-blue);
    font-size: 12px;
    font-weight: 850;
}

.knfb-topic-grid {
    display: grid;
    grid-template-columns: repeat(var(--knfb-section-cols), minmax(0, 1fr));
    gap: 14px;
}

.knfb-topic-grid .knfb-standard-card {
    min-height: 0;
    height: 100%;
}

.knfb-topic-layout-horizontal .knfb-topic-grid {
    grid-template-columns: repeat(var(--knfb-section-cols), minmax(0, 1fr));
}

.knfb-topic-force-horizontal .knfb-standard-card {
    min-height: 178px;
    display: grid;
    grid-template-columns: minmax(135px, 38%) minmax(0, 1fr);
}

.knfb-topic-force-horizontal .knfb-standard-card .knfb-card-media {
    height: 100%;
    min-height: 178px;
}

.knfb-topic-force-horizontal .knfb-standard-content {
    min-width: 0;
    padding: 14px;
}

.knfb-topic-feature-grid .knfb-standard-card:first-child {
    grid-column: span 2;
}

.knfb-topic-feature-grid .knfb-standard-card:first-child .knfb-card-media {
    height: 220px;
}

.knfb-topic-compact {
    display: grid;
    gap: 0;
    border-top: 1px solid #dbe6f2;
}

.knfb-topic-compact .knfb-wire-row {
    margin: 0;
}

.knfb-topic-newspaper-grid {
    display: grid;
    grid-template-columns: repeat(var(--knfb-section-cols), minmax(0, 1fr));
    gap: 0;
    border-top: 3px double #202833;
    border-bottom: 1px solid #202833;
    background: #fffefb;
}

.knfb-topic-newspaper-grid .knfb-paper-item {
    margin: 0;
    padding: 16px;
    border-right: 1px solid #b6bbc0;
    border-bottom: 0;
}

.knfb-topic-newspaper-grid .knfb-paper-item:last-child {
    border-right: 0;
}

/* Marketing insight chips: top WordPress search terms, categories and tags. */
.knfb-insight-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 6px;
}

.knfb-insight-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 13px 0 15px;
    border: 1px solid #d8e6f6;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(23,65,116,.06);
    color: #173454 !important;
    font-size: 12px;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.knfb-insight-chip:hover,
.knfb-insight-chip:focus-visible {
    transform: translateY(-1px);
    border-color: #93bfff;
    box-shadow: 0 9px 22px rgba(10,102,255,.11);
}

.knfb-insight-count {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #eaf3ff;
    color: var(--knfb-blue);
    font-size: 10px;
    font-weight: 900;
}

/* In-body marketing CTA. Clearly styled as a promotional growth block. */
.knfb-marketing-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin: 30px 0 0;
    padding: 24px 26px;
    overflow: hidden;
    position: relative;
    border: 1px solid #cfe0f5;
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 20%, rgba(10,102,255,.14), transparent 28%),
        linear-gradient(135deg, #f9fcff, #eaf4ff);
    box-shadow: 0 14px 34px rgba(23,65,116,.08);
}

.knfb-marketing-promo::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -95px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(10,102,255,.13);
    border-radius: 50%;
    pointer-events: none;
}

.knfb-marketing-promo-copy {
    position: relative;
    z-index: 1;
}

.knfb-marketing-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--knfb-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.knfb-marketing-promo h3 {
    margin: 0;
    color: var(--knfb-ink);
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.035em;
}

.knfb-marketing-promo p {
    margin: 8px 0 0;
    max-width: 760px;
    color: #5a6b82;
    font-size: 14px;
    line-height: 1.55;
}

.knfb-marketing-promo .knfb-button {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.knfb-marketing-sections-end {
    display: block;
    height: 0;
    clear: both;
}

/* Newspaper layouts can use the same topic engine without losing the paper feel. */
.knfb-layout-newspaper .knfb-topic-heading,
.knfb-layout-newspaper_columns .knfb-topic-heading,
.knfb-layout-broadsheet .knfb-topic-heading,
.knfb-layout-sunday .knfb-topic-heading {
    border-bottom-color: #aeb3b8;
}

.knfb-layout-newspaper .knfb-topic-heading h3,
.knfb-layout-newspaper_columns .knfb-topic-heading h3,
.knfb-layout-broadsheet .knfb-topic-heading h3,
.knfb-layout-sunday .knfb-topic-heading h3 {
    font-family: Georgia, "Times New Roman", serif;
}

@media (max-width: 1024px) {
    .knfb-marketing-hub-top {
        grid-template-columns: 1fr;
    }

    .knfb-layout-spotlight .knfb-support-grid,
    .knfb-marketing-hub-support {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .knfb-sectioned-top,
    .knfb-topic-grid,
    .knfb-topic-newspaper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .knfb-layout-spotlight .knfb-support-grid,
    .knfb-marketing-hub-support,
    .knfb-sectioned-top,
    .knfb-topic-grid,
    .knfb-topic-newspaper-grid {
        grid-template-columns: 1fr !important;
    }

    .knfb-layout-spotlight .knfb-support-grid .knfb-support-card,
    .knfb-marketing-hub-support .knfb-support-card,
    .knfb-topic-force-horizontal .knfb-standard-card {
        min-height: 0;
        display: grid !important;
        grid-template-columns: 128px minmax(0, 1fr) !important;
    }

    .knfb-layout-spotlight .knfb-support-grid .knfb-support-card .knfb-card-media,
    .knfb-marketing-hub-support .knfb-support-card .knfb-card-media,
    .knfb-topic-force-horizontal .knfb-standard-card .knfb-card-media {
        height: 100% !important;
        min-height: 160px !important;
    }

    .knfb-layout-spotlight .knfb-support-grid .knfb-support-content .knfb-badge,
    .knfb-marketing-hub-support .knfb-support-content .knfb-badge {
        position: static;
        margin-bottom: 8px;
    }

    .knfb-topic-feature-grid .knfb-standard-card:first-child {
        grid-column: auto;
    }

    .knfb-topic-heading {
        align-items: flex-end;
    }

    .knfb-topic-heading h3 {
        font-size: 21px;
    }

    .knfb-marketing-promo {
        grid-template-columns: 1fr;
        padding: 21px 20px;
    }

    .knfb-marketing-promo .knfb-button {
        width: 100%;
    }
}

/* v1.4 — privacy-conscious location targeting */
.knfb-geo-section {
    position: relative;
}

.knfb-geo-panel {
    border: 1px solid #d9e6f5;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    overflow: hidden;
}

.knfb-geo-prompt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.knfb-geo-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #0878ff;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(8, 120, 255, .2);
}

.knfb-geo-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.knfb-geo-copy strong {
    color: var(--knfb-ink);
    font-size: 16px;
    line-height: 1.2;
}

.knfb-geo-copy span {
    color: #5c6b7d;
    font-size: 13px;
    line-height: 1.45;
}

.knfb-geo-status {
    min-height: 0;
    padding: 0 20px;
    color: #526274;
    font-size: 13px;
    font-weight: 700;
}

.knfb-geo-status:not(:empty) {
    padding-bottom: 14px;
}

.knfb-geo-status.is-error {
    color: #a61b1b;
}

.knfb-geo-results:not(:empty) {
    padding: 0 14px 14px;
}

.knfb-geo-result {
    position: relative;
    min-width: 0;
}

.knfb-geo-result > .knfb-standard-card,
.knfb-geo-result > .knfb-wire-row,
.knfb-geo-result > .knfb-paper-item {
    height: 100%;
}

.knfb-geo-badge {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 7px 4px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e7f2ff;
    color: #075db8;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .02em;
}

.knfb-geo-place {
    color: #415a73;
    font-weight: 800;
}

.knfb-geo-clear {
    appearance: none;
    border: 0;
    background: transparent;
    color: #607386;
    text-decoration: underline;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 18px 16px;
    padding: 2px;
}

.knfb-geo-empty {
    min-height: 1px;
}

.knfb-geo-use-location.is-loading {
    opacity: .7;
    pointer-events: none;
}

@media (max-width: 767px) {
    .knfb-geo-prompt {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 15px;
    }

    .knfb-geo-prompt .knfb-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .knfb-geo-results:not(:empty) {
        padding: 0 10px 10px;
    }

    .knfb-geo-place {
        display: none;
    }
}


/* ============================================================
   v1.4.2 spotlight balance + administrator-controlled filters.
   ============================================================ */

/* Eliminate the blank block under the lead story. The lead card stretches
   to the same height as the supporting-story grid instead of stopping early. */
.knfb-layout-spotlight .knfb-spotlight {
    align-items: stretch;
}

.knfb-layout-spotlight .knfb-hero-column {
    display: flex;
    min-width: 0;
    align-self: stretch;
}

.knfb-layout-spotlight .knfb-hero-column > .knfb-hero-card {
    width: 100%;
    height: 100%;
    min-height: 518px;
}

.knfb-layout-spotlight .knfb-support-grid {
    align-self: stretch;
    grid-auto-rows: 1fr;
}

/* Keep supporting cards visually compact so one long headline/excerpt does
   not force an oversized top composition. */
.knfb-layout-spotlight .knfb-support-content h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.knfb-layout-spotlight .knfb-support-content .knfb-card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Default filter menu: selected categories wrap cleanly with no horizontal
   scrollbar. Scroll mode remains available as an explicit editor option. */
.knfb-filter-bar.knfb-filter-style-wrap {
    flex-wrap: wrap;
    overflow: visible;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.knfb-filter-bar.knfb-filter-style-wrap::-webkit-scrollbar {
    display: none;
}

.knfb-filter-bar.knfb-filter-style-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.knfb-filter-dropdown {
    display: grid;
    grid-template-columns: auto minmax(220px, 360px);
    align-items: center;
    justify-content: start;
    gap: 12px;
    margin: 2px 0 14px;
}

.knfb-filter-dropdown-label {
    color: var(--knfb-ink);
    font-size: 13px;
    font-weight: 850;
}

.knfb-filter-select {
    width: 100%;
    min-height: 44px;
    padding: 0 42px 0 14px;
    border: 1px solid #dbe7f4;
    border-radius: 12px;
    background: #fff;
    color: #183251;
    box-shadow: 0 6px 16px rgba(23, 65, 116, .05);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}

.knfb-filter-select:focus {
    outline: 2px solid rgba(10,102,255,.22);
    outline-offset: 2px;
    border-color: #77aaff;
}

@media (max-width: 767px) {
    .knfb-layout-spotlight .knfb-hero-column > .knfb-hero-card {
        min-height: 430px;
        height: auto;
    }

    .knfb-filter-dropdown {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .knfb-filter-select {
        max-width: none;
    }
}
