/* =================================================================== */
/* SDWAC — Membership Application widget restyle  (CLEAN REWRITE)       */
/* Destination: WildApricot admin -> Website -> CSS  (writes User.css). */
/*                                                                     */
/* Replaces the old 855-line version. Selectors are taken from the      */
/* theme's own form stylesheet (Gadgets/basic.shared.form.less), so      */
/* they match the REAL gadget DOM instead of guessing.                  */
/*                                                                     */
/* THE KEY FIX: WildApricot lays every form field out as a hard two-     */
/* column float — .fieldLabel = 23% (left), .fieldBody = 75% (right).    */
/* On the membership form that squeezes the level cards into a narrow    */
/* right column. Section 2 below COLLAPSES that two-column layout to a    */
/* single full-width stacked column. That is what stops the right-edge    */
/* pinning. Everything else is cosmetic.                                 */
/*                                                                     */
/* Palette continues the dark "Join the Council" strip rendered by the   */
/* Custom HTML gadget directly above this gadget.                        */
/* =================================================================== */

:root {
  --sd-ink:#0E2236; --sd-ink-2:#1A2F49; --sd-paper-2:#FAF7EC;
  --sd-champagne:#E8C9A2; --sd-serif:'Source Serif 4',Georgia,serif;
  --sd-sans:Inter,system-ui,Segoe UI,Arial,sans-serif;
  --sd-mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
}

/* ---- 1. Gadget shell: dark, centered, NOT full-bleed --------------- */
.WaGadgetMembershipApplication {
  background: var(--sd-ink) !important;
  color: var(--sd-paper-2) !important;
  font-family: var(--sd-serif) !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  /* override theme sdwac.less §26b's max-width:720px so the dark form
     fills its column like the strip above, instead of a narrow box */
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(28px,4vw,52px) clamp(20px,5vw,72px) clamp(56px,7vw,90px) !important;
}
/* Center the actual form content to a readable column */
.WaGadgetMembershipApplication .generalFormOuterContainer,
.WaGadgetMembershipApplication .generalFormContainer,
.WaGadgetMembershipApplication .sectionOuterContainer,
.WaGadgetMembershipApplication .navigationOuterContainer {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
}

/* ---- 2. THE FIX: collapse WA's 23% / 75% two-column field layout ---- */
/* Source: basic.shared.form.less — .fieldLabel{width:23%;float:left}    */
/* .fieldBody{width:75%;float:left}, plus a td.left/td.right table form. */
.WaGadgetMembershipApplication .fieldSubContainer,
.WaGadgetMembershipApplication .fieldLabel,
.WaGadgetMembershipApplication .fieldBody,
.WaGadgetMembershipApplication .captionContainer .fieldLabel,
.WaGadgetMembershipApplication .captionContainer .fieldBody,
.WaGadgetMembershipApplication .fieldSubContainer table,
.WaGadgetMembershipApplication .fieldSubContainer tbody,
.WaGadgetMembershipApplication .fieldSubContainer tr,
.WaGadgetMembershipApplication .fieldSubContainer td,
.WaGadgetMembershipApplication .fieldSubContainer td.left,
.WaGadgetMembershipApplication .fieldSubContainer td.right {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  text-align: left !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  vertical-align: top !important;
}
.WaGadgetMembershipApplication .fieldSubContainer { margin-bottom: 26px !important; }

/* ---- 3. Field labels: champagne mono, above their input ------------ */
.WaGadgetMembershipApplication .fieldLabel,
.WaGadgetMembershipApplication label {
  font-family: var(--sd-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--sd-champagne) !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
}

/* ---- 4. Inputs / selects: transparent w/ paper underline ----------- */
.WaGadgetMembershipApplication input[type="text"],
.WaGadgetMembershipApplication input[type="email"],
.WaGadgetMembershipApplication input[type="tel"],
.WaGadgetMembershipApplication input[type="password"],
.WaGadgetMembershipApplication select,
.WaGadgetMembershipApplication textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(245,239,224,.4) !important;
  border-radius: 0 !important;
  padding: 11px 2px !important;
  font-family: var(--sd-serif) !important;
  font-size: 17px !important;
  color: var(--sd-paper-2) !important;
}
.WaGadgetMembershipApplication input:focus,
.WaGadgetMembershipApplication select:focus,
.WaGadgetMembershipApplication textarea:focus {
  outline: none !important;
  border-bottom-color: var(--sd-champagne) !important;
}
.WaGadgetMembershipApplication select option { background: var(--sd-ink) !important; color: var(--sd-paper-2) !important; }

