/* ===========================================================
   SFN Content Review Round 1 — shared component styles
   Scoped by .sfn-page so other pages are unaffected.
   Brand-matched to the existing Services landing cards:
     - Primary purple #4632DA, deep purple #2E1A6B
     - Heading font Varela Round, body 333/353535
     - Card shape: white, soft shadow, no heavy border
     - Icons: Font Awesome 5 (enqueued by the plugin via
       wp_enqueue_style; do NOT @import here because WP Customizer
       strips the @import).
   Added to Customizer Additional CSS by apply-content-review.php.
   =========================================================== */

/* Hide the theme's duplicate page-title header on any page that uses .sfn-page
   (the body has the sfn-page wrapper rendering its own <h1> inside .sfn-hero).
   :has() is widely supported in modern browsers; works on Chrome, Edge, Safari,
   Firefox 121+. Older browsers fall back to showing the theme h1 above — not
   broken, just less polished. */
body:has(.sfn-page) .page-header {
  display: none !important;
}

.sfn-page {
  --sfn-ink: #353535;
  --sfn-body: #333333;
  --sfn-muted: #5a5a5a;
  --sfn-soft: #7a7a7a;
  --sfn-line: #e6e8ee;
  --sfn-line-light: #f0f1f5;
  --sfn-accent: #4632DA;
  --sfn-accent-dark: #2E1A6B;
  --sfn-accent-soft: #EEEAFB;
  --sfn-cyan: #1FB7DD;
  --sfn-cyan-bright: #06D9FA;
  --sfn-cyan-soft: #C7F0FA;
  --sfn-bg-card: #ffffff;
  --sfn-bg-soft: #f6f7fb;
  --sfn-warm: #F0B73A;
  --sfn-warm-soft: #FFF7E8;
  --sfn-shadow: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.06);
  --sfn-shadow-hi: 0 1px 2px rgba(20,20,40,.06), 0 16px 40px rgba(20,20,40,.10);
  --sfn-radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sfn-body);
  line-height: 1.6;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.sfn-page * { box-sizing: border-box; }

.sfn-page h1, .sfn-page h2, .sfn-page h3, .sfn-page h4 {
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--sfn-ink);
  letter-spacing: 0;
}

.sfn-page h1 {
  font-size: 36px;
  margin: 0 0 12px;
  line-height: 1.2;
}

.sfn-page h2 {
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--sfn-ink);
  border-bottom: 0;
  padding-bottom: 0;
}

.sfn-page h3 {
  font-size: 18px;
  margin: 8px 0 4px;
  color: var(--sfn-accent);
}

.sfn-page p { margin: 0 0 12px; font-size: 16px; color: var(--sfn-body); }
.sfn-page p.sfn-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--sfn-muted);
  max-width: 820px;
  margin: 0 0 24px;
}
.sfn-page ul, .sfn-page ol { margin: 0 0 14px 0; padding-left: 22px; }
.sfn-page ul li, .sfn-page ol li { margin: 4px 0; font-size: 16px; color: var(--sfn-body); }
.sfn-page a { color: var(--sfn-accent); text-decoration: underline; }
.sfn-page a:hover { color: var(--sfn-accent-dark); }
.sfn-page strong { color: var(--sfn-ink); }

/* HERO BANNER — matches the live site's Elementor hero exactly:
   - Gradient: linear-gradient(130deg, #4632DA 0%, #06D9FA 89%)
   - White Varela Round centered title
   - Bottom shape divider using the same SVG wave path Elementor renders
   Breaks out of the .sfn-page max-width container to render full-width. */
.sfn-page .sfn-hero {
  position: relative;
  background: linear-gradient(130deg, var(--sfn-accent) 0%, var(--sfn-cyan-bright) 89%);
  color: #fff;
  text-align: center;
  padding: 72px 24px 96px;
  margin: 0 calc(50% - 50vw) 48px;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}
.sfn-page .sfn-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 68px;
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}
.sfn-page .sfn-hero p {
  font-size: 22px;
  color: #fff;
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.45;
  position: relative;
  z-index: 2;
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}
/* The exact wave shape divider Elementor uses on the live site.
   The SVG path's filled body sits at the top of its viewBox, so we flip
   vertically (scaleY(-1)) to put the white-fill at the bottom and have
   the purple hero curve downward into the white page beneath. */
