/*
 * site.css — THEMEABLE structural stylesheet (Phase-2 M0 token edition).
 *
 * This is the tokenized successor to the committed rbs-site/assets/site.css.
 * Every operator-changeable literal is consumed via `var(--token, fallback)`
 * where the FALLBACK is the committed default value — so:
 *   - with NO theme cell / the DEFAULT theme (which emits no :root), the
 *     computed styles are byte-for-byte the same look as the committed CSS
 *     (every var() resolves to its fallback);
 *   - a NON-default theme's injected `:root{…}` (emitted by layout.ts after
 *     this stylesheet's <link>) overrides only the tokens it changes.
 *
 * The :root here also publishes the default token values explicitly (so the
 * tokens are inspectable / overridable as a set), matching DEFAULT_THEME_TOKENS
 * in cartridges/site/brain/src/cell-types/theme.ts. The duplicated literals in
 * the var() fallbacks are intentional belt-and-braces: a token can be unset
 * (removed from :root) and the page still renders.
 *
 * DEPLOY NOTE: promoting this file to the LIVE rbs-site/assets/site.css is a
 * one-time deploy step (outside this worktree's golden masters). The HTML
 * golden-master gate is unaffected — render never rewrites assets, and the
 * default-theme HTML is byte-identical regardless of which site.css is served.
 */