/* ---- 5. Membership-level selector: full-width stacked cards -------- */
.WaGadgetMembershipApplication .groupBodyVertical {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
}
.WaGadgetMembershipApplication .fieldItem {
  display: block !important;
  width: 100% !important;
  background: var(--sd-ink-2) !important;
  border: 1px solid rgba(245,239,224,.18) !important;
  padding: 18px 20px !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: border-color .15s, background .15s !important;
}
.WaGadgetMembershipApplication .fieldItem:hover { border-color: var(--sd-champagne) !important; background:#243A57 !important; }
/* radio sits inline-left of the level text */
.WaGadgetMembershipApplication .fieldItem span.typeRadioContainer {
  float: left !important;
  width: auto !important;
  margin: 3px 12px 0 0 !important;
}
.WaGadgetMembershipApplication .fieldItem input.typeRadio,
.WaGadgetMembershipApplication .fieldItem input[type="radio"] {
  width: 16px !important; height: 16px !important; margin: 0 !important;
  accent-color: var(--sd-champagne) !important;
}
.WaGadgetMembershipApplication .fieldItem span.label {
  display: block !important;
  overflow: hidden !important;
  color: var(--sd-paper-2) !important;
  font-family: var(--sd-serif) !important;
}
.WaGadgetMembershipApplication .fieldItem .labelTitle,
.WaGadgetMembershipApplication .fieldItem .label > span:first-child {
  font-weight: 600 !important; font-size: 18px !important; color: var(--sd-paper-2) !important;
}
.WaGadgetMembershipApplication .fieldItem .labelSubTitle,
.WaGadgetMembershipApplication .fieldItem .levelPrice {
  color: var(--sd-champagne) !important; font-weight: 600 !important;
}
/* subscription-period / renewal notes + level description -> white */
.WaGadgetMembershipApplication .fieldItem .typeInstruction,
.WaGadgetMembershipApplication .fieldItem .levelDescription,
.WaGadgetMembershipApplication .fieldItem .extraInfo,
.WaGadgetMembershipApplication .fieldItem .label .textLine.typeInstruction {
  font-family: var(--sd-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--sd-paper-2) !important;   /* near-white #FAF7EC on the dark form */
}

/* ---- 6. Mandatory note + validation -------------------------------- */
.WaGadgetMembershipApplication .mandatoryFieldsTitle {
  font-family: var(--sd-mono) !important; font-size: 11px !important;
  letter-spacing: 0.10em !important; text-transform: uppercase !important;
  color: rgba(245,239,224,.55) !important; margin: 0 0 22px !important; text-align: left !important;
}
.WaGadgetMembershipApplication .mandatorySymbol,
.WaGadgetMembershipApplication .requiredSymbol { color: var(--sd-champagne) !important; }
.WaGadgetMembershipApplication .validationError,
.WaGadgetMembershipApplication .field-validation-error {
  font-family: var(--sd-sans) !important; font-size: 12px !important; color: #E8A0AA !important; margin-top: 6px !important;
}

/* ---- 7. Hide WA's own form title (the strip above provides it) ----- */
.WaGadgetMembershipApplication .formTitleOuterContainer { display: none !important; }

/* ---- 7b. Read-only summary / selected-level panel (data-entry &      */
/*         review steps). WA renders this on a WHITE background with     */
/*         faint text, so on the dark form it reads as an invisible      */
/*         white band. Drop the dark form background through it, center  */
/*         it to the form column, and make the text legible.            */
.WaGadgetMembershipApplication .infoOuterContainer,
.WaGadgetMembershipApplication .infoContainer,
.WaGadgetMembershipApplication .summaryOuterContainer,
.WaGadgetMembershipApplication .summaryContainer,
.WaGadgetMembershipApplication .summary,
.WaGadgetMembershipApplication .selectedLevel,
.WaGadgetMembershipApplication .selectedLevelInfo,
.WaGadgetMembershipApplication .selectedLevelContainer,
.WaGadgetMembershipApplication .selectedMembershipLevel,
.WaGadgetMembershipApplication .membershipLevelInfo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Read-only field VALUES (plain text, not <input>s) need light text */
.WaGadgetMembershipApplication .fieldBody,
.WaGadgetMembershipApplication .fieldBody span,
.WaGadgetMembershipApplication .fieldBody div,
.WaGadgetMembershipApplication .infoOuterContainer,
.WaGadgetMembershipApplication .infoOuterContainer *,
.WaGadgetMembershipApplication .summary,
.WaGadgetMembershipApplication .summary * {
  color: var(--sd-paper-2) !important;
}

/* ---- 8. Buttons: Next/submit = paper invert, Back = ghost ---------- */
.WaGadgetMembershipApplication .navigationContainer { overflow: hidden !important; }
.WaGadgetMembershipApplication .navigationContainer .right { float: right !important; }
.WaGadgetMembershipApplication .navigationContainer .left  { float: left !important; }
.WaGadgetMembershipApplication input.nextButton,
.WaGadgetMembershipApplication input[type="submit"],
.WaGadgetMembershipApplication button[type="submit"] {
  background: var(--sd-paper-2) !important;
  color: var(--sd-ink) !important;
  border: 0 !important; border-radius: 0 !important;
  font-family: var(--sd-sans) !important; font-weight: 600 !important;
  font-size: 15px !important; letter-spacing: 0.04em !important;
  padding: 15px 32px !important; cursor: pointer !important; width: auto !important;
}
.WaGadgetMembershipApplication input.nextButton:hover,
.WaGadgetMembershipApplication input[type="submit"]:hover { background: var(--sd-champagne) !important; }
.WaGadgetMembershipApplication input.prevButton,
.WaGadgetMembershipApplication input.cancelButton {
  background: transparent !important; color: var(--sd-paper-2) !important;
  border: 1px solid rgba(245,239,224,.5) !important; padding: 15px 26px !important; margin-right: 10px !important;
}

@media (prefers-reduced-motion: reduce) {
  .WaGadgetMembershipApplication * { transition-duration: .01ms !important; }
}

/* =================================================================== */
/* SDWAC INSIGHTS — page CSS.                                          */
/* Paste this whole file into WildApricot's site CSS:                  */
/*   Settings -> Global settings -> (Look & feel) Custom CSS / theme    */
/*   CSS box. It then applies to the /Insights page gadgets.           */
/* The Insights Custom HTML gadgets carry only markup; all styling      */
/* lives here. Tokens are self-contained so this works on its own.      */
/* =================================================================== */

:root {
  --sd-ink:#0E2236;
  --sd-ink-2:#1A2F49;
  --sd-paper:#F5EFE0;
  --sd-paper-2:#FAF7EC;
  --sd-card:#FFFFFF;
  --sd-oxblood:#7A1F2B;
  --sd-champagne:#E8C9A2;
  --sd-muted:#5C6776;
  --sd-muted-soft:#8B95A4;
  --sd-rule-soft:rgba(14,34,54,.14);
  --sd-serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --sd-sans:Inter,system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif;
  --sd-mono:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace;
}

/* Nuke WA chrome around the custom HTML + the blog gadget */
.WaGadgetCustomHTML,
.WaGadgetCustomHTML .gadgetStyleBody,
.WaGadgetCustomHTML .gadgetStyleNone,
.WaGadgetCustomHTML .boxBody,
.WaGadgetCustomHTML .boxBodyOuterContainer,
.WaGadgetCustomHTML .boxOuterContainer,
.WaGadgetRecentBlogPosts .gadgetStyleBody,
.WaGadgetRecentBlogPosts .gadgetStyleNone,
.WaGadgetRecentBlogPosts .boxBody,
.WaGadgetRecentBlogPosts .boxBodyOuterContainer,
.WaGadgetRecentBlogPosts .boxOuterContainer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.WaLayoutTable, .WaLayoutTable td, .WaLayoutTable tr,
.WaLayoutRow, .WaLayoutItem {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Editorial atoms (match About / Events) */
.sdwac-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sd-sans); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; color: var(--sd-oxblood); margin: 0 0 22px;
}
.sdwac-eyebrow__dot { width: 7px; height: 7px; background: var(--sd-oxblood); border-radius: 50%; display: inline-block; }
.sdwac-kicker {
  font-family: var(--sd-sans); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sd-oxblood); font-weight: 600; margin: 0 0 14px;
}
.sdwac-kicker--invert { color: var(--sd-champagne); }
.sdwac-btn, a.sdwac-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px;
  font-family: var(--sd-sans); font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  border: 1px solid transparent; border-radius: 0; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.sdwac-btn--primary { background: var(--sd-ink); color: var(--sd-paper-2); }
