/* =========================================================================
   community.mindgains.org — user.css, mindgains.org skin (v12: hiding helpers)
   Drafted 2026-10-23 for the test clone mindgains31.wildapricot.org.
   Built on user-css-candidate-2026-09-07.css (sections 1-9) plus a skin
   layer (section 10) that maps the mindgains.org palette and type
   (mindgains/src/styles/global.css) onto the Wild Apricot theme.

   DEPLOY (clone): Website → CSS. Replace the whole box with this file.
   ROLLBACK:       user-css-live-backup-2026-09-07.css (identical to what the
                   clone and production served on 2026-10-23).

   !important is used in section 10 only where WA writes inline styles
   (header/headline backgrounds, <font style="font-size">) or where the
   generated theme out-specifies us. Everything else wins on load order.

   Fonts come from Google Fonts. mindgains.org self-hosts them; switch to
   uploaded .woff2 files before production if third-party font requests
   are a consent concern.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400..700&family=Quicksand:wght@500..700&display=swap");


/* ---------- 1. Tokens -----------------------------------------------------
   mindgains.org palette. The --mg-* names from the 2026-09-07 candidate are
   kept so sections 2-9 work unchanged; their values now point at the
   mindgains.org tokens.                                                     */

:root {
  /* mindgains.org (global.css @theme) */
  --mg-primary:        #015362;
  --mg-primary-strong: #004f5d;
  --mg-primary-muted:  #386a7a;
  --mg-accent-lime:    #7ecc49;
  --mg-accent-strong:  #5cb32e;
  --mg-accent-soft:    #a3ce75;
  --mg-on-accent:      #0b2a12;
  --mg-surface:        #ffffff;
  --mg-surface-low:    #e3f7ff;
  --mg-on-surface:     #001f26;
  --mg-text:           #3f484b;
  --mg-outline:        #bfc8cb;
  --mg-font-display:   "Quicksand", "Manrope", system-ui, sans-serif;

  /* Candidate names, remapped */
  --mg-ink:      var(--mg-on-surface);
  --mg-ink-soft: var(--mg-text);
  --mg-deep:     var(--mg-primary);
  --mg-teal:     var(--mg-primary-muted);
  --mg-link:     var(--mg-primary);
  --mg-accent:   var(--mg-accent-lime);
  --mg-page:     var(--mg-surface);
  --mg-panel:    var(--mg-surface);
  --mg-font:     "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}


/* ---------- 2. Typography unification -------------------------------------
   Beats customStyles' Helvetica declarations on BODY and H1-H5.            */

body,
body .gadgetStyleNone,
body h1, body h2, body h3, body h4, body h5,
body .gadgetStyleNone h1, body .gadgetStyleNone h2, body .gadgetStyleNone h3 {
  font-family: var(--mg-font);
}

/* Existing user.css used `H1:not(.promo) { color: #08527C !important }`.
   The !important is unnecessary given load order — dropped. */
h1:not(.promo),
.gadgetStyleNone h1:not(.promo) {
  color: var(--mg-deep);
}


/* ---------- 3. Membership rate selector -----------------------------------
   THE MAIN CHANGE. Memberships are pay-what-you-can: identical benefits at
   $35 / $90 / $180. Wild Apricot renders them as three radio rows each
   carrying its own "Subscription period: 1 year" + "Renew manually", which
   reads as a product comparison. The visitor looks for the difference,
   finds none, and concludes $180 is a rip-off.

   Fix: suppress the repeated system lines, state the term once in the
   intro copy instead (see the copy doc), and style the rows as one choice
   rather than three competing products. Deliberately full-width stacked
   rows, NOT a three-column card grid — cards are a comparison idiom and
   would reintroduce the exact problem.                                     */

/* 3a. Kill the duplicated term/renewal lines.
   Hides the whole .textLine wrapper so no empty block is left behind.
   :has() is required here; if you need to support a browser without it,
   the fallback is to hide .levelRenewal/.levelRecurring directly and add
   `line-height:0` to their parent .textLine — uglier, same result. */
#idMembershipLevelRadioGroupContainer .fieldItem span.label .textLine:has(> .levelRenewal),
#idMembershipLevelRadioGroupContainer .fieldItem span.label .textLine:has(> .levelRecurring) {
  display: none;
}

/* 3b. Each rate becomes a distinct, selectable row. */
#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem {
  position: relative;
  margin: 0 0 0.75em;
  padding: 1.1em 1.25em;
  background: var(--mg-panel);
  border: 2px solid rgba(22, 104, 118, 0.22);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem:hover {
  border-color: var(--mg-link);
}

/* Selected state. Also :has() — same caveat as above. */
#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem:has(.typeRadio:checked) {
  border-color: var(--mg-deep);
  box-shadow: 0 0 0 3px rgba(8, 82, 124, 0.12);
}

/* Keyboard focus must stay visible — do not remove. */
#idMembershipLevelRadioGroupContainer .fieldItem .typeRadio:focus-visible {
  outline: 3px solid var(--mg-accent);
  outline-offset: 2px;
}

/* 3c. Make the whole row feel clickable. The <label class="levelProperties">
   already wraps the text and is bound to the radio via `for`, so this is
   presentational only — no a11y change. */
#idMembershipLevelRadioGroupContainer .fieldItem label.levelProperties {
  cursor: pointer;
  display: block;
}

/* 3d. Name and price read as one line, at the same weight.
   Neither is more important than the other — the price IS the choice. */
#idMembershipLevelRadioGroupContainer .fieldItem span.label .textLine strong.labelTitle,
#idMembershipLevelRadioGroupContainer .fieldItem span.label .textLine strong.labelSubTitle {
  font-size: 1.25em;
  font-weight: 600;
  color: var(--mg-deep);
}

#idMembershipLevelRadioGroupContainer .fieldItem span.label .levelPrice {
  color: var(--mg-deep);
  white-space: nowrap;
}

/* 3e. The description carries the entire argument for choosing a higher
   rate, so it must not read as grey small print. Theme sets .9em on
   .levelDescription; customStyles sets 1.20em on the .typeInstruction
   wrapper. Both are beaten by the specificity below.

   SPECIFICITY TRAP — do not "simplify" this by styling .typeInstruction
   directly. All three of renewal, recurring and description sit in spans
   carrying BOTH `textLine` and `typeInstruction`. A rule on
   `.fieldItem span.label .typeInstruction` (1,5,1) outranks the hide rule
   in 3a (1,4,1) and silently un-hides the term/renewal lines — verified
   against the live page 2026-09-07. Target .levelDescription and its
   :has() wrapper only. */
#idMembershipLevelRadioGroupContainer .fieldItem span.label .textLine:has(> .levelDescription) {
  display: block;
  margin-top: 0.5em;
}

#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem span.label .levelDescription {
  font-size: 1em;
  line-height: 1.5;
  color: var(--mg-ink-soft);
  font-style: normal;
}

/* 3f. Group label. Carried over from existing user.css, kept as-is. */
.generalFieldsContainer .fieldSubContainer .fieldLabel span:not(.mandatorySymbol) {
  color: var(--mg-teal);
}