.sfn-page .sfn-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%201000%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20d%3D%27M421.9%2C6.5c22.6-2.5%2C51.5%2C0.4%2C75.5%2C5.3c23.6%2C4.9%2C70.9%2C23.5%2C100.5%2C35.7c75.8%2C32.2%2C133.7%2C44.5%2C192.6%2C49.7c23.6%2C2.1%2C48.7%2C3.5%2C103.4-2.5c54.7-6%2C106.2-25.6%2C106.2-25.6V0H0v30.3c0%2C0%2C72%2C32.6%2C158.4%2C30.5c39.2-0.7%2C92.8-6.7%2C134-22.4c21.2-8.1%2C52.2-18.2%2C79.7-24.2C399.3%2C7.9%2C411.6%2C7.5%2C421.9%2C6.5z%27%2F%3E%3C%2Fsvg%3E");
  transform: scaleY(-1);
  pointer-events: none;
  z-index: 3;
}

/* Hero responsive */
@media (max-width: 720px) {
  .sfn-page .sfn-hero { padding: 48px 20px 72px; }
  .sfn-page .sfn-hero h1 { font-size: 40px; }
  .sfn-page .sfn-hero p { font-size: 17px; }
  .sfn-page .sfn-hero::after { height: 50px; }
}

/* PULLQUOTE */
.sfn-page .sfn-pullquote {
  font-size: 21px;
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  color: var(--sfn-accent-dark);
  border-left: 4px solid var(--sfn-accent);
  background: var(--sfn-accent-soft);
  padding: 18px 26px;
  margin: 28px 0;
  border-radius: 0 var(--sfn-radius) var(--sfn-radius) 0;
  line-height: 1.45;
}

/* CARD GRID — modeled on the Services landing icon-box layout */
.sfn-page .sfn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 18px 0 28px;
}

.sfn-page .sfn-card {
  background: var(--sfn-bg-card);
  border: 1px solid var(--sfn-line);
  border-radius: var(--sfn-radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--sfn-shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.sfn-page .sfn-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sfn-shadow-hi);
  border-color: #d8d9e5;
}

.sfn-page .sfn-card h3 {
  margin: 6px 0 0;
  color: var(--sfn-accent);
  font-size: 20px;
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.25;
}
.sfn-page .sfn-card p {
  font-size: 15px;
  color: var(--sfn-body);
  margin: 0;
  line-height: 1.55;
}
.sfn-page .sfn-card .sfn-meta {
  font-size: 13px;
  color: var(--sfn-muted);
  margin-top: 6px;
}

/* Numbered marker (large purple disc with white number) */
.sfn-page .sfn-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sfn-accent);
  color: white;
  font-size: 19px;
  font-weight: 700;
  font-family: "Varela Round", sans-serif;
  margin-bottom: 4px;
  box-shadow: 0 4px 12px rgba(70, 50, 218, .25);
}

/* Icon marker — Font Awesome icon sits inside a soft purple rounded square.
   Matches the icon-box treatment on the Services landing page. */
.sfn-page .sfn-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--sfn-accent-soft);
  color: var(--sfn-accent);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}
.sfn-page .sfn-icon i { color: var(--sfn-accent); }

/* CONTACT BLOCK */
.sfn-page .sfn-contact {
  background: var(--sfn-bg-soft);
  border: 1px solid var(--sfn-line);
  border-radius: var(--sfn-radius);
  padding: 24px 28px;
  margin: 32px 0 16px;
  box-shadow: var(--sfn-shadow);
}
.sfn-page .sfn-contact h2 {
  margin-top: 0;
  font-size: 20px;
  color: var(--sfn-accent-dark);
}
.sfn-page .sfn-contact p { font-size: 15px; margin: 0 0 8px; }
.sfn-page .sfn-contact p:last-child { margin-bottom: 0; }
.sfn-page .sfn-contact a { color: var(--sfn-accent); }

/* DOWNLOAD CARD */
.sfn-page .sfn-download {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--sfn-line);
  border-radius: var(--sfn-radius);
  padding: 18px 22px;
  background: var(--sfn-bg-card);
  margin: 14px 0;
  box-shadow: var(--sfn-shadow);
}
.sfn-page .sfn-download-doc {
  width: 56px; height: 64px;
  border: 1px solid var(--sfn-line);
  border-radius: 6px;
  background: var(--sfn-bg-soft);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--sfn-accent);
}
.sfn-page .sfn-download-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--sfn-ink);
  font-family: "Varela Round", sans-serif;
}
.sfn-page .sfn-download-desc {
  font-size: 14px;
  color: var(--sfn-muted);
  margin-top: 3px;
}
.sfn-page .sfn-download-btn {
  display: inline-block;
  background: var(--sfn-accent);
  color: white !important;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 15px;
  font-family: "Varela Round", sans-serif;
}
.sfn-page .sfn-download-btn:hover { background: var(--sfn-accent-dark); }

