/* site-chrome.css - the ONE header, menu, footer and donation strip shared by every public page (2026-10-22).
   Landing-page style: Baloo 2 headings, Inter text, indigo #4F46E5. Self-contained: its colours live in --sc-*
   properties set ON the chrome elements only (never on :root), so a page's own palette (--sand, --deep, --ocean,
   --coral, --ink ...) is untouched and the chrome looks the same on Core-3 and legacy pages. Dark colours apply only
   on Core-3 pages (body.core3), the pages whose content follows the dark theme too.
   Behaviour: js/site-chrome.js (menu button, current page, signed-in and child-session rules). Without JS the menu
   simply stays open as a wrapped row, so nothing is ever unreachable. */
@font-face{font-family:'Baloo 2';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/baloo-2-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:'Baloo 2';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/baloo-2-latin-700-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-latin-600-normal.woff2') format('woff2')}

.sc-head,.sc-foot,.sc-strip{
  --sc-primary:#4F46E5;--sc-primary-active:#4338CA;--sc-primary-text:#4F46E5;--sc-wash:#EEF2FF;
  --sc-surface:#FFFFFF;--sc-ink:#0F172A;--sc-muted:#475569;--sc-faint:#64748B;--sc-hair:#E2E8F0;--sc-hover:#F1F4FF;
  --sc-display:'Baloo 2',ui-rounded,system-ui,sans-serif;--sc-ui:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  font-family:var(--sc-ui);box-sizing:border-box}
[data-color-mode="dark"] body.core3 .sc-head,[data-color-mode="dark"] body.core3 .sc-foot,[data-color-mode="dark"] body.core3 .sc-strip{
  --sc-primary:#6366F1;--sc-primary-active:#4F46E5;--sc-primary-text:#A5B4FC;--sc-wash:#1E1B4B;
  --sc-surface:#0F172A;--sc-ink:#F1F5F9;--sc-muted:#CBD5E1;--sc-faint:#94A3B8;--sc-hair:#334155;--sc-hover:#1E293B}
.sc-head *,.sc-foot *,.sc-strip *{box-sizing:border-box}
/* the sticky header must not cover what a link or scrollIntoView jumps to */
html:has(.sc-head){scroll-padding-top:88px}
/* Reset what a legacy page sets on bare elements (careers/realworld: nav{position:fixed...}, legal: nav{height:60px...},
   sports: footer{text-align:center...}, li{display:flex...}, h2{font-family:Fraunces !important}). */
.sc-head nav,.sc-foot nav{position:static;top:auto;left:auto;right:auto;z-index:auto;height:auto;min-height:0;margin:0;padding:0;border:0;background:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;justify-content:flex-start}
.sc-foot nav{display:block}
footer.sc-foot{text-align:left;margin:0}
.sc-head ul,.sc-foot ul,.sc-head li,.sc-foot li{margin:0;padding:0;border:0;background:none;list-style:none;font-size:inherit;line-height:inherit;color:inherit}
.sc-foot li{display:block}
.sc-head h2,.sc-foot h2,.sc-strip p,.sc-foot p{letter-spacing:normal;text-transform:none;border:0;padding:0;position:static}
.sc-head .sc-brand,.sc-foot .sc-brand{font-family:'Baloo 2',ui-rounded,system-ui,sans-serif !important}
.sc-foot h2{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif !important}
.sc-wrap{max-width:1240px;margin:0 auto;padding:0 16px}
@media (min-width:768px){.sc-wrap{padding:0 24px}}
.sc-ic{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.sc-skip{position:absolute;left:8px;top:-80px;z-index:1000;background:#4F46E5;color:#fff !important;padding:12px 18px;border-radius:12px;font:600 15px/1.2 'Inter',system-ui,sans-serif;text-decoration:none}
.sc-skip:focus{top:8px}

/* ---- header ---- */
.sc-head{position:sticky;top:0;z-index:950;background:var(--sc-surface);border-bottom:1px solid var(--sc-hair);color:var(--sc-ink)}
.sc-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:64px}
.sc-head .sc-brand,.sc-foot .sc-brand{font:600 26px/1 var(--sc-display);color:var(--sc-ink);text-decoration:none;letter-spacing:-.01em;display:inline-flex;align-items:center;min-height:48px;margin-right:auto}
.sc-brand span{color:var(--sc-primary)}
.sc-nav{display:flex;flex-wrap:wrap;gap:4px 20px;order:5;flex-basis:100%;padding:0 0 8px}
.sc-head .sc-nav a{color:var(--sc-muted);text-decoration:none;font:500 15px/1.2 var(--sc-ui);min-height:44px;display:inline-flex;align-items:center}
.sc-head .sc-nav a:hover,.sc-head .sc-nav a[aria-current="page"]{color:var(--sc-primary-text)}
.sc-head .sc-nav a[aria-current="page"]{font-weight:600}
.sc-cta{display:flex;align-items:center;gap:8px}
.sc-head .sc-signin{color:var(--sc-muted);font:600 15px/1.2 var(--sc-ui);text-decoration:none;min-height:44px;display:none;align-items:center;padding:0 6px}
.sc-head .sc-signin:hover{color:var(--sc-primary-text)}
.sc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:12px;font:600 15px/1.2 var(--sc-ui);text-decoration:none;border:1px solid transparent;cursor:pointer;white-space:nowrap}
.sc-head .sc-btn-primary,.sc-strip .sc-btn-primary{background:var(--sc-primary);color:#fff}
.sc-head .sc-btn-primary:active{background:var(--sc-primary-active)}
/* Support TUTOR: a heart button beside Start free. On phones (under 600px) the heart shows with the short word
   "Donate" beside it; the full words stay in the DOM, so screen readers still read "Support TUTOR" (the "Donate"
   pseudo-text has empty alt text, so it is not read twice). */
.sc-head .sc-support{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;justify-content:center;padding:0 12px;border-radius:12px;
  border:1px solid var(--sc-hair);background:var(--sc-surface);color:var(--sc-ink);font:600 15px/1.2 var(--sc-ui);text-decoration:none;white-space:nowrap}
.sc-head .sc-support::before,.sc-foot .sc-give::before,.sc-strip .sc-give::before{content:"";width:18px;height:18px;flex:none;background:#E11D48;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E") center/contain no-repeat}
.sc-head .sc-support:hover{background:var(--sc-hover)}
@media (max-width:599px){
  .sc-head .sc-support{font-size:0;gap:6px;padding:0 10px}
  .sc-head .sc-support::after{content:"Donate";content:"Donate" / "";font:600 15px/1.2 var(--sc-ui)}
}
/* "Support TUTOR" as the last item of the phone menu (added by js/site-chrome.js, never in a child session) */
.sc-head .sc-nav a.sc-nav-give{gap:8px;color:var(--sc-ink);font-weight:600}
.sc-head .sc-nav a.sc-nav-give::before{content:"";width:18px;height:18px;flex:none;background:#E11D48;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E") center/contain no-repeat}
/* menu button: shown only under 900px and only once js/site-chrome.js runs */
.sc-menu-btn{display:none;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 10px;border-radius:12px;border:1px solid var(--sc-hair);
  background:var(--sc-surface);color:var(--sc-ink);font:600 15px/1.2 var(--sc-ui);cursor:pointer}
.sc-menu-btn .sc-bars{position:relative;width:18px;height:2px;background:currentColor;border-radius:2px}
.sc-menu-btn .sc-bars::before,.sc-menu-btn .sc-bars::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor;border-radius:2px}
.sc-menu-btn .sc-bars::before{top:-6px}.sc-menu-btn .sc-bars::after{top:6px}
.sc-menu-btn[aria-expanded="true"] .sc-bars{background:transparent}
.sc-menu-btn[aria-expanded="true"] .sc-bars::before{top:0;transform:rotate(45deg)}
.sc-menu-btn[aria-expanded="true"] .sc-bars::after{top:0;transform:rotate(-45deg)}
@media (max-width:899px){
  .sc-js .sc-menu-btn{display:inline-flex}
  .sc-js .sc-nav{display:none;flex-direction:column;gap:0;padding:4px 0 12px;border-top:1px solid var(--sc-hair)}
  .sc-js.sc-open .sc-nav{display:flex}
  .sc-js .sc-nav a{min-height:48px;padding:0 4px;border-bottom:1px solid var(--sc-hair)}
  .sc-js .sc-nav a:last-child{border-bottom:0}
}
/* small phones: brand, "Donate", Start free and the menu button stay on one row down to 320px */
@media (max-width:419px){
  .sc-bar,.sc-cta{gap:6px}
  .sc-head .sc-support{padding:0 8px;gap:4px}
  .sc-head .sc-btn{padding:0 12px}
  .sc-head .sc-brand{font-size:24px}
  /* signed in: "My workspace" shows as "Workspace" (the full words stay the accessible name) */
  .sc-head .sc-btn[data-sc-signed-in]{font-size:0;gap:0;padding:0 10px}
  .sc-head .sc-btn[data-sc-signed-in]::after{content:"Workspace";content:"Workspace" / "";font:600 15px/1.2 var(--sc-ui)}
}
@media (max-width:389px){.sc-head .sc-brand{font-size:22px}.sc-head .sc-support{padding:0 6px}}
@media (max-width:359px){
  .sc-bar,.sc-cta{gap:4px}
  .sc-head .sc-btn{padding:0 8px;font-size:14px}
  .sc-head .sc-brand{font-size:20px}
  .sc-head .sc-support{padding:0 6px}
  .sc-head .sc-support::before{width:16px;height:16px}
  .sc-head .sc-support::after,.sc-head .sc-btn[data-sc-signed-in]::after{font-size:14px}
}
@media (min-width:900px){
  .sc-bar{min-height:72px;gap:16px}
  .sc-nav{order:0;flex-basis:auto;flex-wrap:nowrap;padding:0;gap:24px;margin-right:auto}
  .sc-head .sc-brand{margin-right:24px}
  .sc-head .sc-nav a.sc-nav-only-small{display:none}
  .sc-head .sc-signin{display:inline-flex}
}
.sc-head a:focus-visible,.sc-head button:focus-visible,.sc-foot a:focus-visible,.sc-strip a:focus-visible{outline:3px solid #4F46E5;outline-offset:2px;border-radius:8px}

/* ---- "Free for every child, kept running by donations" strip ---- */
.sc-strip{background:var(--sc-wash);color:var(--sc-ink);border-bottom:1px solid var(--sc-hair)}
.sc-strip .sc-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 12px;min-height:48px;padding-top:6px;padding-bottom:6px;text-align:center}
.sc-strip p{margin:0;font:500 14px/1.45 var(--sc-ui)}
.sc-strip .sc-give{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--sc-primary-text);font:600 14px/1.2 var(--sc-ui);text-decoration:underline;text-underline-offset:3px}

/* ---- footer ---- */
.sc-foot{background:var(--sc-surface);color:var(--sc-muted);border-top:1px solid var(--sc-hair);padding:40px 0 24px;font-size:14px;line-height:1.6}
.sc-foot-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px;margin-bottom:24px}
.sc-foot-about{grid-column:1/-1}
@media (min-width:1024px){.sc-foot-grid{grid-template-columns:2fr 1fr 1fr 1.3fr;gap:24px}.sc-foot-about{grid-column:auto}}
.sc-foot p{margin:0}
.sc-foot-about p{font-size:13px;color:var(--sc-faint);max-width:384px;margin-top:8px}
.sc-foot h2{font:600 12px/1.4 var(--sc-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--sc-ink);margin:0 0 4px}
.sc-foot ul{margin:0;padding:0;list-style:none}
.sc-foot a{color:var(--sc-muted);text-decoration:none;font-size:14px;display:inline-flex;align-items:center;gap:6px;min-height:44px}
.sc-foot a:hover{color:var(--sc-primary-text);text-decoration:underline}
.sc-foot .sc-give{color:var(--sc-primary-text);font-weight:600}
.sc-foot-bar{padding-top:16px;border-top:1px solid var(--sc-hair);display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--sc-faint)}
@media (min-width:640px){.sc-foot-bar{flex-direction:row;justify-content:space-between;align-items:center}}
/* build partner line (2026-10-27): inline in the sentence; vertical padding keeps a ~44px tap area */
.sc-foot .sc-partner a{display:inline;min-height:0;padding:14px 0;font-size:12px;color:var(--sc-primary-text);text-decoration:underline;text-underline-offset:2px}

/* shown only to signed-in visitors (js/site-chrome.js removes the hidden attribute) */
[data-sc-signed-in][hidden],[data-sc-signed-out][hidden]{display:none !important}

/* ---- one design across the public pages (2026-10-22) ----
   Headings use Baloo 2 like the landing page, and the pages built on css/tutor.css (body.site: how it works,
   curriculum, skills, credits) use the landing indigo #4F46E5 for buttons and links. Scoped to the pages that load
   this file; --sand / --deep / --ocean / --coral are not touched. The dyslexia font setting (data-a11y-font) wins. */
html:not([data-a11y-font]) body:not(.landing):not(.dn) :is(h1,h2,h3):not(.sc-foot h2){font-family:'Baloo 2',ui-rounded,system-ui,sans-serif !important;letter-spacing:-.005em}
html:not([data-color-mode="dark"]) body.site{--ds-blue:#4F46E5;--ds-blue-d:#4338CA;--ds-blue-ink:#3730A3;--ds-info:#4F46E5}
html:not([data-a11y-font]) body.site{--ds-font-display:'Baloo 2',ui-rounded,system-ui,sans-serif}
/* careers / realworld / sports inside the Community page (?embed=1, js/dtrack-embed.js): no site chrome */
html.embedded .sc-head,html.embedded .sc-strip,html.embedded .sc-foot,html.embedded .sc-skip{display:none !important}
@media print{.sc-head,.sc-strip,.sc-menu-btn{display:none !important}}
@media (prefers-reduced-motion:reduce){.sc-head *,.sc-foot *{transition:none !important}}
/* wide data tables on careers / sports / legal scroll inside their own box on a phone, never the page */
@media (max-width:767px){body:not(.landing):not(.dn) :is(.combo-table,.salary-table,.legal-table){display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}
/* how-it-works and credits now open with an h1 (was an h2): same look as the section heading it replaced */
body.site .head h1{font-family:var(--ds-font-display);font-weight:600;font-size:clamp(28px,3.6vw,40px);line-height:1.08;letter-spacing:-.015em;margin:10px 0 0;color:var(--ds-ink)}
/* the closing band and buttons of the body.site pages (how it works, credits, skills) use the landing indigo, not the
   old blue #1D4ED8 hard-coded in css/tutor.css (.site .final) */
body.site .final{background:linear-gradient(135deg,#4F46E5,#4338CA)}
body.site .final p{color:#EEF2FF}
body.site .final .btn-primary{color:#3730A3}
html:not([data-color-mode="dark"]) body.site .btn-primary{box-shadow:0 8px 20px rgba(79,70,229,.22)}
/* the landing page's amber "Not yet" (index.html: Amber "Not yet" teaching), reused on how-it-works */
body.site .sc-notyet{display:inline-block;padding:0 8px;border-radius:999px;background:#FFFBEB;border:1px solid rgba(245,158,11,.3);color:#B45309;font-weight:600;white-space:nowrap}
[data-color-mode="dark"] body.site .sc-notyet{background:#33270D;color:#FCD34D}
