/* KundliChat WordPress theme — scoped to body.kc-article-site */

:root {
    --kc-gold: #E9D000;
    --kc-gold-light: #FFE77A;
    --kc-gold-soft: #FFF6B0;
    --kc-gold-bg: #FFFDF2;
    --kc-gold-bg2: #FFF4B8;
    --kc-ink: #1E1A08;
    --kc-title: #191506;
    --kc-subtitle: #5F5209;
    --kc-text: #222222;
    --kc-muted: #616161;
    --kc-selected: #FF0F0F;
    --kc-busy: #FF3B3B;
    --kc-teal: #3F797C;
    --kc-radius-card: 16px;
    --kc-radius-chip: 12px;
    --kc-radius-pill: 20px;
    --kc-header-h: 64px;
    --kc-page-max: 1140px;
}

body.kc-article-site {
    font-family: 'Lato', sans-serif;
    background: #fff;
    color: var(--kc-text);
}

body.kc-article-site a {
    color: var(--kc-teal);
}

.kc-skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--kc-ink);
    color: #fff;
    padding: 8px 12px;
    z-index: 1100;
}

.kc-skip-link:focus {
    left: 12px;
    top: 12px;
}

.kc-page,
.container.content,
.kc-article-site .container.kc-page {
    max-width: var(--kc-page-max);
}

.kc-main.content,
.kc-article-site .content {
    margin-top: calc(var(--kc-header-h) + 8px);
    width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
}

.kc-section-label {
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--kc-subtitle);
    margin-bottom: 8px;
}

/* ── Header (matches Laravel kc-header) ── */
.kc-header {
    z-index: 1030;
    padding: 10px 0;
    background:
        linear-gradient(180deg, rgba(255, 253, 242, 0.97) 0%, rgba(255, 248, 214, 0.94) 100%);
    backdrop-filter: saturate(1.2) blur(14px);
    -webkit-backdrop-filter: saturate(1.2) blur(14px);
    border-bottom: 1px solid rgba(233, 208, 0, 0.28);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 8px 28px rgba(30, 26, 8, 0.05);
}

.kc-header-glow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(233, 208, 0, 0.15) 12%,
        var(--kc-gold) 50%,
        rgba(233, 208, 0, 0.15) 88%,
        transparent 100%
    );
    pointer-events: none;
}

.kc-header > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.kc-header .navbar-brand,
.kc-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.kc-brand:hover {
    opacity: 0.88;
}

.kc-logo-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #FFF8D6 100%);
    border: 1px solid rgba(233, 208, 0, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 12px rgba(233, 208, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.kc-logo-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.kc-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.kc-brand-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--kc-title);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.kc-brand-sub {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--kc-subtitle);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.kc-nav {
    gap: 2px;
}

.kc-nav-link {
    position: relative;
    color: var(--kc-ink) !important;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.7rem !important;
    border-radius: 8px;
}

.kc-nav > .nav-item:not(.dropdown) > .kc-nav-link::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.2rem;
    height: 1.5px;
    border-radius: 2px;
    background: var(--kc-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
    opacity: 0.85;
}

.kc-nav-link:hover {
    color: var(--kc-title) !important;
    background: rgba(255, 255, 255, 0.45);
}

.kc-nav > .nav-item:not(.dropdown) > .kc-nav-link:hover::before,
.kc-nav > .nav-item:not(.dropdown) > .kc-nav-link.active::before {
    transform: scaleX(1);
}

.kc-nav-link.active {
    color: var(--kc-title) !important;
    font-weight: 800;
}

.kc-nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(233, 208, 0, 0.65);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--kc-ink);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(30, 26, 8, 0.05);
}

.kc-nav-chip:hover {
    color: var(--kc-ink);
    background: #fff;
}

.kc-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    background: var(--kc-ink);
    color: #FFFDF2 !important;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(30, 26, 8, 0.18);
}

.kc-nav-cta:hover {
    background: #2a240c;
    color: #FFFDF2 !important;
}

.kc-dropdown {
    margin-top: 0.5rem !important;
    padding: 0.4rem;
    min-width: 12.5rem;
    background: #FFFEF8;
    border: 1px solid rgba(233, 208, 0, 0.35);
    border-radius: 12px;
    box-shadow:
        0 12px 32px rgba(30, 26, 8, 0.1),
        0 2px 6px rgba(30, 26, 8, 0.04);
}

