/* Shared by the public tool pages (/tools, /tools/<slug>) and the Tools menu on every public page. */
:root { --paper: #F4F4F0; --ink: #111111; --green: #077A48; --g: #0DAD69; --muted: #55565A; --hair: #D6D4CD; --card: #fff;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif; --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace; }
.tpage, .tpage *, nav.top, nav.top * { box-sizing: border-box; }
body:has(> nav.top) { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
nav.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink); }
nav.top .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 22px; }
nav.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 400 19px var(--display); text-transform: uppercase; letter-spacing: -.03em; margin-right: auto; }
nav.top .brand b { color: var(--green); font-weight: 400; }
nav.top .tile { width: 32px; height: 32px; border: 2px solid var(--ink); background: var(--ink); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; display: block; }
nav.top .tile img { width: 100%; height: 100%; display: block; }
nav.top .links { display: flex; gap: 22px; align-items: center; }
nav.top .links a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav.top .btn, .tpage .btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border: 2.5px solid var(--ink); background: var(--g); color: var(--ink);
  font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; white-space: nowrap; }
@media (max-width: 700px) { nav.top .links > a { display: none; } nav.top .wrap { gap: 12px; padding: 0 14px; }
  nav.top .brand { font-size: 16px; } nav.top .btn { height: 36px; padding: 0 10px; font-size: 11px; } }

/* tool pages */
.tpage { max-width: 1180px; margin: 0 auto; padding: 44px 24px 80px; }
.tpage.one { max-width: 880px; }
.tpage .crumb { font: 700 12px var(--mono); text-transform: uppercase; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 18px; }
.tpage .eyebrow { display: inline-block; padding: 5px 10px; border: 2px solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--g); font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.tpage .ic.big { display: grid; place-items: center; width: 56px; height: 56px; border: 2.5px solid var(--ink); background: var(--g); box-shadow: 4px 4px 0 var(--ink); margin-bottom: 18px; }
.tpage h1 { font: 400 clamp(34px, 6vw, 56px)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.03em; margin: 16px 0 14px; }
.tpage h2 { font: 400 24px var(--display); text-transform: uppercase; margin: 52px 0 14px; padding-top: 10px; border-top: 2px solid var(--ink); }
.tpage .lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 26px; }
.tpage .go { display: flex; gap: 10px; flex-wrap: wrap; }
.tpage .go input { flex: 1 1 320px; height: 52px; padding: 0 16px; border: 2.5px solid var(--ink); background: var(--card); font: inherit; min-width: 0; }
.tpage .go input:focus { outline: none; box-shadow: 4px 4px 0 var(--g); }
.tpage .go .btn { height: 52px; padding: 0 24px; }
.tpage .hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.tpage .soonbox { border: 2px solid var(--ink); background: #FFF7C2; padding: 14px 16px; }
.tpage .steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.tpage .steps li { border: 2px solid var(--ink); background: var(--card); padding: 16px; counter-increment: s; display: grid; gap: 4px; }
.tpage .steps li::before { content: "0" counter(s); font: 400 26px var(--display); color: var(--green); }
.tpage .steps span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .tpage .steps { grid-template-columns: 1fr; } .tpage { padding-top: 28px; } }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tgrid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tcard { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.tcard .ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--ink); background: #EFFAF4; }
.tcard b { display: inline; font-size: 15px; } .tcard small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.tcard.sm { align-items: center; padding: 10px 12px; } .tcard.sm .ic { width: 30px; height: 30px; }
.thumbs { display: grid; gap: 16px; margin-top: 24px; }
.thumbs figure { margin: 0; border: 2px solid var(--ink); background: var(--card); }
.thumbs img { display: block; width: 100%; height: auto; }
.thumbs figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font: 700 12px var(--mono); text-transform: uppercase; }
.err { color: #B42318; font-weight: 600; }
.tpage .soon { font: 700 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: #FFE500; border: 1px solid var(--ink); padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 420px) { nav.top .wrap > .btn { display: none; } }
body:has(> nav.top) { overflow-x: hidden; }
