/* =========================================================================
   wfd-theme-v2-critical.css — Above-fold critical CSS (v2.5.2)
   Loaded synchronously in <head>. Covers tokens, masthead, hero,
   sections, buttons, cards, badges, footer, and WP-integration bridges.
   Page-specific patterns (lesson, calculator, question-bank, dashboard,
   certificates, profile, sales-page chapter list) live in
   wfd-theme-v2-deferred.css (async).
   ========================================================================= */
/* =========================================================================
   WFD Academy — shared design system for Wave 1 mockups
   Source: WFD_IFRS17_Course.html (the bundle) + skills/wfd-brand-kit
   Tokens locked to BLACK + gold (v1.0, 2026-05-10)
   ========================================================================= */

:root {
  /* WFD v1.0 canonical brand tokens */
  --wfd-black:      #0A0A0A;
  --wfd-stone-900:  #2A251E;
  --wfd-stone-600:  #73685A;
  --wfd-stone-300:  #C8C0AE;
  --wfd-stone-100:  #EFEAE0;
  --wfd-cream:      #F8F5EE;
  --wfd-white:      #FFFFFF;
  --wfd-gold:       #C5A572;
  --wfd-gold-deep:  #6F5418;
  --wfd-gold-tint:  #F4EAD1;
  --wfd-coral-tint: #FBEEDD;
  --wfd-coral-deep: #9A3B00;

  /* Legacy aliases (bundle continuity) */
  --navy:        var(--wfd-black);
  --navy-2:      var(--wfd-stone-900);
  --navy-3:      var(--wfd-stone-600);
  --navy-deep:   var(--wfd-black);
  --gold:        var(--wfd-gold);
  --gold-2:      var(--wfd-gold-deep);
  --gold-soft:   var(--wfd-gold-tint);

  /* Neutrals */
  --bg:          var(--wfd-cream);
  --bg-elev:     var(--wfd-white);
  --card:        var(--wfd-white);
  --text:        var(--wfd-black);
  --text-2:      var(--wfd-stone-900);
  --muted:       var(--wfd-stone-600);
  --border:      var(--wfd-stone-100);
  --border-strong: var(--wfd-stone-300);

  /* Semantic */
  --good:        #2e7d4f;
  --good-soft:   #e8f2eb;
  --bad:         var(--wfd-coral-deep);
  --bad-soft:    var(--wfd-coral-tint);
  --info:        var(--wfd-gold-deep);
  --info-soft:   var(--wfd-gold-tint);
  --warn:        var(--wfd-coral-deep);
  --warn-soft:   var(--wfd-coral-tint);
  --highlight:   var(--wfd-gold-tint);

  /* Layout */
  --content-max: 1180px;
  --content-narrow: 880px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.06);
  --shadow: 0 6px 18px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 14px 40px rgba(10, 10, 10, 0.18);

  /* Typography (locked WFD pair) */
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "EB Garamond", "Charter", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

/* =========================================================================
   Reset
   ========================================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--text-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================================
   Masthead (sticky, dark, no gap below into hero)
   ========================================================================= */
.wfd-masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--wfd-black);
  color: var(--wfd-cream);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wfd-masthead-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wfd-masthead-brand {
  display: flex;
  align-items: center;
  color: var(--wfd-cream);
  font-family: var(--font-sans);
  line-height: 0;
}
.wfd-masthead-brand:hover { text-decoration: none; }
.wfd-masthead-brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 768px) {
  .wfd-masthead-brand img { height: 40px; }
}
.wfd-masthead-nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.wfd-masthead-nav a {
  color: rgba(255,255,255,0.78);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}
.wfd-masthead-nav a:hover { color: var(--wfd-cream); background: rgba(255,255,255,0.06); text-decoration: none; }
.wfd-masthead-nav a.is-active { color: var(--wfd-cream); position: relative; }
.wfd-masthead-nav a.is-active::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--gold);
  position: absolute; left: 14px; bottom: 2px;
}
.wfd-masthead-cta {
  margin-left: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--gold);
  color: var(--wfd-black);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}
.wfd-masthead-cta:hover { background: var(--wfd-cream); text-decoration: none; color: var(--wfd-black); }

