/* KeepersNook Theme CSS — Layout, Nav, Hero, Sections, Cards, Footer */

:root {
    --kn-primary: #2A7B6F;
    --kn-primary-light: #3A9B8C;
    --kn-primary-pale: #E6F3F0;
    --kn-primary-dark: #1E5C53;
    --kn-accent: #D08B3A;
    --kn-accent-light: #E4AD5E;
    --kn-char: #1C2926;
    --kn-slate: #3B4845;
    --kn-stone: #6B7572;
    --kn-pebble: #A8B0AD;
    --kn-mist: #F2F6F4;
    --kn-white: #FFFFFF;
    --kn-radius: 10px;
    --kn-radius-sm: 6px;
    --kn-font-display: 'Literata', Georgia, serif;
    --kn-font-body: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--kn-primary-pale); color: var(--kn-primary-dark); }
body { font-family: var(--kn-font-body); color: var(--kn-slate); background: var(--kn-white); line-height: 1.75; }

/* ─── NAV ─── */
.kn-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 2px solid var(--kn-accent); }
.kn-nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.kn-nav-logo { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.kn-logo-text { font-family: var(--kn-font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.kn-logo-keepers { color: var(--kn-char); }
.kn-logo-nook { color: var(--kn-primary); }
.kn-nav-links { display: flex; align-items: center; gap: 4px; }
.kn-nav-link { padding: 8px 14px; border-radius: var(--kn-radius-sm); font-size: 13.5px; font-weight: 500; color: var(--kn-slate); text-decoration: none; transition: all .15s; border: none; background: none; cursor: pointer; font-family: var(--kn-font-body); }
.kn-nav-link:hover { background: var(--kn-mist); color: var(--kn-primary); }
.kn-nav-divider { width: 1px; height: 20px; background: rgba(168,176,173,.2); margin: 0 4px; }
.kn-nav-search { width: 36px; height: 36px; border-radius: 50%; background: var(--kn-mist); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--kn-stone); }
.kn-nav-more { position: relative; }
.kn-nav-more-btn { display: flex; align-items: center; gap: 4px; }
.kn-nav-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 4px; background: #fff; border-radius: var(--kn-radius); border: 1px solid rgba(168,176,173,.15); box-shadow: 0 12px 32px rgba(0,0,0,.1); padding: 8px; min-width: 200px; z-index: 200; }
.kn-nav-more:hover .kn-nav-dropdown { display: block; }
.kn-nav-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--kn-radius-sm); text-decoration: none; color: var(--kn-slate); font-size: 13.5px; }
.kn-nav-dropdown-item:hover { background: var(--kn-mist); }
.kn-nav-dropdown-item strong { display: block; color: var(--kn-char); font-size: 13px; }
.kn-nav-dropdown-item small { font-size: 11px; color: var(--kn-stone); }
.kn-nav-dropdown-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.kn-nav-mobile-toggle { display: none; background: none; border: none; color: var(--kn-slate); cursor: pointer; }

/* Search overlay */
.kn-search-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; align-items: flex-start; justify-content: center; padding-top: 120px; }
.kn-search-overlay.active { display: flex; }
.kn-search-overlay-inner { background: #fff; border-radius: var(--kn-radius); padding: 24px; width: 90%; max-width: 500px; position: relative; }
.kn-search-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--kn-stone); }

