/* R7 content platform v2 — shared by portfolio and tools. */
#r7-preview{padding-bottom:110px}
#r7-preview .credentials{grid-template-columns:.9fr 1.1fr 1fr 1.45fr;gap:16px}
#r7-preview .credentials .bpip-inline{white-space:normal;display:inline}
#r7-preview .credentials a:hover{text-decoration:underline}
#r7-preview .editorial-testimonials .editorial-card{border-top-color:var(--brand-accent,var(--green))}
#r7-preview .portfolio-primary,#r7-preview .portfolio-floating{background:#00a859;color:white!important;font-weight:700;border:1px solid #22cf87;border-radius:10px;box-shadow:0 6px 22px #00a8592b;text-decoration:none;padding:13px 21px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
#r7-preview .portfolio-primary{margin:5px 0 28px}
#r7-preview .portfolio-floating{position:fixed;right:22px;bottom:22px;z-index:1000;font-size:14px;max-width:calc(100vw - 32px)}
#r7-preview .portfolio-primary:hover,#r7-preview .portfolio-floating:hover{background:#008f4c;border-color:#6deab1}
#r7-preview .page-heading{padding-top:32px;margin-bottom:22px}
#r7-preview .page-heading h1{font-size:36px;letter-spacing:-1px;margin:12px 0;line-height:1.25}
#r7-preview .featured-image{margin:18px 0 24px}
#r7-preview .featured-image img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:10px;background:var(--panel)}
#r7-preview .featured-image figcaption{font-size:13px;color:var(--muted);margin-top:9px}
#r7-preview .case .featured-image img,#r7-preview .post-card .featured-image img,#r7-preview .service-card .featured-image img{aspect-ratio:16/9;object-fit:cover;max-height:240px}
#r7-preview .wiki-layout{display:grid;grid-template-columns:minmax(180px,230px) minmax(0,1fr);gap:34px;align-items:start;margin-top:26px}
#r7-preview .wiki-layout.no-toc{display:block}
#r7-preview .wiki-menu{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:18px;position:sticky;top:16px}
#r7-preview .wiki-menu summary{font-weight:700;cursor:pointer}
#r7-preview .wiki-menu nav{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:13px}
#r7-preview .wiki-menu nav a{font-size:13px;line-height:1.5;padding:7px 0;color:var(--muted);overflow-wrap:anywhere}
#r7-preview .wiki-menu nav a:hover{color:var(--green)}
#r7-preview .wiki-menu .toc-level-3,#r7-preview .wiki-menu .toc-level-4{padding-left:12px}
#r7-preview .rich-content{min-width:0;overflow-wrap:anywhere;color:var(--text);font-size:16px;line-height:1.8}
#r7-preview .rich-content p{color:var(--muted);margin:0 0 18px}
#r7-preview .rich-content h1,#r7-preview .rich-content h2,#r7-preview .rich-content h3,#r7-preview .rich-content h4{scroll-margin-top:24px;letter-spacing:-.35px;line-height:1.4;margin:30px 0 14px}
#r7-preview .rich-content h2{font-size:26px}#r7-preview .rich-content h3{font-size:21px}
#r7-preview .rich-content a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
#r7-preview .rich-content img{max-width:100%;height:auto;border-radius:8px}
#r7-preview .rich-content figure{margin:24px 0}#r7-preview .rich-content figcaption{color:var(--muted);font-size:13px}
#r7-preview .rich-content ul,#r7-preview .rich-content ol{padding-left:25px;color:var(--muted)}
#r7-preview .rich-content blockquote{border-left:3px solid var(--green);margin:24px 0;padding:10px 20px;background:var(--panel);font-size:19px}
#r7-preview .rich-content table{display:block;overflow:auto;border-collapse:collapse;max-width:100%}#r7-preview .rich-content td,#r7-preview .rich-content th{border:1px solid var(--border);padding:10px}
#r7-preview .rich-content pre{white-space:pre-wrap;overflow-wrap:anywhere}
#r7-preview .more-menu{position:relative;font-size:13px;color:var(--muted)}#r7-preview .more-menu summary{cursor:pointer;padding:8px 0}
#r7-preview .more-menu>div{position:absolute;right:0;top:100%;min-width:180px;max-width:280px;z-index:1100;padding:12px;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 24px #0003}
#r7-preview .more-menu>div a{display:block;padding:9px 10px;overflow-wrap:anywhere}
#r7-preview .footer-links{max-width:600px}
#r7-preview .admin-main{min-width:0}
#r7-preview .admin-field{margin:20px 0}#r7-preview .admin-field>label{font-size:14px;font-weight:600;margin-bottom:8px}
#r7-preview .admin-field>input:not([type=checkbox]),#r7-preview .admin-field>select,#r7-preview .admin-field>textarea{width:100%}
#r7-preview .admin-field input[type=color]{width:90px;height:44px;padding:5px}
#r7-preview .editor-shell{border:1px solid var(--border);border-radius:8px;overflow:hidden}
#r7-preview .editor-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:10px;background:var(--panel);border-bottom:1px solid var(--border)}
#r7-preview .editor-toolbar button,#r7-preview .editor-toolbar select{font-size:12px;padding:7px 9px;border-radius:5px}
#r7-preview .editor-area{min-height:180px;padding:16px;background:var(--bg);color:var(--text);overflow-wrap:anywhere;outline-offset:-3px}
#r7-preview .editor-area h2{font-size:24px;margin:12px 0}#r7-preview .editor-area h3{font-size:20px}#r7-preview .editor-area p{margin:0 0 12px}
#r7-preview .editor-area img{max-width:100%;height:auto}#r7-preview .editor-area a{color:var(--green);text-decoration:underline}
#r7-preview .editor-area ul,#r7-preview .editor-area ol{padding-left:24px}
#r7-preview .editor-status{font-size:12px;color:var(--muted);padding:8px 12px;min-height:30px}
#r7-preview .admin-image-preview{max-width:240px;max-height:150px;object-fit:contain;border:1px solid var(--border);border-radius:8px;background:#10151f;padding:10px}
#r7-preview .legal-drafts{margin-bottom:20px}
#r7-preview .blog-date{font-size:13px;color:var(--muted)}
@media(max-width:1000px){#r7-preview .credentials{grid-template-columns:1fr 1fr}#r7-preview .credentials>div:last-child{grid-column:auto}}
@media(max-width:740px){#r7-preview .wiki-layout{grid-template-columns:1fr;gap:20px}#r7-preview .wiki-menu{position:static}#r7-preview .wiki-menu nav{display:block}#r7-preview .wiki-menu nav a{display:block}#r7-preview .portfolio-floating{right:16px;bottom:16px;font-size:13px;padding:12px 16px}#r7-preview .page-heading h1{font-size:30px}#r7-preview .more-menu>div{right:auto;left:0}#r7-preview .admin-grid{grid-template-columns:1fr}}
@media(max-width:500px){#r7-preview .credentials{grid-template-columns:1fr}#r7-preview .editor-toolbar button{min-height:36px}}

#r7-preview .preview-notice{background:var(--panel);border-left:3px solid var(--green);padding:12px 16px}

/* Keep tool introduction paragraphs centered within their constrained width. */
#r7-preview .r7-hero p{margin-left:auto;margin-right:auto;text-align:center}

/* Tool pages use the same outer spacing and content width as index.php. */
body[data-tool]{margin:8px;padding:0}
body[data-tool] #r7-preview .r7-wrapper{width:100%;max-width:none;margin:0;min-width:0}