.wfd-user-menu { position: relative; margin-left: 8px; }
.wfd-user-menu .um-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,0.06);
  color: var(--wfd-cream);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
}
.wfd-user-menu .um-btn:hover { background: rgba(255,255,255,0.12); }
.wfd-user-menu .um-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--wfd-black);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
}
.wfd-user-menu .um-chev { opacity: 0.7; font-size: 11px; }
.wfd-user-menu .um-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--wfd-white);
  color: var(--wfd-black);
  min-width: 220px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
}
.wfd-user-menu.is-open .um-panel { display: block; }
.wfd-user-menu .um-panel a {
  display: block;
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  border-radius: 6px;
}
.wfd-user-menu .um-panel a:hover { background: var(--bg); text-decoration: none; }
.wfd-user-menu .um-panel .um-divider { height: 1px; background: var(--border); margin: 6px 4px; }

/* =========================================================================
   Hero (flush against masthead — both dark, NO cream gap)
   ========================================================================= */
.wfd-hero {
  background: var(--wfd-black);
  color: var(--wfd-cream);
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 72px 32px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wfd-hero::before {
  content: ""; position: absolute; top: -160px; right: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(197,165,114,0.22), transparent 70%);
  pointer-events: none;
}
.wfd-hero::after {
  content: ""; position: absolute; bottom: -120px; left: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(197,165,114,0.10), transparent 70%);
  pointer-events: none;
}
.wfd-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.wfd-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.wfd-hero h1 {
  font-family: var(--font-serif);
  color: var(--wfd-cream);
  font-size: 52px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.8px;
  line-height: 1.08;
  max-width: 820px;
}
.wfd-hero .subtitle {
  font-family: var(--font-serif);
  font-size: 21px;
  color: rgba(255,255,255,0.84);
  margin: 0 0 30px;
  max-width: 680px;
  line-height: 1.5;
}
.wfd-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wfd-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 760px;
}
.wfd-hero-stat .num { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.wfd-hero-stat .lbl { font-size: 11.5px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-top: 6px; }

.wfd-hero-progress { margin-top: 32px; max-width: 540px; }
.wfd-hero-progress .lbl {
  display: flex; justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 12px; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700;
  margin-bottom: 8px;
}
.wfd-hero-progress .bar {
  height: 8px; background: rgba(255,255,255,0.1);
  border-radius: 999px; overflow: hidden;
}
.wfd-hero-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 999px;
}

@media (max-width: 768px) {
  .wfd-hero { padding: 48px 22px 56px; }
  .wfd-hero h1 { font-size: 34px; }
  .wfd-hero .subtitle { font-size: 17px; }
  .wfd-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Sections + containers
   ========================================================================= */
.wfd-container { max-width: var(--content-max); margin: 0 auto; padding: 0 32px; }
.wfd-container.narrow { max-width: var(--content-narrow); }
.wfd-section { padding: 72px 0; }
.wfd-section.pad-sm { padding: 40px 0; }
.wfd-section.alt { background: var(--wfd-stone-100); }
.wfd-section.dark { background: var(--wfd-black); color: var(--wfd-cream); }
.wfd-section.dark h2, .wfd-section.dark h3 { color: var(--wfd-cream); }
.wfd-section h2 {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 700;
  color: var(--text); margin: 0 0 12px;
  letter-spacing: -0.4px; line-height: 1.15;
}
.wfd-section .section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--gold-2);
  font-weight: 700;
  margin-bottom: 10px;
}
.wfd-section.dark .section-eyebrow { color: var(--gold); }
.wfd-section .section-lead {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text-2);
  margin: 6px 0 36px;
  max-width: 680px;
  line-height: 1.55;
}
.wfd-section.dark .section-lead { color: rgba(255,255,255,0.78); }

/* =========================================================================
   Buttons
   ========================================================================= */
