:root{--red:#c9252c;--red-dark:#a71e24;--ink:#262626;--muted:#666;--line:#e2e2e2;--soft:#f5f5f5;--white:#fff;color-scheme:light;color:var(--ink);background:var(--white);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button,summary{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--red);outline-offset:4px}button{transition:background .15s}svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;width:20px;height:20px}[hidden]{display:none!important}.site-header{border-bottom:1px solid var(--line);background:#fff}.header-inner{justify-content:space-between;align-items:center;gap:20px;max-width:1200px;min-height:76px;margin:auto;padding:12px 32px;display:flex}.brand{letter-spacing:-.8px;align-items:center;gap:10px;font-size:25px;font-weight:750;display:flex}.brand-light{font-weight:450}.brand-dot{color:var(--red)}.brand-mark{background:var(--red);color:#fff;border-radius:5px;place-items:center;width:32px;height:32px;font-size:29px;font-weight:500;line-height:1;display:grid}.site-header nav>a{align-items:center;gap:10px;min-height:44px;font-size:.875rem;font-weight:550;display:flex}.site-header nav>a:hover{color:var(--red)}.count{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.75rem}.page-shell{max-width:1200px;margin:auto;padding:40px 32px 64px}.workspace{grid-template-columns:224px minmax(0,1fr);gap:48px;display:grid}.desktop-sidebar{border-right:1px solid var(--line);padding-right:24px}.sidebar-inner{scrollbar-width:thin;max-height:calc(100dvh - 48px);padding-right:4px;position:sticky;top:24px;overflow-y:auto}.sidebar-title{margin:0 0 12px;font-size:.875rem;font-weight:650}.search-box{min-height:48px;color:var(--muted);background:#fff;border:1px solid #bbb;border-radius:5px;align-items:center;gap:10px;padding:0 12px;display:flex}.search-box:focus-within{outline:2px solid var(--red);outline-offset:2px;border-color:var(--red)}.search-box svg{width:18px;height:18px}.search-box input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:none;padding:12px 0;font-size:1rem}.search-box input::placeholder{color:#747474}.nav-group{border-bottom:1px solid var(--line);margin:4px 0}.nav-group>summary{justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:9px 0;font-size:.875rem;font-weight:600;list-style:none;display:flex}.nav-group>summary span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.75rem;font-weight:400}.nav-group[open]>summary{color:var(--red)}.nav-group>summary::-webkit-details-marker,.directory-group>summary::-webkit-details-marker{display:none}.calc-link{color:#555;border-left:2px solid #0000;align-items:center;min-height:44px;margin-bottom:2px;padding:8px 10px;font-size:.875rem;line-height:1.5;display:flex}.calc-link:hover{background:var(--soft);color:var(--ink)}.calc-link.active{border-left-color:var(--red);background:var(--soft);color:var(--red);font-weight:600}.nav-icon{display:none}main{min-width:0}.calculator-heading{margin-bottom:24px}.breadcrumb{color:var(--muted);margin:0 0 10px;font-size:.875rem;line-height:1.5}.calculator-heading h1{letter-spacing:-.7px;margin:0 0 10px;font-size:clamp(1.7rem,3vw,2rem);font-weight:650;line-height:1.2}.calculator-heading p:not(.breadcrumb){color:var(--muted);max-width:650px;margin:0;font-size:1rem;line-height:1.6}.calculator-symbol{display:none}.calculator-card{border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden}.calculator-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}#calc-form{min-width:0;padding:26px}#calc-form h2:not(.sr-only){margin:0 0 22px;font-size:1rem;font-weight:600;line-height:1.5}#fields{gap:18px;display:grid}.field{min-width:0;display:block}.field>span{margin-bottom:8px;font-size:.875rem;font-weight:550;display:block}.input-wrap{background:#fff;border:1px solid #a9a9a9;border-radius:5px;align-items:center;gap:8px;min-height:56px;padding:0 14px;display:flex}.input-wrap:focus-within{outline:2px solid var(--red);outline-offset:2px;border-color:var(--red)}.input-wrap input{font-variant-numeric:tabular-nums;color:var(--ink);background:0 0;border:0;outline:0;width:100%;min-width:0;padding:12px 0;font-size:1.5rem;font-weight:500}.input-wrap input[type=date],.input-wrap input[type=time],.input-wrap input[type=datetime-local]{min-height:48px;font-size:1rem}.input-wrap select{color:var(--ink);background:#fff;border:0;outline:0;width:100%;min-height:48px;font-size:1rem}.input-wrap:has([aria-invalid=true]){border-color:var(--red)}.suffix{color:var(--muted);white-space:nowrap;font-size:1rem}.field-error{color:var(--red-dark);margin-top:7px;font-size:.875rem;line-height:1.5;display:block}.field-error:empty{display:none}.field-help{color:var(--muted);margin-top:8px;font-size:.875rem;line-height:1.5;display:block}.input-wrap.multiline{align-items:stretch;padding:12px}.input-wrap textarea{resize:vertical;width:100%;min-height:86px;color:var(--ink);background:0 0;border:0;outline:0;font-size:1.125rem;line-height:1.6}.reset-button{color:var(--muted);text-align:left;background:0 0;border:0;min-height:44px;margin-top:12px;padding:10px 0;font-size:.875rem}.reset-button:hover{color:var(--red)}.reverse-link{min-height:44px;color:var(--red);text-underline-offset:3px;align-items:center;font-size:.875rem;line-height:1.5;text-decoration:underline;display:flex}.form-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-top:12px;display:flex}.form-actions .reset-button{margin:0}.form-actions .reverse-link{padding:8px 0}.result-panel{background:var(--soft);border-left:1px solid var(--line);flex-direction:column;min-width:0;padding:26px;display:flex}.result-eyebrow{color:var(--muted);font-size:.875rem;font-weight:600}.result-number{color:var(--red);font-variant-numeric:tabular-nums;letter-spacing:-1.2px;margin:20px 0 10px;font-size:clamp(2.3rem,4vw,3.5rem);font-weight:650;line-height:1.15}.result-number.small{letter-spacing:-.4px;font-size:clamp(1.5rem,3vw,2rem)}.result-unit{letter-spacing:0;white-space:nowrap;color:var(--ink);font-size:.55em;font-weight:450}.result-description{color:#555;margin:0 0 20px;font-size:1rem;line-height:1.55}.result-rule{border-top:1px solid #d8d8d8;margin:0 0 14px}.result-detail{color:var(--muted);justify-content:space-between;gap:12px;margin:6px 0;font-size:.875rem;line-height:1.65;display:flex}.result-detail strong{color:var(--ink);text-align:right;font-weight:550}.result-panel #result-content{flex:1;padding-bottom:16px}.copy-button{width:100%;color:var(--ink);background:#fff;border:1px solid #c8c8c8;border-radius:5px;justify-content:center;align-items:center;gap:8px;min-height:44px;margin-top:auto;padding:10px 12px;font-size:.875rem;display:flex}.copy-button svg{width:16px;height:16px}.copy-button:hover{background:#eee;border-color:#888}.copy-button:disabled{opacity:.5;cursor:default}.no-result{margin:24px 0 12px;font-size:1.25rem;font-weight:550;line-height:1.4}.result-panel .hint{color:var(--muted);font-size:1rem;line-height:1.6}.explanation{border-bottom:1px solid var(--line);margin-top:10px}.explanation summary{cursor:pointer;justify-content:space-between;align-items:center;gap:20px;min-height:52px;padding:18px 0;font-size:.875rem;font-weight:550;list-style:none;display:flex}.explanation summary::-webkit-details-marker{display:none}.explanation summary span{color:var(--muted);font-size:1.25rem}.explanation[open] summary span{transform:rotate(45deg)}.explanation>div{padding-bottom:20px}.formula{background:var(--soft);border-radius:4px;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.875rem;line-height:1.65;overflow-x:auto}.explanation p{color:var(--muted);margin:12px 0 0;font-size:1rem;line-height:1.65}.related-section{margin-top:32px}.section-heading{justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:14px;display:flex}.section-heading h2{margin:0;font-size:1.125rem;font-weight:600;line-height:1.4}.section-heading>span{color:var(--muted);font-size:.875rem}.related-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.related-card{border:1px solid var(--line);border-radius:5px;min-height:56px;padding:16px;display:block}.related-card:hover{background:var(--soft);border-color:#999}.related-icon{display:none}.related-card h3{margin:0;font-size:.875rem;font-weight:550;line-height:1.5}.related-card p{color:var(--muted);margin:5px 0 0;font-size:.875rem;line-height:1.5}.directory-section{border-top:1px solid var(--line);margin-top:36px;padding-top:28px;scroll-margin-top:24px}.directory-search{max-width:100%;margin:18px 0 22px}#directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;display:grid}.directory-group{border-bottom:1px solid var(--line);align-self:start}.directory-group>summary{align-items:center;gap:12px;min-height:58px;padding:12px 0;font-size:1rem;font-weight:550;list-style:none;display:flex}.directory-group>summary>span{color:var(--muted);white-space:nowrap;margin-left:auto;font-size:.75rem;font-weight:400}.directory-group>summary:after{content:"+";color:var(--muted);text-align:center;width:16px;font-size:1.25rem;font-weight:400}.directory-group[open]>summary:after{content:"−"}.directory-group[open]>summary{color:var(--red)}.directory-group>div{padding-bottom:12px;display:grid}.directory-group a{align-items:center;min-height:44px;padding:8px 0;font-size:.875rem;line-height:1.5;display:flex}.directory-group a:hover{color:var(--red);text-underline-offset:3px;text-decoration:underline}.empty-search{color:var(--muted);padding:12px 0;font-size:1rem;line-height:1.6}.conversion-reference{margin-top:28px}.conversion-reference h2{margin:0 0 16px;font-size:1.125rem;font-weight:600;line-height:1.4}.conversion-fact{font-variant-numeric:tabular-nums;margin:0 0 18px;font-size:1.125rem;font-weight:600}.conversion-reference .table-wrap{overflow-x:auto}.conversion-reference td:last-child{white-space:nowrap}.conversion-reference table{border-collapse:collapse;table-layout:auto;font-variant-numeric:tabular-nums;width:100%;font-size:1rem;line-height:1.5}.conversion-reference th,.conversion-reference td{text-align:left;border-bottom:1px solid var(--line);padding:12px 10px}.conversion-reference th{background:var(--soft);color:var(--muted);font-size:.875rem;font-weight:550}.conversion-reference th:last-child,.conversion-reference td:last-child{text-align:right}.unit-note{color:var(--muted);margin:16px 0 0;font-size:.875rem;line-height:1.65}footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;max-width:1136px;margin:0 auto;padding:24px 0;display:flex}footer p{color:var(--muted);margin:0;font-size:.875rem;line-height:1.5}.footer-brand{letter-spacing:-.3px;font-size:1rem;font-weight:650}.footer-brand span{color:var(--red)}.mobile-switch{display:none}.skip-link{z-index:20;background:#fff;padding:15px;position:fixed;top:-80px;left:10px}.skip-link:focus{top:10px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}dialog{color:var(--ink);border:1px solid var(--line);border-radius:8px;width:min(440px,100% - 24px);max-height:88dvh;padding:24px}dialog::backdrop{background:#0006}.dialog-head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.dialog-head h2{margin:0;font-size:1.25rem}.dialog-head button{background:var(--soft);min-width:44px;height:44px;color:var(--ink);border:0;border-radius:5px;font-size:1.75rem}body:has(dialog[open]){overflow:hidden}.not-found{max-width:650px;margin:12vh auto;padding:24px}.not-found h1{font-size:2rem;line-height:1.3}.not-found p{line-height:1.65}.noscript-note{background:var(--soft);margin:0;padding:16px;line-height:1.6}@media (width<=1050px){.workspace{grid-template-columns:200px minmax(0,1fr);gap:30px}.desktop-sidebar{padding-right:18px}.header-inner,.page-shell{padding-left:24px;padding-right:24px}#calc-form,.result-panel{padding:22px}.section-heading>span{display:none}footer{margin:0 24px}}@media (width<=840px){.workspace{display:block}.desktop-sidebar{display:none}.page-shell{padding-top:26px}.mobile-switch{background:#fff;border:1px solid #bbb;border-radius:5px;justify-content:center;align-items:center;gap:10px;min-height:46px;margin-bottom:24px;padding:10px 14px;font-size:.875rem;display:flex}.mobile-switch svg{width:17px;height:17px}.nav-group>summary{font-size:1rem}.calc-link{min-height:48px;font-size:1rem}.sidebar-title{font-size:1rem}.result-number{font-size:3rem}}@media (width<=580px){.header-inner{gap:12px;min-height:66px;padding:10px 16px}.brand{gap:8px;font-size:22px}.brand-mark{width:29px;height:29px;font-size:26px}.site-header nav>a{font-size:.875rem}.site-header .count{display:none}.page-shell{padding:22px 16px 40px}.mobile-switch{width:100%;margin-bottom:24px}.calculator-heading{margin-bottom:20px}.calculator-heading h1{font-size:1.75rem}.calculator-body{grid-template-columns:1fr}#calc-form{padding:20px}#fields{grid-template-columns:1fr 1fr;gap:16px 14px}.field.full{grid-column:1/-1}.input-wrap{padding:0 12px}.input-wrap input{font-size:1.375rem}.result-panel{border-left:0;border-top:1px solid var(--line);padding:20px}.result-number{margin-top:14px;font-size:2.75rem}.result-number.small{font-size:1.75rem}.result-description{margin-bottom:16px}.result-panel #result-content{padding-bottom:10px}.related-grid{grid-template-columns:1fr;gap:0}.related-card{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 0}.related-card h3{font-size:1rem}.related-card p{display:none}#directory{grid-template-columns:1fr}.directory-group>summary{min-height:60px}.directory-group a{font-size:1rem}.directory-section{margin-top:28px;padding-top:24px}.related-section{margin-top:28px}footer{align-items:flex-start;margin:0 16px}footer p{text-align:right;max-width:200px;font-size:.75rem}}@media (width<=360px){.brand{font-size:20px}.brand-mark{width:26px;height:26px}.header-inner{gap:8px}#fields{grid-template-columns:1fr}.field.full{grid-column:auto}#calc-form,.result-panel{padding:16px}.form-actions{gap:4px 12px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.footer-links{gap:18px;font-size:.875rem;line-height:1.5;display:flex}.footer-links a{color:var(--muted);text-underline-offset:3px;text-decoration:underline}.footer-links a:hover{color:var(--red)}.legal{line-height:1.65}.legal h2{margin:32px 0 10px;font-size:1.125rem;font-weight:650;line-height:1.4}.legal p{margin:0 0 12px}.legal dl{grid-template-columns:max-content 1fr;gap:6px 20px;margin:0 0 12px;display:grid}.legal dt{color:var(--muted)}.legal dd{margin:0}.legal a{color:var(--red);text-underline-offset:3px;text-decoration:underline}@media (width<=640px){footer{flex-wrap:wrap}.legal dl{grid-template-columns:1fr;gap:0}.legal dd{margin:0 0 8px}}.result-number.tiny{letter-spacing:0;font-size:1.25rem}.page-content{margin-top:32px}.page-content h2{margin:0 0 12px;font-size:1.125rem;font-weight:600;line-height:1.4}.page-content p{max-width:72ch;margin:0 0 12px;font-size:1rem;line-height:1.65}.page-content p a{color:var(--red);text-underline-offset:3px;text-decoration:underline}.page-content .table-wrap{margin:16px 0 4px;overflow-x:auto}.page-content table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:1rem;line-height:1.5}.page-content th,.page-content td{text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;padding:12px 10px}.page-content th{background:var(--soft);color:var(--muted);font-size:.875rem;font-weight:550}.page-content th:not(:first-child),.page-content td:not(:first-child){text-align:right}.page-content tbody tr:nth-child(2n){background:#fafafa}.page-content td:first-child{white-space:normal}.calc-lines{margin:0;padding:0;list-style:none}.calc-lines li{background:var(--soft);font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:4px;margin:0 0 6px;padding:12px 16px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9375rem;line-height:1.6;overflow-x:auto}.unit-note a{color:var(--red);text-underline-offset:3px;text-decoration:underline}@media (width<=580px){.header-inner{min-height:52px;padding:6px 16px}.brand{font-size:20px}.brand-mark{width:26px;height:26px;font-size:23px}.page-shell{padding-top:12px}.mobile-switch{min-height:44px;margin-bottom:12px;padding:8px 14px}#calculator{flex-direction:column;display:flex}#calculator>*{order:3}#calculator .calculator-heading,#calculator .calculator-heading>div{display:contents}.breadcrumb{order:0;margin:0 0 2px;font-size:.8125rem}.calculator-heading h1{order:0;margin:0 0 12px;font-size:1.5rem}.home-section{margin-top:22px}#calculator>.calculator-card{order:1}.calculator-heading p:not(.breadcrumb){order:2;margin:14px 0 0;font-size:.9375rem;line-height:1.5}#calc-form{padding:14px 14px 6px}#calc-form h2:not(.sr-only){margin-bottom:12px}#fields{gap:12px}.input-wrap{min-height:48px}.input-wrap input{padding:8px 0}.form-actions{gap:0 12px;margin-top:4px}.result-panel{padding:12px 14px 14px}.result-number{margin:4px 0;font-size:2.25rem}.result-number.small{font-size:1.5rem}.result-description{margin-bottom:10px;font-size:.9375rem}.result-panel #result-content{padding-bottom:8px}.result-rule{margin-bottom:8px}.result-detail{margin:2px 0}.explanation{margin-top:6px}.page-content,.conversion-reference{margin-top:24px}}.breadcrumb a{color:inherit;text-underline-offset:3px;text-decoration:underline}.breadcrumb a:hover{color:var(--red)}.home-section{margin-top:32px}.home-section h2{margin:0 0 14px;font-size:1.125rem;font-weight:600;line-height:1.4}.home-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;display:grid}.home-grid a{border:1px solid var(--line);border-radius:6px;align-items:center;min-height:48px;padding:10px 14px;font-size:.9375rem;font-weight:550;line-height:1.4;display:flex}.home-grid a:hover{border-color:var(--red);color:var(--red)}@media (width<=580px){.home-grid{grid-template-columns:1fr 1fr;gap:8px}.home-grid a{min-height:44px;padding:8px 10px;font-size:.875rem}.home-section h2{margin-bottom:10px}}
