
:root {
  --ea-ink: #111214;
  --ea-charcoal: #191b1f;
  --ea-charcoal-2: #24272c;
  --ea-paper: #f7f3eb;
  --ea-paper-2: #eee7dc;
  --ea-white: #fffdf9;
  --ea-coral: #ed5b43;
  --ea-coral-dark: #b93e2c;
  --ea-gold: #c6a466;
  --ea-text: #24262a;
  --ea-muted: #6e6b65;
  --ea-line: #d9d1c4;
  --ea-shadow: 0 18px 55px rgba(17, 18, 20, .10);
  --ea-radius: 18px;
}

html { scroll-behavior: smooth; }
body.csf-course-page { overflow-x: clip !important; }
body.csf-course-page .entry-header,
body.csf-course-page .page-header,
body.csf-course-page .post-thumbnail { display: none !important; }
body.csf-course-page .site-main,
body.csf-course-page .content-area,
body.csf-course-page .entry-content,
body.csf-course-page .wp-block-post-content,
body.csf-course-page .elementor-widget-container,
body.csf-course-page .container,
body.csf-course-page .ast-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ea-course,
.ea-course * { box-sizing: border-box; }

.ea-course {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--ea-paper);
  color: var(--ea-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: clip;
  text-align: left;
}

.ea-course a { color: inherit; }
.ea-course img { display: block; max-width: 100%; height: auto; }

.ea-topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 16px clamp(22px, 4vw, 72px);
  color: var(--ea-white);
  background: var(--ea-ink);
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.ea-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.ea-monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ea-coral);
  border-radius: 50%;
  color: var(--ea-coral);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.ea-brand-copy strong,
.ea-brand-copy span { display: block; }
.ea-brand-copy strong { font-size: 14px; letter-spacing: .04em; }
.ea-brand-copy span { color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.ea-home-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: var(--ea-white) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: .2s ease;
}
.ea-home-link:hover { border-color: var(--ea-coral); color: var(--ea-coral) !important; }

.ea-hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: clamp(68px, 9vw, 140px) clamp(24px, 7vw, 112px) clamp(58px, 7vw, 96px);
  color: var(--ea-white);
  background:
    radial-gradient(circle at 83% 12%, rgba(237,91,67,.20), transparent 27%),
    linear-gradient(135deg, #101114 0%, #1a1d21 60%, #101114 100%);
  overflow: hidden;
}

.ea-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
}

.ea-hero::after {
  content: "";
  position: absolute;
  right: clamp(22px, 6vw, 100px);
  bottom: -135px;
  width: 360px;
  height: 360px;
  z-index: -1;
  border: 1px solid rgba(237,91,67,.42);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(237,91,67,.035), 0 0 0 96px rgba(237,91,67,.025);
}

.ea-hero-inner { width: min(1120px, 100%); }
.ea-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--ea-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ea-kicker::before { content: ""; width: 44px; height: 2px; background: currentColor; }
.ea-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ea-white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.ea-hero p {
  max-width: 770px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.68);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}
.ea-framework-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.ea-framework-pills span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.035);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ea-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  width: 100%;
  padding: clamp(34px, 5vw, 74px) clamp(20px, 5vw, 82px) 90px;
}

.ea-sidebar { min-width: 0; }
.ea-toc {
  position: sticky;
  top: 24px;
  padding: 25px;
  border-radius: var(--ea-radius);
  color: var(--ea-white);
  background: var(--ea-charcoal);
  box-shadow: var(--ea-shadow);
}
.ea-toc-title {
  margin: 0 0 16px;
  color: var(--ea-coral);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ea-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.ea-toc li { counter-increment: toc; margin: 0; }
.ea-toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.72) !important;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none !important;
  transition: .18s ease;
}
.ea-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ea-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.ea-toc a:hover { color: var(--ea-white) !important; transform: translateX(3px); }

.ea-content { min-width: 0; }
.ea-article {
  width: 100%;
  padding: clamp(30px, 4.7vw, 76px);
  border: 1px solid rgba(17,18,20,.07);
  border-radius: clamp(18px, 2vw, 28px);
  background: var(--ea-white);
  box-shadow: var(--ea-shadow);
}

