/*
 * Linkilo Knowledge Base — front-end styles.
 *
 * All rules are scoped under .linkilo-kb body class so they can't leak
 * into the rest of the user's theme. Reverse — theme rules can still
 * reach in, but every Linkilo class starts with .lkb- so collisions
 * with theme classes are unlikely.
 *
 * Colour palette (overridable via Settings → Colours, injected
 * inline via wp_add_inline_style):
 *   --kb-primary       #177EE5  (Linkilo blue)
 *   --kb-navy          #1E294D  (deep navy for hero)
 *   --kb-bg            #f8fafc  (page background)
 *   --kb-surface       #ffffff  (cards)
 *   --kb-accent        #177EE5  (hover, search highlight)
 *   --kb-info          #06b6d4  (info callouts)
 *   --kb-link          #177EE5  (inline links)
 *   --kb-soft          #eff6ff  (card hover, light fills)
 */
.linkilo-kb {
    --kb-primary: #177EE5;
    --kb-primary-hover: #135bb5;
    --kb-primary-soft: #72aee6;
    --kb-navy: #1E294D;
    --kb-navy-deep: #0f172a;
    --kb-bg: #f8fafc;
    --kb-surface: #ffffff;
    --kb-accent: #177EE5;
    --kb-info: #06b6d4;
    --kb-link: #177EE5;
    --kb-soft: #eff6ff;
    --kb-text: #0f172a;
    --kb-text-soft: #64748b;
    --kb-border: #e2e8f0;
    --kb-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --kb-shadow-lg: 0 12px 28px -8px rgba(15, 23, 42, .14), 0 4px 10px -4px rgba(15, 23, 42, .08);
    --kb-radius: 12px;
    --kb-radius-sm: 8px;
    --kb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===========================================================
 * Page chrome
 * =========================================================== */
.linkilo-kb .lkb-page {
    background: var(--kb-bg);
    min-height: 60vh;
    padding-bottom: 60px;
    font-family: var(--kb-font);
    color: var(--kb-text);
    line-height: 1.6;
}
.linkilo-kb .lkb-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}
.linkilo-kb .lkb-main { padding-top: 32px; }

.linkilo-kb .lkb-empty {
    padding: 32px;
    text-align: center;
    color: var(--kb-text-soft);
    background: var(--kb-surface);
    border-radius: var(--kb-radius);
}

