@font-face{font-family:Inter;src:url('/fonts/inter-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('/fonts/inter-500.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Inter;src:url('/fonts/inter-600.woff2') format('woff2');font-style:normal;font-weight:600 900;font-display:swap}
:root{color-scheme:dark;--background:#111317;--surface:#191c22;--text:#f3f4f6;--muted:#a6adba;--border:#30353f;--accent:#ff786b}
*{box-sizing:border-box}html{scroll-padding-top:24px}body{margin:0;background:var(--background);color:var(--text);font-family:Inter,Arial,sans-serif;font-size:16px;line-height:1.6;min-height:100vh;display:flex;flex-direction:column}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}img{max-width:100%;height:auto}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,h3{line-height:1.25;color:var(--text)}h1{font-size:clamp(28px,4vw,40px);letter-spacing:-1px}p{color:var(--muted)}[hidden]{display:none!important}.container{width:min(1200px,calc(100% - 48px));margin-inline:auto}.brand{display:inline-flex;align-items:center;gap:2px;font-size:32px;font-weight:600;letter-spacing:-.06em;color:var(--text)}.brand>span{color:var(--accent)}.skip-link{position:fixed;top:8px;left:8px;z-index:200;background:var(--surface);padding:10px 16px;border:1px solid var(--accent);transform:translateY(-160%)}.skip-link:focus{transform:none}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-block:22px;border-bottom:1px solid var(--border)}.header-brand{flex:0 1 auto;max-width:280px;line-height:1.2}.header-logo,.footer-logo{display:block;max-width:min(100%,400px)}.header-nav{flex:1 1 0;min-width:0}.header-menu,.footer-menu,.mobile-menu-links,.menu-submenu{list-style:none;padding:0;margin:0}.header-menu{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 8px}.header-menu a,.header-menu summary{display:flex;padding:10px 12px;border-radius:8px;overflow-wrap:anywhere;font-size:14px;font-weight:500;color:var(--muted)}.header-menu a:hover,.header-menu summary:hover,.footer-menu a:hover{color:var(--accent)}summary{cursor:pointer}.menu-dropdown{position:relative}.menu-dropdown summary{list-style:none;display:flex;align-items:center;gap:8px}.menu-dropdown summary::-webkit-details-marker{display:none}.menu-dropdown .menu-chevron{display:block;flex:none;color:var(--muted);transition:transform .18s ease}.menu-dropdown details[open]>summary .menu-chevron{transform:rotate(180deg)}.menu-submenu{position:absolute;z-index:20;top:100%;left:0;min-width:210px;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 14px 30px var(--ui-menu-shadow,#0004)}.menu-submenu a{display:block;padding:9px 12px;border-radius:4px}.menu-submenu a:hover{background:var(--ui-hover,#ffffff06)}.mobile-menu-toggle{display:none;width:44px;height:44px;margin-left:auto;align-items:center;justify-content:center;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px}.mobile-menu-panel{inset:0 0 0 auto;margin:0;width:min(360px,90vw);height:100dvh;max-height:none;border:0;border-left:1px solid var(--border);background:var(--surface);color:var(--text);padding:24px}.mobile-menu-panel::backdrop{background:var(--ui-backdrop,#0009)}.mobile-menu-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.mobile-menu-heading h2{font-size:20px;margin:0}.mobile-menu-close{width:44px;height:44px;background:transparent;border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:24px}.mobile-menu-links>li{border-bottom:1px solid var(--border)}.mobile-menu-links>li>a,.mobile-menu-links summary{display:flex;padding:14px 0}.mobile-menu-links .menu-submenu{position:static;border:0;box-shadow:none;background:transparent;padding:0 0 12px 12px}
.main-content{flex:1;padding-block:48px 72px}.page-content{flex:1;min-width:0}.empty-state{padding:36px 0}.empty-state h1{margin:0 0 12px}.return-link{color:var(--accent)}.published-pages{list-style:none;margin:0;padding:0;max-width:850px}.published-pages li{padding:22px 0;border-top:1px solid var(--border)}.published-pages a{font-size:19px;font-weight:600}.published-pages a:hover{color:var(--accent)}.published-pages p{margin:6px 0 0;font-size:14px}.preview-banner{padding:10px 24px;background:var(--ui-notice-bg,#302b1c);color:var(--ui-notice-text,#f5d790);text-align:center;font-size:13px}.preview-banner a{text-decoration:underline}
.site-footer{margin-top:auto;border-top:1px solid var(--border);background:var(--ui-footer,#0d0f13)}.footer-main{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(0,1fr));gap:32px;padding:52px 0 48px}.footer-description{max-width:360px;font-size:14px;line-height:1.85;margin:18px 0 0}.footer-brand{display:inline-block}.footer-brand .brand{font-size:28px}.footer-menu-title{display:block;font-size:14px;font-weight:600;margin:2px 0 16px}.footer-menu{font-size:13px;color:var(--muted)}.vertical-menu{display:grid;gap:10px}.footer-bottom{display:flex;justify-content:space-between;gap:24px;border-top:1px solid var(--border);padding:22px 0}.footer-copyright{font-size:12px;margin:0}.horizontal-menu{display:flex;flex-wrap:wrap;gap:20px}.site-footer .menu-submenu{position:static;box-shadow:none;border:0;background:transparent;padding:8px 0 0 10px;min-width:0}.site-footer .menu-submenu a{padding:4px 0}
@media(max-width:900px){.site-header{flex-wrap:wrap;gap:16px;min-height:80px;padding-block:18px}.header-nav{width:100%;margin:0}.header-menu{flex-wrap:wrap;gap:18px}.has-mobile-menu .header-nav{display:none}.has-mobile-menu .mobile-menu-toggle{display:flex}.brand{font-size:21px}.footer-main{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.footer-brand-column{grid-column:1/-1}.main-content{padding-block:36px 56px}}
@media(max-width:600px){.container{width:calc(100% - 32px)}.footer-main{grid-template-columns:1fr;gap:28px;padding:32px 0}.footer-bottom{flex-direction:column;gap:14px}.header-brand{max-width:calc(100% - 60px);font-size:20px}.main-content{padding-top:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.article-page{padding-block:32px 64px}.article-page{max-width:860px}.content-breadcrumb{display:flex;flex-wrap:wrap;gap:9px;font-size:12px;color:var(--muted);margin-bottom:26px}.content-breadcrumb a:hover{color:var(--accent)}.article-page h1{margin:0 0 18px}.content-intro{max-width:850px;font-size:16px;line-height:1.85;margin:0 0 32px;overflow-wrap:anywhere}.article-body{font-size:16px;line-height:1.85;overflow-wrap:anywhere}.article-body p{color:var(--text);margin:0 0 20px}.article-body h2{font-size:27px;margin:38px 0 16px}.article-body h3{font-size:22px;margin:30px 0 14px}.article-body h4{font-size:18px;margin:24px 0 12px}.article-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.article-body ul,.article-body ol{padding-left:24px;margin-bottom:22px}.article-body li{margin:6px 0}.article-body blockquote{border-left:3px solid var(--accent);margin:24px 0;padding:12px 20px;background:var(--surface)}.article-body blockquote p:last-child{margin-bottom:0}.article-body pre{overflow:auto;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.article-body code{font-family:Consolas,monospace;font-size:.9em}@media(max-width:600px){.article-page{padding-block:26px 44px}.article-body h2{font-size:24px}}

.article-body img{display:block;max-width:100%;height:auto;margin:22px 0}

.pagination{display:flex;gap:24px;align-items:center;margin-top:30px;font-size:14px}.pagination a{color:var(--accent)}

.article-body table{border-collapse:collapse;display:block;max-width:100%;width:max-content;overflow-x:auto;margin:24px 0;font-size:14px}.article-body th,.article-body td{border:1px solid var(--border);padding:12px 16px;text-align:left;vertical-align:top;min-width:110px}.article-body th{background:var(--surface);font-weight:600;color:var(--text)}.article-body caption{text-align:left;padding:10px 0;color:var(--muted)}



/* Visitor theme. Page styles use these tokens with their original dark fallbacks. */
:root{--color-scheme:dark}
:root[data-theme="light"]{color-scheme:light;--color-scheme:light;--background:#eef1f5;--surface:#fafbfc;--text:#202936;--muted:#566374;--border:#cdd5e0;--accent:#b84032;--ui-input:#fff;--ui-copy:#526070;--ui-line:#bdc8d6;--ui-secondary:#596779;--ui-label:#39485b;--ui-placeholder:#687587;--ui-subtle:#e9eef5;--ui-selected:#dbe4ef;--ui-button:#e6ecf4;--ui-on-accent:#fff;--ui-results:#e9eef5;--ui-diagram:#98483e;--ui-accent-soft:#fff3f0;--ui-accent-line:#d48c82;--ui-accent-text:#a0372b;--ui-panel-shadow:#2030400d;--ui-menu-shadow:#2030401a;--ui-hover:#20293608;--ui-backdrop:#17233466;--ui-footer:#e6ebf2;--ui-notice-bg:#fff4d5;--ui-notice-text:#705310}
body nav[aria-label="Breadcrumb"] a:not(:first-child){color:inherit}
body nav[aria-label="Breadcrumb"] a:first-child{color:var(--accent)}
.theme-toggle{display:inline-flex;flex:0 0 44px;align-items:center;justify-content:center;width:44px;height:44px;padding:0;margin-left:auto;background:var(--surface);color:var(--muted);border:1px solid var(--border);border-radius:8px}
.theme-toggle:hover{color:var(--accent);border-color:var(--accent)}
.theme-toggle .theme-moon{display:none}
[data-theme="light"] .theme-toggle .theme-sun{display:none}
[data-theme="light"] .theme-toggle .theme-moon{display:block}
.header-logo-white{display:none}
[data-theme="light"] .header-logo-dark{display:none}
[data-theme="light"] .header-logo-white{display:block}
[data-theme="light"] :is(.header-logo-fallback,.footer-logo:not(.footer-logo-white)){filter:brightness(.25)}
.footer-brand-default{display:block}
.footer-logo-white{display:none}
[data-theme="light"] .footer-brand-has-white{display:none}
[data-theme="light"] .footer-logo-white{display:block}
.header-brand{min-width:0}
@media(max-width:900px){.site-header{column-gap:12px}.has-mobile-menu .site-header{flex-wrap:nowrap}.has-mobile-menu .header-brand{max-width:calc(100% - 112px)}.has-mobile-menu .theme-toggle{margin-left:0}.mobile-menu-toggle{flex:0 0 44px}}

/* Only Home is accented in calculator breadcrumbs. */
.page-content nav[aria-label="Breadcrumb"] a.calc-category-crumb{color:var(--muted)}