.wfd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--wfd-black);
  color: var(--wfd-cream);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.2px;
}
.wfd-btn:hover { background: var(--wfd-stone-900); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; color: var(--wfd-cream); }
.wfd-btn.gold { background: var(--gold); color: var(--wfd-black); }
.wfd-btn.gold:hover { background: var(--gold-2); color: var(--wfd-cream); }
.wfd-btn.ghost {
  background: transparent;
  color: var(--wfd-black);
  border: 1.5px solid var(--border-strong);
  box-shadow: none;
}
.wfd-btn.ghost:hover { background: var(--bg); border-color: var(--wfd-black); color: var(--wfd-black); }
.wfd-hero .wfd-btn.ghost, .wfd-section.dark .wfd-btn.ghost {
  color: var(--wfd-cream);
  border-color: rgba(255,255,255,0.32);
}
.wfd-hero .wfd-btn.ghost:hover, .wfd-section.dark .wfd-btn.ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  color: var(--wfd-cream);
}
.wfd-btn.large { padding: 15px 28px; font-size: 16px; }
.wfd-btn.block { width: 100%; justify-content: center; }
.wfd-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* =========================================================================
   Cards (course / value prop / generic)
   ========================================================================= */
.wfd-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.wfd-card.gold-rule { border-left: 4px solid var(--gold); }
.wfd-card.elevate:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wfd-card .card-eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--gold-2);
  font-weight: 800;
  margin-bottom: 8px;
}
.wfd-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.wfd-card p {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 12px;
}

.wfd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.wfd-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wfd-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wfd-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .wfd-grid.cols-3, .wfd-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wfd-grid.cols-2, .wfd-grid.cols-3, .wfd-grid.cols-4 { grid-template-columns: 1fr; } }

/* Course card */
.wfd-course-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.wfd-course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wfd-course-card.coming-soon { opacity: 0.94; }
.wfd-course-card .cc-banner {
  background: linear-gradient(135deg, var(--wfd-black), var(--wfd-stone-900));
  color: var(--wfd-cream);
  padding: 24px 24px 22px;
  border-bottom: 3px solid var(--gold);
}
.wfd-course-card.coming-soon .cc-banner {
  background: linear-gradient(135deg, var(--wfd-stone-600), var(--wfd-stone-900));
  border-bottom-color: var(--wfd-stone-300);
}
.wfd-course-card .cc-eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 6px;
}
.wfd-course-card.coming-soon .cc-eyebrow { color: var(--wfd-stone-300); }
.wfd-course-card .cc-title {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700;
  color: var(--wfd-cream);
  margin: 0; letter-spacing: -0.3px; line-height: 1.15;
}
.wfd-course-card .cc-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 14px; flex: 1;
}
.wfd-course-card .cc-summary {
  font-family: var(--font-sans);
  font-size: 14.5px; color: var(--text-2);
  line-height: 1.55; margin: 0;
}
.wfd-course-card .cc-meta {
  display: flex; gap: 18px;
  font-family: var(--font-sans);
  font-size: 12.5px; color: var(--muted);
  padding-top: 12px; border-top: 1px solid var(--border);
}
.wfd-course-card .cc-meta strong { color: var(--text); font-weight: 700; }
.wfd-course-card .cc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto;
}
.wfd-course-card .cc-price {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700; color: var(--text);
}
.wfd-course-card .cc-price small {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600; color: var(--muted);
  margin-left: 4px; letter-spacing: 0.2px;
}

/* Value prop card */
.wfd-value {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.wfd-value .v-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--wfd-black);
  border-radius: 8px;
  font-weight: 800;
  font-family: var(--font-sans);
  font-size: 18px;
  margin-bottom: 14px;
}
.wfd-value h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.wfd-value p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================================
   Badges + pills + progress bar (light surface)
   ========================================================================= */
.wfd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--muted);
}
.wfd-badge.gold { background: var(--gold-soft); color: var(--gold-2); }
.wfd-badge.dark { background: var(--wfd-black); color: var(--wfd-cream); }
.wfd-badge.good { background: var(--good-soft); color: var(--good); }
.wfd-badge.bad { background: var(--bad-soft); color: var(--bad); }
.wfd-badge.live { background: var(--good-soft); color: var(--good); }
.wfd-badge.soon { background: var(--wfd-stone-100); color: #6a5e4d; }

.wfd-progress {
  width: 100%; height: 8px;
  background: var(--wfd-stone-100);
  border-radius: 999px; overflow: hidden;
}
.wfd-progress > .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 999px;
}
.wfd-progress.dark { background: rgba(255,255,255,0.12); }

.wfd-progress-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 12px; color: var(--muted);
  margin-top: 6px;
}

