/* Scroll wide content within the article/edited section, never the whole page. */
.post-body table,.gag-rich-content table{display:block;width:max-content;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:20px 0}
.post-body td,.post-body th,.gag-rich-content td,.gag-rich-content th{border:1px solid #666;padding:10px 14px;min-width:90px;text-align:left;overflow-wrap:anywhere}
.post-body th,.gag-rich-content th{background:rgba(128,128,128,.18);font-weight:700}
.post-body img,.gag-rich-content img{max-width:100%;height:auto}.gag-rich-content{min-width:0;overflow-wrap:anywhere;line-height:1.7}.gag-rich-content pre{overflow-x:auto;max-width:100%}
/* Advanced article editing and image layout. */
.rich-editor figure,.post-body figure,.gag-rich-content figure{display:block;width:fit-content;max-width:100%;margin:24px auto;clear:both}.rich-editor figure img,.post-body figure img,.gag-rich-content figure img{display:block;max-width:100%;height:auto}.rich-editor figure.gag-image-left,.post-body figure.gag-image-left,.gag-rich-content figure.gag-image-left{margin-left:0;margin-right:auto}.rich-editor figure.gag-image-right,.post-body figure.gag-image-right,.gag-rich-content figure.gag-image-right{margin-left:auto;margin-right:0}.rich-editor figure.gag-image-center,.post-body figure.gag-image-center,.gag-rich-content figure.gag-image-center{margin-left:auto;margin-right:auto}.rich-editor figure.gag-image-full,.post-body figure.gag-image-full,.gag-rich-content figure.gag-image-full{width:100%}.rich-editor figure.gag-image-full img,.post-body figure.gag-image-full img,.gag-rich-content figure.gag-image-full img{width:100%}.rich-editor figcaption,.post-body figcaption,.gag-rich-content figcaption{font-size:.85em;line-height:1.6;color:#6b7e70;text-align:center;margin:10px 0 0;overflow-wrap:anywhere}.post-body hr,.gag-rich-content hr,.rich-editor hr{border:0;border-top:1px solid #a6bbad;margin:28px 0}

/* Public article reading layout. All rules are scoped away from calculators/editors. */
#singlePostView{--article-text:#D6D9DF;--article-heading:#F5F5F7;box-sizing:border-box;width:100%;max-width:900px;padding:clamp(22px,4.5vw,54px);border-radius:18px;color:var(--article-text)}
.article-breadcrumbs{box-sizing:border-box;max-width:900px;font-size:13px;line-height:1.7;color:var(--text-2,#aaa)}
#singlePostView .back-btn{font-size:14px;line-height:1.6;margin-bottom:26px;padding:8px 0}
#singlePostView .post-header{margin-bottom:28px}
#singlePostView .post-header .article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;font-size:13px;line-height:1.6;color:var(--text-2,#aaa)}
#singlePostView .post-header .article-category{flex-shrink:0;border-radius:5px;padding:4px 9px}
#singlePostView .post-title{max-width:27ch;font-size:clamp(28px,3.5vw,40px);line-height:1.2;letter-spacing:-.025em;margin:20px 0 18px;text-wrap:balance;color:var(--article-heading)}
#singlePostView .post-byline{font-size:14px;line-height:1.7;color:var(--text-2,#aaa);margin:0}
#singlePostView .post-byline a{text-underline-offset:3px}
#singlePostView .post-image-hero{margin:28px 0 36px}
#singlePostView .post-image-hero img{display:block;width:100%;height:auto;border-radius:12px;background:var(--surface-2,#1a1a1a)}
#singlePostView .post-body{max-width:72ch;margin-inline:auto;font-size:17px;font-weight:400;line-height:1.85;color:var(--article-text)}
#singlePostView .post-body p{margin:0 0 1.25em}
#singlePostView .post-body h2{font-size:28px;line-height:1.3;font-weight:700;letter-spacing:-.02em;margin:1.9em 0 .7em}
#singlePostView .post-body h3{font-size:23px;line-height:1.35;font-weight:650;margin:1.6em 0 .65em}
#singlePostView .post-body h4{font-size:19px;line-height:1.45;font-weight:650;margin:1.45em 0 .6em}
#singlePostView .post-body h2,#singlePostView .post-body h3,#singlePostView .post-body h4{color:var(--article-heading);scroll-margin-top:180px;overflow-wrap:anywhere}
#singlePostView .post-body>h2:first-child,#singlePostView .post-body>h3:first-child{margin-top:0}
#singlePostView .post-body ul,#singlePostView .post-body ol{margin:0 0 1.3em;padding-left:1.5em}
#singlePostView .post-body li{margin:.45em 0;padding-left:.15em}
#singlePostView .post-body li>p{margin-bottom:.5em}
#singlePostView .post-body a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;overflow-wrap:anywhere}
#singlePostView .post-body blockquote{border-left:3px solid var(--accent,#30d158);background:var(--surface-2,#1a1a1a);border-radius:0 10px 10px 0;margin:28px 0;padding:20px 24px;color:var(--article-text)}
#singlePostView .post-body blockquote>:last-child{margin-bottom:0}
#singlePostView .post-body pre{max-width:100%;overflow:auto;padding:18px;border:1px solid var(--border-1,#333);border-radius:10px;background:var(--surface-2,#1a1a1a);font-size:14px;line-height:1.7}
#singlePostView .post-body figure{margin-top:32px;margin-bottom:32px}
#singlePostView .post-body figcaption{max-width:66ch;margin:12px auto 0;color:var(--text-2,#aaa);font-size:14px;line-height:1.65;text-align:center;padding:0 4px}
#singlePostView .post-body hr{border-color:var(--border-1,#333);margin:38px 0}
#singlePostView .author-profile{margin-top:44px;padding:24px;background:var(--surface-2,#1a1a1a);font-size:15px;line-height:1.7}
#singlePostView .author-profile h2{font-size:20px;line-height:1.4;color:var(--article-heading)}
#singlePostView .author-profile img{width:72px;height:72px;object-fit:cover;flex-shrink:0}
#singlePostView .author-profile p{color:var(--text-2,#aaa)}

/* Native details/anchor navigation works without additional JavaScript. */
#singlePostView .article-toc{max-width:72ch;box-sizing:border-box;margin:0 auto 36px;border:1px solid var(--border-1,#333);border-radius:12px;background:var(--surface-2,#1a1a1a);padding:8px 22px}
#singlePostView .article-toc summary{cursor:pointer;font-size:16px;font-weight:650;line-height:1.6;padding:12px 0;color:var(--article-heading)}
#singlePostView .article-toc ol{list-style:none;padding:0;margin:0 0 12px}
#singlePostView .article-toc li{margin:0;border-top:1px solid var(--border-1,#333)}
#singlePostView .article-toc li.toc-subheading{padding-left:18px}
#singlePostView .article-toc a{display:block;padding:11px 0;font-size:14px;line-height:1.6;color:var(--article-text);text-decoration:none;overflow-wrap:anywhere}
#singlePostView .article-toc a:hover{text-decoration:underline;text-underline-offset:3px}
#singlePostView a:focus-visible,.related-guides a:focus-visible,#singlePostView .article-toc summary:focus-visible,#singlePostView .article-table-scroll:focus-visible{outline:2px solid var(--accent,#30d158);outline-offset:4px;border-radius:4px}

/* Keep wide tables inside a focusable scroll region, preserving their captions. */
#singlePostView .article-table-block{max-width:100%;min-width:0;margin:28px 0}
#singlePostView .post-body .article-table-hint{font-size:12px;line-height:1.6;color:var(--text-2,#aaa);margin:0 0 10px}
#singlePostView .article-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--border-1,#333);border-radius:10px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--text-3,#888) var(--surface-2,#1a1a1a)}
#singlePostView .article-table-scroll table{display:table;width:max-content;min-width:100%;max-width:none;margin:0;border-collapse:collapse;overflow:visible;font-size:15px;line-height:1.65}
#singlePostView .article-table-scroll td,#singlePostView .article-table-scroll th{min-width:110px;max-width:360px;padding:14px 16px;vertical-align:top;border:1px solid var(--border-1,#333);white-space:normal;overflow-wrap:anywhere;color:var(--article-text)}
#singlePostView .article-table-scroll th{background:var(--surface-2,#1a1a1a);font-weight:650}
#singlePostView .article-table-scroll caption{caption-side:top;text-align:left;padding:14px 16px;color:var(--text-2,#aaa);font-size:14px;font-weight:500;background:var(--surface-2,#1a1a1a)}

.related-guides{box-sizing:border-box;max-width:900px;margin:40px auto 0;color:var(--text-1,#fff)}
.related-guides-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
.related-kicker{font-size:11px;line-height:1.6;letter-spacing:.09em;text-transform:uppercase;color:var(--text-2,#aaa);margin:0 0 6px}
.related-guides h2{font-size:24px;line-height:1.3;letter-spacing:-.015em;margin:0}
.related-guides-heading>a{flex-shrink:0;font-size:14px;color:var(--accent,#30d158);padding:10px 0}
.related-guides-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.related-guide{display:flex;align-items:start;gap:14px;min-width:0;padding:20px;border:1px solid var(--border-1,#333);border-radius:12px;background:var(--surface-1,#15161a);color:inherit;text-decoration:none;transition:border-color .15s}
.related-guide:hover{border-color:var(--accent,#30d158)}
.related-guide>div{min-width:0;overflow-wrap:anywhere}
.related-guide img{width:56px;height:56px;flex-shrink:0;object-fit:cover;border-radius:8px}
.related-category{font-size:11px;line-height:1.6;color:var(--text-2,#aaa)}
.related-guide h3{font-size:16px;line-height:1.5;margin:6px 0 10px;color:var(--text-1,#fff)}
.related-guide p{font-size:13px;line-height:1.7;margin:0 0 14px;color:var(--text-2,#aaa)}
.related-readmore{font-size:13px;line-height:1.6;color:var(--accent,#30d158)}
@media(max-width:1000px){.related-guides-grid{grid-template-columns:1fr}.related-guide img{width:80px;height:80px}}
@media(max-width:600px){
 #singlePostView{padding:24px 18px;border-radius:12px}
 #singlePostView .post-title{font-size:29px;line-height:1.22}
 #singlePostView .post-body{font-size:16px;line-height:1.85}
 #singlePostView .post-body h2{font-size:25px}
 #singlePostView .post-body h3{font-size:21px}
 #singlePostView .post-body h4{font-size:18px}
 #singlePostView .post-header .article-meta{gap:8px 12px;font-size:12px}
 #singlePostView .post-image-hero{margin:24px 0 28px}
 #singlePostView .article-toc{padding:6px 16px;margin-bottom:28px}
 #singlePostView .post-body blockquote{padding:16px 18px;margin:24px 0}
 #singlePostView .author-profile{padding:18px;margin-top:32px}
 #singlePostView .post-body figcaption{font-size:13px}
 #singlePostView .article-table-scroll td,#singlePostView .article-table-scroll th{padding:12px;min-width:100px}
 .related-guides{margin-top:30px}.related-guides-heading{align-items:start;flex-direction:column;gap:4px}.related-guides h2{font-size:22px}.related-guide{padding:18px}.related-guide img{width:56px;height:56px}
}
@media(prefers-reduced-motion:reduce){.related-guide{transition:none}}

/* Preserve readable dark text when visitors switch to the light theme. */
[data-theme="light"] #singlePostView{--article-text:var(--text-1,#1d1d1f);--article-heading:var(--text-1,#1d1d1f)}

/* Page Content presentation is owned by the renderer, not editable/pasted HTML. */
.gag-page-copy{--copy-text:#d6d9df;--copy-heading:#f5f5f7;color:var(--copy-text);font-size:16px;font-weight:400;line-height:1.8;overflow-wrap:anywhere;min-width:0;max-width:100%;box-sizing:border-box}
[data-theme="light"] .gag-page-copy{--copy-text:#424245;--copy-heading:#1d1d1f}
.gag-page-copy *{box-sizing:border-box}
.gag-page-copy p{font-size:1rem;font-weight:400;line-height:1.8;color:var(--copy-text);margin:0 0 18px}
.gag-page-copy h2,.gag-page-copy h3,.gag-page-copy h4{line-height:1.4;font-weight:700;color:var(--copy-heading);margin:30px 0 16px;overflow-wrap:anywhere}
.gag-page-copy h2{font-size:26px}.gag-page-copy h3{font-size:21px;color:var(--accent,#30d158)}.gag-page-copy h4{font-size:18px}
.gag-page-copy>h2:first-child,.gag-page-copy>h3:first-child,.gag-content-section>h2:first-child,.gag-content-section>h3:first-child{margin-top:0}
.gag-page-copy ul,.gag-page-copy ol{margin:0 0 24px;padding-left:26px;list-style-position:outside}
.gag-page-copy ul{list-style-type:disc}.gag-page-copy ol{list-style-type:decimal}
.gag-page-copy li{font-size:1rem;line-height:1.75;color:var(--copy-text);margin:8px 0;padding-left:3px}
.gag-page-copy li::marker{color:var(--accent,#30d158)}.gag-page-copy li p{margin:0 0 8px}
.gag-page-copy strong,.gag-page-copy b{font-weight:700;color:var(--copy-heading)}
.gag-page-copy a{color:var(--accent,#30d158);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.gag-page-copy a:focus-visible,.gag-page-copy summary:focus-visible{outline:2px solid var(--accent,#30d158);outline-offset:4px}
.gag-page-copy img{max-width:100%;height:auto}.gag-page-copy figure{margin:26px auto;max-width:100%}.gag-page-copy figcaption{font-size:14px;line-height:1.6;color:var(--text-2,#aaa);margin-top:10px}
.gag-page-copy blockquote{border-left:3px solid var(--accent,#30d158);background:var(--surface-2,#1a1a1a);padding:18px 22px;margin:24px 0;border-radius:0 8px 8px 0}
.gag-page-copy pre{overflow:auto;max-width:100%;padding:18px;border-radius:8px;background:var(--surface-2,#1a1a1a);font-size:14px;line-height:1.7}
.gag-page-copy table{display:block;width:max-content;min-width:0;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:14px;line-height:1.6;margin:22px 0}
.gag-page-copy td,.gag-page-copy th{min-width:90px;max-width:300px;padding:12px 15px;border:1px solid var(--border-2,#444);text-align:left;color:var(--copy-text);font-size:14px;line-height:1.6;vertical-align:top}
.gag-page-copy th{background:var(--surface-2,#1a1a1a);color:var(--accent,#30d158);font-weight:700}
.gag-page-copy caption{caption-side:top;text-align:left;padding:10px 0;color:var(--copy-text);font-size:14px}
.gag-page-copy details,.gag-page-copy .gag-content-faq{padding:18px 22px;margin:14px 0;border:1px solid var(--border-1,#333);border-left:3px solid var(--accent,#30d158);border-radius:10px;background:var(--surface-2,#1a1a1a)}
.gag-page-copy summary{font-size:16px;line-height:1.6;color:var(--copy-heading);font-weight:650;cursor:pointer;padding:0;display:list-item;list-style:revert}
.gag-page-copy summary::after{content:none}
.gag-page-copy details[open]>summary{margin-bottom:14px}.gag-page-copy .gag-content-faq h4{margin:0 0 10px;font-size:16px}
.gag-page-copy .gag-content-faq>:last-child,.gag-content-section>:last-child{margin-bottom:0}
.gag-page-copy[data-content-section="main-content"]{margin:28px 0 0}
.gag-page-copy[data-content-page="home"][data-content-section="main-content"]{max-width:1000px;margin:0 auto;padding:32px;border:1px solid var(--border-1,#333);border-radius:16px;background:var(--surface-1,#15161a)}
.gag-page-copy[data-content-page="home"] .gag-content-section{margin:0 0 28px}
.gag-page-copy[data-content-page="home"] .gag-content-section:last-child{margin-bottom:0}
.gag-page-copy[data-content-page="home"] .gag-content-section>h2:first-child{border-bottom:1px solid var(--border-1,#333);padding-bottom:14px}
.gag-page-copy[data-content-page="home"] .gag-content-section>h3:first-child{border-left:3px solid var(--accent,#30d158);padding-left:12px}
.gag-page-copy[data-content-page="value-list"][data-content-section="main-content"]{max-width:1000px;margin:64px auto 0;padding:0 20px}
.gag-page-copy[data-content-page="value-list"] .gag-content-section{padding:30px;margin-bottom:28px;border:1px solid var(--border-panel,var(--border-1,#333));border-radius:16px;background:var(--bg-panel,var(--surface-1,#15161a))}
.gag-page-copy[data-content-page="value-list"] .gag-content-section>h2:first-child{border-left:4px solid var(--accent,#30d158);padding-left:14px}
.gag-page-copy[data-content-section="disclaimer-text"],.gag-page-copy[data-content-section="how-to-use"],.gag-page-copy[data-content-section="introduction"]{font-size:inherit;line-height:inherit}
.gag-page-copy[data-content-section="disclaimer-text"] p,.gag-page-copy[data-content-section="how-to-use"] p{font-size:inherit;line-height:1.7;margin:0 0 10px}
.gag-page-copy[data-content-section="disclaimer-text"]>:last-child,.gag-page-copy[data-content-section="how-to-use"]>:last-child{margin-bottom:0}
@media(max-width:600px){
 .gag-page-copy h2{font-size:23px}.gag-page-copy h3{font-size:20px}.gag-page-copy h4{font-size:17px}
 .gag-page-copy[data-content-page="home"][data-content-section="main-content"]{padding:22px 18px;border-radius:12px}
 .gag-page-copy[data-content-page="value-list"][data-content-section="main-content"]{margin-top:40px;padding:0}
 .gag-page-copy[data-content-page="value-list"] .gag-content-section{padding:22px 18px;margin-bottom:22px;border-radius:12px}
 .gag-page-copy details,.gag-page-copy .gag-content-faq{padding:16px}.gag-page-copy td,.gag-page-copy th{padding:10px;min-width:80px}
}
