/* One presentation for the in-house tools on broker websites.
   GMM serves /shared/* from this same Calculator asset. Standalone tools
   have neither marker and keep their existing presentation. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Schibsted+Grotesk:wght@400;500;600;700&display=swap');

:is(.site-embed,html.rgp-site-frame) {
  --site-tool-font:system-ui,-apple-system,sans-serif;
  --site-tool-ink:#182a3b;--site-tool-muted:#536374;--site-tool-rule:#dce4eb;
  font-family:var(--site-tool-font);color:var(--site-tool-ink);
}
:is(.site-embed,html.rgp-site-frame)[data-site-font="montserrat"] {--site-tool-font:"Montserrat",Arial,sans-serif}
:is(.site-embed,html.rgp-site-frame)[data-site-font="archivo"] {--site-tool-font:"Archivo",Arial,sans-serif}
:is(.site-embed,html.rgp-site-frame)[data-site-font="schibsted"] {--site-tool-font:"Schibsted Grotesk",Arial,sans-serif}
:is(.site-embed,html.rgp-site-frame)[data-site-font="hanken"] {--site-tool-font:"Hanken Grotesk",Arial,sans-serif}
:is(.site-embed,html.rgp-site-frame) :is(body,h1,h2,h3,h4,p,div,span,label,input,select,textarea,button,a,table,legend) {font-family:var(--site-tool-font)!important}
:is(.site-embed,html.rgp-site-frame) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),select,textarea) {font-size:16px!important;min-height:50px;border-radius:7px!important;font-weight:400!important;letter-spacing:normal;font-variant-numeric:tabular-nums}
:is(.site-embed,html.rgp-site-frame) :is(input,textarea)::placeholder {color:#68798a!important}
:is(.site-embed,html.rgp-site-frame) :is(label,.field-label,.input-label) {font-size:14px!important;font-weight:500!important;line-height:1.5;color:#354b60}
:is(.site-embed,html.rgp-site-frame) :is(button,a,input,select,textarea):focus-visible {outline:2px solid currentColor!important;outline-offset:3px}
:is(.site-embed,html.rgp-site-frame) :is(.card,.rgp-card,.mc-card) {box-shadow:none!important;border-radius:8px!important}
:is(.site-embed,html.rgp-site-frame) :is(.card-title,.section-title,.mc-card-title) {font-size:20px!important;line-height:1.4!important;font-weight:550!important;letter-spacing:-.02em!important}

/* The website owns the page title and introduction. Functional controls such
   as Reset and Compare stay in their original calculator containers. */
.site-embed :is(.tmm-header,.mc-title,.mc-sub,.partner-hero h1,.partner-hero p) {display:none!important}
.site-embed .partner-hero {padding:0!important;margin:0!important}
.site-embed .mc-hero {padding:0 0 18px!important;margin:0!important}
.site-embed .mc-hero-actions {justify-content:flex-end}
.site-embed .mc-root {min-height:0!important;background:#fff!important}
.site-embed .mc-cards {padding-top:0}
.site-embed .tmm-page {background:#fff!important;min-height:0!important}
.site-embed .tmm-wrap {max-width:none!important;padding:0 2px 20px!important;min-height:0!important}
.site-embed .tmm-guide-layout {display:grid;grid-template-columns:210px minmax(0,1fr);gap:clamp(28px,5vw,64px);align-items:start}
.site-embed .tmm-guide-progress {padding:4px 24px 16px 0;border-right:1px solid var(--site-tool-rule)}
.site-embed .tmm-steps {display:flex;flex-direction:column;gap:24px;margin:0;padding:0}
.site-embed .tmm-steps li {font-size:14px;line-height:1.5;gap:12px;color:var(--site-tool-muted)}
.site-embed .tmm-steps li span {min-width:30px;height:30px;font-size:12px;border-color:#aab9c7}
.site-embed .tmm-steps li[aria-current="step"] {color:var(--tmm-accent,#005baa);font-weight:600}
.site-embed .tmm-steps li[aria-current="step"] span {background:var(--tmm-accent,#005baa);color:var(--tmm-accent-ink,#fff);border-color:transparent}
.site-embed .tmm-steps .is-complete span {border-color:var(--tmm-accent,#005baa);color:var(--tmm-accent,#005baa)}
.site-embed .tmm-view-toggle {font-size:12px;margin-top:24px;min-height:44px;padding:10px 0}
.site-embed .tmm-guide-layout .tmm-card {display:flex;flex-wrap:wrap;align-items:center;column-gap:24px;max-width:700px;min-width:0;padding:0!important}
.site-embed .tmm-step-fields {width:100%;flex-basis:100%}
.site-embed .tmm-step-title {font-size:26px;line-height:1.3;font-weight:550;letter-spacing:-.03em;margin-bottom:24px}
.site-embed .tmm-step-note {font-size:14px;line-height:1.7;max-width:46ch;margin-top:-10px;color:var(--site-tool-muted)}
.site-embed .tmm-form-group {margin-bottom:22px}
.site-embed .tmm-guide-layout .tmm-step-nav {flex:1;min-width:110px;margin:4px 0 0;font-size:12px;gap:16px;justify-content:flex-start}
.site-embed .tmm-guide-layout .tmm-submit-btn {width:auto;min-width:160px;margin:4px 0 0;padding:14px 24px;min-height:50px;font-size:14px;font-weight:600;border-radius:7px;letter-spacing:0}
.site-embed :is(.tmm-privacy,.tmm-field-error) {width:100%;flex-basis:100%;line-height:1.6}
.site-embed .tmm-guide-back {font-size:14px}

html.rgp-site-frame body {font-size:16px;color:var(--site-tool-ink);background:#fff!important}
html.rgp-site-frame :is(.wrap,.container,.main-container) {max-width:1100px!important;margin:0 auto!important;padding:0 2px 20px!important}
html.rgp-site-frame .hero {padding:0!important;margin:0 0 16px!important;text-align:right}
html.rgp-site-frame :is(.hero-greeting,.hero-flag,.card-ico) {display:none!important}
html.rgp-site-frame :is(.card-hdr,.card-header) {gap:0}
html.rgp-site-frame :is(.result-col-value,.big-value) {font-size:30px;font-weight:550;letter-spacing:-.03em}

@media(max-width:680px) {
  .site-embed .tmm-guide-layout {grid-template-columns:minmax(0,1fr);gap:24px}
  .site-embed .tmm-guide-progress {border-right:0;border-bottom:1px solid var(--site-tool-rule);padding:0 0 14px}
  .site-embed .tmm-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .site-embed .tmm-steps li {flex-direction:column;align-items:flex-start;gap:7px;font-size:11px;line-height:1.4}
  .site-embed .tmm-view-toggle {margin-top:10px;padding-bottom:0;min-height:36px}
  .site-embed .tmm-step-title {font-size:23px}
  .site-embed .tmm-guide-layout .tmm-submit-btn {min-width:136px;padding-inline:18px}
  .site-embed .tmm-guide-layout .tmm-card {column-gap:12px}
}
@media(prefers-reduced-motion:reduce) {
  :is(.site-embed,html.rgp-site-frame) *, :is(.site-embed,html.rgp-site-frame) *::before, :is(.site-embed,html.rgp-site-frame) *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