/* OPTIONAL — relabel "Membership level" to "Choose your rate".
   Commented out on purpose. First check whether Wild Apricot lets you
   rename it in the membership field settings; doing it there is correct.
   This CSS fallback leaves the original string in the accessibility tree,
   so a screen reader may announce both. Only use it if admin won't. */
/*
#idMembershipLevelRadioGroupContainer .fieldLabel strong.mandatoryLabel {
  font-size: 0;
}
#idMembershipLevelRadioGroupContainer .fieldLabel strong.mandatoryLabel::after {
  content: "Choose your rate";
  font-size: 1rem;
}
*/


/* ---------- 4. Form panels (carried forward from live user.css) ---------- */

#idGeneralFormContainer,
#id_m15T66H,
#id_Cc3XB8Z {
  background-color: var(--mg-panel);
}

.memberDirectoryDetailsContainer {
  background-color: var(--mg-panel);
}

.memberDirectoryDetailsContainer .fieldLabel {
  color: var(--mg-teal);
}


/* ---------- 5. Log-in affordance (carried forward, lightly improved) -----
   Was an 11px icon caption. Bumped to a legible size; still restrained.   */

.loginContainer {
  text-align: center;
}

.loginContainerInner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-text {
  line-height: 1.3;
  color: #b8dfe6;
  font-size: 0.95em;
}

.welcome-message {
  font-size: 0.95em;
  text-align: center;
  padding-top: 6px;
  padding-right: 12px;
}

.memberContentView #id_H4JVLC1 {
  display: none;
}

.loginContainer.authenticated + .WaGadgetContent .gadgetContentEditableArea p {
  display: none;
}


/* ---------- 6. Mailchimp block --------------------------------------------
   The live embed carries two broken declarations in its own inline style
   (`background:#fff; false;` and `margin-left: 6 px`). Those are in the
   embed code itself, not here — fix them by re-pasting a clean embed in
   the Custom HTML gadget. Also drop the "Intuit Mailchimp" referral badge
   while you're in there; it is off-brand on your own homepage.            */

#mc_embed_signup {
  width: 100%;
  max-width: 34rem;
  margin: 2em 0 0;
  padding: 1em 1.25em 1.25em;
  background: var(--mg-panel);
  border-radius: 8px;
  line-height: 1.6;
  font-family: var(--mg-font);
}

#mc_embed_signup label {
  margin-right: 1em;
}

#mc_embed_signup .refferal_badge {
  display: none;
}

@media screen and (max-width: 991px) {
  #mc_embed_signup {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}


/* ---------- 7. Video gallery (carried forward) --------------------------- */

.w-gallery-view__video-cards {
  background-color: #7e807f;
}


/* ---------- 8. Page-specific rules carried over — REVIEW THESE ------------
   These came from the live user.css. They are keyed to Wild Apricot page
   and gadget IDs, which change when a page is edited in the WA editor, so
   they break silently. Kept here so this file is a like-for-like swap, but
   each needs a decision.                                                   */

#PAGEID_18103 { background: none; }

/* #PAGEID_18055 { background-color: red; }
   Commented out — almost certainly a debugging leftover. Nothing on this
   site should be pure red. Confirm which page 18055 is before deleting
   the line entirely. */

#PAGEID_18128,
#PAGEID_18131,
#PAGEID_18134,
#PAGEID_18135 { background: #ffffff; }

#id_8KyHLtc,
#id_PH7jrmq {
  background-color: var(--mg-surface-low);
  padding: 2em 1em;
}

/* Hides four gadgets on mobile. Worth checking what they are — hiding
   content on small screens is usually a symptom of a layout that needs
   fixing rather than a fix in itself. */
@media screen and (max-width: 991px) {
  #id_IZvJ6VO,
  #id_6KXmqN1,
  #id_4RFOwyT,
  #id_SCD5MdL { display: none; }
}


/* ---------- 9. EXPERIMENTAL — leave commented until eyeballed -------------
   The watercolour background is the strongest visual asset you own, but
   body copy and the teal headings sit directly on it in several places and
   the contrast is poor. A translucent panel behind text blocks fixes the
   legibility without losing the artwork.

   NOT enabled by default: I could not check every page, and this will look
   wrong anywhere the artwork is meant to be the whole point. Turn it on,
   walk the site, and keep it only if it holds up.                          */
/*
.zoneContent .WaGadgetContent .gadgetContentEditableArea {
  background: rgba(255, 255, 255, 0.86);
  padding: 1.5em 1.75em;
  border-radius: 8px;
}
*/


/* ---------- 10. mindgains.org skin ----------------------------------------
   Teal header, white nav and page, lime for the one primary action, teal
   Quicksand headings, artwork kept as a thin band rather than behind text. */

/* 10a. Page */
body {
  background-color: var(--mg-surface);
  color: var(--mg-text);
}

/* Inline <font face/size> tags from the WA editor. face= is a presentational
   hint (loses to any author rule); style="font-size" is inline, hence
   !important — scoped to headline gadgets and the header only. */
body font[face] {
  font-family: inherit !important;
}
.WaGadgetHeadline font,
#idHeaderContentHolder font {
  font-size: inherit !important;
  color: inherit !important;
}
/* color= on <font> inside headings (e.g. "Not a member yet?" in #423e3e) */
h1 font[color], h2 font[color], h3 font[color], h4 font[color] {
  color: inherit;
}

/* Body copy. Theme styles .gadgetStyle002 (and others) in Ubuntu; spans and
   divs are left alone so headings' inner spans keep the display face. */
/* Gadget wrappers are WaGadget / WaGadgetFirst / WaGadgetOnly / WaGadgetLast,
   so match on the prefix rather than .WaGadget. */
body [class*="WaGadget"] .gadgetStyleBody p,
body [class*="WaGadget"] .gadgetStyleBody li,
body [class*="WaGadget"] .gadgetStyleBody td {
  font-family: var(--mg-font) !important;
}

body h1, body h2, body h3, body h4,
body .gadgetStyleNone h1, body .gadgetStyleNone h2, body .gadgetStyleNone h3 {
  font-family: var(--mg-font-display);
  font-weight: 600;
  color: var(--mg-primary);
}

/* 10b. Header band */
#idHeaderContentHolder {
  background-color: var(--mg-primary) !important;
}
#idHeaderContentHolder .WaGadgetHeadline p {
  margin: 0.2em 0;
  font-family: var(--mg-font-display) !important;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}
#idHeaderContentHolder .WaGadgetHeadline p:first-child {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
}
#idHeaderContentHolder .WaGadgetHeadline p + p {
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: var(--mg-accent-soft);
}

