/* --------------------------------------------------------------------------
 * site.css — first-party base styles for Tynker on Django.
 *
 * Framework-free (no Bootstrap/Tailwind). Provides:
 *   1. Design tokens (a playful purple / teal / orange kid-brand palette).
 *   2. Product chrome: sticky header nav + multi-column footer.
 *   3. The marketing landing page components (hero, course cards, steps,
 *      audience cards, stats band, CTA band).
 *   4. Legacy helpers still used by the /dev/ status dashboard and the bare
 *      auth pages (.card, .checklist, .badge, .lede, .errors, ...).
 *
 * All artwork is inline SVG in the templates; this file only handles layout,
 * color, and type. Loaded via {% static 'css/site.css' %} (hashed in prod).
 * ----------------------------------------------------------------------- */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Brand palette — bold, kid-friendly. Purple leads; teal + orange accent. */
  --ty-purple:      #6c4aee;   /* primary brand / CTA */
  --ty-purple-dk:   #5636d6;   /* hover / deep accents */
  --ty-purple-2a:   #7c5cff;   /* gradient light stop */
  --ty-teal:        #12c2b8;   /* secondary accent */
  --ty-orange:      #ff7a45;   /* tertiary accent / warmth */
  --ty-yellow:      #ffd23f;   /* highlights / sparkle */
  --ty-ink:         #1d2130;   /* primary text */
  --ty-muted:       #5c6479;   /* secondary text */
  --ty-bg:          #ffffff;
  --ty-tint:        #f5f3ff;   /* soft purple section wash */
  --ty-panel:       #f7f9fb;
  --ty-border:      #e6e2f5;
  --ty-shadow:      0 10px 30px rgba(76, 55, 150, 0.12);
  --ty-shadow-sm:   0 4px 14px rgba(76, 55, 150, 0.10);
  --ty-max:         1120px;
  --ty-radius:      18px;

  /* base-reset.css reads this into scroll-padding-top: in-page anchors
     land below the sticky .site-header (~56px) instead of under it. */
  --anchor-offset:  68px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ty-ink);
  background: var(--ty-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ty-purple); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
}

/* Media never forces a container wider than the viewport. */
img, svg { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.15; }

/* --- Buttons (shared) ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { text-decoration: none; transform: translateY(-1px); }
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--lg { padding: 0.85rem 1.7rem; font-size: 1.05rem; }
.btn--primary {
  background: var(--ty-purple);
  color: #fff;
  box-shadow: var(--ty-shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--ty-purple-dk); color: #fff; }
}
.btn--ghost {
  background: #fff;
  color: var(--ty-purple);
  border-color: var(--ty-border);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { border-color: var(--ty-purple); color: var(--ty-purple-dk); }
}

/* --- Header / top nav ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--ty-border);
}
.site-header__inner {
  max-width: var(--ty-max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .site-brand:hover { text-decoration: none; }
}
.site-brand img { display: block; height: 30px; width: auto; }

.site-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.98rem;
}
.site-nav__link { color: var(--ty-ink); font-weight: 600; }
/* Placeholder dropdown parents render as buttons until their landing pages
   exist — reset UA button chrome so they match the link styling exactly. */
button.site-nav__link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ty-ink);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover { color: var(--ty-purple); text-decoration: none; }
}
.site-nav__link--staff {
  color: var(--ty-teal);
  font-weight: 700;
}

/* CSS-only dropdown groups (no JS). The submenu opens on hover OR keyboard    */
/* focus-within so it is reachable without a pointer. Each group's top-level   */
/* label is itself a link to that section's landing page.                      */
.site-nav__group { position: relative; display: inline-flex; align-items: center; }
.site-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12.5rem;
  background: #fff;
  border: 1px solid var(--ty-border);
  border-radius: 12px;
  box-shadow: var(--ty-shadow);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
  z-index: 60;
}
.site-nav__group:hover .site-nav__menu,
.site-nav__group:focus-within .site-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__menu a {
  color: var(--ty-ink);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav__menu a:hover { background: var(--ty-panel); text-decoration: none; }
}

