:root {
    --bc-blue: #2e97bd;
    --bc-blue-dark: #247a9a;
    --bc-ink: #1a1a1a;
    --bc-text: #4b4d4d;
    --bc-muted: #8a8e8e;
    --bc-line: #e6e8ea;
    --bc-bg: #ffffff;
    --bc-footer: #f5f7f8;
    --bc-radius: 2px;
    --bc-max: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.bc-body {
    margin: 0;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--bc-text);
    background: var(--bc-bg);
    line-height: 1.55;
}

.bc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bc-container {
    width: min(100% - 2rem, var(--bc-max));
    margin-inline: auto;
}

/* Hero — mesma linguagem da ajuda.actana */
.bc-hero {
    background: var(--bc-blue);
    color: #fff;
    padding: 1.25rem 0 2.75rem;
}

.bc-hero-inner {
    width: min(100% - 2rem, var(--bc-max));
    margin-inline: auto;
    text-align: center;
}

.bc-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1.75rem;
}

.bc-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
}

.bc-logo-text strong {
    font-family: Nunito, "Open Sans", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bc-logo-text small {
    font-size: 0.78rem;
    opacity: 0.92;
    font-weight: 400;
}

.bc-hero-title {
    margin: 0;
    font-family: Nunito, "Open Sans", sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.bc-hero-sub {
    margin: 0.35rem 0 1.6rem;
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.95;
}

.bc-search {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--bc-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.bc-search-field {
    flex: 1;
    border: 0;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--bc-ink);
    min-width: 0;
}

.bc-search-field:focus {
    outline: none;
}

.bc-search-field::placeholder {
    color: #9aa0a6;
}

.bc-search-btn {
    border: 0;
    background: #4a4f54;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 1.25rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.bc-search-btn:hover {
    background: #363a3e;
}

.bc-main {
    padding: 2.5rem 0 3.5rem;
}

/* Grid 2 colunas como a base antiga */
.bc-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3rem;
}

.bc-category-title {
    margin: 0 0 0.75rem;
    font-family: Nunito, "Open Sans", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #3a3d3d;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
}

.bc-category-title a {
    color: inherit;
    text-decoration: none;
}

.bc-category-title a:hover {
    color: var(--bc-blue);
}

.bc-count {
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--bc-muted);
}

.bc-category-desc {
    margin: 0 0 1rem;
    color: var(--bc-text);
    font-size: 0.95rem;
}

.bc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bc-list-item {
    border-bottom: 1px solid var(--bc-line);
}

.bc-list-item--folder {
    padding-top: 0.35rem;
}

.bc-list-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0;
    color: var(--bc-text);
    text-decoration: none;
}

a.bc-list-row:hover {
    color: var(--bc-blue);
}

.bc-list-title {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bc-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #7a8086;
}

.bc-list--nested {
    margin-left: 1.65rem;
    border-left: 0;
}

.bc-list--nested .bc-list-item {
    border-bottom: 1px solid var(--bc-line);
}

.bc-ver-todos {
    margin: 0.85rem 0 0;
}

.bc-ver-todos a {
    color: var(--bc-blue);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.bc-ver-todos a:hover {
    text-decoration: underline;
}

.bc-uncategorized {
    margin-top: 3rem;
    padding-top: 0.5rem;
}

.bc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--bc-muted);
}

.bc-breadcrumb a {
    color: var(--bc-blue);
    text-decoration: none;
}

.bc-breadcrumb a:hover {
    text-decoration: underline;
}

.bc-article {
    max-width: 760px;
}

.bc-article-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.5rem;
    color: var(--bc-muted);
    font-size: 0.88rem;
}

.bc-article-title {
    margin: 0 0 1.25rem;
    font-family: Nunito, "Open Sans", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #2f3232;
    line-height: 1.25;
}

.bc-article-body {
    font-size: 1rem;
    color: var(--bc-text);
}

.bc-article-body a {
    color: var(--bc-blue);
}

.bc-empty {
    color: var(--bc-muted);
}

.bc-footer {
    background: var(--bc-footer);
    border-top: 1px solid var(--bc-line);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--bc-muted);
}

.bc-footer p {
    margin: 0;
}

.message {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--bc-blue);
    background: #f0f8fb;
}

.message.error {
    border-color: #cc1f1a;
    background: #fcebea;
}

@media (max-width: 820px) {
    .bc-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bc-hero {
        padding-bottom: 2rem;
    }

    .bc-search {
        flex-direction: column;
    }

    .bc-search-btn {
        padding: 0.85rem 1rem;
    }
}