/* 10c. Main menu — white surface, teal text, lime marker on the current page */
.WaGadgetMenuHorizontal .menuInner,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel {
  background-color: var(--mg-surface) !important;
}
.WaGadgetMenuHorizontal .menuInner {
  border-bottom: 1px solid var(--mg-outline);
}
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a > span {
  font-family: var(--mg-font-display) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mg-primary) !important;
  background: transparent !important;
}
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li.sel > .item > a > span {
  box-shadow: inset 0 -3px 0 var(--mg-accent-lime);
}
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a:hover > span {
  color: var(--mg-primary-strong) !important;
  box-shadow: inset 0 -3px 0 var(--mg-accent-soft);
}
.WaGadgetMenuHorizontal .menuInner ul.secondLevel,
.WaGadgetMenuHorizontal .menuInner ul.secondLevel li,
.WaGadgetMenuHorizontal .menuInner ul.secondLevel a {
  background-color: var(--mg-surface) !important;
  color: var(--mg-primary) !important;
  font-family: var(--mg-font) !important;
}
.WaGadgetMenuHorizontal .menuInner ul.secondLevel {
  border: 1px solid var(--mg-outline);
  box-shadow: 0 6px 18px rgba(0, 31, 38, 0.12);
}
.WaGadgetMenuHorizontal .menuInner ul.secondLevel a:hover {
  background-color: var(--mg-surface-low) !important;
}

/* 10d. Artwork: off the content areas, kept as a band above the footer */
#id_Header1,
#idPrimaryContentBlock1Content {
  background-image: none !important;
  background-color: var(--mg-surface) !important;
}
#id_Footer1 {
  position: relative;
  margin-top: 56px;
}
#id_Footer1::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 40px;
  background: url("/resources/gains-hands-art.jpg") center / cover;
}

/* 10e. Section headings (the old orange bars) */
.WaGadgetHeadline {
  background-color: transparent !important;
}
#idMainContainer .WaGadgetHeadline:not(#idHeaderContentHolder *) .gadgetStyleBody,
.zoneContent .WaGadgetHeadline .gadgetStyleBody {
  padding-left: 0 !important;
}
.WaGadgetHeadline:not(#idHeaderContentHolder *) p,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h2,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h3 {
  font-family: var(--mg-font-display) !important;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.25 !important;
  color: var(--mg-primary);
  text-transform: none;
  margin: 0.5em 0 0.25em;
  padding-bottom: 0.3em;
  border-bottom: 3px solid var(--mg-accent-lime);
  display: inline-block;
  padding-left: 0 !important;
}

/* 10f. Buttons — lime for primary actions, outlined teal for secondary */
a.stylizedButton,
input.nextButton,
input.loginButton,
#mc_embed_signup input#mc-embedded-subscribe {
  font-family: var(--mg-font-display) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem !important;
  padding: 0.75em 1.6em !important;
  border-radius: 6px !important;
  border: 2px solid var(--mg-accent-lime) !important;
  background: var(--mg-accent-lime) !important;
  color: var(--mg-on-accent) !important;
  text-decoration: none !important;
  height: auto !important;
  line-height: 1.2 !important;
  cursor: pointer;
}
a.stylizedButton:hover,
input.nextButton:hover,
input.loginButton:hover,
#mc_embed_signup input#mc-embedded-subscribe:hover {
  background: var(--mg-accent-strong) !important;
  border-color: var(--mg-accent-strong) !important;
}
a.stylizedButton:focus-visible,
input.nextButton:focus-visible,
#mc_embed_signup input#mc-embedded-subscribe:focus-visible {
  outline: 3px solid var(--mg-primary);
  outline-offset: 2px;
}

/* 10g. Links in content */
.zoneContent .gadgetContentEditableArea a:not(.stylizedButton),
#idPrimaryContentBlock1Content a:not(.stylizedButton) {
  color: var(--mg-primary);
  text-decoration: underline;
  text-decoration-color: var(--mg-accent-lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* 10h. Mailchimp form fields */
#mc_embed_signup,
#mc_embed_signup p,
#mc_embed_signup label,
#mc_embed_signup .indicates-required {
  font-family: var(--mg-font) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: var(--mg-text);
}
#mc_embed_signup {
  border: 1px solid var(--mg-outline);
}
#mc_embed_signup .mc-field-group label {
  display: block;
  margin: 0 0 0.25em;
  font-weight: 600;
  color: var(--mg-on-surface);
}
#mc_embed_signup .mc-field-group input[type="email"],
#mc_embed_signup .mc-field-group input[type="text"] {
  width: 100% !important;
  max-width: 24rem;
  padding: 0.6em 0.75em !important;
  border: 1px solid var(--mg-outline) !important;
  border-radius: 6px;
  font: inherit;
  box-sizing: border-box;
}
/* The referral badge carries inline display:flex */
#mc_embed_signup .refferal_badge,
#mc_embed_signup a[href*="eep.io"] {
  display: none !important;
}

/* 10h2. Social icons — teal tiles, white glyphs */
.WaGadgetSocialProfile ul li a {
  background-color: var(--mg-primary) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 6px;
}
.WaGadgetSocialProfile ul li a:hover {
  background-color: var(--mg-accent-strong) !important;
}

/* 10i. Footer — deep teal */
#id_Footer1 {
  background-color: var(--mg-primary-strong) !important;
  color: #ffffff;
}
#id_Footer1 a:not(.stylizedButton) {
  color: var(--mg-accent-soft) !important;
}
#id_Footer1 a:not(.stylizedButton):hover {
  color: #ffffff !important;
}
#id_Footer1 a.stylizedButton {
  background: transparent !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
#id_Footer1 a.stylizedButton:hover {
  background: #ffffff !important;
  color: var(--mg-primary) !important;
}

/* 10j. Mobile */
.mobilePanel,
.mobilePanel .menuInner {
  background-color: var(--mg-primary) !important;
}
@media screen and (max-width: 767px) {
  /* WA fixes some gadget heights in px; larger mobile text then clips.
     Gadgets that are just a background image (footer logo) need their
     fixed height, so they are left alone. */
  .WaGadgetContent:not([style*="background-image"]),
  .WaGadgetContent:not([style*="background-image"]) .gadgetStyleBody {
    height: auto !important;
    overflow: visible !important;
  }
  #idHeaderContentHolder img {
    max-height: 96px;
    width: auto;
  }
}


/* ---------- 11. Softening (shared with the Astro site) --------------------
   Proposed shared tokens — mirror these in mindgains/src/styles/global.css
   if adopted, so both sites stay in step:
     --mg-radius-sm  10px  buttons, inputs
     --mg-radius-md  14px  panels, cards, form boxes
     --mg-radius-lg  20px  images, feature panels, header/footer sheet edges
     --mg-shadow-soft      two-layer low-contrast shadow, replaces grey rules
     heading accent        44×4 px rounded lime stroke, not a full underline
     nav                   sentence case, not ALL CAPS                       */

:root {
  --mg-radius-sm: 10px;
  --mg-radius-md: 14px;
  --mg-radius-lg: 20px;
  --mg-shadow-soft: 0 1px 3px rgba(0, 31, 38, 0.06), 0 8px 24px rgba(0, 31, 38, 0.07);
}

/* 11a. Header as a teal card with rounded bottom corners; the menu sits on
   the white page below it. (v2 rounded the menu's top corners instead, which
   left teal "tabs" at the container edges on wide screens.) The teal moves
   from the header placeholder, which also wraps the menu, to the layout
   container that holds the logo and title. */