.linkilo-kb .lkb-chip {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--kb-link);
    background: var(--kb-soft);
    border-radius: 999px;
    line-height: 1.4;
    text-decoration: none;
    transition: background 120ms ease;
}
.linkilo-kb .lkb-chip:hover { background: #dbeafe; }

/* ===========================================================
 * Hero (home page)
 *
 * v1.0.6 — removed overflow:hidden so the search dropdown can extend
 * below the hero without being clipped. Blob accents use clip-path
 * on the hero pseudo-elements instead.
 * =========================================================== */
.linkilo-kb .lkb-hero {
    background: linear-gradient(135deg, var(--kb-navy) 0%, var(--kb-navy-deep) 100%);
    /* v1.1.3 — reduced bottom padding so the category cards aren't
     * clipped by the hero. Combined with the .lkb-cat-grid margin
     * change below, the search bar now floats with clear breathing
     * room above the category grid. */
    padding: 72px 0 96px;
    color: #fff;
    text-align: center;
    position: relative;
    /* v1.1.3 — removed z-index:1 (was making the hero render above the
     * category cards, hiding the top portion of each card). */
}
.linkilo-kb .lkb-hero__title {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.15;
}
.linkilo-kb .lkb-hero__tagline {
    font-size: 18px;
    margin: 0 0 32px;
    opacity: 0.85;
    color: #fff;
    font-weight: 300;
}

/* ===========================================================
 * Search bar
 *
 * v1.0.6 — explicit high z-index plus position:relative + isolation
 * on .lkb-search to ensure the dropdown appears above sibling content
 * (category grid, etc.) regardless of theme stacking contexts.
 * =========================================================== */
.linkilo-kb .lkb-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 10000;
    isolation: isolate;
}
.linkilo-kb .lkb-search--medium { max-width: 540px; }
.linkilo-kb .lkb-search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kb-text-soft);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}
.linkilo-kb .lkb-search__input {
    width: 100%;
    padding: 16px 18px 16px 52px;
    font-size: 16px;
    font-family: var(--kb-font);
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    color: var(--kb-text);
    box-shadow: var(--kb-shadow);
    outline: none;
    transition: box-shadow 150ms ease, border-color 150ms ease;
    line-height: 1.2;
}
.linkilo-kb .lkb-search--medium .lkb-search__input {
    padding: 12px 18px 12px 46px;
    font-size: 15px;
}
.linkilo-kb .lkb-search__input:focus {
    border-color: var(--kb-primary);
    box-shadow: 0 0 0 4px rgba(23, 126, 229, 0.18);
}
.linkilo-kb .lkb-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    box-shadow: var(--kb-shadow-lg);
    z-index: 10001; /* sits on top of everything in our stacking context */
    max-height: 480px;
    overflow-y: auto;
    text-align: left;
}
.linkilo-kb .lkb-search__result {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--kb-border);
    color: var(--kb-text);
    text-decoration: none;
    transition: background 100ms ease;
}
.linkilo-kb .lkb-search__result:last-child { border-bottom: none; }
.linkilo-kb .lkb-search__result:hover,
.linkilo-kb .lkb-search__result.is-active { background: var(--kb-soft); }
.linkilo-kb .lkb-search__result-title {
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--kb-text);
    font-size: 15px;
}
.linkilo-kb .lkb-search__result-excerpt {
    font-size: 13px;
    color: var(--kb-text-soft);
    margin: 0 0 4px;
    line-height: 1.5;
}
.linkilo-kb .lkb-search__result-cat {
    font-size: 11px;
    color: var(--kb-link);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.linkilo-kb .lkb-search__results mark {
    background: rgba(23, 126, 229, 0.18);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}
.linkilo-kb .lkb-search__results-empty {
    padding: 24px;
    text-align: center;
    color: var(--kb-text-soft);
    font-size: 14px;
}
.linkilo-kb .lkb-search__see-all {
    display: block;
    padding: 14px;
    text-align: center;
    font-weight: 600;
    color: var(--kb-link);
    background: var(--kb-soft);
    border-top: 1px solid var(--kb-border);
    text-decoration: none;
}
.linkilo-kb .lkb-search__see-all:hover { background: #dbeafe; }

/* ===========================================================
 * Category grid (home)
 *
 * v1.0.6 — removed z-index that was creating a stacking context
 * competing with the search dropdown. Cards still render after the
 * hero in the DOM so they appear in front naturally.
 * =========================================================== */
.linkilo-kb .lkb-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    /* v1.1.3 — positive top margin so the category cards sit *below*
     * the hero with clear breathing room from the search bar (instead
     * of being clipped by the hero). */
    margin-top: 40px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}
.linkilo-kb .lkb-cat-card {
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-top: 4px solid var(--cat-color, var(--kb-primary));
    border-radius: var(--kb-radius);
    padding: 24px 22px 20px;
    text-decoration: none;
    color: var(--kb-text);
    box-shadow: var(--kb-shadow);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 152px;
}
.linkilo-kb .lkb-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--kb-shadow-lg);
    background: var(--kb-soft);
}
.linkilo-kb .lkb-cat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cat-color, var(--kb-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(23, 126, 229, .25);
}
/* v1.0.6 — Force dashicons rendering inside our scoped icon */
.linkilo-kb .lkb-cat-card__icon .dashicons,
.linkilo-kb .lkb-cat-header__icon .dashicons {
    font-family: dashicons !important;
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 1 !important;
    color: #fff !important;
    speak: never;
    display: inline-block;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
}
.linkilo-kb .lkb-cat-card__title {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--kb-text);
}
.linkilo-kb .lkb-cat-card__desc {
    margin: 0;
    font-size: 14px;
    color: var(--kb-text-soft);
    line-height: 1.5;
    flex: 1;
}
.linkilo-kb .lkb-cat-card__count {
    margin-top: 8px;
    font-size: 12px;
    color: var(--kb-text-soft);
    font-weight: 500;
}

/* ===========================================================
 * Article list (category page + list home)
 * =========================================================== */
.linkilo-kb .lkb-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--kb-text);
}
.linkilo-kb .lkb-article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.linkilo-kb .lkb-list-item {
    display: block;
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    padding: 18px 22px;
    text-decoration: none;
    color: var(--kb-text);
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.linkilo-kb .lkb-list-item:hover {
    border-color: var(--kb-primary);
    transform: translateX(2px);
    background: var(--kb-soft);
}
.linkilo-kb .lkb-list-item__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}
.linkilo-kb .lkb-list-item__excerpt {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--kb-text-soft);
    line-height: 1.5;
}
.linkilo-kb .lkb-list-item__meta {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--kb-text-soft);
}

/* ===========================================================
 * Category header
 * =========================================================== */
