:root{
  --rr-navy:#0b1f3a;
  --rr-gold:#c99b42;
  --rr-coral:#f05a3a;
  --rr-cream:#fbf8f2;
  --rr-text:#1c2a3a;
  --rr-muted:#64748b;
  --rr-line:#e5e7eb;
  --rr-soft:#f8fafc;
}
body.ygyp-research-page .entry-title{display:none!important}
.ygyp-r-wrap{font-family:Arial,Helvetica,sans-serif;color:var(--rr-text);max-width:1180px;margin:0 auto;padding:28px 22px 68px;box-sizing:border-box}
.ygyp-r-wrap *{box-sizing:border-box}
.ygyp-r-kicker{font-size:.73rem;font-weight:900;letter-spacing:.14em;color:var(--rr-gold);margin-bottom:12px}
.ygyp-r-kicker.dark{color:var(--rr-gold)}

.ygyp-r-editorial-hero{padding:58px 0 44px;border-bottom:1px solid var(--rr-line)}
.ygyp-r-editorial-hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.5rem,5.6vw,5rem);line-height:.99;letter-spacing:-.035em;color:var(--rr-navy);max-width:930px;margin:0 0 18px}
.ygyp-r-editorial-hero p{font-size:clamp(1.03rem,2vw,1.22rem);line-height:1.65;color:#425466;max-width:760px;margin:0}
.ygyp-r-hero-links{display:flex;gap:24px;flex-wrap:wrap;margin-top:24px}
.ygyp-r-hero-links a,.ygyp-r-text-cta,.ygyp-r-ledby a{color:var(--rr-navy)!important;text-decoration:none!important;font-weight:900;border-bottom:2px solid var(--rr-gold);padding-bottom:3px}

.ygyp-r-section{padding:46px 0}
.ygyp-r-section-head{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:end;margin-bottom:32px}
.ygyp-r-section-head h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2rem,4vw,3.5rem);color:var(--rr-navy);margin:0;line-height:1.05}
.ygyp-r-section-head p{color:#526578;line-height:1.6;margin:0;max-width:460px}

.ygyp-r-feature{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:42px;align-items:center;padding:8px 0}
.ygyp-r-feature.reverse{grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr)}
.ygyp-r-feature.reverse .ygyp-r-feature-image{order:2}
.ygyp-r-feature.reverse .ygyp-r-feature-copy{order:1}
.ygyp-r-feature-image{display:block}
.ygyp-r-feature-image img{display:block;width:100%;height:auto;border-radius:18px;border:1px solid #ece7df}
.ygyp-r-feature-copy h3{font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.9rem,3.2vw,3rem);line-height:1.06;color:var(--rr-navy);margin:6px 0 12px}
.ygyp-r-feature-copy p{color:#526578;line-height:1.65;margin:0 0 13px}
.ygyp-r-feature-copy .ygyp-r-question-line{font-size:1.12rem;color:#243b53}
.ygyp-r-divider{height:1px;background:var(--rr-line);margin:42px 0}

.ygyp-r-why{padding:48px 0;border-top:1px solid var(--rr-line)}
.ygyp-r-why-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:46px;align-items:start}
.ygyp-r-why h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2rem,3.8vw,3.25rem);line-height:1.08;color:var(--rr-navy);margin:0}
.ygyp-r-why p{line-height:1.72;color:#526578;margin:0 0 12px}

.ygyp-r-ledby{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 0;border-top:1px solid var(--rr-line);border-bottom:1px solid var(--rr-line)}
.ygyp-r-ledby p{margin:0;color:#425466;line-height:1.55}
.ygyp-r-method-note{margin-top:30px;background:var(--rr-cream);border-left:3px solid var(--rr-gold);padding:18px 20px}
.ygyp-r-method-note strong{color:var(--rr-navy)}
.ygyp-r-method-note p{margin:6px 0 0;color:#526578;line-height:1.6;font-size:.92rem}

/* Survey pages: intentionally light and calm */
.ygyp-r-survey{max-width:900px}
.ygyp-r-back-link{display:inline-block;margin-bottom:18px;color:var(--rr-navy)!important;text-decoration:none!important;font-weight:800}
.ygyp-r-hero.survey{background:transparent;color:var(--rr-text);padding:28px 0 30px;border-bottom:1px solid var(--rr-line);box-shadow:none;border-radius:0}
.ygyp-r-hero.survey h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.2rem,5vw,4.2rem);line-height:1.02;color:var(--rr-navy);margin:0 0 14px}
.ygyp-r-hero.survey p{color:#526578;line-height:1.65;max-width:760px;margin:0}
.ygyp-r-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.ygyp-r-meta span{padding:7px 10px;border-radius:999px;border:1px solid var(--rr-line);background:#fff;color:#526578;font-size:.76rem;font-weight:800}

.ygyp-r-context{padding:24px 0;border-bottom:1px solid var(--rr-line)}
.ygyp-r-context h2{font-family:Georgia,'Times New Roman',serif;color:var(--rr-navy);font-size:1.7rem;margin:0 0 8px}
.ygyp-r-context p{color:#526578;line-height:1.65;margin:8px 0}

.ygyp-r-form{margin-top:28px;background:#fff;padding:0;box-shadow:none;border:0}
.ygyp-r-progress{display:grid;gap:8px;margin-bottom:34px}
.ygyp-r-progress-text{font-size:.78rem;font-weight:900;color:var(--rr-muted)}
.ygyp-r-progress>div{height:4px;border-radius:999px;background:#edf2f7;overflow:hidden}
.ygyp-r-progress i{display:block;height:100%;width:0;background:var(--rr-gold);transition:width .2s ease}
.ygyp-r-question{border:0;padding:0;margin:0}
.ygyp-r-question[hidden]{display:none!important}
.ygyp-r-question legend{font-family:Georgia,'Times New Roman',serif;font-weight:700;color:var(--rr-navy);font-size:clamp(1.55rem,3.5vw,2.3rem);line-height:1.22;margin-bottom:22px;width:100%}
.ygyp-r-question legend>span{font-family:Arial,Helvetica,sans-serif;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--rr-cream);color:var(--rr-gold);font-size:.82rem;margin-right:8px}
.ygyp-r-question legend small{display:block;font-family:Arial,Helvetica,sans-serif;font-size:.75rem;color:var(--rr-muted);font-weight:700;margin:8px 0 0 42px}
.ygyp-r-options{display:grid;gap:10px}
.ygyp-r-options label,.ygyp-r-consents label{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--rr-line);border-radius:12px;padding:13px 14px;background:#fff;cursor:pointer;transition:.15s}
.ygyp-r-options label:hover,.ygyp-r-consents label:hover{border-color:#b9c6d3;background:#fcfdff}
.ygyp-r-options input,.ygyp-r-consents input{margin-top:3px;accent-color:var(--rr-navy)}
.ygyp-r-options span,.ygyp-r-consents span{line-height:1.45}
.ygyp-r-question textarea,.ygyp-r-question input[type=text],.ygyp-r-contact-grid input,.ygyp-r-help-label select{width:100%;padding:13px 14px;border:1px solid var(--rr-line);border-radius:10px;font:inherit;background:#fff}
.ygyp-r-error{color:#b42318;font-size:.8rem;font-weight:800;margin-top:10px}
.ygyp-r-actions{display:flex;justify-content:space-between;gap:10px;margin-top:28px}
.ygyp-r-btn{appearance:none;border:0;border-radius:10px;background:var(--rr-navy);color:#fff!important;text-decoration:none!important;font-weight:900;padding:12px 18px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ygyp-r-back{background:#f1f5f9;color:var(--rr-navy)!important}
.ygyp-r-submit{background:var(--rr-coral)}
.ygyp-r-contact p{color:#526578;line-height:1.6}
.ygyp-r-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.ygyp-r-contact-grid label,.ygyp-r-help-label{font-size:.78rem;font-weight:850;color:var(--rr-muted)}
.ygyp-r-contact-grid input,.ygyp-r-help-label select{display:block;margin-top:6px}
.ygyp-r-help-label{display:block;margin:4px 0 16px}
.ygyp-r-consents{display:grid;gap:8px}
.ygyp-r-privacy{padding:12px 14px;border-radius:10px;background:var(--rr-soft);font-size:.82rem}
.ygyp-r-thanks{margin-top:24px;padding:28px;border-radius:14px;background:var(--rr-cream);border:1px solid #eadfca}
.ygyp-r-thanks h2{font-family:Georgia,'Times New Roman',serif;font-size:2rem;color:var(--rr-navy);margin:4px 0 10px}
.ygyp-r-thanks p{line-height:1.6;color:#425466}
.ygyp-r-note{margin-top:24px;padding-top:16px;border-top:1px solid var(--rr-line)}
.ygyp-r-note p{line-height:1.6;color:#526578;font-size:.9rem}

@media(max-width:800px){
  .ygyp-r-section-head,.ygyp-r-feature,.ygyp-r-feature.reverse,.ygyp-r-why-grid{grid-template-columns:1fr}
  .ygyp-r-feature.reverse .ygyp-r-feature-image,.ygyp-r-feature.reverse .ygyp-r-feature-copy{order:initial}
  .ygyp-r-ledby{align-items:flex-start;flex-direction:column}
  .ygyp-r-contact-grid{grid-template-columns:1fr}
  .ygyp-r-wrap{padding-inline:14px}
  .ygyp-r-editorial-hero{padding-top:34px}
}

.ygyp-r-quick-note{
  font-size:.88rem;
  color:var(--rr-muted)!important;
  margin-top:4px!important;
}
.ygyp-r-quick-note strong{color:var(--rr-navy)}

/* Research advocacy + live participation */
.ygyp-r-live-ticker{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:14px 0;border-bottom:1px solid var(--rr-line);
  color:#526578;font-size:.92rem
}
.ygyp-r-live-ticker strong{color:var(--rr-navy)}
.ygyp-r-live-ticker a{margin-left:auto;color:var(--rr-navy)!important;text-decoration:none!important;font-weight:900}
.ygyp-r-live-dot{width:8px;height:8px;border-radius:50%;background:var(--rr-coral);box-shadow:0 0 0 5px #f05a3a14}
.ygyp-r-advocate{
  display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);
  gap:34px;align-items:center;padding:34px 0;border-bottom:1px solid var(--rr-line)
}
.ygyp-r-advocate h2{font-family:Georgia,'Times New Roman',serif;color:var(--rr-navy);font-size:clamp(1.8rem,3vw,2.75rem);line-height:1.1;margin:4px 0 10px}
.ygyp-r-advocate p{color:#526578;line-height:1.62;margin:0}
.ygyp-r-share-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ygyp-r-share{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;border-radius:10px;text-decoration:none!important;font-weight:900;font-size:.9rem}
.ygyp-r-share.whatsapp{background:#eef9f2;color:#166534!important;border:1px solid #ccebd6}
.ygyp-r-share.facebook{background:#eef4fb;color:#174b84!important;border:1px solid #d5e3f2}
.ygyp-r-share-actions.compact{justify-content:flex-start}
.ygyp-r-inline-share{display:flex;gap:7px;align-items:center;margin-top:13px;font-size:.86rem;color:var(--rr-muted)}
.ygyp-r-inline-share a{color:#526578!important;text-decoration:none!important;font-weight:800}
.ygyp-r-inline-share a:hover{text-decoration:underline!important}
.ygyp-r-study-ticker{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  padding:12px 0;border-bottom:1px solid var(--rr-line);color:#526578;font-size:.86rem
}
.ygyp-r-study-ticker strong{color:var(--rr-navy)}
.ygyp-r-study-ticker a{color:#526578!important;text-decoration:none!important;font-weight:800;margin-left:8px}
.ygyp-r-study-ticker a:hover{text-decoration:underline!important}
.ygyp-r-thanks-share{margin:20px 0;padding:16px 0;border-top:1px solid #e8ddc9;border-bottom:1px solid #e8ddc9}
.ygyp-r-thanks-share p{margin:5px 0 12px}
@media(max-width:800px){
  .ygyp-r-advocate{grid-template-columns:1fr}
  .ygyp-r-share-actions{justify-content:flex-start}
  .ygyp-r-live-ticker a{margin-left:0;width:100%}
}

/* v1.0.5 campaign visual + conversion */
.ygyp-r-campaign-visual{display:block;margin:26px 0 8px;text-decoration:none!important}
.ygyp-r-campaign-visual img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid #ebe6dd}
.ygyp-r-convert{
  display:grid;grid-template-columns:minmax(0,1.4fr) auto;gap:28px;align-items:center;
  margin-top:36px;padding:26px 0;border-top:1px solid var(--rr-line);border-bottom:1px solid var(--rr-line)
}
.ygyp-r-convert h2{font-family:Georgia,'Times New Roman',serif;color:var(--rr-navy);font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.1;margin:4px 0 8px}
.ygyp-r-convert p{color:#526578;line-height:1.62;margin:0;max-width:760px}
.ygyp-r-convert-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--rr-navy);color:#fff!important;text-decoration:none!important;font-weight:900;padding:13px 18px;border-radius:10px;white-space:nowrap}
.ygyp-r-thanks-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.ygyp-r-btn-light{background:#fff!important;color:var(--rr-navy)!important;border:1px solid #d7dee7}
@media(max-width:800px){
  .ygyp-r-convert{grid-template-columns:1fr}
  .ygyp-r-convert-btn{width:100%}
}

/* v1.0.6 — current studies are text-only on the website.
   Portrait campaign graphics remain reserved for social-share previews. */
.ygyp-r-feature.text-only{
  grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);
  gap:46px;
  align-items:center;
}
.ygyp-r-study-title-panel{
  padding:24px 0;
}
.ygyp-r-study-title-panel .ygyp-r-now-open{
  display:block;
  font-family:Georgia,'Times New Roman',serif;
  color:var(--rr-gold);
  font-size:clamp(1.95rem,3.8vw,3.25rem);
  line-height:1;
  margin:5px 0 12px;
}
.ygyp-r-study-title-panel h3{
  font-family:Georgia,'Times New Roman',serif;
  color:var(--rr-navy);
  font-size:clamp(2rem,3.7vw,3.3rem);
  line-height:1.04;
  letter-spacing:-.025em;
  margin:0;
}
.ygyp-r-feature.text-only .ygyp-r-feature-copy{
  max-width:650px;
}
@media(max-width:800px){
  .ygyp-r-feature.text-only{grid-template-columns:1fr;gap:8px}
  .ygyp-r-study-title-panel{padding-bottom:6px}
}

.ygyp-r-question select{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--rr-line);
  border-radius:10px;
  font:inherit;
  background:#fff;
  color:var(--rr-text);
}
.ygyp-r-question legend .ygyp-r-instruction{
  color:var(--rr-navy);
  font-weight:800;
}


/* v1.0.11 — tighter research-page header + top spacing
   Scoped to Retire Ready Research pages only. */
body.ygyp-research-page{
  --ygyp-research-header-height:58px;
}

/* Remove theme/page-builder top gap before the research content. */
body.ygyp-research-page .site-content,
body.ygyp-research-page #content,
body.ygyp-research-page #primary,
body.ygyp-research-page main.site-main,
body.ygyp-research-page article.page,
body.ygyp-research-page .entry-content,
body.ygyp-research-page .wp-site-blocks,
body.ygyp-research-page .wp-block-post-content{
  margin-top:0!important;
  padding-top:0!important;
}

body.ygyp-research-page .ygyp-r-wrap{
  padding-top:10px;
}
body.ygyp-research-page .ygyp-r-editorial-hero{
  padding-top:26px;
  padding-bottom:36px;
}
body.ygyp-research-page .ygyp-r-survey{
  padding-top:16px;
}
body.ygyp-research-page .ygyp-r-hero.survey{
  padding-top:18px;
}

/* Compact the inherited global header on research pages without replacing it. */
body.ygyp-research-page header.site-header,
body.ygyp-research-page #masthead,
body.ygyp-research-page .site-header,
body.ygyp-research-page .elementor-location-header,
body.ygyp-research-page .wp-block-template-part > header{
  min-height:var(--ygyp-research-header-height)!important;
}

/* Common WordPress / builder navigation selectors, deliberately research-page scoped. */
body.ygyp-research-page header.site-header nav a,
body.ygyp-research-page #masthead nav a,
body.ygyp-research-page .site-header nav a,
body.ygyp-research-page .elementor-location-header nav a,
body.ygyp-research-page .wp-block-navigation a,
body.ygyp-research-page .wp-block-navigation-item__content{
  font-size:13px!important;
  line-height:1.2!important;
}

body.ygyp-research-page header.site-header nav > ul > li > a,
body.ygyp-research-page #masthead nav > ul > li > a,
body.ygyp-research-page .site-header nav > ul > li > a,
body.ygyp-research-page .elementor-location-header nav > ul > li > a,
body.ygyp-research-page .wp-block-navigation-item__content{
  padding-top:7px!important;
  padding-bottom:7px!important;
}

/* Keep header branding compact while preserving its proportions. */
body.ygyp-research-page header.site-header .custom-logo,
body.ygyp-research-page #masthead .custom-logo,
body.ygyp-research-page .site-header .custom-logo,
body.ygyp-research-page .elementor-location-header .custom-logo,
body.ygyp-research-page .wp-block-site-logo img{
  max-height:38px!important;
  width:auto!important;
}

/* Compact common header CTA/button treatments. */
body.ygyp-research-page header.site-header .wp-element-button,
body.ygyp-research-page #masthead .wp-element-button,
body.ygyp-research-page .site-header .wp-element-button,
body.ygyp-research-page .elementor-location-header .elementor-button,
body.ygyp-research-page .wp-block-template-part header .wp-element-button{
  font-size:13px!important;
  padding:10px 15px!important;
  min-height:auto!important;
}

@media (max-width:800px){
  body.ygyp-research-page .ygyp-r-wrap{padding-top:4px}
  body.ygyp-research-page .ygyp-r-editorial-hero{padding-top:20px}
  /* Do not force desktop nav sizing onto the mobile menu. */
  body.ygyp-research-page header.site-header nav a,
  body.ygyp-research-page #masthead nav a,
  body.ygyp-research-page .site-header nav a,
  body.ygyp-research-page .elementor-location-header nav a,
  body.ygyp-research-page .wp-block-navigation a,
  body.ygyp-research-page .wp-block-navigation-item__content{
    font-size:inherit!important;
  }
}


/* v1.0.13 — explicit personalised-support opt-in */
.ygyp-r-support-selected{
  margin:0 0 18px;
  padding:14px 16px;
  border-left:4px solid var(--rr-gold);
  background:#fffaf0;
  color:var(--rr-text);
}
.ygyp-r-support-selected strong{color:var(--rr-navy)}
.ygyp-r-support-selected p{margin:5px 0 0}
.ygyp-r-contact-error,
.ygyp-r-email-error{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #fecaca;
  background:#fff7f7;
  color:#991b1b;
  border-radius:8px;
  font-weight:700;
  font-size:14px;
}