/* Callouts (from bundle) */
.wfd-callout {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--info-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 15.5px;
}
.wfd-callout.tip { background: var(--good-soft); border-left-color: var(--good); }
.wfd-callout.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.wfd-callout strong { color: var(--text); }

.wfd-blockquote {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--info-soft);
  border-left: 4px solid var(--info);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-2);
}

/* Tables */
.wfd-table-wrap { overflow-x: auto; }
.wfd-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.wfd-table thead { background: var(--wfd-black); color: var(--wfd-cream); }
.wfd-table th { text-align: left; padding: 12px 16px; font-weight: 600; font-size: 13px; letter-spacing: 0.2px; }
.wfd-table th.num, .wfd-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.wfd-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.wfd-table tbody tr:last-child td { border-bottom: none; }
.wfd-table tbody tr:nth-child(even) td { background: var(--wfd-stone-100); }

/* Tabs */
.wfd-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 24px;
  overflow-x: auto;
}
.wfd-tabs a, .wfd-tabs button {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.2px;
  background: none;
}
.wfd-tabs a:hover, .wfd-tabs button:hover { color: var(--text); text-decoration: none; }
.wfd-tabs a.is-active, .wfd-tabs button.is-active {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* =========================================================================
   Footer
   ========================================================================= */
.wfd-footer {
  background: var(--wfd-black);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 24px;
  margin-top: auto;
}
.wfd-footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) { .wfd-footer-grid { grid-template-columns: 1fr 1fr; } }
.wfd-footer-brand { display: flex; flex-direction: column; gap: 14px; }
.wfd-footer-brand .fb-mark { display: flex; align-items: center; }
.wfd-footer-brand .fb-mark img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}
.wfd-footer-brand p {
  font-family: var(--font-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.55;
  max-width: 360px;
}
.wfd-academy .wfd-footer-col h3,
.wfd-academy .wfd-footer-col h4,
.wfd-footer-col h3,
.wfd-footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--gold) !important;
  font-weight: 700;
  margin: 0 0 14px;
}
.wfd-footer-col ul { list-style: none; padding: 0; margin: 0; }
.wfd-footer-col li { margin: 8px 0; }
.wfd-footer-col a {
  color: rgba(255,255,255,0.72);
  font-family: var(--font-sans);
  font-size: 14px;
}
.wfd-footer-col a:hover { color: var(--wfd-cream); text-decoration: none; }
.wfd-footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: rgba(255,255,255,0.78);
}

/* Forms */
.wfd-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wfd-field label {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.wfd-field input[type="text"], .wfd-field input[type="email"],
.wfd-field input[type="number"], .wfd-field input[type="password"],
.wfd-field select, .wfd-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--wfd-white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
}
.wfd-field input:focus, .wfd-field select:focus, .wfd-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.wfd-field .hint { font-size: 12px; color: var(--muted); }

/* Wayne block */
.wfd-wayne {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px; align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--gold);
}
@media (max-width: 700px) { .wfd-wayne { grid-template-columns: 1fr; } }
.wfd-wayne .portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--wfd-stone-900), var(--wfd-black));
  color: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 56px; font-weight: 700;
  letter-spacing: -1px;
  position: relative;
}
.wfd-wayne .portrait::after {
  content: "PORTRAIT PLACEHOLDER";
  position: absolute; bottom: 14px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  color: rgba(197,165,114,0.7);
  font-weight: 700;
}
.wfd-wayne .w-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold-2);
  font-weight: 800;
  margin-bottom: 6px;
}
.wfd-wayne h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--text);
}
.wfd-wayne .credentials {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2px;
  margin-bottom: 14px;
}
.wfd-wayne p {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 12px;
}

/* =========================================================================
   Utility
   ========================================================================= */