#idHeaderContentHolder {
  background-color: transparent !important;
}
#idHeaderContentHolder .WaLayoutContainerFirst {
  background-color: var(--mg-primary);
  border-radius: 0 0 var(--mg-radius-lg) var(--mg-radius-lg);
}
.WaGadgetMenuHorizontal .menuInner {
  border-bottom: 1px solid #e6eef0;
  border-radius: 0;
  box-shadow: none;
}
.WaGadgetMenuHorizontal .menuInner ul.firstLevel {
  padding-left: 12px;
}
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a > span {
  text-transform: none !important;
  letter-spacing: 0.01em;
  font-size: 18px !important;
}
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li.sel > .item > a > span,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a:hover > span {
  box-shadow: none;
  background-image: linear-gradient(var(--mg-accent-lime), var(--mg-accent-lime)) !important;
  background-size: 100% 3px !important;
  background-position: 0 100% !important;
  background-repeat: no-repeat !important;
  border-radius: 2px;
  padding-bottom: 4px;
}
.WaGadgetMenuHorizontal .menuInner ul.firstLevel > li > .item > a:hover > span {
  background-image: linear-gradient(var(--mg-accent-soft), var(--mg-accent-soft)) !important;
}
.WaGadgetMenuHorizontal .menuInner ul.secondLevel {
  border: 0;
  border-radius: var(--mg-radius-md);
  overflow: hidden;
  box-shadow: var(--mg-shadow-soft);
}

/* 11b. Section headings: short rounded lime stroke */
.WaGadgetHeadline:not(#idHeaderContentHolder *) p,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h2,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h3 {
  border-bottom: 0;
  padding-bottom: 0;
}
.WaGadgetHeadline:not(#idHeaderContentHolder *) p::after,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h2::after,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 0.4em;
  border-radius: 2px;
  background: var(--mg-accent-lime);
}

/* 11c. Panels and cards */
#id_8KyHLtc,
#id_PH7jrmq,
#id_jZD56Pe,
#id_Uny8ZeX,
#id_Q3mNps1,
#idGeneralFormContainer {
  border-radius: var(--mg-radius-md);
}
#id_jZD56Pe,
#id_Q3mNps1 {
  box-shadow: var(--mg-shadow-soft);
}
#id_CSD38ck {
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
}

/* Membership rates: tinted card, no grey outline until hover/selected */
#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem {
  border: 2px solid transparent;
  border-radius: var(--mg-radius-md);
  background: var(--mg-surface-low);
}
#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem:hover {
  border-color: var(--mg-accent-soft);
}
#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem:has(.typeRadio:checked) {
  background: var(--mg-surface);
  border-color: var(--mg-primary);
  box-shadow: var(--mg-shadow-soft);
}

/* Mailchimp: tinted panel instead of an outline */
#mc_embed_signup {
  border: 0;
  border-radius: var(--mg-radius-md);
  background: var(--mg-surface-low);
}
#mc_embed_signup .mc-field-group input[type="email"],
#mc_embed_signup .mc-field-group input[type="text"] {
  border-radius: var(--mg-radius-sm);
  border-color: transparent !important;
  background: var(--mg-surface);
}

/* 11d. Images in page content (not header/footer logos) */
#id_Header1 .gadgetStyleBody img,
#idPrimaryContentBlock1Content .gadgetStyleBody img {
  border-radius: var(--mg-radius-lg);
}
#id_6KXmqN1, #id_4RFOwyT, #id_SCD5MdL {
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
}

/* 11e. Buttons a touch rounder; social tiles to match */
a.stylizedButton,
input.nextButton,
input.loginButton,
#mc_embed_signup input#mc-embedded-subscribe {
  border-radius: var(--mg-radius-sm) !important;
}
.WaGadgetSocialProfile ul li a {
  border-radius: var(--mg-radius-sm);
}

/* 11f. Footer sheet: artwork band with rounded top corners */
#id_Footer1::before {
  border-radius: var(--mg-radius-lg) var(--mg-radius-lg) 0 0;
}

/* 11g. Mobile header panel */
@media screen and (max-width: 767px) {
  #idHeaderContentHolder .WaLayoutContainerFirst {
    border-radius: var(--mg-radius-lg);
  }
}


/* ---------- 12. Page as tinted backdrop, sections as rounded cards --------
   Header, content and footer each become a card with all four corners
   rounded, floating on a pale tinted page, so no square edge is left
   hanging in white space.                                                   */

:root {
  --mg-backdrop: #eef5f3;
}

/* Header card + menu card */
#idHeaderContentHolder {
  padding-top: 16px;
}
#idHeaderContentHolder .WaLayoutContainerFirst {
  border-radius: var(--mg-radius-lg);
}
.WaGadgetMenuHorizontal .menuInner,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel {
  border-radius: var(--mg-radius-md);
}
.WaGadgetMenuHorizontal .menuInner {
  border-bottom: 0;
  box-shadow: var(--mg-shadow-soft);
}

/* Content cards. #id_Header1 is an empty 40px band on most pages — hide it
   when it holds no gadget so it doesn't become a blank pill. */
#id_Header1,
#idPrimaryContentBlock1Content {
  border-radius: var(--mg-radius-lg);
  box-shadow: var(--mg-shadow-soft);
  margin-top: 16px !important;
}
#id_Header1:not(:has([class*="WaGadget"])) {
  display: none;
}

/* Footer card with the artwork band inside its top edge */
#id_Footer1 {
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
  padding-top: 40px;
}
#id_Footer1::before {
  top: 0;
  bottom: auto;
  border-radius: 0;
}

@media screen and (max-width: 767px) {
  #id_Header1,
  #idPrimaryContentBlock1Content,
  #id_Footer1 {
    border-radius: var(--mg-radius-md);
  }
}

/* 12a. Backdrop: hands artwork, heavily washed out, fixed behind the cards */
body {
  background-color: var(--mg-backdrop);
  background-image: linear-gradient(rgba(238,245,243,0.86), rgba(238,245,243,0.86)), url("/resources/gains-hands-art.jpg");
  background-size: cover;
  background-attachment: fixed;
}

/* 12a ALTERNATIVE: pale tint + fine grain, no artwork. Replace the body rule
   above with this one to switch.
body {
  background-color: var(--mg-backdrop);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27240%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.8%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 0.1 0 0 0 0 0.25 0 0 0 0 0.25 0 0 0 0.09 0%27/%3E%3C/filter%3E%3Crect width=%27240%27 height=%27240%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
}
*/


/* ---------- 13. Stronger backdrop, more breathing room, green-tint cards ---
   Card tint is #CBFDC9 (the palest green in the hands artwork) at 25%
   over white. Panels inside the cards go white so they still read as
   layered.                                                                 */

:root {
  --mg-card: #F7FBF7;
}