.linkilo-kb .lkb-cat-header {
    background: var(--kb-surface);
    padding: 32px 0 28px;
    border-bottom: 1px solid var(--kb-border);
}
.linkilo-kb .lkb-cat-header__row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 14px 0 24px;
}
.linkilo-kb .lkb-cat-header__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cat-color, var(--kb-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(23, 126, 229, .25);
}
.linkilo-kb .lkb-cat-header__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--kb-text);
}
.linkilo-kb .lkb-cat-header__desc {
    margin: 6px 0 0;
    color: var(--kb-text-soft);
    font-size: 15px;
}

/* ===========================================================
 * Breadcrumbs
 * =========================================================== */
.linkilo-kb .lkb-crumbs {
    font-size: 13px;
    color: var(--kb-text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 0 18px;
}
.linkilo-kb .lkb-crumbs__link { color: var(--kb-link); text-decoration: none; }
.linkilo-kb .lkb-crumbs__link:hover { text-decoration: underline; }
.linkilo-kb .lkb-crumbs__sep { color: var(--kb-text-soft); opacity: 0.5; }
.linkilo-kb .lkb-crumbs__current { color: var(--kb-text); font-weight: 500; }

/* ===========================================================
 * Single article
 * =========================================================== */
.linkilo-kb .lkb-art-header {
    background: var(--kb-surface);
    padding: 24px 0;
    border-bottom: 1px solid var(--kb-border);
}
.linkilo-kb .lkb-art-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: start;
}
.linkilo-kb .lkb-article {
    background: var(--kb-surface);
    border-radius: var(--kb-radius);
    padding: 36px 40px 40px;
    box-shadow: var(--kb-shadow);
}
.linkilo-kb .lkb-article__header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--kb-border);
}
.linkilo-kb .lkb-article__title {
    margin: 12px 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: var(--kb-text);
    letter-spacing: -0.015em;
    line-height: 1.25;
}
.linkilo-kb .lkb-article__meta {
    font-size: 13px;
    color: var(--kb-text-soft);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Article body typography */
.linkilo-kb .lkb-article__content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--kb-text);
}
.linkilo-kb .lkb-article__content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--kb-text);
    margin: 36px 0 14px;
    letter-spacing: -0.01em;
    scroll-margin-top: 80px;
}
.linkilo-kb .lkb-article__content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--kb-text);
    margin: 28px 0 10px;
    scroll-margin-top: 80px;
}
.linkilo-kb .lkb-article__content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 22px 0 8px;
}
.linkilo-kb .lkb-article__content p { margin: 0 0 16px; }
.linkilo-kb .lkb-article__content a {
    color: var(--kb-link);
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 126, 229, 0.3);
    transition: border-color 120ms ease;
}
.linkilo-kb .lkb-article__content a:hover { border-bottom-color: var(--kb-link); }
.linkilo-kb .lkb-article__content ul,
.linkilo-kb .lkb-article__content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.linkilo-kb .lkb-article__content li { margin-bottom: 6px; }
.linkilo-kb .lkb-article__content strong { color: var(--kb-text); }
.linkilo-kb .lkb-article__content code,
.linkilo-kb .lkb-inline-code {
    background: var(--kb-soft);
    color: var(--kb-link);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.linkilo-kb .lkb-code,
.linkilo-kb .lkb-article__content pre {
    background: #0f172a;
    color: #f1f5f9;
    padding: 16px 20px;
    border-radius: var(--kb-radius-sm);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.linkilo-kb .lkb-code code,
.linkilo-kb .lkb-article__content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}
.linkilo-kb .lkb-blockquote,
.linkilo-kb .lkb-article__content blockquote {
    border-left: 4px solid var(--kb-info);
    background: var(--kb-soft);
    padding: 14px 18px;
    margin: 0 0 18px;
    border-radius: 0 var(--kb-radius-sm) var(--kb-radius-sm) 0;
    color: var(--kb-text-soft);
    font-style: normal;
}
.linkilo-kb .lkb-blockquote p:last-child,
.linkilo-kb .lkb-article__content blockquote p:last-child { margin-bottom: 0; }

/* Tables */
.linkilo-kb .lkb-table,
.linkilo-kb .lkb-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: 14px;
    border-radius: var(--kb-radius-sm);
    overflow: hidden;
    box-shadow: var(--kb-shadow);
}
.linkilo-kb .lkb-table th,
.linkilo-kb .lkb-article__content table th {
    background: var(--kb-soft);
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--kb-text);
    border-bottom: 1px solid var(--kb-border);
}
.linkilo-kb .lkb-table td,
.linkilo-kb .lkb-article__content table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--kb-border);
    vertical-align: top;
}

