/* ── Flamenet Knowledge Base ─────────────────────────────────────────────── */

.fnkb-wrap {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333;
    line-height: 1.6;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.fnkb-header {
    border-bottom: 2px solid #003399;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.fnkb-title {
    font-size: 16px;
    color: #003399;
    margin: 0 0 2px;
    font-weight: bold;
}

.fnkb-subtitle {
    font-size: 11px;
    color: #666;
    margin: 0;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.fnkb-breadcrumb {
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
    padding: 4px 6px;
    background: #EEF2FF;
    border: 1px solid #7F9DB9;
}

.fnkb-breadcrumb a {
    color: #0000CC;
    text-decoration: none;
}

.fnkb-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Search form ─────────────────────────────────────────────────────────── */

.fnkb-search-form {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.fnkb-search-input {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #7F9DB9;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.fnkb-search-btn {
    padding: 4px 12px;
    background: #003399;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.fnkb-search-btn:hover {
    background: #002277;
}

/* ── Category grid (index) ───────────────────────────────────────────────── */

.fnkb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.fnkb-category-box {
    border: 1px solid #7F9DB9;
    background: #fff;
}

.fnkb-cat-header {
    background: #003399;
    color: #fff;
    padding: 5px 8px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fnkb-cat-header a,
.fnkb-cat-header a:visited {
    color: #fff;
    text-decoration: none;
}

.fnkb-cat-header a:hover {
    text-decoration: underline;
}

.fnkb-cat-count {
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    padding: 1px 5px;
    font-size: 10px;
}

.fnkb-article-list {
    list-style: none;
    margin: 0;
    padding: 6px 8px;
}

.fnkb-article-list li {
    border-bottom: 1px solid #eee;
    padding: 4px 0;
    font-size: 11px;
}

.fnkb-article-list li:last-child {
    border-bottom: none;
}

.fnkb-article-list a {
    color: #0000CC;
    text-decoration: none;
}

.fnkb-article-list a:hover {
    text-decoration: underline;
    color: #CC0000;
}

.fnkb-cat-all {
    display: block;
    text-align: right;
    padding: 3px 8px 5px;
    font-size: 10px;
    color: #666;
    text-decoration: none;
    border-top: 1px solid #eee;
}

.fnkb-cat-all:hover {
    color: #003399;
    text-decoration: underline;
}

/* ── Category listing ────────────────────────────────────────────────────── */

.fnkb-cat-title {
    font-size: 15px;
    color: #003399;
    border-left: 3px solid #003399;
    padding-left: 8px;
    margin: 0 0 12px;
}

.fnkb-article-index {
    list-style: disc;
    margin: 0 0 16px 20px;
    padding: 0;
}

.fnkb-article-index li {
    margin-bottom: 6px;
    font-size: 12px;
}

.fnkb-article-index a {
    color: #0000CC;
    text-decoration: none;
}

.fnkb-article-index a:hover {
    text-decoration: underline;
    color: #CC0000;
}

/* ── Single article ──────────────────────────────────────────────────────── */

.fnkb-article {
    border: 1px solid #7F9DB9;
    background: #fff;
}

.fnkb-article-title {
    font-size: 15px;
    color: #003399;
    background: #EEF2FF;
    margin: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #7F9DB9;
}

.fnkb-article-body {
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.7;
}

.fnkb-article-body h3 {
    font-size: 13px;
    color: #003399;
    margin: 18px 0 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3px;
}

.fnkb-article-body h4 {
    font-size: 12px;
    color: #333;
    font-weight: bold;
    margin: 14px 0 6px;
}

.fnkb-article-body p {
    margin: 0 0 10px;
}

.fnkb-article-body ol,
.fnkb-article-body ul {
    margin: 0 0 12px 22px;
    padding: 0;
}

.fnkb-article-body li {
    margin-bottom: 5px;
}

.fnkb-article-body code {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 1px 4px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}

.fnkb-article-body hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 16px 0;
}

.fnkb-article-body a {
    color: #0000CC;
}

.fnkb-article-body a:visited {
    color: #003399;
}

.fnkb-article-footer {
    padding: 6px 12px 8px;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.fnkb-article-footer a {
    color: #0000CC;
    text-decoration: none;
}

.fnkb-article-footer a:hover {
    text-decoration: underline;
}

/* ── Related articles ────────────────────────────────────────────────────── */

.fnkb-related {
    margin-top: 12px;
    border: 1px solid #7F9DB9;
    background: #fff;
}

.fnkb-related-header {
    background: #666;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
}

/* ── Search results ──────────────────────────────────────────────────────── */

.fnkb-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fnkb-search-result {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.fnkb-result-title {
    font-size: 12px;
    color: #0000CC;
    text-decoration: none;
    font-weight: bold;
}

.fnkb-result-title:hover {
    text-decoration: underline;
    color: #CC0000;
}

.fnkb-result-cat {
    font-size: 10px;
    color: #666;
    background: #EEF2FF;
    border: 1px solid #7F9DB9;
    padding: 1px 5px;
    white-space: nowrap;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.fnkb-empty {
    color: #666;
    font-style: italic;
    font-size: 12px;
}