/* 13a. Artwork less washed out (v4 overlay was 86%) */
body {
  background-image: linear-gradient(rgba(238, 245, 243, 0.55), rgba(238, 245, 243, 0.55)), url("/resources/gains-hands-art.jpg");
}

/* 13b. Narrower column so the artwork shows at the sides on laptops too,
   and bigger gaps between cards */
.zonePlace > .WaPlaceHolder {
  width: auto !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#idHeaderContentHolder {
  padding-top: 28px;
}
.WaGadgetMenuHorizontal {
  margin-top: 20px !important;
}
#id_Header1,
#idPrimaryContentBlock1Content {
  margin-top: 28px !important;
  padding: 12px 20px !important;
}
#id_Footer1 {
  margin-top: 36px;
  margin-bottom: 36px;
}

/* 13c. Card fill */
#id_Header1,
#idPrimaryContentBlock1Content,
.WaGadgetMenuHorizontal .menuInner,
.WaGadgetMenuHorizontal .menuInner ul.firstLevel {
  background-color: var(--mg-card) !important;
}

/* Panels inside cards: white, so they sit on the green */
#id_jZD56Pe,
#id_Uny8ZeX,
#id_8KyHLtc,
#id_PH7jrmq,
#id_Q3mNps1,
#idGeneralFormContainer,
#id_f8jONn4,
#id_i6ah1Ko,
#mc_embed_signup,
#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem {
  background-color: #ffffff !important;
}
#idMembershipLevelRadioGroupContainer .fieldSubContainer .fieldBody .fieldItem {
  border-color: #dfeee3;
}

@media screen and (max-width: 767px) {
  .zonePlace > .WaPlaceHolder {
    max-width: none !important;
  }
  #id_Header1,
  #idPrimaryContentBlock1Content {
    margin-top: 16px !important;
    padding: 8px 10px !important;
  }
}

/* 13d. Padding on the cards must not widen them past the header column */
.zonePlace > .WaPlaceHolder {
  box-sizing: border-box;
}

/* 13e. The elephant beside "Not a member yet?" sits on the card, not on its
   own white box */
#id_IZvJ6VO {
  background-color: transparent !important;
  mix-blend-mode: multiply; /* the elephant image has a baked-in white ground */
}

/* Newsletter inputs: the panel went white, so give the fields the card tint */
#mc_embed_signup .mc-field-group input[type="email"],
#mc_embed_signup .mc-field-group input[type="text"] {
  background: var(--mg-card) !important;
  border: 1px solid #cfe5d4 !important;
}

/* 13f. Fixed backgrounds are janky or ignored on phones; let it scroll */
@media screen and (max-width: 991px) {
  body {
    background-attachment: scroll;
  }
}


/* ---------- 14. Paper grain on the cards ---------------------------------
   Same fractal-noise idea as the Astro .nav-surface, tinted teal, 8% alpha.
   Raise the 4th value of the last colour-matrix row (0.08) for more grain;
   0.12 starts to grey the cards. White inner panels stay smooth.        */

#id_Header1,
#idPrimaryContentBlock1Content,
.WaGadgetMenuHorizontal .menuInner {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%27200%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 0.1 0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0.08 0%27/%3E%3C/filter%3E%3Crect width=%27200%27 height=%27200%27 filter=%27url(%23n)%27/%3E%3C/svg%3E") !important;
}


/* ---------- 15. Real footer: full width, square, at the bottom ------------
   Replaces the footer card (§12) and the artwork strip (§10d) — the strip
   was there to keep some artwork when it left the content areas; the
   artwork is now the page backdrop, so the strip only repeated it.        */

#id_Footer1::before {
  content: none !important;
}

/* The teal moves from the 1120px footer placeholder to its full-width zone */
.zonePlace.zoneFooter2,
.zonePlace.zoneWAbranding {
  background-color: var(--mg-primary-strong);
}
.zonePlace.zoneFooter2 {
  margin-top: 48px;
}
/* WA's (empty) "powered by" zone below the footer has a 10px top margin
   that showed as a strip of backdrop */
.zonePlace.zoneWAbranding {
  margin-top: 0 !important;
}
#id_Footer1 {
  background-color: transparent !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: visible;
}

/* Short pages: stretch the layout to the window so the footer sits at the
   bottom instead of floating halfway up */
#mLayout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#mLayout > .zonePlace.zoneFooter1 {
  margin-top: auto;
}


/* ---------- 16. Events: list, calendar and event details ----------------
   Previewed against production (the clone does not load customStyles.css,
   which sets Helvetica on every link and grey/teal Ubuntu headings).     */

/* 16a. Links everywhere: customStyles puts Helvetica on all <a>.
   Social icons draw their glyph in the <a>'s own font — leave them alone. */
body a:not(.stylizedButton):not([class*="fa-"]):not(.WaGadgetSocialProfile a) {
  font-family: inherit !important;
}

/* 16b. The white events panel becomes a rounded inner panel */
.WaGadgetEvents {
  border-radius: var(--mg-radius-md);
  padding: 32px 32px 36px !important;
}

/* 16c. Section titles ("Upcoming events", "Past events", "Month: …"):
   Quicksand teal in sentence case, with the lime stroke */
.WaGadgetEvents h3.sectionTitle,
.WaGadgetEvents h1.pageTitle.SystemPageTitle {
  font-family: var(--mg-font-display) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0;
  color: var(--mg-primary) !important;
}
.WaGadgetEvents h3.sectionTitle {
  font-size: 2rem;
}
.WaGadgetEvents h3.sectionTitle::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 0.35em;
  border-radius: 2px;
  background: var(--mg-accent-lime);
}
.WaGadgetEvents .pastEventsContainer h3.sectionTitle {
  font-size: 1.5rem;
}

/* RSS icon: smaller, teal instead of orange */
.WaGadgetEvents h1.pageTitle a.rssFeedLabel {
  font-size: 1.4rem;
  top: 4px;
  color: var(--mg-primary-muted) !important;
  text-decoration: none !important;
}
.WaGadgetEvents h1.pageTitle a.rssFeedLabel::before {
  color: var(--mg-primary-muted) !important;
  font-size: 20px !important;
}
.WaGadgetEvents h1.pageTitle a.rssFeedLabel:hover::before,
.WaGadgetEvents h1.pageTitle a.rssFeedLabel:hover {
  color: var(--mg-accent-strong) !important;
}

/* "Switch to calendar / list view", "Back", "Show details": quiet links */
.WaGadgetEvents .pageViewSwitcherContainer a,
.WaGadgetEvents a.eventBackLink,
.WaGadgetEvents a.footerEventDetailsLink {
  font-size: 15px;
  font-weight: 600;
}

/* 16d. Upcoming event: title, info box, description */
.WaGadgetEvents h4.boxHeaderTitle a,
.WaGadgetEventsStateDetails h1.pageTitle.SystemPageTitle {
  font-family: var(--mg-font-display) !important;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--mg-primary);
}
#idPrimaryContentBlock1Content .WaGadgetEvents h4.boxHeaderTitle a {
  text-decoration: none;
}
#idPrimaryContentBlock1Content .WaGadgetEvents h4.boxHeaderTitle a:hover {
  text-decoration: underline;
  text-decoration-color: var(--mg-accent-lime);
}

