:root{--mai-bg:#050505;--mai-panel:#07110d;--mai-panel2:#0a1711;--mai-accent:#38ff90;--mai-text:#fff;--mai-muted:#b7c7bd;--mai-border:#1e3a2d}
.mai-fire{max-width:1180px;margin:0 auto;padding:24px 18px 60px;color:var(--mai-text)}
.mai-fire h1{font-size:clamp(28px,4vw,46px);line-height:1.2;margin:0 0 12px}.mai-fire h2{font-size:24px;margin:0 0 8px}
.mai-fire-intro,.mai-fire-block,.mai-fire-note{background:var(--mai-panel);border:1px solid var(--mai-accent);border-radius:16px}
.mai-fire-intro{padding:22px;margin-bottom:18px}.mai-fire-intro p{color:var(--mai-muted);line-height:1.75}
.mai-fire-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.mai-fire-nav a{display:block;padding:14px;border:1px solid var(--mai-accent);border-radius:12px;color:#fff;text-decoration:none;background:var(--mai-panel2)}
.mai-fire-nav strong,.mai-fire-nav span{display:block}.mai-fire-nav span{margin-top:5px;font-size:13px;color:var(--mai-muted)}
.mai-fire-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mai-fire-block{padding:20px;scroll-margin-top:90px}.mai-fire-lead{color:var(--mai-muted);line-height:1.65}
.mai-fire-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.mai-fire-field{min-width:0}.mai-fire-field label{display:block;font-weight:700;font-size:14px;margin-bottom:6px}
.mai-fire-field input,.mai-fire-field select{box-sizing:border-box;width:100%;min-width:0;padding:11px 12px;background:#030806;border:1px solid var(--mai-border);border-radius:10px;color:#fff;font-size:16px}
.mai-fire-field input:focus,.mai-fire-field select:focus{outline:2px solid var(--mai-accent);outline-offset:1px}.mai-fire-help{display:block;margin-top:5px;color:var(--mai-muted);font-size:12px;line-height:1.5}
.mai-fire-actions{display:flex;flex-wrap:wrap;gap:8px}.mai-fire-btn{border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer}.mai-fire-primary{background:var(--mai-accent);color:#041109}.mai-fire-secondary{background:#10251b;color:#fff;border:1px solid var(--mai-accent)}
.mai-fire-result{margin-top:14px;background:#020604;border-left:4px solid var(--mai-accent);padding:14px 16px;border-radius:10px}.mai-fire-result strong,.mai-fire-result span{display:block}.mai-fire-result strong{font-size:21px}.mai-fire-result span{margin-top:6px;color:var(--mai-muted);line-height:1.55}
.mai-fire-chart{margin-top:12px;background:#030806;border:1px solid var(--mai-border);border-radius:12px;padding:8px;overflow:hidden}.mai-fire-chart svg{width:100%;height:auto;display:block}.mai-fire-axis{stroke:#355245;stroke-width:1}.mai-fire-line{color:var(--mai-accent)}.mai-fire-line-1{color:#fff}.mai-fire-line-2{stroke-dasharray:8 5;opacity:.8}
.mai-fire-note{padding:18px;margin-top:18px;color:var(--mai-muted);line-height:1.7}.mai-fire-note strong{color:#fff}.mai-fire-tax{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:4px}
@media(max-width:820px){.mai-fire-nav,.mai-fire-grid{grid-template-columns:1fr 1fr}.mai-fire-fields{grid-template-columns:1fr}.mai-fire-tax{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.mai-fire{padding:16px 12px 40px}.mai-fire-nav,.mai-fire-grid{grid-template-columns:1fr}.mai-fire-block{padding:16px}.mai-fire-tax{grid-template-columns:1fr}.mai-fire-result strong{font-size:19px}}
/* Cocoon overrides: keep this tool page consistently dark in preview and production. */
/* Match the proven layout used by Page 1112 (Investment calculators). */
body.mai-fire-page{
  background:#050505!important;
  color:#edf8f1!important;
  overflow-x:hidden!important;
}
body.mai-fire-page #container,
body.mai-fire-page .container,
body.mai-fire-page #content,
body.mai-fire-page .content{
  background:#050505!important;
  color:#edf8f1!important;
}
body.mai-fire-page #content-in{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  align-items:start!important;
  background:#050505!important;
  max-width:100%!important;
  min-width:0!important;
}
body.mai-fire-page #main,
body.mai-fire-page .main{
  float:none!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  background:#07110d!important;
  color:#edf8f1!important;
}
body.mai-fire-page article.article,
body.mai-fire-page .entry-content{
  background:#07110d!important;
  color:#edf8f1!important;
}
body.mai-fire-page #sidebar{display:none!important}
body.mai-fire-page #toc,.mai-fire #toc{display:none!important}
body.mai-fire-page .sns-share,
body.mai-fire-page .sns-follow,
body.mai-fire-page .date-tags{display:none!important}
body.mai-fire-page .entry-title{color:#fff!important}
body.mai-fire-page .breadcrumb,
body.mai-fire-page .breadcrumb a{color:#b9cec2!important}

.mai-fire,
.mai-fire-intro,
.mai-fire-nav,
.mai-fire-grid,
.mai-fire-block,
.mai-fire-fields,
.mai-fire-field,
.mai-fire-result,
.mai-fire-note{
  box-sizing:border-box!important;
  max-width:100%!important;
  min-width:0!important;
}
.mai-fire{background:#07110d!important}
body.mai-fire-page .entry-title,
.mai-fire h1,.mai-fire h2,.mai-fire h3{
  overflow-wrap:anywhere;
  word-break:normal;
}
@media(max-width:640px){
  body.mai-fire-page #main{padding:16px!important}
}

body.mai-fire-page .entry-title,
body.mai-fire-page .breadcrumb,
body.mai-fire-page .breadcrumb a,
.mai-fire h1,.mai-fire h2,.mai-fire h3,
.mai-fire label,.mai-fire strong{color:#fff!important}
.mai-fire h1,.mai-fire h2,.mai-fire h3{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
.mai-fire h2{padding:0!important}
.mai-fire p{color:#b7c7bd!important}
.mai-fire-intro p,.mai-fire-lead,.mai-fire-help,.mai-fire-result span,.mai-fire-note{color:#b7c7bd!important}
.mai-fire-nav a,.mai-fire-nav strong{color:#fff!important}
.mai-fire-nav span{color:#b7c7bd!important}
.mai-fire-field input,
.mai-fire-field select{
  background:#030806!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:1.5px solid #ffffff!important;
  box-shadow:none!important;
}
.mai-fire-field input:hover,
.mai-fire-field select:hover{
  border-color:#f2f2f2!important;
}
.mai-fire-field input:focus,
.mai-fire-field select:focus{
  outline:none!important;
  border-color:#ffffff!important;
  background:#0a1711!important;
  box-shadow:0 0 0 3px rgba(255,255,255,.14),0 0 14px rgba(255,255,255,.10)!important;
}
.mai-fire-field input::placeholder{color:#80958a!important;opacity:1}
.mai-fire-field select option{background:#07110d!important;color:#fff!important}
.mai-fire-result,.mai-fire-chart{color:#fff!important}
.mai-fire-result strong{color:#fff!important}
.mai-fire-primary{background:#38ff90!important;color:#041109!important;-webkit-text-fill-color:#041109!important}
.mai-fire-secondary{background:#10251b!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
.mai-fire a:not(.mai-fire-primary){color:#fff}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}