/* MAP EMBED */
.sfn-page .sfn-map {
  margin: 24px 0 8px;
  border-radius: var(--sfn-radius);
  overflow: hidden;
  box-shadow: var(--sfn-shadow);
  border: 1px solid var(--sfn-line);
  background: var(--sfn-bg-soft);
  line-height: 0;
}
.sfn-page .sfn-map iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* SIGN-OFF */
.sfn-page .sfn-signoff {
  text-align: right;
  font-family: "Varela Round", sans-serif;
  color: var(--sfn-accent-dark);
  font-size: 18px;
  margin: 28px 0 0;
}

/* INTERNAL NOTE (visible to editors, dim for public; remove before going live) */
.sfn-page .sfn-note {
  font-size: 13px;
  color: #8a6a1a;
  font-style: italic;
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--sfn-warm-soft);
  border-left: 3px solid var(--sfn-warm);
  border-radius: 0 6px 6px 0;
}

/* MOBILE */
@media (max-width: 720px) {
  .sfn-page { padding: 20px 16px 36px; }
  .sfn-page h1 { font-size: 28px; }
  .sfn-page h2 { font-size: 20px; }
  .sfn-page .sfn-hero { padding: 22px 20px; }
  .sfn-page .sfn-cards { grid-template-columns: 1fr; }
  .sfn-page .sfn-download {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sfn-page .sfn-download-doc { margin: 0 auto; }
}

/* ===========================================================
   SFN Round 2 — Members area (Unit A)
   Two states on /members/:
     1. Logged-out (MemberPress unauthorized): branded login card
        first, then the access / consent block (.sfn-page, styled
        by the Round 1 component CSS above).
     2. Logged-in (authorized): the .sfn-portal dashboard grid.
   Font Awesome 5 is enqueued by this same mu-plugin.
   =========================================================== */

/* Hide the theme's duplicate page title on the dashboard view
   (the .sfn-portal hero renders its own heading). The unauthorized
   view is already covered by body:has(.sfn-page) above. */
body:has(.sfn-portal) .page-header,
body:has(.sfn-access) .page-header { display: none !important; }

/* ---------- 1. Logged-out: login-led two-column access view ---------- */

/* The authored unauthorized message owns the layout. MemberPress's separate
   auto-rendered login form is disabled per rule (which still emits an empty
   wrapper); hide it so nothing orphans at the bottom. The real login form is
   the [mepr-login-form] shortcode embedded inside the login card below. */
/* MemberPress emits a sibling .mepr-login-form-wrap (a "Login" link, since the
   per-rule auto form is disabled) OUTSIDE .mepr-unauthorized-message. Scope by the
   page rather than the message so the sibling is caught too. The real form is the
   embedded [mepr-login-form] shortcode, which is not wrapped in this class. */
body:has(.mepr-unauthorized-message) .mepr-login-form-wrap { display: none !important; }

.mepr-unauthorized-message {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #353535;
}

.sfn-access { max-width: 1180px; margin: 0 auto; padding: 0 24px 56px; }

.sfn-access-hero {
  background: linear-gradient(130deg, #4632DA 0%, #06D9FA 89%);
  color: #fff; text-align: center;
  margin: 0 calc(50% - 50vw) 36px; width: 100vw; max-width: 100vw;
  padding: 48px 24px 52px;
}
.sfn-access-hero h1 {
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400; font-size: 52px; line-height: 1.1; margin: 0 0 10px; color: #fff;
}
.sfn-access-hero p { font-size: 19px; color: rgba(255,255,255,.95); margin: 0 auto; max-width: 640px; }

.sfn-access-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.sfn-access-left { min-width: 0; }

.sfn-access-left h2 { font-family: "Varela Round", sans-serif; font-size: 24px; color: #2E1A6B; margin: 4px 0 12px; }
.sfn-access-left > p { font-size: 16px; color: #333; margin: 0 0 18px; line-height: 1.6; }
.sfn-access-left > p a { color: #4632DA; }

/* Numbered steps: full-width block; each row is a flex line so the text block
   fills the row width (number fixed, text flex:1 min-width:0). */
.sfn-steps { list-style: none; margin: 0 0 22px; padding: 0; display: block; width: 100%; }
.sfn-steps li { display: flex; gap: 14px; align-items: flex-start; width: 100%; margin: 0 0 14px; }
.sfn-steps li:last-child { margin-bottom: 0; }
.sfn-step-num {
  flex: 0 0 36px;
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #4632DA; color: #fff; font-weight: 700; font-family: "Varela Round", sans-serif; font-size: 17px;
}
.sfn-steps li > div { flex: 1 1 auto; min-width: 0; }
.sfn-steps h3 { font-family: "Varela Round", sans-serif; font-size: 16px; color: #2E1A6B; margin: 4px 0 2px; }
.sfn-steps p { font-size: 14px; color: #5a5a5a; margin: 0; line-height: 1.5; }

/* Download card (the Round 1 download styles are scoped to .sfn-page; this view
   uses .sfn-access, so restore the same bordered card + doc icon + purple button). */
.sfn-access .sfn-download {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
  border: 1px solid #e6e8ee; border-radius: 14px; padding: 18px 22px; background: #fff; margin: 14px 0;
  box-shadow: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.06);
}
.sfn-access .sfn-download p { margin: 0; }
.sfn-access .sfn-download-doc {
  width: 56px; height: 64px; border: 1px solid #e6e8ee; border-radius: 6px; background: #f6f7fb;
  display: grid; place-items: center; font-size: 24px; color: #4632DA;
}
.sfn-access .sfn-download-title { font-weight: 700; font-size: 16px; color: #353535; font-family: "Varela Round", sans-serif; }
.sfn-access .sfn-download-desc { font-size: 14px; color: #5a5a5a; margin-top: 3px; }
.sfn-access .sfn-download-btn {
  display: inline-block; background: #4632DA; color: #fff !important; border-radius: 10px; padding: 10px 20px;
  font-weight: 600; text-decoration: none !important; white-space: nowrap; font-size: 15px; font-family: "Varela Round", sans-serif;
}
.sfn-access .sfn-download-btn:hover { background: #2E1A6B; }
@media (max-width: 560px) {
  .sfn-access .sfn-download { grid-template-columns: 1fr; text-align: center; }
  .sfn-access .sfn-download-doc { margin: 0 auto; }
}

/* Right column: sticky login card */
.sfn-access-right { position: sticky; top: 24px; }
.sfn-login-card {
  background: #fff; border: 1px solid #e6e8ee; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20,20,40,.06), 0 16px 40px rgba(20,20,40,.10);
  padding: 26px 26px 22px;
}
.sfn-login-title { font-family: "Varela Round", sans-serif; font-size: 22px; color: #2E1A6B; margin: 0 0 2px; }
.sfn-login-sub { font-size: 14px; color: #5a5a5a; margin: 0 0 18px; }
.sfn-login-note { font-size: 13px; color: #5a5a5a; margin: 14px 0 0; }

/* MemberPress form fields (rendered by the [mepr-login-form] shortcode) */
.mepr-form .mp-form-row { margin: 0 0 14px; }
.mepr-form .mp-form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #353535;
  margin: 0 0 6px;
}
.mepr-form .mp-form-row input[type="text"],
.mepr-form .mp-form-row input[type="email"],
.mepr-form .mp-form-row input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8d9e5;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 15px;
  color: #333;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.mepr-form .mp-form-row input:focus {
  outline: none;
  border-color: #4632DA;
  box-shadow: 0 0 0 3px rgba(70,50,218,.15);
}
.mepr-form .mepr-submit,
.mepr-form input[type="submit"] {
  width: 100%;
  background: #4632DA;
  color: #fff;
  border: 1px solid #4632DA;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background .15s;
}
.mepr-form .mepr-submit:hover,
.mepr-form input[type="submit"]:hover { background: #2E1A6B; }
.mepr-form .mepr_remember_me,
.mepr-form .mepr-remember-me { font-size: 14px; color: #5a5a5a; margin: 4px 0 0; }
.mepr-login-actions { margin-top: 14px; font-size: 14px; }
.mepr-login-actions a { color: #4632DA; text-decoration: none; }
.mepr-login-actions a:hover { text-decoration: underline; }

/* Stack to one column; login card moves to the top. */
@media (max-width: 860px) {
  .sfn-access-cols { grid-template-columns: 1fr; }
  .sfn-access-right { position: static; order: -1; margin-bottom: 8px; }
  .sfn-access-hero h1 { font-size: 38px; }
}

/* ---------- 2. Logged-in: the dashboard ---------- */

.sfn-portal {
  --c-deep:#2E1A6B; --c-mid:#4632DA; --c-cyan:#1FB7DD; --c-cyan-lt:#C7F0FA;
  --c-ink:#131525; --c-mute:#5A5F77; --c-line:#E6E8EE; --c-bg:#F6F7FB;
  --c-card:#FFFFFF; --c-warm:#F0B73A; --r:14px;
  --sh:0 1px 2px rgba(20,20,40,.05),0 8px 24px rgba(20,20,40,.06);
  --sh-hi:0 1px 2px rgba(20,20,40,.06),0 16px 40px rgba(20,20,40,.10);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--c-ink); line-height:1.55;
}
.sfn-portal * { box-sizing: border-box; }
.sfn-portal a { color: inherit; text-decoration: none; }

.sfn-portal-hero {
  background: linear-gradient(130deg, var(--c-mid) 0%, #06D9FA 89%);
  color: #fff;
  margin: 0 calc(50% - 50vw) 0;
  width: 100vw; max-width: 100vw;
  padding: 40px 28px 36px;
}
.sfn-portal-hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
}
.sfn-crumbs { color: rgba(255,255,255,.85); font-size: 13px; }
.sfn-crumbs a { color: rgba(255,255,255,.85); }
.sfn-crumbs .sep { margin: 0 8px; opacity: .7; }
.sfn-greet {
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 38px; font-weight: 400; line-height: 1.15; margin: 10px 0 6px; color: #fff;
}
.sfn-greet em { font-style: normal; color: #fff; }
.sfn-sublead { color: rgba(255,255,255,.92); font-size: 16px; max-width: 720px; margin: 0; }
.sfn-sublead + .sfn-sublead { margin-top: 10px; }
.sfn-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; white-space: nowrap;
}
.sfn-dot { width: 8px; height: 8px; border-radius: 50%; background: #18C28A; }

.sfn-portal-body { max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; background: var(--c-bg); }
.sfn-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 4px 0 16px; }
.sfn-h-row.sfn-mt { margin-top: 34px; }
.sfn-h2 { font-family: "Varela Round", sans-serif; font-size: 19px; font-weight: 400; margin: 0; color: var(--c-ink); }
.sfn-h2 .count { color: var(--c-mute); margin-left: 6px; font-size: 14px; }
.sfn-viewall { font-size: 13px; color: var(--c-mid); }
.sfn-viewall:hover { text-decoration: underline; }

.sfn-portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.sfn-pcard {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--sh); position: relative;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sfn-pcard:hover { transform: translateY(-2px); box-shadow: var(--sh-hi); border-color: #D8D9E5; }
.sfn-picon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-cyan-lt); color: var(--c-deep); font-size: 22px;
}
.sfn-picon i { color: var(--c-deep); }
.sfn-pttl { font-family: "Varela Round", sans-serif; font-size: 17px; color: var(--c-ink); margin: 2px 0 0; }
.sfn-pdesc { color: var(--c-mute); font-size: 14px; margin: 0; }
.sfn-pmeta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.sfn-tag { background: var(--c-cyan-lt); color: var(--c-deep); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.sfn-tag.muted { background: #F0F1F5; color: var(--c-mute); }
.sfn-open { display: inline-flex; align-items: center; gap: 6px; color: var(--c-mid); font-weight: 600; font-size: 14px; margin-left: auto; }
.sfn-open i { font-size: 12px; }
.sfn-pill {
  position: absolute; top: 16px; right: 16px;
  background: #FFE9C2; color: #7A4A00; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
}

.sfn-recent { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.sfn-recent-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--c-line); align-items: center; }
.sfn-recent-row:first-of-type { border-top: 0; }
.sfn-recent-row:hover { background: #FAFBFE; }
.sfn-recent-date { color: var(--c-mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.sfn-recent-ttl { font-weight: 500; color: var(--c-ink); }
.sfn-recent-sec { color: var(--c-mid); background: #EEEAFB; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }

.sfn-help {
  background: linear-gradient(120deg, #F6F7FB, #E8F6FB); border: 1px solid var(--c-line);
  border-radius: var(--r); padding: 24px; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap;
}
.sfn-help h3 { font-family: "Varela Round", sans-serif; margin: 0; font-size: 17px; color: var(--c-ink); }
.sfn-help p { margin: 4px 0 0; color: var(--c-mute); font-size: 14px; }
.sfn-help-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sfn-btn { border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); }
.sfn-btn.primary { background: var(--c-mid); color: #fff; border-color: var(--c-mid); }
.sfn-btn:hover { border-color: #C9C9DA; }
.sfn-btn.primary:hover { background: var(--c-deep); border-color: var(--c-deep); }

@media (max-width: 720px) {
  .sfn-portal-hero-inner { grid-template-columns: 1fr; align-items: start; }
  .sfn-greet { font-size: 28px; }
  .sfn-recent-row { grid-template-columns: 1fr; gap: 4px; }
  .sfn-help { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================
   SFN Round 2 — News archive (Unit C)
   Polishes the Elementor "Posts Archive" template (cards skin) on the
   blog/News page. Scoped to body.blog so other archives are untouched.
   "News" title comes from the sfn-news mu-plugin (dynamic archive title).
   =========================================================== */
body.blog .elementor-post__title a { color: #2E1A6B; }

/* Card shell: brand border, shadow, hover lift */
body.blog .elementor-post__card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.06);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  overflow: hidden;
  height: 100%;
}
body.blog .elementor-post__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(20,20,40,.06), 0 16px 40px rgba(20,20,40,.10);
  border-color: #d8d9e5;
}

/* Date above the title */
body.blog .elementor-post__meta-data {
  order: -1;
  margin: 0;
  padding: 18px 22px 0;
  border: 0;
  color: #8a8fa3;
  font-size: 13px;
}
body.blog .elementor-post-date { color: #8a8fa3; }

body.blog .elementor-post__text { order: 0; padding: 6px 22px 20px; }
body.blog .elementor-post__title {
  margin: 4px 0 8px;
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.3;
}
body.blog .elementor-post__title a:hover { color: #4632DA; }
body.blog .elementor-post__excerpt p {
  color: #5a5a5a;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
}

/* Read more: brand purple link (override the widget's green) */
body.blog .elementor-post__read-more {
  display: inline-block;
  margin-top: auto;
  color: #4632DA !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
body.blog .elementor-post__read-more:hover { color: #2E1A6B !important; text-decoration: underline; }

/* Pagination spacing */
body.blog .elementor-pagination { margin-top: 8px; }

/* ===========================================================
   SFN Round 2 — Single post (Unit C)
   Subtitle in sentence case (not Title Case) and the .sfn-address
   accent recolored from the Customizer's teal (#2a5d4f) to brand
   purple. Overrides the Customizer/global from here (no Customizer
   edit), and does NOT touch the verbatim post content (the teal was
   external CSS, not inline). The inline-SVG preview keeps its own
   colors. Scoped to single posts.
   =========================================================== */
body.single .elementor-widget-theme-post-excerpt,
body.single .elementor-widget-theme-post-excerpt * { text-transform: none !important; }

body.single .sfn-address .hero { border-left-color: #4632DA !important; }
body.single .sfn-address .hero-label { color: #4632DA !important; }
body.single .sfn-address .pullquote { border-left-color: #4632DA !important; }
body.single .sfn-address .commitment .num { background: #4632DA !important; }
body.single .sfn-address .card-cta { background: #4632DA !important; }
body.single .sfn-address .card-cta:hover { background: #2E1A6B !important; }
body.single .sfn-address .related a { color: #4632DA !important; }
body.single .sfn-address .signoff .miigwetch { color: #4632DA !important; }

/* ===========================================================
   SFN Round 2 — Events (Unit D)
   Brands The Events Calendar v2 views (list / month / day + top bar,
   search, view selector) and the single-event chrome to the site card
   aesthetic. Targeted .tribe-* overrides; no Customizer, no template
   builder. !important on brand colors to win over TEC's specific CSS.
   =========================================================== */

/* shared: links, buttons, search */
.tribe-events .tribe-common-c-btn,
.tribe-events button.tribe-common-c-btn,
.tribe-events .tribe-events-c-search__button {
  background-color: #4632DA !important; border-color: #4632DA !important; color: #fff !important;
}
.tribe-events .tribe-common-c-btn:hover,
.tribe-events .tribe-events-c-search__button:hover { background-color: #2E1A6B !important; border-color: #2E1A6B !important; }
.tribe-events .tribe-common-anchor,
.tribe-events a.tribe-common-anchor-thin { color: #4632DA; }
.tribe-events .tribe-events-c-search__input-control:focus { border-color: #4632DA !important; box-shadow: 0 0 0 2px rgba(70,50,218,.15) !important; }

/* view selector (List / Month / Day) + top-bar nav */
.tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
.tribe-events .tribe-events-c-view-selector__list-item-link:hover,
.tribe-events .tribe-events-c-top-bar__nav-link:hover,
.tribe-events .tribe-events-c-top-bar__today-button:hover { color: #4632DA !important; }
.tribe-events .tribe-events-c-top-bar__datepicker-button { color: #2E1A6B; }

/* LIST view: branded cards */
.tribe-events .tribe-events-calendar-list__event-row { border: 0; margin-bottom: 18px; }
.tribe-events .tribe-events-calendar-list__event-wrapper {
  background: #fff; border: 1px solid #e6e8ee; border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.06);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tribe-events .tribe-events-calendar-list__event-wrapper:hover {
  transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,20,40,.06), 0 16px 40px rgba(20,20,40,.10); border-color: #d8d9e5;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum { color: #4632DA !important; }
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday { color: #5a5a5a; }
.tribe-events .tribe-events-calendar-list__event-title-link { color: #2E1A6B !important; }
.tribe-events .tribe-events-calendar-list__event-title-link:hover { color: #4632DA !important; }
.tribe-events .tribe-events-calendar-list__month-separator-text { color: #2E1A6B; font-family: "Varela Round", sans-serif; }

/* MONTH view */
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum {
  background: #4632DA !important; color: #fff !important; border-radius: 50%; padding: 2px 8px;
}
.tribe-events .tribe-events-calendar-month__calendar-event-title-link { color: #2E1A6B !important; }
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover { color: #4632DA !important; }
.tribe-events .tribe-events-calendar-month__calendar-event-datetime { color: #4632DA; }
.tribe-events .tribe-events-calendar-month__day-cell--selected { background-color: #EEEAFB !important; }

/* DAY view (mirrors list markup) */
.tribe-events .tribe-events-calendar-day__event-wrapper {
  background: #fff; border: 1px solid #e6e8ee; border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.06);
}
.tribe-events .tribe-events-calendar-day__event-title-link { color: #2E1A6B !important; }
.tribe-events .tribe-events-calendar-day__event-title-link:hover { color: #4632DA !important; }

/* SINGLE event chrome */
.single-tribe_events .tribe-events-single-event-title { font-family: "Varela Round", sans-serif; color: #2E1A6B; }
.single-tribe_events .tribe-events-schedule h2 { color: #4632DA; }
.single-tribe_events .tribe-events-back a,
.single-tribe_events .tribe-events-cal-links a { color: #4632DA !important; }
.single-tribe_events #tribe-events-content,
.single-tribe_events .tribe-events-single { max-width: 1100px; margin-left: auto; margin-right: auto; }
.single-tribe_events .tribe-events-event-meta { background: #f6f7fb; border-color: #e6e8ee; }

/* extend the .sfn-address teal->purple overrides to single events (e.g. 1579) */
body.single-tribe_events .sfn-address .hero { border-left-color: #4632DA !important; }
body.single-tribe_events .sfn-address .hero-label { color: #4632DA !important; }
body.single-tribe_events .sfn-address .pullquote { border-left-color: #4632DA !important; }
body.single-tribe_events .sfn-address .commitment .num { background: #4632DA !important; }
body.single-tribe_events .sfn-address .card-cta { background: #4632DA !important; }
body.single-tribe_events .sfn-address .card-cta:hover { background: #2E1A6B !important; }
body.single-tribe_events .sfn-address .related a { color: #4632DA !important; }
body.single-tribe_events .sfn-address .signoff .miigwetch { color: #4632DA !important; }

/* ===========================================================
   SFN Round 2 — Events Hub (Unit D, [sfn_events_hub])
   Curated events landing built on .sfn-page. Self-contained colors.
   =========================================================== */
.sfn-events-hub .sfn-eh-section { margin: 8px 0 30px; }
.sfn-events-hub .sfn-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.sfn-events-hub .sfn-eh-h2 { font-family: "Varela Round", sans-serif; font-size: 22px; color: #2E1A6B; margin: 0; }
.sfn-events-hub .sfn-eh-link { font-size: 14px; color: #4632DA; font-weight: 600; white-space: nowrap; text-decoration: none; }
.sfn-events-hub .sfn-eh-link:hover { text-decoration: underline; }

/* Coming up: featured cards */
.sfn-events-hub .sfn-eh-featured { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sfn-events-hub .sfn-eh-featured--1 { grid-template-columns: 1fr; }
.sfn-events-hub .sfn-eh-feat {
  display: block; background: linear-gradient(120deg, #F6F7FB, #EEEAFB);
  border: 1px solid #e6e8ee; border-left: 4px solid #4632DA; border-radius: 14px;
  padding: 24px 26px; box-shadow: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.06);
  transition: transform .15s, box-shadow .15s; text-decoration: none;
}
.sfn-events-hub .sfn-eh-feat:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,20,40,.06), 0 16px 40px rgba(20,20,40,.10); }
.sfn-events-hub .sfn-eh-feat-tag { display: inline-block; background: #4632DA; color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.sfn-events-hub .sfn-eh-feat-title { font-family: "Varela Round", sans-serif; font-size: 21px; color: #2E1A6B; margin: 12px 0 6px; line-height: 1.25; }
.sfn-events-hub .sfn-eh-feat-venue { font-size: 14px; color: #5a5a5a; margin-bottom: 8px; }
.sfn-events-hub .sfn-eh-feat-venue i { color: #4632DA; }
.sfn-events-hub .sfn-eh-feat-desc { font-size: 15px; color: #444; margin: 0 0 14px; line-height: 1.55; }
.sfn-events-hub .sfn-eh-feat-cta { color: #4632DA; font-weight: 600; font-size: 15px; }

/* Empty state */
.sfn-events-hub .sfn-eh-empty { display: flex; gap: 16px; align-items: center; background: #F6F7FB; border: 1px dashed #cfd2e0; border-radius: 14px; padding: 24px 26px; }
.sfn-events-hub .sfn-eh-empty-icon { font-size: 28px; color: #4632DA; }
.sfn-events-hub .sfn-eh-empty strong { display: block; color: #2E1A6B; font-size: 17px; font-family: "Varela Round", sans-serif; }
.sfn-events-hub .sfn-eh-empty span { color: #5a5a5a; font-size: 14px; }

/* Calendar CTA buttons */
.sfn-events-hub .sfn-eh-calcta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 40px; }
.sfn-events-hub .sfn-btn { display: inline-block; border-radius: 10px; padding: 11px 20px; font-size: 15px; font-weight: 600; border: 1px solid #e6e8ee; background: #fff; color: #2E1A6B; text-decoration: none; font-family: "Varela Round", sans-serif; }
.sfn-events-hub .sfn-btn.primary { background: #4632DA; color: #fff; border-color: #4632DA; }
.sfn-events-hub .sfn-btn:hover { border-color: #c9c9da; }
.sfn-events-hub .sfn-btn.primary:hover { background: #2E1A6B; border-color: #2E1A6B; }

/* Recent events grid */
.sfn-events-hub .sfn-eh-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sfn-events-hub .sfn-eh-past { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e8ee; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.06); transition: transform .15s, box-shadow .15s, border-color .15s; text-decoration: none; }
.sfn-events-hub .sfn-eh-past:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,20,40,.06), 0 16px 40px rgba(20,20,40,.10); border-color: #d8d9e5; }
.sfn-events-hub .sfn-eh-thumb { aspect-ratio: 16 / 9; background: #EEEAFB; display: block; overflow: hidden; }
.sfn-events-hub .sfn-eh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sfn-events-hub .sfn-eh-thumb--ph { display: grid; place-items: center; background: linear-gradient(130deg, #4632DA, #06D9FA); color: #fff; font-size: 34px; }
.sfn-events-hub .sfn-eh-past-body { padding: 14px 18px 18px; }
.sfn-events-hub .sfn-eh-past-date { font-size: 13px; color: #8a8fa3; }
.sfn-events-hub .sfn-eh-past-title { font-family: "Varela Round", sans-serif; font-size: 16px; color: #2E1A6B; margin: 4px 0 0; line-height: 1.3; }

@media (max-width: 600px) { .sfn-events-hub .sfn-eh-empty { flex-direction: column; align-items: flex-start; } }

/* ===========================================================
   SFN Round 2 — Single-post body polish (CSS only)
   Vertical rhythm + framed letter caption for the verbatim migrated
   notice posts (e.g. 1616). Direct-child scoping leaves the
   self-contained .sfn-address component (1619) untouched. No content
   is changed. Scoped to single posts (body.single-post).
   =========================================================== */
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > p { margin: 0 0 1.15em; line-height: 1.65; }
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > ul,
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > ol { margin: .2em 0 1.4em; padding-left: 1.5em; }
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > ul > li,
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > ol > li { margin: 0 0 .45em; line-height: 1.6; }
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > h1,
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > h2,
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > h3,
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > h4 {
  margin: 1.6em 0 .5em; line-height: 1.3; color: #2E1A6B; font-family: "Varela Round", sans-serif;
}
.single-post .elementor-widget-theme-post-content > .elementor-widget-container > *:first-child { margin-top: 0; }
.single-post .elementor-widget-theme-post-content a { color: #4632DA; }

/* Embedded letter image + caption (WordPress [caption] -> figure.wp-caption) */
.single-post .elementor-widget-theme-post-content .wp-caption {
  width: -moz-fit-content !important; width: fit-content !important; max-width: 360px;
  background: #fff; border: 1px solid #e6e8ee; border-radius: 12px; padding: 12px;
  box-shadow: 0 1px 2px rgba(20,20,40,.05), 0 8px 24px rgba(20,20,40,.06);
  margin: 1.6em 0;
}
.single-post .elementor-widget-theme-post-content .wp-caption img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.single-post .elementor-widget-theme-post-content .wp-caption-text {
  margin: 10px 4px 2px; padding: 0; font-size: 13px; font-style: italic; color: #5a5a5a; text-align: center; line-height: 1.45;
}
/* If a caption image is linked (e.g. to a PDF), give it a subtle hover. Markup unchanged. */
.single-post .elementor-widget-theme-post-content .wp-caption a:hover img { opacity: .92; transition: opacity .15s; }