.WaGadgetEvents .boxBodyInfoOuterContainer .boxBodyInfoContainer {
  height: auto !important;
  min-height: 0 !important;
  padding: 18px 20px !important;
  background: var(--mg-backdrop) !important;
  border-radius: var(--mg-radius-md);
}
.WaGadgetEvents .boxBodyInfoContainer,
.WaGadgetEvents .boxBodyInfoContainer ul.boxInfo {
  font-size: 15px;
}
.WaGadgetEvents .boxBodyInfoContainer label.eventInfoBoxLabel {
  color: var(--mg-primary-muted);
  font-weight: 600;
}
.WaGadgetEvents .boxBodyInfoContainer .eventInfoBoxValue,
.WaGadgetEvents .boxBodyInfoContainer .eventInfoBoxValue strong {
  color: var(--mg-on-surface);
}

/* Register button, when an event takes registrations */
.WaGadgetEvents .boxActionContainer input.typeButton,
.WaGadgetEventsStateDetails input.typeButton {
  background: var(--mg-accent-lime) !important;
  color: var(--mg-on-accent) !important;
  font-family: var(--mg-font-display) !important;
  font-weight: 700;
  font-size: 16px !important;
  text-transform: none !important;
  border-radius: var(--mg-radius-sm);
}
.WaGadgetEvents .boxActionContainer input.typeButton:hover,
.WaGadgetEventsStateDetails input.typeButton:hover {
  background: var(--mg-accent-strong) !important;
}

/* "Add to my calendar" (event details) */
.WaGadgetEventsStateDetails .-wa-add-event-to-calendar-dropdown,
.WaGadgetEventsStateDetails .-wa-add-event-to-calendar-dropdown .text {
  font-family: var(--mg-font) !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--mg-primary);
}

/* 16e. Past events */
.WaGadgetEvents .pastEventsOuterContainer {
  border-top: 1px solid #dfe9e6 !important;
}
.WaGadgetEvents table.pastEventsList td {
  font-size: 15px;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  vertical-align: top;
}
.WaGadgetEvents table.pastEventsList td.left {
  color: var(--mg-primary-muted) !important;
  white-space: nowrap;
}

/* 16f. Calendar view: switcher bar and grid */
.WaGadgetEvents .viewSwitchersTable a,
.WaGadgetEvents .viewSwitchersTable span {
  font-family: var(--mg-font) !important;
  font-size: 14px !important;
  font-weight: 600;
  text-transform: none !important;
  background: var(--mg-backdrop) !important;
  color: var(--mg-primary) !important;
  text-decoration: none !important;
}
.WaGadgetEvents .viewSwitchersTable a:hover {
  background: #dcebe7 !important;
}
.WaGadgetEvents .viewSwitchersTable span.monthButtonLabel,
.WaGadgetEvents .viewSwitchersTable span.weekButtonLabel,
.WaGadgetEvents .viewSwitchersTable span.yearButtonLabel {
  background: var(--mg-primary) !important;
  color: #ffffff !important;
}
.WaGadgetEvents .switchersGroup1 > div:first-child > *,
.WaGadgetEvents .switchersGroup2 > div:first-child > * {
  border-radius: var(--mg-radius-sm) 0 0 var(--mg-radius-sm);
}
.WaGadgetEvents .switchersGroup1 > div:last-child > *,
.WaGadgetEvents .switchersGroup2 > div:last-child > * {
  border-radius: 0 var(--mg-radius-sm) var(--mg-radius-sm) 0;
}
.WaGadgetEvents .switchersGroup1 {
  padding-right: 8px;
  box-sizing: border-box;
}
.WaGadgetEvents .switchersGroup2 {
  padding-left: 8px;
  box-sizing: border-box;
}

.WaGadgetEvents table.EventListCalendar {
  border-color: #e3ece9;
  border-radius: var(--mg-radius-md);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.WaGadgetEvents td.EventListCalendarHeader {
  font-family: var(--mg-font-display) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--mg-primary) !important;
}
.WaGadgetEvents table.EventListCalendar td[class^="EventListCalendarItem"] {
  border-color: #e3ece9 !important;
}
.WaGadgetEvents table.EventListCalendar td.EventListCalendarItemInactive {
  background: #fafcfb;
}
.WaGadgetEvents table.EventListCalendar td.EventListCalendarItemInactive a.calendarDate {
  color: #8aa0a6;
}
/* Day numbers: plain, no underline on every cell */
#idPrimaryContentBlock1Content .WaGadgetEvents a.calendarDate {
  font-size: 15px;
  text-decoration: none;
}
#idPrimaryContentBlock1Content .WaGadgetEvents a.calendarDate:hover {
  text-decoration: underline;
  text-decoration-color: var(--mg-accent-lime);
}
/* Event chip */
.WaGadgetEvents .eventDivItem {
  background: var(--mg-primary) !important;
  border-radius: 8px;
}
.WaGadgetEvents .eventDivItem,
.WaGadgetEvents .eventDivItem .eventTime,
#idPrimaryContentBlock1Content .WaGadgetEvents .eventDivItem a {
  color: #ffffff !important;
  text-decoration: none;
}
.WaGadgetEvents .eventDivItem .eventTime {
  color: var(--mg-accent-soft) !important;
  font-weight: 600;
}

/* 16g. Event details page uses an older page template: header layout is a
   WaLayoutContainerOnly (not First), the menu sits inside #id_Header1, and
   the content starts with a hands-art banner gadget. Bring it in line. */
#idHeaderContentHolder .WaLayoutContainerOnly {
  background-color: var(--mg-primary) !important;
  border-radius: var(--mg-radius-lg);
}
#idHeaderContentHolder > div[style*="padding-top"] {
  padding-top: 0 !important;
}
#id_Header1:has(.WaGadgetMenuHorizontal) {
  background: transparent !important;
  box-shadow: none;
  padding: 0 !important;
  margin-top: 0 !important;
}
#id_Header1 .WaGadgetMenuHorizontal {
  margin-top: 0 !important;
}
#id_Header1:has(.WaGadgetMenuHorizontal) > div,
#id_Header1:has(.WaGadgetMenuHorizontal) [class*="WaLayoutContainer"] {
  padding: 0 !important;
  margin: 0 !important;
}
#id_eFsusYD {
  display: none !important;
}

/* 16h. Phones: stack the info box, give past-event dates their own line */
@media screen and (max-width: 767px) {
  #idHeaderContentHolder .WaLayoutContainerOnly {
    padding: 8px 16px 20px;
    box-sizing: border-box;
  }
  .WaGadgetEvents {
    padding: 20px 16px 24px !important;
  }
  .WaGadgetEvents h3.sectionTitle {
    font-size: 1.6rem;
  }
  .WaGadgetEvents h4.boxHeaderTitle a,
  .WaGadgetEventsStateDetails h1.pageTitle.SystemPageTitle {
    font-size: 1.35rem;
  }
  .WaGadgetEvents table.pastEventsList,
  .WaGadgetEvents table.pastEventsList tbody,
  .WaGadgetEvents table.pastEventsList tr,
  .WaGadgetEvents table.pastEventsList td {
    display: block;
    width: auto !important;
  }
  .WaGadgetEvents table.pastEventsList tr {
    padding: 8px 0;
    border-bottom: 1px solid #edf3f1;
  }
  .WaGadgetEvents table.pastEventsList td {
    padding: 0 !important;
  }
  .WaGadgetEvents table.pastEventsList td.left {
    font-size: 13px;
  }
}