.ea-article > p,
.ea-article > ul,
.ea-article > ol,
.ea-article > blockquote { max-width: 84ch; }
.ea-article p { margin: 0 0 1.1em; }
.ea-article strong { color: var(--ea-ink); }
.ea-article a { color: var(--ea-coral-dark); text-underline-offset: 3px; }
.ea-article a:hover { color: var(--ea-coral); }

.ea-article h1,
.ea-article h2,
.ea-article h3 {
  scroll-margin-top: 26px;
  color: var(--ea-ink) !important;
}
.ea-article h1 {
  position: relative;
  margin: 2.25em 0 .8em;
  padding-top: 20px;
  border-top: 1px solid var(--ea-line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.028em;
}
.ea-article h1::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 74px;
  height: 3px;
  background: var(--ea-coral);
}
.ea-article h1:first-of-type { margin-top: .35em; }
.ea-article h2 {
  margin: 2em 0 .72em;
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.16;
}
.ea-article h3 { margin: 1.8em 0 .6em; font-size: 21px; }

.ea-article ul,
.ea-article ol { margin: .4em 0 1.4em; padding-left: 1.35em; }
.ea-article li { margin: .36em 0; padding-left: .3em; }
.ea-article li::marker { color: var(--ea-coral); font-weight: 800; }

.ea-article figure,
.ea-article > p:has(> img) {
  max-width: none;
  margin: 2.1em 0 1em;
  padding: 16px;
  border: 1px solid var(--ea-line);
  border-radius: 16px;
  background: #fff;
}
.ea-article > p:has(> img) img { width: 100% !important; height: auto !important; border-radius: 10px; }
.ea-figure-caption {
  margin-top: -.25em !important;
  color: var(--ea-muted);
  font-size: 13px;
  font-style: italic;
}