/* ===========================================================
 * Sidebar TOC
 * =========================================================== */
.linkilo-kb .lkb-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}
.linkilo-kb .lkb-toc {
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    padding: 18px 20px;
    font-size: 14px;
}
.linkilo-kb .lkb-toc__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kb-text-soft);
    font-weight: 600;
    margin-bottom: 12px;
}
.linkilo-kb .lkb-toc__list,
.linkilo-kb .lkb-toc__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.linkilo-kb .lkb-toc__sublist { padding-left: 12px; margin: 4px 0; }
.linkilo-kb .lkb-toc__item { margin-bottom: 6px; }
.linkilo-kb .lkb-toc__link {
    color: var(--kb-text-soft);
    text-decoration: none;
    line-height: 1.45;
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: color 100ms ease, background 100ms ease, border-color 100ms ease;
}
.linkilo-kb .lkb-toc__link:hover { color: var(--kb-text); background: var(--kb-soft); }
.linkilo-kb .lkb-toc__link.is-active {
    color: var(--kb-link);
    background: var(--kb-soft);
    border-left-color: var(--kb-primary);
    font-weight: 500;
}
.linkilo-kb .lkb-toc__item--l3 .lkb-toc__link { font-size: 13px; }

/* ===========================================================
 * Feedback widget
 * =========================================================== */
.linkilo-kb .lkb-feedback {
    margin-top: 36px;
    padding: 24px;
    background: var(--kb-soft);
    border-radius: var(--kb-radius);
    text-align: center;
}
.linkilo-kb .lkb-feedback__q {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 600;
    color: var(--kb-text);
}
.linkilo-kb .lkb-feedback__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.linkilo-kb .lkb-feedback__btn {
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--kb-text);
    cursor: pointer;
    font-family: var(--kb-font);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 120ms ease, border-color 120ms ease, color 120ms ease;
}
.linkilo-kb .lkb-feedback__btn:hover {
    border-color: var(--kb-primary);
    transform: translateY(-1px);
}
.linkilo-kb .lkb-feedback__followup {
    margin-top: 16px;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.linkilo-kb .lkb-feedback__followup label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--kb-text-soft);
}
.linkilo-kb .lkb-feedback__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-sm);
    font-family: var(--kb-font);
    font-size: 14px;
    background: var(--kb-surface);
    color: var(--kb-text);
    resize: vertical;
    min-height: 80px;
}
.linkilo-kb .lkb-feedback__textarea:focus {
    outline: none;
    border-color: var(--kb-primary);
    box-shadow: 0 0 0 3px rgba(23, 126, 229, 0.15);
}
.linkilo-kb .lkb-feedback__send {
    margin-top: 8px;
    background: var(--kb-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--kb-radius-sm);
    font-weight: 500;
    cursor: pointer;
    font-family: var(--kb-font);
    transition: background 120ms ease, transform 120ms ease;
}
.linkilo-kb .lkb-feedback__send:hover { background: var(--kb-accent); transform: translateY(-1px); }
.linkilo-kb .lkb-feedback__thanks {
    padding: 10px;
    color: #15803d;
    font-weight: 500;
}

/* ===========================================================
 * Related articles
 * =========================================================== */
.linkilo-kb .lkb-related {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--kb-border);
}
.linkilo-kb .lkb-related__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--kb-text);
}
.linkilo-kb .lkb-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.linkilo-kb .lkb-related__card {
    display: block;
    padding: 16px;
    background: var(--kb-soft);
    border-radius: var(--kb-radius-sm);
    text-decoration: none;
    color: var(--kb-text);
    transition: transform 150ms ease, background 150ms ease;
}
.linkilo-kb .lkb-related__card:hover {
    transform: translateY(-2px);
    background: #dbeafe;
}
.linkilo-kb .lkb-related__heading {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
}
.linkilo-kb .lkb-related__excerpt {
    margin: 0;
    font-size: 13px;
    color: var(--kb-text-soft);
    line-height: 1.5;
}

/* ===========================================================
 * Prev/Next
 * =========================================================== */
