.resultbox .secondary-btn{background:#e0ebe5;color:#183b39;border:1px solid #78958c;box-shadow:none}.resultbox .secondary-btn:hover{background:#d3e3db;color:#122f2d}.resultbox .secondary-btn:focus-visible{outline:3px solid #1d6d61;outline-offset:3px}.resultbox .copy-status{color:#294e47}
    .tool-detail-page .hero{display:block;padding:28px 0 10px}
    .tool-detail-page .hero>div:first-child{max-width:820px}
    .tool-detail-page .hero-card,.tool-detail-page .searchrow,.tool-detail-page .section-head,.tool-detail-page .mobile-cats,.tool-detail-page .side,.tool-detail-page #cards,.tool-detail-page #guides,.tool-detail-page .trust{display:none!important}
    .tool-detail-page #calculators{margin:0 auto 22px}
    .tool-detail-page #calculators .layout{display:block}
    .tool-detail-page .calculator{display:block;margin:0 0 22px}
    .breadcrumbs{display:flex;gap:8px;align-items:center;color:#74847f;font-size:12px;margin:0 0 20px}
    .breadcrumbs a{color:var(--teal);text-decoration:none;font-weight:700}
    .tool-article{background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(22px,4vw,42px);margin:0 auto 54px;max-width:900px}
    .tool-article h2{font-size:22px;line-height:1.2;letter-spacing:-.035em;margin:28px 0 9px}
    .tool-article h2:first-of-type{margin-top:18px}
    .tool-article p{color:#52646a;font-size:14px;line-height:1.75;margin:0 0 13px;max-width:760px}
    .tool-faq details{border-top:1px solid var(--line);padding:13px 0}
    .tool-faq summary{cursor:pointer;font-weight:750;color:var(--ink)}
    .tool-faq details p{margin:9px 0 0}
    .related-tools{columns:2;max-width:700px;padding-left:20px}
    .related-tools li{padding:3px 0;color:#54666b}
    .related-tools a,.method-link a{color:var(--teal);font-weight:700}
    .method-link{font-size:12px!important}
    .related-section{max-width:1080px;margin:12px auto 30px}
    .related-head{margin:0 0 16px}
    .related-head h2,.category-list h2,.category-note h2{font-size:clamp(22px,3vw,30px);letter-spacing:-.035em;margin:7px 0}
    .related-head p,.category-hero p,.category-note p{color:#52646a;line-height:1.7;max-width:760px}
    .related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
    .related-card,.category-tool{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;color:inherit;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
    .related-card:hover,.category-tool:hover{transform:translateY(-2px);box-shadow:0 12px 28px #182c3514}
    .tool-art{display:block;width:100%;height:auto;aspect-ratio:240/112}
    .tool-art-large{max-width:580px;border-radius:16px;margin:0 0 7px}
    .related-copy{display:flex;flex-direction:column;gap:6px;padding:15px 16px 17px;flex:1}
    .related-copy strong,.category-tool strong{font-size:15px;line-height:1.35;color:var(--ink)}
    .related-copy span,.category-tool small{font-size:12px;line-height:1.55;color:#65757a}
    .related-copy em{font-size:12px;color:var(--teal);font-weight:750;font-style:normal;margin-top:3px}
    .article-figure{margin:18px 0 26px}
    .article-figure figcaption{font-size:12px;color:#74847f;margin-top:7px}
    .tool-article ol{padding-left:22px;color:#52646a;font-size:14px;line-height:1.75}
    .tool-article ol li{padding:3px 0}
    .category-main{padding-bottom:34px}
    .category-hero{background:linear-gradient(135deg,#fff 0%,#eff8f4 100%);border:1px solid var(--line);border-radius:24px;padding:clamp(24px,5vw,52px);margin:12px 0 34px;position:relative;overflow:hidden}
    .category-hero h1{font-size:clamp(34px,6vw,58px);letter-spacing:-.055em;margin:10px 0}
    .category-mark{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#dff1eb;color:#087e79;font-weight:800;font-size:22px;margin-bottom:12px}
    .category-count{display:inline-flex;margin-top:12px;padding:8px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13px;font-weight:750;color:var(--teal)}
    .category-list{margin:30px 0}
    .category-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
    .category-tool{display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:94px}.category-tool>span:first-child:not(.tool-art){display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.category-tool .tool-art{flex:0 0 82px}.category-tool>b{margin-left:auto;flex:none}
    .category-tool .tool-art{width:82px;border-radius:10px}
    .category-tool span:not(.category-mark){display:flex;flex-direction:column;gap:5px}
    .category-tool b{color:var(--teal)}
    .category-note{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin-top:34px}
    .category-note p{margin-bottom:0}
    .category-collections{padding:38px 0}
    .collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
    .collection-card{display:flex;align-items:center;gap:12px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:16px;color:inherit;text-decoration:none}
    .collection-card .category-mark{margin:0;flex:none}
    .collection-card span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1}
    .collection-card small{color:#65757a}
    .collection-card>b{color:var(--teal)}
    .related-guides{max-width:1080px;margin:0 auto 30px}
    .guide-link-card{display:grid;grid-template-columns:minmax(220px,38%) 1fr;gap:18px;align-items:center;max-width:850px;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:18px;color:inherit;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
    .guide-link-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #182c3514}
    .guide-cover{display:block;width:100%;height:auto;aspect-ratio:640/260;border-radius:16px}
    .guide-link-card>span{display:flex;flex-direction:column;gap:8px;padding:16px 20px 16px 0}
    .guide-link-card strong{font-size:18px;line-height:1.35;color:var(--ink)}
    .guide-link-card small{font-size:13px;line-height:1.6;color:#65757a}
    .guide-link-card em{font-size:13px;color:var(--teal);font-style:normal;font-weight:750}
    .category-guide-art{display:grid;place-items:center;min-height:132px;background:radial-gradient(circle at 70% 35%,#d8ece7 0 24%,transparent 25%),linear-gradient(135deg,#edf5f1,#f8f4e9)}
    .category-guide-art .category-mark{margin:0;background:#fff;box-shadow:0 8px 24px #203b3014}
    .guide-main{padding-bottom:40px}
    .guide-article{max-width:900px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(22px,4vw,44px);margin:10px auto 48px}
    .guide-article h1{font-size:clamp(32px,5vw,50px);line-height:1.08;letter-spacing:-.05em;margin:12px 0}
    .guide-article h2{font-size:24px;line-height:1.2;letter-spacing:-.03em;margin:30px 0 9px}
    .guide-article p{font-size:15px;line-height:1.8;color:#52646a;max-width:760px}
    .guide-deck{font-size:18px!important;color:#52646a}
    .guide-article figure{margin:24px 0 30px}
    .guide-article figcaption{font-size:12px;color:#74847f;margin-top:7px}
    .guide-next{padding:20px;background:#f2f7f3;border-radius:16px;margin-top:34px}
    .guide-next .primary-btn{display:inline-flex;text-decoration:none}
    .guide-with-cover .guide-cover{border-radius:12px;margin-bottom:10px}
    .guide-with-cover>a:first-child{display:block}
    .tool-detail-page .footer-links a[href="/#calculators"]{display:none}
    @media(max-width:850px){.related-grid,.category-tool-grid,.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:640px){.tool-detail-page .hero{padding:22px 0 8px}.tool-detail-page .hero h1{font-size:36px}.tool-article{padding:22px 18px;margin-bottom:34px}.tool-article h2{font-size:20px}.related-tools{columns:1}.related-grid,.category-tool-grid,.collection-grid{grid-template-columns:1fr}.related-section{margin:10px auto 24px}.category-tool{min-height:84px}.category-tool .tool-art{width:72px;flex-basis:72px}.category-hero{border-radius:18px}.guide-link-card{grid-template-columns:1fr}.guide-link-card .guide-cover{border-radius:16px 16px 0 0}.guide-link-card>span{padding:0 18px 18px}.guide-article{padding:22px 18px}.guide-article h2{font-size:21px}}

/* Shared calculator detail page UX rules (scoped away from the homepage). */
.tool-detail-page .calculator{display:none;margin:18px 0 22px}
.tool-detail-page .calculator.open{display:block}
.tool-detail-page .field input,
.tool-detail-page .field select{min-height:44px}
.tool-detail-page .fields{min-width:0}
.tool-detail-page .result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.tool-detail-page .result-actions button{min-height:44px}
.tool-detail-page .calc-live-note{align-self:center;color:#b5c4c4;font-size:11px;line-height:1.45}
.tool-detail-page .copy-status{min-height:18px;margin:5px 0 0;color:#52646a;font-size:11px}
.tool-detail-page .tool-faq summary{display:flex;align-items:center;min-height:44px;padding:7px 2px;list-style:none;line-height:1.45}
.tool-detail-page .tool-faq summary::-webkit-details-marker{display:none}
.tool-detail-page .tool-faq summary::after{content:"+";margin-left:auto;padding-left:14px;color:var(--teal);font-size:18px;font-weight:600}
.tool-detail-page .tool-faq details[open] summary::after{content:"−"}
.tool-detail-page .batch155-formula{overflow-wrap:anywhere}
.tool-detail-page .worked-example-card{margin:10px 0 22px;padding:18px 20px;border:1px solid #dce9e2;border-left:3px solid var(--teal);border-radius:0 14px 14px 0;background:#f0f7f3;color:#243b41}
.tool-detail-page .resultbox output{max-width:100%;overflow-wrap:anywhere}
.tool-detail-page .resultbox.has-error{border:1px solid #eeb0a4;background:#fff3f0}
.tool-detail-page .resultbox.has-error output{color:#a63c2f}
.tool-detail-page .tool-article,.tool-detail-page .calculator-article{max-width:900px;margin:0 auto 54px;padding:clamp(22px,4vw,42px);border:1px solid var(--line);border-radius:22px;background:#fff}
.tool-detail-page .calculator-article h2{margin:28px 0 9px;font-size:22px;line-height:1.2;letter-spacing:-.035em}
.tool-detail-page .calculator-article p,.tool-detail-page .calculator-article li{max-width:760px;color:#52646a;font-size:14px;line-height:1.75}
.tool-detail-page :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #b6e576;outline-offset:3px}
@media(min-width:881px) and (max-width:1120px){.tool-detail-page .topbar .nav{gap:10px}.tool-detail-page .brand{font-size:18px}.tool-detail-page .nav-search-button span{display:none}.tool-detail-page .nav-cta{padding:10px 12px;font-size:12px}}
@media(max-width:640px){.tool-detail-page .field input,.tool-detail-page .field select{height:44px;min-height:44px}.tool-detail-page .calculator{margin-top:14px}.tool-detail-page .resultbox output{font-size:clamp(27px,8vw,32px)}.tool-detail-page .tool-article,.tool-detail-page .calculator-article{max-width:100%;padding:22px 18px;margin-bottom:34px;overflow-wrap:anywhere}.tool-detail-page .calculator-article h2{font-size:20px}.tool-detail-page .tool-article table{display:block;max-width:100%;overflow-x:auto}.tool-detail-page .related-copy{padding:13px 14px 15px}}
    
  
