/* Shared by the public website, member portal and administration. */
:root {
    --club-radius: 8px;
    --bs-border-radius: var(--club-radius);
    --bs-border-radius-sm: var(--club-radius);
    --bs-border-radius-lg: var(--club-radius);
    --bs-border-radius-xl: var(--club-radius);
    --bs-border-radius-xxl: var(--club-radius);
    --bs-border-radius-pill: var(--club-radius);
}

/* Explicit rules also cover the older Bootstrap and theme stylesheets. */
body .btn,
body .header-btn,
body .team-btn,
body .more-btn,
body .form-control,
body .form-select,
body .input-group-text,
body .card,
body .alert,
body .badge,
body .modal-content,
body .dropdown-menu,
body .dropdown-item,
body .list-group,
body .contact-form-area,
body .select2-container .select2-selection,
body .rounded,
body .rounded-1,
body .rounded-2,
body .rounded-3,
body .rounded-4,
body .rounded-5,
body .rounded-pill {
    border-radius: var(--club-radius) !important;
}

/* Joined controls have square inner seams and rounded outer corners. */
body .input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
body .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback),
body .btn-group > .btn:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Avatars and intentionally circular icon containers keep their shape. */
body .rounded-circle {
    border-radius: 50% !important;
}
