/* FSG practice tools: shared shell (nav, hero, buttons, cards, footer). Every tool page loads this first. */
:root{--sun:#FFB703;--coral:#FB5607;--sky:#3A86FF;--mint:#06D6A0;--plum:#8338EC;--ink:#12100E;--ink-soft:#4A5568;--paper:#F0F4FF;--pale:#E8EFFE;--card:#FFFFFF;--border:rgba(18,16,14,0.09);--sans:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;--serif:'Fraunces',Georgia,serif;--r-md:20px;--pad:clamp(16px,5vw,60px);--navh:60px;--menuh:46px;--sidew:200px;color-scheme:light}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--sans);background:var(--paper);color:var(--ink);line-height:1.6;overflow-x:hidden;padding-top:calc(var(--navh) + var(--menuh))}
a{color:inherit;text-decoration:none}
button,select,input{font:inherit;color:inherit}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--sun);outline-offset:2px}

/* top bar: the brand */
.fsg-nav{position:fixed;top:0;left:0;right:0;z-index:200;height:var(--navh);display:flex;align-items:center;gap:18px;padding:0 var(--pad);background:rgba(240,244,255,.95);backdrop-filter:blur(16px);border-bottom:1.5px solid var(--border)}
.fsg-brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:1.02rem;letter-spacing:-.01em;flex:none}
.fsg-brand img{height:32px;width:32px;border-radius:8px;flex:none}
.fsg-brand small{display:block;font-size:.68rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);line-height:1.1}
.fsg-brand span{line-height:1.15}

