/* Match the Perfiles card buttons across the community action controls. */
.gfc :is(a.gfc-button, button.gfc-primary, button.gfc-secondary, button.gfc-selected,
    .gf-directory-card__follow, .gf-directory-card__profile-button, .gfc-page-arrow,
    button[type="submit"], [data-gfc-step-next], [data-gfc-confirm-yes]):not(:where(
        [data-gfc-format], .gfc-markdown-menu *, .gfc-search-submit, .gfc-delete-x, .gfc-modal-close, .gfc-opinion-remove-photo,
        .gfc-actions *, .gfc-opinion-options *, .gfc-opinion-reply-actions *)) {
    --gfc-action-background: var(--gf-card-secondary-bg, var(--gfc-panel));
    --gfc-action-text: var(--gf-card-secondary-text, var(--gfc-heading));
    --gfc-action-border: var(--gf-card-border, var(--gfc-line));
    min-width: 0;
    min-height: max(44px, var(--gf-card-button-height, 44px)) !important;
    border: 1px solid var(--gfc-action-border) !important;
    border-radius: var(--gfc-panel-radius) !important;
    background: var(--gfc-action-background) !important;
    color: var(--gfc-action-text) !important;
    font-family: inherit;
    font-size: .875rem !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    line-height: 1.25;
    text-decoration: none;
    text-transform: none;
    box-shadow: none !important;
    transition: filter .2s ease;
}

.gfc :is(a.gfc-button, button.gfc-primary, button.gfc-secondary, button.gfc-selected,
    .gf-directory-card__follow, .gf-directory-card__profile-button, button[type="submit"],
    [data-gfc-step-next], [data-gfc-confirm-yes]):not(:where(
        [data-gfc-format], .gfc-markdown-menu *, .gfc-page-arrow, .gfc-search-submit, .gfc-delete-x,
        .gfc-modal-close, .gfc-opinion-remove-photo, .gfc-actions *, .gfc-opinion-options *, .gfc-opinion-reply-actions *)) {
    padding: 10px 12px !important;
}

.gfc :is(.gfc-primary, .gf-directory-card__profile-button,
    [data-gfc-step-next], [data-gfc-confirm-yes], button[type="submit"]:not([class])):not(:where(
        .gfc-actions *, .gfc-opinion-options *, .gfc-opinion-reply-actions *)) {
    --gfc-action-background: var(--gfc-accent);
    --gfc-action-text: var(--gfc-on-accent);
    --gfc-action-border: var(--gfc-action-background);
}

.gfc :is(a.gfc-button, button.gfc-primary, button.gfc-secondary, button.gfc-selected,
    .gf-directory-card__follow, .gf-directory-card__profile-button, .gfc-page-arrow,
    button[type="submit"], [data-gfc-step-next], [data-gfc-confirm-yes]):not(:where(
        [data-gfc-format], .gfc-markdown-menu *, .gfc-search-submit, .gfc-delete-x, .gfc-modal-close, .gfc-opinion-remove-photo,
        .gf-directory-hero__button, .gfc-actions *, .gfc-opinion-options *, .gfc-opinion-reply-actions *, :disabled)):hover:not(:focus-visible) {
    filter: brightness(.7);
    box-shadow: none;
}

.gfc :is(a.gfc-button:not(.gfc-primary, .gf-directory-card__profile-button, .gfc-page-arrow, .gf-directory-hero__button),
    button.gfc-secondary, button.gfc-selected, .gf-directory-card__follow):not(:where(
        [data-gfc-format], .gfc-markdown-menu *, .gfc-opinion-remove-photo, .gfc-actions *, .gfc-opinion-options *, .gfc-opinion-reply-actions *, :disabled)):hover {
    border-color: var(--gfc-accent) !important;
}

.gfc :is(button.gfc-selected, .gf-directory-card__follow[aria-pressed="true"]):not(:where(
    .gfc-actions *, .gfc-opinion-options *, .gfc-opinion-reply-actions *)) {
    border-color: var(--gfc-accent) !important;
}

.gfc :is(.gfc-button, .gfc-secondary, .gfc-primary, .gfc-selected) > i {
    color: inherit;
}

.gfc .gfc-hero-actions > .gf-directory-hero__button {
    --gfc-action-background: var(--gf-bg, var(--gfc-bg));
    --gfc-action-text: var(--gf-title, var(--gfc-heading));
    --gfc-action-border: var(--gfc-accent);
    width: auto;
    margin: 0;
    padding: 10px 16px !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    letter-spacing: normal;
}

.gfc .gfc-hero-actions > .gf-directory-hero__button:hover {
    --gfc-action-border: var(--gfc-action-text);
}

@media (max-width: 767px) {
    .gfc .gfc-hero-cta {
        grid-column: 1 / -1;
    }

    .gfc .gfc-hero-actions,
    .gfc .gfc-hero-actions > .gf-directory-hero__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gfc :is(.gfc-button, .gfc-secondary, .gfc-primary, .gfc-selected, .gfc-page-arrow) {
        transition: none;
    }
}