.kc-dropdown .dropdown-item {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--kc-ink);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.kc-dropdown .dropdown-item:hover,
.kc-dropdown .dropdown-item:focus,
.kc-dropdown .dropdown-item.active {
    background: linear-gradient(90deg, var(--kc-gold-soft), rgba(255, 231, 122, 0.45));
    color: var(--kc-title);
}

.kc-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kc-nav-toggler {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(233, 208, 0, 0.55);
    border-radius: 10px;
}

.kc-nav-toggler .navbar-toggler-icon {
    display: none;
}

.kc-toggler-bar {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--kc-ink);
}

.kc-nav-toggler[aria-expanded="true"] .kc-toggler-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.kc-nav-toggler[aria-expanded="true"] .kc-toggler-bar:nth-child(2) {
    opacity: 0;
}

.kc-nav-toggler[aria-expanded="true"] .kc-toggler-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 992px) {
    .kc-header > .container {
        flex-wrap: nowrap;
    }

    .kc-header-tools {
        flex-shrink: 0;
        margin-left: auto;
    }

    .kc-header .navbar-collapse {
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    .kc-header .navbar-collapse {
        width: 100%;
        margin-top: 10px;
        padding: 10px 8px 12px;
        background: rgba(255, 255, 242, 0.98);
        border: 1px solid rgba(233, 208, 0, 0.3);
        border-radius: 14px;
        box-shadow: 0 10px 28px rgba(30, 26, 8, 0.08);
    }

    .kc-nav-link {
        padding: 0.65rem 0.85rem !important;
    }

    .kc-nav > .nav-item:not(.dropdown) > .kc-nav-link::before {
        display: none;
    }

    .kc-nav-link.active {
        background: linear-gradient(90deg, var(--kc-gold-soft), rgba(255, 231, 122, 0.35));
    }
}

/* ── Footer ── */
.kc-footer {
    position: relative;
    margin-top: 64px;
    padding: 56px 0 0;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFDF2 0%, #FFF8D6 42%, #FFEFA0 100%);
    border-top: 1px solid rgba(233, 208, 0, 0.45);
    color: var(--kc-text);
}

.kc-footer-glow {
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(233, 208, 0, 0.15) 20%,
        rgba(233, 208, 0, 0.85) 50%,
        rgba(233, 208, 0, 0.15) 80%,
        transparent 100%
    );
    pointer-events: none;
}

.kc-footer-top {
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(0, 2fr);
    gap: 48px 56px;
    padding-bottom: 40px;
}

.kc-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.kc-footer-about {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--kc-muted);
}

.kc-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 16px;
    background: var(--kc-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(30, 26, 8, 0.16);
}

.kc-footer-cta:hover {
    background: #000;
    color: #fff;
}

.kc-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
}

.kc-footer-heading {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--kc-title);
    position: relative;
    padding-bottom: 10px;
}

.kc-footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--kc-gold), rgba(233, 208, 0, 0.2));
}

.kc-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kc-footer-links li {
    margin: 0 0 11px;
}

.kc-footer-links a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.kc-footer-links a:hover {
    color: var(--kc-ink);
    padding-left: 3px;
}

.kc-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(233, 208, 0, 0.35);
}

.kc-footer-copy,
.kc-footer-tagline {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--kc-subtitle);
}

.kc-footer-tagline {
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 11px;
}

/* ── Bottom tab bar ── */
.kc-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.kc-bottom-nav-shell {
    pointer-events: auto;
    max-width: 520px;
    margin: 0 auto;
    height: 68px;
    padding: 5px;
    display: flex;
    gap: 4px;
    border-radius: 26px;
    background: linear-gradient(135deg, #FFF6B0 0%, #FFE77A 50%, #E9D000 100%);
    border: 1.2px solid #201D08;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.kc-bottom-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 2px;
    padding: 7px 6px;
    border-radius: 21px;
    text-decoration: none;
    color: #222;
    border: 1px solid transparent;
}

.kc-bottom-nav-item:hover {
    color: #222;
}

.kc-bottom-nav-icon {
    width: 28px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc-bottom-nav-icon .material-icons {
    font-size: 19px;
    color: #222;
    line-height: 1;
}

.kc-bottom-nav-label {
    font-size: 10.8px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body.kc-bottom-nav-active {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    .kc-bottom-nav {
        display: none;
    }

    body.kc-bottom-nav-active {
        padding-bottom: 0;
    }
}

/* ── Hero, search, listing ── */
.feature-hero,
.kc-articles-hero {
    background: linear-gradient(135deg, #FFFDF2 0%, #FFF4B8 50%, #FFE77A 100%);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(233, 208, 0, 0.15);
    border: 1px solid rgba(233, 208, 0, 0.4);
}

.kc-articles-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--kc-title);
    margin-bottom: 12px;
}

.kc-articles-hero p,
.kc-archive-description {
    font-size: 1.1rem;
    color: var(--kc-subtitle);
    max-width: 640px;
    margin: 0 auto 20px;
}

.kc-search-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}

.kc-search-input {
    flex: 1;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(233, 208, 0, 0.7);
    padding: 0 18px;
    font-size: 0.95rem;
    background: #fff;
}

.kc-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 208, 0, 0.28);
}