/* 16i. Headline gadgets with spacer lines (e.g. "More ways to connect" is
   three <h3>s: a &nbsp; spacer, the text, an empty one). Stroke only the
   last non-empty line. Real fix: delete the spacer lines in the editor. */
.WaGadgetHeadline:not(#idHeaderContentHolder *) h2:empty,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h3:empty {
  display: none;
}
.WaGadgetHeadline:not(#idHeaderContentHolder *) h2:has(~ h2:not(:empty))::after,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h3:has(~ h3:not(:empty))::after {
  content: none;
}


/* ---------- 17. Directories and forums ----------------------------------
   Pages: /page-18112 (Directories), /public-directory, /members/forums/summary,
   forum topic lists and topics. Forum pages use the older template (content
   sits in #id_Header1), so selectors key off the gadgets, not the zones.
   Previewed against production (customStyles puts Helvetica on headings and
   member-table cells, and cyan on links).                                 */

/* 17a. Headings typed into content and headline gadgets as <h1>
   ("Public Member Directory", "meet the community: …"): Quicksand teal,
   no forced capitals, lime stroke. Header and footer gadgets excluded. */
.WaGadgetContent:not(#idHeaderContentHolder *):not(.zoneFooter2 *) h1,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h1 {
  font-family: var(--mg-font-display) !important;
  font-weight: 700 !important;
  font-size: 2rem !important;
  line-height: 1.2;
  text-transform: none !important;
  color: var(--mg-primary) !important;
  margin: 0 0 0.9em;
}
.WaGadgetContent:not(#idHeaderContentHolder *):not(.zoneFooter2 *) h1:not(:empty)::after,
.WaGadgetHeadline:not(#idHeaderContentHolder *) h1:not(:empty)::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 0.4em;
  border-radius: 2px;
  background: var(--mg-accent-lime);
}

/* 17b. Coloured intro boxes set inline in the editor (#005B7F on the
   directory pages): rounded, and brought onto the brand teal. */
.WaGadgetContent[style*="background-color:#005B7F" i] {
  background-color: var(--mg-primary) !important;
  border-radius: var(--mg-radius-md);
}
.WaGadgetContent[style*="background-color:#005B7F" i] .gadgetStyleBody {
  padding: 22px 26px !important;
}
.WaGadgetContent[style*="background-color:#005B7F" i] p {
  line-height: 1.6;
}

/* 17c. Member directory: rounded white panel, Manrope table, teal names */
.WaGadgetMemberDirectory {
  border-radius: var(--mg-radius-md);
  padding: 28px 28px 32px !important;
}
.WaGadgetMemberDirectory table.browsingColumns th {
  font-family: var(--mg-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--mg-primary) !important;
  vertical-align: bottom;
}
.WaGadgetMemberDirectory .filterList li {
  font-size: 15px;
}
.WaGadgetMemberDirectory .memberDirectorySearchAreaOuterContainer {
  border-top: 1px solid #e3ece9 !important;
  padding-top: 22px !important;
  margin-top: 18px;
}
.WaGadgetMemberDirectory .memberDirectorySearchArea {
  font-size: 15px;
  color: var(--mg-primary-muted);
}
.WaGadgetMemberDirectory input[type="text"],
.WaGadgetMemberDirectory select,
.WaGadgetSiteSearch input.searchBoxField,
.WaGadgetForum input[type="text"] {
  font-family: var(--mg-font) !important;
  font-size: 15px !important;
  box-sizing: border-box;
  height: 38px !important;
  line-height: 1.3 !important;
  padding: 6px 12px !important;
  border: 1px solid #cfdcd8 !important;
  border-radius: var(--mg-radius-sm) !important;
  background: var(--mg-surface);
  color: var(--mg-on-surface) !important;
}
.WaGadgetSiteSearch input.searchBoxField {
  padding-left: 34px !important;
}
.WaGadgetMemberDirectory input[type="text"]:focus,
.WaGadgetMemberDirectory select:focus,
.WaGadgetSiteSearch input.searchBoxField:focus {
  outline: 3px solid var(--mg-accent-soft);
  outline-offset: 1px;
  border-color: var(--mg-primary) !important;
}
.WaGadgetMemberDirectory #membersTable thead th {
  font-family: var(--mg-font-display) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--mg-primary) !important;
  padding-top: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #e3ece9 !important;
}
.WaGadgetMemberDirectory #membersTable tbody td,
.WaGadgetMemberDirectory #membersTable tbody td .memberValue,
.WaGadgetMemberDirectory #membersTable tbody td .memberValue h5 {
  font-family: var(--mg-font) !important;
  font-size: 16px !important;
  color: var(--mg-text);
}
.WaGadgetMemberDirectory #membersTable tbody td {
  border-color: #e3ece9 !important;
}
.WaGadgetMemberDirectory #membersTable tbody td .memberValue h5 a {
  font-family: var(--mg-font) !important;
  font-weight: 600;
  color: var(--mg-primary) !important;
}
.WaGadgetMemberDirectory #membersTable tbody tr:hover td {
  background: #f4f9f7 !important;
}
.WaGadgetMemberDirectory #membersTable img {
  border-radius: var(--mg-radius-sm);
  margin-top: 6px;
}

/* 17d. Links inside directory and forum gadgets: brand teal with the lime
   underline (10g only reaches the main content block, and forum pages put
   their content in #id_Header1). */
