/* =========================================================
   Empowered Autonomy — Assessment & Legal Pages (Refactor v3.1)
   Notes:
   - No visual/behavior changes intended.
   - Cleanup: narrower selectors, remove redundant rule, remove STG hard-coded URL.
   ========================================================= */

/* === Tokens & base === */
:root{
  --ea-primary:#213160;
  --ea-primary-stroke:#015C86;
  --ea-secondary:#ABAAAA;
  --ea-accent:#C0C0C0;
  --ea-accent-stroke:#B5B5B6;

  /* Brand orange split */
  --ea-orange-accent:#DF4801; /* sharper accent */
  --ea-orange-fill:#FF5602;   /* warmer fill */

  --ea-ink:#1A1A1A;
  --ea-bg:#FFFFFF;

  --ea-heading-font:"Libre Franklin",Arial,sans-serif;
  --ea-body-font:"Adorn Serif",serif;
}

body{
  background:var(--ea-bg);
  color:var(--ea-ink);
  font-family:var(--ea-body-font);
}

/* === Assessment (Page ID 11) === */
body.page-id-11{
  background-color:var(--ea-primary)!important;
  color:var(--ea-accent)!important;
}

body.page-id-11 :is(.site,.site-header,.site-content,.content-area,.site-main,.hentry,.entry-header,.entry-content,.entry-footer,.widget,.site-footer){
  background:transparent!important;
  color:var(--ea-accent)!important;
}

body.page-id-11 .entry-content{
  background-image:none!important;
  opacity:1!important;
}

body.page-id-11 .entry-content :is(p,li,.wp-block-group,.wp-block-column),
body.page-id-11 :is(.site-title a,.site-description,.entry-title,.entry-title a){
  color:var(--ea-accent)!important;
}

body.page-id-11 a{color:var(--ea-accent-stroke)!important;}
body.page-id-11 a:hover,
body.page-id-11 a:focus{
  color:var(--ea-accent)!important;
  text-decoration:underline;
}

/* Headings / labels */
body.page-id-11 :is(h1,h2,h3,.entry-title,.ff-section-title,.ff-el-section-title h3,form[data-form_id="4"] .ff-el-input--label label){
  font-family:var(--ea-heading-font)!important;
  color:var(--ea-accent)!important;
  text-transform:none;
  letter-spacing:.02em;
}
/* Page 11: page title (Gutenberg) */
body.page-id-11 .ea-page-title{
  font-family:"Lexend Exa",sans-serif;
  font-weight:600;
  font-size:clamp(1.6rem,2.2vw,2.4rem);
  line-height:1.2;
  margin:0 0 .75rem 0;
  color:var(--ea-accent);
  text-transform:none;
  letter-spacing:normal;
}


/* Body text inside form and content */
body.page-id-11 :is(.entry-content,form[data-form_id="4"] .ff-el-form-control,form[data-form_id="4"] .ff-el-input--content label,form[data-form_id="4"] .ff-el-input--content .ff-t-container label,form[data-form_id="4"] .ff-el-input--content .ff_check_list label,form[data-form_id="4"] .ff-el-input--content .ff_list_inline label){
  font-family:var(--ea-body-font)!important;
  color:var(--ea-accent)!important;
  text-transform:none;
}

body.page-id-11 :is(.entry-title,.entry-header){display:none!important;}

/* Keep as-is per your instruction */
body.page-id-11 .ea-page-title{
  font-family:"Lexend Exa",sans-serif;
  font-weight:600;
  font-size:clamp(1.6rem,2.2vw,2.4rem);
  line-height:1.2;
  margin:0 0 .75rem 0;
  color:var(--ea-accent);
  text-transform:none;
  letter-spacing:normal;
}
body.page-id-11 .ea-page-title *{
  text-transform:none!important;
  font-variant-caps:normal!important;
  font-feature-settings:"smcp" 0,"c2sc" 0!important;
}

/* Start step spacing + typography */
body.page-id-11 form[data-form_id="4"] section.ea-start h1{
  margin:0 0 0.9rem 0 !important;
  font-family:var(--ea-body-font)!important;
}
body.page-id-11 form[data-form_id="4"] section.ea-start h3{
  margin:0 0 1.25rem 0 !important;
}
body.page-id-11 form[data-form_id="4"] section.ea-start p{
  margin:0 0 0.75rem 0 !important;
}

/* Fluent Forms inputs */
body.page-id-11 form[data-form_id="4"] :is(input[type=text],input[type=email],input[type=number],textarea,select){
  background:transparent!important;
  color:var(--ea-accent)!important;
  border:1px solid var(--ea-accent-stroke)!important;
  border-radius:4px!important;
}
body.page-id-11 form[data-form_id="4"] ::placeholder{color:var(--ea-secondary)!important;}
body.page-id-11 form[data-form_id="4"] :is(input:focus,textarea:focus,select:focus){
  outline:2px solid var(--ea-primary-stroke)!important;
  outline-offset:2px!important;
  border-color:var(--ea-primary-stroke)!important;
  box-shadow:none!important;
}
body.page-id-11 form[data-form_id="4"] :is(input[type=radio],input[type=checkbox]){
  transform:scale(1.2);
  accent-color:var(--ea-accent);
}

