/* Maternity guide only: shared header, footer and other calculators unchanged. */
#main.mb-page { --mb-ink:#173d28; --mb-green:#307337; --mb-line:#c7dbc0; color:var(--mb-ink); font-family:Arial,Helvetica,sans-serif; line-height:1.7; }
.mb-page *, .mb-page *::before, .mb-page *::after { box-sizing:border-box; }
.mb-page [hidden] { display:none !important; }
.mb-page :is(p,li,td,th,figcaption,label,input,select,button) { font-family:Arial,Helvetica,sans-serif; font-size:16px; }
.mb-page :is(span,strong,bdi,a) { font-family:inherit; }
.mb-page p { margin:0 0 14px; line-height:1.7; }
.mb-page h1 { text-align:right; margin:8px 0 16px; color:#143721; }
.mb-page h2 { text-align:right; font-size:25px; line-height:1.35; margin:0 0 14px; color:#214d2d; }
.mb-page h3 { font-size:19px; line-height:1.4; margin:20px 0 10px; }
.mb-page a,.mb-page a:visited { color:#285d29; text-underline-offset:3px; }
.mb-page a:hover { color:#163d1b; }
.mb-page :is(a,button,input,select,summary):focus-visible { outline:3px solid #246fa1; outline-offset:3px; }
.mb-page > section { margin-block:28px; scroll-margin-top:20px; }
.mb-page .mb-help { display:block; color:#51624d; font-size:14px; line-height:1.6; }
.mb-calculator { padding:24px; background:linear-gradient(to left,#eff6e8,#f8faf5); border:1px solid var(--mb-line); border-radius:10px; }
.mb-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-block:18px; }
.mb-wide { grid-column:1/-1; }
.mb-field { min-width:0; }
.mb-field label { display:block; margin-bottom:7px; font-weight:700; }
.mb-field :is(input,select) { width:100%; min-width:0; min-height:46px; border:1px solid #9bac92; border-radius:6px; background-color:#fff; padding:8px 12px; color:#183d29; margin:0; }
.mb-field input { direction:ltr; text-align:right; }
.mb-field select { padding-left:34px; }
.mb-input-unit { display:flex; gap:6px; align-items:center; }
.mb-input-unit > span { flex:0 0 46px; min-height:46px; display:grid; place-items:center; border:1px solid var(--mb-line); border-radius:6px; background:#e5efd9; font-weight:700; }
.mb-field .mb-help { margin-top:6px; }
.mb-details-body { padding:16px; }
.mb-details-body > :last-child { margin-bottom:0; }
.mb-page .mb-submit { display:block; width:min(100%,320px); min-height:48px; margin:20px auto 0; border:0; border-radius:6px; background:#367a36; color:#fff; font-weight:700; cursor:pointer; box-shadow:0 2px 5px #214d2d20; }
.mb-page .mb-submit:hover { background:#28602a; }
.mb-page .mb-submit:disabled { opacity:.65; cursor:wait; }
.mb-page .mb-status { color:#8b302b; margin:12px 0 0; }
.mb-status:empty { display:none; }
.mb-result { margin-top:24px; padding:22px; border:1px solid #afcfa0; border-radius:8px; background:white; scroll-margin-top:20px; }
.mb-result > h3:first-child { margin-top:0; }
.mb-result-lead { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:8px 0 20px; }
.mb-result-lead > strong { font-size:clamp(30px,6vw,44px); line-height:1.25; color:#27712e; }
.mb-deductions { margin:0 0 16px; }
.mb-deductions > div { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 14px; padding:10px 0; border-bottom:1px solid #e1e8dd; }
.mb-deductions :is(dt,dd) { margin:0; font-size:16px; }
.mb-deductions dd { font-weight:700; }
.mb-page .mb-money { display:inline-flex; align-items:baseline; gap:.25em; white-space:nowrap; direction:rtl; unicode-bidi:isolate; font-variant-numeric:tabular-nums; }
.mb-page .mb-money > bdi { font-family:Arial,Helvetica,sans-serif; }
.mb-page .mb-money > span { font-size:.8em; }
.mb-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.mb-facts > div { display:flex; flex-direction:column; gap:3px; padding:14px; background:#f1f6ee; border-radius:6px; }
.mb-facts strong { font-size:22px; }
.mb-page .mb-callout { background:#f3f7ed; border-right:3px solid #86ac61; padding:14px 16px; border-radius:3px; }
.mb-toc { display:flex; flex-wrap:wrap; gap:2px 18px; padding:4px 0; }
.mb-toc a { display:inline-flex; align-items:center; min-height:44px; }
.mb-table-scroll { max-width:100%; overflow-x:auto; margin-block:16px; border:1px solid var(--mb-line); border-radius:8px; }
.mb-page .mb-table { width:100%; border-collapse:collapse; margin:0; color:#203c2b; }
.mb-page .mb-table caption { text-align:right; font-size:16px; padding:12px 14px; background:#f7faf4; font-weight:700; }
.mb-page .mb-table :is(th,td) { padding:13px 12px; border:0; border-bottom:1px solid #dee8d8; text-align:right; vertical-align:top; line-height:1.5; }
.mb-page .mb-table thead th { background:#e8f1de; color:#244c29; }
.mb-page .mb-table tbody th { font-weight:400; }
.mb-page .mb-table tr:last-child :is(th,td) { border-bottom:0; }
.mb-page .mb-table tbody tr:nth-child(even) { background:#f8faf5; }
.mb-page .mb-numbers :is(td,th) { text-align:center; }
.mb-page .mb-figure { margin:24px 0; border:1px solid var(--mb-line); border-radius:8px; overflow:hidden; background:#f8faf5; }
.mb-figure > a { display:block; cursor:zoom-in; }
.mb-figure img { width:100%; height:auto; display:block; }
.mb-figure figcaption { padding:12px 16px; color:#52634b; }
.mb-image-expand { display:block; width:fit-content; min-height:44px; padding-block:9px; margin-top:4px; }
.mb-bottom { border-top:1px solid var(--mb-line); padding-top:20px; }
@media(max-width:600px) {
    .mb-page h2 { font-size:23px; }
    .mb-calculator { padding:17px 13px; }
    .mb-fields { grid-template-columns:1fr; gap:16px; }
    .mb-details-body { padding:12px 9px; }
    .mb-result { padding:15px 12px; }
    .mb-facts { grid-template-columns:1fr; }
    .mb-page .mb-table :is(th,td) { padding:11px 8px; }
    .mb-numbers { min-width:440px; }
}
