/* Silver Grove Financial Calculators — scoped styles (extracted for native page use). */
/* ============================================================
   Silver Grove calculators — styles (scoped to .sgc)
   Swap the brand tokens below for exact Silver Grove values.
   ============================================================ */
.sgc{ font-variant-numeric:lining-nums;
  /* Silver Grove brand tokens (from the new website's design system) */
  --sg-green:#5c6c13;      /* olive — primary */
  --sg-green-2:#5c6c13;    /* olive — links, focus */
  --sg-deep:#4c5a0e;       /* olive-deep — feature bands */
  --sg-dark:#31302e;       /* mineshaft — hero */
  --sg-green-3:#eef0e3;
  --sg-lav:#f5f5f5;        /* limestone — results panel */
  --sg-lav-2:#dededb;
  --sg-lav-3:#f3f1ff;      /* lavender tint */
  --sg-lavender:#dcd6ff;   /* lavender — accent */
  --sg-ink:#232323; --sg-muted:#494a43; --sg-line:#dededb; --sg-input:#d7d8d5; --sg-bg:#ffffff; --sg-page:#f5f5f5;
  --sg-bad:#a8361f;
  --sg-radius:4px;
  --sg-radius-md:16px;
  --sg-radius-lg:28px;
  --sg-border-brand:rgba(76,90,14,.14);
  --sg-font:"Epilogue","DM Sans",ui-sans-serif,system-ui,sans-serif;
  --sg-head:"Playfair Display",Georgia,serif;
  font-family:var(--sg-font); color:var(--sg-ink); line-height:1.45;
  max-width:1080px; margin:0 auto; -webkit-font-smoothing:antialiased;
}
.sgc *, .sgc *::before, .sgc *::after{ box-sizing:border-box; }
.sgc a{ color:inherit; }
.sgc button{ font:inherit; }

