
:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#172b42;background:#f4f7fa;--blue:#075b87;--nav:#10283f;--border:#d7e1ea}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e59b21;outline-offset:3px}header{background:var(--nav);color:white;padding:18px clamp(16px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-size:22px;font-weight:800}.brand span{color:#67d6d2}.sub{font-size:13px;color:#c7dbe9}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 70px)}aside{background:#17344e;padding:24px 12px}aside h2{font-size:12px;letter-spacing:.12em;color:#bbd3e5;padding:0 14px;text-transform:uppercase}.nav{width:100%;background:transparent;border:0;border-radius:9px;color:#e5f0f8;text-align:left;padding:14px 12px;display:flex;align-items:center;gap:12px;min-height:48px}.nav:hover,.nav[aria-selected=true]{background:#286486;color:white}.nav small{margin-left:auto;background:#31516a;border-radius:8px;padding:2px 7px}main{padding:clamp(16px,3vw,40px);max-width:1450px;width:100%;margin:auto}.intro h1{font-size:clamp(25px,3vw,34px);margin:0 0 7px}.intro p{color:#52677a;margin:0 0 25px}.sectionhead{margin-bottom:18px}.sectionhead h2{margin:0;font-size:22px}.sectionhead p{margin:5px 0;color:#52677a}.cards{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(min(100%,470px),1fr))}.card{background:white;border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:0 3px 16px #152f4610}.cardhead{padding:20px 22px;border-bottom:1px solid var(--border)}.cardhead h3{margin:0;font-size:18px}.cardhead p{margin:5px 0 0;font-size:13px;color:#50667a}.cardbody{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.fields,.result{padding:20px;min-width:0}.fields{display:flex;flex-direction:column;gap:12px}.fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650;color:#304b62}.fields input,.fields select{width:100%;min-height:44px;border:1px solid #9fb4c4;border-radius:8px;padding:10px;background:white;color:#10283f}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:6px}.actions button,.swap{min-height:44px;border-radius:8px;padding:10px 13px;font-weight:650}.primary{border:1px solid #075b87;background:#075b87;color:white}.primary:hover{background:#06496e}.secondary,.swap{border:1px solid #9db5c6;background:white;color:#174c70}.result{background:#eff8fb;border-left:1px solid #d3e6ed;overflow-wrap:anywhere}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;color:#395b72}.result-main{font-size:clamp(22px,2.4vw,32px);font-weight:800;color:#075b87;margin:15px 0}.result-details{font-size:14px;line-height:1.8;white-space:pre-line;color:#2c465a}.result.error{background:#fff0ef}.result.error .result-main{color:#a52222}.calc-display{padding:16px;background:#10283f;color:white;font-size:26px;text-align:right;border-radius:9px;overflow-wrap:anywhere;min-height:70px}.keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.key{min-height:46px;background:#eaf2f8;border:1px solid #c5d7e4;border-radius:7px;color:#153d5c;font-weight:700}.key:hover{background:#d0e6f4}.key[data-key="="]{background:#075b87;color:white}.card:has(.keypad) .cardbody{grid-template-columns:1fr}.card:has(.keypad) .result{border-left:0;border-top:1px solid #d3e6ed}.card:has(.keypad) .actions{display:none}.notice{margin-top:25px;border:1px solid #cadbe6;background:white;padding:16px;border-radius:10px;font-size:13px;color:#3c5265}footer{font-size:12px;color:#64798c;margin-top:30px}[hidden]{display:none!important}@media(max-width:900px){.layout{grid-template-columns:1fr}aside{padding:10px;display:flex;overflow-x:auto;gap:6px}aside h2{display:none}.nav{min-width:max-content;width:auto}.nav small{display:none}}@media(max-width:520px){header{flex-wrap:wrap}.cardbody{grid-template-columns:1fr}.result{border-left:0;border-top:1px solid #d3e6ed}.cards{grid-template-columns:1fr}.fields,.result{padding:17px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.new-wrap{max-width:1250px;margin:35px auto;padding:20px;color:#142338}.new-wrap h2{font-size:1.6rem}.new-wrap p{margin:8px 0 16px}.new-links{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.new-links a{background:#e8f4f8;border:1px solid #a8d5e3;border-radius:8px;padding:9px 12px;color:#075a70;font-weight:650}.new-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:18px}.new-card{background:white;border:1px solid #cbd5e1;border-radius:14px;padding:20px;box-shadow:0 2px 8px #0000000a;scroll-margin-top:70px}.new-card h3{font-size:1.15rem}.new-field{display:block;font-size:.9rem;font-weight:600;margin:12px 0}.new-field input{display:block;width:100%;min-height:44px;padding:9px;border:1px solid #64748b;border-radius:7px;font-size:1rem}.new-card button{background:#075c78;color:white;border:0;padding:12px 20px;border-radius:8px;font-weight:700;cursor:pointer;min-height:44px}.new-card button:focus-visible,.new-links a:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}.new-result{margin-top:14px;border-top:1px solid #cbd5e1;padding-top:10px}.new-result-row{display:flex;justify-content:space-between;gap:12px;padding:5px 0}.new-result-row strong{text-align:right}.new-note{font-size:.78rem;color:#475569}@media(max-width:600px){.new-wrap{padding:12px}.new-grid{grid-template-columns:1fr}}

