/* Forbes Retirement Advisors — Shared article stylesheet
   Used by every article published under /articles/<slug>.html
   Brand tokens align with Branding/brand.css; if those change, update both. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f0f4f8;
  --cream-dark: #e2eaf2;
  --navy-deep: #1a3a5c;
  --navy-mid: #2a5484;
  --green: #006747;
  --green-hover: #008866;
  --text-dark: #0f2137;
  --text-mid: #3a5068;
  --text-light: #6a85a0;
  --rule: #d6e0eb;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 19px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV (CANONICAL — must match index.html / about.html / services.html exactly) ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 5%;
  background: var(--navy-deep);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}
.nav-logo-img { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img img { height: 55px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 1.3rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--green-hover) !important; }

/* ── REG BANNER (matches site banner) ─── */
.reg-banner {
  background: var(--green);
  padding: 0.5rem 8%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-top: 5.2rem;  /* clear the fixed nav */
}
.reg-banner p { font-size: 0.95rem; font-weight: 500; color: #fff; margin: 0; }
.reg-banner p strong { font-weight: 700; }
.btn-banner {
  display: inline-block;
  background: var(--navy-deep);
  color: #fff;
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  white-space: nowrap;
}
.btn-banner:hover { background: var(--navy-mid); }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ── ARTICLE LAYOUT ─────────────────────────────────────────── */
.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--navy-deep);
  margin-bottom: 1.2rem;
  letter-spacing: -0.005em;
}

.article-deck {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--text-mid);
  margin-bottom: 1.8rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.byline strong { color: var(--text-dark); font-weight: 500; }
.byline .sep { color: var(--text-light); }

/* Body copy — sized for senior readability (19px floor) */
.article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--text-dark);
}

/* Drop cap on the first paragraph */
.article-body p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 0.9;
  float: left;
  padding: 0.3rem 0.7rem 0 0;
  color: var(--navy-deep);
}

.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 3rem 0 1.2rem;
}

.article-body h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy-deep);
  margin: 2.2rem 0 0.8rem;
  letter-spacing: 0.005em;
}

.article-body strong { font-weight: 600; color: var(--text-dark); }
.article-body em { font-style: italic; }

.article-body blockquote {
  border-left: 3px solid var(--green);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--navy-mid);
}

.stat-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
  border-radius: 2px;
}
.stat-card .label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.stat-card p { margin: 0; font-size: 1.1rem; }
.stat-card p + p { margin-top: 0.7rem; }

.article-body ul {
  margin: 1.2rem 0 1.8rem 1.4rem;
  padding-left: 0.5rem;
}
.article-body li {
  margin-bottom: 0.7rem;
  font-size: 1.18rem;
  line-height: 1.7;
}

/* CTA card with the four-outcomes pattern */
.cta-card {
  background: var(--navy-deep);
  color: #fff;
  padding: 3rem 2.5rem;
  margin: 4rem 0 2rem;
  border-radius: 2px;
  text-align: left;
}
.cta-card .eyebrow { color: #d4a843; }
.cta-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.2rem;
}
.cta-card p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.2rem;
}
.cta-card ol {
  margin: 1.2rem 0 1.6rem 1.4rem;
  color: rgba(255,255,255,0.88);
}
.cta-card ol li { margin-bottom: 0.5rem; font-size: 1.05rem; color: rgba(255,255,255,0.88); }
.cta-card strong { color: #fff; font-weight: 600; }
.cta-card ol li::marker { color: rgba(255,255,255,0.7); }
.cta-button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.95rem 1.8rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background 0.2s;
  font-size: 1.05rem;
}
.cta-button:hover { background: var(--green-hover); }

.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--rule);
  margin-top: 3rem;
  border-radius: 2px;
}
.author-bio .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy-deep);
  margin-bottom: 0.3rem;
}
.author-bio p { font-size: 1.02rem; line-height: 1.6; color: var(--text-mid); margin: 0; }

.disclosure {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-light);
  padding: 2rem 0 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 2rem 5%;
  text-align: center;
  font-size: 0.95rem;
}
footer a { color: var(--green); text-decoration: none; }
footer a:hover { color: var(--green-hover); }
