/* Public shell. Calculator rules are restricted to the shared chrome. */
.fx-shell{--navy:#11294b;--blue:#1e58ac;--border:#e0e6ef;--muted:#51627c;margin:0;background:#f7f9fd;color:var(--navy);font:16px/1.6 Inter,"Segoe UI",Arial,sans-serif}
.fx-shell *,.fx-shell-header *,.fx-shell-footer *{box-sizing:border-box}
.fx-shell a{color:var(--blue)}
.fx-shell [hidden]{display:none!important}
.fx-shell a:focus-visible,.fx-shell button:focus-visible,.fx-shell input:focus-visible,.fx-shell select:focus-visible,.fx-shell-header a:focus-visible,.fx-shell-footer a:focus-visible,.fx-byline a:focus-visible{outline:3px solid #88aeec;outline-offset:4px;border-radius:3px}
.fx-shell-skip{position:absolute;z-index:20;left:20px;top:-80px;padding:12px 20px;background:#fff;border-radius:6px}
.fx-shell-skip:focus{top:12px}
.fx-site-header.fx-shell-header{display:flex;align-items:center;flex-wrap:wrap;gap:16px 32px;max-width:1180px;min-height:82px;margin:0 auto;padding:18px 30px;border-bottom:1px solid #e0e6ef;background:#fff;font:14px/1.5 Inter,"Segoe UI",Arial,sans-serif;color:#11294b}
.fx-shell{background:linear-gradient(#fff 82px,#f7f9fd 82px)}
.fx-shell-header .fx-brand{display:inline-flex;align-items:center;gap:10px;flex:none;color:#11294b;font-size:21px;font-weight:800;letter-spacing:-.6px;text-decoration:none}
.fx-shell-header .fx-brand:before{content:none}
.fx-shell-mark{display:grid;place-items:center;width:34px;height:34px;color:#fff;background:#11294b;border-radius:9px;font-size:23px;font-weight:750;letter-spacing:0}
.fx-shell-nav{display:flex;gap:25px;align-items:center;flex-wrap:wrap;margin-left:auto}
.fx-shell-nav a{color:#40516b;text-decoration:none;font-size:13px;font-weight:650}
.fx-shell-nav a:hover{color:#1e58ac;text-decoration:underline;text-underline-offset:5px}
.fx-shell-fallback{flex-basis:100%;font-size:11px;color:#51627c;text-align:right}
.fx-shell-header .fx-languages{margin-left:auto}
/* Shell pages do not load calculator page.css; keep their selector self-contained. */
.fx-shell .fx-languages{flex:0 1 auto;min-width:0;max-width:100%;font-size:.8125rem;font-weight:600}
.fx-shell .fx-languages a,.fx-shell .fx-language-menu summary{color:var(--muted);text-decoration:none;border-radius:6px;overflow-wrap:anywhere}
.fx-shell .fx-language-english{display:inline-flex;align-items:center;min-height:40px;padding:6px 8px;gap:8px}
.fx-shell .fx-language-english:hover{text-decoration:underline;text-underline-offset:4px}
.fx-shell .fx-language-menu{position:relative;max-width:100%}
.fx-shell .fx-language-menu summary{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 8px;cursor:pointer;list-style:none}
.fx-shell .fx-language-menu summary::-webkit-details-marker{display:none}
.fx-shell .fx-language-menu summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 2px 0 4px;flex:none}
.fx-shell .fx-language-menu[open] summary::after{transform:rotate(225deg);margin-top:3px}
.fx-shell .fx-language-menu summary:hover,.fx-shell .fx-language-menu[open] summary{color:var(--blue);background:#eaf0fb}
.fx-shell .fx-language-options{position:absolute;inset-inline-end:0;top:100%;z-index:20;list-style:none;width:max-content;min-width:min(12rem,calc(100vw - 32px));max-width:min(24rem,calc(100vw - 32px));max-height:70vh;overflow:auto;margin:6px 0 0;padding:6px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 28px #11294b20}
.fx-shell .fx-language-options li{margin:0;padding:0}
.fx-shell .fx-language-options a{display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 10px;font-weight:500;line-height:1.4}
.fx-shell .fx-language-options a>span:last-child{min-width:0}
.fx-shell .fx-language-options a:hover,.fx-shell .fx-language-options a[aria-current="page"]{color:var(--blue);background:#eaf0fb}
.fx-shell .fx-language-flag{display:inline-flex;flex:0 0 24px;width:24px;height:16px;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px #11294b12}
.fx-shell .fx-language-flag svg{display:block;width:24px;height:16px}
.fx-shell-container{max-width:1180px;margin:0 auto;padding:0 30px}
.fx-shell h1,.fx-shell h2,.fx-shell h3{color:#11294b;letter-spacing:-.035em;line-height:1.18}
.fx-shell h1{font-size:clamp(34px,5.3vw,62px);font-weight:800;margin:0}
.fx-shell h2{font-size:clamp(23px,2.7vw,31px);margin:0}
.fx-shell h3{font-size:18px;margin:0}
.fx-shell-eyebrow{font-size:10px;letter-spacing:.15em;font-weight:800;color:#1e58ac;margin:0 0 19px}
.fx-shell-hero{background:linear-gradient(112deg,#f2f6fd 0%,#edf3fd 65%,#e8f0ff 100%);border-bottom:1px solid #dce5f4}
.fx-hero-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:70px;align-items:center;padding-top:65px;padding-bottom:62px}
.fx-hero-copy h1{max-width:650px}
.fx-hero-intro{color:#4a5f7c;font-size:16px;max-width:610px;line-height:1.8;margin:23px 0 26px}
.fx-shell a.fx-shell-button{display:inline-flex;align-items:center;justify-content:center;gap:30px;min-height:48px;padding:12px 19px;border-radius:7px;background:#1e58ac;color:#fff;text-decoration:none;font-size:13px;font-weight:700;box-shadow:0 4px 12px #1e58ac1a}
.fx-shell-button:hover{background:#174990!important}
.fx-hero-stats{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:12px;color:#51627c;margin:24px 0 0}
.fx-hero-stats strong{font-weight:650;color:#213f69}
.fx-hero-art{height:262px;border:1px solid #c6d7f3;border-radius:16px;position:relative;overflow:hidden;background:linear-gradient(transparent 23px,#cad9ee55 24px),linear-gradient(90deg,transparent 23px,#cad9ee55 24px),#ffffff73;background-size:24px 24px;box-shadow:0 16px 32px #11294b08;transform:rotate(-2deg);padding:23px 28px}
.fx-art-label{font-size:9px;letter-spacing:.16em;color:#6681a5;font-weight:700}
.fx-art-formula{font:italic 39px/1.4 "Cambria Math",Georgia,serif;position:absolute;top:64px;left:31px;color:#1e58ac}
.fx-art-axis{position:absolute;right:31px;bottom:63px;width:102px;height:106px;border-bottom:1px solid #7f9fc9;border-left:1px solid #7f9fc9}
.fx-art-axis:after{content:"";position:absolute;left:6px;bottom:9px;width:115px;height:3px;background:#1e58ac;transform:rotate(-38deg);transform-origin:left;border-radius:3px}
.fx-art-axis i{position:absolute;top:27px;right:23px;width:7px;height:7px;border-radius:50%;background:#1e58ac;box-shadow:0 0 0 6px #1e58ac15}
.fx-art-notes{position:absolute;bottom:22px;left:28px;right:28px;display:flex;justify-content:space-between;gap:10px;font-size:8px;letter-spacing:.1em;color:#617a9d;font-weight:750;border-top:1px solid #cbd9ed;padding-top:13px}
.fx-shell-section{margin:0;padding:45px 0}
.fx-shell-section+.fx-shell-section{border-top:1px solid #e0e6ef}
.fx-section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:23px}
.fx-section-heading> a{font-size:12px;white-space:nowrap;text-underline-offset:4px}
.fx-section-heading p{font-size:13px;color:#51627c;margin:10px 0 0}
.fx-section-heading .fx-shell-eyebrow{margin:0 0 12px;font-size:10px;color:#1e58ac}
.fx-domain-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fx-shell a.fx-domain-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e0e6ef;border-radius:9px;padding:18px 16px;color:#11294b;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.fx-domain-card:hover{border-color:#9bb6df!important;box-shadow:0 3px 12px #11294b08}
.fx-domain-symbol{display:grid;place-items:center;width:37px;height:37px;border-radius:8px;background:#edf3fe;color:#1e58ac;font-size:12px;font-weight:750;flex:none}
.fx-domain-card>span:last-child{margin-left:auto;color:#7b95b9}
.fx-domain-card strong{display:block;font-size:13px;line-height:1.4;font-weight:700}
.fx-domain-card strong+span{display:block;font-size:11px;color:#6a7990;margin-top:3px}
.fx-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;padding:0;margin:0}
.fx-tool-card{position:relative;min-width:0;display:flex;flex-direction:column;padding:22px;background:#fff;border:1px solid #e0e6ef;border-radius:10px;transition:box-shadow .15s,border-color .15s}
.fx-tool-card:hover{border-color:#9bb6df;box-shadow:0 4px 15px #11294b08}
.fx-tool-category{margin:0 0 12px;color:#1e58ac;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.fx-tool-card h3{font-size:16px;line-height:1.4;letter-spacing:-.018em;margin:0}
.fx-tool-card h3 a{text-decoration:none;color:#11294b}
.fx-tool-card h3 a:after{position:absolute;inset:0;content:"";border-radius:10px}
.fx-tool-card:focus-within{outline:3px solid #88aeec;outline-offset:3px}
.fx-tool-description{font-size:12px;line-height:1.7;color:#51627c;margin:12px 0 19px;overflow-wrap:anywhere}
.fx-tool-open{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;font-weight:700;color:#1e58ac;margin-top:auto;padding-top:14px;border-top:1px solid #edf1f7}
.fx-tool-open span{font-size:16px}
.fx-shell-language{display:inline-block;margin-left:5px;background:#e9eff9;border-radius:3px;padding:1px 4px;color:#11294b}
.fx-result-count{padding:6px 10px;background:#eaf0fa;border-radius:5px;font-size:11px!important;white-space:nowrap}
.fx-catalog-filters{display:flex;gap:15px;align-items:flex-end;margin-bottom:24px;padding:20px;background:#fff;border:1px solid #e0e6ef;border-radius:9px}
.fx-catalog-filters label{display:block;font-size:11px;font-weight:750;margin:0 0 7px;color:#40516b}
.fx-search-field{flex:1.5;min-width:0}
.fx-category-field{flex:1;min-width:0}
.fx-catalog-filters input,.fx-catalog-filters select{width:100%;height:43px;border:1px solid #d4deed;border-radius:6px;padding:0 12px;color:#11294b;background:#fff;font:13px Inter,"Segoe UI",Arial,sans-serif}
.fx-catalog-filters input::placeholder{color:#7c8ba2}
.fx-filter-reset{height:43px;border:0;background:#edf3fc;color:#1e58ac;border-radius:6px;padding:0 14px;font:650 12px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}
.fx-search-empty{padding:30px;background:#fff;border:1px dashed #b8c9e2;border-radius:9px;color:#51627c}
.fx-author-panel{display:grid;grid-template-columns:1.6fr 1fr;gap:70px;margin-bottom:35px}
.fx-author-panel p{color:#51627c;font-size:14px;line-height:1.8}
.fx-author-panel .fx-shell-eyebrow{color:#1e58ac;font-size:10px}
.fx-author-panel a{font-size:12px;text-underline-offset:4px;font-weight:650}
.fx-method-panel{border-left:1px solid #dce4f0;padding-left:35px}
.fx-method-number{font:italic 40px/1 Georgia,serif;display:block;color:#1e58ac;margin:0 0 17px}
.fx-method-panel h3{font-size:20px}
.fx-site-footer.fx-shell-footer{background:#11294b;color:#d6e3f7;padding:38px 30px;font:12px/1.7 Inter,"Segoe UI",Arial,sans-serif;border-top:0;text-align:left}
.fx-shell-footer-inner{max-width:1120px;margin:0 auto;display:flex;justify-content:space-between;gap:35px}
.fx-shell-footer .fx-shell-footer-brand{font-size:22px;font-weight:750;color:#fff;text-decoration:none}
.fx-shell-footer p{margin:8px 0;color:#c9d7ec;font-size:11px}
.fx-shell-footer a{color:#dce8fa;text-underline-offset:3px}
.fx-shell-footer .fx-footer-links{display:grid;grid-template-columns:repeat(3,auto);gap:9px 24px;margin:0;max-width:none;align-content:center;justify-content:start}
.fx-shell-footer .fx-footer-links a{font-size:11px;color:#dce8fa}
.fx-shell-footer-fallback{max-width:1120px;margin:20px auto 0!important}
.fx-author-fallback{font-size:.85em;color:#51627c}
.fx-shell-breadcrumbs{display:flex;flex-wrap:wrap;gap:9px;color:#64758e;font-size:12px;padding:28px 0 0}
.fx-shell-breadcrumbs a{color:#51627c;text-underline-offset:3px}
.fx-shell-article{max-width:850px;margin:0 auto;padding:45px 0 70px}
.fx-shell-article h1{font-size:clamp(32px,4vw,46px)}
.fx-shell-article .fx-article-lead{font-size:17px;line-height:1.8;color:#51627c;margin:22px 0 38px}
.fx-shell-article section{padding:27px 0;scroll-margin-top:30px;border-top:1px solid #e0e6ef}
.fx-shell-article section h2{font-size:23px;line-height:1.35;margin-bottom:17px}
.fx-shell-article p{font-size:15px;color:#40516b;line-height:1.85}
.fx-shell-article a{text-underline-offset:3px}
.fx-shell-article:has(.fx-catalog){max-width:none}
.fx-listing-header{padding:50px 0 10px;max-width:850px}
.fx-listing-header h1{font-size:42px}
.fx-listing-header>p:last-child{font-size:16px;color:#51627c;margin:20px 0 0}
@media(max-width:960px){.fx-hero-layout{gap:30px}.fx-hero-art{height:240px;padding:20px}.fx-art-formula{font-size:32px;left:20px}.fx-domain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-shell-nav{gap:17px}.fx-author-panel{gap:30px}.fx-shell-footer .fx-footer-links{grid-template-columns:repeat(2,auto)}}
@media(max-width:640px){.fx-site-header.fx-shell-header{padding:17px 20px;gap:16px;min-height:76px}.fx-shell-header .fx-brand{font-size:20px}.fx-shell-nav{flex-basis:100%;margin:0;gap:16px;justify-content:space-between}.fx-shell-nav a{font-size:11px}.fx-shell-header .fx-languages{order:0}.fx-shell-fallback{text-align:left}.fx-shell-container{padding:0 20px}.fx-hero-layout{grid-template-columns:1fr;padding-top:40px;padding-bottom:36px;gap:28px}.fx-hero-copy h1{font-size:41px}.fx-hero-intro{font-size:15px;margin:18px 0 23px}.fx-hero-art{display:none}.fx-shell-section{padding:33px 0}.fx-section-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.fx-section-heading h2{font-size:25px}.fx-domain-grid,.fx-tool-grid{grid-template-columns:1fr}.fx-domain-card{padding:15px!important}.fx-tool-card{padding:20px}.fx-tool-card h3{font-size:18px}.fx-tool-description{font-size:13px}.fx-catalog-filters{flex-wrap:wrap;padding:16px;gap:12px}.fx-search-field,.fx-category-field{flex-basis:100%}.fx-filter-reset{width:100%}.fx-catalog-filters input,.fx-catalog-filters select{font-size:16px}.fx-author-panel{grid-template-columns:1fr;gap:25px;margin-bottom:12px}.fx-method-panel{border-left:0;border-top:1px solid #dce4f0;padding:25px 0 0}.fx-shell-footer-inner{flex-direction:column;gap:23px}.fx-site-footer.fx-shell-footer{padding:30px 20px}.fx-shell-footer .fx-footer-links{gap:12px 25px}.fx-shell-article{padding-top:30px}.fx-shell-article .fx-article-lead{font-size:16px}.fx-shell-article section h2{font-size:22px}.fx-shell-article p{font-size:14px}.fx-listing-header{padding-top:35px}.fx-listing-header h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){.fx-shell *{scroll-behavior:auto;transition:none}}
@media print{.fx-shell-header,.fx-shell-footer,.fx-catalog-filters,.fx-hero-art{display:none!important}.fx-shell{background:#fff}.fx-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-tool-card{break-inside:avoid;box-shadow:none}.fx-shell-section{padding:20px 0}}

/* Native MathML: avoid scrollbars caused only by inline box padding. */
.fx-math{display:inline-block}

/* Keep the archived flag and language name visibly separated. */
.fx-languages .fx-language-english{gap:8px}
