/* FHG Career Freedom v1.2 — wide-screen, editorial layout aligned with the site's Investment Growth calculator. */
.fhg-calculator {
  --fhg-ink:#36302b;--fhg-muted:#6c665f;--fhg-line:#e6ded5;
  --fhg-paper:#faf8f5;--fhg-note:#f0eae4;--fhg-gold:#a47e5f;
  --fhg-blue:#2457b2;--fhg-teal:#078c7e;--fhg-orange:#f59e0b;--fhg-red:#dc2626;
  box-sizing:border-box;position:relative;left:50%;transform:translateX(-50%);
  width:min(1512px, calc(100vw - 48px)) !important;max-width:none !important;
  margin:64px 0 76px !important;color:var(--fhg-ink);
  font-family:var(--wp--preset--font-family--body, "Montserrat", "Segoe UI", Arial, sans-serif);font-size:18px;line-height:1.75;
  isolation:isolate;
}
.fhg-calculator,.fhg-calculator *,.fhg-calculator *::before,.fhg-calculator *::after{box-sizing:border-box}
.fhg-calculator .fhg-shell{
  background:var(--fhg-paper);border:1px solid #e5ddd3;border-radius:0;
  padding:clamp(26px,4.25vw,66px);width:100%;max-width:none;
}
.fhg-calculator .fhg-hero{margin:0 0 48px}
.fhg-calculator .fhg-topline{display:flex;justify-content:space-between;align-items:center;gap:20px;
 font-size:15px;line-height:1.45;letter-spacing:.12em;font-weight:700;color:#5c5550}
.fhg-calculator .fhg-topline span:last-child{color:#a78f7d;font-weight:500;letter-spacing:.13em}
.fhg-calculator .fhg-line{height:1px;background:var(--fhg-line);margin:29px 0}
.fhg-calculator .fhg-hero .fhg-line{margin:26px 0 46px}
.fhg-calculator .fhg-eyebrow,.fhg-calculator .fhg-section-kicker{
 color:#a17a56;font-size:15px;line-height:1.5;font-weight:750;letter-spacing:.16em;text-transform:uppercase;
}
.fhg-calculator .fhg-eyebrow{margin:0 0 24px}
.fhg-calculator h1{
 font-family:var(--wp--preset--font-family--heading, 'Bodoni Moda', 'Didot', 'Times New Roman', Georgia, serif);
 font-size:clamp(44px,4.1vw,64px);font-weight:400;line-height:1.12;letter-spacing:-.036em;
 color:#302c29;max-width:1160px;margin:0 0 27px;padding:0;text-wrap:balance;
}
.fhg-calculator .fhg-intro{max-width:1300px}
.fhg-calculator .fhg-intro p{font-size:21px;line-height:1.88;color:#6e6861;margin:0 0 14px}
.fhg-calculator .fhg-hero-divider{height:1px;background:var(--fhg-line);margin:28px 0 30px}
.fhg-calculator .fhg-disclaimer{background:#f0ebe5;border-left:3px solid #a47e5f;padding:18px 22px;
 color:#706962;font-size:16px;line-height:1.72}
.fhg-calculator .fhg-section{
 padding:48px 0 53px;margin:0;background:transparent;border:0;border-bottom:1px solid var(--fhg-line);
 border-radius:0;box-shadow:none;width:100%;
}
.fhg-calculator .fhg-section.cream{background:transparent}
.fhg-calculator .fhg-section-kicker{margin-bottom:15px}
.fhg-calculator h2{font-family:var(--wp--preset--font-family--body, "Montserrat", "Segoe UI", Arial, sans-serif);font-size:clamp(26px,2.1vw,33px);font-weight:650;
 line-height:1.28;letter-spacing:-.025em;color:#38312c;margin:0 0 28px;padding:0}
.fhg-calculator h3{font-size:20px;font-weight:650;line-height:1.35;color:#443932;margin:0 0 13px}
.fhg-calculator p{font-size:17px;line-height:1.75;color:#6b635b;margin:10px 0 20px}
.fhg-calculator .fhg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 30px}
.fhg-calculator .fhg-field{min-width:0}
.fhg-calculator label{display:block;color:#5c5148;font-size:16px;font-weight:600;line-height:1.45;margin-bottom:9px}
.fhg-calculator input:not([type=radio]):not([type=checkbox]):not([type=range]),
.fhg-calculator select{display:block;width:100%;height:58px;min-height:58px;padding:13px 16px;
 border:1px solid #d9cfc3;border-radius:4px;background:#fffefa;color:#403832;
 font-family:inherit;font-size:18px;line-height:1.4;box-shadow:none}
.fhg-calculator input[type=range]{display:block;width:100%;min-height:22px;accent-color:#927255;cursor:pointer;margin:14px 0 22px}
.fhg-calculator button{font-family:inherit;cursor:pointer}
.fhg-calculator .fhg-btn{border:1px solid #d7cabd;border-radius:4px;background:#fffcf8;color:#6d513a;
 font-size:16px;font-weight:600;line-height:1.4;padding:12px 19px;min-height:48px}
.fhg-calculator .fhg-btn.is-active{background:#6e5342;border-color:#6e5342;color:white}
.fhg-calculator .fhg-btn:hover{background:#f2e9df}.fhg-calculator .fhg-btn.is-active:hover{background:#5a4132}
.fhg-calculator .fhg-btn.danger{color:#9a4039}
.fhg-calculator .fhg-button-row,.fhg-calculator .fhg-view-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 22px}
.fhg-calculator .fhg-inline{display:flex;justify-content:space-between;align-items:baseline;gap:20px}
.fhg-calculator .fhg-inline strong{white-space:nowrap;color:#4e3a2c;font-size:20px}
.fhg-calculator .fhg-grid2,.fhg-calculator .fhg-smallgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}
.fhg-calculator .fhg-panel{background:#f1eae2;border:1px solid #e8dfd5;border-radius:3px;padding:clamp(20px,2.2vw,31px);margin:21px 0}
.fhg-calculator .fhg-panel.sand{background:#eee5db}.fhg-calculator .fhg-panel.blue{background:#edf3fd}.fhg-calculator .fhg-panel.pink{background:#fdefed}
.fhg-calculator .fhg-note,.fhg-calculator .fhg-labelnote{font-size:15px;line-height:1.7;color:#777067}
.fhg-calculator .fhg-labelnote{margin-top:6px}
.fhg-calculator .fhg-choice{display:flex;align-items:flex-start;gap:13px;padding:11px 0;font-size:17px;line-height:1.55;color:#574b43;cursor:pointer;font-weight:400}
.fhg-calculator .fhg-choice input{margin-top:7px;accent-color:#806447}
.fhg-calculator .fhg-stat-label{font-size:16px;color:#78624e;margin-bottom:7px}
.fhg-calculator .fhg-stat{font-size:clamp(24px,2.2vw,34px);line-height:1.25;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.fhg-calculator .fhg-stat.main{font-size:clamp(39px,4vw,60px);margin:6px 0 10px}
.fhg-calculator .fhg-smallgrid>div{background:#fffdfb;padding:25px;border:1px solid #e8ded3;border-radius:3px;min-width:0}
.fhg-calculator .fhg-smallgrid .fhg-stat{font-size:clamp(19px,2vw,28px)}
.fhg-calculator .fhg-entry{background:#f5efe8;border:1px solid #e6dbce;border-radius:3px;padding:26px}
.fhg-calculator .fhg-entry>*+*{margin-top:14px}.fhg-calculator .fhg-entries{display:grid;gap:20px}
.fhg-calculator .fhg-tbl-wrap{overflow:auto;max-width:100%;border:1px solid #e6dbcf;border-radius:2px;background:#fff}
.fhg-calculator table{border-collapse:collapse;width:100%;min-width:510px;font-size:16px;line-height:1.5}
.fhg-calculator th,.fhg-calculator td{padding:16px 17px;border-bottom:1px solid #ece4db;text-align:left;vertical-align:top}
.fhg-calculator th{background:#efe9e2;color:#594b3d;font-weight:650;white-space:nowrap}
.fhg-calculator td.num,.fhg-calculator th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.fhg-calculator tr:last-child td{border-bottom:0}
.fhg-calculator .fhg-chart-wrap{padding:22px;background:#fff;border:1px solid #e5dbd1;width:100%;overflow:hidden}
.fhg-calculator .fhg-chart-wrap svg{width:100%;height:auto;display:block}
.fhg-calculator .fhg-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0 29px}
.fhg-calculator .fhg-key{display:flex;align-items:center;gap:12px;font-size:16px;line-height:1.45;color:#5f554b}
.fhg-calculator .fhg-key svg{flex:none;width:45px;height:16px}
.fhg-calculator .fhg-pill{font-size:12px;background:#e5d5c2;border-radius:20px;padding:3px 8px;color:#6c503a}
.fhg-calculator details{border-top:1px solid #e5dbd0;margin-top:17px;padding-top:17px}
.fhg-calculator summary{font-weight:650;cursor:pointer;color:#6c503d;font-size:17px}
.fhg-calculator .fhg-formula{padding:18px 22px;background:#f1e8df;border-radius:3px;font-size:16px;white-space:normal}
.fhg-calculator .fhg-foot{text-align:center;padding:36px 12px 10px;color:#806348;font-size:14px}
.fhg-calculator .fhg-foot strong{letter-spacing:.12em}
.fhg-calculator .fhg-foot p{font-size:14px}
.fhg-calculator .fhg-pass{color:#137b60;font-weight:700}.fhg-calculator .fhg-warn{color:#b42318;font-weight:700}
.fhg-calculator .fhg-highlight{font-weight:700;color:#4f392b}.fhg-calculator .fhg-muted{color:#857363}
.fhg-calculator .fhg-slider-value{font-size:21px;font-weight:700;color:#493627}
.fhg-calculator .fhg-unfunded{background:#fff2ed}
.fhg-calculator .fhg-checkbox-grid{display:grid;gap:4px}
.fhg-calculator .fhg-ticks{display:flex;justify-content:space-between;font-size:13px;color:#857363}
.fhg-calculator button:focus-visible,.fhg-calculator input:focus-visible,.fhg-calculator select:focus-visible,.fhg-calculator summary:focus-visible{outline:3px solid #6c9cda;outline-offset:2px}
@media(max-width:900px){.fhg-calculator{width:calc(100vw - 32px)!important;margin:30px 0 45px!important}
 .fhg-calculator .fhg-shell{padding:30px}.fhg-calculator .fhg-hero .fhg-line{margin:24px 0 34px}
 .fhg-calculator h1{font-size:clamp(39px,5.5vw,57px)}.fhg-calculator .fhg-intro p{font-size:19px}
 .fhg-calculator .fhg-section{padding:37px 0}.fhg-calculator h2{font-size:29px}}
@media(max-width:650px){.fhg-calculator{width:calc(100vw - 20px)!important;margin:14px 0 32px!important;font-size:16px}
 .fhg-calculator .fhg-shell{padding:20px 17px}.fhg-calculator .fhg-hero{margin-bottom:22px}
 .fhg-calculator .fhg-topline{font-size:10px;letter-spacing:.06em;gap:6px}
 .fhg-calculator .fhg-hero .fhg-line{margin:18px 0 30px}.fhg-calculator .fhg-eyebrow,.fhg-calculator .fhg-section-kicker{font-size:12px;letter-spacing:.1em}
 .fhg-calculator h1{font-size:clamp(35px,8.5vw,49px);line-height:1.13}
 .fhg-calculator .fhg-intro p{font-size:16px;line-height:1.78}
 .fhg-calculator .fhg-disclaimer{font-size:14px;padding:15px}
 .fhg-calculator h2{font-size:25px;margin-bottom:22px}.fhg-calculator .fhg-section{padding:32px 0}
 .fhg-calculator .fhg-fields,.fhg-calculator .fhg-grid2,.fhg-calculator .fhg-smallgrid,.fhg-calculator .fhg-legend{grid-template-columns:1fr;gap:14px}
 .fhg-calculator input:not([type=radio]):not([type=checkbox]):not([type=range]),.fhg-calculator select{height:51px;min-height:51px;font-size:16px}
 .fhg-calculator label,.fhg-calculator .fhg-choice{font-size:15px}.fhg-calculator .fhg-btn{min-height:42px;font-size:14px;padding:10px 13px}
 .fhg-calculator .fhg-entry,.fhg-calculator .fhg-panel{padding:17px}
 .fhg-calculator .fhg-chart-wrap{padding:10px 3px}.fhg-calculator table{font-size:13px}.fhg-calculator th,.fhg-calculator td{padding:11px 12px}}

/* v1.3.0 — exact design tokens and sizing taken from uploaded
   fhg-investment-growth v1.5.1 calculator.css, NOT screenshot estimates.
   Scope all rules to the Career Freedom shortcode. */
.fhg-calculator {
 --fhg-ink:#38332f;--fhg-muted:#69625c;--fhg-line:#e5ddd5;
 --fhg-paper:#faf8f4;--fhg-note:#f1ece5;--fhg-gold:#96735f;
 width:min(1200px,calc(100vw - 48px))!important;max-width:none!important;
 margin:28px auto 40px!important;position:relative!important;left:50%!important;
 transform:translateX(-50%)!important;
 font-family:inherit!important;font-size:16px!important;line-height:1.6!important;
 color:#38332f!important;
}
.fhg-calculator .fhg-shell{padding:clamp(22px,3.6vw,52px)!important;
 background:#faf8f4!important;border:1px solid #e5ddd5!important;border-radius:0!important}
.fhg-calculator .fhg-hero{margin:0 0 0!important;padding:0 0 24px!important;border-bottom:1px solid #e5ddd5!important}
.fhg-calculator .fhg-topline{font-size:12px!important;line-height:1.5!important;letter-spacing:.10em!important;
 padding-bottom:21px!important;border-bottom:1px solid #e9e3dc!important;align-items:baseline!important;
 font-weight:650!important;color:#57514b!important}
.fhg-calculator .fhg-topline span:last-child{font-weight:400!important;color:#a18d7b!important;letter-spacing:.10em!important}
.fhg-calculator .fhg-hero>.fhg-line{display:none!important}
.fhg-calculator .fhg-eyebrow{margin:0 0 17px!important;padding:35px 0 0!important;
 font-size:12px!important;line-height:1.55!important;letter-spacing:.17em!important;
 font-weight:700!important;color:#9b7b57!important}
.fhg-calculator h1{font-family:'Playfair Display',Georgia,'Times New Roman',serif!important;
 font-size:clamp(30px,3.3vw,44px)!important;line-height:1.2!important;
 letter-spacing:-.025em!important;font-weight:400!important;color:#302c29!important;
 margin:0 0 19px!important;max-width:none!important;text-wrap:wrap!important}
.fhg-calculator .fhg-intro{max-width:none!important}
.fhg-calculator .fhg-intro p{max-width:1050px!important;color:#69625c!important;
 font-size:clamp(15px,1.25vw,17px)!important;line-height:1.75!important;
 margin:0 0 12px!important}
.fhg-calculator .fhg-intro p:last-child{margin-bottom:0!important}
.fhg-calculator .fhg-hero-divider{display:none!important}
.fhg-calculator .fhg-disclaimer{border-left:2px solid #96735f!important;padding:14px 18px!important;
 background:#f1ece5!important;font-size:14px!important;line-height:1.6!important;
 color:#69625c!important;margin:24px 0 0!important}
.fhg-calculator .fhg-section,.fhg-calculator .fhg-section.cream{
 padding:34px 0!important;border-bottom:1px solid #e5ddd5!important;background:transparent!important}
.fhg-calculator .fhg-section-kicker{color:#96735f!important;font-size:11px!important;
 letter-spacing:2px!important;font-weight:700!important;line-height:1.5!important;margin-bottom:13px!important}
.fhg-calculator h2{font-family:Georgia,'Times New Roman',serif!important;
 font-size:clamp(24px,3.2vw,33px)!important;font-weight:400!important;line-height:1.2!important;
 color:#38332f!important;letter-spacing:normal!important;margin:0 0 16px!important}
.fhg-calculator h3{font-family:Georgia,'Times New Roman',serif!important;
 font-size:21px!important;font-weight:400!important;line-height:1.2!important;margin:14px 0 10px!important;
 color:#38332f!important}
.fhg-calculator p{font-size:16px!important;line-height:1.6!important;color:#69625c!important;margin:10px 0 14px!important}
.fhg-calculator .fhg-intro p{font-size:clamp(15px,1.25vw,17px)!important;line-height:1.75!important;margin:0 0 12px!important}
.fhg-calculator .fhg-fields{gap:24px!important}
.fhg-calculator label{font-size:14px!important;font-weight:600!important;line-height:1.6!important;
 color:#38332f!important;margin-bottom:0!important}
.fhg-calculator input:not([type=radio]):not([type=checkbox]):not([type=range]),.fhg-calculator select{
 width:100%!important;height:auto!important;min-height:0!important;
 margin:8px 0 10px!important;border:1px solid #e5ddd5!important;
 border-radius:2px!important;padding:10px 12px!important;
 font-size:16px!important;font-family:inherit!important;color:#38332f!important;
 background:#fff!important;box-shadow:none!important;line-height:1.6!important}
.fhg-calculator input[type=range]{margin:14px 0 4px!important;accent-color:#96735f!important}
.fhg-calculator .fhg-btn{font-size:14px!important;font-weight:500!important;
 padding:11px 20px!important;min-height:0!important;border-radius:0!important;
 border-color:#96735f!important;background:#96735f!important;color:#fff!important}
.fhg-calculator .fhg-btn.is-active{background:#796050!important;color:#fff!important;border-color:#796050!important}
.fhg-calculator .fhg-btn:not(.is-active):hover{background:#84644e!important;color:#fff!important}
.fhg-calculator .fhg-btn.danger{background:transparent!important;color:#96735f!important}
.fhg-calculator .fhg-panel,.fhg-calculator .fhg-panel.sand{
 background:#f1ece5!important;border:0!important;border-radius:0!important;
 padding:24px!important;margin:18px 0 25px!important}
.fhg-calculator .fhg-panel.blue{background:#eff3fa!important}
.fhg-calculator .fhg-panel.pink{background:#fdf0ee!important}
.fhg-calculator .fhg-entry{background:#f8f5f0!important;border:1px solid #e5ddd5!important;
 border-radius:0!important;padding:20px!important}
.fhg-calculator .fhg-choice{font-size:14px!important;line-height:1.6!important}
.fhg-calculator .fhg-note,.fhg-calculator .fhg-labelnote{font-size:13px!important;line-height:1.6!important;color:#69625c!important}
.fhg-calculator .fhg-stat-label{font-size:14px!important;color:#69625c!important}
.fhg-calculator .fhg-stat{font-size:clamp(19px,2.5vw,27px)!important;font-weight:550!important}
.fhg-calculator .fhg-stat.main{font-size:clamp(28px,4.2vw,43px)!important;font-weight:500!important}
.fhg-calculator .fhg-smallgrid>div{padding:16px!important;background:transparent!important;
 border:0!important;border-radius:0!important}
.fhg-calculator .fhg-smallgrid>div+div{border-left:1px solid #dcd0c3!important}
.fhg-calculator .fhg-chart-wrap{padding:0!important;border:0!important;background:transparent!important}
.fhg-calculator .fhg-key{font-size:12px!important;gap:6px!important}
.fhg-calculator .fhg-legend{display:flex!important;flex-wrap:wrap!important;gap:20px!important;margin:12px 0 15px!important}
.fhg-calculator table{font-size:12px!important;line-height:1.6!important;min-width:520px!important}
.fhg-calculator th,.fhg-calculator td{padding:10px 8px!important;border-bottom:1px solid #e5ddd5!important}
.fhg-calculator th{background:#f4eee8!important;color:#38332f!important}
.fhg-calculator details{border:1px solid #e5ddd5!important;background:#fff!important;padding:0 16px!important;margin-top:13px!important}
.fhg-calculator summary{font-size:14px!important;font-weight:600!important;padding:17px 4px!important}
.fhg-calculator .fhg-formula{background:#f1ece5!important;border-radius:0!important;font-size:19px!important}
.fhg-calculator .fhg-ticks{font-size:12px!important;color:#69625c!important}
.fhg-calculator .fhg-foot{font-size:14px!important;color:#69625c!important}
@media(max-width:700px){
 .fhg-calculator{width:calc(100vw - 24px)!important;margin:12px 0 28px!important}
 .fhg-calculator .fhg-shell{padding:22px 16px!important}
 .fhg-calculator .fhg-topline{font-size:10px!important;padding-bottom:14px!important}
 .fhg-calculator .fhg-eyebrow{font-size:11px!important;padding-top:27px!important;margin-bottom:12px!important}
 .fhg-calculator h1{font-size:clamp(27px,7vw,36px)!important;letter-spacing:-.025em!important;margin-bottom:14px!important}
 .fhg-calculator .fhg-intro p{line-height:1.7!important}
 .fhg-calculator .fhg-section{padding:27px 0!important}
 .fhg-calculator .fhg-fields{grid-template-columns:1fr!important;gap:20px!important}
 .fhg-calculator .fhg-smallgrid>div+div{border-left:0!important;border-top:1px solid #dcd0c3!important}
 .fhg-calculator .fhg-panel{padding:17px!important}
}

/* v1.4.0 — correct page-level parity with Investment Growth v1.5.1.
   Namespaced lede prevents collisions with theme/other plugin intro classes. */
.fhg-calculator .fhg-hero{background:transparent!important;text-align:left!important;padding:0 0 24px!important;margin:0!important;border-bottom:1px solid #e5ddd5!important;box-shadow:none!important;}
.fhg-calculator .fhg-career-lede,.fhg-calculator .fhg-career-lede p{background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:left!important;text-indent:0!important;max-width:none!important;min-height:0!important;min-width:0!important;}
.fhg-calculator .fhg-career-lede{display:block!important;width:100%!important;margin:0!important;padding:0!important;}
.fhg-calculator .fhg-career-lede p{display:block!important;font-size:clamp(15px,1.25vw,17px)!important;line-height:1.75!important;color:#69625c!important;font-weight:400!important;letter-spacing:normal!important;margin:0 0 12px!important;padding:0!important;}
.fhg-calculator .fhg-career-lede p:last-child{margin-bottom:0!important;}
.fhg-calculator .fhg-hero h1{font-family:'Playfair Display',Georgia,'Times New Roman',serif!important;font-size:clamp(30px,2.9vw,38px)!important;line-height:1.22!important;font-weight:400!important;letter-spacing:-.025em!important;text-align:left!important;max-width:none!important;margin:0 0 19px!important;padding:0!important;}
.fhg-calculator .fhg-eyebrow{background:transparent!important;text-align:left!important;}
.fhg-calculator .fhg-disclaimer{text-align:left!important;display:block!important;}
.fhg-calculator .fhg-section{background:transparent!important;text-align:left!important;}
@media(max-width:700px){.fhg-calculator .fhg-hero h1{font-size:clamp(27px,6vw,35px)!important;}}

/* v1.5.0 — Standard Finance Homeground contact panel, matched to Investment Growth v1.5.1. */
.fhg-calculator .fhg-career-contact{box-sizing:border-box;clear:both;padding:25px 24px;margin:25px 0 4px;text-align:center;border:1px solid #e8e5de;border-radius:11px;background:#f8f7f4}
.fhg-calculator .fhg-career-contact h3{font-family:'Playfair Display',Georgia,serif!important;font-size:22px!important;font-weight:400!important;line-height:1.35!important;margin:0 0 9px!important;color:#37332f!important}
.fhg-calculator .fhg-career-contact p{font-size:13px!important;line-height:1.65!important;max-width:580px!important;margin:0 auto 17px!important;color:#69625c!important}
.fhg-calculator .fhg-career-contact .fhg-career-contact-button{display:inline-block;padding:11px 22px;border:0!important;border-radius:6px;background:#496d5b!important;color:#fff!important;text-decoration:none!important;font-size:13px!important;line-height:1.5!important;font-weight:600!important;box-shadow:none!important;transition:background .15s ease}
.fhg-calculator .fhg-career-contact .fhg-career-contact-button:hover{background:#355544!important;color:#fff!important}
.fhg-calculator .fhg-career-contact .fhg-career-contact-button:focus-visible{outline:3px solid #a2c7b4;outline-offset:3px}
@media(max-width:540px){.fhg-calculator .fhg-career-contact{padding:24px 18px}}

/* v1.8.0: chart readability, no global layout changes */
.fhg-calculator .fhg-chart-explain{font-size:14px;line-height:1.65;color:#5c6470;margin:12px 0 16px;padding:12px 15px;border-left:3px solid #64748b;background:#f4f6f8}
.fhg-calculator .fhg-chart-wrap svg{overflow:visible;max-width:100%}

/* v1.9: match Investment Growth's airy chart language without changing layout */
.fhg-calculator .fhg-chart-wrap{background:transparent!important;border:0!important;padding:8px 0 0!important;overflow:hidden!important}
.fhg-calculator .fhg-chart-wrap svg{width:100%!important;height:auto!important;display:block!important;overflow:visible!important;max-width:100%!important}
.fhg-calculator .fhg-legend{gap:20px!important;margin:12px 0 15px!important}
.fhg-calculator .fhg-key{font-size:12px!important;color:#69625c!important;gap:6px!important}
.fhg-calculator .fhg-key svg{width:23px!important;height:12px!important}

/* v2.0: align chart explanatory copy with the understated Investment Growth style. */
.fhg-calculator .fhg-chart-explain {background:transparent!important;border:0!important;padding:0!important;margin:9px 0 23px!important;font-size:13px!important;line-height:1.65!important;color:#756d65!important;}
.fhg-calculator .fhg-chart-explain strong {font-weight:600;color:#4f4943;}
.fhg-calculator .fhg-legend {margin:14px 0 8px!important;}

/* v2.1: clear beginner-friendly graph explanations and monetary axes */
.fhg-calculator .fhg-chart-explain p{margin:7px 0!important;font-size:14px!important;line-height:1.65!important;color:#655c54!important}
.fhg-calculator .fhg-chart-explain p:last-child{margin-bottom:16px!important}

/* v2.3.0: accessible readout for actual chart ledger values */
.fhg-calculator .fhg-chart-wrap{position:relative}
.fhg-calculator .fhg-chart-tooltip{position:absolute;z-index:12;pointer-events:none;min-width:220px;max-width:min(285px,calc(100% - 16px));padding:11px 13px;border:1px solid #ddd2c6;border-radius:4px;background:rgba(255,253,250,.98);box-shadow:0 5px 18px rgba(44,37,30,.14);font-size:12px;line-height:1.45;color:#443a33}
.fhg-calculator .fhg-chart-tooltip[hidden]{display:none!important}
.fhg-calculator .fhg-chart-tooltip strong{display:block;margin-bottom:7px;font-size:13px}
.fhg-calculator .fhg-chart-tooltip>div{display:flex;align-items:baseline;justify-content:space-between;gap:9px;padding:2px 0}
.fhg-calculator .fhg-chart-tooltip b{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;font-weight:650}
.fhg-calculator .fhg-tip-blue{color:#5279a5}.fhg-calculator .fhg-tip-green{color:#658c80}.fhg-calculator .fhg-tip-orange{color:#bf853e}.fhg-calculator .fhg-tip-red{color:#b55c61}

/* Version 2.5.0 — legible signed annual cash-flow bridge. */
.fhg-calculator .fhg-flow-table table{min-width:470px}
.fhg-calculator .fhg-flow-table td{font-size:clamp(14px,1.1vw,16px);padding:13px 17px}
.fhg-calculator .fhg-summary-heading td{background:#f5f0ea;color:#685745;font-weight:700;font-size:13px;letter-spacing:.02em;padding:11px 17px}
.fhg-calculator .fhg-summary-boundary td{background:#fffdf9}
.fhg-calculator .fhg-summary-total td{background:#ede7de;border-top:2px solid #b6a08b;font-size:17px}
.fhg-calculator .fhg-positive{color:#28785e;font-weight:600}
.fhg-calculator .fhg-negative{color:#ae504d;font-weight:600}
.fhg-calculator .fhg-ledger-status{color:#696059;font-size:13px}
.fhg-calculator .fhg-ledger-intro{margin:10px 0 2px}
.fhg-calculator .fhg-ledger-intro p{font-size:15px;color:#6d6055;margin:7px 0 0;line-height:1.65}
.fhg-calculator .fhg-year-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fhg-calculator .fhg-year-metrics>div{background:#f8f4ee;border:1px solid #e9dfd5;padding:15px;display:flex;flex-direction:column;gap:5px}
.fhg-calculator .fhg-year-metrics span{font-size:13px;color:#6c625b}
.fhg-calculator .fhg-year-metrics strong{font-size:16px;letter-spacing:0;font-variant-numeric:tabular-nums}
.fhg-calculator .fhg-ledger-notice{border-left:3px solid #a48a70;background:#f4eee6;padding:17px 19px;font-size:15px;line-height:1.65;color:#554d44}
.fhg-calculator .fhg-year-link{border:0;background:none;color:#795a43;text-decoration:underline;text-underline-offset:3px;font:inherit;font-weight:700;cursor:pointer;padding:0}
.fhg-calculator .fhg-year-link:hover,.fhg-calculator .fhg-year-link:focus-visible{color:#3f3027}
.fhg-calculator .fhg-audit-toggle{margin-top:4px}
@media(max-width:620px){.fhg-calculator .fhg-year-metrics{grid-template-columns:1fr}.fhg-calculator .fhg-flow-table table{min-width:390px}}

/* v2.7.0: single-glance yearly breakdown; only the annual summary is compact.
   The year detail and underlying audit tables retain their previous sizing. */
.fhg-calculator .fhg-annual-compact .fhg-tbl-wrap{width:100%;max-width:100%;}
.fhg-calculator .fhg-annual-compact table{width:100%;min-width:0;table-layout:auto;font-size:clamp(11px,0.84vw,13px);line-height:1.35}
.fhg-calculator .fhg-annual-compact th,
.fhg-calculator .fhg-annual-compact td{padding:12px 7px;vertical-align:middle;white-space:nowrap}
.fhg-calculator .fhg-annual-compact th{font-size:clamp(10.5px,0.8vw,12.5px);letter-spacing:-.01em}
.fhg-calculator .fhg-annual-compact td:first-child,
.fhg-calculator .fhg-annual-compact th:first-child{text-align:center;width:43px;padding-left:6px;padding-right:6px}
.fhg-calculator .fhg-annual-compact td:last-child,
.fhg-calculator .fhg-annual-compact th:last-child{text-align:center;white-space:normal;min-width:72px;max-width:104px}
.fhg-calculator .fhg-annual-compact .fhg-year-link{display:inline-block;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;font-size:inherit;line-height:1.2}
.fhg-calculator .fhg-annual-compact td.num{font-variant-numeric:tabular-nums}
@media(max-width:1050px){
 .fhg-calculator .fhg-annual-compact table{min-width:920px}
}
@media(max-width:620px){
 .fhg-calculator .fhg-annual-compact table{min-width:920px}
 .fhg-calculator .fhg-annual-compact th,.fhg-calculator .fhg-annual-compact td{font-size:12px;padding:10px 7px}
}