.WaGadgetMemberDirectory a:not(.stylizedButton),
.WaGadgetForum a:not(.stylizedButton) {
  color: var(--mg-primary) !important;
  text-decoration: underline;
  text-decoration-color: var(--mg-accent-lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.WaGadgetMemberDirectory a:not(.stylizedButton):hover,
.WaGadgetForum a:not(.stylizedButton):hover {
  color: var(--mg-accent-strong) !important;
}

/* 17e. Forums: rounded panel; category and topic titles in Quicksand teal */
.WaGadgetForum {
  border-radius: var(--mg-radius-md);
  padding: 28px 28px 32px !important;
}
.WaGadgetForum h5.forumCategoryTitle,
.WaGadgetForum .messageListForumTitle {
  font-family: var(--mg-font-display) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: var(--mg-primary) !important;
  line-height: 1.2;
}
.WaGadgetForum h5.forumCategoryTitle {
  font-size: 1.5rem !important;
  margin-bottom: 18px;
}
.WaGadgetForum .messageListForumTitle {
  font-size: 2rem !important;
}
.WaGadgetForum h5.forumCategoryTitle::after,
.WaGadgetForum .messageListForumTitle::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 0.4em;
  border-radius: 2px;
  background: var(--mg-accent-lime);
}
/* Column headings ("Forum", "Last message", "Topics", "Replies") */
.WaGadgetForum h4.boxHeaderTitle {
  font-family: var(--mg-font-display) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--mg-primary-muted) !important;
}
.WaGadgetForum .forumListHeaderTD,
.WaGadgetForum .topicListHeaderTD {
  padding-top: 4px !important;
  padding-bottom: 10px !important;
  vertical-align: bottom;
}
.WaGadgetForum .forumListRow,
.WaGadgetForum .topicListRow {
  border-top-color: #e3ece9 !important;
}
.WaGadgetForum .forumListRow:hover td,
.WaGadgetForum .topicListRow:hover td {
  background: #f4f9f7;
}
.WaGadgetForum a.forumTitle,
.WaGadgetForum a.topicTitle {
  font-weight: 600;
}
.WaGadgetForum .forumDescription,
.WaGadgetForum .forumListTD,
.WaGadgetForum .topicListTD {
  color: var(--mg-primary-muted) !important;
}
.WaGadgetForum .forumDescription {
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 15px !important;
}

/* 17f. Topic page: the dark grey message bars become a tinted strip */
.WaGadgetForum .forumMessageHeaderTable td {
  background: var(--mg-backdrop) !important;
  color: var(--mg-primary-muted) !important;
  font-size: 14px;
}
.WaGadgetForum .forumMessageHeaderTable td:first-child {
  border-radius: var(--mg-radius-sm) 0 0 var(--mg-radius-sm);
}
.WaGadgetForum .forumMessageHeaderTable td:last-child {
  border-radius: 0 var(--mg-radius-sm) var(--mg-radius-sm) 0;
}
.WaGadgetForum .forumMessageHeaderTable td *,
.WaGadgetForum .messageCreatedDate {
  color: var(--mg-primary-muted) !important;
}
.WaGadgetForum .forumMessageHeaderTable .messageIdText,
.WaGadgetForum .forumMessageHeaderTable .toggleButton,
.WaGadgetForum .forumMessageHeaderTable .forumReplyLink,
.WaGadgetForum .messageActionsContainer,
.WaGadgetForum .messageActionsContainer * {
  background: transparent !important;
  border-color: #cfdcd8 !important;
  color: var(--mg-primary) !important;
}
.WaGadgetForum .forumMessageTable td {
  color: var(--mg-text);
  line-height: 1.6;
}
.WaGadgetForum .postedByComment {
  color: var(--mg-primary-muted) !important;
  font-weight: 600 !important;
}

/* 17g. Phones */
@media (max-width: 767px) {
  .WaGadgetMemberDirectory,
  .WaGadgetForum {
    padding: 20px 16px 24px !important;
  }
  .WaGadgetContent:not(#idHeaderContentHolder *):not(.zoneFooter2 *) h1,
  .WaGadgetHeadline:not(#idHeaderContentHolder *) h1,
  .WaGadgetForum .messageListForumTitle {
    font-size: 1.6rem !important;
  }
  /* The theme hides the filter headings on phones, leaving bare "yes (44)
     / no (23)" lists. Put each heading back above its own options. */
  .WaGadgetMemberDirectory table.browsingColumns tbody {
    display: grid;
    gap: 4px 0;
  }
  .WaGadgetMemberDirectory table.browsingColumns tr {
    display: contents;
  }
  .WaGadgetMemberDirectory table.browsingColumns th {
    display: block !important;
    width: auto !important;
    height: auto !important;
    padding: 14px 0 2px !important;
  }
  .WaGadgetMemberDirectory table.browsingColumns td {
    display: block !important;
  }
  .WaGadgetMemberDirectory table.browsingColumns th.f1Head { order: 1; }
  .WaGadgetMemberDirectory table.browsingColumns td#idF1Row { order: 2; }
  .WaGadgetMemberDirectory table.browsingColumns th.f2Head { order: 3; }
  .WaGadgetMemberDirectory table.browsingColumns td#idF2Row { order: 4; }
  .WaGadgetMemberDirectory table.browsingColumns th.f3Head { order: 5; }
  .WaGadgetMemberDirectory table.browsingColumns td#idF3Row { order: 6; }
  .WaGadgetMemberDirectory table.browsingColumns th.f4Head { order: 7; }
  .WaGadgetMemberDirectory table.browsingColumns td#idF4Row { order: 8; }
  .WaGadgetContent[style*="background-color:#005B7F" i] .gadgetStyleBody {
    padding: 18px 18px !important;
  }
}

/* 17h. "Become a member" globe beside the directory intro: it's a background
   image (cover) on a layout cell, which phones squash into a thin strip.
   Give the cell a square box and show the whole globe, button centred. */
@media (max-width: 767px) {
  td#id_i9eU51P {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    margin: 16px auto 4px;
    background-size: contain !important;
    background-position: center !important;
    border-radius: var(--mg-radius-lg);
  }
  td#id_i9eU51P #id_4Gtn3vu {
    margin-top: 0 !important;
  }
  td#id_i9eU51P .gadgetStyleBody {
    padding: 0 !important;
  }
}

/* ---------- 18. About us page ----------------------------------------------
   Long-form content gadget: section h2s in Quicksand with the lime stroke,
   a pull quote, and the board directory without the search filters. */
.WaGadgetContent:not(#idHeaderContentHolder *):not(.zoneFooter2 *) h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.6em 0 0.6em;
}
.WaGadgetContent:not(#idHeaderContentHolder *):not(.zoneFooter2 *) h2:not(:empty)::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 0.4em;
  border-radius: 2px;
  background: var(--mg-accent);
}
.WaGadgetContent blockquote {
  margin: 1.5em 0 !important;  /* theme indents 30px left, 0 below */
  padding: 18px 24px;
  border: 0;
  border-left: 4px solid var(--mg-accent);
  border-radius: 0 var(--mg-radius-md) var(--mg-radius-md) 0;
  background: var(--mg-backdrop);
}
.WaGadgetContent blockquote p {
  margin: 0;
  font-family: var(--mg-font-display) !important;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: var(--mg-primary);
}
@media (max-width: 767px) {
  .WaGadgetContent blockquote {
    padding: 14px 16px;
  }
  .WaGadgetContent blockquote p {
    font-size: 1.05rem;
  }
}

/* ---------- 19. Hiding helpers ----------------------------------------------
   For content you write yourself in a content gadget's source view (<>):
     <div class="mg-hide">…</div>          hidden everywhere
     <div class="mg-hide-mobile">…</div>   hidden on phones (767px and below)
     <div class="mg-hide-desktop">…</div>  hidden on tablets and desktops
   Hidden content still ships in the page source, so don't use these for
   anything private. To retire something for good, delete it in the editor. */
.mg-hide {
  display: none !important;
}
@media (max-width: 767px) {
  .mg-hide-mobile {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .mg-hide-desktop {
    display: none !important;
  }
}
