/* Catalog Blueprint styles */

/* Category cards */
.catalog-cat-card {
    background: var(--bs-dark);
    border-color: var(--bs-border-color) !important;
    transition: border-color 0.15s, background 0.15s;
}
.catalog-cat-card:hover,
.catalog-cat-card:focus-within {
    border-color: var(--bs-info) !important;
    background: rgba(13, 202, 240, 0.08);
    color: var(--bs-body-color);
}

/* Field badges */
.catalog-field-badge {
    font-size: 0.75rem;
    font-family: var(--bs-font-monospace);
}

/* Rows table */
.catalog-rows-table {
    font-size: 0.85rem;
}
.catalog-cell {
    max-width: 200px;
}

/* Diff entries */
.catalog-diff-entry {
    background: var(--bs-dark);
}
.catalog-diff-summary {
    cursor: pointer;
    list-style: none;
    border-radius: calc(0.375rem - 1px);
}
.catalog-diff-summary::-webkit-details-marker {
    display: none;
}
.catalog-diff-summary::before {
    content: "▶";
    margin-right: 0.5rem;
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    flex-shrink: 0;
}
details[open] > .catalog-diff-summary::before {
    content: "▼";
}
.catalog-diff-body {
    background: rgba(0, 0, 0, 0.2);
}

/* Inline diff markup */
ins.diff-ins {
    text-decoration: none;
    color: var(--bs-success);
}
del.diff-del {
    text-decoration: line-through;
    color: var(--bs-danger);
}
ins.diff-label,
del.diff-label {
    text-decoration: none;
    font-weight: 600;
}

/* Docs / wiki KB */
.docs-content {
    max-width: 820px;
}
.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.docs-content h1 { font-size: 1.5rem; }
.docs-content h2 { font-size: 1.25rem; border-bottom: 1px solid var(--bs-border-color); padding-bottom: 0.3rem; }
.docs-content h3 { font-size: 1.1rem; }
.docs-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}
.docs-content pre {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
}
.docs-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.docs-content th,
.docs-content td {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    text-align: left;
}
.docs-content th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}
.docs-content blockquote {
    border-left: 4px solid var(--bs-info);
    padding-left: 1rem;
    color: var(--bs-secondary-color);
    margin: 1rem 0;
}
.docs-content ul,
.docs-content ol {
    padding-left: 1.5rem;
}

/* Focus styles */
.form-control:focus,
.form-select:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.4);
}