.wfd-divider { height: 1px; background: var(--border); border: 0; margin: 32px 0; }
.wfd-stack > * + * { margin-top: 16px; }
.wfd-flex { display: flex; align-items: center; gap: 12px; }
.wfd-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wfd-spacer { flex: 1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hide-mobile { }
@media (max-width: 768px) { .hide-mobile { display: none; } }

/* =========================================================================
   v2.0 — WordPress integration bridges
   Layered AFTER mockup styles. Neutralises Kadence + WC defaults so the
   mockup design system wins. Also covers stray legacy BEM classes used by
   archive-sfwd-courses.php, single-sfwd-courses.php, and chapter content.
   ========================================================================= */

/* Kadence body padding / page wrapper reset — mockup hero must sit flush
   against the sticky masthead, so we strip out any imposed top padding
   from the Kadence body. */
body.wfd-academy { padding-top: 0 !important; margin-top: 0 !important; }
body.wfd-academy .wfd-page { display: flex; flex-direction: column; min-height: 100vh; }

/* WP admin bar (logged-in users) — push the sticky masthead down so it sits
   under the admin bar instead of behind it. */
body.admin-bar .wfd-masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wfd-masthead { top: 46px; } }
body.admin-bar .wfd-toc { top: calc(80px + 32px); height: calc(100vh - 80px - 32px); }

/* Hide Kadence's stock header when the WFD masthead is rendered. */
body.wfd-academy .site-header,
body.wfd-academy #wrapper > .site-header,
body.wfd-academy .site-branding-container,
body.wfd-academy header.site-header { display: none !important; }

/* Skip-link a11y */
.wfd-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--wfd-black); color: var(--wfd-cream);
  padding: 12px 18px; border-radius: 0 0 6px 0;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
}
.wfd-skip-link:focus { left: 0; }

/* Burger / mobile drawer */
.wfd-masthead-burger {
  display: none;
  background: transparent; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.wfd-masthead-burger .wfd-burger-bar {
  display: block; width: 24px; height: 2px; background: var(--wfd-cream);
  margin: 5px 0; transition: transform 0.2s, opacity 0.2s;
}
@media (max-width: 900px) {
  .wfd-masthead-burger { display: inline-block; }
  .wfd-masthead-nav {
    display: none !important;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--wfd-black);
    flex-direction: column; align-items: stretch;
    padding: 12px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-left: 0;
  }
  .wfd-masthead.is-open .wfd-masthead-nav { display: flex !important; }
  .wfd-masthead-nav a { padding: 12px 14px; font-size: 15px; }
  .wfd-masthead-cta { margin: 12px 0 0 0; justify-content: center; }
  .wfd-user-menu { margin: 12px 0 0 0; }
  .wfd-user-menu .um-panel { position: static; box-shadow: none; background: rgba(255,255,255,0.06); margin-top: 8px; }
  .wfd-user-menu .um-panel a { color: var(--wfd-cream); }
  .wfd-user-menu .um-panel a:hover { background: rgba(255,255,255,0.12); }
}

/* Site content wrap for inner pages with no hero — push padding to top
   below the masthead so they don't sit flush. Pages WITH .wfd-hero handle
   it themselves. */
.wfd-main { min-height: 60vh; }

/* WC My Account: reskin notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--wfd-stone-100);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text-2);
  list-style: none;
  margin: 0 0 16px;
}
.woocommerce-message { border-left-color: var(--good); background: var(--good-soft); color: var(--good); }
.woocommerce-error { border-left-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a {
  color: inherit; text-decoration: underline;
}

/* WC My Account layout (v2.3.1 bugfix — wrappers removed) ==================
 * The WC default `.woocommerce` div + 240/1fr grid + boxed sidebar was
 * squeezing the dashboard content to ~80px. Account templates each render
 * their own .wfd-hero + .wfd-section + .wfd-container, so we make every WC
 * wrapper a transparent pass-through. The boxed sidebar nav is hidden via
 * woocommerce/myaccount/navigation.php (empty override) and belt-and-braces
 * via display:none here in case any plugin re-injects it. */
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce-MyAccount-content {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account nav.woocommerce-MyAccount-navigation { display: none !important; }
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-family: var(--font-serif); color: var(--text);
}

/* Forms inside WC (Profile / login) */
body.woocommerce-account .woocommerce-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
body.woocommerce-account .woocommerce-form-row label { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--text-2); }
body.woocommerce-account .woocommerce-form-row input,
body.woocommerce-account .woocommerce-form-row select,
body.woocommerce-account .woocommerce-form-row textarea {
  padding: 11px 14px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--wfd-white);
  color: var(--text); font-family: var(--font-sans); font-size: 14.5px;
}
body.woocommerce-account .button,
body.woocommerce-account button[type="submit"] {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; background: var(--wfd-black); color: var(--wfd-cream);
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  letter-spacing: 0.2px;
}
body.woocommerce-account .button:hover,
body.woocommerce-account button[type="submit"]:hover { background: var(--wfd-stone-900); color: var(--wfd-cream); }