/* hero */
.sgc-hero{ background:var(--sg-dark); color:#f5f5f5; border-radius:var(--sg-radius-lg); padding:48px 40px 40px; position:relative; overflow:hidden; }
.sgc-hero::after{ content:""; position:absolute; right:-90px; bottom:-200px; width:420px; height:420px; border-radius:50%; border:1px solid rgba(220,214,255,.22); }
.sgc-hero::before{ content:""; position:absolute; right:-10px; bottom:-120px; width:260px; height:260px; border-radius:50%; border:1px solid rgba(220,214,255,.14); }
.sgc-eyebrow{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:500; color:var(--sg-lavender); }
.sgc-hero h1{ font-family:var(--sg-head); font-weight:400; font-size:48px; line-height:1.08; letter-spacing:-.02em; margin:12px 0 14px; }
.sgc-hero p{ margin:0 0 26px; max-width:620px; color:rgba(245,245,245,.8); font-size:17px; line-height:1.6; }
.sgc-search{ display:flex; align-items:center; gap:10px; background:#fff; color:var(--sg-muted); border-radius:999px; padding:0 18px; max-width:460px; position:relative; z-index:1; }
.sgc-search input{ border:0; outline:0; font:inherit; font-size:16px; padding:13px 0; width:100%; color:var(--sg-ink); background:transparent; }
.sgc-search:focus-within{ box-shadow:0 0 0 3px var(--sg-lavender); }

/* category chips */
.sgc-cats{ display:flex; flex-wrap:wrap; gap:8px; padding:18px 2px 6px; }
.sgc-chip{ flex:0 0 auto; border:1px solid var(--sg-line); background:#fff; color:var(--sg-ink); border-radius:999px; padding:9px 18px; font-size:14px; font-weight:500; cursor:pointer; transition:background .15s, border-color .15s; }
.sgc-chip:hover{ border-color:var(--sg-green-2); }
.sgc-chip.on{ background:var(--sg-green); border-color:var(--sg-green); color:#fff; }
.sgc-viewing .sgc-cats, .sgc-viewing .sgc-search{ display:none; }
.sgc-viewing .sgc-hero{ padding:24px 40px; }
.sgc-viewing .sgc-hero p{ display:none; }
.sgc-viewing .sgc-hero h1{ font-size:28px; margin:6px 0 0; }

/* hub groups */
.sgc-group{ margin:40px 0 8px; }
.sgc-group-head{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; border-bottom:1px solid var(--sg-line); padding-bottom:10px; margin-bottom:14px; }
.sgc-group-head h2{ font-family:var(--sg-head); font-size:30px; font-weight:400; letter-spacing:-.01em; margin:0; color:var(--sg-deep); }
.sgc-group-head p{ margin:0; color:var(--sg-muted); font-size:14px; }
.sgc-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:12px; }
.sgc-card{ display:flex; flex-direction:column; gap:6px; text-decoration:none; background:#fff; border:1px solid var(--sg-border-brand); border-radius:var(--sg-radius-lg); padding:20px 20px 16px; min-height:128px; box-shadow:0 1px 2px rgba(64,65,59,.04), 0 12px 32px -18px rgba(64,65,59,.35); transition:border-color .15s, box-shadow .15s, transform .15s; }
.sgc-card:hover, .sgc-card:focus-visible{ border-color:var(--sg-green-2); box-shadow:0 2px 4px rgba(73,74,67,.05), 0 28px 60px -28px rgba(76,90,14,.40); transform:translateY(-2px); outline:none; }
.sgc-card-t{ font-family:var(--sg-head); font-weight:400; font-size:19px; line-height:1.25; color:var(--sg-ink); }
.sgc-card-b{ font-size:13.5px; color:var(--sg-muted); flex:1; }
.sgc-card-go{ display:inline-flex; align-items:center; gap:4px; font-size:13.5px; font-weight:500; color:var(--sg-green-2); margin-top:4px; }
.sgc-card-ext{ background:var(--sg-page); }
.sgc-linkdisc{ font-size:12px; color:var(--sg-muted); margin:12px 0 0; }
.sgc-empty{ padding:40px 10px; text-align:center; color:var(--sg-muted); }

/* calculator view */
.sgc-view{ margin-top:16px; }
.sgc-back{ display:inline-flex; align-items:center; gap:4px; text-decoration:none; font-weight:500; font-size:14px; color:var(--sg-green-2); margin:4px 0 12px; }
.sgc-back:hover{ text-decoration:underline; }
.sgc-solo .sgc-back, .sgc-solo .sgc-hero, .sgc-solo .sgc-cats{ display:none; }
.sgc-solo .sgc-view{ margin-top:0; }
.sgc-panel{ background:var(--sg-bg); border:1px solid var(--sg-border-brand); border-radius:var(--sg-radius-lg); overflow:hidden; box-shadow:0 2px 4px rgba(73,74,67,.05), 0 28px 60px -34px rgba(76,90,14,.35); }
.sgc-head{ background:var(--sg-deep); color:#f5f5f5; padding:28px 28px 26px; }
.sgc-head-cat{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:500; color:var(--sg-lavender); }
.sgc-head h2{ font-family:var(--sg-head); font-weight:400; font-size:32px; letter-spacing:-.015em; margin:8px 0 6px; line-height:1.15; }
.sgc-head p{ margin:0; color:rgba(245,245,245,.8); font-size:15px; max-width:720px; }
.sgc-body{ display:grid; grid-template-columns:1fr 1fr; }
.sgc-inputs{ padding:26px 28px; border-right:1px solid var(--sg-line); margin:0; }
.sgc-fields{ display:grid; grid-template-columns:1fr 1fr; column-gap:12px; }
.sgc-field{ grid-column:span 2; margin-bottom:14px; }
.sgc-field.half{ grid-column:span 1; }
.sgc-field label{ display:block; font-size:13px; font-weight:500; color:var(--sg-muted); margin-bottom:6px; }
.sgc-in{ position:relative; }
.sgc-in input, .sgc-in select{ width:100%; font:inherit; font-size:16px; padding:11px 12px; border:1px solid var(--sg-input); border-radius:var(--sg-radius); background:#fff; color:var(--sg-ink); -webkit-appearance:none; appearance:none; }
.sgc-in select{ padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23494a43' stroke-width='2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.sgc-in input:focus, .sgc-in select:focus{ outline:2px solid var(--sg-green-2); outline-offset:1px; border-color:transparent; }
.sgc-in.pre input{ padding-left:24px; }
.sgc-in.pre::before{ content:"$"; position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--sg-muted); pointer-events:none; }
.sgc-in.suf input{ padding-right:44px; }
.sgc-in.suf::after{ content:attr(data-suf); position:absolute; right:11px; top:50%; transform:translateY(-50%); color:var(--sg-muted); font-size:14px; pointer-events:none; }
.sgc-sub{ font-size:12px; color:var(--sg-muted); margin-top:4px; }
.sgc-sec{ grid-column:span 2; font-family:var(--sg-head); font-size:20px; font-weight:400; color:var(--sg-deep); margin:6px 0 12px; padding-top:14px; border-top:1px solid var(--sg-line); }
.sgc-fields > .sgc-sec:first-child{ border-top:0; padding-top:0; margin-top:0; }
.sgc-seg{ display:flex; background:var(--sg-page); border:1px solid var(--sg-line); border-radius:999px; padding:3px; gap:3px; }
.sgc-seg button{ flex:1; border:0; background:transparent; padding:8px 6px; border-radius:999px; cursor:pointer; font-size:14px; color:var(--sg-muted); font-weight:500; }
.sgc-seg button.on{ background:var(--sg-green); color:#f5f5f5; font-weight:500; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.sgc-field label.sgc-toggle{ display:flex; align-items:center; gap:10px; font-size:14px; cursor:pointer; color:var(--sg-ink); font-weight:500; margin:6px 0 0; position:relative; }
.sgc-toggle input{ position:absolute; opacity:0; }
.sgc-toggle span{ width:38px; height:22px; border-radius:11px; background:var(--sg-line); position:relative; flex:0 0 auto; transition:background .15s; }
.sgc-toggle span::after{ content:""; position:absolute; left:3px; top:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:left .15s; }
.sgc-toggle input:checked + span{ background:var(--sg-green-2); }
.sgc-toggle input:checked + span::after{ left:19px; }
.sgc-toggle input:focus-visible + span{ outline:2px solid var(--sg-green-2); outline-offset:2px; }

.sgc-results{ padding:26px 28px; background:var(--sg-lav); }
.sgc-big{ font-size:12px; font-weight:500; color:var(--sg-green); text-transform:uppercase; letter-spacing:.14em; }
.sgc-pay{ font-family:var(--sg-head); font-variant-numeric:lining-nums tabular-nums; font-size:48px; font-weight:400; letter-spacing:-.02em; color:var(--sg-deep); margin:6px 0 10px; line-height:1.1; overflow-wrap:anywhere; }
.sgc-pay.bad{ color:var(--sg-bad); }
.sgc-summary{ margin:0 0 14px; font-size:15px; }
.sgc-summary b{ font-weight:600; }
.sgc-bar{ display:flex; height:12px; border-radius:999px; overflow:hidden; background:#fff; margin-bottom:10px; }
.sgc-bar span{ display:block; height:100%; }
.sgc-list{ list-style:none; padding:0; margin:0 0 14px; }
.sgc-list li{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:7px 0; border-bottom:1px solid var(--sg-lav-2); font-size:15px; }
.sgc-list li.tot{ font-weight:600; border-bottom:0; border-top:2px solid var(--sg-deep); margin-top:2px; }
.sgc-list b{ font-weight:600; white-space:nowrap; }
.sgc-dot{ display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; vertical-align:middle; }
.sgc-kpis{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sgc-kpi{ background:#fff; border:1px solid var(--sg-line); border-radius:var(--sg-radius-md); padding:12px 14px; }
.sgc-kpi div{ font-size:12px; color:var(--sg-muted); }
.sgc-kpi strong{ font-family:var(--sg-head); font-variant-numeric:lining-nums; font-size:21px; font-weight:400; color:var(--sg-ink); }
.sgc-note{ font-size:13px; color:var(--sg-muted); margin:14px 0 0; }

.sgc-extra{ padding:0 28px; }
.sgc-chart-card{ padding:20px 0 6px; border-top:1px solid var(--sg-line); }
.sgc-chart-card h3, .sgc-table-open h3{ font-family:var(--sg-head); font-size:21px; font-weight:400; color:var(--sg-deep); margin:0 0 10px; }
.sgc-chart{ position:relative; }
.sgc-svg{ width:100%; height:auto; display:block; overflow:visible; }

.sgc-svg .sgc-gl{ stroke:#ececea; stroke-width:1; }
.sgc-svg .sgc-zero{ stroke:#cacaca; stroke-width:1; }
.sgc-svg .sgc-ax{ font-size:12px; fill:var(--sg-muted); font-family:var(--sg-font); }
.sgc-svg .sgc-hover-line{ stroke:var(--sg-ink); stroke-opacity:.35; stroke-width:1; stroke-dasharray:3 3; }
.sgc-tip{ position:absolute; top:6px; background:#fff; border:1px solid var(--sg-line); border-radius:var(--sg-radius); padding:8px 10px; font-size:12.5px; box-shadow:0 6px 16px rgba(0,0,0,.10); pointer-events:none; white-space:nowrap; z-index:2; }
.sgc-tip-h{ font-weight:600; margin-bottom:3px; }
.sgc-tip i, .sgc-legend i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.sgc-tip b{ font-weight:600; margin-left:4px; }
.sgc-legend{ display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; color:var(--sg-muted); margin:6px 0 4px; }
.sgc-table summary, .sgc-method summary{ cursor:pointer; font-weight:500; color:var(--sg-green); padding:16px 0; list-style-position:inside; }
.sgc-table{ border-top:1px solid var(--sg-line); }
.sgc-table-open{ padding:18px 0 8px; border-top:1px solid var(--sg-line); }
.sgc-tablewrap{ overflow-x:auto; margin-bottom:14px; -webkit-overflow-scrolling:touch; }
.sgc table{ width:100%; border-collapse:collapse; font-size:14px; font-variant-numeric:tabular-nums; }
.sgc th, .sgc td{ padding:7px 8px; text-align:right; border-bottom:1px solid var(--sg-line); white-space:nowrap; }
.sgc th:first-child, .sgc td:first-child{ text-align:left; }
.sgc th{ font-size:12px; color:var(--sg-muted); font-weight:600; }
.sgc tr.hl td{ background:var(--sg-lav-3); font-weight:600; }
.sgc-method{ margin:0 28px; border-top:1px solid var(--sg-line); }
.sgc-method > div{ font-size:14px; color:var(--sg-ink); padding-bottom:14px; }
.sgc-method p{ margin:0 0 8px; }
.sgc-disc{ font-size:11.5px; color:var(--sg-muted); padding:16px 28px 20px; background:var(--sg-page); border-top:1px solid var(--sg-line); margin:0; }
.sgc-related{ margin:22px 0 4px; }
.sgc-related h3{ font-family:var(--sg-head); font-size:24px; font-weight:400; margin:0 0 12px; color:var(--sg-deep); }
.sgc-rel-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:10px; }
.sgc-rel-list a{ display:flex; justify-content:space-between; align-items:center; gap:10px; text-decoration:none; background:#fff; border:1px solid var(--sg-line); border-radius:var(--sg-radius-md); padding:14px 16px; font-size:14.5px; font-weight:500; }
.sgc-rel-list a:hover{ border-color:var(--sg-green-2); }
.sgc-foot{ margin-top:34px; border-top:1px solid var(--sg-line); padding-top:16px; }
.sgc-foot p{ font-size:12px; color:var(--sg-muted); margin:0; }

@media (max-width:760px){
  .sgc-hero{ padding:32px 20px 26px; }
  .sgc-hero h1{ font-size:36px; }
  .sgc-viewing .sgc-hero{ padding:18px 20px; }
  .sgc-group-head h2{ font-size:26px; }
  .sgc-body{ grid-template-columns:1fr; }
  .sgc-inputs{ border-right:none; border-bottom:1px solid var(--sg-line); padding:18px 16px; }
  .sgc-results{ padding:18px 16px; }
  .sgc-head{ padding:18px 16px; }
  .sgc-head h2{ font-size:26px; }
  .sgc-extra{ padding:0 16px; }
  .sgc-method{ margin:0 16px; }
  .sgc-disc{ padding:14px 16px 18px; }
  .sgc-pay{ font-size:40px; }
  .sgc-grid{ grid-template-columns:1fr; }
  .sgc-card{ min-height:0; }
  .sgc-svg .sgc-ax{ font-size:15px; }
}
@media (prefers-reduced-motion:reduce){ .sgc *{ transition:none !important; } }

