:root,[data-theme=light]{--bg:#f3f6f4;--surface:#fff;--text:#14221c;--muted:#3d5248;--accent:#0b5f58;--accent-contrast:#fff;--border:#6a7f74;--code-bg:#e4ece8;--focus:#0b57d0;--danger:#8d1d1d;--shadow:0 1px 2px #14221c14;color-scheme:light}[data-theme=dark]{--bg:#101614;--surface:#18211e;--text:#e7f2ee;--muted:#c5d5ce;--accent:#8ee0d4;--accent-contrast:#06221e;--border:#7d978c;--code-bg:#24302c;--focus:#9db7ff;--danger:#ffb4b4;--shadow:none;color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#101614;--surface:#18211e;--text:#e7f2ee;--muted:#c5d5ce;--accent:#8ee0d4;--accent-contrast:#06221e;--border:#7d978c;--code-bg:#24302c;--focus:#9db7ff;--danger:#ffb4b4;--shadow:none;color-scheme:dark}}:root{--max:75rem;font-family:Segoe UI,PingFang HK,Noto Sans HK,Microsoft JhengHei,sans-serif;line-height:1.55}*,:before,:after{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}img{max-width:100%}a{color:var(--accent);text-underline-offset:.15em}a:hover{text-decoration-thickness:2px}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.panel{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:.75rem;padding:1rem 1.1rem}.panel h2{margin-top:0}.button{background:var(--accent);color:var(--accent-contrast);border:2px solid var(--accent);font:inherit;cursor:pointer;border-radius:.45rem;padding:.5rem .9rem;font-weight:700;text-decoration:none;display:inline-block}.button:hover{text-decoration:underline}.calc{gap:1rem;min-width:0;margin:1.5rem 0;display:grid}.calc>*{min-width:0}.calc-inputs,.calc-output,.calc-fields,.results{gap:.9rem;min-width:0;display:grid}@media (width>=1024px){.calc{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;column-gap:1.5rem}}.calc label{gap:.3rem;min-width:0;font-weight:650;display:grid}.hint{color:var(--muted);font-weight:450}input:not([type=radio]):not([type=checkbox]),select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:.4rem;width:100%;padding:.5rem .6rem}input[type=radio],input[type=checkbox]{width:1.5rem;min-width:1.5rem;height:1.5rem;min-height:1.5rem;accent-color:var(--accent);vertical-align:middle;flex:none;margin:0;padding:0}.results{margin:0}.results div{background:var(--bg);border:1px solid var(--border);border-radius:.5rem;padding:.75rem .85rem}.results dt{color:var(--muted);font-size:.92rem}.results dd{font-variant-numeric:tabular-nums;margin:.15rem 0 0;font-size:1.35rem;font-weight:700}.results .hint{margin-top:.35rem;font-size:.92rem;font-weight:450;display:block}.form-error{color:var(--danger);font-weight:650}.schedule-details{border:1px solid var(--border);background:var(--bg);border-radius:.5rem;min-width:0;padding:.65rem .75rem}.schedule-details summary{cursor:pointer;font-weight:700}.schedule-details[open] summary{margin-bottom:.6rem}.schedule-wrap{min-width:0;max-width:100%;overflow-x:auto}.schedule{border-collapse:collapse;width:100%;margin:.25rem 0 0}.schedule caption{text-align:left;margin-bottom:.4rem;font-weight:700}.schedule th,.schedule td{text-align:left;border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums;padding:.45rem .6rem}.schedule td,.schedule th:not(:first-child){text-align:right}.calc-quote{border-left:3px solid var(--border);margin:.75rem 0 1.25rem;padding:.15rem 0 .15rem 1rem}.calc-quote p{margin:.35rem 0}.data-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;max-width:100%;margin:.75rem 0 1.25rem;display:block;overflow-x:auto}.data-table th,.data-table td{border:1px solid var(--border);text-align:left;vertical-align:top;padding:.45rem .65rem}.data-table th{background:var(--bg);font-weight:650}.data-table tr.is-cheapest td{background:color-mix(in srgb, var(--accent) 14%, var(--surface))}.data-table .num{text-align:right;white-space:nowrap}.data-table .hint{margin-top:.2rem;display:block}.calc-span{grid-column:1/-1;min-width:0;max-width:100%}.calc fieldset{border:1px solid var(--border);border-radius:.4rem;gap:.35rem;min-width:0;margin:0;padding:.65rem .8rem .8rem;display:grid}.calc legend{max-width:100%;padding-inline:.25rem;font-weight:650}.calc label.choice{cursor:pointer;grid-template-columns:auto minmax(0,1fr);place-items:center start;gap:0 .65rem;min-height:2rem;font-weight:450;display:grid}.data-table caption{caption-side:top;text-align:left;margin-bottom:.45rem;font-weight:650}.schedule-wrap>.data-table{width:max-content;min-width:100%;max-width:none;display:table;overflow:visible}.dca-schedule-wrap>.schedule{width:max-content;min-width:100%}.dca-schedule-wrap>.schedule th,.dca-schedule-wrap>.schedule td{white-space:nowrap}.dca-chart{min-width:0;max-width:100%}.dca-chart svg{width:100%;height:auto;display:block}.dca-line-value,.dca-line-contributed,.rvb-line-buy,.rvb-line-rent{fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.rvb-line-buy{stroke:var(--accent)}.rvb-line-rent{stroke:var(--muted)}.rvb-legend-buy{color:var(--accent)}.rvb-legend-rent{color:var(--muted)}.calc-note{border:1px solid var(--border);background:var(--bg);border-radius:.4rem;margin:.75rem 0 0;padding:.65rem .8rem}.dca-line-value{stroke:var(--accent)}.dca-line-contributed{stroke:var(--muted)}.dca-legend{flex-wrap:wrap;gap:.35rem 1rem;margin:.45rem 0 0;display:flex}.dca-legend-value{color:var(--accent)}.dca-legend-contributed{color:var(--muted)}.term-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;min-width:0;display:grid}.calc fieldset.scenario-block{gap:.9rem}.scenario-kicker{margin:.2rem 0 0;font-weight:700}.data-table th.is-cheaper,.data-table td.is-cheaper{background:color-mix(in srgb, var(--accent) 14%, var(--surface))}.skip-link{background:var(--surface);color:var(--text);z-index:5;padding:.4rem .7rem;position:absolute;top:.75rem;left:.75rem;transform:translateY(-150%)}.skip-link:focus{transform:none}.wrap{width:min(100% - 2rem, var(--max));min-width:0;margin-inline:auto}.site-header{z-index:4;background:var(--surface);border-bottom:1px solid var(--border);position:relative}.header-inner,.footer-inner{flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;padding-block:.9rem;display:flex}.brand{color:var(--text);letter-spacing:-.02em;font-weight:750;text-decoration:none}.nav-list{flex-wrap:wrap;gap:.75rem 1.1rem;margin:0;padding:0;list-style:none;display:flex}.nav-list a{color:var(--text);text-decoration:none}.nav-list a:hover,.nav-list a[aria-current=page]{text-underline-offset:.2em;text-decoration:underline}.nav-list a[aria-current=page]{font-weight:700}.lang-switch{min-inline-size:0;margin-inline-start:auto;position:relative}.lang-switch-trigger{border:2px solid var(--border);background:var(--surface);min-block-size:2.75rem;color:var(--text);cursor:pointer;white-space:nowrap;border-radius:.45rem;align-items:center;gap:.4rem;padding-inline:.7rem;list-style:none;display:flex}.lang-switch-trigger::-webkit-details-marker{display:none}.lang-switch-trigger::marker{content:""}.lang-switch-globe{flex:none;block-size:1.25rem;inline-size:1.25rem}.lang-switch-caret{flex:none;block-size:.75rem;inline-size:.75rem}.lang-switch details[open] .lang-switch-caret{transform:rotate(180deg)}.lang-switch-list{z-index:1;background:var(--surface);border:1px solid var(--border);max-block-size:calc(100vh - 5rem);inline-size:max-content;min-inline-size:100%;max-inline-size:min(16rem,100vw - 2rem);box-shadow:var(--shadow);border-radius:.75rem;margin:0;padding:.25rem;list-style:none;position:absolute;inset-block-start:calc(100% + .35rem);inset-inline-end:0;overflow:auto}.lang-switch-item{min-block-size:2.75rem;color:var(--text);overflow-wrap:anywhere;border-radius:.45rem;align-items:center;gap:.35rem;padding-inline:.75rem;text-decoration:none;display:flex}.lang-switch-item:hover,.lang-switch-item[aria-current=true]{text-underline-offset:.2em;text-decoration:underline}.lang-switch-item[aria-current=true]{font-weight:700}.lang-switch-home{color:var(--muted);font-size:.85em;font-weight:400}main{padding-block:2rem 3rem}.lede,.muted{color:var(--muted);max-width:65ch}h1,h2,h3,h4{letter-spacing:-.02em;line-height:1.25}h1{margin-bottom:.4rem;font-size:clamp(1.8rem,3vw,2.5rem)}.cards{grid-template-columns:minmax(0,1fr);gap:1rem;margin:1rem 0 2rem;display:grid}@media (width>=768px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1024px){.cards{grid-template-columns:repeat(auto-fill,minmax(16rem,1fr))}}.card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:.75rem;padding:1rem 1.1rem}.card h2,.card h3{margin-top:0}.plain-list{padding-left:1.2rem}.plain-list li+li{margin-top:.35rem}.formula,pre,code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.formula,pre{overflow-x:auto}.formula{background:var(--code-bg);color:var(--text);border:1px solid var(--border);border-radius:.4rem;max-width:100%;margin:.75rem 0;padding:.75rem 1rem}code{background:var(--code-bg);color:var(--text);border-radius:.25rem;padding:.1em .3em}pre code{background:0 0;border-radius:0;padding:0}.formula p{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-x:auto}.formula p+p{margin-top:.45rem}.breadcrumbs{margin:0 0 1rem}.breadcrumbs ol{flex-wrap:wrap;align-items:center;gap:.2rem .15rem;margin:0;padding:0;font-size:.95rem;list-style:none;display:flex}.breadcrumbs a{color:var(--accent);text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}.breadcrumbs [aria-current=page]{color:var(--text);font-weight:650}.crumb-sep{color:var(--muted);margin-inline:.2rem}.quick-answer{background:var(--surface);border:1px solid var(--border);border-inline-start:4px solid var(--accent);max-width:68ch;box-shadow:var(--shadow);border-radius:.75rem;margin:.85rem 0 1.25rem;padding:.9rem 1rem}.quick-answer h2{color:var(--text);letter-spacing:0;margin:0 0 .35rem;font-size:.95rem}.quick-answer p{margin:0}.variables{gap:.5rem;display:grid}.variables div{grid-template-columns:7rem 1fr;gap:.75rem;display:grid}.variables dt{font-weight:700}.variables dd{margin:0}.prose{overflow-wrap:break-word;min-width:0;max-width:72ch}.prose :is(h2,h3){margin-top:1.8rem}.eyebrow,.meta{color:var(--muted);font-size:.95rem}.article-list{gap:1rem;padding:0;list-style:none;display:grid}.site-footer{border-top:1px solid var(--border);background:var(--surface)}.footer-inner{gap:.4rem;padding-block:1.5rem 2rem;display:grid}.footer-inner p{max-width:65ch;margin:0}.footer-links{flex-wrap:wrap;align-items:center;gap:.35rem .4rem;margin:0;padding:0;list-style:none;display:flex}.footer-links li{align-items:center;gap:.4rem;display:inline-flex}.footer-links li:not(:last-child):after{content:"·";color:var(--muted)}.footer-languages{flex-wrap:wrap;align-items:baseline;gap:.15rem .75rem;display:flex}.footer-languages .footer-links{flex:12rem;min-width:0}.footer-languages-label{color:var(--muted);margin:0}.footer-links a[aria-current=true]{text-underline-offset:.2em;font-weight:700;text-decoration:underline}.bmc{margin-block:1.5rem .5rem}.bmc a{line-height:0;display:inline-block}.bmc img{max-width:100%;height:auto;display:block}.bmc-footer{margin:.35rem 0 0;font-size:.875rem}.bmc-footer a{color:var(--muted)}.tools-cafe-badge{margin:.5rem 0 .25rem}.tools-cafe-badge a{line-height:0;display:inline-block}.tools-cafe-badge img{max-width:100%;height:auto;display:block}.launchnest-badge{margin:.5rem 0 .25rem}.launchnest-badge a{line-height:0;display:inline-block}.launchnest-badge img{max-width:100%;height:auto;display:block}.launchbuff-badge{margin:.5rem 0 .25rem}.launchbuff-badge a{line-height:0;display:inline-block}.launchbuff-badge img{max-width:100%;height:auto;display:block}.launchstag-badge{margin:.5rem 0 .25rem}.launchstag-badge a{line-height:0;display:inline-block}.launchstag-badge img{max-width:100%;height:auto;display:block}.newsletter{gap:.65rem;max-width:36rem;margin-block:1.25rem .25rem;display:grid}.newsletter h2,.newsletter p{margin:0}.newsletter form{gap:.75rem;display:grid}.newsletter-field{gap:.3rem;display:grid}.newsletter-field label{font-weight:650}.newsletter input[type=email]{max-width:28rem;min-height:3rem;font-size:1rem}.newsletter .button{justify-self:start;min-height:3rem}.newsletter-consent{color:var(--muted);max-width:65ch;font-size:.95rem}.site-footer .newsletter{margin-block:.35rem}.site-footer .newsletter h2{font-size:1.15rem}.disclaimer{border-left:3px solid var(--accent);max-width:65ch;padding:.15rem 0 .15rem .8rem}.source-list{padding-left:1.2rem}.source-list li+li{margin-top:.45rem}.theme-toggle{border:2px solid var(--border);background:var(--surface);width:2.5rem;height:2.5rem;color:var(--text);cursor:pointer;border-radius:.45rem;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative;overflow:hidden}.theme-toggle svg{width:1.25rem;height:1.25rem;display:block}.icon-sun,[data-theme=dark] .icon-moon,[data-theme=light] .theme-label-to-light,[data-theme=dark] .theme-label-to-dark{display:none}[data-theme=dark] .icon-sun{display:block}.theme-label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.article-layout{flex-direction:column;gap:1.5rem;min-width:0;display:flex}.article-sidebar{display:contents}.article-toc ol{gap:.45rem;margin:0;padding:0;list-style:none;display:grid}.article-toc a,.related-calc a{color:var(--accent)}.article-toc,.related-calc{background:var(--surface);border:1px solid var(--border);border-radius:.75rem;padding:1rem 1.1rem}.article-toc h2,.related-calc h2{margin-top:0;font-size:1.05rem}.ad-slot{min-height:0}@media (width>=1024px){.article-layout{grid-template-columns:minmax(0,72ch) minmax(16rem,1fr);align-items:start;column-gap:2.5rem;display:grid}.article-sidebar{flex-direction:column;align-self:start;gap:1rem;min-width:0;display:flex;position:sticky;top:1rem}.ad-slot{min-height:250px}}.prose .quick-answer{margin-top:.85rem}.prose .quick-answer h2{margin-top:0;font-size:.95rem}.variables.assumptions div{grid-template-columns:minmax(0,1fr)}@media (width>=42rem){.variables.assumptions div{grid-template-columns:minmax(10rem,16rem) minmax(0,1fr)}}.embed-offer{margin:0 0 1.5rem}.embed-dialog{border:1px solid var(--border);background:var(--surface);width:min(40rem,100% - 2rem);color:var(--text);box-shadow:var(--shadow);border-radius:.75rem;padding:1rem 1.1rem}.embed-dialog::backdrop{background:#14221c73}.embed-dialog h2{margin:0 0 .75rem;font-size:1.15rem}.embed-dialog textarea{resize:vertical;width:100%;min-height:8rem;margin:.35rem 0 .75rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.embed-dialog [role=status]:empty{display:none}.embed-dialog [role=status]{margin:.5rem 0 0;font-weight:650}.embed-dialog form{margin:.85rem 0 0}.newsletter-modal:not([open]){display:none}.newsletter-modal{overscroll-behavior:contain;border:1px solid var(--border);background:var(--surface);width:min(32rem,100% - 2rem);max-height:calc(100dvh - 2rem);color:var(--text);color-scheme:inherit;box-shadow:var(--shadow);border-radius:.75rem;padding:.85rem 1.15rem 1.15rem;overflow:auto}.newsletter-modal::backdrop{overscroll-behavior:contain;background:#14221c7a;overflow:hidden}[data-theme=dark] .newsletter-modal::backdrop{background:#000000ad}.newsletter-modal-bar{justify-content:flex-end;display:flex}.newsletter-modal-close{border:2px solid var(--border);background:var(--surface);width:2.75rem;height:2.75rem;color:var(--text);cursor:pointer;border-radius:.45rem;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.newsletter-modal-close svg{width:1.15rem;height:1.15rem;display:block}.newsletter-modal-close:hover{background:var(--bg)}.newsletter-modal .newsletter{max-width:none;margin:0}.newsletter-modal .newsletter h2{font-size:1.35rem}.newsletter-modal .newsletter input[type=email]{max-width:none}.newsletter-modal .newsletter .button{justify-self:stretch}