.ea-table-wrap {
  width: 100%;
  margin: 1.7em 0 2.2em;
  overflow-x: auto;
  border: 1px solid var(--ea-line);
  border-radius: 14px;
  background: #fff;
}
.ea-article table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.ea-article th,
.ea-article td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--ea-line); text-align: left; vertical-align: top; }
.ea-article th {
  color: var(--ea-white);
  background: var(--ea-charcoal);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ea-article tr:last-child td { border-bottom: 0; }
.ea-article tbody tr:nth-child(even) { background: #faf7f1; }

.ea-question {
  max-width: none !important;
  margin: 1.4em 0 .45em !important;
  padding: 16px 18px 16px 22px;
  border-left: 4px solid var(--ea-coral);
  border-radius: 0 10px 10px 0;
  background: var(--ea-paper);
  color: var(--ea-ink);
  font-weight: 750;
}
.ea-question + ul,
.ea-question + ol {
  max-width: none;
  margin: 0 0 1.6em;
  padding: 10px 18px 12px 46px;
  border: 1px solid var(--ea-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.ea-reference-section {
  margin-top: 2.5em;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 16px;
  background: var(--ea-paper);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ea-reference-section h1 { margin-top: 0; }

.ea-backtop {
  display: inline-flex;
  margin-top: 38px;
  padding: 11px 15px;
  border: 1px solid var(--ea-ink);
  border-radius: 999px;
  color: var(--ea-ink) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none !important;
  text-transform: uppercase;
}
.ea-backtop:hover { color: var(--ea-white) !important; background: var(--ea-ink); }

.ea-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(24px, 5vw, 82px);
  color: rgba(255,255,255,.58);
  background: var(--ea-ink);
  font-size: 12px;
}
.ea-footer strong { color: var(--ea-white); }

@media (max-width: 1050px) {
  .ea-shell { grid-template-columns: 1fr; }
  .ea-sidebar { order: 0; }
  .ea-toc { position: static; }
  .ea-toc ol { columns: 2; column-gap: 28px; }
  .ea-toc li { break-inside: avoid; }
}

@media (max-width: 680px) {
  .ea-course { font-size: 16px; }
  .ea-topbar { min-height: 66px; padding: 12px 18px; }
  .ea-brand-copy { display: none; }
  .ea-home-link { padding: 9px 12px; font-size: 12px; }
  .ea-hero { min-height: 390px; padding: 72px 20px 50px; }
  .ea-hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .ea-hero::after { right: -145px; }
  .ea-shell { padding: 22px 12px 55px; gap: 20px; }
  .ea-article { padding: 26px 20px 40px; border-radius: 16px; }
  .ea-toc { padding: 21px; border-radius: 15px; }
  .ea-toc ol { columns: 1; }
  .ea-article h1 { font-size: 31px; }
  .ea-article > p:has(> img) { margin-left: -8px; margin-right: -8px; padding: 8px; }
  .ea-footer { display: block; padding: 24px 20px; }
  .ea-footer span { display: block; margin-top: 5px; }
}

@media print {
  .ea-course { left: 0; width: 100%; margin: 0; background: #fff; }
  .ea-topbar, .ea-sidebar, .ea-footer, .ea-backtop { display: none !important; }
  .ea-hero { min-height: 0; padding: 36px; color: #000; background: #fff; border-bottom: 2px solid #000; }
  .ea-hero h1, .ea-hero p { color: #000 !important; }
  .ea-shell { display: block; padding: 0; }
  .ea-article { box-shadow: none; border: 0; padding: 30px; }
}


/* WordPress full-width resilience and Gravity Forms Quiz presentation */
body.csf-course-page { overflow-x: clip !important; }
body.csf-course-page .entry-header,
body.csf-course-page .page-header,
body.csf-course-page .post-thumbnail { display: none !important; }
body.csf-course-page .site-main,
body.csf-course-page .content-area,
body.csf-course-page .entry-content,
body.csf-course-page .wp-block-post-content,
body.csf-course-page .elementor-widget-container,
body.csf-course-page .elementor-section,
body.csf-course-page .elementor-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.csf-course-page .entry-content > .ea-course,
body.csf-course-page .wp-block-post-content > .ea-course,
body.csf-course-page .elementor-widget-container > .ea-course { margin-top: 0 !important; }

.ea-course .csf-quiz-card {
  border: 1px solid var(--ea-line);
  background: var(--ea-white);
  border-radius: var(--ea-radius);
  box-shadow: var(--ea-shadow);
  padding: clamp(1.1rem, 2vw, 1.8rem);
}
.ea-course .csf-quiz-notice {
  border-left: 4px solid var(--ea-coral);
  background: #fff5f1;
  color: var(--ea-text);
  padding: 1rem 1.1rem;
  border-radius: 0 12px 12px 0;
}
.ea-course .csf-quiz-notice a { color: var(--ea-coral-dark); font-weight: 800; }
.ea-course .gform_wrapper { margin: 0 !important; max-width: none !important; }
.ea-course .gform_wrapper form { margin: 0 !important; }
.ea-course .gform_wrapper .gform_heading { margin: 0 0 1.25rem !important; }
.ea-course .gform_wrapper .gform_title { color: var(--ea-ink) !important; font-family: inherit !important; font-size: 1.5rem !important; line-height: 1.2 !important; }
.ea-course .gform_wrapper .gform_description { color: var(--ea-muted) !important; }
.ea-course .gform_wrapper .gfield {
  background: var(--ea-white);
  border: 1px solid var(--ea-line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem !important;
  margin: 0 0 1rem !important;
}
.ea-course .gform_wrapper .gfield_label { color: var(--ea-ink) !important; font-size: 1rem !important; line-height: 1.45 !important; }
.ea-course .gform_wrapper .gfield_required { color: var(--ea-coral) !important; }
.ea-course .gform_wrapper .gchoice { margin: .55rem 0 !important; }
.ea-course .gform_wrapper .gchoice input[type="radio"] { accent-color: var(--ea-coral); transform: scale(1.08); }
.ea-course .gform_wrapper .gchoice label { color: var(--ea-text) !important; font-weight: 600; }
.ea-course .gform_wrapper .gform_button,
.ea-course .gform_wrapper input[type="submit"] {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ea-coral) !important;
  color: var(--ea-white) !important;
  padding: .85rem 1.25rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.ea-course .gform_wrapper .gform_button:hover,
.ea-course .gform_wrapper input[type="submit"]:hover { background: var(--ea-coral-dark) !important; }
.ea-course .gform_wrapper .gfield_error { border-color: var(--ea-coral) !important; }
.ea-course .gform_wrapper .gform_validation_errors { border-color: var(--ea-coral) !important; background: #fff5f1 !important; }
.ea-course .gform_wrapper .gform_confirmation_message { background: #edf8f0; border-left: 4px solid #2f8653; padding: 1rem 1.1rem; border-radius: 0 12px 12px 0; color: var(--ea-text); font-weight: 700; }
@media (max-width: 760px) {
  .ea-course .gform_wrapper .gfield { padding: 1rem !important; }
}
