/*
 * Early Retirement campaign articles.
 * Loaded after early-retirement.css (shared tokens, buttons, cards) on posts using the
 * Early Retirement Article template. Scoped to .hbfp-er like the microsite styles.
 */
.hbfp-er .post-head{padding-top:56px;padding-bottom:28px}
.hbfp-er .crumbs2{font-family:var(--ui);font-size:.85rem;color:var(--muted);margin-bottom:22px}
.hbfp-er .crumbs2 a{text-decoration:none}
.hbfp-er .tag{display:inline-block;font-family:var(--ui);font-size:.75rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff;background:var(--steel);padding:5px 12px;border-radius:3px;margin-bottom:16px}
.hbfp-er .post-head h1{font-size:clamp(2rem,4vw,3.1rem);max-width:900px}
.hbfp-er .post-meta{display:flex;flex-wrap:wrap;gap:8px 22px;font-family:var(--ui);font-size:.92rem;color:var(--muted);margin-top:14px}
.hbfp-er .post-meta b{color:var(--navy)}
.hbfp-er .hero-photo{position:relative;height:clamp(240px,40vw,520px);border-radius:14px;overflow:hidden;margin:0;
  background:radial-gradient(900px 400px at 80% 10%,rgba(169,198,201,.55),transparent 60%),radial-gradient(700px 400px at 10% 100%,rgba(222,201,164,.45),transparent 60%),linear-gradient(135deg,#2b5670,#0b2340)}
.hbfp-er .hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.hbfp-er .hero-photo .ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;padding:24px;gap:10px}
.hbfp-er .hero-photo .ph b{font-family:var(--ui);letter-spacing:.16em;text-transform:uppercase;font-size:.8rem;color:var(--sand)}
.hbfp-er .hero-photo .ph span{font-family:var(--head);font-size:clamp(1rem,2vw,1.35rem);max-width:640px;line-height:1.4}
.hbfp-er .hero-photo .ph i{font-style:normal;font-family:var(--ui);font-size:.82rem;color:#cfe0e2}
.hbfp-er .layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:64px;padding-top:48px;padding-bottom:80px}
.hbfp-er .article{max-width:740px;font-size:1.08rem;line-height:1.75}
.hbfp-er .article .meta-desc{display:none}
.hbfp-er .article p{margin-bottom:1.2em}
.hbfp-er .article h2{font-size:1.6rem;margin:1.8em 0 .55em}
.hbfp-er .article ul,.hbfp-er .article ol{padding-left:1.3em;margin:0 0 1.3em}
.hbfp-er .article li{margin-bottom:.45em}
.hbfp-er .article li::marker{color:var(--clay)}
.hbfp-er .article blockquote{margin:2em 0;background:var(--sand-tint);border-left:5px solid var(--clay);padding:22px 26px;border-radius:0 10px 10px 0;font-size:1.05rem}
.hbfp-er .article blockquote p{margin:0}
.hbfp-er .article table{width:100%;border-collapse:collapse;margin:1.5em 0;font-size:.95rem}
.hbfp-er .article th{background:var(--navy);color:#fff;font-family:var(--ui);text-align:left;padding:10px 12px}
.hbfp-er .article td{border-bottom:1px solid var(--line);padding:10px 12px;vertical-align:top}
.hbfp-er .lead{font-size:1.25rem;line-height:1.6;color:var(--navy)}
.hbfp-er .fig{margin:2.2em 0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px 26px 18px;box-shadow:0 6px 20px rgba(11,35,64,.05)}
.hbfp-er .fig h4{font-family:var(--head);font-size:1.15rem;margin-bottom:4px}
.hbfp-er .fig .sub{font-family:var(--ui);font-size:.85rem;color:var(--muted);margin-bottom:14px}
.hbfp-er .fig svg{width:100%;height:auto;display:block}
.hbfp-er .fig figcaption{font-family:var(--ui);font-size:.8rem;color:var(--muted);margin-top:10px}
.hbfp-er .callout{display:flex;gap:16px;background:var(--sea-tint);border-radius:12px;padding:20px 22px;margin:1.8em 0}
.hbfp-er .callout .ci{flex:0 0 44px;height:44px;border-radius:10px;background:#fff;display:grid;place-items:center}
.hbfp-er .callout b{display:block;font-family:var(--head);color:var(--navy);font-size:1.08rem;margin-bottom:2px}
.hbfp-er .callout p{margin:0;font-size:.98rem}
.hbfp-er .optcards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:1.6em 0 2em}
.hbfp-er .optcard{border:1px solid var(--line);border-radius:12px;padding:18px 18px 16px;border-top:5px solid var(--steel);background:#fff}
.hbfp-er .optcard h4{font-family:var(--head);font-size:1.08rem;margin-bottom:2px}
.hbfp-er .optcard .len{font-family:var(--ui);font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--clay);margin-bottom:6px}
.hbfp-er .optcard p{font-size:.93rem;margin:0;line-height:1.55;color:var(--muted)}
.hbfp-er .qgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:1.4em 0 1.8em;counter-reset:q;padding:0!important;list-style:none}
.hbfp-er .qgrid li{counter-increment:q;display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:0!important;font-size:.98rem;line-height:1.5}
.hbfp-er .qgrid li::before{content:counter(q);flex:0 0 30px;height:30px;border-radius:50%;background:var(--navy);color:#fff;font-family:var(--ui);font-weight:700;display:grid;place-items:center;font-size:.9rem}
.hbfp-er .side{position:sticky;top:var(--er-header-clear);align-self:start}
.hbfp-er .toc{border-left:3px solid var(--sea);padding-left:18px;margin-bottom:28px}
.hbfp-er .toc b{font-family:var(--ui);font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--clay);display:block;margin-bottom:10px}
.hbfp-er .toc a{display:block;font-family:var(--ui);font-size:.92rem;text-decoration:none;color:var(--steel);padding:5px 0;line-height:1.35}
.hbfp-er .toc a:hover{color:var(--navy)}
.hbfp-er .side-cta{background:var(--navy);color:#fff;border-radius:14px;padding:26px 24px}
.hbfp-er .side-cta h3{color:#fff;font-size:1.25rem}
.hbfp-er .side-cta p{color:#d7e4e6;font-size:.95rem}
.hbfp-er .side-cta .er-btn{width:100%;justify-content:center;margin-top:6px}
.hbfp-er .author{display:flex;gap:18px;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;margin:2.4em 0}
.hbfp-er .author .av{flex:0 0 72px;height:72px;border-radius:50%;background:var(--sea-tint);display:grid;place-items:center;font-family:var(--ui);font-size:.7rem;color:var(--muted);text-align:center}
.hbfp-er .author b{font-family:var(--head);color:var(--navy);font-size:1.05rem}
.hbfp-er .author p{margin:2px 0 0;font-size:.92rem;color:var(--muted)}
.hbfp-er .post-disc{font-family:var(--ui);font-size:.78rem;color:var(--muted);line-height:1.55;border-top:1px solid var(--line);padding-top:18px}
.hbfp-er .related{background:var(--sea-tint);padding:72px 0}
.hbfp-er .related .news{margin-top:32px}
.hbfp-er .related .post .thumb{height:120px}
@media (max-width:980px){.hbfp-er .layout{grid-template-columns:1fr;gap:20px}.hbfp-er .side{position:static}.hbfp-er .toc{display:none}}
@media (max-width:640px){.hbfp-er .optcards,.hbfp-er .qgrid{grid-template-columns:1fr}.hbfp-er .fig{padding:18px 14px 12px}.hbfp-er .article{font-size:1.02rem}}

/* ===== Fit inside the theme ===== */
/* The handoff set .post-head/.layout padding as "Npx 0 Npx", which removed .wrap's side gutter:
   text touched the edge on phones. Only top/bottom are set above. The topic tag also inherited
   the microsite's .tag margin-left (assessment "Priority" badge); line it up with the text. */
.hbfp-er .post-head .tag{margin-left:0}
.hbfp-er .article [id]{scroll-margin-top:var(--er-anchor-clear)}
.hbfp-er .hero-photo img{position:absolute;inset:0}
.hbfp-er .author .av{overflow:hidden}
.hbfp-er .author .av img{width:100%;height:100%;object-fit:cover}
.hbfp-er .related .post .thumb img{width:100%;height:100%;object-fit:cover}
