/* Tool Guru — clean professional utility theme. System fonts only. */
:root{
  --blue:#1d4ed8; --blue-dark:#1e40af; --blue-light:#dbeafe;
  --teal:#0d9488; --teal-light:#ccfbf1;
  --ink:#0f172a; --muted:#475569; --line:#e2e8f0;
  --bg:#ffffff; --bg-soft:#f8fafc; --card:#ffffff;
  --radius:14px; --shadow:0 1px 2px rgba(15,23,42,.06),0 8px 24px -12px rgba(29,78,216,.18);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1140px;margin:0 auto;padding:0 20px}

/* ---------- header ---------- */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;min-height:66px;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.25rem;color:var(--ink)}
.brand:hover{text-decoration:none}
.brand-logo{width:36px;height:36px;flex:none}
.brand .guru{color:var(--blue)}
.site-nav{display:flex;gap:4px;flex-wrap:wrap}
.site-nav a{color:var(--muted);font-weight:600;font-size:.95rem;padding:8px 12px;border-radius:8px}
.site-nav a:hover{background:var(--bg-soft);color:var(--ink);text-decoration:none}
.site-nav a.active{background:var(--blue-light);color:var(--blue-dark)}

/* ---------- mobile drawer nav ---------- */
.nav-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:44px;height:44px;flex:none;background:#fff;border:1.5px solid var(--line);border-radius:10px;cursor:pointer;padding:0}
.nav-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:var(--ink)}
.nav-toggle:hover{border-color:var(--blue)}
.drawer-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s linear .25s;z-index:90}
.drawer-overlay.show{opacity:1;visibility:visible;transition:opacity .25s ease}
.drawer{position:fixed;top:0;right:0;height:100vh;height:100dvh;width:min(320px,86vw);background:#fff;z-index:100;transform:translateX(105%);visibility:hidden;transition:transform .3s ease,visibility 0s linear .3s;display:flex;flex-direction:column;box-shadow:-12px 0 32px rgba(15,23,42,.18)}
.drawer.open{transform:none;visibility:visible;transition:transform .3s ease}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--line)}
.drawer-head .brand{font-size:1.1rem}
.drawer-close{width:40px;height:40px;flex:none;border:1.5px solid var(--line);background:#fff;border-radius:10px;font-size:1.5rem;line-height:1;color:var(--muted);cursor:pointer;padding:0}
.drawer-close:hover{color:var(--ink);border-color:var(--blue)}
.drawer-nav{padding:12px 18px 28px;overflow-y:auto;display:flex;flex-direction:column}
.drawer-nav a{color:var(--ink);font-weight:600;padding:11px 12px;border-radius:10px}
.drawer-nav a:hover{background:var(--bg-soft);text-decoration:none}
.drawer-nav a.active{background:var(--blue-light);color:var(--blue-dark)}
.drawer-sep{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);padding:18px 12px 6px}
body.drawer-open{overflow:hidden}

