/* Same layout and destinations as the FileBito home, adapted to standalone documents. */
header.fb-site-header{position:relative;z-index:30}
header.fb-site-header .header-inner{max-width:1200px;margin:auto;display:flex;align-items:center;gap:14px;padding:0 22px;min-height:66px;height:auto}
header.fb-site-header .logo{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:800;white-space:nowrap;flex-shrink:0}
header.fb-site-header .fb-chrome-nav{margin:auto;display:flex;gap:0;align-items:center;justify-content:center;min-width:0;flex-wrap:wrap}
header.fb-site-header .fb-chrome-nav a{display:inline-flex;gap:5px;align-items:center;padding:9px 11px;white-space:nowrap;font-size:.82rem;text-decoration:none;border-radius:10px}
header.fb-site-header .fb-chrome-nav a:hover,header.fb-site-header .fb-chrome-nav a[aria-current="page"]{color:#fa7058!important;background:rgba(244,111,91,.1)}
header.fb-site-header .fb-blog-theme-toggle{flex-shrink:0;width:40px;height:40px}
header.fb-site-header .fb-chrome-menu{display:none;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;background:var(--bg-surface,#1d293e);border:1px solid var(--border,#3a465e);color:var(--text,#e8eef8);border-radius:10px;cursor:pointer;font-size:21px}
body.fb-blog-site header.fb-site-header{background:var(--blog-surface,#121d30)!important;border-bottom:1px solid var(--blog-border,#2c3c55)!important}
body.fb-blog-site header.fb-site-header .logo,body.fb-blog-site header.fb-site-header nav a{color:var(--blog-ink,#f4f7fc)!important}
body.fb-blog-site footer.ws-footer{background:#111827!important;color:#e2e8f0!important;text-align:left!important;padding:2rem 1.5rem 0!important;font-size:inherit!important;border-top:1px solid rgba(255,255,255,.06)!important}
html[data-theme="dark"] body.fb-blog-site footer.ws-footer{background:#080a12!important}
body.fb-blog-site footer.ws-footer .ws-footer-links a{color:#aab7ce!important;text-decoration:none!important}
body.fb-blog-site footer.ws-footer .ws-footer-links a:hover{color:#fff!important}
body.fb-blog-site footer.ws-footer .logo{color:#fff!important}
body.fb-blog-site footer.ws-footer .footer-bottom{color:#94a3b8!important}
body.fb-blog-site footer.ws-footer .footer-inner p{color:#94a3b8!important}
/* O rodapé do blog tem a mesma superfície escura da home em ambos os temas.
   A paleta editorial da página não deve sobrescrever este componente. */
html body.fb-blog-site footer.ws-footer{background:#111827!important;color:#e2e8f0!important;border-color:#334155!important}
html[data-theme="dark"] body.fb-blog-site footer.ws-footer{background:#080a12!important}
html body.fb-blog-site footer.ws-footer .ws-footer-links [style*="font-size:0.68rem"]{color:#b4c2d7!important}
html body.fb-blog-site footer.ws-footer .ws-footer-links a{color:#b9c8de!important}
html body.fb-blog-site footer.ws-footer .footer-bottom{color:#b9c8de!important}
/* The blog uses the real public home footer, in both light and dark themes. */
html body.fb-blog-site > footer.fb-blog-home-footer{background:#111827!important;color:#dae3f0!important;border-top:1px solid #334155!important;text-align:left!important;padding:3rem 1.5rem 0!important}
html[data-theme="dark"] body.fb-blog-site > footer.fb-blog-home-footer{background:#080a12!important}
html body.fb-blog-site > footer.fb-blog-home-footer .logo,
html body.fb-blog-site > footer.fb-blog-home-footer .footer-col h4{color:#f8fafc!important}
html body.fb-blog-site > footer.fb-blog-home-footer .footer-brand p,
html body.fb-blog-site > footer.fb-blog-home-footer .footer-bottom,
html body.fb-blog-site > footer.fb-blog-home-footer .footer-col a{color:#b9c8de!important}
html body.fb-blog-site > footer.fb-blog-home-footer .footer-col a:hover{color:#fff!important}
/* Keep editorial content and its footer in one full-height page column. */
html:has(body.fb-blog-site){min-height:100%;background:#111827}
body.fb-blog-site{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.fb-blog-site > header.fb-site-header,
body.fb-blog-site > .fb-blog-language{flex-shrink:0}
body.fb-blog-site > main{flex:1 0 auto;width:100%;min-width:0}
html body.fb-blog-site > footer.fb-blog-home-footer{width:100%;margin-top:auto;flex-shrink:0;clear:both;box-sizing:border-box}
/* Shared public footer: the standalone pages now use the home footer content. */
html body > footer.fb-public-footer{width:100%;box-sizing:border-box;margin-top:auto;padding:3rem 1.5rem 0;background:#111827!important;color:#dae3f0!important;border-top:1px solid #334155!important;flex-shrink:0;text-align:left}
html[data-theme="dark"] body > footer.fb-public-footer{background:#080a12!important}
html body > footer.fb-public-footer .logo,
html body > footer.fb-public-footer .footer-col h4{color:#f8fafc!important}
html body > footer.fb-public-footer .footer-brand p,
html body > footer.fb-public-footer .footer-bottom,
html body > footer.fb-public-footer .footer-col a{color:#b9c8de!important}
html body > footer.fb-public-footer .footer-col a:hover{color:#fff!important}
html body > footer.fb-public-footer .footer-bottom{border-top:0;margin-top:0}
/* The install action stays in the same right-hand position on standalone pages. */
html body .fb-install-action{position:fixed!important;left:auto!important;right:18px!important;bottom:18px!important;z-index:90!important;display:flex;align-items:center;gap:9px;padding:12px 17px;border:1px solid #e9a82a!important;border-radius:14px;background:#fbbf24!important;color:#172033!important;font:800 14px/1.3 system-ui,sans-serif;box-shadow:0 8px 24px #0004;cursor:pointer}
html body .fb-install-action:hover{background:#f59e0b!important}
html body .fb-install-action[hidden]{display:none!important}
html body:has(>.fb-consent-banner:not([hidden])) .fb-install-action{bottom:105px!important}
@media(max-width:600px){html body .fb-install-action{right:12px!important;bottom:12px!important;padding:10px 13px;font-size:13px}html body:has(>.fb-consent-banner:not([hidden])) .fb-install-action{bottom:132px!important}}
@media(max-width:620px){
 html body.fb-blog-site > footer.fb-blog-home-footer .footer-brand .badges{max-width:320px}
}
body.fb-site-institutional{min-height:100vh;display:flex;flex-direction:column}
body.fb-site-institutional header.fb-site-header .fb-chrome-nav a{color:var(--text-dim)}
body.fb-site-institutional footer.fb-public-footer{margin-top:auto}
body.fb-site-institutional .legal-page{flex:1;width:100%;color:var(--text)}
body.fb-site-institutional .legal-page p,body.fb-site-institutional .legal-page li{color:var(--text-dim)}
body.fb-site-institutional footer.ws-footer .logo{color:#fff}
body.fb-site-institutional footer.ws-footer .ws-footer-links a{color:#aab7ce}
body.fb-site-institutional footer.ws-footer .footer-bottom{color:#94a3b8}
body.fb-site-tool{min-height:100vh;display:flex;flex-direction:column}
body.fb-site-tool header.fb-site-header{flex-shrink:0;background:var(--bg-card);border-bottom:1px solid var(--border)}
body.fb-site-tool header.fb-site-header .fb-chrome-nav a{color:var(--text-dim)}
body.fb-site-tool header.fb-site-header .fb-chrome-nav a:hover{color:var(--text)!important}
body.fb-site-tool main{width:100%;flex:1}
body.fb-site-tool footer.fb-public-footer{margin-top:auto;flex-shrink:0}
body.fb-site-tool footer.ws-footer .logo{color:#fff}
body.fb-site-tool footer.ws-footer .ws-footer-links a{color:#aab7ce}
body.fb-site-tool footer.ws-footer .footer-bottom{color:#94a3b8}
/* Alguns guias antigos usavam um cartão branco fixo que escondia o texto
   ao ativar o tema escuro. Normalizamos esse cartão pelo tema atual. */
body.fb-site-tool main>section[style*="background:#f8fafc"]{background:var(--bg-card)!important;border-color:var(--border)!important;color:var(--text)!important}
body.fb-site-tool main>section[style*="background: #f8fafc"]{background:var(--bg-card)!important;border-color:var(--border)!important;color:var(--text)!important}
body.fb-site-tool main>section[style*="background:#f8fafc"] p,
body.fb-site-tool main>section[style*="background: #f8fafc"] p{color:var(--text-dim)}
@media(max-width:1150px){
 header.fb-site-header .header-inner{flex-wrap:wrap;min-height:64px;padding:12px 18px}
 header.fb-site-header .fb-chrome-menu{display:flex;margin-left:auto}
 header.fb-site-header .fb-blog-theme-toggle{margin-left:0!important}
 header.fb-site-header .fb-chrome-nav{display:none!important;order:4;width:100%;flex-basis:100%;margin:3px 0 0!important;padding:10px 0;border-top:1px solid var(--border,#30405a);align-items:stretch;justify-content:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 header.fb-site-header .fb-chrome-nav.is-open{display:grid!important}
 header.fb-site-header .fb-chrome-nav a{white-space:normal;padding:12px!important}
}
@media(max-width:400px){header.fb-site-header .fb-chrome-nav.is-open{grid-template-columns:1fr}}

/* Premium shared chrome: one consistent shell for tools, blog and legal pages. */
header.fb-site-header{position:sticky;top:0;background:color-mix(in srgb,var(--bg-card,#121d30) 91%,transparent);backdrop-filter:blur(18px) saturate(1.35);-webkit-backdrop-filter:blur(18px) saturate(1.35);transition:box-shadow .2s,border-color .2s,background .2s}
header.fb-site-header.is-scrolled{box-shadow:0 12px 34px rgba(3,8,20,.14);border-bottom-color:color-mix(in srgb,var(--border,#334155) 72%,transparent)!important}
header.fb-site-header .logo{color:var(--text,#f4f7fc);letter-spacing:-.025em}
header.fb-site-header .logo img{border-radius:9px;box-shadow:0 5px 16px rgba(244,111,91,.24)}
header.fb-site-header .fb-chrome-nav a{position:relative;font-weight:700;transition:color .17s,background .17s,transform .17s}
header.fb-site-header .fb-chrome-nav a:hover{transform:translateY(-1px)}
header.fb-site-header :is(a,button):focus-visible{outline:3px solid rgba(250,112,88,.3);outline-offset:3px}
body.fb-blog-site header.fb-site-header{background:color-mix(in srgb,var(--blog-surface,#121d30) 91%,transparent)!important}
body.fb-site-tool header.fb-site-header{background:color-mix(in srgb,var(--bg-card,#121d30) 91%,transparent)}

body.fb-site-tool>section.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--border);background:
 radial-gradient(circle at 20% 0,rgba(244,111,91,.11),transparent 36%),
 radial-gradient(circle at 82% 0,rgba(129,91,246,.09),transparent 32%),var(--bg)}
body.fb-site-tool>section.hero::after{content:'';position:absolute;left:50%;bottom:-95px;width:360px;height:160px;transform:translateX(-50%);border:1px solid rgba(244,111,91,.12);border-radius:50%;pointer-events:none}
body.fb-site-tool>section.hero>*{position:relative;z-index:1}
body.fb-site-tool>section.hero a[style*="linear-gradient"]{transition:transform .18s,box-shadow .18s,filter .18s}
body.fb-site-tool>section.hero a[style*="linear-gradient"]:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(249,115,22,.32)!important;filter:saturate(1.08)}
body.fb-site-tool .tool-seo-article{width:min(100% - 32px,820px)!important}
body.fb-site-tool .tool-seo-article :is(.art-how,.art-stat,.art-use-card,.art-faq,.art-cta,.tool-editorial-note){box-shadow:0 10px 32px rgba(15,23,42,.045)}
body.fb-site-tool .tool-seo-article :is(.art-p,.art-faq-a,.art-use-card p){text-wrap:pretty}
body.fb-site-institutional .legal-page{background:radial-gradient(circle at 50% -12%,rgba(244,111,91,.075),transparent 32%)}

footer.ws-footer .ws-footer-grid{gap:clamp(28px,5vw,70px)}
footer.ws-footer .ws-footer-links a{border-radius:7px;transition:color .16s,transform .16s,background .16s}
footer.ws-footer .ws-footer-links a:hover{transform:translateX(3px)}

.fb-scroll-top{position:fixed;right:20px;bottom:20px;z-index:80;display:grid;place-items:center;width:44px;height:44px;border:1px solid color-mix(in srgb,var(--border,#334155) 78%,transparent);border-radius:14px;background:color-mix(in srgb,var(--bg-card,#121d30) 93%,transparent);color:var(--text,#f4f7fc);box-shadow:0 12px 30px rgba(3,8,20,.2);backdrop-filter:blur(12px);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .18s,visibility .18s,transform .18s,border-color .18s}
.fb-scroll-top.is-visible{opacity:1;visibility:visible;transform:none}
.fb-scroll-top:hover{border-color:#fa7058;color:#fa7058;transform:translateY(-2px)}
.fb-scroll-top:focus-visible{outline:3px solid rgba(250,112,88,.3);outline-offset:3px}
.fb-scroll-top svg{width:19px;height:19px}

@media(max-width:1150px){
 header.fb-site-header .fb-chrome-nav{background:color-mix(in srgb,var(--bg-card,#121d30) 94%,transparent);border-radius:0 0 15px 15px}
 header.fb-site-header .fb-chrome-nav a:hover{transform:none}
}
@media(max-width:620px){
 body.fb-site-tool>section.hero{padding:1.4rem 1rem .85rem!important}
 body.fb-site-tool .tool-seo-article{width:min(100% - 24px,820px)!important;margin-top:2rem!important}
 .fb-scroll-top{right:13px;bottom:13px}
}
@media(prefers-reduced-motion:reduce){header.fb-site-header *,footer.ws-footer *,.fb-scroll-top{transition-duration:.01ms!important}}

/* Standalone tool pages: the favorite control uses the same saved list as home. */
body.fb-site-tool .fb-landing-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding-top:4px}
body.fb-site-tool .fb-landing-favorite{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px;padding:10px 15px;border:1px solid color-mix(in srgb,var(--border) 86%,#e7a54f);border-radius:13px;background:var(--bg-card);color:var(--text);font:750 .86rem/1.25 var(--font-display,inherit);box-shadow:0 4px 16px rgba(15,23,42,.055);cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
body.fb-site-tool .fb-landing-favorite:hover{border-color:#e8a745;transform:translateY(-2px)}
body.fb-site-tool .fb-landing-favorite>span:first-child{font-size:1.15rem;color:#b7a589}
body.fb-site-tool .fb-landing-favorite.is-favorite{background:color-mix(in srgb,var(--bg-card) 85%,#ffd377);border-color:#d89a36}
body.fb-site-tool .fb-landing-favorite.is-favorite>span:first-child{color:#e9a329}
body.fb-site-tool .fb-landing-view-favorites{padding:11px 6px;color:var(--accent);font-size:.83rem;font-weight:750;text-decoration:none;white-space:nowrap}
body.fb-site-tool .fb-landing-view-favorites:hover{text-decoration:underline}
body.fb-site-tool .fb-landing-actions :is(button,a):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:620px){body.fb-site-tool .fb-landing-actions{gap:8px}body.fb-site-tool .fb-landing-actions>*{max-width:100%}body.fb-site-tool .fb-landing-favorite{font-size:.78rem}}

/* Give the shared header's theme button the same finished treatment as its menu. */
header.fb-site-header .fb-blog-theme-toggle{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid var(--border,#334155)!important;border-radius:12px;background:var(--bg-surface,#1d293e)!important;color:var(--text,#f4f7fc)!important;box-shadow:none;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
header.fb-site-header .fb-blog-theme-toggle:hover{border-color:var(--accent,#fa7058)!important;transform:translateY(-1px)}
/* Reserve space for the floating install CTA when the scroll-top control appears. */
.fb-scroll-top{bottom:78px}
@media(max-width:620px){.fb-scroll-top{bottom:72px}}
