/* The Bridge Centre — theme for the standalone lesson and reference pages
   (workbooks, course intro, podcast players, Next Steps program and lessons, cheat sheets).
   Those pages keep their own layout; build.py injects this file after their own styles so
   they use the site's colours and type: navy instead of green felt, gold instead of yellow
   and brass, Inter for text and headings. Per-page differences in what a variable means
   (for example --accent) are set in build.py (STANDALONE_THEME). */
:root{
  color-scheme:light;
  --tbc-sans:'Inter',-apple-system,'Segoe UI','Helvetica Neue',Arial,sans-serif;
  /* backgrounds and text */
  --bg:#f7f4ee; --paper:#ffffff; --surface:#ffffff; --panel:#ffffff;
  --ink:#14202e; --fg:#14202e; --black:#14202e; --muted:#5a6574;
  --line:#e6e2da; --rule:#e6e2da;
  /* green felt becomes the brand navy */
  --felt:#1e3a5f; --felt-ink:#ffffff;
  --brass:#8a6d2b; --tint:#e9eef5;
  --note-bg:#f5ecd6; --hl:#e9eef5; --hl-b:#1e3a5f;
  --warn:#f5ecd6; --warn-line:#e3cf98;
  --red:#b3261e;
  /* type */
  --f-display:var(--tbc-sans); --f-body:var(--tbc-sans);
  --font-display:var(--tbc-sans); --font-body:var(--tbc-sans);
  --display:var(--tbc-sans); --body:var(--tbc-sans);
}
body{font-family:var(--tbc-sans)}
/* Headings and labels that name a serif font directly instead of using a variable */
h1,h2,h3,h4,summary,.weeks .num,.weeks strong,.callout h3,.code dt,.tab,.steps li::before{font-family:var(--tbc-sans)!important;letter-spacing:-.01em}
h1,h2{font-weight:800}

/* ---------- Site bar at the top of every standalone page ---------- */
.tbc-bar{all:initial;display:flex;align-items:center;flex-wrap:wrap;gap:.4rem 1rem;box-sizing:border-box;
  /* cancel the page's own body padding so the bar spans the full width (set per page in build.py) */
  margin:calc(-1 * var(--tbc-pad-top,0px)) calc(-1 * var(--tbc-pad-x,0px)) var(--tbc-pad-top,0px);
  padding:.55rem 1rem;background:#fff;border-bottom:1px solid #e6e2da;font:500 16px/1.3 var(--tbc-sans);color:#14202e;position:relative;z-index:9999}
.tbc-bar *{box-sizing:border-box}
.tbc-bar a{text-decoration:none;font:inherit}
.tbc-brand{display:flex;align-items:center;gap:.55rem;color:#14294a;padding:.25rem .6rem .25rem .25rem;border-radius:999px}
.tbc-brand:hover{background:rgba(30,58,95,.07)}
.tbc-brand img{width:32px;height:34px;display:block}
.tbc-brand span{font-family:'Bodoni Moda','Times New Roman',serif;font-size:1.1rem;font-weight:500}
.tbc-crumb{color:#5a6574;display:flex;align-items:center;gap:.5rem}
.tbc-crumb a{color:#1f5aa6;font-weight:600}
.tbc-crumb a:hover{text-decoration:underline}
.tbc-links{margin-left:auto;display:flex;align-items:center;gap:.2rem}
.tbc-links a{color:#14202e;font-weight:600;padding:.45rem .9rem;border-radius:999px}
.tbc-links a:hover{background:rgba(30,58,95,.07)}
.tbc-links a.tbc-cta{background:#1e3a5f;color:#fff}
.tbc-links a.tbc-cta:hover{background:#14294a}
.tbc-bar a:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
@media (max-width:700px){
  .tbc-links a:not(.tbc-cta){display:none}
  .tbc-brand span{display:none}
}
@media print{.tbc-bar{display:none}}