/* ---------- hero ---------- */
.hero{background:linear-gradient(135deg,#1e40af 0%,#1d4ed8 55%,#0d9488 130%);color:#fff;padding:64px 0 56px;text-align:center}
.hero h1{font-size:clamp(1.9rem,4.5vw,3rem);letter-spacing:-.02em;line-height:1.15;margin-bottom:12px}
.hero p.sub{font-size:1.1rem;opacity:.92;max-width:640px;margin:0 auto 26px}
.hero-search{max-width:560px;margin:0 auto;position:relative}
.hero-search input{width:100%;padding:15px 20px 15px 48px;border:none;border-radius:999px;font-size:1.02rem;box-shadow:0 10px 30px -10px rgba(0,0,0,.35)}
.hero-search input:focus{outline:3px solid rgba(255,255,255,.5)}
.hero-search .mag{position:absolute;left:18px;top:50%;transform:translateY(-50%);font-size:1.2rem;opacity:.6}
.hero-stats{display:flex;gap:28px;justify-content:center;margin-top:26px;flex-wrap:wrap;font-size:.95rem;opacity:.95}
.hero-stats b{font-size:1.25rem;display:block}

/* ---------- category pills ---------- */
.cat-row{display:flex;gap:10px;flex-wrap:wrap;margin:30px 0 6px;align-items:center}
.cat-row .label{font-weight:700;color:var(--muted);font-size:.9rem;text-transform:uppercase;letter-spacing:.06em;margin-right:6px}
.pill{border:1.5px solid var(--line);background:#fff;color:var(--muted);font-weight:600;font-size:.92rem;padding:8px 16px;border-radius:999px;cursor:pointer;transition:all .15s}
.pill:hover{border-color:var(--blue);color:var(--blue)}
.pill.on{background:var(--blue);border-color:var(--blue);color:#fff}

/* ---------- tool grid ---------- */
.section{padding:34px 0 10px}
.section h2{font-size:1.5rem;letter-spacing:-.01em;margin-bottom:4px}
.section .kicker{color:var(--teal);font-weight:800;font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px}
.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;margin:20px 0 40px}
.tool-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column;gap:10px}
.tool-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px -12px rgba(29,78,216,.3);text-decoration:none}
.tool-card .icon{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,var(--blue-light),var(--teal-light));display:flex;align-items:center;justify-content:center;font-size:1.5rem}
.tool-card h3{font-size:1.08rem;color:var(--ink);line-height:1.35}
.tool-card p{font-size:.92rem;color:var(--muted);flex:1}
.tool-card .tag{align-self:flex-start;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--blue-dark);background:var(--blue-light);padding:4px 10px;border-radius:999px}
.tool-card .go{font-weight:700;font-size:.92rem;color:var(--blue)}
.no-results{display:none;text-align:center;color:var(--muted);padding:40px 0}

