:where(.entries > article,.bc-card,.wp-block-group.bc-surface-light) {
    border-radius: var(--bc-radius-card);
}

.bc-surface-light { background: var(--bc-surface-light); color: var(--bc-text-primary); }
.bc-surface-dark { background: var(--bc-surface-dark); color: var(--bc-text-inverse); }
.bc-surface-dark :where(h1,h2,h3,h4,h5,h6) { color: inherit; }
.bc-surface-dark a:not(.wp-element-button) { color: var(--bc-accent); }
.bc-panel { padding: var(--bc-space-24); border-radius: var(--bc-radius-card); }
@media (max-width: 689.98px) { .bc-panel { padding: var(--bc-space-16); } }

:where(.bc-button,.wp-block-button.is-style-outline .wp-block-button__link) {
    min-block-size: var(--bc-target);
    border: 0;
    border-radius: var(--bc-radius-control);
    font-size: var(--bc-size-small);
    font-weight: var(--bc-weight-medium);
}

.bc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bc-space-8);
    padding: var(--bc-space-8) var(--bc-space-16);
    color: var(--bc-text-inverse);
    background: var(--bc-primary);
    text-decoration: none;
}
.bc-button:hover { color: var(--bc-text-inverse); background: var(--bc-primary-hover); }

.bc-button--secondary,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
    color: var(--bc-text-primary);
    background: var(--bc-surface-muted);
}
.bc-button--secondary:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
    color: var(--bc-text-primary);
    background: var(--bc-surface-light);
}
.bc-button--text { color: var(--bc-primary); background: transparent; }
.bc-button--text:hover { color: var(--bc-primary-hover); background: var(--bc-surface-light); text-decoration: underline; }
.bc-button--icon { min-inline-size: var(--bc-target); padding: 0; }
.bc-button--icon svg { inline-size: 18px; block-size: 18px; }

:where(.bc-button, .ct-button, .wp-element-button, .wp-block-button__link, .ct-pagination a) {
    transition: color var(--bc-motion) ease, background-color var(--bc-motion) ease, border-color var(--bc-motion) ease;
}
:where(.bc-button,.wp-element-button,.wp-block-button__link):active { filter: brightness(.9); }
:where(.bc-button, button, input, select, textarea):disabled { opacity: .65; cursor: not-allowed; }

.belchess-mobile-links .wp-block-button__link:not(.has-background),
[data-sidebar] .wp-block-buttons .wp-block-button__link:not(.has-background) {
    min-block-size: var(--bc-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--bc-space-8) var(--bc-space-16);
    border-radius: var(--bc-radius-control);
    background: var(--bc-primary);
    color: var(--bc-text-inverse);
}
.belchess-mobile-links .wp-block-button__link:not(.has-background):hover,
[data-sidebar] .wp-block-buttons .wp-block-button__link:not(.has-background):hover {
    background: var(--bc-primary-hover);
}

[data-sidebar] .wp-block-quote {
    padding: var(--bc-space-16);
    background: var(--bc-surface-light);
    border: 0;
    border-radius: var(--bc-radius-card);
}

.ct-pagination { gap: var(--bc-space-4); }
.ct-pagination :where(.page-numbers,.ct-load-more) { border-radius: var(--bc-radius-control); }
.ct-pagination .page-numbers.current { background: var(--bc-primary); color: var(--bc-text-inverse); }

.bc-notice { border-inline-start: 3px solid; padding: var(--bc-space-12) var(--bc-space-16); background: var(--bc-surface-light); }
.bc-notice[data-status="success"] { color: var(--bc-success); }
.bc-notice[data-status="warning"] { color: var(--bc-warning); }
.bc-notice[data-status="error"] { color: var(--bc-error); }
.bc-notice[data-status="info"] { color: var(--bc-info); }

@media (prefers-reduced-motion: reduce) {
    :where(.bc-button,.ct-button,.wp-element-button,.wp-block-button__link,.ct-pagination a) { transition: none; }
}