/* ─── HERO ─── */
.kn-hero { background: linear-gradient(160deg, var(--kn-char) 0%, #1a3330 50%, var(--kn-primary-dark) 100%); padding: 64px 24px 56px; text-align: center; }
.kn-hero-inner { max-width: 640px; margin: 0 auto; }
.kn-hero-badge { display: inline-block; background: rgba(208,139,58,.15); border: 1px solid rgba(208,139,58,.25); border-radius: 999px; padding: 5px 16px; margin-bottom: 22px; font-size: 12px; font-weight: 600; color: var(--kn-accent-light); }
.kn-hero-title { font-family: var(--kn-font-display); font-size: 42px; font-weight: 700; line-height: 1.12; color: #fff; margin-bottom: 14px; letter-spacing: -0.02em; }
.kn-hero-accent { color: var(--kn-accent-light); }
.kn-hero-subtitle { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.kn-hero-search { max-width: 440px; margin: 0 auto 36px; }
.kn-hero-search .search-form { display: flex; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 6px 6px 6px 18px; }
.kn-hero-search .search-field { flex: 1; background: none; border: none; color: #fff; font-size: 14px; outline: none; font-family: var(--kn-font-body); }
.kn-hero-search .search-field::placeholder { color: rgba(255,255,255,.3); }
.kn-hero-search .search-submit { background: var(--kn-accent); color: #fff; border: none; border-radius: 999px; padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--kn-font-body); }
.kn-hero-stats { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.kn-stat-num { display: block; font-family: var(--kn-font-display); font-size: 24px; font-weight: 700; color: #fff; }
.kn-stat-label { font-size: 11px; color: rgba(255,255,255,.4); font-weight: 500; }

/* ─── TRUST BAR ─── */
.kn-trust-bar { background: linear-gradient(90deg, var(--kn-accent), var(--kn-accent-light)); padding: 11px 24px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: #fff; }

/* ─── SECTIONS ─── */
.kn-section { padding: 52px 24px; }
.kn-section-inner { max-width: 960px; margin: 0 auto; }
.kn-bg-mist { background: var(--kn-mist); }
.kn-center { text-align: center; }
.kn-section-header { margin-bottom: 24px; }
.kn-section-header h2 { font-family: var(--kn-font-display); font-size: 24px; font-weight: 600; color: var(--kn-char); margin: 0; }
.kn-overline { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--kn-primary); margin-bottom: 4px; }

/* ─── GRIDS ─── */
.kn-grid { display: grid; gap: 16px; }
.kn-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kn-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── SILO CARDS ─── */
.kn-silo-card { display: block; background: #fff; border-radius: var(--kn-radius); border: 1px solid rgba(168,176,173,.15); padding: 24px 20px; text-decoration: none; transition: all .25s; position: relative; overflow: hidden; }
.kn-silo-card:hover { border-color: var(--silo-color); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.kn-silo-card[data-coming="true"] { opacity: .75; }
.kn-silo-badge { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 700; background: var(--kn-mist); color: var(--kn-pebble); padding: 2px 8px; border-radius: 999px; }
.kn-silo-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.kn-silo-name { font-family: var(--kn-font-display); font-size: 17px; font-weight: 600; color: var(--kn-char); margin-bottom: 12px; }
.kn-silo-count { font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }

/* ─── ARTICLE CARDS ─── */
.kn-article-card { display: block; background: #fff; border-radius: var(--kn-radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.kn-article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.kn-article-card-img { height: 140px; overflow: hidden; }
.kn-article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.kn-article-card-placeholder { height: 140px; }
.kn-article-card-body { padding: 14px 14px 16px; }
.kn-article-card-body h3, .kn-article-card-body h4 { font-family: var(--kn-font-display); font-size: 15px; font-weight: 600; color: var(--kn-char); margin-bottom: 4px; line-height: 1.3; }
.kn-article-card-body p { font-size: 12.5px; color: var(--kn-stone); line-height: 1.5; }
.kn-article-card-silo { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.3px; margin-bottom: 4px; }
.kn-article-card-compact { border: 1px solid rgba(168,176,173,.12); }

/* ─── COMPAT CARDS ─── */
.kn-compat-card { display: block; background: #fff; border-radius: var(--kn-radius); border: 1px solid rgba(168,176,173,.12); padding: 22px 20px; text-decoration: none; transition: all .2s; }
.kn-compat-card:hover { border-color: var(--kn-accent); transform: translateY(-2px); }
.kn-compat-card h3 { font-family: var(--kn-font-display); font-size: 15px; font-weight: 600; color: var(--kn-char); margin-bottom: 14px; line-height: 1.35; }
.kn-compat-bar { height: 6px; background: var(--kn-mist); border-radius: 999px; margin-bottom: 12px; overflow: hidden; }
.kn-compat-fill { height: 100%; background: linear-gradient(90deg, var(--kn-accent), var(--kn-accent-light)); border-radius: 999px; }
.kn-compat-meta { display: flex; justify-content: space-between; align-items: center; }
.kn-compat-verdict { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--kn-accent); }
.kn-compat-pct { font-size: 12px; color: var(--kn-pebble); font-weight: 600; }

/* ─── FEEDING LIST ─── */
.kn-feeding-list { display: flex; flex-direction: column; gap: 8px; }
.kn-feeding-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: var(--kn-radius-sm); padding: 15px 20px; border: 1px solid rgba(168,176,173,.1); text-decoration: none; transition: border-color .2s; }
.kn-feeding-item:hover { border-color: var(--kn-primary); }
.kn-feeding-info { display: flex; align-items: center; gap: 12px; }
.kn-feeding-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.kn-feeding-title { font-family: var(--kn-font-display); font-size: 14.5px; font-weight: 500; color: var(--kn-char); }
.kn-feeding-verdict { font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.kn-verdict-safe { color: #4A8F5A; }
.kn-verdict-conditional { color: var(--kn-accent); }
.kn-verdict-unsafe { color: #B8434E; }

/* ─── CROSS-SILO ─── */
.kn-cross-silo-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.kn-cross-silo-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.kn-cross-silo-circle { width: 56px; height: 56px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.kn-cross-silo-circle:hover { transform: scale(1.1); }
.kn-cross-silo-label { font-size: 11.5px; font-weight: 600; color: var(--kn-slate); }

/* ─── NEWSLETTER ─── */
.kn-newsletter { padding: 52px 24px; background: linear-gradient(135deg, var(--kn-primary-dark), var(--kn-primary)); text-align: center; }
.kn-newsletter-inner { max-width: 480px; margin: 0 auto; }
.kn-newsletter h3 { font-family: var(--kn-font-display); font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.kn-newsletter p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ─── PILLAR HERO ─── */
.kn-pillar-hero { padding: 48px 24px; background: var(--silo-pale); border-bottom: 3px solid var(--silo-color); }
.kn-pillar-hero-inner { max-width: 960px; margin: 0 auto; }
.kn-pillar-title { font-family: var(--kn-font-display); font-size: 36px; font-weight: 700; color: var(--kn-char); margin-bottom: 8px; }
.kn-pillar-desc { font-size: 15px; color: var(--kn-stone); margin-bottom: 16px; max-width: 600px; }
.kn-pillar-stat { font-size: 14px; color: var(--kn-slate); }
.kn-pillar-stat strong { font-weight: 700; color: var(--silo-color); font-size: 20px; }

/* ─── FILTER PILLS ─── */
.kn-filter-pills { padding: 16px 24px; background: #fff; border-bottom: 1px solid rgba(168,176,173,.12); position: sticky; top: 60px; z-index: 50; }
.kn-filter-pills-inner { max-width: 960px; margin: 0 auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kn-pill { padding: 6px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--kn-stone); background: var(--kn-mist); border: 1px solid transparent; transition: all .15s; }
.kn-pill:hover, .kn-pill-active { background: var(--kn-primary-pale); color: var(--kn-primary); border-color: var(--kn-primary); }

/* ─── ARTICLE PAGE ─── */
.kn-article-header { padding: 48px 24px 32px; background: var(--kn-mist); }
.kn-article-header-inner { max-width: 720px; margin: 0 auto; }
.kn-article-silo-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.kn-article-header h1 { font-family: var(--kn-font-display); font-size: 32px; font-weight: 700; color: var(--kn-char); line-height: 1.2; margin-bottom: 12px; }
.kn-article-meta { font-size: 13px; color: var(--kn-stone); display: flex; gap: 16px; }
.kn-article-content { max-width: 720px; margin: 0 auto; padding: 32px 24px 48px; }
.kn-article-content h2 { font-family: var(--kn-font-display); font-size: 22px; font-weight: 600; color: var(--kn-char); margin: 32px 0 12px; }
.kn-article-content h3 { font-family: var(--kn-font-display); font-size: 18px; font-weight: 600; color: var(--kn-char); margin: 24px 0 8px; }
.kn-article-content p { margin-bottom: 16px; }

/* ─── PAGE ─── */
.kn-page-header { padding: 48px 24px 24px; background: var(--kn-mist); text-align: center; }
.kn-page-header h1 { font-family: var(--kn-font-display); font-size: 32px; font-weight: 700; color: var(--kn-char); }
.kn-page-content { max-width: 720px; margin: 0 auto; padding: 32px 24px 48px; }

/* ─── RELATED STRIP ─── */
.kn-related-strip { max-width: 960px; margin: 0 auto; padding: 32px 24px 48px; border-top: 1px solid rgba(168,176,173,.12); }
.kn-related-strip h3 { font-family: var(--kn-font-display); font-size: 18px; font-weight: 600; color: var(--kn-char); margin-bottom: 16px; }

/* ─── PAGINATION ─── */
.kn-pagination { text-align: center; padding: 32px 0; }
.kn-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 2px; border-radius: var(--kn-radius-sm); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--kn-stone); background: var(--kn-mist); }
.kn-pagination .page-numbers.current { background: var(--kn-primary); color: #fff; }
.kn-empty { text-align: center; padding: 48px 0; color: var(--kn-stone); font-size: 15px; }

/* ─── FOOTER ─── */
.kn-footer { background: var(--kn-char); padding: 44px 24px 24px; color: rgba(255,255,255,.4); }
.kn-footer-inner { max-width: 960px; margin: 0 auto; }
.kn-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.kn-footer-col p { font-size: 12.5px; line-height: 1.65; }
.kn-footer-col small { font-size: 11px; color: rgba(255,255,255,.25); display: block; margin-top: 10px; }
.kn-footer-heading { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.2); margin-bottom: 14px; }
.kn-footer-col a { display: block; font-size: 12.5px; color: rgba(255,255,255,.45); text-decoration: none; margin-bottom: 8px; }
.kn-footer-col a:hover { color: rgba(255,255,255,.7); }
.kn-footer-logo { margin-bottom: 12px; }
.kn-footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 16px; display: flex; justify-content: space-between; font-size: 11px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .kn-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .kn-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .kn-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .kn-nav-links { display: none; }
    .kn-nav-mobile-toggle { display: flex; }
    .kn-hero-title { font-size: 32px; }
    .kn-pillar-title { font-size: 28px; }
}
@media (max-width: 480px) {
    .kn-grid-3, .kn-grid-4 { grid-template-columns: 1fr; }
    .kn-footer-grid { grid-template-columns: 1fr; }
    .kn-hero-title { font-size: 28px; }
    .kn-hero-stats { gap: 20px; }
    .kn-trust-bar { gap: 16px; font-size: 11px; }
    .kn-footer-bottom { flex-direction: column; gap: 4px; }
}

/* ─── ADDITIONS: Missing visuals ─── */

/* Nav link with icon */
.kn-nav-link { display: inline-flex; align-items: center; gap: 5px; }
.kn-nav-link svg { flex-shrink: 0; }
.kn-nav-logo { gap: 10px; }

/* Silo card description */
.kn-silo-desc { font-family: var(--kn-font-body); font-size: 12.5px; color: var(--kn-stone); line-height: 1.5; margin-bottom: 12px; }

/* Card placeholder icon */
.kn-card-placeholder-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Article card silo badge */
.kn-article-card-silo { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.3px; margin-bottom: 6px; padding: 2px 8px; border-radius: 4px; }

/* Author cards */
.kn-author-card { background: var(--kn-white); border-radius: var(--kn-radius); border: 1px solid rgba(168,176,173,.12); padding: 22px 16px; text-align: center; }
.kn-author-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--kn-primary-pale), rgba(42,123,111,.08)); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 17px; font-weight: 700; color: var(--kn-primary); font-family: var(--kn-font-body); }
.kn-author-name { font-family: var(--kn-font-display); font-size: 14px; font-weight: 600; color: var(--kn-char); margin-bottom: 2px; }
.kn-author-role { font-family: var(--kn-font-body); font-size: 11.5px; color: var(--kn-primary); font-weight: 600; margin-bottom: 4px; }
.kn-author-specialty { font-family: var(--kn-font-body); font-size: 11px; color: var(--kn-stone); }
.kn-author-badge { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: #4A8F5A; background: #E8F0E9; padding: 3px 10px; border-radius: 999px; }

/* Section subtitle */
.kn-section-subtitle { font-family: var(--kn-font-body); font-size: 14px; color: var(--kn-stone); margin-top: 6px; }

/* Trust bar icon alignment */
.kn-trust-bar span { display: inline-flex; align-items: center; gap: 6px; }
.kn-trust-bar svg { flex-shrink: 0; }

/* Footer logo with mark */
.kn-footer-logo { display: flex; align-items: center; gap: 8px; }

/* ─── Hero Search Bar: override Brunch Pro defaults ─── */
.kn-hero-search .search-form {
    display: flex !important;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
    max-width: 440px;
    margin: 0 auto;
    overflow: hidden;
}
.kn-hero-search .search-form label {
    flex: 1;
    margin: 0;
    padding: 0;
    float: none !important;
    width: auto !important;
}
.kn-hero-search .search-form input {
    float: none !important;
    display: block !important;
    width: 100% !important;
    clear: none !important;
    margin: 0 !important;
}
.kn-hero-search .search-field {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px;
    padding: 8px 4px !important;
    outline: none;
    font-family: var(--kn-font-body);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    width: 100% !important;
    float: none !important;
}
.kn-hero-search .search-field::placeholder {
    color: rgba(255,255,255,0.3);
}
.kn-hero-search .search-field:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.kn-hero-search .search-submit {
    background: var(--kn-accent, #D08B3A) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 9px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    font-family: var(--kn-font-body);
    white-space: nowrap;
    flex-shrink: 0;
    float: none !important;
    width: auto !important;
    letter-spacing: 0 !important;
    transition: background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.kn-hero-search .search-submit:hover {
    background: #E4AD5E !important;
}

/* ─── Footer Care Guides: flex alignment for SVG icons ─── */
.kn-footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.kn-footer-col a svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

/* ─── TABLE STYLES (for .kn-article-content) ─── */
.kn-article-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    border: 1px solid #E6F3F0 !important;
    margin: 24px 0 !important;
    font-family: var(--kn-font-body, "Plus Jakarta Sans", sans-serif) !important;
    font-size: 14px !important;
}
.kn-article-content table caption {
    text-align: left !important;
    font-family: var(--kn-font-display, "Literata", serif) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #1C2926 !important;
    padding: 0 0 10px 0 !important;
    caption-side: top !important;
}
.kn-article-content table thead th {
    background: #2A7B6F !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    text-align: left !important;
    border: none !important;
    white-space: nowrap !important;
}
.kn-article-content table thead th:first-child {
    border-top-left-radius: 10px !important;
}
.kn-article-content table thead th:last-child {
    border-top-right-radius: 10px !important;
}
.kn-article-content table tbody td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #E6F3F0 !important;
    color: #3B4845 !important;
    vertical-align: top !important;
    line-height: 1.5 !important;
}
.kn-article-content table tbody tr:nth-child(even) {
    background: #F2F6F4 !important;
}
.kn-article-content table tbody tr:nth-child(odd) {
    background: #fff !important;
}
.kn-article-content table tbody tr:hover {
    background: #E6F3F0 !important;
}
.kn-article-content table tbody tr:last-child td {
    border-bottom: none !important;
}
.kn-article-content table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px !important;
}
.kn-article-content table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px !important;
}
/* Responsive table */
@media (max-width: 768px) {
    .kn-article-content table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .kn-article-content table thead th {
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: 10px 12px !important;
    }
    .kn-article-content table tbody td {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
}

/* Also apply to .entry-content for any Genesis-rendered pages */
.entry-content table { width: 100% !important; border-collapse: separate !important; border-spacing: 0 !important; border-radius: 10px !important; overflow: visible !important; border: 1px solid #E6F3F0 !important; margin: 24px 0 !important; font-size: 14px !important; }
.entry-content table thead th { background: #2A7B6F !important; color: #fff !important; font-weight: 600 !important; padding: 12px 16px !important; text-align: left !important; border: none !important; font-size: 13px !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; }
.entry-content table tbody td { padding: 12px 16px !important; border-bottom: 1px solid #E6F3F0 !important; color: #3B4845 !important; }
.entry-content table tbody tr:nth-child(even) { background: #F2F6F4 !important; }
.entry-content table tbody tr:hover { background: #E6F3F0 !important; }

/* ═══ FIX: Pros/Cons double icon — remove CSS pseudo-element since PHP already outputs ✓/✗ ═══ */
.kn-proscons__col--pros .kn-proscons__item::before,
.kn-proscons__col--cons .kn-proscons__item::before {
    content: none !important;
    display: none !important;
}
.kn-proscons__item {
    padding-left: 0 !important;
}

/* ═══ FIX: Table styling — nuclear specificity to override Brunch Pro + Genesis ═══ */
html body .kn-article-content table,
html body .entry-content table,
html body .kn-page-content table,
html body table {
    /* original overflow removed */
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 10px !important;
    overflow: visible !important;
/* Scrollable table override */
.kn-table-wrap table {
    width: max-content !important;
    min-width: 100%;
    overflow: visible !important;
}
    border: 1px solid #d0ddd9 !important;
    margin: 24px 0 !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
}
html body .kn-article-content table caption,
html body table caption {
    text-align: left !important;
    font-family: "Literata", Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #1C2926 !important;
    padding: 0 0 10px !important;
    caption-side: top !important;
}
html body .kn-article-content table thead th,
html body .entry-content table thead th,
html body table thead th {
    background: #2A7B6F !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 13px 16px !important;
    text-align: left !important;
    border: none !important;
    border-bottom: none !important;
}
html body .kn-article-content table tbody td,
html body .entry-content table tbody td,
html body table tbody td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #E6F3F0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    color: #3B4845 !important;
    vertical-align: top !important;
    line-height: 1.5 !important;
    background: transparent !important;
}
html body .kn-article-content table tbody tr:nth-child(even),
html body table tbody tr:nth-child(even) {
    background: #F2F6F4 !important;
}
html body .kn-article-content table tbody tr:nth-child(odd),
html body table tbody tr:nth-child(odd) {
    background: #fff !important;
}
html body .kn-article-content table tbody tr:hover,
html body table tbody tr:hover {
    background: #E6F3F0 !important;
}
html body .kn-article-content table tbody tr:last-child td,
html body table tbody tr:last-child td {
    border-bottom: none !important;
}
@media (max-width: 768px) {
    html body .kn-article-content table,
    html body table {
    /* original overflow removed */
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ─── PHOSPHOR ICON ALIGNMENT ─── */
.kn-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}
.ph {
    vertical-align: middle;
    line-height: 1;
}

/* ─── FOOTER: Social Icons ─── */
.kn-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.kn-footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    font-size: 16px;
    transition: all .2s;
}
.kn-footer-social-link:hover {
    border-color: rgba(255,255,255,.35);
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.05);
}

/* ─── FOOTER: Subscribe Form ─── */
.kn-footer-subscribe {
    display: flex;
    gap: 0;
    margin-top: 14px;
    border-radius: 6px;
    overflow: hidden;
}
.kn-footer-email {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-right: none;
    border-radius: 6px 0 0 6px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-family: var(--kn-font-body);
    outline: none;
}
.kn-footer-email::placeholder {
    color: rgba(255,255,255,.25);
}
.kn-footer-email:focus {
    border-color: var(--kn-primary-light);
    background: rgba(255,255,255,.08);
}
.kn-footer-submit {
    padding: 10px 18px;
    background: var(--kn-primary);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--kn-font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.kn-footer-submit:hover {
    background: var(--kn-primary-light);
}

/* ─── Nav icon alignment with Phosphor ─── */
.kn-nav-link .ph,
.kn-nav-more-btn .ph {
    vertical-align: middle;
    line-height: 1;
}
.kn-nav-search .ph {
    font-size: 16px;
}
.kn-trust-bar .ph {
    vertical-align: middle;
}

/* ─── Footer Care Guides: Phosphor icon alignment ─── */
.kn-footer-col a .ph {
    font-size: 13px;
    margin-right: 2px;
}
/* ─── Footer links: force single column ─── */
.kn-footer-col a {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

/* ─── FIX: Footer links single column (not inline) ─── */
.kn-footer-col a {
    display: block !important;
    margin-bottom: 8px;
}
.kn-footer-social {
    display: flex !important;
}
.kn-footer-social a.kn-footer-social-link {
    display: flex !important;
    width: 34px;
    height: 34px;
}

/* ─── FIX: Hero search bar pill shape ─── */
.kn-hero-search .search-form {
    display: flex !important;
    align-items: center !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 999px !important;
    padding: 6px 6px 6px 18px !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    overflow: visible !important;
}
.kn-hero-search .search-form > * {
    float: none !important;
}
.kn-hero-search .search-form label {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}
.kn-hero-search .search-field {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 10px 8px !important;
    outline: none !important;
    font-family: var(--kn-font-body) !important;
    box-shadow: none !important;
    width: 100% !important;
    float: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
}
.kn-hero-search .search-field::placeholder {
    color: rgba(255,255,255,0.3) !important;
}
.kn-hero-search .search-field:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.kn-hero-search .search-submit,
.kn-hero-search input[type="submit"] {
    background: var(--kn-accent, #D08B3A) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: var(--kn-font-body) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    float: none !important;
    width: auto !important;
    letter-spacing: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
}
.kn-hero-search .search-submit:hover,
.kn-hero-search input[type="submit"]:hover {
    background: #E4AD5E !important;
}
/* ─── FIX: Hero search — Genesis uses .search-form-input / .search-form-submit ─── */
html body .kn-hero-search .search-form {
    display: flex !important;
    align-items: center !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 999px !important;
    padding: 5px 5px 5px 20px !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    gap: 0 !important;
}
html body .kn-hero-search .search-form-input,
html body .kn-hero-search input[type="search"] {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 10px 8px !important;
    outline: none !important;
    font-family: var(--kn-font-body) !important;
    box-shadow: none !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
html body .kn-hero-search .search-form-input::placeholder,
html body .kn-hero-search input[type="search"]::placeholder {
    color: rgba(255,255,255,0.35) !important;
}
html body .kn-hero-search .search-form-input:focus,
html body .kn-hero-search input[type="search"]:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
html body .kn-hero-search .search-form-submit,
html body .kn-hero-search input[type="submit"] {
    background: var(--kn-accent, #D08B3A) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: var(--kn-font-body) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
    letter-spacing: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
}
html body .kn-hero-search .search-form-submit:hover,
html body .kn-hero-search input[type="submit"]:hover {
    background: var(--kn-accent-light, #E4AD5E) !important;
}

/* ─── SEARCH RESULTS PAGE ─── */
.kn-search-hero {
    padding: 40px 24px 36px;
    background: var(--kn-mist);
    text-align: center;
    border-bottom: 1px solid rgba(168,176,173,.12);
}
.kn-search-hero-inner {
    max-width: 600px;
    margin: 0 auto;
}
.kn-search-title {
    font-family: var(--kn-font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--kn-char);
    line-height: 1.25;
    margin-bottom: 20px;
}
.kn-search-bar .search-form {
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(168,176,173,.2) !important;
    border-radius: 999px !important;
    padding: 5px 5px 5px 20px !important;
    max-width: 440px !important;
    margin: 0 auto !important;
}
.kn-search-bar .search-form-input,
.kn-search-bar input[type="search"] {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    color: var(--kn-char) !important;
    font-size: 14px !important;
    padding: 10px 8px !important;
    outline: none !important;
    font-family: var(--kn-font-body) !important;
    box-shadow: none !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    height: auto !important;
}
.kn-search-bar .search-form-submit,
.kn-search-bar input[type="submit"] {
    background: var(--kn-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: var(--kn-font-body) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    height: auto !important;
    -webkit-appearance: none !important;
}
.kn-search-bar .search-form-submit:hover,
.kn-search-bar input[type="submit"]:hover {
    background: var(--kn-primary-light) !important;
}
.kn-search-empty {
    text-align: center;
    padding: 48px 24px;
}
.kn-search-empty-icon {
    margin-bottom: 16px;
}
.kn-search-empty h2 {
    font-family: var(--kn-font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--kn-char);
    margin-bottom: 8px;
}
.kn-search-empty p {
    font-size: 14px;
    color: var(--kn-stone);
}

/* ─── TOC: Clean bar markers, no numbers ─── */
div#ez-toc-container .ez-toc-list { margin: 0; padding: 6px 0; list-style: none; }
div#ez-toc-container .ez-toc-list li { margin: 0; padding: 0; list-style: none; }
div#ez-toc-container .ez-toc-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  text-decoration: none;
}
div#ez-toc-container .ez-toc-list li a::before {
  content: ""; display: block;
  width: 3px; height: 14px; border-radius: 2px;
  background: rgba(168,176,173,.3); flex-shrink: 0;
}
div#ez-toc-container .ez-toc-list li.ez-toc-active a::before { background: var(--kn-primary); }
div#ez-toc-container .ez-toc-list ul { list-style: none; margin: 0; padding: 0; }
div#ez-toc-container .ez-toc-list ul li a { padding-left: 40px; }

/* ─── TOC: transparent header + visible divider ─── */
div#ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  cursor: pointer;
  background: transparent !important;
  border-bottom: 1px solid rgba(168,176,173,.35);
}

/* ─── TOC: white body, keep container border teal-tinted ─── */
div#ez-toc-container nav {
  background: #fff !important;
}
div#ez-toc-container .ez-toc-list {
  background: #fff !important;
}

/* ─── FIX: Toggle clickability ─── */
.kn-toggle__header {
  cursor: pointer !important;
  user-select: none;
}
.kn-toggle__content {
  display: none;
}
.kn-toggle.is-open .kn-toggle__content {
  display: block;
}

/* ─── TOC: Full width ─── */
div#ez-toc-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 !important;
}


/* Article Hero Image - override Genesis float */
.kn-article-hero {
    max-width: 100%;
    margin: 0 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    clear: both;
    float: none !important;
}
.kn-article-hero .kn-hero-img {
    width: 100%;
    height: auto;
    display: block;
    float: none !important;
    margin: 0 !important;
    padding: 0;
    border-radius: 12px;
    max-width: 100% !important;
}


/* In-content article images */
.kn-in-content-figure {
    margin: 2rem 0;
    max-width: 100%;
}
.kn-in-content-figure img,
.kn-in-content-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Force article images within content column */
.kn-article-content .kn-article-hero,
.kn-article-content .kn-in-content-figure {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}
.kn-article-content .kn-hero-img,
.kn-article-content .kn-in-content-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
