/* OS Author v2.44: the warm theme, loaded last. Inspired by Mindsmith: a cream canvas, warm ink and warm grey lines,
   one friendly sans-serif (Figtree) with bold, tight headings, soft rounded cards, and a near-black primary button
   whose arrow square carries the brand colour (the institution's logo colour on its pages).
   Everything here only changes tokens and type, so the layout rules in the other files stay as they are. */

/* ---------- the palette, for every surface: studio, Create page, Guided build, hub, learner pages, shop ---------- */
:root.calm{
  --bg:#f6f4ef; --panel:#ffffff; --sunk:#efece5; --ink:#1d1b18; --muted:#6a645a; --faint:#9a9488; --line:#e8e3da; --line-2:#ddd6ca;
  --blue:#1d1b18; --blue-2:#000000; --blue-soft:#efece5;
}
:root .ez,:root .ez-ck,:root .shp-fix,:root .gb,:root .bsp,:root .pt,:root .pt-modal,:root .si,:root .shpop{
  --paper:#f6f4ef; --surface:#ffffff; --surface-sunk:#efece5; --hairline:#e8e3da; --control-line:#8a8478;
  --ink:#1d1b18; --ink-muted:#6a645a; --primary:#1d1b18; --primary-hover:#35322c;
  --font-display:var(--font-ui,Figtree,"Segoe UI",system-ui,sans-serif);
}
:root .lc{--paper:#f6f4ef;--sunk:#efece5;--line:#e8e3da;--ink:#1d1b18;--mut:#6a645a}
/* the tenant colour stays as the accent (portal.js sets --brand on .pt); the studio keeps OS Author's teal */

/* ---------- type: one sans-serif, bold and tight for headings ---------- */
:root .pt h1,:root .ez h1,:root .gb h1,:root .bsp h1,:root .lc h1,:root .si h1,:root .gb-title,:root .gb-h,:root .hb-pt,:root .pt-tenant h2,:root .sp-head h1,
:root .hb-head h1,:root .hb-hello h1,:root .ez-hero h1,:root .pt-hello h1,:root .pt-head h1{font-family:var(--font-ui,Figtree,"Segoe UI",system-ui,sans-serif);font-weight:700;letter-spacing:-.025em}
:root .ez-card b,:root .pt-card h3,:root .hb-tile b,:root .hb-big,:root .hb-pts,:root .hb-calh h2,:root .lc h2,:root .lc h3{font-family:var(--font-ui,Figtree,"Segoe UI",system-ui,sans-serif);font-weight:650;letter-spacing:-.015em}
:root .hb-tile b{font-weight:700;letter-spacing:-.03em}

:root .pt-tenant h2{font-size:56px}
html.calm h1,html.calm h2{letter-spacing:-.02em}

/* ---------- surfaces: cream canvas, white cards with warm hairlines and soft corners ---------- */
html.calm body{background:var(--bg)}
:root .pt-side,html.calm .side{background:#fbfaf7}
:root .pt.pt-shell{background:var(--paper)}
@media (min-width:961px){:root .pt.pt-shell{background:linear-gradient(to right,#fff 272px,var(--paper) 272px)}}
:root .pt-si.on,html.calm .side a.on:not(.sd-new){background:#efece5}
:root .pt-si:hover,html.calm .side a:not(.sd-new):hover{background:#f3f0ea}
/* the builder: a faint grid on the cream, like a worktable */
html.gb-full body,html.gb-full .gb-page{background-color:#f6f4ef;background-image:linear-gradient(rgba(29,27,24,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(29,27,24,.045) 1px,transparent 1px);background-size:28px 28px}
:root .gb-dock{background:linear-gradient(to top,#f6f4ef 70%,transparent)}

/* ---------- buttons: near-black primary, the brand colour in its arrow square ---------- */
:root .ez-btn,:root .gb-go,:root .pt .pt-btn:not(.secondary):not(.quiet),:root .pt-modal .pt-btn:not(.secondary):not(.quiet),:root .sp-btn:not(.second),:root .pt-auth .pt-btn{
  background:var(--primary,#1d1b18);border-color:var(--primary,#1d1b18);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 2px rgba(29,27,24,.18),0 8px 20px -12px rgba(29,27,24,.5)}
:root .ez-btn:hover,:root .gb-go:hover:not(:disabled),:root .pt .pt-btn:not(.secondary):not(.quiet):hover,:root .pt-modal .pt-btn:not(.secondary):not(.quiet):hover,:root .sp-btn:not(.second):hover,:root .pt-auth .pt-btn:hover{background:var(--primary-hover,#35322c)}
:root .ez-btn::after,:root .pt-auth .pt-btn::after{background-color:var(--brand)}
:root .gb-go svg{background:var(--brand)}
html.calm .b.pri{background:#1d1b18;border-color:#1d1b18;color:#fff}
html.calm .b.pri:hover{background:#35322c}
/* the tabs' underline and the current step: warm ink */
:root .ez-cat[aria-checked="true"]::after,.pt .pt-chips button[aria-pressed=true]::after{background:#1d1b18}