/* tool menu, drawn by shell.js from TOOLS. One row under the top bar; a fixed left column from 1200px (see the end of this file). */
.fsg-menu{position:absolute;top:var(--navh);left:0;right:0;height:var(--menuh);z-index:150;background:var(--paper);border-bottom:1.5px solid var(--border)}
.fsg-menu-links{display:flex;align-items:center;gap:6px;height:100%;padding:0 var(--pad);overflow-x:auto;scrollbar-width:none}
.fsg-menu-links::-webkit-scrollbar{display:none}
.fsg-menu-links a{font-size:.85rem;font-weight:800;color:var(--ink-soft);padding:7px 12px;border-radius:100px;white-space:nowrap;flex:none}
.fsg-menu-links a:hover{color:var(--coral)}
.fsg-menu-links a[aria-current="page"]{background:var(--ink);color:#fff}

/* hero */
.fsg-hero{padding:30px var(--pad) 28px;background:var(--ink);position:relative;overflow:hidden}
.fsg-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 15% 70%,rgba(255,183,3,.14) 0%,transparent 55%),radial-gradient(ellipse at 80% 20%,rgba(58,134,255,.12) 0%,transparent 50%);pointer-events:none}
.fsg-hero-in{position:relative;z-index:1;max-width:1240px;margin:0 auto}
.fsg-eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--sun);margin-bottom:10px}
.fsg-hero h1{font-family:var(--serif);font-size:clamp(1.9rem,4vw,3rem);font-weight:900;line-height:1.05;letter-spacing:-.02em;color:#fff;margin-bottom:10px;text-wrap:balance}
.fsg-hero h1 em{font-style:italic;color:var(--sun)}
.fsg-hero p{font-size:1rem;color:rgba(255,255,255,.65);max-width:620px;line-height:1.65;margin-bottom:20px}

/* shared pieces */
.card{background:var(--card);border:1.5px solid var(--border);border-radius:var(--r-md);padding:18px}
.btn{border:1.5px solid var(--border);background:var(--card);border-radius:14px;height:44px;min-width:44px;padding:0 14px;display:inline-grid;place-items:center;font-weight:800;cursor:pointer}
.btn:hover{background:var(--pale)}
.btn[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.btn svg{width:18px;height:18px;fill:currentColor}
.tool-loading{background:var(--ink);border-radius:var(--r-md);min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:rgba(245,200,66,.7)}
.err{background:#FFF1EC;border:1.5px solid var(--coral);border-radius:var(--r-md);padding:18px;font-weight:700;display:flex;gap:14px;align-items:center;flex-wrap:wrap}

/* a plain tool page: cards in one column */
.fsg-page{max-width:860px;margin:0 auto;padding:24px var(--pad) 8px;display:flex;flex-direction:column;gap:16px}
.fsg-card-title{font-family:var(--serif);font-weight:900;font-size:1.35rem;line-height:1.15;margin-bottom:14px}
.fsg-soon h2{font-family:var(--serif);font-weight:900;font-size:1.5rem;line-height:1.15;margin:10px 0 6px}
.fsg-soon p{color:var(--ink-soft);max-width:60ch}
.btn.fsg-go{background:var(--coral);border-color:var(--coral);color:#fff;border-radius:100px;padding:0 22px}
.btn.fsg-go:hover{background:var(--coral);box-shadow:0 6px 20px rgba(251,86,7,.4)}
.fsg-soon-tag{display:inline-block;background:#FFF6DB;border:1.5px solid var(--sun);border-radius:100px;padding:3px 12px;font-size:.78rem;font-weight:800}

/* tools hub */
.fsg-hub{max-width:1240px;margin:0 auto;padding:28px var(--pad);display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.fsg-tool{display:flex;flex-direction:column;gap:8px;transition:transform .15s,box-shadow .15s}
.fsg-tool:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(18,16,14,.08)}
.fsg-tool h2{font-family:var(--serif);font-weight:900;font-size:1.35rem;line-height:1.15}
.fsg-tool p{color:var(--ink-soft);font-size:.92rem}
.fsg-tool .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:8px}
.fsg-tool .tags span{background:var(--pale);border-radius:100px;padding:3px 11px;font-size:.78rem;font-weight:700;color:var(--ink-soft)}
.fsg-tool .go{color:var(--coral);font-weight:900;font-size:.9rem}

/* ad spaces: dashed placeholders only (drawAds in shell.js). Which one shows is decided by the media queries at the end. */
.fsg-ad{flex:none;max-width:100%;display:none;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:2px dashed rgba(18,16,14,.35);border-radius:8px;background:repeating-linear-gradient(135deg,rgba(18,16,14,.035) 0 10px,transparent 10px 20px);color:var(--ink-soft);line-height:1.2;text-align:center}
.fsg-ad strong{font-weight:900;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase}
.fsg-ad span{font-size:.8rem;font-weight:700;font-variant-numeric:tabular-nums}
.fsg-ad-left{width:160px;height:600px}
.fsg-ad-wide{width:728px;height:90px}
.fsg-ad-phone{width:320px;height:50px;flex-direction:row;gap:8px}
.fsg-ad-row{display:flex;justify-content:center;padding-top:24px}
.fsg-ad-bar{display:none}

/* footer */
.fsg-foot{background:var(--ink);color:rgba(255,255,255,.55);padding:26px var(--pad);margin-top:36px;display:flex;gap:10px 22px;flex-wrap:wrap;align-items:center;font-size:.8rem}
.fsg-foot strong{font-family:var(--serif);color:#fff;font-size:1rem;margin-right:auto}
.fsg-foot a:hover{color:#fff}

@media(max-width:640px){.fsg-brand small{display:none}.fsg-nav{gap:10px}}
/* phone: the 320 x 50 space is fixed to the bottom. The bar keeps a 24px clear strip above the box so no button can sit
   closer than that, and the page gets bottom padding so the bar never covers the end of the content. */
@media(max-width:767px){
  .fsg-ad-bar{display:flex;justify-content:center;position:fixed;left:0;right:0;bottom:0;z-index:180;padding:24px 0 env(safe-area-inset-bottom,0px);background:var(--paper);border-top:1.5px solid var(--border)}
  .fsg-ad-phone{display:flex}
  body.fsg-ads-bottom{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}
@media(min-width:768px){.fsg-ad-wide{display:flex}}
/* desktop: the menu is a fixed column on the left, under the top bar; the page sits to its right */
@media(min-width:1200px){
  .fsg-ad-left{display:flex}
  body{padding-top:var(--navh);padding-left:var(--sidew)}
  .fsg-menu{position:fixed;bottom:0;right:auto;width:var(--sidew);height:auto;border-bottom:0;border-right:1.5px solid var(--border);padding:16px 18.5px 16px 20px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;scrollbar-width:none}
  .fsg-menu::-webkit-scrollbar{display:none}
  .fsg-menu-links{flex-direction:column;align-items:stretch;gap:4px;height:auto;padding:0;overflow:visible;flex:none}
  .fsg-menu-links a{padding:9px 14px;border-radius:12px;font-size:.92rem}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