/* Headings on inner pages (when no .wfd-section context) */
.wfd-main h1.entry-title, .wfd-main h1.page-title {
  font-family: var(--font-serif); font-size: 40px; font-weight: 700;
  color: var(--text); margin: 0 0 24px;
}

/* Legacy bridge — old wfd-masthead__inner classes still in chapter / legacy
   pages should adopt the new look. */
.wfd-masthead__inner { /* mirrors .wfd-masthead-inner */
  max-width: var(--content-max); margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; gap: 24px;
}

/* ==== Three-color text rule guard (regression check) ==========================
 * Permitted text foregrounds site-wide: #2A251E, #FFFFFF, #000000.
 * Gold (#C5A572, #6F5418, #F4EAD1) is ALLOWED only on backgrounds, borders,
 * button fills. NEVER as text color on long-form content. Eyebrows + counters
 * are the allowed exception (decorative micro-text < 13px, uppercase, tracked).
/* =========================================================================
   v2.4.0 — root-cause overrides for Wave 1 pixel-diff audit
   FIXES:
   - RC-1: hero now bleeds edge-to-edge of viewport (no cream gutters)
   - RC-2: duplicate <main id="wfd-main"> removed from page templates
   - RC-4 / RC-5: section + hero text aligned to gutter, not indented further right
   ========================================================================= */

/* Unbox the WFD main wrapper. Kadence's content-style-boxed forces a
   max-width on the main; we override so the masthead-flush hero pattern
   works edge-to-edge. The hero itself supplies its own 32px inner padding
   for content; .wfd-container does the same for sections. */
body .wfd-main,
body.wfd-academy .wfd-main {
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--bg);
  min-width: 0;
}

/* Belt-and-braces: any Kadence content-area or entry-content wrapper that
   might wrap our templates should also be transparent + full-width. */
body.wfd-academy .content-area,
body.wfd-academy .entry-content,
body.wfd-academy .site-main,
body.wfd-academy .ast-container,
body.wfd-academy #content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Belt-and-braces hero viewport bleed. Forces full viewport width even if
   some ancestor still imposes a max-width. Hero inner stays at content-max. */
.wfd-hero {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding-left: 0;
  padding-right: 0;
}
.wfd-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Same viewport-bleed pattern for dark / alt section bands so they paint
   edge-to-edge if a wrapper boxes them. Inner .wfd-container still
   centred at content-max. */
.wfd-section.dark,
.wfd-section.alt {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* Section containers explicitly own 32px gutter padding so H2s line up
   with hero text (both end up flush with content-max + 32px). */
.wfd-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Mobile re-tune so hero padding doesn't double-up against the 22px
   small-screen value already declared. */
@media (max-width: 768px) {
  .wfd-hero {
    padding-left: 0;
    padding-right: 0;
  }
  .wfd-hero-inner {
    padding-left: 22px;
    padding-right: 22px;
  }
  .wfd-container {
    padding-left: 22px;
    padding-right: 22px;
  }
}
/* =========================================================================
   end v2.4.0 overrides
   ========================================================================= */


/* Wave A (v2.8.0) — masthead "Start free" primary CTA beside a quieter
 * "Sign in" text link. One login door: Sign in points at /my-account/. */
.wfd-masthead-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.wfd-masthead-actions .wfd-masthead-cta { margin-left: 0; }
.wfd-masthead-signin {
  display: inline-flex; align-items: center;
  padding: 9px 14px;
  color: var(--wfd-cream);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.28);
  text-decoration: none;
}
.wfd-masthead-signin:hover { border-color: var(--wfd-gold); color: var(--wfd-cream); text-decoration: none; }
@media (max-width: 900px) {
  .wfd-masthead-actions { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; margin: 12px 0 0; }
  .wfd-masthead-actions .wfd-masthead-cta,
  .wfd-masthead-signin { justify-content: center; text-align: center; }
}
