/* site.css — the shared chrome for every pokesize page, linked by page_head() in lib/web.php right
   after shared-base.css so these rules win. Page-specific rules stay in each page's own <style>. */
@font-face { font-family:'Bricolage Grotesque'; font-style:normal; font-weight:200 800; font-stretch:75% 100%;
  font-display:swap; src:url(/fonts/bricolage-grotesque-latin.woff2) format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:100 800; font-display:swap;
  src:url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); }
:root {
  /* The brief (design/Pokesize.com Design Brief.zip, "Pokesize Home", 2026-10-13): a mint field with a
     faint vertical pinstripe, deep-green ink for text, borders and primary buttons, coral as the one
     accent (the 1.00 marker, the XXL pill, hover), cards on near-white with a 1.5px ink border and a
     hard offset shadow, Bricolage Grotesque for words and JetBrains Mono for every number. */
  --field:#c6ebe2; --ink:#0f2f2b; --panel:#f6fbf9; --panel2:#e7f4ef; --card2:#e7f4ef;
  --rule:rgba(15,47,43,.15); --rule2:rgba(15,47,43,.35); --line:#0f2f2b;
  --fg:#0f2f2b; --dim:#3f5f5a; --faint:#46635e;
  --coral:#e0583f; --coral-soft:#f3b9a9; --mint2:#9fd3c6; --mint3:#b4ddd3;
  /* the older names, kept so the page styles that reference them need no edit: accent = ink */
  --teal:#0f2f2b; --teal-ink:#0f2f2b; --teal-soft:#e7f4ef;
  /* the rail: position already says bigger/smaller (it runs out from the 1.00 line), so both
     poles are ink-family; the marker at 1.00 is the coral. */
  --big:#0f2f2b; --small:#5f8f86; --mid:#dcece6; --tick:#9fc9bd;
  --big-ink:#0f2f2b; --small-ink:#2f6a60; --alert:#c8452e; --live:#1f7a5c;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; color:var(--fg); min-height:100vh; min-height:100dvh; display:flex; flex-direction:column;
  background:var(--field) repeating-linear-gradient(90deg,rgba(15,47,43,.06) 0 1px,transparent 1px 80px);
  font:16px/1.5 'Bricolage Grotesque',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased; font-variant-numeric:tabular-nums; }
a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--rule2); text-underline-offset:3px; }
a:hover { color:var(--coral); text-decoration-color:var(--coral); }
:focus-visible { outline:2px solid var(--coral); outline-offset:2px; }
.mono, .rk, .rv, .sv, .mt, .tp, .dx, .xz, .pts, .cf, .scale, .chips .c, .qk .c, .pill { font-family:var(--mono); }

