/* Knowledgebase-specific styles, layered on top of template.css (copied from PublicSite26). */

/* ********** Page header extras ********** */
.kb-home-header {
    padding: 70px 0 60px;
}

.kb-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.4);
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.kb-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.kb-breadcrumb a:hover {
    color: #fff;
}

.kb-key {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ********** Cards and lists ********** */
/* Home page cards show their whole description (template.css caps .category-card text at ~3 lines). */
.category-card .kb-card-text {
    font-size: 0.95rem;
    max-height: none;
    overflow: visible;
}

.kb-empty-group {
    opacity: 0.6;
}

.kb-article-table .kb-key-col {
    width: 1%;
    white-space: nowrap;
}

.kb-article-table mark,
.article-content mark {
    padding: 0 0.1em;
    background-color: #fff3a3;
}

.kb-prev-next a {
    max-width: 22rem;
    display: inline-block;
}

/* ********** Article body (HTML generated from the KbDocs markdown) ********** */
.article-content {
    font-size: 1.02rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 72px; /* keep anchored headings clear of the fixed navbar */
}

.article-content h1 { font-size: 1.75rem; }
.article-content h2 { font-size: 1.45rem; padding-bottom: 0.3rem; border-bottom: 1px solid #dee2e6; }
.article-content h3 { font-size: 1.2rem; }
.article-content h4 { font-size: 1.05rem; }

.article-content > :first-child {
    margin-top: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    margin: 0.5rem 0;
}

.article-content code {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 0.9em;
    color: #b02a6b;
    background-color: #f3f4f7;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.article-content pre {
    background-color: var(--navy-dark);
    color: #e6edf3;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
}

.article-content pre code {
    color: inherit;
    background: none;
    padding: 0;
    font-size: inherit;
}

.article-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
}

.article-content thead th,
.article-content tr:first-child th {
    background-color: #f1f4f9;
}

.article-content tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    background-color: #f3f7ff;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

.article-content blockquote > :last-child {
    margin-bottom: 0;
}

.article-content hr {
    margin: 2rem 0;
}

