
/* Reference-led homepage. Scoped to the main percentage workspace. */
body:has(.home-workspace){background:radial-gradient(ellipse at 95% 0,#f0edff 0,transparent 38%),#f7faff;color:#10204a;font-family:"Source Sans 3","Segoe UI",sans-serif}
body:has(.home-workspace) .site-header{background:#fff;border-bottom:1px solid #e4eafa;box-shadow:none}
body:has(.home-workspace) .header-inner{min-height:58px}
.home-workspace{--blue:#1457ef;--ink:#10204a;--muted:#4e638b;--line:#dce5f4}
.home-workspace>.wrap,.home-workspace .wrap{max-width:1240px}
.home-workspace .workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 0 26px}
.workspace-heading-main{display:flex;align-items:center;gap:20px;min-width:0}
.workspace-symbol{display:grid;place-items:center;flex:0 0 62px;height:62px;border-radius:17px;background:linear-gradient(135deg,#45b8ff,#1457ef 65%,#0cb8dc);box-shadow:0 7px 18px #1457ef25;color:white;font-size:2.7rem;font-weight:700;line-height:1}
.home-workspace .workspace-heading h1{font-size:2.25rem;font-weight:700;letter-spacing:-.035em;line-height:1.15;color:var(--ink);margin:0}
.workspace-heading-main p{font-size:1.15rem;color:var(--muted);line-height:1.45;margin:6px 0 0}
.workspace-reassurance{display:flex;align-items:center;gap:10px;padding:14px 18px;border-radius:14px;background:#eef1ff;color:#203d84;font-size:.97rem;font-weight:600;white-space:nowrap}
.workspace-reassurance>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:white;color:#1457ef}
.home-workspace .calculator-shell{border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;scroll-margin-top:12px}
.home-workspace .calculation-picker{padding:0;background:transparent;border:0}
.home-workspace #picker-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.home-workspace .mode-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0;background:transparent;border:0}
.home-workspace .mode-button{display:flex;align-items:center;gap:15px;min-width:0;min-height:94px;padding:16px 32px 16px 18px;background:#fff;border:1px solid #e0e8f5;border-radius:14px;box-shadow:0 3px 12px #142f6705;text-align:left;color:var(--ink);position:relative;transition:background .12s,border-color .12s}
.home-workspace .mode-button>span:last-child{min-width:0}
.home-workspace .mode-button strong{display:block;font-size:1.05rem;line-height:1.25;font-weight:700;color:inherit}
.home-workspace .mode-button small{display:block;font-size:.91rem;line-height:1.3;color:var(--muted);margin-top:6px}
.home-workspace .mode-button:before{content:"";position:absolute;width:16px;height:16px;border:1.5px solid #90a5ca;border-radius:50%;right:14px;top:18px;background:white}
.home-workspace .mode-button:after{content:none}
.home-workspace .mode-button[aria-pressed=true]{background:linear-gradient(115deg,#f3f9ff,#edf4ff);border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue),0 3px 14px #1457ef0b;color:var(--ink)}
.home-workspace .mode-button[aria-pressed=true] strong{color:var(--ink)}
.home-workspace .mode-button[aria-pressed=true] small{color:var(--muted)}
.home-workspace .mode-button[aria-pressed=true]:before{background:var(--blue);border-color:var(--blue)}
.home-workspace .mode-button[aria-pressed=true]:after{content:"";position:absolute;right:19px;top:21px;width:5px;height:8px;border-right:2px solid white;border-bottom:2px solid white;transform:rotate(45deg)}
.home-workspace .mode-button:hover{background:#f0f6ff;border-color:var(--blue)}
.mode-icon{flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#edf7ff,#dfeaff);color:#1457ef}
.mode-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.mode-icon .rise{stroke:#00a776}.mode-icon .fall{stroke:#e34b51}
.home-workspace .calc-body{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"inputs answer" "examples answer";gap:0 16px;margin-top:18px;align-items:stretch;min-height:0}
.home-workspace .input-panel{grid-area:inputs;padding:24px 26px 16px;border:1px solid #e2e9f5;border-bottom:0;border-radius:16px 16px 0 0;background:white;min-width:0;box-shadow:none}
.panel-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px}
.panel-step{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:50%;background:#e8efff;color:#1d3980;font-weight:700;font-size:1.1rem}
.home-workspace .mode-title,.home-workspace .quick-examples h2{font-size:1.12rem;font-weight:700;line-height:1.25;letter-spacing:-.015em;color:var(--ink);margin:0}
.home-workspace .mode-help,.panel-heading p{display:block;font-size:1rem;line-height:1.4;margin:4px 0 0;color:var(--muted)}
.home-workspace .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.home-workspace .field label{font-size:1.02rem;line-height:1.25;font-weight:700;color:var(--ink);margin-bottom:9px}
.home-workspace .field input{font:400 1.9rem/1.2 "Source Sans 3","Segoe UI",sans-serif;font-variant-numeric:tabular-nums;min-width:0;width:100%;height:62px;min-height:62px;padding:11px 14px;border:1px solid #bdcdeb;border-radius:9px;background:#fff;color:var(--ink);box-shadow:inset 0 1px 3px #10204a03}
.home-workspace .field input:hover{border-color:#6f92d1}
.home-workspace .field input:focus{outline:3px solid #b8d3ff;outline-offset:2px;border-color:var(--blue)}
.home-workspace .field input[aria-invalid=true]{border-color:#b42318}
.home-workspace .field small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.home-workspace .calc-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px;flex-wrap:wrap}
.live-indicator{display:flex;align-items:center;gap:7px;margin:0 auto 0 0;font-size:.84rem;color:#3c6b61}
.live-indicator>span{width:6px;height:6px;border-radius:50%;background:#08a17c}
.home-workspace .text-button,.home-workspace .example-button{font:600 .95rem/1.2 "Source Sans 3","Segoe UI",sans-serif;min-height:44px;padding:10px 12px;border:1px solid #d6e2f6;border-radius:8px;background:#f9fbff;color:#203d84;box-shadow:none;text-decoration:none;transform:none}
.home-workspace .text-button:hover,.home-workspace .example-button:hover{background:#edf4ff;border-color:#9fb9ee}
.home-workspace .error-message{font-size:.94rem;line-height:1.45;margin:10px 0 0;color:#b42318}.home-workspace .error-message:empty{display:none}
.quick-examples{grid-area:examples;background:white;border:1px solid #e2e9f5;border-top:0;border-radius:0 0 16px 16px;padding:18px 26px 24px;min-width:0}
.quick-examples .panel-heading{padding-top:18px;border-top:1px solid #e7edf7;margin-bottom:18px}
.quick-example-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sample-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;column-gap:5px;row-gap:5px;min-width:0;min-height:78px;padding:12px;border:1px solid #dfeaff;border-radius:10px;background:#eef5ff;color:#1457ef;text-align:left;font-family:inherit}
.sample-card strong{font-size:.98rem;line-height:1.25;font-weight:700;overflow-wrap:anywhere}
.sample-card>span:nth-child(2){grid-column:1;grid-row:2;font-size:.86rem;line-height:1.25;overflow-wrap:anywhere}
.sample-card>span:last-child{grid-column:2;grid-row:1/3;font-size:1.25rem}
.sample-card:nth-child(2){background:#edf9f5;border-color:#d7efe6;color:#08775b}
.sample-card:nth-child(3){background:#fff6ed;border-color:#f6e4d2;color:#a44212}
.sample-card:nth-child(4){background:#f5f0ff;border-color:#e8ddff;color:#6633ae}
.sample-card:hover{border-color:currentColor;box-shadow:0 2px 8px #1e3e7710}
.home-workspace .result-panel{grid-area:answer;display:block;position:static;min-width:0;min-height:0;padding:22px 24px;background:linear-gradient(145deg,#e8f2ff 0%,#f8fbff 85%);border:1px solid #dce9fb;border-radius:16px;box-shadow:0 3px 12px #142f6705}
.home-workspace .result-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;margin:0 0 16px}
.result-heading{display:flex;align-items:center;gap:11px;min-width:0}
.result-icon{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border-radius:50%;color:white;background:linear-gradient(140deg,#42b4ff,#1457ef);font-size:1.65rem;font-weight:700;box-shadow:0 4px 10px #1457ef20}
.result-heading h2{font-size:1.18rem;font-weight:700;line-height:1.2;margin:0}
.home-workspace .result-label{font-size:.92rem;text-transform:none;letter-spacing:0;color:var(--muted);font-weight:400;line-height:1.3;margin:4px 0 0}
.home-workspace .precision{display:flex;align-items:center;gap:8px;font-size:.88rem;color:var(--muted)}
.home-workspace .precision select{font:400 .93rem/1.2 "Source Sans 3","Segoe UI",sans-serif;min-height:42px;border:1px solid #d6e2f6;border-radius:9px;background:white;padding:9px 10px;max-width:100px;color:var(--ink)}
.home-workspace #answer-live{padding:16px 18px 0;border:1px solid #fff;border-radius:12px;background:linear-gradient(120deg,#ffffffa8,#ffffff20);min-width:0}
.result-context{font-size:1.3rem;font-weight:600;line-height:1.3;margin:0;color:var(--ink);overflow-wrap:anywhere}
.home-workspace .result-number{font:700 clamp(2.8rem,5vw,4.3rem)/1.07 "Source Sans 3","Segoe UI",sans-serif;letter-spacing:-.035em;color:var(--blue);font-variant-numeric:tabular-nums;margin:7px 0 12px;overflow-wrap:anywhere;word-break:normal}
.home-workspace .result-sentence{font-size:.98rem;font-weight:600;line-height:1.4;padding:11px 12px;margin:0 -18px;background:#dcecff;border-radius:0 0 10px 10px;color:#153465;overflow-wrap:anywhere;min-height:0}
.home-workspace .result-footnote{font-size:.82rem;line-height:1.4;color:var(--muted);margin:7px 0 0}
.home-workspace .workings{border:0;margin:10px 0 12px;padding:0}
.home-workspace .workings summary{display:flex;align-items:center;gap:8px;min-height:42px;font-size:1rem;font-weight:700;color:#153465;text-decoration:none;cursor:pointer}
.home-workspace .workings summary:before{content:"⌄";font-size:1.2rem;color:var(--blue)}
.home-workspace .workings:not([open]) summary:before{content:"›"}
.home-workspace .workings p{font-size:.95rem;line-height:1.5;margin:0;overflow-wrap:anywhere}
.home-workspace #calculation-steps{counter-reset:step;list-style:none;padding:0;margin:0}
#calculation-steps:empty{display:none}
#calculation-steps li{counter-increment:step;position:relative;padding:5px 0 5px 29px;font-size:.93rem;line-height:1.45;color:#405881;overflow-wrap:anywhere}
#calculation-steps li:before{content:counter(step);position:absolute;left:0;top:6px;width:21px;height:21px;display:grid;place-items:center;background:#5186f5;border-radius:50%;color:white;font-size:.78rem;font-weight:600}
.home-workspace .result-toolbar{display:inline-flex;vertical-align:top;padding:0;border:0;margin:0 9px 0 0;max-width:100%}
.home-workspace .copy-button,.home-workspace .ypc-share-button{min-height:48px;border-radius:9px;font:600 1rem/1.2 "Source Sans 3","Segoe UI",sans-serif;padding:12px 20px;box-shadow:none;transform:none}
.home-workspace .copy-button{background:#039d83;border:1px solid #008a72;color:white;box-shadow:0 4px 9px #008a7218}
.home-workspace .copy-button:hover{background:#007e69}
.home-workspace .copy-button:disabled{background:#e3eaf0;border-color:#d1dbe5;color:#5b6b7e;box-shadow:none}
.home-workspace .ypc-share{display:inline-block;border:0;padding:0;margin:0;max-width:100%;vertical-align:top}
.home-workspace .ypc-share-button{background:#f7faff;border:1px solid #bdd1f1;color:#17326b}
.home-workspace .ypc-share-button:hover{background:#e6efff;border-color:#7da4eb}
.home-workspace .ypc-share-note{font-size:.77rem;margin-top:6px;line-height:1.4;color:var(--muted)}
.home-workspace .ypc-share-row{gap:8px}.home-workspace .copy-status,.home-workspace .ypc-share-status{font-size:.8rem}
.home-workspace .ypc-share-link input{font-size:1rem}
.home-workspace .advanced-calculations{margin-top:16px;background:white;border:1px solid #dce5f4;border-radius:12px;box-shadow:none}
.home-workspace .advanced-calculations>summary{background:white;min-height:48px;font-size:.96rem;padding:12px 48px 12px 18px}
.home-workspace .advanced-calculations>summary span{font-size:.85rem}
.home-workspace .advanced-options .mode-button{min-height:70px}
.home-workspace .tool-notes{font-size:.83rem;padding:12px 0;gap:20px}
.home-workspace .workspace-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:20px 0 24px;border-bottom:1px solid var(--line)}
.home-workspace .workspace-links a{display:flex;flex-direction:column;gap:5px;text-decoration:none;min-height:48px;color:var(--ink)}
.home-workspace .workspace-links strong{font-size:1rem;font-weight:700}
.home-workspace .workspace-links a>span{font-size:.95rem;color:#194ecf;text-decoration:underline;text-underline-offset:4px}
.home-workspace .learning-grid{margin:0;padding:30px 0;border:0}
.home-workspace .choice-link{box-shadow:none}
.home-workspace .workspace-explainer{display:grid;grid-template-columns:.8fr 1.2fr;gap:40px;padding:32px 0;border-top:1px solid var(--line)}
.home-workspace .workspace-explainer h2{font-size:1.7rem;font-weight:700;line-height:1.3;margin:0}
.home-workspace .workspace-explainer p{font-size:1.02rem;line-height:1.65;color:var(--muted);margin:0 0 12px}
.home-workspace .workspace-explainer a{color:#194ecf;text-decoration:underline}
.home-workspace .benefit-grid{display:none}
.home-workspace .example-grid article{box-shadow:none}
.home-workspace :is(button,summary,a,select):focus-visible{outline:3px solid #1457ef;outline-offset:3px}
.home-workspace [hidden]{display:none!important}
@media(max-width:1000px) and (min-width:761px){
.home-workspace .workspace-heading h1{font-size:1.9rem}.workspace-reassurance{display:none}
.home-workspace .mode-button{padding:14px 28px 14px 12px;gap:10px}
.mode-icon{width:36px;height:36px;flex-basis:36px}.mode-icon svg{width:24px;height:24px}
.home-workspace .mode-button strong{font-size:.95rem}.home-workspace .mode-button small{font-size:.84rem}
.home-workspace .input-panel,.quick-examples{padding-left:18px;padding-right:18px}
.quick-example-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-workspace .result-panel{padding:20px 18px}.home-workspace .precision>span{display:none}
.home-workspace .copy-button,.home-workspace .ypc-share-button{padding:11px 14px;font-size:.92rem}
}
@media(max-width:760px){
body:has(.home-workspace) .header-inner{min-height:52px}
.home-workspace .wrap{width:calc(100% - 24px)}
.home-workspace .workspace-heading{padding:14px 0 16px;gap:10px}
.workspace-heading-main{gap:11px}.workspace-symbol{flex-basis:38px;width:38px;height:38px;border-radius:10px;font-size:1.8rem;box-shadow:none}
.home-workspace .workspace-heading h1{font-size:1.45rem;line-height:1.15}
.workspace-heading-main p{font-size:.9rem;line-height:1.3;margin-top:4px}
.workspace-reassurance{display:none}
.home-workspace .mode-bar{gap:7px}
.home-workspace .mode-button{display:block;min-height:86px;padding:11px 8px 10px;border-radius:10px}
.home-workspace .mode-icon{display:none}
.home-workspace .mode-button strong{font-size:.85rem;line-height:1.2;padding-right:0}
.home-workspace .mode-button small{font-size:.75rem;line-height:1.25;margin-top:5px}
.home-workspace .mode-button:before{width:10px;height:10px;right:7px;top:7px;display:none}
.home-workspace .mode-button[aria-pressed=true]:before{display:block}
.home-workspace .mode-button[aria-pressed=true]:after{right:10px;top:9px;width:3px;height:5px;border-width:1px}
.home-workspace .mode-button[aria-pressed=true]{border-bottom:3px solid #1457ef}
.home-workspace .calc-body{grid-template-columns:1fr;grid-template-areas:"inputs" "answer" "examples";gap:0;margin-top:12px}
.home-workspace .input-panel{padding:16px 16px 10px;border-radius:12px 12px 0 0;border-bottom:0}
.panel-heading{gap:9px;margin-bottom:13px}
.panel-step{width:25px;height:25px;flex-basis:25px;font-size:.95rem}
.home-workspace .mode-title{font-size:1rem}
.home-workspace .mode-help{font-size:.86rem;line-height:1.3;margin-top:3px}
.home-workspace .fields{gap:12px}
.home-workspace .field label{font-size:.9rem;line-height:1.2;margin-bottom:6px}
.home-workspace .field input{height:49px;min-height:49px;font-size:1.5rem;padding:8px 11px;border-radius:7px}
.home-workspace .calc-actions{margin-top:5px;gap:4px;flex-wrap:nowrap}
.live-indicator{font-size:.72rem;line-height:1.25;gap:5px;max-width:125px}
.home-workspace .text-button,.home-workspace .example-button{font-size:.8rem;min-height:40px;padding:8px}
.home-workspace .result-panel{padding:12px 16px 16px;border-radius:0;border:1px solid #dce5f4;border-block:0}
.home-workspace .result-top{min-height:35px;margin-bottom:9px}
.result-icon{display:none}.result-heading{gap:0}
.result-heading h2{font-size:1rem}
.home-workspace .result-label{font-size:.78rem;margin-top:2px}
.home-workspace .precision{font-size:.76rem;gap:5px}
.home-workspace .precision select{min-height:36px;font-size:.85rem;padding:6px}
.home-workspace #answer-live{padding:10px 12px 0;border-radius:9px}
.result-context{font-size:1rem;line-height:1.25}
.home-workspace .result-number{font-size:2.8rem;line-height:1.05;margin:4px 0 7px}
.home-workspace .result-sentence{font-size:.88rem;line-height:1.35;margin:0 -12px;padding:8px 10px;border-radius:0 0 8px 8px}
.home-workspace .result-footnote{font-size:.75rem;line-height:1.4;margin-top:5px}
.home-workspace .workings{margin:5px 0 10px}
.home-workspace .workings summary{font-size:.9rem;min-height:40px}
#calculation-steps li{font-size:.86rem;line-height:1.4;padding:5px 0 5px 27px}
.home-workspace .copy-button,.home-workspace .ypc-share-button{min-height:44px;font-size:.88rem;padding:10px 12px}
.home-workspace .result-toolbar{margin-right:6px}
.home-workspace .ypc-share-note{font-size:.73rem;line-height:1.4}
.quick-examples{border-radius:0 0 12px 12px;padding:4px 16px 18px;border-top:0}
.quick-examples .panel-heading{padding-top:16px;margin-bottom:12px}
.home-workspace .quick-examples h2{font-size:1rem}
.quick-examples .panel-heading p{font-size:.85rem}
.quick-example-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.sample-card{min-height:67px;padding:10px 12px}.sample-card strong{font-size:.97rem}.sample-card>span:nth-child(2){font-size:.84rem}
.home-workspace .advanced-calculations{margin-top:12px}
.home-workspace .advanced-calculations>summary{font-size:.9rem;padding-left:14px}
.home-workspace .advanced-calculations>summary span{font-size:.8rem;display:block;margin:3px 0 0}
.home-workspace .tool-notes{font-size:.78rem;gap:12px}
.home-workspace .workspace-links{grid-template-columns:1fr;gap:14px;padding:12px 0 24px}
.home-workspace .workspace-links a{padding-bottom:10px;border-bottom:1px solid var(--line)}
.home-workspace .workspace-links a:last-child{border:0;padding-bottom:0}
.home-workspace .workspace-explainer{grid-template-columns:1fr;gap:14px;padding:26px 0}
.home-workspace .workspace-explainer h2{font-size:1.5rem}
.home-workspace .workspace-explainer p{font-size:1rem}
}
@media(max-width:350px){
.home-workspace .workspace-heading h1{font-size:1.25rem}.workspace-heading-main p{font-size:.82rem}
.home-workspace .mode-button{padding:11px 7px;min-height:89px}
.home-workspace .mode-button strong{font-size:.79rem}.home-workspace .mode-button small{font-size:.71rem}
.home-workspace .input-panel{padding:13px 12px 8px}.home-workspace .result-panel{padding:10px 12px 14px}
.home-workspace .mode-help{font-size:.8rem}.panel-heading{margin-bottom:10px}
.live-indicator{max-width:105px;font-size:.69rem}.home-workspace .text-button,.home-workspace .example-button{padding:8px 7px}
.home-workspace .precision>span{display:none}
}
@media(prefers-reduced-motion:reduce){.home-workspace *{scroll-behavior:auto;transition:none}}

/* Compact labels keep the result visible on short phone screens. */
.home-workspace .mode-mobile{display:none}
.home-workspace .mode-button small{font-weight:400}
.home-workspace .mode-help{min-height:0}
@media(max-width:760px){
.home-workspace .mode-desktop{display:none}
.home-workspace .mode-mobile{display:inline}
.workspace-heading-main p{display:none}
.home-workspace .workspace-heading{padding:12px 0}
.home-workspace .workspace-heading h1{font-size:1.35rem}
.workspace-symbol{flex-basis:34px;width:34px;height:34px;font-size:1.6rem}
.home-workspace .mode-button{min-height:72px;padding:10px 8px}
.home-workspace .mode-button strong{font-size:.88rem}
.home-workspace .mode-button small{font-size:.78rem}
.home-workspace .mode-help{display:none}
.home-workspace .panel-heading{margin-bottom:12px}
.home-workspace .text-button,.home-workspace .example-button{min-height:44px}
.home-workspace .result-top{margin-bottom:7px}
}
@media(max-width:350px){
.home-workspace .workspace-heading h1{font-size:1.2rem}
.home-workspace .mode-button strong{font-size:.83rem}
.home-workspace .mode-button small{font-size:.76rem}
}

/* Illustrated reference layout — compact tool-first adaptation. */
body:has(.reference-home){background:#f8fbff;color:#10204a}
.reference-home{background:linear-gradient(180deg,#eaf3ff 0,#f6faff 580px,#fbfdff 1050px);padding-bottom:16px}
.reference-home>.wrap,.reference-home .wrap{max-width:1240px}
.home-hero{display:grid;grid-template-columns:1.12fr 1fr;align-items:center;gap:30px;height:230px;padding:10px 20px}
.hero-kicker{display:inline-block;background:#d3e6ff;border-radius:6px;padding:3px 9px;text-transform:uppercase;color:#0758eb;font-size:.72rem;font-weight:700;letter-spacing:.035em;margin:0 0 10px}
.reference-home .home-hero h1{font-size:clamp(2rem,3.2vw,3rem);font-weight:700;letter-spacing:-.04em;line-height:1.1;margin:0;color:#07183e;white-space:nowrap}.home-hero h1 span{color:#0057ff}
.hero-copy>p:last-of-type{font-size:1rem;line-height:1.55;color:#4c6085;max-width:550px;margin:14px 0 0}.hero-jump{display:none}
.hero-art{position:relative;height:220px}.hero-illustration{position:absolute;width:310px;height:220px;object-fit:contain;right:-6px;top:0;max-width:78%}
.hero-example{position:absolute;z-index:1;display:flex;flex-direction:column;align-items:center;background:#fffffff2;border:1px solid #e7f0ff;border-radius:9px;box-shadow:0 7px 18px #1747960c;padding:8px 14px;font-size:.8rem;line-height:1.35;color:#203a67}
.hero-example strong{color:#10204a;font-size:.9rem}.hero-example.one{left:14%;top:15px;transform:rotate(3deg)}.hero-example.two{left:5%;top:82px;transform:rotate(-7deg);border-top:2px solid #58dab8}.hero-example.three{left:13%;top:153px;transform:rotate(-5deg)}
.reference-home .calculator-shell{padding:18px;background:#fff;border:1px solid #e9eff7;border-radius:16px;box-shadow:0 8px 28px #284f8610;overflow:hidden}
.reference-home .mode-bar{gap:10px}.reference-home .mode-button{border:1px solid #dfe8f6;background:#fff;min-height:76px;padding:12px 17px;border-radius:8px;box-shadow:none;gap:12px;position:relative}
.reference-home .mode-button[aria-pressed=true]{background:linear-gradient(115deg,#0064ff,#004cff);border-color:#0057ff;color:white;box-shadow:0 5px 12px #0057ff1c}
.reference-home .mode-button[aria-pressed=true] strong,.reference-home .mode-button[aria-pressed=true] small{color:white}.reference-home .mode-button::after{display:none}
.reference-home .mode-icon{width:44px;height:44px;background:#edf4ff;flex-basis:44px;color:#0057ff}.reference-home .mode-button[aria-pressed=true] .mode-icon{background:#fff;color:#0057ff}.reference-home .mode-icon svg{width:25px;height:25px}
.reference-home .mode-button strong{font-size:1rem}.reference-home .mode-button small{font-size:.8rem;margin-top:3px;line-height:1.25}
.reference-home .calc-body{grid-template-columns:1.3fr .85fr;grid-template-areas:"inputs answer";gap:0;margin-top:16px;border-top:1px solid #edf2fa;align-items:stretch}
.reference-home .input-panel{border:0;border-radius:0;box-shadow:none;background:#fff;padding:22px 24px 18px 16px}
.reference-home .panel-heading{gap:10px;align-items:center;margin-bottom:22px}.reference-home .input-panel .panel-step{display:none}
.reference-home .mode-title{font-size:1.4rem;line-height:1.25;letter-spacing:-.02em;margin:0}.reference-home .mode-help{font-size:.92rem;margin-top:7px;min-height:0}
.reference-home .fields{gap:16px;margin-top:0}.reference-home .field label{font-size:.9rem;margin-bottom:8px}.reference-home .field input{font-size:1.7rem;min-height:58px;padding:10px 14px;border:1px solid #cfdcee;border-radius:7px;background:#fff;box-shadow:none;color:#0b1d43}
.reference-home .quick-rates{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:20px;font-size:.8rem}.quick-rates>span{margin-right:7px}.quick-rates button{padding:9px 11px;min-width:44px;min-height:40px;border:1px solid transparent;background:#edf4ff;border-radius:7px;font-weight:700;color:#0057ff;cursor:pointer}.quick-rates button:hover,.quick-rates button:focus-visible{border-color:#0057ff;background:#dceaff}.quick-rates button[aria-pressed=true]{background:#0057ff;color:white}
.reference-home .calc-actions{margin-top:18px;gap:10px;justify-content:flex-end}.reference-home .live-indicator{margin-right:auto;font-size:.8rem}.reference-home .calc-actions button{font-size:.88rem;min-height:42px;border:1px solid #d5e1f2;background:#fff;padding:8px 16px}
.reference-home .result-panel{border:0;border-radius:0 0 9px 0;background:linear-gradient(135deg,#edf5ff,#f6faff);padding:19px 22px 18px;box-shadow:none;min-width:0}
.reference-home .result-top{justify-content:flex-end;margin:0 0 8px}.reference-home .result-heading{display:none}.reference-home .precision{gap:9px;font-size:.8rem}.reference-home .precision select{min-height:40px;font-size:.85rem;padding:7px 12px;border-radius:6px}
.reference-home #answer-live{padding:0;background:none;border:0;box-shadow:none;border-radius:0}.reference-home .result-context{font-size:.85rem;font-weight:600;margin:0;color:#0057ff}.reference-home .result-number{font-size:3.8rem;line-height:1.12;letter-spacing:-.04em;margin:5px 0 12px;color:#0057ff}.reference-home .result-sentence{background:none;border-radius:0;padding:0;font-size:.94rem;margin:0;color:#10204a}.reference-home .result-footnote{font-size:.76rem;line-height:1.4;margin:6px 0 14px}
.reference-home .workings{border-top:1px solid #dce7f6;padding-top:12px;margin-top:0}.reference-home .workings summary{font-size:.9rem}.reference-home #calculation-steps{font-size:.8rem;line-height:1.55;margin:12px 0 0;padding-left:0;gap:10px}.reference-home #calculation-steps li{padding-left:29px}.reference-home #calculation-steps li::before{width:20px;height:20px;font-size:.7rem;top:1px}
.reference-home .result-toolbar{margin-top:16px;display:flex;gap:8px;align-items:center}.reference-home .copy-button{background:#fff;color:#0057ff;border:1px solid #bed3ff;border-radius:6px;padding:10px 14px;min-height:43px;font-size:.85rem;box-shadow:none}.reference-home .copy-button:hover{background:#e4eeff}
.reference-home .share-panel{margin-top:10px}.reference-home .share-button{min-height:43px;background:#0057ff;color:#fff;border:1px solid #0057ff;border-radius:6px;padding:10px 14px;font-size:.85rem}.reference-home .share-help{font-size:.7rem}
.reference-home .advanced-calculations{margin:12px 0 0;border-color:#e2eaf5;box-shadow:none}.reference-home .advanced-calculations summary{padding:10px 15px;font-size:.84rem}.reference-home .advanced-options .mode-button[aria-pressed=true] strong,.reference-home .advanced-options .mode-button[aria-pressed=true] small{color:#fff}
.reference-home .tool-notes{margin:10px 0 0;font-size:.74rem;justify-content:center}
.feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:27px 12px}.feature-strip>div{display:flex;gap:13px;align-items:center}.feature-strip p{margin:0}.feature-strip strong,.feature-strip small{display:block}.feature-strip strong{font-size:.9rem}.feature-strip small{font-size:.8rem;color:#53688d;margin-top:3px}.feature-icon{width:48px;height:48px;flex-shrink:0;border-radius:50%;background:#e6f7ef;color:#009d59;display:grid;place-items:center;font-size:1.7rem;font-weight:700}.feature-strip>div:nth-child(2) .feature-icon{background:#f0e8ff;color:#7946e9}.feature-strip>div:nth-child(3) .feature-icon{background:#fff2e2;color:#eb8809}.feature-strip>div:nth-child(4) .feature-icon{background:#e6f1ff;color:#0057ff}
.reference-home .quick-examples{background:#fff;border:1px solid #edf2f8;border-radius:13px;box-shadow:0 4px 16px #163b6d05;padding:20px;margin:0 0 20px}.reference-home .quick-examples .panel-heading{margin-bottom:18px}.reference-home .quick-examples h2{font-size:1.2rem}.reference-home .quick-examples .panel-heading p{font-size:.85rem}.reference-home .quick-example-list{grid-template-columns:repeat(5,1fr);gap:14px}.reference-home .sample-card{min-height:78px;padding:12px 16px;border:0;border-radius:8px;font-size:.9rem}.reference-home .sample-card strong{font-size:1rem}.reference-home .sample-card>span:last-child{right:12px}
.outline-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid #80a7ff;border-radius:6px;padding:9px 14px;color:#0057ff;font-size:.85rem;font-weight:600;white-space:nowrap}.panel-heading>.outline-link,.section-heading>.outline-link{margin-left:auto}.outline-link:hover{background:#edf4ff}
.learning-pair{display:grid;grid-template-columns:1.25fr .85fr;gap:18px;margin-bottom:20px}.formula-library,.percentage-intro,.related-tools{background:#fff;border:1px solid #edf2f8;border-radius:13px;padding:22px;box-shadow:0 4px 16px #163b6d05;min-width:0}
.section-heading{display:flex;gap:12px;align-items:center;margin-bottom:22px}.section-heading h2{font-size:1.25rem;line-height:1.25;letter-spacing:-.02em;margin:0}.section-heading p{color:#53688d;font-size:.88rem;margin:4px 0 0}.section-icon{display:grid;place-items:center;background:#e9f2ff;border-radius:50%;width:42px;height:42px;flex:none;color:#0057ff;font-size:1.5rem;font-weight:700}
.formula-workspace{display:grid;grid-template-columns:170px 1fr;gap:24px}.formula-tabs{background:#f6f8fc;border-radius:7px;overflow:hidden;display:flex;flex-direction:column}.formula-tabs button{text-align:left;padding:12px 13px;color:#53688d;font-size:.82rem;border-left:3px solid transparent;cursor:pointer}.formula-tabs button[aria-selected=true]{color:#0057ff;background:#e7f0ff;border-left-color:#0057ff;font-weight:600}.formula-panels{min-width:0}.formula-panels h3{font-size:.94rem;margin:8px 0 12px}.formula-equation{background:#edf4ff;padding:13px 12px;border-radius:6px;font-size:.9rem;font-weight:600;line-height:1.6}.formula-panels h4{font-size:.9rem;margin:22px 0 6px}.formula-panels p{color:#405a84;font-size:.92rem;line-height:1.6}.formula-panels .formula-equation{color:#10204a}.formula-caveat{font-size:.75rem;line-height:1.6;color:#60718f;margin:15px 0 0}.formula-caveat a{color:#0057ff}
.intro-content{display:flex;align-items:flex-end;gap:8px}.intro-content>div{flex:1;min-width:0}.intro-content p{font-size:.92rem;line-height:1.75;color:#53688d;margin:0 0 13px}.intro-content img{width:125px;height:200px;object-fit:contain;max-width:38%}.intro-content .outline-link{margin-top:8px}
.related-tools{margin-bottom:22px}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.related-card{display:flex;align-items:center;gap:12px;padding:17px 14px;border:1px solid #eaf0f7;border-radius:9px;box-shadow:0 2px 7px #163b6d03;min-width:0}.related-card:hover{border-color:#8fb4ff;box-shadow:0 4px 13px #163b6d09}.related-card strong,.related-card small{display:block}.related-card strong{font-size:.94rem;color:#10204a;line-height:1.3}.related-card small{font-size:.8rem;line-height:1.45;color:#53688d;margin-top:4px}.related-card>span:last-child{margin-left:auto;color:#1f468c}.tool-symbol{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:50%;background:#e9f3ff;color:#0057ff;font-size:1.6rem;font-weight:700}.related-card:nth-child(3n+1) .tool-symbol{background:#e8f8ef;color:#009b58}.related-card:nth-child(3n+2) .tool-symbol{background:#fff0f0;color:#e24552}
.reference-home .home-faq{padding:0 0 22px;background:transparent;border:0}.reference-home .faq-layout{grid-template-columns:.65fr 1.35fr;gap:32px;background:#fff;border:1px solid #edf2f8;border-radius:13px;padding:25px}.reference-home .home-faq h2{font-size:1.4rem}.reference-home .home-faq details{background:#fff;border:1px solid #e8eef7;border-radius:7px;padding:0 14px;margin-bottom:10px}.reference-home .home-faq summary{font-size:.94rem;padding:14px 0;line-height:1.5}.reference-home .home-faq details p{font-size:.9rem;line-height:1.75}.reference-home .home-faq .section-intro{font-size:.92rem}.home-transparency{padding:20px 24px 24px!important;background:#edf5ff;border-radius:12px;margin-bottom:20px}.home-transparency h2{font-size:1.15rem;margin:0 0 9px}.home-transparency p{font-size:.9rem;line-height:1.7;color:#506589;max-width:930px}.home-transparency a{font-size:.86rem;color:#0057ff}
.reference-home button:focus-visible,.reference-home a:focus-visible{outline:3px solid #76aeff;outline-offset:3px}
@media(min-width:1000px){.reference-home .share-panel{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}.reference-home .share-help{margin:0}}
@media(max-width:1050px){.home-hero{height:205px;padding:6px 4px;gap:12px}.hero-art{height:195px}.hero-illustration{width:250px;height:195px}.hero-example{font-size:.7rem;padding:7px 10px}.hero-example strong{font-size:.78rem}.hero-example.one{left:5%;top:8px}.hero-example.two{left:-3%;top:70px}.hero-example.three{left:2%;top:135px}.reference-home .mode-button{padding:10px;gap:9px;min-height:70px}.reference-home .mode-button strong{font-size:.9rem}.reference-home .mode-button small{font-size:.73rem}.reference-home .mode-icon{width:36px;height:36px;flex-basis:36px}.reference-home .input-panel{padding:20px 19px 15px 6px}.reference-home .result-panel{padding:18px}.formula-workspace{grid-template-columns:145px 1fr;gap:15px}.learning-pair{grid-template-columns:1.15fr 1fr}.intro-content img{width:100px}.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-strip{gap:15px;padding:24px 0}.feature-icon{width:40px;height:40px}.feature-strip>div{gap:8px}.feature-strip strong{font-size:.82rem}.feature-strip small{font-size:.73rem}}
@media(max-width:760px){.home-hero{height:auto;min-height:100px;padding:17px 2px 15px;display:block}.home-hero .hero-kicker{font-size:.62rem;margin-bottom:7px;padding:2px 6px}.reference-home .home-hero h1{font-size:clamp(1.65rem,5.6vw,2.5rem);white-space:normal}.hero-copy>p:last-of-type{font-size:.84rem;line-height:1.4;max-width:520px;margin-top:8px}.hero-art{display:none}.reference-home .calculator-shell{padding:10px;border-radius:12px}.reference-home .mode-bar{gap:6px}.reference-home .mode-button{min-height:66px;padding:8px 7px;border-radius:6px}.reference-home .mode-button strong{font-size:.77rem;line-height:1.2}.reference-home .mode-button small{font-size:.65rem;line-height:1.2}.reference-home .mode-icon{display:none}.reference-home .calc-body{grid-template-columns:1fr;grid-template-areas:"inputs" "answer";margin-top:10px}.reference-home .input-panel{padding:15px 4px 12px}.reference-home .panel-heading{margin-bottom:14px}.reference-home .mode-title{font-size:1.1rem}.reference-home .mode-help{display:none}.reference-home .fields{gap:11px}.reference-home .field label{font-size:.79rem;margin-bottom:5px}.reference-home .field input{font-size:1.5rem;min-height:49px;padding:8px 11px}.reference-home .quick-rates{gap:6px;margin-top:12px;flex-wrap:nowrap}.quick-rates>span{display:none}.quick-rates button{flex:1;min-width:0;padding:7px 5px;min-height:37px;font-size:.76rem}.reference-home .calc-actions{margin-top:10px;gap:7px}.reference-home .calc-actions button{min-height:36px;font-size:.76rem;padding:7px 12px}.reference-home .live-indicator{font-size:.7rem}.reference-home .result-panel{padding:13px 14px;border-radius:8px}.reference-home .result-top{margin:0;float:right}.reference-home .precision{font-size:.68rem;gap:5px}.reference-home .precision select{min-height:32px;font-size:.72rem;padding:5px 7px}.reference-home .result-context{font-size:.75rem;padding-top:6px;max-width:60%;min-height:30px}.reference-home .result-number{font-size:2.8rem;margin:0 0 7px;clear:both}.reference-home .result-sentence{font-size:.8rem}.reference-home .result-footnote{font-size:.68rem;margin:5px 0 10px}.reference-home .workings{padding-top:10px}.reference-home .workings summary{font-size:.8rem}.reference-home #calculation-steps{font-size:.75rem}.reference-home .result-toolbar{margin-top:12px}.reference-home .advanced-calculations{margin-top:10px}.reference-home .advanced-calculations summary{font-size:.75rem;padding:9px 11px}.reference-home .advanced-calculations summary>span{display:none}.reference-home .tool-notes{font-size:.66rem;gap:12px;margin-top:8px}.feature-strip{grid-template-columns:repeat(2,1fr);gap:18px;padding:24px 4px}.reference-home .quick-examples{padding:16px;margin-bottom:14px}.reference-home .quick-examples .panel-step{display:none}.reference-home .quick-examples .panel-heading{gap:10px;align-items:flex-start;margin-bottom:13px}.reference-home .quick-examples h2{font-size:1.08rem}.reference-home .quick-examples .panel-heading p{font-size:.75rem}.outline-link{font-size:.75rem;padding:7px 10px;min-height:38px}.reference-home .quick-example-list{grid-template-columns:repeat(2,1fr);gap:9px}.reference-home .sample-card{min-height:68px;padding:10px 12px;font-size:.8rem}.reference-home .sample-card strong{font-size:.9rem}.reference-home .sample-card:last-child:nth-child(odd){grid-column:1/-1}.learning-pair{grid-template-columns:1fr;gap:14px;margin-bottom:14px}.formula-library,.percentage-intro,.related-tools{padding:17px}.section-heading{gap:10px;margin-bottom:16px;flex-wrap:wrap}.section-heading h2{font-size:1.12rem}.section-heading p{font-size:.8rem}.section-icon{width:36px;height:36px;font-size:1.3rem}.formula-workspace{grid-template-columns:1fr;gap:15px}.formula-tabs{display:grid;grid-template-columns:repeat(2,1fr)}.formula-tabs button{padding:10px;font-size:.76rem;min-height:42px}.formula-panels h3{margin-top:0}.formula-panels h4{margin-top:15px}.formula-equation{font-size:.83rem}.intro-content img{width:120px;max-width:33%;height:180px}.intro-content p{font-size:.85rem}.related-grid{gap:10px}.related-card{padding:12px 10px;gap:9px}.related-card .tool-symbol{display:none}.related-card strong{font-size:.85rem}.related-card small{font-size:.74rem}.related-card>span:last-child{display:none}.related-tools .section-heading>.outline-link{font-size:.7rem}.reference-home .faq-layout{grid-template-columns:1fr;gap:16px;padding:18px}.reference-home .home-faq .eyebrow,.reference-home .home-faq .section-intro{display:none}.reference-home .home-faq h2{font-size:1.2rem;margin:0}.reference-home .home-faq summary{font-size:.85rem;padding:12px 0}.home-transparency{padding:17px!important}.home-transparency h2{font-size:1.05rem}.home-transparency p{font-size:.83rem}}
@media(max-width:350px){.home-hero{padding:12px 2px}.home-hero .hero-kicker{display:none}.hero-copy>p:last-of-type{font-size:.77rem}.reference-home .home-hero h1{font-size:1.6rem}.reference-home .mode-button{min-height:59px;padding:7px 5px}.reference-home .mode-button strong{font-size:.7rem}.reference-home .mode-button small{font-size:.6rem}.reference-home .quick-rates{margin-top:10px}.reference-home .quick-rates button{min-height:32px;font-size:.7rem}.reference-home .calc-actions{margin-top:8px}.reference-home .calc-actions .example-button{display:none}.reference-home .result-panel{padding:11px 12px}.reference-home .quick-examples .outline-link{font-size:.68rem;padding:6px 7px}.feature-strip{gap:14px 10px}.feature-strip strong{font-size:.77rem}.feature-strip small{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){.reference-home *{scroll-behavior:auto;transition:none!important}}

/* Final fit and control alignment. */
.reference-home .result-panel{position:relative}
.reference-home .result-top{position:absolute;right:20px;top:18px;height:40px;margin:0}
.reference-home .result-context{padding-top:12px;min-height:42px;max-width:65%}
.reference-home .result-toolbar{display:inline-flex;margin:12px 8px 0 0;vertical-align:top}
.reference-home .ypc-share{display:inline-block;margin-top:12px;vertical-align:top;max-width:100%}
.reference-home .ypc-share-button{background:#0057ff;color:#fff;border:1px solid #0057ff;border-radius:6px;min-height:43px;padding:10px 14px;font-size:.85rem}
.reference-home .ypc-share-button:hover{background:#0048db;border-color:#0048db;color:#fff}
.reference-home .ypc-share-note{font-size:.68rem;margin-top:5px}
.reference-home .ypc-share-row{gap:4px;flex-wrap:wrap}
.reference-home .workings{margin-bottom:0}
.reference-home .workings summary{min-height:24px;padding:0;line-height:1.5}
.reference-home #calculation-steps li{margin:0}
.reference-home .mode-button[aria-pressed=true]::before{background:white;color:#0057ff}
.reference-home .feature-icon svg,.reference-home .section-icon svg,.reference-home .tool-symbol svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.home-hero{padding:13px 2px 12px;min-height:0}.home-hero .hero-kicker{display:none}.hero-copy>p:last-of-type{font-size:.8rem;margin-top:6px}.reference-home .result-top{right:13px;top:11px;height:32px}.reference-home .result-context{padding-top:5px;min-height:29px}.reference-home .result-number{clear:none;margin-top:1px}.reference-home .result-toolbar{display:inline-flex;margin-top:12px}.reference-home .ypc-share{margin-top:12px}.reference-home .ypc-share-button{font-size:.78rem;padding:10px 11px;min-height:41px}.reference-home .input-panel{padding-top:12px}.reference-home .quick-rates{margin-top:10px}}
@media(max-width:350px){.hero-copy>p:last-of-type{font-size:.74rem;line-height:1.35}.reference-home .input-panel{padding-top:11px}.reference-home .panel-heading{margin-bottom:11px}.reference-home .result-context{min-height:28px}}

.reference-home h2,.reference-home h3,.reference-home h4{font-weight:700}.reference-home .formula-tabs button{font-family:inherit}


/* Readable type, stronger contrast and balanced section spacing. */
.reference-home{--ink:#10203f;--muted:#405474;font-size:18px;line-height:1.65}
.reference-home :is(button,input,select){font-family:inherit}
.reference-home p{color:#405474}
.reference-home .home-hero{height:220px;padding:16px 20px;gap:30px}
.reference-home .home-hero h1{font-size:clamp(36px,3.8vw,52px);line-height:1.12;letter-spacing:-.035em}
.reference-home .hero-copy>p:last-of-type{font-size:18px;line-height:1.6;max-width:600px;margin-top:14px;color:#405474}
.reference-home .hero-kicker{font-size:14px;letter-spacing:.05em;padding:3px 8px}
.reference-home .hero-example{font-size:15px;line-height:1.4;padding:8px 12px}
.reference-home .hero-example strong{font-size:17px}
.reference-home .mode-button{min-height:88px;padding:15px 26px 15px 16px;gap:12px}
.reference-home .mode-button strong{font-size:19px;line-height:1.25}
.reference-home .mode-button small{font-size:16px;line-height:1.35;margin-top:5px;color:#405474}
.reference-home .mode-button::before{right:10px;top:12px;width:14px;height:14px}
.reference-home .mode-button[aria-pressed=true] small{color:#fff}
.reference-home .mode-title{font-size:27px;line-height:1.25;letter-spacing:-.025em}
.reference-home .mode-help{font-size:17px;line-height:1.5;margin-top:7px;color:#405474}
.reference-home .input-panel{padding:24px 24px 22px 16px}
.reference-home .fields{gap:18px}
.reference-home .field label{font-size:17px;line-height:1.35;margin-bottom:8px}
.reference-home .field input{font-size:30px;line-height:1.2;height:62px;min-height:62px;padding:10px 14px}
.reference-home .quick-rates{font-size:16px;gap:7px;margin-top:18px}
.reference-home .quick-rates button{font-size:17px;line-height:1.25;min-height:44px;padding:8px 10px}
.reference-home .calc-actions{margin-top:16px;gap:10px}
.reference-home .live-indicator{font-size:16px;line-height:1.35;color:#23644e}
.reference-home .calc-actions button{font-size:16px;line-height:1.3;min-height:44px;padding:9px 15px}
.reference-home .error-message{font-size:16px;line-height:1.5}
.reference-home .result-panel{padding:24px}
.reference-home .result-top{top:21px;right:22px;min-height:44px}
.reference-home .precision{font-size:16px;gap:8px}
.reference-home .precision select{font-size:16px;min-height:44px;padding:8px 10px}
.reference-home .result-context{font-size:18px;line-height:1.4;min-height:48px;max-width:57%;padding-top:7px;color:#004dc5}
.reference-home .result-number{font-size:68px;line-height:1.08;margin:8px 0 14px}
.reference-home .result-sentence{font-size:18px;line-height:1.5;font-weight:600;color:#10203f}
.reference-home .result-footnote{font-size:15px;line-height:1.5;color:#405474;margin:7px 0 18px}
.reference-home .workings{padding-top:16px}
.reference-home .workings summary{font-size:18px;line-height:1.4;min-height:32px}
.reference-home #calculation-steps{margin-top:14px}
.reference-home #calculation-steps li{font-size:17px;line-height:1.6;padding-left:31px;color:#344b6e}
.reference-home #calculation-steps li::before{font-size:14px;width:23px;height:23px;top:3px}
.reference-home .copy-button,.reference-home .ypc-share-button{font-size:17px;min-height:48px;padding:11px 15px;line-height:1.3}
.reference-home .ypc-share-note{font-size:15px;line-height:1.45;color:#405474;margin-top:8px}
.reference-home .copy-status,.reference-home .ypc-share-status{font-size:15px}
.reference-home .advanced-calculations summary{font-size:17px;line-height:1.45;min-height:48px;padding:12px 42px 12px 16px}
.reference-home .advanced-calculations summary>span{font-size:16px}
.reference-home .tool-notes{font-size:15px;line-height:1.4;gap:20px;padding:10px 0;margin-top:7px;color:#405474}
.reference-home .feature-strip{padding:32px 8px;gap:24px}
.reference-home .feature-strip strong{font-size:18px;line-height:1.3}
.reference-home .feature-strip small{font-size:16px;line-height:1.45;color:#405474;margin-top:5px}
.reference-home .quick-examples{padding:26px;margin-bottom:26px}
.reference-home .quick-examples .panel-heading{padding-top:0;border-top:0;margin-bottom:22px}
.reference-home .quick-examples h2,.reference-home .section-heading h2{font-size:28px;line-height:1.2;letter-spacing:-.025em}
.reference-home .quick-examples .panel-heading p,.reference-home .section-heading p{font-size:18px;line-height:1.5;color:#405474;margin-top:7px}
.reference-home .sample-card{min-height:96px;padding:16px}
.reference-home .sample-card strong{font-size:20px;line-height:1.3}
.reference-home .sample-card>span:nth-child(2){font-size:18px;line-height:1.35}
.reference-home .outline-link{font-size:16px;min-height:46px;padding:10px 15px;line-height:1.35;white-space:normal}
.reference-home .learning-pair{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;margin-bottom:26px}
.reference-home .formula-library,.reference-home .percentage-intro,.reference-home .related-tools{padding:28px;border-color:#dfe8f3;box-shadow:0 3px 14px #12335704}
.reference-home .section-heading{gap:14px;margin-bottom:26px}
.reference-home .formula-workspace{grid-template-columns:180px minmax(0,1fr);gap:24px}
.reference-home .formula-tabs button{font-size:17px;line-height:1.4;min-height:51px;padding:13px;color:#405474}
.reference-home .formula-panels h3{font-size:21px;line-height:1.4;margin:4px 0 16px}
.reference-home .formula-panels h4{font-size:18px;line-height:1.4;margin:24px 0 8px}
.reference-home .formula-panels p{font-size:18px;line-height:1.7;color:#344b6e}
.reference-home .formula-panels .formula-equation{font-size:18px;line-height:1.6;padding:16px;color:#10203f;overflow-wrap:anywhere}
.reference-home .formula-caveat{font-size:16px;line-height:1.65;margin-top:22px;color:#405474}
.reference-home .intro-content{gap:14px;align-items:center}
.reference-home .intro-content p{font-size:18px;line-height:1.75;color:#344b6e;margin-bottom:18px}
.reference-home .intro-content img{width:125px;max-width:31%;height:210px}
.reference-home .related-tools{margin-bottom:26px}
.reference-home .related-grid{gap:16px}
.reference-home .related-card{padding:21px 18px;align-items:flex-start;gap:12px;border-color:#e0e8f2}
.reference-home .related-card strong{font-size:19px;line-height:1.35}
.reference-home .related-card small{font-size:17px;line-height:1.55;color:#405474;margin-top:7px}
.reference-home .faq-layout{grid-template-columns:.65fr 1.35fr;padding:32px;gap:40px;border-color:#dfe8f3}
.reference-home .home-faq h2{font-size:30px;line-height:1.25;letter-spacing:-.025em}
.reference-home .home-faq .eyebrow{font-size:14px}
.reference-home .home-faq .section-intro{font-size:18px;line-height:1.7}
.reference-home .home-faq details{padding:0 20px;margin-bottom:14px;border-color:#dfe8f3}
.reference-home .home-faq summary{font-size:19px;line-height:1.5;padding:18px 24px 18px 0;font-weight:600}
.reference-home .home-faq details p{font-size:18px;line-height:1.75;color:#344b6e;padding-bottom:10px;max-width:70ch}
.reference-home .home-transparency{padding:28px 32px!important;margin-bottom:30px}
.reference-home .home-transparency h2{font-size:25px;line-height:1.3}
.reference-home .home-transparency p{font-size:18px;line-height:1.75;color:#344b6e;max-width:78ch;margin:14px 0}
.reference-home .home-transparency a{font-size:17px;line-height:1.5}
@media(max-width:1100px) and (min-width:761px){
.reference-home .home-hero{height:200px;padding:12px 4px;grid-template-columns:1.3fr 1fr}
.reference-home .home-hero h1{font-size:38px;white-space:normal}
.reference-home .hero-art{height:180px}.reference-home .hero-illustration{height:180px}
.reference-home .hero-example{display:none}
.reference-home .mode-button{padding:12px 23px 12px 12px;min-height:92px;gap:8px}
.reference-home .mode-button strong{font-size:18px}
.reference-home .mode-button small{font-size:15px}
.reference-home .mode-icon{display:none}
.reference-home .mode-title{font-size:24px}
.reference-home .input-panel{padding:20px 20px 20px 4px}
.reference-home .result-panel{padding:20px}
.reference-home .result-top{position:static;float:none;justify-content:flex-end;margin-bottom:8px}
.reference-home .result-context{max-width:none;min-height:0;padding-top:0}
.reference-home .feature-strip{grid-template-columns:repeat(2,1fr);padding:28px 10px;gap:24px}
.reference-home .quick-example-list{grid-template-columns:repeat(3,minmax(0,1fr))}
.reference-home .learning-pair{grid-template-columns:1fr}
.reference-home .intro-content{align-items:center}.reference-home .intro-content>div{max-width:70ch}
.reference-home .formula-workspace{grid-template-columns:200px 1fr}
}
@media(max-width:760px){
.reference-home{font-size:17px}
.reference-home .home-hero{display:block;height:auto;min-height:0;padding:16px 2px 14px}
.reference-home .home-hero h1{font-size:clamp(29px,6.5vw,38px);line-height:1.15;white-space:normal}
.reference-home .hero-copy>p:last-of-type,.reference-home .hero-kicker{display:none}
.reference-home .calculator-shell{padding:10px;border-radius:12px}
.reference-home .mode-bar{gap:6px}
.reference-home .mode-button{min-height:82px;padding:11px 6px 8px;gap:0;align-items:center}
.reference-home .mode-button strong{font-size:16px;line-height:1.25}
.reference-home .mode-button small{font-size:14px;line-height:1.25;margin-top:5px}
.reference-home .mode-button::before{width:9px;height:9px;right:5px;top:5px}
.reference-home .mode-icon{display:none}
.reference-home .calc-body{margin-top:10px}
.reference-home .input-panel{padding:12px 3px 13px}
.reference-home .panel-heading{margin-bottom:13px}
.reference-home .mode-title{font-size:22px;line-height:1.2}
.reference-home .mode-help{display:none}
.reference-home .field label{font-size:16px;line-height:1.3;margin-bottom:6px}
.reference-home .field input{font-size:28px;line-height:1.2;min-height:54px;height:54px;padding:9px 11px}
.reference-home .fields{gap:12px}
.reference-home .quick-rates{margin-top:12px;gap:5px;flex-wrap:nowrap}
.reference-home .quick-rates>span{display:none}
.reference-home .quick-rates button{font-size:16px;min-width:0;min-height:42px;padding:7px 2px;line-height:1.25;flex:1}
.reference-home .calc-actions{margin-top:12px;gap:8px}
.reference-home .calc-actions button{font-size:16px;min-height:42px;padding:8px 11px}
.reference-home .live-indicator{font-size:15px;line-height:1.3}
.reference-home .example-button{display:none}
.reference-home .result-panel{padding:14px;border-radius:8px}
.reference-home .result-top{position:static;float:right;min-height:40px;height:auto;margin:0 0 7px 8px}
.reference-home .precision{font-size:16px;gap:5px}.reference-home .precision>span{display:none}
.reference-home .precision select{font-size:16px;min-height:40px;padding:7px 8px}
.reference-home .result-context{max-width:none;min-height:40px;padding-top:7px;font-size:17px;line-height:1.35}
.reference-home .result-number{font-size:52px;line-height:1.08;margin:6px 0 8px;clear:both}
.reference-home .result-sentence{font-size:17px;line-height:1.45}
.reference-home .result-footnote{font-size:15px;line-height:1.45;margin:7px 0 14px}
.reference-home .workings summary{font-size:17px;line-height:1.4;min-height:32px}
.reference-home #calculation-steps li{font-size:16px;line-height:1.6}
.reference-home .copy-button,.reference-home .ypc-share-button{font-size:16px;min-height:46px;padding:10px 12px}
.reference-home .ypc-share-note{font-size:15px}
.reference-home .advanced-calculations summary{font-size:16px;min-height:48px;padding:12px 35px 12px 13px}
.reference-home .tool-notes{font-size:15px;gap:10px;padding:12px 2px;flex-wrap:wrap;text-align:center}
.reference-home .feature-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding:26px 2px;gap:24px 14px}
.reference-home .feature-strip>div{align-items:flex-start;gap:9px}
.reference-home .feature-icon{width:34px;height:34px}
.reference-home .feature-icon svg{width:22px;height:22px}
.reference-home .feature-strip strong{font-size:17px;line-height:1.3}
.reference-home .feature-strip small{font-size:16px;line-height:1.45}
.reference-home .quick-examples{padding:20px 17px;margin-bottom:20px}
.reference-home .quick-examples .panel-heading{flex-wrap:wrap;gap:12px;margin-bottom:18px}
.reference-home .quick-examples .panel-heading>.outline-link{margin-left:0}
.reference-home .quick-examples h2,.reference-home .section-heading h2{font-size:25px;line-height:1.25}
.reference-home .quick-examples .panel-heading p,.reference-home .section-heading p{font-size:17px;line-height:1.5}
.reference-home .sample-card{min-height:89px;padding:13px 12px}
.reference-home .sample-card strong{font-size:18px;line-height:1.3}
.reference-home .sample-card>span:nth-child(2){font-size:17px}
.reference-home .outline-link{font-size:16px;min-height:44px;padding:10px 12px}
.reference-home .learning-pair{grid-template-columns:1fr;gap:20px;margin-bottom:20px}
.reference-home .formula-library,.reference-home .percentage-intro,.reference-home .related-tools{padding:21px 17px}
.reference-home .section-heading{gap:11px;margin-bottom:20px}
.reference-home .section-heading>.outline-link{margin-left:0}
.reference-home .formula-workspace{grid-template-columns:1fr;gap:22px}
.reference-home .formula-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.reference-home .formula-tabs button{font-size:16px;line-height:1.4;min-height:52px;padding:11px 10px}
.reference-home .formula-panels h3{font-size:21px;line-height:1.35}
.reference-home .formula-panels h4{font-size:18px}
.reference-home .formula-panels p,.reference-home .formula-panels .formula-equation{font-size:17px;line-height:1.7}
.reference-home .formula-caveat{font-size:16px}
.reference-home .intro-content{display:block}
.reference-home .intro-content p{font-size:17px;line-height:1.75}
.reference-home .intro-content img{display:block;width:150px;height:170px;max-width:100%;margin:20px auto 0}
.reference-home .related-tools{margin-bottom:20px}
.reference-home .related-grid{grid-template-columns:1fr;gap:12px}
.reference-home .related-card{padding:17px 14px;gap:12px}
.reference-home .related-card .tool-symbol{display:grid;width:38px;height:38px;font-size:23px}
.reference-home .related-card strong{font-size:19px;line-height:1.35}
.reference-home .related-card small{font-size:17px;line-height:1.55}
.reference-home .faq-layout{grid-template-columns:1fr;gap:20px;padding:22px 17px}
.reference-home .home-faq h2{font-size:27px}
.reference-home .home-faq details{padding:0 14px;margin-bottom:12px}
.reference-home .home-faq summary{font-size:18px;line-height:1.5;padding:15px 20px 15px 0}
.reference-home .home-faq details p{font-size:17px;line-height:1.75}
.reference-home .home-transparency{padding:24px 19px!important}
.reference-home .home-transparency h2{font-size:24px}
.reference-home .home-transparency p{font-size:17px;line-height:1.75}
.reference-home .home-transparency a{font-size:17px}
}
@media(max-width:350px){
.reference-home .mode-button strong{font-size:16px}
.reference-home .mode-button small{font-size:14px}
.reference-home .home-hero h1{font-size:29px}
.reference-home .live-indicator{font-size:15px}
.reference-home .result-context{font-size:16px}
.reference-home .quick-rates button{font-size:16px}
}

@media(max-width:760px){
.reference-home .home-hero{padding:12px 2px 10px}
.reference-home .input-panel{padding-top:10px}
.reference-home .panel-heading{margin-bottom:10px}
.reference-home .live-indicator{white-space:nowrap}
.reference-home .quick-examples .panel-heading{margin-bottom:18px}
.reference-home .mode-bar .mode-mobile{overflow-wrap:normal;word-break:normal}
}

.reference-home .formula-tabs button[aria-selected=true]{color:#0057ff;font-weight:600}
@media(max-width:760px){
.reference-home .quick-rates button:last-child{flex:1.4}
.reference-home .home-hero{padding:8px 2px}
.reference-home .mode-bar .mode-button{min-height:72px}
.reference-home .input-panel{padding-bottom:11px}
.reference-home .input-panel .panel-heading{margin-bottom:8px}
}
@media(max-width:380px){.reference-home .feature-strip{grid-template-columns:1fr}}

@media(min-width:1101px){
.reference-home .hero-art{height:190px}
.reference-home .hero-illustration{height:190px}
.reference-home .hero-example.one{top:0}
.reference-home .hero-example.two{top:65px}
.reference-home .hero-example.three{top:130px}
.reference-home .calc-body{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
}
@media(min-width:761px) and (max-width:1100px){
.reference-home .home-hero{display:block;height:auto;padding:16px 4px}
.reference-home .hero-art{display:none}
.reference-home .hero-copy{max-width:800px}
.reference-home .hero-copy>p:last-of-type{max-width:800px}
.reference-home .hero-kicker{display:none}
}


/* Emphasize the entry fields and answer. */
.reference-home .field label{color:#143c80}
.reference-home .field input{
 border:2px solid #79a4e6;
 background:#f2f7ff;
 box-shadow:0 0 0 3px #edf4ff,0 3px 9px #153f8010;
 color:#0a2149;
}
.reference-home .field input:hover{border-color:#3677db;background:#edf5ff}
.reference-home .field input:focus{
 border-color:#0057ed;background:#fff;
 outline:4px solid #bdd6ff;outline-offset:2px;
 box-shadow:0 4px 14px #1457ef18;
}
.reference-home .field input[aria-invalid=true]{border-color:#b42318;background:#fff7f5;box-shadow:0 0 0 3px #fee9e5}
.reference-home .result-panel{
 border:2px solid #91b6f3;
 border-radius:12px;
 background:linear-gradient(145deg,#e2eeff 0%,#f0f6ff 65%,#eaf3ff 100%);
 box-shadow:0 6px 20px #174e9b12;
}
.reference-home .result-context{color:#12438e;font-weight:700}
.reference-home .result-number{color:#004ddb;text-shadow:0 2px 0 #fff}
.reference-home .result-sentence{color:#102e5d}
.reference-home .workings{border-top-color:#bed1ec}
@media(max-width:760px){
 .reference-home .result-panel{border-radius:10px}
 .reference-home .field input{box-shadow:0 0 0 2px #e7f0ff,0 2px 6px #153f800a}
 .reference-home .field input[aria-invalid=true]{box-shadow:0 0 0 2px #fee9e5}
}