/* --- header: logo left, doors right. Every target is 44px tall. */
.top { background:transparent; }
.top.alone { border-bottom:0; }
.top .in { max-width:1200px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:10px; min-height:72px; }
.brand { text-decoration:none; padding:8px 0; display:inline-flex; align-items:center; }
.brand img { display:block; height:34px; width:auto; }
@media (min-width:600px) { .brand img { height:40px; } }
.who { margin-left:auto; display:flex; align-items:center; gap:6px; font-size:15px; color:var(--dim); }
.who .nm { max-width:9ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.who form { margin:0; }
.lnk { display:inline-flex; align-items:center; min-height:44px; width:auto; margin:0; padding:0 10px; font-size:15px; white-space:nowrap;
  font-weight:600; color:var(--ink); text-decoration:none; background:none; border:0; border-radius:999px; cursor:pointer; font-family:inherit; }
.lnk:hover { color:var(--coral); }
.lnk.out { border:1.5px solid var(--ink); padding:0 14px; min-height:44px; }
.lnk.out:hover { background:var(--ink); color:var(--field); }
.tn { display:block; width:48px; height:48px; flex:0 0 auto; }
.tn img { display:block; width:48px; height:48px; border-radius:12px; border:1px solid var(--rule2); background:var(--panel2); object-fit:cover; }
/* The tabs are a card like everything below them (ink border, hard offset shadow, rounded), not
   a ruled strip: a pill with the current tab filled in ink. The sticky wrapper is transparent and
   lets taps through, so only the pill itself floats over the page while scrolling. */
.tabbar { position:sticky; top:0; z-index:5; padding:8px 20px 4px; pointer-events:none; }
.tabs { max-width:30rem; margin:0 auto; padding:4px; display:flex; gap:4px; pointer-events:auto;
  background:var(--panel); border:1.5px solid var(--ink); border-radius:999px; box-shadow:3px 3px 0 var(--ink); }
.tabs a { flex:1 1 0; text-align:center; min-height:44px; display:flex; align-items:center; justify-content:center; border-radius:999px;
  font-size:15px; font-weight:600; color:var(--dim); text-decoration:none; }
.tabs a.on { background:var(--ink); color:var(--field); font-weight:700; }
.tabs a:not(.on):hover { color:var(--coral); }

.wrap { max-width:34rem; margin:0 auto; padding:24px 20px 40px; flex:1 0 auto; width:100%; }
.wrap.wide { max-width:1180px; }  /* the data pages, which reflow into columns on a desktop */
h1 { font-size:30px; line-height:1; margin:0 0 8px; letter-spacing:-.035em; font-weight:800; text-wrap:balance; }
h2 { font-size:22px; margin:28px 0 10px; font-weight:800; letter-spacing:-.03em; line-height:1.1; }
p { margin:0 0 14px; }
p.sub { color:var(--dim); font-size:15px; margin:0 0 18px; }
.note { color:var(--dim); font-size:14px; line-height:1.6; }
.note strong { color:var(--fg); font-weight:600; }
.card { background:var(--panel); border:1.5px solid var(--ink); border-radius:20px; padding:18px; box-shadow:4px 4px 0 var(--ink); }
.msg { border-radius:12px; padding:12px 14px; margin:0 0 16px; font-size:14px; border:1.5px solid var(--ink); }
.msg.ok { background:#dff3ea; }
.msg.bad { background:#fbe3dd; }

label { display:block; font-size:14px; color:var(--dim); margin:14px 0 6px; font-weight:600; }
.card > label:first-of-type { margin-top:2px; }
label .hint { color:var(--faint); font-weight:400; }
input[type=text], input[type=email], input[type=password], select { width:100%; min-height:48px; padding:11px 14px;
  background:#fff; border:1.5px solid var(--ink); border-radius:12px; color:var(--fg); font-size:16px; font-family:inherit; }
input[type=file] { width:100%; min-height:56px; padding:14px; background:var(--panel2); border:1.5px dashed var(--ink);
  border-radius:12px; color:var(--fg); font-size:14px; }
/* the browser's own grey button inside the drop box, made one of ours (a ghost pill) */
input[type=file]::file-selector-button { min-height:44px; margin-right:12px; padding:0 18px; border:1.5px solid var(--ink);
  border-radius:999px; background:var(--panel); color:var(--ink); font:600 15px/1 inherit; font-family:inherit; cursor:pointer; }
input[type=file]::file-selector-button:hover { background:var(--ink); color:var(--field); }
button { width:100%; min-height:50px; margin-top:16px; padding:12px 22px; font-size:17px; font-weight:600; border:1.5px solid var(--ink);
  border-radius:999px; background:var(--ink); color:var(--field); cursor:pointer; font-family:inherit; }
button:hover { background:var(--coral); border-color:var(--coral); color:#fff; }
button.ghost { background:var(--panel); color:var(--ink); }
button.ghost:hover { background:var(--ink); color:var(--field); border-color:var(--ink); }
button:active { transform:translate(1px,1px); }
button[disabled] { opacity:.5; cursor:default; }

/* --- the rail: 1.00 is the coral midline, the four tier cutoffs are hairlines on the track. */
.rail { position:relative; display:block; height:8px; border-radius:4px; background:var(--mid);
  background-image:
    linear-gradient(90deg,#0000 calc(25% - 1px),var(--tick) calc(25% - 1px),var(--tick) 25%,#0000 25%),
    linear-gradient(90deg,#0000 calc(37.5% - 1px),var(--tick) calc(37.5% - 1px),var(--tick) 37.5%,#0000 37.5%),
    linear-gradient(90deg,#0000 calc(50% - 1px),var(--coral) calc(50% - 1px),var(--coral) calc(50% + 1px),#0000 calc(50% + 1px)),
    linear-gradient(90deg,#0000 calc(62.5% - 1px),var(--tick) calc(62.5% - 1px),var(--tick) 62.5%,#0000 62.5%),
    linear-gradient(90deg,#0000 calc(75% - 1px),var(--tick) calc(75% - 1px),var(--tick) 75%,#0000 75%);
  overflow:hidden; }
.rail i { position:absolute; top:0; bottom:0; left:calc(var(--a) * 1%); width:calc((var(--b) - var(--a)) * 1%); background:var(--big); border-radius:4px; }
.rail.lo i { background:var(--small); }
.rail.rng i { background:repeating-linear-gradient(115deg,var(--big) 0 3px,#0000 3px 7px); box-shadow:inset 0 0 0 1px var(--big); border-radius:2px; }
.rail.rng.lo i { background:repeating-linear-gradient(115deg,var(--small) 0 3px,#0000 3px 7px); box-shadow:inset 0 0 0 1px var(--small); }
.rail.dead { opacity:.45; }
.scale { position:relative; display:block; margin:0 0 2px; height:15px; font-size:12px; color:var(--faint); }
.scale span { position:absolute; top:0; transform:translateX(-50%); white-space:nowrap; }

/* --- tier pills: mono, small, the design's tier bands. XXL is the one coral. */
.pill { display:inline-block; padding:2px 7px; border-radius:5px; font-size:12px; font-weight:600; border:1.5px solid var(--ink);
  color:var(--ink); white-space:nowrap; background:var(--panel); }
.p-XXL { background:var(--coral); border-color:var(--coral); color:#fff; }
.p-XL  { background:var(--coral-soft); border-color:var(--coral-soft); }
.p-none{ background:#00000000; border-color:var(--rule2); color:var(--dim); }
.p-XS  { background:var(--mint3); border-color:var(--mint3); }
.p-XXS { background:var(--mint2); border-color:var(--mint2); }
.p-nil { color:var(--faint); border-style:dashed; border-color:var(--rule2); background:none; }
.pill.ghost { background:none; font-weight:500; }
.to { font-size:13px; color:var(--faint); padding:0 4px; }
.flag { display:inline-block; font-size:13px; color:var(--alert); padding:0 6px 0 0; }
.cf { font-size:12px; color:var(--faint); }
.cf-bad { color:var(--alert); }

footer.foot { background:var(--ink); color:var(--field); margin-top:32px; padding:18px 20px; font-family:var(--mono); font-size:12px; }
footer.foot .in { max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; opacity:.85; }
footer.foot a { color:var(--field); }
footer.foot a:hover { color:var(--coral-soft); }

/* Desktop density: a mouse does not need 44px targets or phone spacing. */
@media (min-width:940px) {
  .top .in { min-height:64px; }
  .tabs a { min-height:36px; font-size:14px; }
  .wrap { padding:16px 20px 40px; }
  h1 { font-size:28px; margin:0 0 6px; }
  p.sub { margin:0 0 12px; font-size:14px; }
  .tn, .tn img { width:36px; height:36px; }
  .tn img { border-radius:8px; }
  .card { padding:16px; }
  footer.foot { margin-top:24px; padding:14px 20px; }
}
@media (prefers-reduced-motion:reduce) { * { transition:none !important; animation:none !important; } }