.kc-search-submit,
.kc-btn-primary {
    background: linear-gradient(135deg, #ff8a00, var(--kc-gold));
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000;
    padding: 10px 22px;
    border-radius: var(--kc-radius-pill);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kc-search-submit:hover,
.kc-btn-primary:hover {
    color: #000;
    opacity: 0.92;
}

.kc-categories {
    padding: 4px 0 18px;
}

.kc-categories-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.kc-categories-scroll::-webkit-scrollbar {
    display: none;
}

.kc-category-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    padding: 0 8px;
    min-width: 64px;
}

.kc-category-icon {
    width: 48px;
    height: 48px;
    background: var(--kc-gold);
    border-radius: var(--kc-radius-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.kc-category-icon .material-icons {
    font-size: 26px;
    color: #000;
}

.kc-category-label {
    display: block;
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--kc-muted);
}

.kc-category-item.is-selected .kc-category-label {
    font-weight: 900;
    color: var(--kc-selected);
}

.kc-listing-layout.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.kc-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.kc-post-card {
    background: #fff;
    border: 2px solid var(--kc-gold);
    border-radius: var(--kc-radius-card);
    box-shadow: 0 4px 12px rgba(233, 208, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kc-post-card-media {
    display: block;
    background: var(--kc-gold-bg);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.kc-post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kc-post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFFDF2, #FFE77A);
    color: var(--kc-ink);
}

.kc-post-card-placeholder .material-icons {
    font-size: 42px;
}

.kc-post-card-body {
    padding: 16px 16px 18px;
}

.kc-post-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 10px 0 8px;
    color: var(--kc-title);
    line-height: 1.3;
}

.kc-post-card-title a {
    color: inherit;
    text-decoration: none;
}

.kc-post-card-title a:hover {
    color: var(--kc-ink);
}

.kc-post-card-excerpt {
    margin: 0 0 10px;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.kc-chip {
    display: inline-flex;
    align-items: center;
    background: var(--kc-gold-soft);
    color: var(--kc-ink);
    border: 1px solid var(--kc-gold);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.kc-chip:hover {
    color: var(--kc-ink);
    background: var(--kc-gold-light);
}

.kc-chip-muted {
    background: #fff;
}

.kc-empty {
    text-align: center;
    padding: 48px 20px;
    border: 1px dashed rgba(233, 208, 0, 0.6);
    border-radius: 16px;
    background: var(--kc-gold-bg);
}

.kc-empty h2 {
    font-weight: 800;
    color: var(--kc-title);
}

.kc-widget {
    background: #fff;
    border: 1px solid rgba(233, 208, 0, 0.35);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
}

.kc-widget-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--kc-title);
    margin-bottom: 12px;
}

.kc-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kc-widget li {
    margin: 0 0 8px;
}

.kc-widget a {
    color: var(--kc-ink);
    text-decoration: none;
    font-weight: 600;
}

.kc-pagination {
    margin: 28px 0 8px;
    text-align: center;
}

.kc-pagination .nav-links,
.kc-pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.kc-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(233, 208, 0, 0.65);
    color: var(--kc-ink);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.kc-pagination .page-numbers.current,
.kc-pagination .page-numbers:hover {
    background: var(--kc-gold);
    color: #000;
}

/* ── Single article ── */
.kc-single-wrap {
    max-width: 800px;
}

.kc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--kc-muted);
    margin-bottom: 16px;
}

.kc-breadcrumb a {
    color: var(--kc-subtitle);
    text-decoration: none;
}

.kc-article-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.kc-article-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--kc-title);
    line-height: 1.25;
    margin-bottom: 10px;
}

