/* Shared base styles: the colour tokens and the chrome every page has (back
   button, nav, footer). Linked before each page's own <style>, so a page
   overrides anything here just by restating it. discover.html and
   share-with-teacher.html have their own --ink-based design and don't use
   this file. */
:root {
  color-scheme: light;
  --bg: #f2ede1;
  --panel: #ffffff;
  --border: #111111;
  --text: #111111;
  --muted: #46433c;
  --accent: #2f6fed;
  --yellow: #ffd23f;
  --pink: #ff6b6b;
  --green: #1fa672;
  --shadow: 4px 4px 0 #111111;
  --shadow-lg: 6px 6px 0 #111111;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 24px 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* "< Back" button, pinned top left; in the flow on phones. */
a.back {
  position: fixed;
  top: 20px;
  left: 20px;
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 3px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s;
  z-index: 50;
}
a.back:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #111111; }

/* Main nav (worker/siteChrome.ts); auth-widget.js renders into #ua-widget.
   It sits in .site-header, outside each page's .wrap, at one width on every
   page: content columns vary from 720px to 1240px, the header doesn't.
   Same width as SITE_HEADER_CSS in siteChrome.ts. Some pages hide the text
   links on phones at their own, wider breakpoint. */
.site-header { max-width: 1160px; margin: 0 auto; }
/* A page's own back link sits under the header rather than pinned. */
.site-header ~ .wrap .back { position: static; margin-bottom: 16px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 22px; line-height: 1.3; }
.logo { font-weight: 900; font-size: 22px; text-transform: uppercase; text-decoration: none; color: var(--text); background: var(--yellow); border: 3px solid var(--border); box-shadow: var(--shadow); padding: 2px 10px; }
/* min-height: room for the account button before auth-widget.js fills the
   empty #ua-widget, so the nav doesn't grow and push every page down when it
   does (it was a layout shift on every page). */
.nav .links { display: flex; gap: 18px; align-items: center; font-size: 14px; min-height: 38px; }
.nav .links > a { color: var(--text); text-decoration: none; font-weight: 700; }
.nav .links > a:hover { text-decoration: underline; }
.nav .links > a.on { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.nav .ua-btn { position: static; }

.site-footer { margin: 24px 0 12px; padding-top: 20px; border-top: 3px solid var(--border); font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.6; }
.site-footer .footer-links { margin-top: 6px; }
.site-footer a { color: var(--text); text-decoration: underline; }

@media (max-width: 640px) {
  a.back { position: static; margin-bottom: 16px; }
  .nav .links > a { display: none; }
}
/* Partnerships ask, styled like the TikTok closing slide (offer tracker,
   course finder, contextual offers, eligibility check). */
.partner-box { background: #111111; color: #f4f1ea; border: 3px solid var(--border); border-radius: 4px; box-shadow: var(--shadow-lg); padding: 18px 16px; }
.partner-box h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.1; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.partner-box h2 span { color: #ffe24a; }
.partner-box p { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #cfc9bc; }
.partner-box a { display: inline-block; font-size: 15px; font-weight: 900; color: #111111; background: #ffe24a; padding: 6px 10px; text-decoration: none; overflow-wrap: anywhere; }
