/* Tinker Tally public pages — "Quiet Ledger" shared layer.
   Loaded by every public (index-*) page AFTER assets/css/styles.css, and
   before the page's own <style>. Holds only what the pages share: tokens,
   the nav bar, buttons, section labels and the card surface. Anything
   specific to one page stays in that page.

   Scoped to the public site on purpose — the client and admin apps use
   styles.css alone and keep their own look. Pair each page with the
   Schibsted Grotesk <link> in its <head> (display face for headlines).

   Rules of the system:
   - primary buttons are emerald 500 (--ob-btn), the original button
     colour, restored 15 Sep 2026 at Tony's request; navy 700 fills
     chosen states, headlines and the dark bands;
   - otherwise emerald marks data — figures, ticks, labels, dots;
   - hairlines separate things; the layered --ob-object shadow is reserved
     for the one card on a page that stands in for the product or the task
     (a form, a plan card, a walkthrough tile);
   - the page ground is the flat emerald 100 wash (15 Sep 2026, replacing
     white), so white is the "object" colour: cards, forms and bands that
     need to stand apart are white on it. Lines drawn ON the ground use
     --ob-ground-line (a grey-green that doesn't look dusty on green);
     lines inside white cards keep --ob-line. No glows, no gradients. */
:root{
  --ob-display:'Schibsted Grotesk',var(--font-sans);
  --ob-paper:#e7f5ee;        /* page ground: emerald 100 */
  --ob-ground-line:#c6e0d2;  /* hairline on the ground */
  --ob-ink:#1a2030;
  --ob-muted:#5a6478;
  --ob-line:#e3e6ec;         /* hairline inside white cards */
  --ob-field-line:#d5dae4;
  --ob-navy:#1b2a4a;
  --ob-navy-deep:#12203c;
  --ob-btn:#2fa36b;          /* primary button fill: emerald 500, the original button colour */
  --ob-btn-hover:#23895a;
  --ob-mint:#e7f5ee;
  --ob-em7:#1c7d52;
  --ob-em5:#2fa36b;
  --ob-em-on-navy:#7fd2a7;   /* emerald that holds contrast on navy */
  --ob-radius:10px;
  --ob-nav-h:68px;
  --ob-gutter:clamp(20px,5vw,56px);
  --ob-object:0 0 0 1px rgba(18,32,60,.06),0 1px 2px rgba(18,32,60,.07),0 4px 8px rgba(18,32,60,.04),0 14px 24px rgba(18,32,60,.05),0 34px 52px rgba(18,32,60,.07);
}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{background:var(--ob-paper);color:var(--ob-ink);font-family:var(--font-sans);font-size:16px;line-height:1.6}
:focus-visible{outline:2px solid var(--tt-blue-500);outline-offset:3px}

.ob-inner{max-width:1180px;margin:0 auto;padding-inline:var(--ob-gutter)}

/* Small uppercase section label with an emerald dot, pinned to the first
   line so a label that wraps on a phone keeps its dot by the opening word. */
.ob-label{
  display:inline-flex;align-items:flex-start;gap:9px;margin:0;
  font-family:var(--font-mono);font-size:12px;font-weight:500;line-height:1.6;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ob-navy);
}
.ob-label::before{content:"";flex:none;width:7px;height:7px;margin-top:calc(.8em - 3.5px);border-radius:50%;background:var(--ob-em5)}

/* --- Buttons ------------------------------------------------------------ */
.ob-btn{
  display:inline-flex;align-items:center;gap:8px;font-family:var(--font-sans);font-weight:600;
  font-size:15px;line-height:1.2;padding:13px 20px;border-radius:var(--ob-radius);
  text-decoration:none;white-space:nowrap;border:1px solid transparent;cursor:pointer;
  transition:background var(--dur-fast) var(--ease-standard),border-color var(--dur-fast) var(--ease-standard);
}
.ob-btn:hover{text-decoration:none}
.ob-btn-primary{background:var(--ob-btn);color:#fff;box-shadow:0 1px 2px rgba(18,32,60,.18),inset 0 1px 0 rgba(255,255,255,.1)}
.ob-btn-primary:hover{background:var(--ob-btn-hover);color:#fff}
.ob-btn-secondary{background:transparent;color:var(--ob-navy);border-color:rgba(27,42,74,.28)}
.ob-btn-secondary:hover{border-color:var(--ob-navy);color:var(--ob-navy)}
.ob-btn-sm{padding:9px 15px;font-size:14px}

/* --- Nav ------------------------------------------------------------------ */
.ob-nav{
  position:sticky;top:0;z-index:20;height:var(--ob-nav-h);
  background:rgba(231,245,238,.9);border-bottom:1px solid var(--ob-ground-line);
  -webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);
}
.ob-nav .ob-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
.ob-brand img{height:40px;width:auto;display:block}
.ob-nav-actions{display:flex;align-items:center;gap:10px}

/* --- Card (the one lifted surface on a page) ------------------------------ */
.ob-card{background:#fff;border:1px solid var(--ob-line);border-radius:12px;box-shadow:var(--ob-object);padding:32px}

@media (max-width:560px){
  :root{--ob-nav-h:60px}
  .ob-brand img{height:32px}
  .ob-nav-actions{gap:8px}
  .ob-nav .ob-btn-sm{padding:8px 12px;font-size:13.5px}
  .ob-card{padding:24px 20px}
}
