/* Capabl Play, Grade 8 look: "clean tech". Loaded after play.css and class.css; only acts under <html class="g8">.
   Grown-up and calm: white and cool grey, slate ink, one blue accent, thin borders, no bounce. Light only. */
html.g8 {
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #eff4ff;
  --good: #15803d;
  --good-soft: #ecfdf3;
  --bad: #b91c1c;
  --bad-soft: #fef2f2;
  --sun: #2563eb; --sun-deep: #1d4ed8; --sun-soft: #eff4ff;
  --teal: #ffffff; --teal-deep: #e2e8f0; --teal-soft: #f1f5f9;
  --sky: #2563eb; --sky-soft: #eff4ff;
  --leaf: #15803d; --leaf-deep: #166534; --leaf-soft: #ecfdf3; --lime: #16a34a;
  --coral: #dc2626; --coral-soft: #fef2f2;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: only light;
}
html.g8 body { background: var(--paper); background-image: none; font-size: 18px; line-height: 1.5; }
html.g8 h1, html.g8 h2, html.g8 h3 { font-weight: 700; letter-spacing: -0.02em; }
html.g8 h1 { font-size: 40px; } html.g8 h2 { font-size: 28px; } html.g8 h3 { font-size: 21px; }
html.g8 button { font-family: var(--body); }
html.g8 header.top { background: #fff; box-shadow: none; border-bottom: 1px solid var(--line); }
html.g8 .brand-logo { border-radius: 8px; padding: 4px 6px; }
html.g8 .brand-title b { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
html.g8 .brand-title > span { font-weight: 500; color: var(--ink-soft); }
html.g8 .chip-btn { border: 1px solid var(--line); background: #fff; }
html.g8 .chip-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
html.g8 .panel { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .12); }
html.g8 .big-btn {
  animation: none; border-radius: 10px; padding: 12px 26px; font-size: 19px; font-weight: 600;
  background: var(--accent); color: #fff; box-shadow: none; transition: background .15s, transform .1s;
}
html.g8 .big-btn:hover:not(:disabled) { background: var(--accent-deep); box-shadow: none; transform: none; scale: 1; filter: none; }
html.g8 .big-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; scale: 1; }
html.g8 .ghost-btn { border: 1px solid var(--line); border-radius: 10px; font-size: 17px; font-weight: 600; padding: 9px 18px; }
html.g8 .ghost-btn:hover:not(:disabled) { scale: 1; border-color: var(--ink-soft); }
html.g8 .big-choices button { border: 1px solid var(--line); border-radius: 12px; font-size: 20px; font-weight: 600; }
html.g8 .big-choices button:hover:not(:disabled) { scale: 1; border-color: var(--accent); }
html.g8 .big-choices button .e { font-size: 34px; }
html.g8 .txt { border: 1px solid var(--line); border-radius: 10px; }
html.g8 .txt:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
html.g8 .code-box { font-family: var(--display); font-weight: 700; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; color: var(--accent-deep); }
html.g8 .feedback { border-radius: 10px; font-size: 18px; }
html.g8 .feedback.info { background: var(--accent-soft); }
html.g8 .dialog { border-radius: 14px; }
html.g8 .toast { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .3); font-size: 18px; }
html.g8 .update-bar { border: 1px solid var(--accent); background: #fff; }

/* Hub page (site/index.html) when it shows Grade 8 */
html.g8 section.hero { background: #fff; border-bottom: 1px solid var(--line); }
html.g8 section.hero .dots { display: none; }
html.g8 section.hero h1 em { background: none; color: var(--accent); }
html.g8 .gcard { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
html.g8 .gcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -16px rgba(15, 23, 42, .25); }
html.g8 .gbody h3 { font-size: 24px; }
html.g8 .gbody p { font-size: 16px; }
html.g8 .day { background: var(--accent-soft); color: var(--accent-deep); font-family: var(--body); font-weight: 600; border-radius: 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
html.g8 .tags span { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-weight: 500; font-size: 13px; }
html.g8 .grade-chip { background: none; box-shadow: none; padding: 0; font-size: 32px; color: var(--ink); }
html.g8 .back-link { border: 1px solid var(--line); border-radius: 10px; font-family: var(--body); font-weight: 600; font-size: 16px; }
html.g8 section.hero { padding: 36px 20px 28px; }
html.g8 section.hero .hero-art { display: none; }
html.g8 main { margin-top: 0; }