:root{
  --bg:#0d1117; --s1:#161b22; --s2:#1c2128; --bd:#30363d;
  --tx:#e6edf3; --mut:#9aa4af; --ac:#ff1a75; --acl:#ff7fb4; --acb:#d6196b;
  --ok:#56d364; --am:#e3a72a; --maxw:1080px;
  /* M0 spacing / radius / density tokens (defaults = committed literals) */
  --radius:12px; --radius-sm:8px; --pad:18px; --gap:14px;
  --sec-pad:46px; --hero-pad:64px 0 44px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg,#0d1117);color:var(--tx,#e6edf3);line-height:1.65;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
h1,h2,h3{color:var(--tx,#e6edf3);font-weight:500;margin:0;letter-spacing:0}
p{margin:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wrap{max-width:var(--maxw,1080px);margin:0 auto;padding:0 24px}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

/* nav */
.bar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:14px 24px;background:rgba(13,17,23,.85);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--bd,#30363d);flex-wrap:wrap}
.brand{font-weight:500;font-size:15px}
.brand .dot{color:var(--ac,#ff1a75)}
.navlinks{display:flex;align-items:center;flex-wrap:wrap}
.lk{color:var(--mut,#9aa4af);font-size:13.5px;margin-left:18px}
.lk:hover,.lk:focus-visible{color:var(--tx,#e6edf3)}

/* buttons */
.btn{display:inline-block;background:var(--acb,#d6196b);color:#fff;border:none;border-radius:var(--radius-sm,8px);
  padding:10px 17px;font-size:13.5px;font-weight:500;cursor:pointer;font-family:inherit;line-height:1.4}
.btn:hover{background:#e21f76}
.btn.ghost{background:transparent;border:1px solid var(--bd,#30363d);color:var(--tx,#e6edf3)}
.btn.ghost:hover{border-color:var(--mut,#9aa4af)}
a:focus-visible,button:focus-visible,select:focus-visible{outline:2px solid var(--ac,#ff1a75);outline-offset:2px}

/* layout */
.eyebrow{color:var(--ac,#ff1a75);font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:500}
.sec{padding:var(--sec-pad,46px) 0;border-top:1px solid var(--bd,#30363d)}
.hero{padding:var(--hero-pad,64px 0 44px)}
.hero h1{font-size:clamp(34px,5.2vw,52px);line-height:1.1;margin-top:16px;max-width:15ch}
.lede{font-size:clamp(16px,2vw,18px);color:var(--mut,#9aa4af);max-width:60ch;margin-top:18px}
.h2{font-size:clamp(22px,3vw,28px)}
.sub{color:var(--mut,#9aa4af);max-width:62ch;margin-top:10px}
.cta-row{display:flex;gap:11px;margin-top:26px;flex-wrap:wrap}

/* cards / grid */
.grid{display:grid;gap:var(--gap,14px);margin-top:20px}
.g2{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
.card{background:var(--s1,#161b22);border:1px solid var(--bd,#30363d);border-radius:var(--radius,12px);padding:var(--pad,18px)}
.card h3{font-size:16px}
.card p{color:var(--mut,#9aa4af);font-size:14px;margin-top:8px}
.card.accent{border-color:var(--ac,#ff1a75)}
.chip{background:var(--s2,#1c2128);border:1px solid var(--bd,#30363d);border-radius:var(--radius-sm,8px);padding:13px 15px}
.step{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;color:var(--ac,#ff1a75)}
.pill{display:inline-block;font-size:11px;padding:2px 9px;border-radius:20px;font-weight:500}
.pill.live{background:rgba(86,211,100,.18);color:var(--ok,#56d364)}
.pill.role{background:rgba(255,26,117,.16);color:var(--acl,#ff7fb4)}
.tag{font-size:10px;color:var(--mut,#9aa4af);text-transform:uppercase;letter-spacing:.05em;
  border:1px solid var(--bd,#30363d);border-radius:10px;padding:1px 7px;margin-left:7px;vertical-align:2px}

/* self-check */
select{background:var(--s2,#1c2128);color:var(--tx,#e6edf3);border:1px solid var(--bd,#30363d);border-radius:7px;
  padding:7px;font-size:12.5px;width:100%;font-family:inherit}
.mcell{background:var(--s1,#161b22);border:1px solid var(--bd,#30363d);border-radius:9px;padding:11px}
.mcell.key{border-color:var(--ac,#ff1a75)}
.mcell .dom{font-size:10px;color:var(--mut,#9aa4af);text-transform:uppercase;letter-spacing:.05em}
.mcell .q{font-size:13px;font-weight:500;color:var(--tx,#e6edf3);margin:2px 0 7px;line-height:1.3}
.keytag{font-size:9.5px;color:var(--acl,#ff7fb4);border:1px solid var(--ac,#ff1a75);border-radius:10px;padding:0 6px;vertical-align:1px;margin-left:5px}
/* 3x3 matrix layout for the self-check */
.matrix-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap,14px);margin:18px 0 8px}
.matrix-cols span{font-size:11px;color:var(--mut,#9aa4af);text-transform:uppercase;letter-spacing:.06em;text-align:center}
.matrix-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap,14px)}
@media(max-width:680px){.matrix-cols{display:none}.matrix-grid{grid-template-columns:1fr}}
/* self-check readout (built by selfcheck.js — now classes-only, theme-able) */
.readout-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.readout-band{font-size:18px;font-weight:500}
.readout-flag{font-size:13px;color:var(--mut,#9aa4af)}
.readout-bar{height:6px;background:var(--bg,#0d1117);border-radius:4px;margin:10px 0;overflow:hidden}
.readout-fill{height:100%}
.readout-concern{font-size:13px;color:var(--mut,#9aa4af)}
.readout-note{margin-top:11px;font-size:13px}
/* band colour states (theme-able accent / amber / ok via tokens) */
.bc-ok{color:var(--ok,#56d364)}
.bc-am{color:var(--am,#e3a72a)}
.bc-acl{color:var(--acl,#ff7fb4)}
.bg-ok{background:var(--ok,#56d364)}
.bg-am{background:var(--am,#e3a72a)}
.bg-acl{background:var(--acl,#ff7fb4)}

/* ── M2.1 utility + component classes (classes-only re-authoring) ──────────
 * These replace the per-page inline style= attributes so the 6 RBS pages are
 * (a) cleanly editable in GrapesJS (which drops inline styles on import) and
 * (b) fully theme-able (themeable values resolve via the theme tokens, not a
 * hardcoded literal baked into the markup). Non-themeable values (the fixed
 * type scale, the small spacing steps) stay as literals.
 */

/* nav button offsets (was inline margin-left on the nav CTAs) */
.bar .navlinks .nav-l{margin-left:18px}
.bar .navlinks .nav-s{margin-left:8px}

/* color utilities — themeable via tokens */
.t-acl{color:var(--acl,#ff7fb4)}
.t-tx{color:var(--tx,#e6edf3)}
.t-mut{color:var(--mut,#9aa4af)}

/* card-heading accent (was h3 style="color:var(--acl)") */
.card h3.acl{color:var(--acl,#ff7fb4)}
/* compact card-heading variant (was h3 style="font-size:15px") */
.card h3.sm{font-size:15px}
/* muted card paragraph (was p style="color:var(--mut)") */
.card p.mut{color:var(--mut,#9aa4af)}

/* spacing utilities (small fixed steps — non-themeable type/rhythm) */
.mt-0{margin-top:0}
.mt-1{margin-top:6px}
.mt-2{margin-top:8px}
.mt-3{margin-top:10px}
.mt-4{margin-top:12px}
.mt-5{margin-top:13px}
.mt-6{margin-top:14px}
.mt-7{margin-top:16px}
.mt-8{margin-top:18px}

/* the head-heading "margin-top:6px" nudge on .h2 under an eyebrow */
.h2.nudge{margin-top:6px}

/* role chip-row (was the inline flex on the "Bring us in as:" chip) */
.role-row{margin-top:16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.role-row .role-lead{color:var(--mut,#9aa4af);font-size:13.5px}

/* BSV benchmark metric block (was the inline mono numbers + flex row) */
.metric-row{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.metric{font-size:38px;font-weight:500;color:var(--acl,#ff7fb4)}
.metric .unit{font-size:16px;color:var(--mut,#9aa4af)}
.metric-alt{font-size:19px;color:var(--tx,#e6edf3)}
.metric-alt .unit{font-size:13px;color:var(--mut,#9aa4af)}

/* compact "tile" card (was .card style="padding:14px" + inline tile text) */
.card.pad-sm{padding:14px}
.tile-t{font-size:14px;font-weight:500}
.tile-d{font-size:13px;color:var(--mut,#9aa4af);margin-top:4px}

/* contact band heading + sub (was inline font-size / muted sub) */
.band .h2{font-size:21px}
.band-sub{color:var(--mut,#9aa4af);font-size:14.5px;margin-top:7px}

/* small print under a hero (was p style="margin-top:14px;font-size:13px") */
.fineprint{margin-top:14px;font-size:13px}

/* footer + contact band */
.band{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
footer{padding:20px 24px;border-top:1px solid var(--bd,#30363d);color:var(--mut,#9aa4af);font-size:12.5px}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:0 0}

@media(max-width:560px){
  .lk{margin-left:0;margin-right:16px}
  .navlinks{gap:2px}
  .hero{padding:44px 0 32px}
}

/* ── M0 theme variant hooks (engaged only by a NON-default theme via body[…]) ── */
/* hero presentation variants */
body[data-hero="centered"] .hero{text-align:center}
body[data-hero="centered"] .hero .cta-row{justify-content:center}
body[data-hero="banner"] .hero{text-align:center;background:var(--s1,#161b22);border-bottom:1px solid var(--bd,#30363d)}
/* button presentation variants */
body[data-btn="outline"] .btn{background:transparent;border:1px solid var(--ac,#ff1a75);color:var(--ac,#ff1a75)}
body[data-btn="outline"] .btn:hover{background:var(--ac,#ff1a75);color:#fff}
body[data-btn="pill"] .btn{border-radius:999px}
body[data-btn="square"] .btn{border-radius:0}

/* ── Odd Job Todd page-cell rescue styles ────────────────────────────────
 * The current editable Odd Job Todd page was authored with vertical-specific
 * classes (.ojt-hero, .button, section ids) instead of the canonical RBS block
 * classes. Keep these aliases here so published page-cell content renders as
 * a deliberate public site even when the editor output is not perfectly on the
 * house block vocabulary.
 */
.bar>a:first-child:not(.brand){font-weight:700;color:#f6c453}
.bar>a:not(:first-child):not(.brand){color:var(--mut,#9aa4af);font-size:13.5px}
.bar>a:not(:first-child):not(.brand):hover,
.bar>a:not(:first-child):not(.brand):focus-visible{color:var(--tx,#e6edf3)}

.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:8px;
  padding:10px 16px;font-size:14px;font-weight:700;line-height:1.2;border:1px solid transparent}
.button.primary{background:#f6c453;color:#151914;border-color:#f6c453}
.button.primary:hover{background:#ffd46a}
.button.secondary{background:rgba(255,255,255,.04);color:var(--tx,#e6edf3);border-color:var(--bd,#30363d)}
.button.secondary:hover{border-color:#f6c453;color:#f6c453}

.ojt-hero{max-width:1180px;margin:0 auto;padding:clamp(48px,8vw,86px) 24px 54px;
  min-height:min(760px,calc(100vh - 58px));display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.72fr);
  gap:clamp(28px,5vw,58px);align-items:center}
.ojt-hero .eyebrow{color:#f6c453}
.ojt-hero h1{font-size:clamp(36px,6vw,68px);line-height:1.02;max-width:12.5ch;font-weight:780;letter-spacing:0}
.ojt-hero .lede{max-width:54ch;color:#c9d6d1;font-size:clamp(16px,2vw,19px)}
.ojt-hero p:last-child{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
.ojt-hero::after{content:"";display:block;min-height:330px;border:1px solid rgba(246,196,83,.35);
  border-radius:22px;background:
    linear-gradient(145deg,rgba(15,118,110,.78),rgba(15,23,42,.9) 52%,rgba(246,196,83,.16)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.08) 0 1px,transparent 1px 18px);
  box-shadow:0 26px 80px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.15)}

#request,#services,#how,#area,section[data-gjs-name="Behind the scenes"]{max-width:1080px;margin:0 auto;padding:48px 24px;
  border-top:1px solid var(--bd,#30363d)}
#request{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.45fr);gap:24px;align-items:start}
#request h2,#services h2,#how h2,#area h2,section[data-gjs-name="Behind the scenes"] h2{font-size:clamp(24px,3vw,32px)}
#request p,#area p,section[data-gjs-name="Behind the scenes"] p{color:var(--mut,#9aa4af);max-width:66ch;margin-top:10px}
#request p:last-child{margin-top:18px}

#services ul,#how ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;
  margin:22px 0 0;padding:0;list-style:none}
#services li,#how li{background:var(--s1,#161b22);border:1px solid var(--bd,#30363d);border-radius:12px;
  padding:16px 17px;color:#dce7e2}
#services li::before{content:"";display:block;width:34px;height:5px;border-radius:999px;background:#f6c453;margin-bottom:12px}
#how{counter-reset:ojt-step}
#how li{counter-increment:ojt-step}
#how li::before{content:counter(ojt-step);display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;
  background:#0f766e;color:#fff;font-weight:800;margin-bottom:12px}
#how li strong{display:block;color:#f6c453;margin-bottom:4px}

section[data-gjs-name="Behind the scenes"]{margin-bottom:28px;border:1px solid rgba(246,196,83,.22);
  border-radius:16px;background:rgba(246,196,83,.06)}

body:has(#oddjobz-chat-widget[data-layout="dock"]),
body:has(#oddjobz-chat-widget[data-layout="panel"]){padding-bottom:82px}

@media(max-width:760px){
  .bar{align-items:flex-start}
  .ojt-hero{grid-template-columns:1fr;min-height:0;padding-top:42px}
  .ojt-hero h1{max-width:100%;font-size:clamp(34px,10vw,48px)}
  .ojt-hero::after{min-height:190px}
  #request{grid-template-columns:1fr}
}
