.working-guide{--wg-accent:#a64d12;--wg-faint:#fff5e8;--wg-border:#e5cdb3;--wg-text:#564334;color:var(--wg-text)}
.calculator-working-links{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 14px;margin:17px 0 21px;border:1px solid #e5c6a0;border-radius:6px;background:#fff6e8}.calculator-working-links>span{font-size:11px;color:#91633d}.calculator-working-links>.button{font-size:10px;padding:6px 9px}
.working-guide .wg-property-controls>label{min-width:0}.working-guide .wg-property-controls select,.working-guide .wg-property-controls input{min-width:0;max-width:100%}.working-guide .wg-run-head>h4{min-width:0;overflow-wrap:anywhere}
.wg-overview{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;margin:5px 0 24px}.wg-overview h2{font-size:28px;max-width:680px;margin:6px 0 10px}.wg-overview p{font-size:13px;line-height:1.8;max-width:760px;margin-bottom:0}.wg-overview>.button{flex-shrink:0;margin-top:4px}
.wg-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 27px}.wg-topic{display:flex;gap:12px;border:1px solid var(--wg-border);border-radius:7px;background:#fff;padding:15px;text-align:left;min-width:0;line-height:1.45}.wg-topic:hover{background:#fff6e9;border-color:#c98f58}.wg-topic.active{background:#fbe5cb;border-color:#ba6a28;box-shadow:inset 3px 0 #ba6a28}.wg-topic-number{font-size:12px;font-weight:650;color:#a35d27;padding-top:2px}.wg-topic strong{display:block;color:#674428;font-size:12px;font-weight:650}.wg-topic small{font-size:10px;color:#896a50;display:block;margin-top:6px}
.wg-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:25px;align-items:start}.wg-contents{position:sticky;top:122px;max-height:calc(100vh - 145px);overflow:auto;border-left:2px solid #e8c7a3;padding:4px 0 0 14px;scrollbar-width:thin}.wg-contents-title{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#977455;margin-bottom:10px}.wg-contents nav{display:grid;gap:4px}.wg-contents a{display:grid;grid-template-columns:29px 1fr;gap:5px;text-decoration:none;padding:6px 0;color:#765137;font-size:11px;line-height:1.55}.wg-contents a:hover{text-decoration:underline;color:#9d4b10}.wg-contents a span{font-size:10px;color:#ac7c53;font-variant-numeric:tabular-nums}.wg-contents>p{font-size:10px;line-height:1.8;color:#967b64;margin:19px 0 0;padding-right:8px}.wg-topic-content{min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;padding:27px 29px;box-shadow:var(--shadow)}
.wg-topic-head h2{font-size:30px;margin:7px 0 14px;line-height:1.22}.wg-topic-head p{font-size:13px;line-height:1.85;color:#765f4e}.wg-method-counts{display:flex;gap:7px;flex-wrap:wrap;margin:17px 0 15px}.wg-method-counts span{font-size:10px;background:#fff2df;border:1px solid #ebd2b3;border-radius:4px;padding:4px 8px;color:#8b592f}.wg-basis{font-size:11px;line-height:1.8;padding:11px 14px;border-left:3px solid #c9955d;background:#fff8ed;color:#805b3b}.wg-inputs{margin:25px 0}.wg-inputs>h4{font-size:13px;margin-bottom:10px}.wg-input-table td,.wg-input-table th{white-space:normal;vertical-align:top;font-size:11px}.wg-input-table th{font-size:10px}.wg-input-table td:nth-child(1){min-width:60px}.wg-input-table td:nth-child(2){min-width:110px}.wg-input-table td:nth-child(4){min-width:140px}.wg-input-table .katex{font-size:1em}
.wg-method-section{padding-top:30px;margin-top:29px;border-top:1px solid #eadbc9;scroll-margin-top:124px}.wg-section-title{display:flex;gap:11px;align-items:baseline;margin-bottom:18px}.wg-section-title>span{font-size:11px;font-weight:700;color:#ac632b;white-space:nowrap;letter-spacing:.4px}.wg-section-title h3{font-size:20px;font-family:var(--serif);font-weight:400;margin:0;line-height:1.4}.wg-scope{background:#fff9ef;border:1px solid #efdeca;padding:12px 14px;color:#7e5c40;font-size:12px;line-height:1.85;border-radius:5px}
.wg-step{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;margin:24px 0 30px}.wg-step-label{display:grid;place-items:center;align-self:start;height:26px;width:26px;border-radius:50%;background:#fae6cf;border:1px solid #e6bd94;color:#a05720;font-weight:650;font-size:11px;line-height:1}.wg-step-body{min-width:0}.wg-step h4{font-size:14px;line-height:1.5;margin:2px 0 11px}.wg-step p{font-size:12px;line-height:1.9;margin:0 0 11px;color:#674e3d}.wg-equation{padding:6px 0 8px;margin:3px 0;font-size:.93em}.wg-step .source-list{margin:14px 0}.wg-step .source-link{font-size:10px}.wg-note{font-size:11px;line-height:1.9;background:#fff9ef;border-left:2px solid #dfbc91;padding:9px 12px;margin:11px 0;color:#846344}.wg-note strong{font-weight:650;color:#795032}.wg-note.wg-caution{background:#fff3df;border-color:#cf9c51}.wg-step-body>.wg-note:last-child{margin-bottom:0}
.wg-lookup{margin:22px 0 24px;padding:16px;border:1px solid #e7ceb0;border-radius:6px;background:#fffbf5;min-width:0;scroll-margin-top:125px}.wg-lookup-label{font-size:8px;font-weight:700;letter-spacing:1.3px;color:#a07550}.wg-lookup h5{font-size:12px;line-height:1.6;margin:5px 0 9px;color:#6d482d}.wg-lookup p.wg-lookup-instruction{font-size:11px;line-height:1.8;color:#825832;margin:8px 0 12px}.wg-lookup-image{display:block;width:100%;padding:11px;background:#fff;border:1px solid #ead8c0;border-radius:4px;text-align:center;color:#945825}.wg-lookup-image:hover{border-color:#bd7b44;background:#fffefa}.wg-lookup-image img{display:block;width:100%;height:auto;max-height:640px;object-fit:contain;margin:auto}.wg-lookup-image>span{display:block;font-size:10px;padding-top:9px}.wg-lookup .wg-caption{font-size:10px;line-height:1.8;color:#8e725c;margin:10px 0 0}.wg-lookup .source-list{margin-bottom:0}.wg-lookup-companion{margin:17px 0 0;background:#fff;border-style:dashed;padding:12px}.wg-lookup-companion .wg-lookup-image img{max-height:380px}
.wg-worked-route{border:1px solid #dfc19d;border-radius:6px;background:#fff;margin:15px 0;min-width:0}.wg-worked-route>summary,.wg-properties>summary{display:flex;gap:15px;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;padding:16px 17px;background:#fff4e4;color:#754b2b}.wg-worked-route>summary::-webkit-details-marker,.wg-properties>summary::-webkit-details-marker{display:none}.wg-summary-kind{display:block;font-size:8px;font-weight:700;letter-spacing:1.5px;color:#aa7a4e;margin-bottom:4px}.wg-worked-route summary strong,.wg-properties summary strong{font-size:12px;font-weight:650;line-height:1.65}.wg-summary-open{font-size:10px;white-space:nowrap;color:#a66630}.wg-worked-route[open]>summary,.wg-properties[open]>summary{border-bottom:1px solid #ead2b3}.wg-worked-route[open]>summary .wg-summary-open,.wg-properties[open]>summary .wg-summary-open{font-size:0}.wg-worked-route[open]>summary .wg-summary-open:after,.wg-properties[open]>summary .wg-summary-open:after{content:'Open −';font-size:10px}.wg-route-content{padding:21px 19px 7px}.wg-route-note{font-size:12px;line-height:1.9;color:#856344;margin-bottom:12px}.wg-run{margin:0 0 28px}.wg-run+.wg-run{border-top:1px solid #ead9c4;padding-top:24px}.wg-run-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:15px}.wg-run-head>h4{font-size:14px;line-height:1.6;margin:0}.wg-run-head>.button{flex-shrink:0;font-size:10px}.wg-run>p{font-size:12px;line-height:1.9}.wg-worked-step{grid-template-columns:22px minmax(0,1fr);gap:10px;margin:22px 0}.wg-worked-step .wg-step-label{width:22px;height:22px;background:#fff9ef;font-size:10px}.wg-worked-step h4{font-size:12px;margin-top:1px}.wg-worked-step .wg-equation{font-size:.86em}.wg-verification{font-size:10px;line-height:1.8;border-top:1px solid #ede1d2;padding-top:10px;color:#8c6b4e;margin-top:15px}.wg-manual-continuation{padding-top:18px;border-top:1px solid #e7c9a6;margin:24px 0}.wg-manual-continuation>h4{font-size:13px;line-height:1.7;color:#97551d}.wg-example-controls{display:flex;gap:7px;flex-wrap:wrap;margin:-5px 0 17px}
.wg-properties{border:1px solid #dfc19d;border-radius:6px;margin:32px 0 25px;scroll-margin-top:125px}.wg-properties-body{padding:19px}.wg-properties-body>p,.wg-property-description p{font-size:11px;line-height:1.8;color:#88674d}.wg-property-controls{display:grid;grid-template-columns:1.3fr 1fr;gap:13px;margin:18px 0}.wg-property-controls label{font-size:10px;font-weight:650;color:#94683f}.wg-property-controls input,.wg-property-controls select{display:block;width:100%;border:1px solid #dec4a5;border-radius:5px;background:#fffaf3;color:#674528;font-size:11px;padding:10px;margin-top:5px;min-height:40px}.wg-property-description h4{font-size:14px;margin:22px 0 8px}.wg-property-count{font-size:10px;color:#a16f40;margin:13px 0 9px}.wg-properties .data-table{font-size:10px}.wg-properties .data-table td,.wg-properties .data-table th{padding:7px 8px;white-space:nowrap}.wg-properties .data-table th{font-size:9px;white-space:pre-line;min-width:54px}.wg-properties .data-table td:first-child,.wg-properties .data-table th:first-child{position:sticky;left:0;background:#fff7eb;z-index:1;min-width:85px}.wg-no-results{font-size:12px;padding:18px;background:#fff8ed;border:1px dashed #e1c7a8}
.wg-boundaries{background:#fff9ef;border:1px solid #ead1ad;border-radius:5px;margin-top:28px}.wg-boundaries>summary{cursor:pointer;font-size:11px;font-weight:650;color:#966028;padding:13px 15px}.wg-boundaries>div{padding:2px 17px 14px}.wg-boundaries h4{font-size:12px;margin-top:25px}.wg-boundaries h5{font-size:11px;margin:19px 0 6px}.wg-boundaries p{font-size:11px;line-height:1.85;color:#896c4e;margin-bottom:10px}.wg-boundaries .source-link{font-size:9px}#working-source-ranges{scroll-margin-top:125px}
@media(min-width:1500px){.wg-layout{grid-template-columns:225px minmax(0,1fr);gap:30px}.wg-topic-content{padding:30px 35px}.wg-step p{font-size:13px}.wg-step h4{font-size:15px}.wg-topic strong{font-size:13px}}
@media(max-width:1150px){.wg-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wg-layout{grid-template-columns:175px minmax(0,1fr);gap:17px}.wg-contents{padding-left:11px}.wg-contents a{font-size:10px;grid-template-columns:26px 1fr}.wg-topic-content{padding:23px 21px}.wg-step{gap:9px;grid-template-columns:25px minmax(0,1fr)}.wg-run-head{display:block}.wg-run-head>.button{margin-top:12px}.wg-lookup{padding:12px}.wg-lookup-image{padding:8px}}
@media(max-width:850px){.wg-layout{grid-template-columns:1fr}.wg-contents{position:static;max-height:none;border:1px solid #e7c8a3;border-radius:6px;padding:14px 16px;background:#fff8ed}.wg-contents nav{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}.wg-contents a{font-size:11px}.wg-contents>p{margin-top:12px;font-size:10px;max-width:740px}.wg-overview{display:block}.wg-overview>.button{margin-top:17px}.wg-topic-head h2{font-size:28px}.wg-property-controls{grid-template-columns:1fr 1fr}}
@media(max-width:550px){.wg-topic-grid{gap:7px}.wg-topic{padding:11px 9px;gap:7px}.wg-topic strong{font-size:11px}.wg-topic-number{font-size:10px}.wg-topic small{font-size:9px;line-height:1.6}.wg-overview h2{font-size:25px}.wg-overview p{font-size:12px}.wg-contents nav{grid-template-columns:1fr}.wg-topic-content{padding:20px 15px}.wg-topic-head h2{font-size:26px}.wg-topic-head p{font-size:12px}.wg-section-title{gap:8px}.wg-section-title h3{font-size:19px}.wg-section-title>span{font-size:10px}.wg-step{grid-template-columns:22px minmax(0,1fr);gap:8px}.wg-step-label{height:22px;width:22px;font-size:10px}.wg-step h4{font-size:13px}.wg-step p{font-size:12px}.wg-equation{font-size:.82em}.wg-note{padding:8px 10px;font-size:10px}.wg-lookup{margin-left:-5px;padding:10px}.wg-lookup h5{font-size:11px}.wg-lookup-image{padding:5px}.wg-lookup-image img{max-height:none}.wg-worked-route>summary,.wg-properties>summary{padding:13px;gap:9px}.wg-worked-route summary strong,.wg-properties summary strong{font-size:11px}.wg-summary-open{font-size:9px}.wg-route-content{padding:17px 11px 4px}.wg-worked-step{grid-template-columns:19px minmax(0,1fr);gap:7px}.wg-worked-step .wg-step-label{width:19px;height:19px;font-size:9px}.wg-worked-step .wg-equation{font-size:.78em}.wg-properties-body{padding:14px}.wg-property-controls{grid-template-columns:1fr}.wg-properties .data-table th,.wg-properties .data-table td{padding:6px;font-size:9px}.wg-input-table td,.wg-input-table th{font-size:10px}.wg-method-counts{gap:5px}.wg-method-counts span{font-size:9px}}
@media print{.working-guide{color:#111;--wg-text:#111;--wg-border:#bbb}.working-guide .wg-overview,.working-guide .wg-topic-grid,.working-guide .wg-contents,.working-guide .wg-example-controls,.working-guide .wg-property-controls,.working-guide .wg-summary-open,.working-guide .wg-lookup-image>span,.working-guide .wg-run-head>.button{display:none!important}.wg-layout{display:block}.wg-topic-content{border:0;box-shadow:none;padding:0}.wg-topic-head h2{font-size:22pt}.wg-topic-head p,.wg-step p{font-size:10pt;color:#222}.wg-topic-head,.wg-section-title{break-after:avoid}.wg-method-section{margin-top:22pt;padding-top:18pt;scroll-margin:0}.wg-step{break-inside:auto;margin:16pt 0 20pt;gap:8pt;grid-template-columns:22pt minmax(0,1fr)}.wg-step h4{break-after:avoid;font-size:10pt}.wg-step-label{border-color:#999;color:#333;background:white}.wg-equation,.wg-worked-step .wg-equation{font-size:9pt;overflow:visible}.wg-equation .katex-display{white-space:normal;overflow:visible}.wg-lookup{break-inside:avoid;border-color:#bbb;background:white;padding:8pt;margin:15pt 0}.wg-lookup-image{padding:0;border:0;background:white}.wg-lookup-image img{max-height:200mm}.wg-lookup-companion .wg-lookup-image img{max-height:130mm}.wg-caption,.wg-lookup p.wg-lookup-instruction{font-size:8pt!important;color:#333!important}.wg-lookup h5{font-size:9pt}.wg-worked-route,.wg-properties,.wg-boundaries{break-inside:auto;border-color:#bbb;background:white}.wg-worked-route>summary,.wg-properties>summary{background:#f3f3f3;padding:9pt;break-after:avoid}.wg-worked-route summary strong,.wg-properties summary strong{font-size:10pt}.wg-route-content,.wg-properties-body{padding:12pt}.wg-run,.wg-manual-continuation{break-inside:auto}.wg-run h4{break-after:avoid}.wg-properties .data-table{font-size:6.6pt;table-layout:fixed;width:100%}.wg-properties .data-table th,.wg-properties .data-table td{min-width:0;font-size:6.3pt;white-space:normal;overflow-wrap:anywhere;padding:3pt 2pt}.wg-properties .data-table td:first-child,.wg-properties .data-table th:first-child{position:static;min-width:0;width:60pt}.wg-property-description p{font-size:8pt}.wg-input-table{font-size:8pt}.wg-input-table td,.wg-input-table th{min-width:0!important;font-size:8pt}.wg-inputs .data-table-wrap,.wg-properties .data-table-wrap{overflow:visible}.wg-boundaries>summary{font-size:9pt;break-after:avoid}.wg-boundaries p,.wg-note{font-size:8pt;color:#333;background:#fafafa}.wg-inputs>h4{break-after:avoid}.wg-summary-kind,.wg-lookup-label{color:#555;font-size:7pt}.wg-basis,.wg-method-counts{font-size:8pt}.wg-step .source-link{font-size:7pt}}
