/* The Chromozone onboarding (R10, 12 Nov 2026): the homepage quiz (.ob*, js/onboard-quiz.js) and the Start here strip
   and tour on a new teacher's first lesson (.obs*, js/onboard-start.js, which loads this file itself).
   House style: Poppins headings and buttons, Nunito body, paper #f7f4ec, ink #12302b, primary #3B6255, yellow #e3c567. */

/* ---------- the quiz ---------- */
.ob { --ink: #12302b; --ink2: #2f4f49; --g3: #3B6255; --line: #e1dccd; --hl: #e3c567; margin: 8px auto 0; max-width: 960px; text-align: left; }
.ob [hidden] { display: none !important; }
.ob-title { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: clamp(1.5rem, 5.5vw, 2.1rem); line-height: 1.2; text-align: center; margin: 0 0 16px; color: var(--ink); }
.ob-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px 18px; box-shadow: 0 12px 30px rgba(18, 48, 43, 0.08); }
.ob-prog { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 0.85rem; font-weight: 700; color: var(--ink2); }
.ob-bar { display: flex; gap: 4px; flex: 1; max-width: 220px; }
.ob-bar i { flex: 1; height: 6px; border-radius: 3px; background: #e1dccd; }
.ob-bar i.on { background: var(--g3); }
.ob-q { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin: 0 0 4px; color: var(--ink); }
.ob-q:focus { outline: none; }
.ob-q:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ob-lede { margin: 0 0 14px; color: var(--ink2); font-size: 0.98rem; }
.ob-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ob-chip { font: inherit; font-weight: 700; font-size: 0.98rem; color: var(--ink); text-decoration: none; cursor: pointer; display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 48px; padding: 9px 20px; border-radius: 14px; border: 2px solid #c9c3b0; background: #fff; text-align: left; transition: transform 0.15s, box-shadow 0.15s; }
.ob-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18, 48, 43, 0.14); color: var(--ink); }
.ob-chip-name { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; }
.ob-chip-sub { font-size: 0.8rem; font-weight: 600; color: var(--ink2); }
.ob-chip--role { border-radius: 999px; padding: 10px 26px; flex-direction: row; align-items: center; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; background: #e8f1ec; border-color: var(--g3); }
.ob-chip--link, .ob-chip--alt { background: #fff; }
.ob-c-bio { background: #CBDED3; border-color: #8BA49A; }
.ob-c-psy { background: #F0D9C6; border-color: #D19A73; }
.ob-c-chem { background: #CFDCE3; border-color: #8DA3B3; }
.ob-c-pri { background: #fbf3d4; border-color: #e3c567; }
.ob-chip[aria-current], .ob-unit[aria-current] { border-width: 3px; padding: 7px 18px; }
.ob-c-bio[aria-current] { border-color: #3B6255; } .ob-c-psy[aria-current] { border-color: #9A5A33; }
.ob-c-chem[aria-current] { border-color: #3B5A70; } .ob-c-pri[aria-current] { border-color: #8a6d10; }
.ob-units { display: grid; gap: 8px; }
.ob-grp { margin: 6px 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g3); }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.ob-unit { font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 12px; border: 2px solid #c9c3b0; transition: transform 0.15s, box-shadow 0.15s; }
.ob-unit:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18, 48, 43, 0.14); }
.ob-unit-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ob-unit-k { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; }
.ob-unit-t { font-size: 0.92rem; line-height: 1.35; }
.ob-tag { flex: none; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #efeadc; color: var(--ink2); }
.ob-tag--free { background: #e4efe2; color: #2f5a33; }
.ob-tag--some { background: #fbf3d4; color: #5c4a0a; }
.ob-fs { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.ob-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ob-legend--vis { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 8px; padding: 0; }
.ob-opt { font-family: 'Nunito', system-ui, sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--ink2); }
.ob-lessons { border: 1px solid var(--line); border-radius: 12px; }
.ob-lesson { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.ob-lesson:last-child { border-bottom: 0; }
.ob-lesson:hover { background: #f7f4ec; }
.ob-lesson input { flex: none; margin-top: 4px; width: 18px; height: 18px; accent-color: #3B6255; }
.ob-lesson-t { flex: 1; font-size: 0.95rem; line-height: 1.4; }
.ob-lesson:has(input:checked) { background: #e8f1ec; }
.ob-lesson:has(input:focus-visible), .ob-pill:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
.ob-pill { cursor: pointer; }
.ob-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ob-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 2px solid #c9c3b0; border-radius: 999px; font-weight: 700; background: #fff; }
.ob-pill input:checked + span { border-color: #3B6255; background: #e8f1ec; }
.ob-pill:has(input:focus-visible) { outline-offset: 2px; border-radius: 999px; }
.ob-go { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 1rem; min-height: 48px; padding: 11px 26px; border-radius: 8px; border: 2px solid #3B6255; background: #3B6255; color: #fff; cursor: pointer; }
.ob-go:hover { background: #12302b; border-color: #12302b; }
.ob-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; font-size: 0.92rem; }
.ob-foot > :only-child { margin-left: auto; }
.ob-back { font: inherit; font-weight: 700; background: none; border: 0; padding: 6px 4px; color: var(--g3); cursor: pointer; text-decoration: underline; }
.ob-skip { font-weight: 700; color: var(--g3); }
.ob button:focus-visible, .ob a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 560px) {
  .ob-card { padding: 18px 16px 14px; }
  .ob-row > .ob-chip { flex: 1 1 100%; }
  .ob-chip--role { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ob-chip, .ob-unit { transition: none; } .ob-chip:hover, .ob-unit:hover { transform: none; } }

/* ---------- the Start here strip and the tour (on the lesson's Plan tab) ---------- */
.obs { --ink: #12302b; --ink2: #2f4f49; --g3: #3B6255; --line: #e1dccd; --hl: #e3c567; font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); line-height: 1.5;
  background: #12302b; border-radius: 14px; padding: 18px 20px; margin: 0 0 18px; }
.obs [hidden] { display: none !important; }
.obs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.obs-title { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 1.1rem; margin: 0; color: #f7f4ec; }
.obs-title span { font-family: 'Nunito', system-ui, sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--hl); margin-left: 8px; }
.obs-hide { font: inherit; font-weight: 700; font-size: 0.88rem; background: none; border: 0; color: #f7f4ec; text-decoration: underline; cursor: pointer; padding: 6px 4px; }
.obs-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.obs-step { display: flex; align-items: center; gap: 12px; background: #f7f4ec; color: var(--ink); text-decoration: none; border-radius: 10px; padding: 12px 14px; border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; min-height: 64px; }
.obs-step:hover { background: #fff; color: var(--ink); }
.obs-n { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #3B6255; display: inline-flex; align-items: center; justify-content: center; font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: 1rem; color: #3B6255; background: #fff; }
.obs-done .obs-n { background: #3B6255; color: #fff; }
.obs-t b { display: block; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 0.95rem; }
.obs-t span { display: block; font-size: 0.85rem; color: var(--ink2); }
.obs-note { margin: 12px 0 0; color: #f7f4ec; font-size: 0.92rem; }
.obs-note a { color: var(--hl); font-weight: 700; }
.obs a:focus-visible, .obs button:focus-visible, .obs-tour a:focus-visible, .obs-tour button:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
.obs-step:focus-visible { outline-color: #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #12302b; }
.obs-show { font: inherit; font-size: 0.9rem; margin: 0 0 14px; color: var(--ink2); }
.obs-show button { font: inherit; font-weight: 700; background: none; border: 0; color: #3B6255; text-decoration: underline; cursor: pointer; padding: 4px; }

/* the tour: a small card inside the strip, in the page flow; nothing is covered and no screen is dimmed */
.obs-tour { margin: 14px 0 0; background: #1d453d; color: #f7f4ec; border: 2px solid #e3c567; border-radius: 12px; padding: 14px 16px; max-width: 560px;
  font-family: 'Nunito', system-ui, sans-serif; line-height: 1.5; }
.obs-tour [hidden] { display: none !important; }
.obs-tour-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.obs-tour-n { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hl, #e3c567); }
.obs-x { background: none; border: 0; color: #f7f4ec; cursor: pointer; padding: 4px; line-height: 0; border-radius: 6px; }
.obs-tour h3 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; margin: 0 0 4px; color: #f7f4ec; }
.obs-tour h3:focus { outline: none; }
.obs-tour p { margin: 0 0 12px; font-size: 0.93rem; }
.obs-tour-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.obs-tour-foot button { font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.obs-link { background: none; border: 0; color: #e3c567; text-decoration: underline; padding: 6px 2px; }
.obs-next { font-family: 'Poppins', system-ui, sans-serif !important; font-weight: 600 !important; background: #e3c567; color: #12302b; border: 0; border-radius: 8px; padding: 8px 16px; }
.obs-next:hover { background: #fff; }
.obs-hl { outline: 3px solid #e3c567; outline-offset: 3px; border-radius: 8px; }
@media (max-width: 760px) {
  .obs-steps { grid-template-columns: minmax(0, 1fr); }
}
.obs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.obs-n svg { width: 18px; height: 18px; }

/* ---------- /account/: the summary of the quiz answers above the sign-up form (css loaded by js/account.js) ---------- */
.acct-ob { background: #e8f1ec; border: 1px solid #8BA49A; border-left: 6px solid #3B6255; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.acct-ob p { margin: 0; }
.acct-ob-sum { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 1.02rem; color: #12302b; }
.acct-ob-lead { margin-top: 4px !important; color: #12302b; font-size: 0.95rem; }
.acct-ob-change { margin-top: 6px !important; font-size: 0.9rem; font-weight: 700; }

/* /account/ from the quiz: the role is already chosen, so the role choice is hidden (the radios stay in the DOM) */
#signup-form .roles[hidden] { display: none !important; }
