:root{color-scheme:light}
.profit-margin-page{background:#fbfaf6;color:#09090b;font-family:Archivo,Arial,sans-serif;line-height:1.5}
.profit-margin-page *{box-sizing:border-box}
.profit-margin-page .page-width{width:min(100% - 32px,1200px);margin-inline:auto}
.profit-margin-page .tool-page{padding:40px 0 48px}
.profit-margin-page .intro{max-width:880px;margin-bottom:28px}
.profit-margin-page .back-to-blog-top{margin:0 0 24px}
.profit-margin-page .back-link{color:#f26247;font-weight:700;text-decoration:none}
.profit-margin-page .blog-meta{margin:0 0 16px}
.profit-margin-page .blog-figure{margin:0}
.profit-margin-page .blog-figure img{display:block;width:100%;height:auto;border:1px solid #e4e4e7;border-radius:6px}
.profit-margin-page .blog-hero-figure{position:relative}
.profit-margin-page .blog-hero-figure img{aspect-ratio:16/9;object-fit:cover}
.profit-margin-page .hero-title{position:absolute;inset:50% auto auto 50%;width:min(80%,640px);margin:0;transform:translate(-50%,-50%);font:700 clamp(1.7rem,4vw,3.8rem)/1.02 'PT Serif',Georgia,serif;text-align:center}
.profit-margin-page .hero-title span{display:block}
.profit-margin-page .lede{max-width:720px;margin:24px 0 0;font:1.15rem/1.55 'PT Serif',Georgia,serif}
.profit-margin-page .calculator-section{max-width:1000px}
.profit-margin-page .calculator-workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:start}
.profit-margin-page form{padding:24px;background:#fff;border:1px solid #d8d7d1}
.profit-margin-page .field-group{min-width:0;margin:0 0 22px}
.profit-margin-page .field-group:last-child{margin-bottom:0}
.profit-margin-page label{display:block;margin-bottom:6px;font-weight:700}
.profit-margin-page input[type=number]{min-height:44px;width:100%;border:1px solid #77756f;border-radius:0;background:#fff;color:#09090b;font:inherit;padding:9px 10px}
.profit-margin-page .money-input{position:relative}
.profit-margin-page .money-input input{padding-left:34px!important}
.profit-margin-page .currency-symbol{position:absolute;top:50%;left:11px;transform:translateY(-50%);color:#5b5a54;font-family:'JetBrains Mono',monospace;pointer-events:none}
.profit-margin-page .field-help,.profit-margin-page .field-error{margin:6px 0 0;font:.92rem/1.4 'PT Serif',Georgia,serif}
.profit-margin-page .field-error{min-height:1.4em;color:#a51d16;font-weight:700}
.profit-margin-page .tax-label{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.profit-margin-page .tax-label output{font:700 1rem 'JetBrains Mono',monospace}
.profit-margin-page input[type=range]{width:100%;accent-color:#f26247;cursor:pointer}
.profit-margin-page .range-scale{display:flex;justify-content:space-between;color:#5b5a54;font:.78rem 'JetBrains Mono',monospace}
.profit-margin-page .results-column{min-width:0}
.profit-margin-page .result-panel{padding:24px;background:#09090b;color:#fff}
.profit-margin-page .result-panel h2{margin:0 0 12px;font-size:1.35rem;line-height:1.25}
.profit-margin-page .margin-value{display:block;color:#f26247;font:700 clamp(2.6rem,6vw,4.2rem)/1.1 'JetBrains Mono',monospace;overflow-wrap:anywhere}
.profit-margin-page #net-profit-summary{margin:10px 0 0;font:1rem/1.5 'PT Serif',Georgia,serif;color:#fff}
.profit-margin-page .breakdown{margin-top:16px;padding:24px;background:#fff;border:1px solid #d8d7d1}
.profit-margin-page .breakdown dl{margin:0}
.profit-margin-page .breakdown dl>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #deddd7}
.profit-margin-page .breakdown dl>div:first-child{padding-top:0}
.profit-margin-page .breakdown dl>div:last-child{padding-bottom:0;border-bottom:0}
.profit-margin-page .breakdown dt{min-width:0}
.profit-margin-page .breakdown dd{margin:0;text-align:right;font:600 .88rem 'JetBrains Mono',monospace;white-space:nowrap}
.profit-margin-page .breakdown-subtotal,.profit-margin-page .breakdown-total{font-weight:700}
.profit-margin-page .breakdown-subtotal{border-top:1px solid #09090b}
.profit-margin-page .breakdown-subtotal span,.profit-margin-page #tax-rate-output{font-weight:400;color:#5b5a54}
.profit-margin-page .breakdown-total{color:#09090b}
.profit-margin-page .inline-message{margin:12px 0 0;padding:12px 14px;border-left:4px solid #f26247;background:#f3e8d8;font:.92rem/1.45 'PT Serif',Georgia,serif}
.profit-margin-page .content-section,.profit-margin-page .roadbase-cta{max-width:800px;margin:0 auto 36px;font-family:'PT Serif',Georgia,serif}
.profit-margin-page .content-section h2,.profit-margin-page .content-section h3,.profit-margin-page .roadbase-cta h3{font-family:Archivo,Arial,sans-serif}
.profit-margin-page .content-section h2{margin:0 0 14px;font-size:1.45rem;line-height:1.15}
.profit-margin-page .content-section h3{margin:24px 0 6px;font-size:1.08rem}
.profit-margin-page .content-section p{margin:0 0 14px}
.profit-margin-page .method-section{padding-top:48px}
.profit-margin-page .method-section p:first-of-type,.profit-margin-page .limits-section p:first-of-type{padding-top:16px}
.profit-margin-page .blog-cta-box{padding:28px;background:#09090b;color:#fff}
.profit-margin-page .blog-cta-box h3{margin:0 0 10px;font-size:1.5rem}
.profit-margin-page .blog-cta-box p{margin:0;font:1.05rem/1.55 'PT Serif',Georgia,serif}
.profit-margin-page .cta-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.profit-margin-page .cta-actions a{display:inline-flex;align-items:center;min-height:44px;padding:10px 15px;font:700 1rem Archivo,Arial,sans-serif;text-decoration:none}
.profit-margin-page .cta-actions .primary{background:#f26247;color:#09090b}
.profit-margin-page .cta-actions .secondary{border:1px solid rgba(255,255,255,.35);color:#fff}
.profit-margin-page .no-script-message{padding:12px;border:1px solid #77756f;background:#fff;font-weight:700}
.profit-margin-page .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.profit-margin-page input:focus-visible,.profit-margin-page a:focus-visible{outline:3px solid #8cb8d1;outline-offset:3px}
.profit-margin-page input[aria-invalid=true]{border:2px solid #a51d16}
@media(max-width:760px){.profit-margin-page .calculator-workspace{grid-template-columns:1fr}.profit-margin-page form,.profit-margin-page .result-panel,.profit-margin-page .breakdown{padding:18px}.profit-margin-page .hero-title{font-size:clamp(1.55rem,9vw,2.4rem)}}
@media(prefers-reduced-motion:reduce){.profit-margin-page *{transition:none!important;animation:none!important}}