.sdwac-btn--primary:hover { background: var(--sd-oxblood); color: var(--sd-paper-2); }
.sdwac-btn--invert { background: var(--sd-paper-2); color: var(--sd-ink); }
.sdwac-btn--invert:hover { background: var(--sd-champagne); color: var(--sd-ink); }
.sdwac-btn--ghost-light { background: transparent; color: var(--sd-paper-2); border-color: rgba(245,239,224,.5); }
.sdwac-btn--ghost-light:hover { background: var(--sd-paper-2); color: var(--sd-ink); }
.sdwac-btn--large { padding: 17px 30px; font-size: 15px; }

/* Hero */
.sdwac-ins-hero { background: var(--sd-paper); border-bottom: 1px solid var(--sd-rule-soft); }
.sdwac-ins-hero__inner { max-width: 1240px; margin: 0 auto; padding: clamp(48px,6vw,88px) clamp(20px,5vw,72px) clamp(36px,4vw,56px); }
.sdwac-ins-hero h1 {
  font-family: var(--sd-serif); font-weight: 600; font-size: clamp(40px,5vw,68px);
  line-height: 1.04; letter-spacing: -0.015em; color: var(--sd-ink); margin: 0; max-width: 20ch;
}
.sdwac-ins-hero h1 em { font-style: italic; color: var(--sd-muted); }
.sdwac-ins-hero__deck { font-family: var(--sd-serif); font-size: clamp(18px,1.4vw,21px); line-height: 1.5; color: var(--sd-muted); max-width: 60ch; margin: 24px 0 0; }