:root{color-scheme:light}html{scroll-behavior:smooth}body{overflow-wrap:anywhere}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a.btn,.nav,.key,.swap{min-height:44px}input,select{min-height:44px;font-size:16px!important}button{cursor:pointer}:focus-visible{outline:3px solid #f59e0b!important;outline-offset:3px!important} .card,.cardbody,.fields,.result{min-width:0} .result-main,.result-details{overflow-wrap:anywhere} .skip-link{position:absolute;left:12px;top:-100px;background:#fff;color:#123;z-index:9999;padding:12px;border:2px solid #123}.skip-link:focus{top:10px} @media(max-width:600px){.cardbody{grid-template-columns:minmax(0,1fr)!important}.fields{grid-template-columns:minmax(0,1fr)!important}.keypad{max-width:100%}.new-wrap{padding:12px!important}.new-result-row{flex-wrap:wrap;gap:8px}.new-result-row strong{overflow-wrap:anywhere}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

body.embed-tool{background:#fff!important;overflow-x:hidden}body.embed-tool>header,body.embed-tool>.skip-link,body.embed-tool .layout>aside,body.embed-tool .ux-shell,body.embed-tool .ux-directory,body.embed-tool #expanded-calculators,body.embed-tool .intro,body.embed-tool .notice,body.embed-tool footer,body.embed-tool .sectionhead{display:none!important}body.embed-tool .layout{display:block!important;max-width:none!important;margin:0!important;padding:0!important}body.embed-tool .layout>main{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.embed-tool .panel{display:block!important;margin:0!important;padding:0!important;border:0!important;background:white!important}body.embed-tool .panel .cards{display:block!important;margin:0!important;padding:0!important}body.embed-tool .panel .card{display:none!important}body.embed-tool .panel .card.embed-active{display:block!important;box-shadow:none!important;margin:0!important;width:100%!important;max-width:none!important;border:0!important;padding:10px!important}body.embed-tool .panel:not(.embed-panel){display:none!important}body.embed-tool .cardhead{margin-top:0!important}body.embed-tool .cardbody{padding:12px!important}@media(max-width:600px){body.embed-tool .panel .card.embed-active{padding:4px!important}}

/* Fix: new calculator iframe embeds were hidden by #expanded-calculators display:none!important. */
body.embed-tool.embed-new > .layout,
body.embed-tool.embed-new > header,
body.embed-tool.embed-new > .ux-shell {display:none!important}
body.embed-tool.embed-new #expanded-calculators {
  display:block!important; position:static!important; visibility:visible!important;
  max-width:none!important; width:100%!important; margin:0!important;
  padding:0!important; background:#fff!important; border:0!important; box-shadow:none!important;
}
body.embed-tool.embed-new #expanded-calculators > h2,
body.embed-tool.embed-new #expanded-calculators > p,
body.embed-tool.embed-new #expanded-calculators > button,
body.embed-tool.embed-new #expanded-tools-content .new-links {display:none!important}
body.embed-tool.embed-new #expanded-tools-content {display:block!important; margin:0!important; padding:0!important}
body.embed-tool.embed-new #expanded-tools-content .new-grid {display:block!important; margin:0!important; padding:0!important}
body.embed-tool.embed-new #expanded-tools-content .new-card {display:none!important}
body.embed-tool.embed-new #expanded-tools-content .new-card.embed-active {
  display:block!important; width:100%!important; max-width:none!important;
  margin:0!important; padding:12px!important; border:0!important; box-shadow:none!important;
}
body.embed-tool.embed-new #expanded-tools-content .new-card.embed-active form {max-width:none!important}

html,body{margin:0;min-height:0;box-sizing:border-box}body.engine-page .layout{display:block!important;min-height:0!important}body.engine-page main{padding:0!important;width:100%!important;margin:0!important;max-width:none!important}body.engine-page:not(.embed-tool) .panel,body.engine-page:not(.embed-tool) #expanded-calculators{display:none!important}body.embed-tool .cardbody{padding:0!important}body.embed-tool .fields,body.embed-tool .result{padding:18px}body.embed-tool .cardhead{padding:16px 18px}.new-card label,.fields label{line-height:1.5}input,select{font-size:16px!important}body.embed-tool .new-result-row{flex-wrap:wrap;gap:8px}.new-result-row strong{overflow-wrap:anywhere}body.embed-tool .new-card .new-note{font-size:13px;line-height:1.6}body.embed-tool .new-wrap{margin:0!important}body.embed-tool .card,body.embed-tool .new-card{scroll-margin-top:0}html[data-theme=dark] body.embed-tool{background:#182b3e!important}html[data-theme=dark] body.embed-tool .panel{background:#182b3e!important}body.engine-page .result{border-radius:0 0 10px 10px}body.engine-page .calc-display{font-variant-numeric:tabular-nums}
@media(max-width:600px){body.embed-tool .cardbody{grid-template-columns:minmax(0,1fr)!important}.fields,.result{padding:16px!important}}
