/* ─────────────────────────────────────────────────────────────
   store-chrome.css — Ternion Apparel storefront chrome (Phase C)

   The storefront runs on a licensee's subdomain, so it follows the brand
   hierarchy in docs/foundations.md §7: TernionOS owns the type system,
   spacing, components and status colours; the TENANT owns the accent
   (--brand / --brand-ink) and the logo, which store-chrome.js sets on
   :root from /api/site-brand. Nothing here is Apparel2order's.

   The copied pages were written against a small set of variables
   (--ink, --paper, --cream, --accent, --muted, --line …). Those names are
   kept and REDEFINED here in terms of the platform tokens, so page-level
   styles re-skin without being rewritten. Production colours are never
   touched by any of this.
   ───────────────────────────────────────────────────────────── */
/* Look & feel: the SelectBlanks catalog (Mr J, Oct 5, 2026) — quiet off-white page, white cards,
   hairline borders, 12 px radius, system type, ink-dark buttons. The tenant's --brand appears
   lightly (name, focus rings, hover borders, active state), never as a flood of colour. */
:root {
  --ink:#141414; --ink-2:#232323;
  --muted:#6b6b6b;
  --line:#e4e4e1; --line-2:#d6d6d2;
  --bg:#fbfbfa; --card:#ffffff; --shot:#ffffff;
  --radius:12px; --r-ctl:8px;

  /* tenant brand — defaults until store-chrome.js applies the tenant's own */
  --brand:#2b2b2b;
  --brand-ink:#ffffff;
  --brand-soft:color-mix(in srgb, var(--brand) 8%, white);

  /* platform tokens kept for pages that reference them */
  --tos-bg:var(--bg); --tos-panel:var(--card); --tos-panel2:#f4f4f2;
  --tos-line:var(--line); --tos-line2:var(--line-2);
  --tos-fg:var(--ink); --tos-muted:var(--muted); --tos-faint:#9a9a96;
  --tos-ok:#1E9E5A; --tos-warn:#B7790C; --tos-bad:#a3312a;
  --tos-display:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --tos-body:var(--tos-display);
  --tos-mono:ui-monospace,Menlo,Consolas,monospace;
  --tos-r-card:var(--radius); --tos-r-control:var(--r-ctl);

  /* names the copied pages use, mapped onto this look */
  --paper:var(--card); --cream:var(--card); --cream-2:var(--line);
  --accent:var(--ink); --accent-2:var(--ink);   /* pages stay monochrome; brand lives in the chrome */
  --mono:var(--tos-mono);
}

*, *::before, *::after { box-sizing:border-box; }
html, body { margin:0; }
body { background:var(--bg); color:var(--ink); font:16px/1.55 var(--tos-body); -webkit-font-smoothing:antialiased; }
h1, h2, h3 { font-family:var(--tos-display); letter-spacing:-0.015em; font-weight:600; }
a { color:inherit; }
.mono { font-family:var(--tos-mono) !important; }

/* ── top bar ───────────────────────────────────────────── */
.store-nav { position:sticky; top:0; z-index:50; background:var(--card); border-bottom:1px solid var(--line); }
.store-nav .bar { max-width:1220px; margin:0 auto; padding:0 20px; height:60px; display:flex; align-items:center; gap:14px; }
.store-nav .store-logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); min-width:0; }
.store-nav .store-logo img { max-height:34px; max-width:170px; width:auto; display:block; }
.store-nav .store-logo .word { font-size:17px; font-weight:650; letter-spacing:-.01em; color:var(--brand); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.store-nav .store-logo .mark { width:28px; height:28px; border-radius:7px; background:var(--brand); color:var(--brand-ink); display:grid; place-items:center; font-weight:700; font-size:13px; }
.store-nav .store-links { display:flex; gap:2px; margin-left:10px; }
.store-nav .store-links a { font-size:14px; font-weight:500; color:var(--muted); text-decoration:none; padding:7px 11px; border-radius:var(--r-ctl); }
.store-nav .store-links a:hover { color:var(--ink); background:#f4f4f2; }
.store-nav .store-links a[aria-current="page"] { color:var(--ink); font-weight:600; }
.store-nav .store-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
.store-nav .btn { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:var(--r-ctl); font:inherit; font-size:14px; font-weight:600; text-decoration:none; border:1px solid var(--line); color:var(--ink); background:var(--card); cursor:pointer; }
.store-nav .btn:hover { border-color:var(--ink); }
.store-nav .btn.primary { background:var(--ink); color:#fff; border-color:var(--ink); }
.store-nav .btn.primary:hover { background:#000; }
.store-nav .btn.quiet { border-color:transparent; color:var(--muted); }
.store-nav .btn.quiet:hover { color:var(--ink); }
.store-nav .menu-btn { display:none; margin-left:auto; width:38px; height:38px; border:1px solid var(--line); border-radius:var(--r-ctl); background:var(--card); cursor:pointer; }
@media (max-width: 900px) {
  .store-nav .store-links, .store-nav .store-actions { display:none; }
  .store-nav .menu-btn { display:inline-grid; place-items:center; }
  .store-nav.open .store-links, .store-nav.open .store-actions {
    display:flex; flex-direction:column; align-items:stretch; position:absolute; left:0; right:0;
    background:var(--card); border-bottom:1px solid var(--line); padding:12px 16px; gap:6px;
  }
  .store-nav.open .store-links { top:60px; } .store-nav.open .store-actions { top:auto; }
}

/* ── page header: a small headline, like the SelectBlanks hero ── */
.store-head { max-width:1220px; margin:0 auto; padding:28px 20px 0; }
.store-head .eyebrow { display:none; }
.store-head h1 { margin:0 0 6px; font-size:27px; font-weight:600; letter-spacing:-.015em; line-height:1.2; }
.store-head h1 .em { color:var(--ink); }
.store-head .sub { margin:0 0 18px; color:var(--muted); font-size:15px; max-width:62ch; }
.store-head .aside { font-size:14px; color:var(--muted); margin:0 0 6px; }
.store-head .aside a { color:var(--ink); font-weight:600; text-decoration:underline; text-underline-offset:2px; }

/* ── footer ─────────────────────────────────────────────── */
.store-footer { margin-top:48px; border-top:1px solid var(--line); background:var(--bg); }
.store-footer .inner { max-width:1220px; margin:0 auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:22px 20px; font-size:12px; color:var(--muted); }
.store-footer .inner a { color:var(--muted); text-decoration:none; }
.store-footer .inner a:hover { color:var(--ink); }
.store-footer .links { display:flex; gap:16px; flex-wrap:wrap; }
.store-footer .powered a { color:var(--ink); }

/* ── shared controls the pages already use, restyled ───── */
button, input, select, textarea { font-family:inherit; }