/* Fluent Forms buttons (narrowed) */
body.page-id-11 form[data-form_id="4"] :is(.ff-btn,.ff_submit_btn,.ff-btn-submit,button[type=submit],input[type=submit]){
  background:var(--ea-accent)!important;
  color:var(--ea-primary)!important;
  border:1px solid var(--ea-accent)!important;
  border-radius:4px!important;
  font-family:var(--ea-heading-font)!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
body.page-id-11 form[data-form_id="4"] :is(.ff-btn,.ff_submit_btn,.ff-btn-submit,button[type=submit],input[type=submit]):hover{
  background:var(--ea-accent-stroke)!important;
  color:var(--ea-primary)!important;
}

/* Errors / success */
body.page-id-11 form[data-form_id="4"] .ff-errors,
body.page-id-11 form[data-form_id="4"] .ff-el-is-error .ff-el-form-control{
  border-color:#ffb4b4!important;
}
body.page-id-11 form[data-form_id="4"] .ff-el-is-error .ff-el-input--label label{
  color:#ffdddd!important;
}
body.page-id-11 form[data-form_id="4"] .ff-message-success{
  background:rgba(192,192,192,.1)!important;
  border:1px solid var(--ea-accent-stroke)!important;
  color:var(--ea-accent)!important;
}

/* Assessment results CTA (Calendly link as button) */
body.page-id-11 .ea-results-cta a.ff-btn-submit{
  display:inline-block;
  background:var(--ea-orange-fill)!important;
  color:#FFFFFF!important;
  border:none!important;
  box-shadow:none!important;
  border-radius:4px;
  padding:0.75rem 1.5rem;
  font-family:var(--ea-heading-font);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.04em;
  text-decoration:none!important;
  cursor:pointer;
}
body.page-id-11 .ea-results-cta a.ff-btn-submit:hover{
  background:var(--ea-orange-accent)!important;
  color:#FFFFFF!important;
  border:none!important;
  box-shadow:none!important;
}
body.page-id-11 .ea-results-cta a.ff-btn-submit:focus{
  outline:2px solid var(--ea-primary-stroke)!important;
  outline-offset:2px!important;
}

/* === Assessment result flame icons (v3.2) === */

body.page-id-11 .ea-flame-icon{
  width:136px;
  height:136px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

@media (min-width:900px){
  body.page-id-11 .ea-flame-icon{
    width:192px;
    height:192px;
  }
}
body.page-id-11 .ea-flame-dimmed{
  background-image:url("/wp-content/uploads/2026/03/dimmed-flame-256px.png");
}

body.page-id-11 .ea-flame-flickering{
  background-image:url("/wp-content/uploads/2026/03/flickering-flame-256px.png");
}

body.page-id-11 .ea-flame-steadying{
  background-image:url("/wp-content/uploads/2026/03/steadying-flame-256px.png");
}

body.page-id-11 .ea-flame-radiant{
  background-image:url("/wp-content/uploads/2026/03/radiant-flame-256px.png");
}

body.page-id-11 .ea-flame-icon{
  margin:0 auto 1.75em auto;
}

body.page-id-11 .ff-message-success p{
  margin-top:0;
}

/* Assessment layout (keep: likely still used) */
body.page-id-11 .ea-assessment.ea-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.5rem;
  align-items:start;
  margin-bottom:1.5rem;
}
body.page-id-11 .ea-assessment .ea-logo-col{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  min-height:320px;
  padding:0;
}
body.page-id-11 .ea-assessment .ea-logo-col img{
  display:block;
  width:70vw;
  max-width:900px;
  height:auto;
}
@media (min-width:900px){
  body.page-id-11 .ea-assessment.ea-grid{
    grid-template-columns:40% 60%;
    gap:2rem;
    align-items:stretch;
  }
  body.page-id-11 .ea-assessment .ea-logo-col{
    justify-content:flex-start;
    align-items:center;
    min-height:100%;
  }
  body.page-id-11 .ea-assessment .ea-logo-col img{
    width:90%;
    max-width:540px;
    height:auto;
  }
}
@media (min-width:1200px){
  body.page-id-11 .ea-assessment .ea-logo-col img{
    width:95%;
    max-width:650px;
  }
}
@media (min-width:900px){
  body.page-id-11 .ea-assessment .wp-block-column:first-child{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
  }
  body.page-id-11 .ea-assessment .wp-block-column:first-child .wp-block-image{
    margin:0 0 1rem 0;
    text-align:left;
    align-self:flex-start;
  }
  body.page-id-11 .ea-assessment .wp-block-column:first-child .wp-block-image img{
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
  }
}

/* Hide giant featured image */
body.page-id-11 .post-thumbnail,
body.page-id-11 img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image{
  display:none!important;
}
body.page-id-11 .post-thumbnail{
  margin:0!important;
  padding:0!important;
}

/* === Legal pages (IDs 125 & 153) === */
body.page-id-125,
body.page-id-153{
  background:#FFFFFF;
  color:var(--ea-ink);
  font-family:var(--ea-body-font);
  line-height:1.6;
  padding:0;
}

body.page-id-125 :is(.site,.content-area,.site-content,.hentry,.entry-content),
body.page-id-153 :is(.site,.content-area,.site-content,.hentry,.entry-content){
  background:#FFFFFF!important;
}

body.page-id-125 :is(h1,h2,h3),
body.page-id-153 :is(h1,h2,h3){
  font-family:"Franklin Gothic","Libre Franklin",Arial,sans-serif;
  color:var(--ea-ink);
  margin:1.5rem 0 .75rem;
}

body.page-id-125 .entry-title,
body.page-id-153 .entry-title{
  color:var(--ea-ink);
  display:block!important;
  visibility:visible!important;
}

/* Title + small logo (::after) inline */
body.page-id-125 .entry-title,
body.page-id-153 .entry-title{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  padding-right:0!important;
  position:relative;
}
body.page-id-125 .entry-title::after,
body.page-id-153 .entry-title::after{
  content:""!important;
  display:inline-block!important;
  width:60px!important;
  height:60px!important;
  margin-left:10px!important;
  background:center/contain no-repeat url("/wp-content/uploads/2025/08/cropped-no-words-transparent_empowered-autonomy.png")!important;
  pointer-events:none;
}
@media (max-width:480px){
  body.page-id-125 .entry-title::after,
  body.page-id-153 .entry-title::after{
    display:none!important;
  }
}

/* Links / lists / quotes */
body.page-id-125 a,
body.page-id-153 a{
  color:var(--ea-primary);
  text-decoration:underline;
}
body.page-id-125 a:hover,
body.page-id-153 a:hover{
  color:var(--ea-primary-stroke);
}
body.page-id-125 .entry-content :is(ul,ol),
body.page-id-153 .entry-content :is(ul,ol){
  margin-left:1.5em;
  padding-left:1.5em;
  list-style-position:outside;
}
body.page-id-125 :is(blockquote,.wp-block-quote,.wp-block-pullquote),
body.page-id-153 :is(blockquote,.wp-block-quote,.wp-block-pullquote){
  font-family:inherit!important;
  font-style:normal!important;
  color:var(--ea-ink)!important;
  background:transparent!important;
  border-left:none!important;
  padding-left:0!important;
}
body.page-id-125 :is(blockquote::before,.wp-block-quote::before),
body.page-id-153 :is(blockquote::before,.wp-block-quote::before){
  content:none!important;
}
body.page-id-125 p,
body.page-id-153 p{
  margin:0 0 .9rem;
}

/* Hide inline logo if inserted as content image */
body.page-id-125 .entry-content .title-logo,
body.page-id-153 .entry-content .title-logo{
  display:none!important;
}
body.page-id-125 .entry-content figure.wp-block-image img[src*="cropped-no-words-transparent_empowered-autonomy.png"],
body.page-id-153 .entry-content figure.wp-block-image img[src*="cropped-no-words-transparent_empowered-autonomy.png"]{
  display:none!important;
}
body.page-id-125 .entry-content figure.wp-block-image:empty,
body.page-id-153 .entry-content figure.wp-block-image:empty{
  margin:0!important;
  padding:0!important;
}

/* Hide theme featured image wrapper and image itself on legal pages */
body.page-id-125 .post-thumbnail,
body.page-id-153 .post-thumbnail{
  display:none!important;
}
body.page-id-125 img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image,
body.page-id-153 img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image{
  display:none!important;
}

/* Footer / widgets */
.site-footer .ea-legal-footer{
  font-size:.9rem;
  line-height:1.5;
  color:var(--ea-secondary);
  padding-top:.75rem;
  border-top:1px solid var(--ea-accent-stroke);
}
.site-footer .ea-legal-footer a{
  color:var(--ea-accent);
  text-decoration:underline;
}
@media (max-width:600px){
  .site-footer .ea-legal-footer{font-size:.85rem;}
}
.widget-area,
section#block-11.widget.widget_block{
  border:none!important;
  box-shadow:none!important;
  background-image:none!important;
}
.widget-area{border-top:1px solid var(--ea-accent-stroke)!important;}
.site-footer .site-title{display:none!important;}