.linkilo-kb .lkb-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}
.linkilo-kb .lkb-prevnext__link {
    display: block;
    padding: 14px 18px;
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-sm);
    text-decoration: none;
    color: var(--kb-text);
    transition: border-color 150ms ease, background 150ms ease;
}
.linkilo-kb .lkb-prevnext__link:hover {
    border-color: var(--kb-primary);
    background: var(--kb-soft);
}
.linkilo-kb .lkb-prevnext__link--next { text-align: right; }
.linkilo-kb .lkb-prevnext__placeholder { display: block; }
.linkilo-kb .lkb-prevnext__label {
    display: block;
    font-size: 12px;
    color: var(--kb-text-soft);
    margin-bottom: 4px;
}
.linkilo-kb .lkb-prevnext__title {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

/* ===========================================================
 * Search results page
 * =========================================================== */
.linkilo-kb .lkb-search-header {
    background: var(--kb-surface);
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--kb-border);
}
.linkilo-kb .lkb-search-header__title {
    margin: 12px 0 18px;
    font-size: 24px;
    font-weight: 600;
}
.linkilo-kb .lkb-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.linkilo-kb .lkb-search-result {
    display: block;
    padding: 18px 22px;
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    text-decoration: none;
    color: var(--kb-text);
    transition: border-color 150ms ease, background 150ms ease;
}
.linkilo-kb .lkb-search-result:hover {
    border-color: var(--kb-primary);
    background: var(--kb-soft);
}
.linkilo-kb .lkb-search-result__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}
.linkilo-kb .lkb-search-result__excerpt {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--kb-text-soft);
    line-height: 1.5;
}
.linkilo-kb .lkb-search-result mark {
    background: rgba(23, 126, 229, 0.18);
    padding: 0 2px;
    border-radius: 2px;
}

/* ===========================================================
 * Pagination
 * =========================================================== */
.linkilo-kb .lkb-pagination {
    margin-top: 32px;
    text-align: center;
}
.linkilo-kb .lkb-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
}
.linkilo-kb .lkb-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: var(--kb-surface);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-sm);
    text-decoration: none;
    color: var(--kb-text);
    font-weight: 500;
}
.linkilo-kb .lkb-pagination .page-numbers.current {
    background: var(--kb-primary);
    color: #fff;
    border-color: var(--kb-primary);
}

/* ===========================================================
 * Responsive
 * =========================================================== */
@media (max-width: 900px) {
    .linkilo-kb .lkb-art-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .linkilo-kb .lkb-sidebar { position: static; }
    .linkilo-kb .lkb-hero__title { font-size: 30px; }
    .linkilo-kb .lkb-article { padding: 24px 22px; }
    .linkilo-kb .lkb-article__title { font-size: 26px; }
    .linkilo-kb .lkb-prevnext { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
 0 60px; }
    .linkilo-kb .lkb-hero__title { font-size: 26px; }
    .linkilo-kb .lkb-hero__tagline { font-size: 15px; margin-bottom: 24px; }
    .linkilo-kb .lkb-search__input { padding: 13px 16px 13px 46px; font-size: 15px; }
    .linkilo-kb .lkb-cat-grid {
        grid-template-columns: 1fr;
        margin-top: 24px;
        gap: 14px;
    }
    .linkilo-kb .lkb-cat-card { padding: 20px 18px 16px; min-height: 0; }
    .linkilo-kb .lkb-art-header { padding: 16px 0; }
    .linkilo-kb .lkb-article { padding: 20px 16px; }
    .linkilo-kb .lkb-article__title { font-size: 22px; }
    .linkilo-kb .lkb-cat-header__title { font-size: 22px; }
}

/* ===========================================================
 * v1.1.4 — Theme-conflict overrides
 * Many WP themes (Neve, Astra, etc.) ship with universal rules that
 * unintentionally clobber our list bullets or break our grid because
 * they treat <section> as block-level "stretch full width". The rules
 * below are extra-specific so they win without !important spam.
 * =========================================================== */

/* Re-assert the category grid in case the theme's section rules
 * collapse it. Using TWO class selectors increases specificity. */
.linkilo-kb section.lkb-cat-grid,
.linkilo-kb .lkb-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 22px;
    width: 100%;
    max-width: 100%;
}

/* Force visible list bullets — Neve and Astra both ship with
 * list-style: none on <ul> globally. */
.linkilo-kb .lkb-article__content ul {
    list-style-type: disc !important;
    padding-left: 28px;
}
.linkilo-kb .lkb-article__content ol {
    list-style-type: decimal !important;
    padding-left: 28px;
}
.linkilo-kb .lkb-article__content ul ul {
    list-style-type: circle !important;
}
.linkilo-kb .lkb-article__content ul ul ul {
    list-style-type: square !important;
}
.linkilo-kb .lkb-article__content li {
    display: list-item !important;
    margin-bottom: 6px;
}
.linkilo-kb .lkb-article__content li::marker {
    color: var(--kb-text-soft);
}