/* Hand-picked featured card */
.sdwac-ins-feature { max-width: 1240px; margin: 0 auto; padding: clamp(40px,5vw,64px) clamp(20px,5vw,72px) clamp(32px,4vw,48px); }
.sdwac-ins-feature__card {
  border: 1px solid var(--sd-rule-soft); border-top: 3px solid var(--sd-oxblood);
  background: var(--sd-card); padding: clamp(32px,4vw,52px); display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sdwac-ins-feature__card:hover { transform: translateY(-3px); border-color: rgba(14,34,54,.28); box-shadow: 0 24px 40px -28px rgba(14,34,54,.35); }
.sdwac-ins-feature__cat { font-family: var(--sd-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sd-oxblood); font-weight: 700; margin: 0 0 18px; }
.sdwac-ins-feature__title { font-family: var(--sd-serif); font-size: clamp(28px,3vw,40px); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 16px; }
.sdwac-ins-feature__title a { color: var(--sd-ink); text-decoration: none; transition: color .15s ease; }
.sdwac-ins-feature__card:hover .sdwac-ins-feature__title a { color: var(--sd-oxblood); }
.sdwac-ins-feature__byline { font-family: var(--sd-serif); font-style: italic; font-size: 15px; color: var(--sd-ink-2); margin: 0 0 18px; }
.sdwac-ins-feature__excerpt { font-family: var(--sd-serif); font-size: 17px; line-height: 1.6; color: var(--sd-muted); margin: 0 0 26px; max-width: 70ch; }
.sdwac-ins-feature__cta { margin-top: auto; }

/* Recent head */
.sdwac-ins-head { max-width: 1240px; margin: 0 auto; padding: clamp(8px,1vw,16px) clamp(20px,5vw,72px) clamp(20px,2.5vw,32px); border-top: 1px solid var(--sd-rule-soft); }
.sdwac-ins-head h2 { font-family: var(--sd-serif); font-size: clamp(28px,3vw,42px); font-weight: 600; color: var(--sd-ink); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
.sdwac-ins-head p { font-family: var(--sd-serif); font-size: 18px; color: var(--sd-muted); max-width: 60ch; margin: 16px 0 0; line-height: 1.5; }

/* Recent Blog Posts gadget -> 3-up editorial card grid */
.WaGadgetRecentBlogPosts { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px,5vw,72px) clamp(56px,7vw,96px); }
.WaGadgetRecentBlogPosts ul,
.WaGadgetRecentBlogPosts .blogList,
.WaGadgetRecentBlogPosts .recentBlogPostsList {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,2.4vw,32px);
}
@media (max-width: 1000px) {
  .WaGadgetRecentBlogPosts ul,
  .WaGadgetRecentBlogPosts .blogList,
  .WaGadgetRecentBlogPosts .recentBlogPostsList { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .WaGadgetRecentBlogPosts ul,
  .WaGadgetRecentBlogPosts .blogList,
  .WaGadgetRecentBlogPosts .recentBlogPostsList { grid-template-columns: 1fr; }
}
.WaGadgetRecentBlogPosts li,
.WaGadgetRecentBlogPosts .blogPost,
.WaGadgetRecentBlogPosts .blogEntry {
  background: var(--sd-card); border: 1px solid var(--sd-rule-soft);
  padding: 28px 28px 32px; margin: 0; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.WaGadgetRecentBlogPosts li:hover,
.WaGadgetRecentBlogPosts .blogPost:hover,
.WaGadgetRecentBlogPosts .blogEntry:hover { transform: translateY(-3px); border-color: rgba(14,34,54,.28); box-shadow: 0 24px 40px -28px rgba(14,34,54,.35); }
.WaGadgetRecentBlogPosts .blogPostDate,
.WaGadgetRecentBlogPosts .blogEntryDate,
.WaGadgetRecentBlogPosts .blogPostAuthor {
  font-family: var(--sd-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sd-oxblood); font-weight: 700; margin: 0 0 12px; order: 1;
}
.WaGadgetRecentBlogPosts .blogTitle,
.WaGadgetRecentBlogPosts .blogPostTitle,
.WaGadgetRecentBlogPosts .blogEntryTitle {
  font-family: var(--sd-serif); font-size: 20px; font-weight: 600; line-height: 1.22;
  color: var(--sd-ink); margin: 0 0 14px; order: 2;
}
.WaGadgetRecentBlogPosts .blogTitle a,
.WaGadgetRecentBlogPosts .blogPostTitle a,
.WaGadgetRecentBlogPosts .blogEntryTitle a { color: inherit; text-decoration: none; transition: color .15s ease; }
.WaGadgetRecentBlogPosts li:hover .blogTitle a,
.WaGadgetRecentBlogPosts li:hover .blogPostTitle a,
.WaGadgetRecentBlogPosts li:hover .blogEntryTitle a { color: var(--sd-oxblood); }
.WaGadgetRecentBlogPosts .blogPostBody,
.WaGadgetRecentBlogPosts .blogEntryBody { font-family: var(--sd-serif); font-size: 14px; line-height: 1.55; color: var(--sd-muted); margin: 0; order: 3; }
.WaGadgetRecentBlogPosts .blogPostBody p,
.WaGadgetRecentBlogPosts .blogEntryBody p { margin: 0; }

/* Contribute CTA */
.sdwac-ins-contrib { background: var(--sd-ink); color: var(--sd-paper-2); }
.sdwac-ins-contrib__inner { max-width: 1240px; margin: 0 auto; padding: clamp(56px,7vw,96px) clamp(20px,5vw,72px); display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 36px; align-items: center; }
@media (max-width: 760px) { .sdwac-ins-contrib__inner { grid-template-columns: 1fr; } }
.sdwac-ins-contrib h2 { font-family: var(--sd-serif); font-size: clamp(28px,3vw,42px); font-weight: 600; line-height: 1.1; color: var(--sd-paper-2); margin: 0 0 18px; }
.sdwac-ins-contrib p { font-family: var(--sd-serif); font-size: 17px; line-height: 1.55; color: rgba(245,239,224,.78); margin: 0; max-width: 56ch; }
.sdwac-ins-contrib__cta { text-align: right; }
@media (max-width: 760px) { .sdwac-ins-contrib__cta { text-align: left; } }