/* ---------- tool page ---------- */
.crumbs{font-size:.88rem;color:var(--muted);margin:22px 0 6px}
.crumbs a{color:var(--muted)}
.tool-head{margin:6px 0 20px}
.tool-head h1{font-size:clamp(1.6rem,3.5vw,2.3rem);letter-spacing:-.02em;line-height:1.2}
.tool-head .lede{color:var(--muted);font-size:1.05rem;max-width:760px;margin-top:8px}
.tool-shell{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);padding:26px;margin:0 0 34px}
.tool-shell h2.shell-title{font-size:1.15rem;margin-bottom:16px;color:var(--blue-dark)}
.field{margin-bottom:14px}
.field label{display:block;font-weight:600;font-size:.93rem;margin-bottom:6px}
.field input[type=number],.field input[type=text],.field input[type=date],.field select,.field textarea{width:100%;padding:11px 13px;border:1.5px solid var(--line);border-radius:10px;font-size:1rem;font-family:var(--font);background:#fff}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-light)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field .hint{font-size:.85rem;color:var(--muted);margin-top:4px}
.btn{display:inline-block;background:var(--blue);color:#fff;font-weight:700;font-size:1rem;padding:12px 28px;border:none;border-radius:10px;cursor:pointer;transition:background .15s}
.btn:hover{background:var(--blue-dark)}
.btn.teal{background:var(--teal)}
.btn.teal:hover{background:#0b7c72}
.btn.ghost{background:#fff;color:var(--blue);border:1.5px solid var(--blue)}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.result{background:#fff;border:1.5px solid var(--teal);border-radius:12px;padding:20px;margin-top:18px;display:none}
.result.show{display:block}
.result .big{font-size:2rem;font-weight:800;color:var(--blue-dark);letter-spacing:-.02em}
.result .rowline{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px dashed var(--line);font-size:.97rem}
.result .rowline:last-child{border-bottom:none}
.result .rowline b{color:var(--ink)}
canvas.qr{display:block;margin:14px auto;image-rendering:pixelated;border:8px solid #fff;box-shadow:var(--shadow);border-radius:8px;max-width:100%}
pre.code{background:#0f172a;color:#e2e8f0;padding:16px;border-radius:10px;overflow:auto;font-family:var(--mono);font-size:.88rem;line-height:1.5}

/* article content */
.prose{max-width:800px}
.prose h2{font-size:1.4rem;margin:30px 0 10px;letter-spacing:-.01em}
.prose h3{font-size:1.12rem;margin:22px 0 8px}
.prose p{margin:0 0 14px;color:#1e293b}
.prose ul,.prose ol{margin:0 0 16px 22px;color:#1e293b}
.prose li{margin-bottom:7px}
.prose .steps{counter-reset:step;list-style:none;margin-left:0}
.prose .steps li{counter-increment:step;position:relative;padding-left:44px;margin-bottom:14px}
.prose .steps li::before{content:counter(step);position:absolute;left:0;top:1px;width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800;font-size:.9rem;display:flex;align-items:center;justify-content:center}
.faq{margin:26px 0}
.faq h2{margin-bottom:14px}
.faq-item{border:1px solid var(--line);border-radius:12px;margin-bottom:12px;overflow:hidden;background:#fff}
.faq-item summary{padding:15px 18px;font-weight:700;cursor:pointer;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::before{content:"+";color:var(--blue);font-weight:800;margin-right:10px}
.faq-item[open] summary::before{content:"–"}
.faq-item .a{padding:0 18px 16px;color:#1e293b}
.tips{background:var(--teal-light);border-left:4px solid var(--teal);border-radius:0 12px 12px 0;padding:16px 20px;margin:24px 0}
.tips h3{color:#0b5e56;margin-bottom:8px;font-size:1.05rem}
.related{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin:34px 0}
.related h2{font-size:1.2rem;margin-bottom:12px}
.related ul{list-style:none;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.related a{font-weight:600}

/* ---------- policy pages ---------- */
.page-head{margin:30px 0 18px}
.page-head h1{font-size:clamp(1.7rem,4vw,2.4rem);letter-spacing:-.02em}
.page-body{max-width:800px;padding-bottom:50px}
.page-body h2{font-size:1.3rem;margin:28px 0 10px}
.page-body p,.page-body li{color:#1e293b;margin-bottom:10px}
.page-body ul{margin-left:22px}

/* ---------- 404 ---------- */
.error-wrap{text-align:center;padding:90px 20px;max-width:600px;margin:0 auto}
.error-code{font-size:clamp(5rem,20vw,9rem);font-weight:800;color:transparent;-webkit-text-stroke:3px var(--blue);line-height:1}
.error-wrap h1{font-size:1.8rem;margin:12px 0}
.error-wrap p{color:var(--muted);margin-bottom:26px}

/* ---------- footer ---------- */
.site-footer{background:#0f172a;color:#cbd5e1;margin-top:60px;padding:44px 0 26px}
.site-footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px;margin-bottom:30px}
.site-footer .brand{color:#fff}
.site-footer h4{color:#fff;font-size:.95rem;margin-bottom:12px}
.site-footer a{color:#94a3b8;font-size:.93rem;display:block;margin-bottom:8px}
.site-footer a:hover{color:#fff}
.site-footer .bottom{border-top:1px solid #1e293b;padding-top:20px;font-size:.85rem;color:#64748b;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* ---------- responsive ---------- */
@media(max-width:860px){
  .site-nav{display:none}
  .nav-toggle{display:inline-flex}
  .site-header .wrap{min-height:60px}
}
@media(max-width:760px){
  .field-row{grid-template-columns:1fr}
  .site-footer .cols{grid-template-columns:1fr}
  .tool-shell{padding:18px}
  .hero{padding:44px 0 40px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.site-footer .fhead{color:#fff;font-size:.95rem;margin:1.33em 0 12px;font-weight:700}

/* Compact sticky header on scroll - mobile (added 2026-10-02) */
@media (max-width:860px){
.site-header{transition:padding .22s ease,box-shadow .22s ease}
.site-header.scrolled{padding-top:8px!important;padding-bottom:8px!important;box-shadow:0 2px 14px rgba(0,0,0,.14)}
.site-header.scrolled img{max-height:30px!important;width:auto}
.site-header.scrolled .site-name{font-size:1.05rem!important}
}