.kc-article-meta {
    color: var(--kc-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.kc-article-hero {
    margin: 0 0 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(233, 208, 0, 0.35);
}

.kc-article-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.kc-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.kc-page-links {
    margin-top: 20px;
    font-weight: 700;
}

/* Native post content */
.kc-article-body,
.seo-content {
    font-size: 1.05rem;
    color: var(--kc-text);
}

.kc-article-body h1,
.kc-article-body h2,
.kc-article-body h3,
.kc-article-body h4,
.seo-content h2,
.seo-content h3 {
    color: var(--kc-title);
    font-weight: 800;
    line-height: 1.3;
    margin: 1.6em 0 0.6em;
}

.kc-article-body h2,
.seo-content h2 {
    font-size: 1.35rem;
}

.kc-article-body h3 {
    font-size: 1.15rem;
}

.kc-article-body p,
.kc-article-body li,
.seo-content p,
.seo-content li {
    color: #444;
    line-height: 1.75;
}

.kc-article-body p,
.seo-content p {
    margin: 0 0 1.1em;
}

.kc-article-body a,
.seo-content a {
    color: var(--kc-teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kc-article-body a:hover {
    color: var(--kc-ink);
}

.kc-article-body ul,
.kc-article-body ol {
    padding-left: 1.3em;
    margin-bottom: 1.2em;
}

.kc-article-body li + li {
    margin-top: 0.35em;
}

.kc-article-body blockquote {
    margin: 1.4em 0;
    padding: 16px 20px;
    background: var(--kc-gold-bg);
    border-left: 4px solid var(--kc-gold);
    border-radius: 0 12px 12px 0;
    color: var(--kc-ink);
    font-style: italic;
}

.kc-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.95rem;
}

.kc-article-body th,
.kc-article-body td {
    border: 1px solid rgba(233, 208, 0, 0.45);
    padding: 10px 12px;
    text-align: left;
}

.kc-article-body th {
    background: var(--kc-gold-soft);
    color: var(--kc-title);
    font-weight: 800;
}

.kc-article-body img,
.kc-article-body figure {
    max-width: 100%;
    height: auto;
}

.kc-article-body figure {
    margin: 1.4em 0;
}

.kc-article-body figcaption {
    font-size: 0.85rem;
    color: var(--kc-muted);
    margin-top: 8px;
    text-align: center;
}

.kc-article-body pre,
.kc-article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.kc-article-body pre {
    background: #1E1A08;
    color: #FFF6B0;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
}

.kc-article-body hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 2em 0;
}

.chat-cta-banner {
    background: linear-gradient(90deg, var(--kc-gold-soft), var(--kc-gold));
    color: var(--kc-ink);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0 20px;
    border: 1px solid var(--kc-gold);
}

.chat-cta-banner a {
    color: var(--kc-ink);
    background: rgba(255, 255, 255, 0.75);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.kc-post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px 0 8px;
}

.kc-post-nav .nav-previous,
.kc-post-nav .nav-next {
    border: 1px solid rgba(233, 208, 0, 0.4);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
}

.kc-post-nav a {
    color: var(--kc-ink);
    text-decoration: none;
}

.kc-nav-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--kc-subtitle);
    margin-bottom: 4px;
}

.kc-nav-title {
    font-weight: 700;
}

.kc-comments {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.kc-comments-title,
.kc-comment-form .comment-reply-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--kc-title);
}

.kc-comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.kc-comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.kc-comment-form textarea,
.kc-comment-form input[type="text"],
.kc-comment-form input[type="email"],
.kc-comment-form input[type="url"] {
    width: 100%;
    border: 1px solid rgba(233, 208, 0, 0.55);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.kc-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

body.admin-bar .kc-header.fixed-top {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .kc-header.fixed-top {
        top: 46px;
    }
}

@media (min-width: 768px) {
    .kc-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .kc-categories-scroll {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px 6px;
    }

    .kc-post-nav {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    :root {
        --kc-header-h: 70px;
    }

    .kc-header {
        padding: 12px 0;
    }

    .kc-listing-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) 280px;
        align-items: start;
    }

    .feature-hero,
    .kc-articles-hero {
        padding: 56px 40px;
    }
}

@media (min-width: 1200px) {
    .kc-article-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kc-listing-layout.has-sidebar .kc-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .kc-footer {
        margin-top: 48px;
        padding-top: 44px;
    }

    .kc-footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .feature-hero,
    .kc-articles-hero {
        padding: 32px 20px;
    }

    .chat-cta-banner a {
        width: 100%;
        text-align: center;
    }

    .kc-search-form {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    :root {
        --kc-header-h: 56px;
    }
}

@media (max-width: 640px) {
    .kc-footer-nav {
        grid-template-columns: 1fr 1fr;
    }

    .kc-footer-col:last-child {
        grid-column: 1 / -1;
    }

    .kc-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .kc-header .kc-brand-sub {
        display: none;
    }
}
