.mfl-calc{--mfl-accent:#1f6f4a;--mfl-border:#d9d9d9;--mfl-muted:#666;--mfl-font-family:inherit;--mfl-font-size:1em;max-width:100%;font-family:var(--mfl-font-family);font-size:var(--mfl-font-size);line-height:1.45}
.mfl-calc *{box-sizing:border-box}
.mfl-calc-inputs{display:grid;grid-template-columns:1fr;gap:1.1em}
@media(min-width:640px){.mfl-calc-inputs{grid-template-columns:1fr 1fr}.mfl-field-slider{grid-column:1/-1}}
.mfl-field label{display:block;font-weight:600;margin-bottom:.3em}
.mfl-input-wrap{display:flex;align-items:center;border:1px solid var(--mfl-border);border-radius:6px;background:#fff}
.mfl-input-wrap input{flex:1;border:0;padding:.55em .7em;font:inherit;min-width:0;background:transparent}
.mfl-input-wrap input:focus{outline:2px solid var(--mfl-accent);outline-offset:-2px;border-radius:6px}
.mfl-prefix{padding-left:.7em;color:var(--mfl-muted)}
.mfl-field-select select{width:100%;border:1px solid var(--mfl-border);border-radius:6px;padding:.55em .7em;font:inherit;background:#fff}
.mfl-field-select select:focus{outline:2px solid var(--mfl-accent);outline-offset:-2px}
.mfl-slider-row{display:flex;align-items:center;gap:1em}
.mfl-slider-row input[type=range]{flex:1;accent-color:var(--mfl-accent)}
.mfl-slider-value{min-width:3ch;font-weight:600;text-align:right}
.mfl-help{margin:.3em 0 0;font-size:.85em;color:var(--mfl-muted)}
.mfl-calc-results{margin-top:1.5em;padding:1em 1.2em;border:1px solid var(--mfl-border);border-radius:8px;background:#fafafa}
.mfl-output{display:flex;justify-content:space-between;gap:1em;padding:.45em 0;border-bottom:1px solid var(--mfl-border)}
.mfl-output:last-of-type{border-bottom:0}
.mfl-output-value{font-weight:700;font-size:1.25em;color:var(--mfl-accent);white-space:nowrap}
.mfl-output-secondary .mfl-output-value{font-size:1em;color:inherit;font-weight:600}
.mfl-warning{margin:.8em 0 0;padding:.6em .8em;background:#fff7e0;border-left:4px solid #e0a800;font-size:.9em}
.mfl-error{margin:.8em 0 0;padding:.6em .8em;background:#fde8e8;border-left:4px solid #c0392b;font-size:.9em}
.mfl-calc-footer{margin-top:1.2em;font-size:.85em;color:var(--mfl-muted)}
.mfl-sources summary{cursor:pointer;font-weight:600}
.mfl-sources ul{padding-left:1.2em}

/* ---------------- calendar (parenting time) calculator ---------------- */
.mfl-calendar-calc{max-width:100%}
.mfl-cal-patterns{display:flex;flex-wrap:wrap;gap:.5em;margin-bottom:1em}
.mfl-cal-pattern-option{display:inline-flex;align-items:center;gap:.4em;border:1px solid var(--mfl-border);border-radius:999px;padding:.4em .9em;cursor:pointer;font-size:.9em}
/* static tint (was color-mix of --mfl-accent, site accent = #5e6ab2): html2canvas (results PDF) can't parse color() computed values */
.mfl-cal-pattern-option:has(input:checked){border-color:var(--mfl-accent);background:rgba(94,106,178,.12);font-weight:600}
.mfl-cal-pattern-option input{accent-color:var(--mfl-accent)}
.mfl-cal-why{margin-bottom:1.2em}
.mfl-cal-why-title{margin:0 0 .3em;font-size:1em}
.mfl-cal-why-text{margin:0;color:var(--mfl-muted);font-size:.9em}
.mfl-cal-startdate{margin-bottom:1.2em}
.mfl-cal-startdate label,.mfl-cal-jump label{display:block;font-weight:600;margin-bottom:.3em}
.mfl-cal-startdate input,.mfl-cal-jump-input{border:1px solid var(--mfl-border);border-radius:6px;padding:.5em .6em;font:inherit}
.mfl-cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:.6em}
.mfl-cal-nav button{border:1px solid var(--mfl-border);background:#fff;border-radius:6px;padding:.4em .8em;cursor:pointer;font:inherit}
.mfl-cal-nav button:hover{border-color:var(--mfl-accent)}
.mfl-cal-month-label{margin:0;font-size:1.1em}
.mfl-cal-jump{display:flex;flex-wrap:wrap;align-items:end;gap:.6em;margin-bottom:1em;padding:.8em;border:1px solid var(--mfl-border);border-radius:8px;background:#fafafa}
.mfl-cal-jump label{margin-bottom:.3em}
.mfl-cal-jump-go{border:1px solid var(--mfl-accent);background:var(--mfl-accent);color:#fff;border-radius:6px;padding:.5em 1em;cursor:pointer;font:inherit}
.mfl-cal-jump-result{flex-basis:100%;margin:.3em 0 0;font-size:.9em;font-weight:600}
.mfl-cal-grid{width:100%;border-collapse:collapse;table-layout:fixed}
.mfl-cal-grid th{font-size:.75em;text-transform:uppercase;color:var(--mfl-muted);padding:.3em 0;font-weight:600}
.mfl-cal-grid td{height:2.6em;text-align:center;vertical-align:middle;border:1px solid #eee;font-size:.9em}
.mfl-cal-day-start{background:#dee1f2;color:#5e6ab2;font-weight:600}
.mfl-cal-day-other{background:rgba(237,148,156,.25);color:#ed949c;font-weight:600}
.mfl-cal-day-today{outline:2px solid var(--mfl-accent);outline-offset:-2px;border-radius:4px}
.mfl-cal-legend{display:flex;gap:1em;margin:1em 0 0;font-size:.85em}
.mfl-cal-legend-item{display:inline-flex;align-items:center;gap:.4em;padding:.2em .6em;border-radius:999px}
.mfl-cal-legend-item::before{content:"";width:.7em;height:.7em;border-radius:50%;display:inline-block}
.mfl-cal-legend-start{background:#dee1f2;color:#5e6ab2}
.mfl-cal-legend-start::before{background:#5e6ab2}
.mfl-cal-legend-other{background:rgba(237,148,156,.25);color:#ed949c}
.mfl-cal-legend-other::before{background:#ed949c}

/* ---------------- get-results PDF button + HubSpot gate modal (0.3.0) ---------------- */
.mfl-get-results-wrap{margin-top:1.2em;text-align:center}
.mfl-get-results{border:1px solid var(--mfl-accent);background:var(--mfl-accent);color:#fff;border-radius:6px;padding:.65em 1.6em;cursor:pointer;font:inherit;font-weight:600}
.mfl-get-results:hover{filter:brightness(1.08)}
.mfl-get-results:disabled{opacity:.6;cursor:wait}
.mfl-email-modal{position:fixed;inset:0;background:rgba(20,24,34,.55);z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px}
.mfl-email-modal-box{position:relative;background:#fff;border-radius:12px;max-width:440px;width:100%;max-height:90vh;overflow:auto;padding:1.6em 1.6em 1.2em;box-shadow:0 18px 50px rgba(0,0,0,.3)}
.mfl-email-modal-close{position:absolute;top:.5em;right:.7em;border:0;background:none;font-size:1.6em;line-height:1;cursor:pointer;color:#666}
.mfl-email-modal-title{margin:0 0 .3em;font-size:1.2em}
.mfl-email-modal-sub{margin:0 0 1em;color:#666;font-size:.9em}

/* ---------------- v0.4: "Email My Results" modal + button pair ---------------- */
/* The modal mounts on <body>, outside .mfl-calc, so it declares its own
   variable defaults; MFL_Renderer::style_css targets it alongside .mfl-calc
   so the admin Style page overrides apply here too. */
.mfl-email-modal{--mfl-accent:#1f6f4a;--mfl-border:#d9d9d9;--mfl-muted:#666}
.mfl-get-results-wrap{display:flex;justify-content:center;gap:.8em;flex-wrap:wrap}
.mfl-get-results-alt{background:#fff;color:var(--mfl-accent)}
.mfl-get-results-alt:hover{filter:none;background:#f3f8f5}
.mfl-email-form{display:flex;flex-direction:column;gap:.9em}
.mfl-email-row{display:flex;gap:.8em}
.mfl-email-row .mfl-email-field{flex:1;min-width:0}
.mfl-email-field label{display:block;font-weight:600;font-size:.9em}
.mfl-email-field input{display:block;width:100%;margin-top:.3em;border:1px solid var(--mfl-border);border-radius:6px;padding:.55em .7em;font:inherit}
.mfl-email-field input:focus{outline:2px solid var(--mfl-accent);outline-offset:-2px}
.mfl-email-submit{width:100%}
.mfl-email-status{margin:0;font-size:.9em}
.mfl-email-status-error{color:#c0392b}
.mfl-email-fineprint{margin:0;font-size:.8em;color:var(--mfl-muted)}
/* v0.5.1 marketing-consent checkbox (renders only when configured) */
.mfl-email-consent{display:flex;align-items:flex-start;gap:.55em;font-size:.85em;color:var(--mfl-muted);cursor:pointer}
.mfl-email-consent input{flex:none;width:1.05em;height:1.05em;margin:.15em 0 0;accent-color:var(--mfl-accent)}
@media(max-width:420px){.mfl-email-row{flex-direction:column}}
