/* Rotary for Business – component styles (Rotary brand palette) */
:root {
	--r4b-blue: #17458F;
	--r4b-gold: #F7A81B;
	--r4b-azure: #0067C8;
	--r4b-sky: #00A2E0;
	--r4b-cranberry: #D41367;
	--r4b-cardinal: #E02927;
	--r4b-turquoise: #00ADBB;
	--r4b-violet: #901F93;
	--r4b-orange: #FF7600;
	--r4b-grass: #009739;
	--r4b-navy: #0c2a5b;
	--r4b-ink: #1c2b3a;
	--r4b-muted: #5a6b7d;
	--r4b-line: #d9e1ec;
	--r4b-tint: #f3f6fb;
	--r4b-radius: 6px;
}

.r4b-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.r4b-small { font-size: .875rem; color: var(--r4b-muted); }
.r4b-empty { padding: 1.5rem; background: var(--r4b-tint); border: 1px dashed var(--r4b-line); border-radius: var(--r4b-radius); color: var(--r4b-muted); }
.r4b-empty p { margin: 0 0 .4rem; }
.r4b-prose > :first-child { margin-top: 0; }

/* Buttons */
.r4b-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.25rem; background: var(--r4b-gold); color: var(--r4b-navy); border: 2px solid var(--r4b-gold); border-radius: 4px; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.r4b-btn:hover, .r4b-btn:focus-visible { background: #ffbd3d; border-color: #ffbd3d; color: var(--r4b-navy); }
.r4b-btn--ghost { background: transparent; border-color: var(--r4b-blue); color: var(--r4b-blue); }
.r4b-btn--ghost:hover, .r4b-btn--ghost:focus-visible { background: var(--r4b-blue); border-color: var(--r4b-blue); color: #fff; }
.r4b-btn--block { display: flex; width: 100%; margin-top: .6rem; }
.r4b-btn--lg { padding: .9rem 1.75rem; font-size: 1.05rem; }
.r4b-btn--sm { padding: .4rem .8rem; font-size: .875rem; }
.r4b-btn--wa { background: var(--r4b-grass); border-color: var(--r4b-grass); color: #fff; }
.r4b-btn--wa:hover { background: #007d2f; border-color: #007d2f; color: #fff; }
.r4b-btn:focus-visible, .r4b-link:focus-visible, .r4b-tab:focus-visible, .r4b-pill:focus-visible { outline: 3px solid var(--r4b-sky); outline-offset: 2px; }
.r4b-link { background: none; border: 0; padding: 0; font: inherit; font-size: .875rem; color: var(--r4b-azure); text-decoration: underline; cursor: pointer; }
.r4b-link--danger { color: var(--r4b-cardinal); }

/* Grid + cards */
.r4b-grid { display: grid; gap: 1.5rem; }
.r4b-grid--3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.r4b-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--r4b-line); border-radius: var(--r4b-radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.r4b-card:hover { border-color: #b9c7dc; box-shadow: 0 10px 28px rgba(12, 42, 91, .12); transform: translateY(-2px); }
.r4b-card__body { display: flex; flex-direction: column; flex: 1; gap: .5rem; padding: 1.25rem; }
.r4b-card__title { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.r4b-card__title a { color: var(--r4b-blue); text-decoration: none; }
.r4b-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .75rem; }

.r4b-clubs { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .r4b-clubs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .r4b-clubs { grid-template-columns: 1fr; } }
.r4b-club-card__logo { display: flex; align-items: center; justify-content: center; height: 150px; padding: 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--r4b-line); }
.r4b-club-logo { max-width: 100%; max-height: 108px; width: auto; height: auto; object-fit: contain; }

.r4b-club-single__main > .r4b-badge { margin-bottom: 1rem; }
.r4b-badge { white-space: nowrap; display: inline-block; align-self: flex-start; padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; background: #e8edf5; color: var(--r4b-navy); }
.r4b-badge--established, .r4b-badge--live { background: #e0f4e8; color: #00652a; }
.r4b-badge--proposed, .r4b-badge--pending { background: #fff1d6; color: #7a4d00; }
.r4b-badge--rejected { background: #fde4e3; color: #a31715; }

.r4b-facts { margin: 0; display: grid; gap: .45rem; }
.r4b-facts > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; font-size: .95rem; }
.r4b-facts dt { color: var(--r4b-muted); font-weight: 600; }
.r4b-facts dd { margin: 0; overflow-wrap: anywhere; }
.r4b-facts--stack > div { grid-template-columns: 1fr; gap: 0; padding: .55rem 0; border-bottom: 1px solid var(--r4b-line); }
.r4b-facts--stack > div:last-child { border-bottom: 0; }
.r4b-facts--stack dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

.r4b-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.r4b-tag { display: inline-block; padding: .15rem .55rem; background: var(--r4b-tint); border: 1px solid var(--r4b-line); border-radius: 3px; font-size: .78rem; color: var(--r4b-navy); text-decoration: none; }
a.r4b-tag:hover { border-color: var(--r4b-azure); color: var(--r4b-azure); }

/* Directory */
.r4b-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .9rem; padding: 1.25rem; margin-bottom: 1rem; background: var(--r4b-blue); border-radius: var(--r4b-radius); }
.r4b-search .r4b-field { flex: 1 1 170px; margin: 0; }
.r4b-search .r4b-field--grow { flex: 2 1 260px; }
.r4b-search .r4b-field--btn { flex: 0 0 auto; }
.r4b-search .r4b-field label { color: #fff; }
.r4b-search .r4b-field input, .r4b-search .r4b-field select { height: 46px; border-color: transparent; }
.r4b-search .r4b-btn { height: 46px; }
.r4b-results-count { margin: 0 0 1.25rem; color: var(--r4b-muted); font-size: .95rem; }
.r4b-listing-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.r4b-listing-card__logo { display: flex; align-items: center; justify-content: center; height: 140px; padding: 1rem; background: var(--r4b-tint); border-bottom: 1px solid var(--r4b-line); }
.r4b-logo { max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; }
.r4b-logo--initials { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--r4b-blue); color: var(--r4b-gold); font-size: 1.8rem; font-weight: 800; letter-spacing: .02em; }
.r4b-listing-card .r4b-card__title { color: var(--r4b-blue); }
.r4b-listing-card__tagline { margin: 0; font-size: .95rem; color: var(--r4b-ink); }
.r4b-listing-card__meta { margin: auto 0 0; padding-top: .5rem; font-size: .85rem; color: var(--r4b-muted); }
.r4b-pagination { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; }
.r4b-pagination .page-numbers { min-width: 2.4rem; padding: .45rem .7rem; text-align: center; border: 1px solid var(--r4b-line); border-radius: 4px; text-decoration: none; color: var(--r4b-blue); }
.r4b-pagination .current { background: var(--r4b-blue); border-color: var(--r4b-blue); color: #fff; }

/* Two-column detail pages */
.r4b-profile, .r4b-club-single { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.r4b-profile__head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.r4b-profile__logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 150px; height: 150px; padding: .75rem; background: #fff; border: 1px solid var(--r4b-line); border-radius: var(--r4b-radius); }
.r4b-profile__tagline { margin: 0 0 .6rem; font-size: 1.25rem; line-height: 1.35; color: var(--r4b-navy); }
.r4b-profile__links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: .5rem 0; }
.r4b-profile__club { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--r4b-line); font-size: .875rem; color: var(--r4b-muted); }
.r4b-social { font-weight: 600; font-size: .9rem; }
.r4b-panel { padding: 1.5rem; background: #fff; border: 1px solid var(--r4b-line); border-top: 4px solid var(--r4b-gold); border-radius: var(--r4b-radius); }
.r4b-panel h3 { margin: 1.25rem 0 .25rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--r4b-blue); }
.r4b-panel h3:first-child { margin-top: 0; }
.r4b-panel__logo { padding: .5rem 1rem 1.25rem; text-align: center; }
.r4b-profile__side, .r4b-club-single__side { position: sticky; top: 100px; }
.r4b-checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem 1.5rem; }
.r4b-checklist li { position: relative; padding-left: 1.6rem; }
.r4b-checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: .95rem; height: .5rem; border-left: 3px solid var(--r4b-gold); border-bottom: 3px solid var(--r4b-gold); transform: rotate(-45deg); }
.r4b-offer { margin: 1.5rem 0; padding: 1rem 1.25rem; background: #fff8e8; border-left: 4px solid var(--r4b-gold); border-radius: 0 var(--r4b-radius) var(--r4b-radius) 0; }
.r4b-offer p { margin: .25rem 0 0; }
.r4b-event-single { max-width: 640px; margin-bottom: 2rem; }

/* Events */
.r4b-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.r4b-pill { padding: .4rem .95rem; border: 1px solid var(--r4b-line); border-radius: 99px; background: #fff; color: var(--r4b-blue); font-size: .9rem; font-weight: 600; text-decoration: none; }
.r4b-pill:hover { border-color: var(--r4b-blue); }
.r4b-pill.is-active { background: var(--r4b-blue); border-color: var(--r4b-blue); color: #fff; }
.r4b-events { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.r4b-event { display: flex; align-items: center; gap: 1.1rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--r4b-line); border-left: 4px solid var(--r4b-blue); border-radius: var(--r4b-radius); }
.r4b-event--online { border-left-color: var(--r4b-sky); }
.r4b-event--event { border-left-color: var(--r4b-cranberry); }
.r4b-event__date { flex: 0 0 3.6rem; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.r4b-event__day { font-size: 1.9rem; font-weight: 800; color: var(--r4b-blue); }
.r4b-event__mon { margin-top: .2rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--r4b-muted); }
.r4b-event__body { flex: 1; min-width: 0; }
.r4b-event__type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--r4b-muted); }
.r4b-event__title { margin: .1rem 0; font-size: 1.1rem; line-height: 1.3; }
.r4b-event__title a { color: var(--r4b-navy); text-decoration: none; }
.r4b-event__title a:hover { color: var(--r4b-azure); }
.r4b-event__meta, .r4b-event__club { margin: 0; font-size: .9rem; color: var(--r4b-muted); }
.r4b-event__ics { flex: 0 0 auto; font-size: .85rem; font-weight: 600; white-space: nowrap; }

/* Forms */
.r4b-form { max-width: 860px; }
.r4b-form fieldset { margin: 0 0 1.5rem; padding: 1.25rem 1.5rem 1.5rem; border: 1px solid var(--r4b-line); border-radius: var(--r4b-radius); background: #fff; }
.r4b-form legend { padding: 0 .5rem; font-weight: 800; font-size: 1.05rem; color: var(--r4b-blue); }
.r4b-row { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.r4b-row > .r4b-field { flex: 1 1 200px; }
.r4b-row > .r4b-field--grow { flex: 2 1 280px; }
.r4b-field { margin: 0 0 1rem; }
.r4b-field label, .r4b-label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 600; color: var(--r4b-ink); }
.r4b-field input[type="text"], .r4b-field input[type="email"], .r4b-field input[type="tel"], .r4b-field input[type="search"], .r4b-field input[type="date"], .r4b-field input[type="time"], .r4b-field input[type="number"], .r4b-field input[type="password"], .r4b-field select, .r4b-field textarea,
.r4b-login input[type="text"], .r4b-login input[type="password"] { display: block; width: 100%; padding: .62rem .75rem; background: #fff; border: 1px solid #b7c3d4; border-radius: 4px; font: inherit; font-size: 1rem; color: var(--r4b-ink); box-sizing: border-box; }
.r4b-field input:focus, .r4b-field select:focus, .r4b-field textarea:focus, .r4b-login input:focus { outline: 3px solid rgba(0, 162, 224, .35); border-color: var(--r4b-azure); }
.r4b-field textarea { resize: vertical; }
.r4b-choice { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 .4rem !important; font-weight: 400 !important; font-size: .95rem !important; cursor: pointer; }
.r4b-choice input { margin-top: .25rem; flex: 0 0 auto; accent-color: var(--r4b-blue); }
.r4b-choices { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.r4b-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .1rem 1rem; max-height: 250px; overflow-y: auto; padding: .75rem; border: 1px solid var(--r4b-line); border-radius: 4px; background: var(--r4b-tint); }
.r4b-checks--wide { grid-template-columns: 1fr; max-height: none; }
.r4b-logo-field .r4b-logo { display: block; max-height: 90px; margin-bottom: .5rem; }
.r4b-logo-field input[type="file"] { display: block; margin-bottom: .25rem; }

.r4b-notice { margin: 0 0 1.25rem; padding: .85rem 1.1rem; background: #e9f4fb; border-left: 4px solid var(--r4b-sky); border-radius: 0 4px 4px 0; }
.r4b-notice--ok { background: #e0f4e8; border-left-color: var(--r4b-grass); }
.r4b-notice--err { background: #fde4e3; border-left-color: var(--r4b-cardinal); }

/* Portal */
.r4b-login { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 3rem; align-items: start; }
.r4b-login label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 600; }
.r4b-login .login-remember label { font-weight: 400; }
.r4b-login input[type="submit"] { padding: .7rem 1.5rem; background: var(--r4b-gold); color: var(--r4b-navy); border: 0; border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer; }
.r4b-login h2 { margin-top: 0; }
.r4b-portal__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--r4b-blue); color: #fff; border-radius: var(--r4b-radius) var(--r4b-radius) 0 0; }
.r4b-portal__role { display: block; font-size: .85rem; color: #c9d8f0; }
.r4b-portal__logout { color: #fff; font-size: .9rem; }
.r4b-portal__switch { padding: .6rem 1.25rem; background: #fff8e8; border: 1px solid #f3dca6; border-top: 0; font-size: .9rem; }
.r4b-portal__switch select { padding: .3rem .5rem; font: inherit; }
.r4b-tabs { display: flex; gap: .15rem; overflow-x: auto; padding: 0 .5rem; background: #fff; border: 1px solid var(--r4b-line); border-top: 0; }
.r4b-tab { flex: 0 0 auto; padding: .85rem .9rem; border-bottom: 3px solid transparent; color: var(--r4b-muted); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.r4b-tab:hover { color: var(--r4b-blue); }
.r4b-tab.is-active { color: var(--r4b-blue); border-bottom-color: var(--r4b-gold); }
.r4b-portal .r4b-notice { margin: 1.25rem 0 0; }
.r4b-portal__body { padding: 1.75rem 0 0; }
.r4b-portal__body > h2:first-child, .r4b-portal__head h2 { margin-top: 0; }
.r4b-portal__head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.r4b-portal__head h2 { margin-bottom: 0; }
.r4b-stats { margin-bottom: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.r4b-stat { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--r4b-line); border-radius: var(--r4b-radius); font-size: .9rem; }
.r4b-stat__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--r4b-muted); }
.r4b-stat__num { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--r4b-blue); }
.r4b-details { margin: 0 0 1rem; border: 1px solid var(--r4b-line); border-radius: var(--r4b-radius); background: var(--r4b-tint); }
.r4b-details > summary { padding: .85rem 1.1rem; font-weight: 700; color: var(--r4b-blue); cursor: pointer; }
.r4b-details > :not(summary) { margin-left: 1.1rem; margin-right: 1.1rem; }
.r4b-details > form { margin-bottom: 1.1rem; }
.r4b-table-wrap { overflow-x: auto; }
.r4b-table-wrap .r4b-table { min-width: 620px; }
.r4b-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.r4b-table th, .r4b-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--r4b-line); text-align: left; vertical-align: top; }
.r4b-table thead th { background: var(--r4b-tint); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--r4b-muted); white-space: nowrap; }
.r4b-table tr.is-inactive td { opacity: .55; }
.r4b-actions form { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0; max-width: none; }
.r4b-diff tbody th { width: 9rem; font-weight: 600; }
.r4b-diff td:last-child { background: #f4fbf6; }
.r4b-review { margin: 0 0 1.25rem; padding: 1.25rem; background: #fff; border: 1px solid var(--r4b-line); border-radius: var(--r4b-radius); }
.r4b-review > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.r4b-review .r4b-facts { margin-bottom: 1rem; }
.r4b-review .r4b-facts > div { grid-template-columns: 9rem 1fr; }
.r4b-review__body { margin-bottom: 1rem; padding: .9rem 1.1rem; background: var(--r4b-tint); border-radius: 4px; }
.r4b-review form { margin: .9rem 0 0; }

@media (max-width: 900px) {
	.r4b-profile, .r4b-club-single, .r4b-login { grid-template-columns: 1fr; gap: 1.75rem; }
	.r4b-profile__side, .r4b-club-single__side { position: static; }
}
@media (max-width: 560px) {
	.r4b-profile__head { flex-direction: column; align-items: flex-start; }
	.r4b-event { flex-wrap: wrap; }
	.r4b-event__ics { flex-basis: 100%; padding-left: 4.7rem; }
	.r4b-facts > div, .r4b-review .r4b-facts > div { grid-template-columns: 1fr; gap: 0; }
	.r4b-form fieldset { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.r4b-card, .r4b-btn { transition: none; }
	.r4b-card:hover { transform: none; }
}

/* Register interest – meeting preferences for clubs still launching */
.r4b-proposed-only { margin: 0 0 1rem; padding: 1rem 1.1rem .25rem; background: var(--r4b-tint); border-left: 4px solid var(--r4b-gold); border-radius: var(--r4b-radius); }
.r4b-proposed-only > .r4b-small { margin: 0 0 .75rem; }
.r4b-proposed-only[hidden], .r4b-field[hidden] { display: none; }