.site-actions {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.98rem;
}
.site-actions__link { color: var(--ty-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .site-actions__link:hover { color: var(--ty-purple); text-decoration: none; }
}

/* --- Main content shell -------------------------------------------------- */
/* Full-bleed so landing sections can span the viewport. Constrained pages    */
/* (the /dev/ dashboard, the bare auth <main>) get their own inner wrapper.    */
.site-main { width: 100%; }

/* Constrained content wrappers used by non-marketing pages. */
.page {
  max-width: var(--ty-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.page--narrow { max-width: 820px; }

/* The auth pages (login/signup) render a bare .auth-panel wrapper; keep them
   constrained + readable via a scoped default.                             */
.site-main > .auth-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(18, 194, 184, 0.14), transparent 55%),
    var(--ty-bg);
  border-bottom: 1px solid var(--ty-border);
}
.hero__inner {
  max-width: var(--ty-max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
/* Grid items default to min-width:auto (= content min-size), which can force a
   track — and the whole page — wider than the viewport. Let them shrink. */
.hero__copy, .hero__art { min-width: 0; }
.eyebrow {
  color: var(--ty-purple);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.hero__title {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.hero__pop {
  color: var(--ty-purple);
  background: linear-gradient(transparent 62%, rgba(255, 210, 63, 0.55) 0);
}
.hero__pop--teal { color: var(--ty-teal); }
.hero__lede {
  font-size: 1.15rem;
  color: var(--ty-muted);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}
.hero__cta { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero__join { margin: 1.25rem 0 0; color: var(--ty-muted); font-weight: 600; }
.hero__join a { font-weight: 700; }
.hero__art {
  background: #fff;
  border: 1px solid var(--ty-border);
  border-radius: 26px;
  box-shadow: var(--ty-shadow);
  padding: 1.25rem;
}
.hero__art svg { display: block; width: 100%; height: auto; }

/* --- Generic section scaffolding ---------------------------------------- */
.section { padding: 3.75rem 0; }
.section--tint { background: var(--ty-tint); }
.section__inner {
  max-width: var(--ty-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section__head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}
.section__sub { color: var(--ty-muted); font-size: 1.1rem; margin: 0; }
.section__foot { text-align: center; margin-top: 2.25rem; }

/* Reusable pill / tag. */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(108, 74, 238, 0.12);
  color: var(--ty-purple-dk);
}

/* --- Course showcase ----------------------------------------------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.course-card {
  background: #fff;
  border: 1px solid var(--ty-border);
  border-radius: var(--ty-radius);
  overflow: hidden;
  box-shadow: var(--ty-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .course-card:hover { transform: translateY(-4px); box-shadow: var(--ty-shadow); }
}
.course-card__thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Per-card accent gradients keep the showcase colorful. */
.course-card--c1 .course-card__thumb { background: linear-gradient(135deg, #7c5cff, #5636d6); }
.course-card--c2 .course-card__thumb { background: linear-gradient(135deg, #12c2b8, #0e9e96); }
.course-card--c3 .course-card__thumb { background: linear-gradient(135deg, #ff9a45, #ff6a3d); }
.course-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; }
.course-card__title { font-size: 1.2rem; font-weight: 800; margin: 0.15rem 0 0; }
.course-card__desc { color: var(--ty-muted); font-size: 0.95rem; margin: 0; flex-grow: 1; }
.course-card__link { font-weight: 700; margin-top: 0.35rem; }

/* --- How it works (steps) ------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.step { text-align: center; padding: 0 0.5rem; }
.step__icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--ty-shadow-sm);
}
.step__icon--purple { background: linear-gradient(135deg, #7c5cff, #5636d6); }
.step__icon--teal   { background: linear-gradient(135deg, #12c2b8, #0e9e96); }
.step__icon--orange { background: linear-gradient(135deg, #ff9a45, #ff6a3d); }
.step__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.4rem; }
.step__desc { color: var(--ty-muted); margin: 0; }

/* --- Audience cards ------------------------------------------------------ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.audience-card {
  background: #fff;
  border: 1px solid var(--ty-border);
  border-radius: var(--ty-radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--ty-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.audience-card h3 { font-size: 1.35rem; margin: 0.35rem 0 0; }
.audience-card p { color: var(--ty-muted); margin: 0 0 0.75rem; }
.audience-card .btn { margin-top: auto; }
.audience-card__badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.audience-card__badge--purple { background: var(--ty-purple); }
.audience-card__badge--teal   { background: var(--ty-teal); }
.audience-card__badge--orange { background: var(--ty-orange); }

/* --- Stats band ---------------------------------------------------------- */
.stats {
  background: linear-gradient(135deg, var(--ty-purple), var(--ty-purple-dk));
  color: #fff;
}
.stats__inner {
  max-width: var(--ty-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat__num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; }
.stat__label { color: rgba(255, 255, 255, 0.82); font-weight: 600; }

/* --- Closing CTA band ---------------------------------------------------- */
.cta-band { text-align: center; padding: 3.75rem 0; }
.cta-band__inner { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
.cta-band__inner h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; margin: 0 0 0.6rem; }
.cta-band__inner p { color: var(--ty-muted); font-size: 1.1rem; margin: 0 0 1.75rem; }
.cta-band .hero__cta { justify-content: center; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: #14172a;
  color: #c7cbe0;
}
.site-footer__inner {
  max-width: var(--ty-max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 2.5rem;
}
.site-footer__logo { height: 30px; width: auto; filter: brightness(0) invert(1); }
.site-footer__tagline { color: #8f95b8; margin: 0.9rem 0 0; max-width: 18rem; }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.site-footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer__col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.site-footer__col a { color: #b7bcda; font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .site-footer__col a:hover { color: #fff; text-decoration: none; }
}
.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  max-width: var(--ty-max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8f95b8;
}
.site-footer__meta a { color: #8f95b8; }
@media (hover: hover) and (pointer: fine) {
  .site-footer__meta a:hover { color: #fff; text-decoration: none; }
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: center;
  flex: 1 1 auto;
}
.site-footer__legal a { color: #b7bcda; }
@media (hover: hover) and (pointer: fine) {
  .site-footer__legal a:hover { color: #fff; text-decoration: none; }
}

/* --- Legacy helpers (used by /dev/ dashboard + bare auth pages) ---------- */
.site-main > .auth-panel h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
.page h1 { font-size: 2rem; margin: 0 0 0.5rem; }
.page h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.lede { color: var(--ty-muted); font-size: 1.05rem; margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  border: 1px solid var(--ty-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: var(--ty-panel);
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.card p { margin: 0 0 0.6rem; color: var(--ty-muted); font-size: 0.9rem; }

.checklist { list-style: none; padding: 0; margin: 0.5rem 0; }
.checklist li { padding: 0.25rem 0; }
.checklist li::before { content: "\2713"; color: #2e9e5b; font-weight: 700; margin-right: 0.5rem; }

.badge {
  display: inline-block;
  background: var(--ty-yellow);
  color: #3a2a00;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* Auth-page form error list. */
.errors { color: #c0392b; }

/* --- Responsive: collapse to a single column under 800px ----------------- */
@media (max-width: 800px) {
  .site-header__inner { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
  .site-nav { order: 3; width: 100%; gap: 1.1rem; }
  .site-actions { margin-left: auto; }

  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__art { order: -1; max-width: 420px; }

  .course-grid,
  .steps,
  .audience-grid { grid-template-columns: 1fr; }

  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
 * AUDIENCE PAGES (APPENDED) — components for /parents/, /school/, /play/.
 * Added by the audience-pages workstream. Reuses the existing design tokens
 * and shared classes above (.section, .hero, .btn, .pill, .steps, ...); only
 * the net-new building blocks live here. Kept in one appended block so the
 * base marketing styles above stay untouched.
 * ======================================================================== */

/* --- Age-band strip (/parents/) ----------------------------------------- */
.ageband {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ageband__card {
  border: 1px solid var(--ty-border);
  border-radius: var(--ty-radius);
  padding: 1.6rem 1.5rem;
  background: #fff;
  box-shadow: var(--ty-shadow-sm);
  border-top: 5px solid var(--ty-purple);
}
.ageband__card--purple { border-top-color: var(--ty-purple); }
.ageband__card--teal   { border-top-color: var(--ty-teal); }
.ageband__card--orange { border-top-color: var(--ty-orange); }
.ageband__age {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ty-muted);
}
.ageband__card h3 { font-size: 1.3rem; margin: 0.35rem 0 0.5rem; }
.ageband__card p  { color: var(--ty-muted); margin: 0; }

/* --- Testimonial / quote cards (/parents/) ------------------------------ */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.quote-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--ty-border);
  border-radius: var(--ty-radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--ty-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-card blockquote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ty-ink);
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ty-muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: auto;
}
.quote-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ty-tint);
  color: var(--ty-purple-dk);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Classroom feature grid (/school/) ---------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--ty-border);
  border-radius: var(--ty-radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--ty-shadow-sm);
}
.feature-card h3 { font-size: 1.15rem; margin: 0.9rem 0 0.4rem; }
.feature-card p  { color: var(--ty-muted); margin: 0; font-size: 0.95rem; }
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ty-shadow-sm);
}
.feature-card__icon--purple { background: linear-gradient(135deg, #7c5cff, #5636d6); }
.feature-card__icon--teal   { background: linear-gradient(135deg, #12c2b8, #0e9e96); }
.feature-card__icon--orange { background: linear-gradient(135deg, #ff9a45, #ff6a3d); }

/* --- SSO integration badge row (/school/) ------------------------------- */
.sso-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.sso-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ty-border);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  color: var(--ty-ink);
  box-shadow: var(--ty-shadow-sm);
}

/* --- Implementation steps strip (/school/) ------------------------------ */
.impl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.impl-step {
  text-align: center;
  padding: 0 0.5rem;
}
.impl-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ty-purple);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.impl-step h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.impl-step p  { color: var(--ty-muted); margin: 0; }

/* --- Hour of Code teaser (/play/) --------------------------------------- */
.hoc {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hoc__copy { min-width: 0; }
.hoc__copy .section__title { margin: 0.7rem 0 0.5rem; }
.hoc__copy .section__sub { margin-bottom: 1.4rem; }
.hoc__art {
  background: #fff;
  border: 1px solid var(--ty-border);
  border-radius: var(--ty-radius);
  box-shadow: var(--ty-shadow-sm);
  padding: 1.5rem;
}
/* A disabled/coming-soon CTA still looks like a button but reads as inactive. */
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn[aria-disabled="true"]:hover { transform: none; }
}

/* --- Responsive: collapse the audience-page grids under 800px ----------- */
@media (max-width: 800px) {
  .ageband,
  .quote-grid,
  .feature-grid,
  .impl-steps { grid-template-columns: 1fr; }
  .hoc { grid-template-columns: 1fr; }
  .hoc__art { order: -1; max-width: 320px; }
}

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================================= */
/* Public project share / play surfaces (PROJ-038 / PROJ-045)              */
/* ======================================================================= */
.share-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  max-width: 1080px;
  margin: 24px auto;
  padding: 0 16px;
}
.share-title { font-size: 1.5rem; margin: 0 0 12px; }
.share-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.share-btn {
  display: inline-block; padding: 4px 12px; border: 1px solid #d0d5dd;
  border-radius: 6px; font-size: 0.85rem; text-decoration: none; color: #344054;
}
.share-board, .play-board { background: #eef1f6; border-radius: 10px; padding: 8px; }
.share-player, .play-player { width: 100%; max-width: 660px; border: 0; border-radius: 6px; }
.share-about { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e4e7ec; }
.share-side { font-size: 0.9rem; }
.share-author h4 { margin: 0 0 4px; }
.share-desc { margin: 16px 0; }
.share-stats ul { list-style: none; padding: 0; margin: 12px 0 0; }
.share-stats li { padding: 4px 0; border-bottom: 1px solid #f2f4f7; }

.play-shell { max-width: 760px; margin: 24px auto; padding: 0 16px; text-align: center; }
.play-title { margin: 16px 0 2px; }
.play-by { color: #667085; margin: 0 0 8px; font-weight: 500; }
.play-share a { color: #1570ef; }

@media (max-width: 860px) {
  .share-shell { grid-template-columns: 1fr; }
}

/* Community card / detail thumbnail images (PROJ-021). */
.comm-card__thumb, .comm-detail__thumb {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit;
}

/* Student dashboard resume-project card (PROJ-081). */
.stu-resume {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; margin-bottom: 14px;
  background: linear-gradient(90deg, #fef0c7, #fee4e2);
  border-radius: 12px; text-decoration: none; color: #442a08;
}
.stu-resume__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.stu-resume__title { font-size: 1.1rem; font-weight: 700; }
.stu-resume__meta { font-size: 0.8rem; opacity: .7; }

/* Parent per-child project thumbnails. */
.pd-cert__thumb { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }

/* --- Accessibility ------------------------------------------------------- */
/* Skip link: first tab stop on every page, hidden until focused. */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--ty-purple);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease-out;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}

/* Visible keyboard focus ring for every interactive element. */
:focus-visible {
  outline: 3px solid var(--ty-purple);
  outline-offset: 2px;
}

/* Skip-link target: suppress the ring on the programmatically focused main. */
main[tabindex="-1"]:focus {
  outline: none;
}

/* Screen-reader-only text. */
.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;
}
