/* ============================================================================
   dccmo-course-v1.css  -  12 Dollar Comedy Course (Missouri) - student pages
   BUILD 2026-11-23-G
   ----------------------------------------------------------------------------
   ONE file for the Missouri student path (12dollarcomedycourse.com and
   pay.universalecom.com/mo/). Adds to main.css; does not replace it.
   Covers:   chapter pages (timer pinned to the top, floating Continue,
             instruction notes), student home (traffic light, progress,
             chapter table), chapter quiz and quiz result, the identity check
             before the final test, the final test, the failed-test page,
             "You're not quite done yet", registration and shipping phone fit.
   B adds:   login page (card, full-width fields, red error box).
   C adds:   readable Continue button on the quiz result, compact navy footer,
             red error box on registration.
   D adds:   header pinned with the timer under it (desktop), small logo in
             the phone title bar so it no longer covers the timer,
             registration steps back on top on phones, compact, done
             steps ticked green.
   E adds:   "Change your profile information" page fits a phone (labels
             above fields, date pickers fit, Continue/Back full width),
             buttons can never run off the screen on any page.
   F adds:   brand header pinned to the top on EVERY student page (desktop
             and phone), timer under it when there is one. Order: brand,
             then timer.
   G adds:   Yes / No security questions before the final test: normal-size
             radio buttons, Yes and No side by side on one line.
   INSTALL:  <link> as the LAST line inside <head>, AFTER main.css.
             Use the FULL address on BOTH sites (pay.universalecom.com/mo/
             has no copy of this file, so a short "assets/css/..." link 404s):
             https://12dollarcomedycourse.com/assets/css/dccmo-course-v1.css
             menu.css and chapters.css load later in <body>, so rules that
             must beat them start with #main-wrapper.
   Never changes display/visibility of #Continue or the quiz; the course
   script still controls them.
   Palette (Luis, 2026-08-02): navy/red/white; green ONLY for money / done.
   ========================================================================= */

:root{
  --navy:#14213D; --navy-dk:#0D1730; --red:#B22234; --red-dk:#8E1B29;
  --done:#0E6B3C; --gold:#FFC72C; --ink:#1F1B16; --muted:#5E5A52;
  --line:#E4DCCB; --row:#F6F7FA; --row2:#EEF1F6; --note:#FFF8E1; --note-line:#F2D27A;
  --top:0px;                    /* height of anything pinned above the timer */
}
@media screen and (max-width:980px){ :root{ --top:44px; } }   /* main.js title bar */

/* ---------- base ---------- */
#main-wrapper .wrapper.style1{ text-shadow:none; }
#main-wrapper .inner{ color:var(--ink); }
#main-wrapper img{ max-width:100%; height:auto; }

/* course pages: the big road banner pushes the lesson below the fold */
body:has(#course_content) #banner, body:has(.mainbox) #banner,
body:has(form[name="finaltest"]) #banner, body:has(.security_entry) #banner,
body:has(#menu_container) #banner, body:has(#table1) #banner{ display:none; }
body:has(#course_content) #header-wrapper, body:has(.mainbox) #header-wrapper,
body:has(form[name="finaltest"]) #header-wrapper{ padding:1em 0; }
@media screen and (max-width:980px){
  body:has(#course_content) #header-wrapper, body:has(.mainbox) #header-wrapper,
  body:has(form[name="finaltest"]) #header-wrapper, body:has(.security_entry) #header-wrapper,
  body:has(#menu_container) #header-wrapper{ display:none; }
  body:has(#course_content) #main-wrapper, body:has(.mainbox) #main-wrapper,
  body:has(form[name="finaltest"]) #main-wrapper, body:has(.security_entry) #main-wrapper,
  body:has(#menu_container) #main-wrapper{ padding-top:44px; }
}
body:has(#course_content) .wrapper, body:has(.mainbox) .wrapper,
body:has(form[name="finaltest"]) .wrapper, body:has(#menu_container) .wrapper,
body:has(.security_entry) .wrapper{ padding:2em 0 3em; }

/* shared button look */
#main-wrapper .inner input[type="submit"]{
  background-image:none; background-color:var(--red); color:#fff !important; text-shadow:none;
  border-radius:10px; box-shadow:0 3px 0 #7E1624; padding:14px 30px; min-height:48px; font-size:1em;
}
#main-wrapper .inner input[type="submit"]:hover{ background-color:var(--red-dk); }
#main-wrapper .inner input[type="button"]{
  background-image:none; background-color:#fff; color:var(--navy) !important; text-shadow:none;
  box-shadow:inset 0 0 0 2px var(--navy); border-radius:10px; min-height:48px;
}
#main-wrapper .inner input[type="submit"]:focus-visible,
#main-wrapper .inner input[type="button"]:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; }

/* ============================================================================
   1. CHAPTER PAGES (show.php)
   ========================================================================= */
/* the timer: pinned to the top of the screen for the whole chapter */
body:has(#Timer) #main-wrapper{ padding-top:calc(var(--top) + 52px); }
#main-wrapper #course_note #Timer{
  position:fixed; left:0; right:0; top:var(--top); z-index:10000;
  width:auto; margin:0; padding:0 12px; height:52px;
  background:var(--navy); color:#fff; text-align:center;
  font:700 20px/52px Arial, Helvetica, sans-serif; font-variant-numeric:tabular-nums;
  box-shadow:0 3px 10px rgba(0,0,0,.25);
}
#main-wrapper #course_note #TimerText{ color:#fff; font:inherit; }
#main-wrapper #course_note #TimerText::before{ content:"\23F1  "; font-weight:400; }
/* time is up: the script swaps the text to "You can move on now!" */
#main-wrapper #course_note #Timer:not(:has(#TimerText)){ background:var(--done); }

/* top note: calm yellow box, wording matches the timer at the top */
#main-wrapper #course_note{
  background:var(--note); border:1px solid var(--note-line); border-left:6px solid var(--gold); border-radius:10px;
  color:var(--ink); font:500 15px/1.5 Arial, Helvetica, sans-serif; text-align:left; padding:14px 16px; margin:0 0 16px;
}
#main-wrapper #course_note strong{ color:var(--red); }
body:has(#Timer) #main-wrapper #course_note:not(:has(#Timer)){ font-size:0; line-height:0; }
body:has(#Timer) #main-wrapper #course_note:not(:has(#Timer)) *{ display:none; }
body:has(#Timer) #main-wrapper #course_note:not(:has(#Timer))::before{
  display:block; font:500 15px/1.5 Arial, Helvetica, sans-serif; color:var(--ink);
  content:"Stay on this page until the timer at the top reaches 0:00, then press Continue. Leaving this page or opening other tabs or windows resets the timer and your progress will not be saved. Keep scrolling and reading so you are not timed out for inactivity. If the timer runs out or the payment page shows again, go back to the home page and log in again.";
}
/* bottom note: short reminder; the timer itself now lives at the top */
#main-wrapper #course_note:has(#Timer){ font-size:0; line-height:0; text-align:center; }
#main-wrapper #course_note:has(#Timer) > br{ display:none; }
#main-wrapper #course_note:has(#Timer)::before{
  display:block; font:500 15px/1.5 Arial, Helvetica, sans-serif; color:var(--ink);
  content:"Continue unlocks when the timer at the top of your screen reaches 0:00. Do not leave this page or step away longer than the timer, or you will be logged out.";
}
#main-wrapper #course_note:has(#Timer) > div[align="center"]{ height:0; }

/* Continue: floats bottom-right once the script makes it visible */
#main-wrapper #course_note #Continue br{ display:none; }
#main-wrapper #course_note #Continue[style*="visible"]{
  position:fixed; right:24px; bottom:24px; z-index:10000; margin:0 !important;
}
#main-wrapper #course_note #Continue a{
  display:inline-block; padding:16px 34px; border-radius:999px; text-decoration:none;
  background:var(--red); color:#fff; box-shadow:0 6px 18px rgba(178,34,52,.45);
  font:700 22px/1 Arial, Helvetica, sans-serif;
}
#main-wrapper #course_note #Continue a::after{ content:"  \2192"; white-space:pre; }
#main-wrapper #course_note #Continue a:hover{ background:var(--red-dk); }
#main-wrapper #course_note #Continue[style*="visible"] a{ animation:dcc-pop .5s ease-out 1, dcc-pulse 2s ease-in-out .5s 3; }
body:has(#Continue[style*="visible"]) #main-wrapper .wrapper{ padding-bottom:110px; }
@keyframes dcc-pop{ from{ transform:scale(.6); opacity:0; } to{ transform:scale(1); opacity:1; } }
@keyframes dcc-pulse{ 0%,100%{ box-shadow:0 6px 18px rgba(178,34,52,.45); } 50%{ box-shadow:0 0 0 10px rgba(178,34,52,.18); } }
@media (prefers-reduced-motion:reduce){ #main-wrapper #course_note #Continue a{ animation:none !important; } }

/* section / text-size bar */
#main-wrapper #dock{ width:auto; height:auto; margin:0 0 18px; padding:10px 14px; background:var(--row); border:0; border-radius:10px;
  display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; }
#main-wrapper .dock_content{ float:none; width:auto; color:var(--navy); font:600 14px/1.3 Arial, sans-serif; }
#main-wrapper .dock_content a{ color:var(--red); margin-left:10px; text-decoration:none; }

/* reading: chapters.css sets 62.5% on the container, which makes text tiny */
#main-wrapper #content_container{ font-size:100% !important; }
#main-wrapper #course_content{ font-size:17px; line-height:1.6; padding:0; color:var(--ink); }
#main-wrapper #course_content p{ color:var(--ink); }
#main-wrapper #course_content h1{ color:var(--navy); border-bottom:3px solid var(--red); font-size:28px; }
#main-wrapper #course_content h2{ color:var(--red); font-size:23px; }
#main-wrapper #course_content h3, #main-wrapper #course_content h4{ color:var(--navy); }
#main-wrapper #course_content .caption{ color:var(--muted); }
#main-wrapper #course-footer-links a{ color:var(--navy); font-weight:600; }

/* ============================================================================
   2. STUDENT HOME (home.php): traffic light, progress, chapter table
   ========================================================================= */
#main-wrapper #menu_header{ background:transparent; height:auto; padding:0; display:flex; gap:20px;
  align-items:stretch; flex-wrap:wrap; margin:0 0 20px; }
#main-wrapper #stoplight_container{ float:none; height:auto; flex:1 1 300px; display:block; }
#main-wrapper #stoplight_container table{ width:100%; height:auto; border-collapse:separate; border-spacing:0 8px; margin:0; }
#main-wrapper #stoplight_container #red_light,
#main-wrapper #stoplight_container #yellow_light,
#main-wrapper #stoplight_container #green_light{ background:none; width:auto; height:auto; }
#main-wrapper #stoplight_container td a,
#main-wrapper #stoplight_container td a:hover{ display:flex; align-items:center; gap:14px; height:auto; padding:0; background:none; text-decoration:none; }
#main-wrapper #stoplight_container td a::before{ content:""; flex:none; width:34px; height:34px; border-radius:50%;
  border:6px solid var(--navy-dk); background:#888; box-shadow:inset 0 -3px 6px rgba(0,0,0,.35); }
#main-wrapper #stoplight_container #red_light a::before{ background:#D93A3A; }
#main-wrapper #stoplight_container #yellow_light a::before{ background:#F2B705; }
#main-wrapper #stoplight_container #green_light a::before{ background:#2FA84F; }
#main-wrapper #stoplight_container .light_text{ margin:0; font:700 18px/1.25 Arial, sans-serif; color:var(--navy); }
#main-wrapper #stoplight_container td a:hover .light_text{ color:var(--red); }
#main-wrapper #stoplight_container #green_light a{ background:var(--row2); border-radius:999px; padding:6px 18px 6px 6px !important; }
#main-wrapper #stoplight_container #green_light .light_text{ color:var(--done); }
#main-wrapper #profile_container{ float:none; width:auto; flex:1 1 220px; display:block; box-sizing:border-box;
  background:var(--row); border:1px solid var(--line); border-radius:10px; padding:14px 16px; font-size:14px; line-height:1.5; color:var(--ink); }
#main-wrapper #profile_container b{ color:var(--navy); }

#main-wrapper #prog_per{ font:700 16px/1 Arial, sans-serif; color:var(--navy); text-align:left; margin:0 0 6px; }
#main-wrapper #prog_bar{ height:12px; border:0; border-radius:999px; background:var(--row2); overflow:hidden; margin:0 0 16px; }
#main-wrapper #prog_bar > div{ height:12px !important; background:var(--red) !important; border-radius:999px; }
#main-wrapper #menu_container ~ table{ width:100%; max-width:640px; margin:0 auto; }

#main-wrapper #menu_table{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--line);
  border-radius:10px; overflow:hidden; margin:0 0 12px; }
#main-wrapper #menu_table td{ width:auto; padding:10px 12px !important; vertical-align:middle; font-size:14px !important;
  border-bottom:1px solid var(--line); background:#fff; color:var(--ink); }
#main-wrapper #menu_table tr:last-child td{ border-bottom:0; }
#main-wrapper #menu_table tr:nth-child(odd):not(.menu_header) td{ background:var(--row); }
#main-wrapper #menu_table .menu_header td{ background:var(--navy); color:#fff; font:700 13px/1 Arial, sans-serif !important; letter-spacing:.04em; text-transform:uppercase; }
#main-wrapper #menu_table .menu_header td b{ color:#fff; }
#main-wrapper #menu_table ul{ margin:0; padding:0; }
#main-wrapper #menu_table .sections{ font-size:15px; color:var(--ink); }
#main-wrapper #menu_table .sections a{ color:var(--navy); }
#main-wrapper #menu_table td:first-child{ white-space:nowrap; color:var(--navy); }
#main-wrapper #menu_table td:nth-child(3), #main-wrapper #menu_table td:last-child{ text-align:center; }
#main-wrapper #menu_table td:nth-child(3) img{ margin:0; max-width:72px; }
#main-wrapper .menu_footer{ width:100%; border:1px solid var(--line); border-radius:10px; border-collapse:separate; overflow:hidden; }
#main-wrapper .menu_footer td{ padding:10px !important; background:var(--row); }
#main-wrapper .menu_footer a{ color:var(--red); }
#main-wrapper #chapreview{ left:50%; width:min(890px,96vw); margin-left:0; transform:translateX(-50%); }
#main-wrapper #chapreview iframe{ width:100%; }
#main-wrapper #reviewbar{ width:100%; box-sizing:border-box; }

/* ============================================================================
   3. CHAPTER QUIZ + QUIZ RESULT (.mainbox)
   ========================================================================= */
#main-wrapper .mainbox{ max-width:680px; margin:0 auto; text-align:left; }
#main-wrapper .mainbox p{ color:var(--ink); }
#main-wrapper .mainbox .question{ margin:22px 0 8px; font:700 17px/1.35 Arial, sans-serif; color:var(--navy); }
#main-wrapper .mainbox .answer{ margin:6px 0; padding:10px 12px; background:var(--row); border-radius:8px; font-size:16px; color:var(--ink); }
#main-wrapper .mainbox .answer input{ width:20px; height:20px; margin:0 8px 0 0; vertical-align:-4px; accent-color:var(--navy); }
#main-wrapper .mainbox .answer:has(input:checked){ background:var(--row2); box-shadow:inset 4px 0 0 var(--navy); }
/* quiz result: the Continue link becomes a button */
#main-wrapper .mainbox > a[href*="show="]{ display:inline-block; margin-top:10px; padding:14px 30px; border-radius:10px;
  background:var(--red) !important; color:#fff; text-decoration:none; font:700 18px/1 Arial, sans-serif; box-shadow:0 3px 0 #7E1624; }
#main-wrapper .mainbox > a[href*="show="]::after{ content:"  \2192"; white-space:pre; }

/* ============================================================================
   4. IDENTITY CHECK before the final test (start-test.php)
   ========================================================================= */
/* the page says "YES / NO questions"; these are typed answers */
#main-wrapper form[action="start-test.php"]:has(.security_entry){ font-size:0; line-height:0; max-width:560px; margin:0 auto; }
#main-wrapper form[action="start-test.php"]:has(.security_entry) > br{ display:none; }
#main-wrapper form[action="start-test.php"]:has(.security_entry)::before{
  display:block; margin:0 0 14px; font:600 17px/1.45 Arial, sans-serif; color:var(--navy); text-align:left;
  content:"Before the final test, answer these questions the same way you did when you registered.";
}
#main-wrapper .security_entry{ width:auto; max-width:560px; text-align:left; font-size:16px; line-height:1.4;
  background:#fff; border:2px solid var(--navy); border-radius:12px; padding:14px 16px; box-sizing:border-box; color:var(--ink); }
#main-wrapper .security_entry .entry{ display:grid; grid-template-columns:1fr 180px; gap:6px 12px; align-items:center;
  margin:0; padding:10px 0; border-bottom:1px solid var(--line); }
#main-wrapper .security_entry .entry:last-child{ border-bottom:0; }
#main-wrapper .security_entry .entry input{ float:none !important; width:100% !important; margin:0 !important;
  font-size:16px !important; line-height:1.4 !important; padding:10px 12px; min-height:44px; box-sizing:border-box; }
#main-wrapper form[action="start-test.php"] input[type="submit"]{ margin-top:16px; font-size:16px; line-height:1; }
/* "Take The Test!" page */
#main-wrapper #test{ height:auto; border:0; }

/* ============================================================================
   5. FINAL TEST (finaltest.php) and failed-test page
   ========================================================================= */
#main-wrapper form[name="finaltest"]{ color:var(--ink); }
body:has(input[name^="qst"]) #main-wrapper .inner > div[style*="margin-left"]{ max-width:760px; margin:0 auto !important; }
body:has(input[name^="qst"]) #main-wrapper .inner div[style*="font-size:16px"]{ margin:26px 0 8px !important; color:var(--navy); }
body:has(input[name^="qst"]) #main-wrapper .inner div[style*="font-size:16px"] b{ color:var(--navy); }
body:has(input[name^="qst"]) #main-wrapper .inner div[style*="font-size:14px"]{ margin:6px 0 !important; padding:10px 12px !important;
  background:var(--row); border-radius:8px; font-size:16px !important; color:var(--ink); }
body:has(input[name^="qst"]) #main-wrapper .inner div[style*="font-size:14px"]:has(input:checked){ background:var(--row2); box-shadow:inset 4px 0 0 var(--navy); }
body:has(input[name^="qst"]) #main-wrapper .inner input[type="radio"]{ width:20px; height:20px; margin:0 8px 0 0; vertical-align:-4px; accent-color:var(--navy); }
#main-wrapper .final{ max-width:640px; margin:0 auto; text-align:left; color:var(--ink); }
#main-wrapper .final a[href*="home.php"]{ display:inline-block; padding:12px 22px; border:2px solid var(--navy); border-radius:10px;
  color:var(--navy); text-decoration:none; font-weight:700; }

/* ============================================================================
   6. "YOU'RE NOT QUITE DONE YET" pay prompt (741px table)
   ========================================================================= */
#main-wrapper #table1{ width:100%; max-width:640px; margin:0 auto; }
#main-wrapper #table1 td{ text-align:left; }
#main-wrapper #table1 font{ font-family:inherit; color:var(--ink); }
#main-wrapper #table1 a[href*="payment.php"]{ display:inline-block; margin:6px 0 10px; padding:14px 26px; border-radius:10px;
  background:var(--red); color:#fff; text-decoration:none; font:700 17px/1 Arial, sans-serif; box-shadow:0 3px 0 #7E1624; }
#main-wrapper #table1 a[href*="payment.php"] b{ color:#fff; }

/* ============================================================================
   7. REGISTRATION + SHIPPING (pay.universalecom.com/mo/) - phone fit
   ========================================================================= */
#main-wrapper .registration_subdivision input.contact_field,
#main-wrapper .reg_row input.contact_field,
#main-wrapper .reg_row select{ min-height:44px; font-size:16px; box-sizing:border-box; }
#main-wrapper .shipping_option:has(input:checked){ box-shadow:inset 4px 0 0 var(--navy); }

/* ============================================================================
   PHONES
   ========================================================================= */
@media screen and (max-width:640px){
  html, body{ overflow-x:hidden; }
  #main-wrapper .wrapper > .inner{ margin:1em 12px; }
  #main-wrapper #course_note #Timer{ font-size:18px; }
  #main-wrapper #course_note #Continue[style*="visible"]{ left:12px; right:12px; bottom:12px; text-align:center; }
  #main-wrapper #course_note #Continue[style*="visible"] a{ display:block; }

  #main-wrapper #course_content{ font-size:16px; }
  #main-wrapper #course_content h1{ font-size:24px; }
  #main-wrapper #course_content ul, #main-wrapper #course_content ol{ margin-left:20px; }
  #main-wrapper .one_liners, #main-wrapper .insurance_claims, #main-wrapper .real_jokes,
  #main-wrapper div.joke_container{ width:auto; float:none; box-sizing:border-box; }
  #main-wrapper .joke_time{ margin-left:0; width:auto; }
  #main-wrapper .joke_guy{ float:none; margin:0 auto 6px; }
  #main-wrapper .left, #main-wrapper .img_l, #main-wrapper .right, #main-wrapper .img_r,
  #main-wrapper .img_lt, #main-wrapper .img_rt{ float:none; display:block; margin:12px auto; text-align:center; }
  #main-wrapper #course_content img{ padding-right:0 !important; }
  #main-wrapper #course_content table[width], #main-wrapper #course_content table[align]{
    width:100% !important; float:none !important; margin:0 0 16px !important; }
  #main-wrapper .chapter_title{ width:auto; height:auto; background:none; padding:10px; }
  #main-wrapper .dock_content{ width:100%; }

  #main-wrapper #menu_container ~ table, #main-wrapper #menu_container ~ table > tbody,
  #main-wrapper #menu_container ~ table > tbody > tr, #main-wrapper #menu_container ~ table > tbody > tr > td{ display:block; width:auto; }
  #main-wrapper #menu_table{ table-layout:fixed; }
  #main-wrapper #menu_table td{ padding:9px 6px !important; }
  #main-wrapper #menu_table tr > td:first-child{ width:62px; white-space:normal; font-size:12px !important; }
  #main-wrapper #menu_table tr > td:nth-child(3){ width:52px; }
  #main-wrapper #menu_table tr > td:last-child{ width:70px; font-size:12px !important; word-break:break-all; }
  #main-wrapper #menu_table .menu_header td{ font-size:11px !important; letter-spacing:0; word-break:normal; }
  #main-wrapper #menu_table td:nth-child(3) img{ max-width:48px; }
  #main-wrapper .menu_footer{ width:100% !important; }
  #main-wrapper #chapreview{ width:100vw; left:0; transform:none; }

  #main-wrapper .security_entry .entry{ grid-template-columns:1fr; }
  #main-wrapper form[action="start-test.php"] input[type="submit"]{ width:100%; }
  body:has(input[name^="qst"]) #main-wrapper .inner > div[style*="margin-left"]{ margin-left:0 !important; }
  body:has(input[name^="qst"]) #main-wrapper .inner div[style*="font-size:14px"]{ margin-left:0 !important; }
  #main-wrapper #table1 a[href*="payment.php"]{ display:block; text-align:center; }
}

/* ============================================================================
   8. LOGIN (login.php) - B
   ========================================================================= */
body:has(#login_container) #banner{ display:none; }
#main-wrapper #login_container{ width:auto; max-width:440px; margin:0 auto; text-align:left;
  background:#fff; border:2px solid var(--navy); border-radius:12px; padding:20px; box-sizing:border-box; }
#main-wrapper #login_container::before{ content:"Student sign in"; display:block; margin:0 0 12px;
  font:700 22px/1.2 Arial, sans-serif; color:var(--navy); }
#main-wrapper #login_container form > br{ display:none; }
#main-wrapper #login_container .fmrow .form_entry{ width:auto; background:none; padding:0 0 12px; text-align:left; }
#main-wrapper #login_container .form_entry label{ display:block; margin:0 0 4px; font-size:14px; color:var(--navy); }
#main-wrapper #login_container .form_entry input{ width:100%; min-height:46px; font-size:16px; line-height:1.4;
  padding:10px 12px; box-sizing:border-box; }
#main-wrapper #login_container input[type="submit"]{ width:100%; margin-top:6px; }
/* "Username and Password are both required..." */
#main-wrapper .inner > div[style*="color:red"]{ max-width:440px; margin:0 auto 14px; padding:12px 14px; box-sizing:border-box;
  background:#FDECEE; border-left:6px solid var(--red); border-radius:10px; color:var(--red-dk) !important;
  font:600 15px/1.45 Arial, sans-serif; text-align:left; }
#main-wrapper .inner > div[style*="color:red"] div{ text-align:left !important; }

/* ============================================================================
   9. BUILD C (2026-11-23)
   ========================================================================= */
/* quiz result Continue: the page sets red text inline, which vanished on the red button */
#main-wrapper .mainbox > a[href*="show="]{ color:#fff !important; font:700 20px/1 Arial, sans-serif !important;
  padding:16px 40px !important; border-radius:999px !important; text-shadow:none; }
#main-wrapper .mainbox > a[href*="show="]:hover{ background:var(--red-dk) !important; }
#main-wrapper .mainbox{ font:16px/1.6 Arial, sans-serif; color:var(--ink); }
#main-wrapper .mainbox > strong{ display:block; color:var(--red) !important; }
#main-wrapper #course-footer-links{ margin-top:14px; }
#main-wrapper #course-footer-links a{ color:var(--navy); font-weight:600; text-decoration:none; padding:6px 4px; }

/* footer: compact navy band instead of the tall empty dark block */
body:has(#footer-wrapper){ background:var(--navy) !important; }
#footer-wrapper{ padding:22px 0 !important; background:var(--navy) !important; background-image:none !important; }
#footer-wrapper #footer{ margin:0; }
#footer-wrapper #copyright{ margin:0; padding:0; border:0; color:#C9D3E6; font-size:14px; text-shadow:none; }
#footer-wrapper #copyright li{ color:#C9D3E6; }

/* registration: "Please fill in ..." list becomes a red box */
#main-wrapper #content div:has(> b[style*="color:red"]){ margin:0 0 18px; padding:12px 14px 12px 16px; background:#FDECEE;
  border-left:6px solid var(--red); border-radius:10px; font:600 14px/1.6 Arial, sans-serif; }
#main-wrapper #content div:has(> b[style*="color:red"]) b{ color:var(--red-dk) !important; font-weight:600; }
#main-wrapper #content div:has(> b[style*="color:red"])::before{ content:"Please complete these fields:"; display:block; margin:0 0 4px;
  font-weight:700; color:var(--red-dk); }
#main-wrapper #content input[type="submit"][name="submit"]{ font-size:18px !important; min-width:200px; }

/* ============================================================================
   10. BUILD D (2026-11-23)
   ========================================================================= */
/* phones: main.js copies the full-size logo into the 44px title bar, where it
   spilled down over the timer. Keep it small and inside the bar. */
@media screen and (max-width:980px){
  #titleBar{ background:var(--navy) !important; background-image:none !important; overflow:hidden; }
  #titleBar .title{ height:44px; line-height:44px; overflow:hidden; }
  #titleBar .title img{ height:34px !important; width:auto !important; max-width:70vw; top:0 !important;
    vertical-align:middle; display:inline-block; }
  #titleBar .toggle{ opacity:.8; }
}

/* desktop: slim navy brand header pinned on every student page; timer right under it */
@media screen and (min-width:981px){
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)){ --top:64px; }
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)) #banner{ display:none; }
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)) #header-wrapper{
    position:fixed; top:0; left:0; right:0; z-index:10001; height:64px;
    padding:0 !important; background:var(--navy) !important; box-shadow:0 2px 8px rgba(0,0,0,.25); }
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)) #main-wrapper{ padding-top:64px; }
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)) #header-wrapper .container{ width:auto; max-width:1200px; padding:0 20px; }
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)) #header{ padding:0; background:none; border-radius:0; }
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)) #header .inner{ height:64px; background:none !important; box-shadow:none; }
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)) #logo img{ height:48px; width:auto; top:8px !important; }
  body:is(:has(#Timer), :has(#menu_container), :has(.mainbox), :has(form[name="finaltest"]), :has(.security_entry),
    :has(#sidebar .sbItem), :has(#change_reg), :has(#login_container), :has(#table1), :has(.final)) #nav{ line-height:64px; }
  body:has(#Timer) #main-wrapper #course_note #Timer{ height:44px; line-height:44px; font-size:19px; }
  body:has(#Timer) #main-wrapper{ padding-top:calc(var(--top) + 44px); }
}

/* registration steps (Information / Username / Shipping / Payment) */
#main-wrapper #sidebar header.major{ margin:0 0 10px; border:0; }
#main-wrapper #sidebar header.major::after{ display:none; }
#main-wrapper #sidebar header.major h2{ margin:0; font-size:1.25em; color:var(--navy); }
#main-wrapper #sidebar .sbItem{ display:flex; align-items:center; gap:10px; margin:0 0 6px; padding:8px 14px;
  border-radius:8px; font-size:.85em; line-height:1.2; box-shadow:none; text-shadow:none; white-space:normal; }
#main-wrapper #sidebar .sbItem::before{ content:""; flex:none; width:18px; height:18px; border-radius:50%;
  border:2px solid currentColor; box-sizing:border-box; opacity:.9; font:700 12px/14px Arial, sans-serif; text-align:center; }
#main-wrapper #sidebar .sbInactive{ background:var(--row2) !important; color:var(--muted) !important; }
#main-wrapper #sidebar .sbActive{ background:var(--navy) !important; color:#fff !important; }
#main-wrapper #sidebar .sbActive::before{ background:#fff; border-color:#fff; }
/* every step above the current one is done */
#main-wrapper #sidebar .sbItem:has(~ .sbActive){ background:#E7F4EC !important; color:var(--done) !important; }
#main-wrapper #sidebar .sbItem:has(~ .sbActive)::before{ content:"\2713"; background:var(--done); border-color:var(--done); color:#fff; }
#main-wrapper #sidebar .sbItem.icon::before{ font-family:Arial, sans-serif; opacity:1; margin:0; }
@media screen and (max-width:980px){
  /* main.css moves the form above the steps on phones; put the steps back on top */
  #main-wrapper .row > .col-4:has(#sidebar){ order:-2; }
  body:has(#sidebar .sbItem) #header-wrapper{ display:none; }
  body:has(#sidebar .sbItem) #main-wrapper{ padding-top:44px; }
  body:has(#sidebar .sbItem) #main-wrapper .wrapper{ padding-top:16px; }
  #main-wrapper #sidebar{ margin:0; }
  #main-wrapper #sidebar section{ margin:0 0 4px; }
  #main-wrapper #sidebar section > p, #main-wrapper #sidebar footer{ display:none; }
  #main-wrapper #sidebar .sbItem{ padding:6px 12px; margin:0 0 4px; font-size:.8em; }
}

/* ============================================================================
   11. BUILD E (2026-11-23)
   ========================================================================= */
/* "Change your profile information" (page.php?template=change_reg) */
body:has(#change_reg) #banner{ display:none; }
#main-wrapper #change_reg{ width:auto !important; max-width:640px; margin:0 auto; padding:0 !important; box-sizing:border-box; }
#main-wrapper #change_reg input[type="text"], #main-wrapper #change_reg input[type="email"],
#main-wrapper #change_reg input[type="tel"], #main-wrapper #change_reg input:not([type]){
  width:100% !important; max-width:100%; min-height:44px; font-size:16px; box-sizing:border-box; }
#main-wrapper #change_reg select{ max-width:100%; min-height:44px; font-size:16px; box-sizing:border-box; }
#main-wrapper .change_label{ color:var(--navy); vertical-align:top; }
#main-wrapper .change_submit{ text-align:center; }

/* buttons: never wider than the screen, never cut off (all pages) */
#main-wrapper .inner input[type="submit"], #main-wrapper .inner input[type="button"], #main-wrapper .inner button{
  max-width:100%; white-space:normal; box-sizing:border-box; }
#main-wrapper .inner :is(div, td, p):has(> input[type="submit"] + input[type="button"]),
#main-wrapper .inner :is(div, td, p):has(> input[type="button"] + input[type="submit"]){
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }

@media screen and (max-width:980px){
  body:has(#change_reg) #header-wrapper{ display:none; }
  body:has(#change_reg) #main-wrapper{ padding-top:44px; }
  body:has(#change_reg) #main-wrapper .wrapper{ padding-top:16px; }
}
@media screen and (max-width:640px){
  /* one column: label on top, field under it */
  #main-wrapper table#change_reg, #main-wrapper table#change_reg > tbody, #main-wrapper table#change_reg > tbody > tr,
  #main-wrapper table#change_reg > tbody > tr > td,
  #main-wrapper #change_reg > table, #main-wrapper #change_reg > table > tbody, #main-wrapper #change_reg > table > tbody > tr,
  #main-wrapper #change_reg > table > tbody > tr > td,
  #main-wrapper #change_reg > form > table, #main-wrapper #change_reg > form > table > tbody,
  #main-wrapper #change_reg > form > table > tbody > tr, #main-wrapper #change_reg > form > table > tbody > tr > td{
    display:block; width:auto !important; float:none; }
  #main-wrapper .change_label{ text-align:left !important; padding:14px 0 4px !important; font-size:15px !important; }
  #main-wrapper .change_label + td, #main-wrapper .change_label ~ td{ padding:0 !important; text-align:left !important; }
  /* small tables inside (First / Last name, Month / Day / Year) stay side by side and fit */
  #main-wrapper #change_reg td table{ width:100% !important; table-layout:fixed; border-collapse:separate; border-spacing:6px 0; margin:0 -6px; }
  #main-wrapper #change_reg td table td{ padding:0 !important; text-align:left; font-size:12px; }
  #main-wrapper #change_reg td table select, #main-wrapper #change_reg td table input{ width:100% !important; min-width:0; }
  /* Continue and Back: full width, stacked */
  #main-wrapper #change_reg input[type="submit"], #main-wrapper #change_reg input[type="button"],
  #main-wrapper .change_submit input{ display:block; width:100% !important; margin:8px 0 0 !important; }
  #main-wrapper .inner :is(div, td, p):has(> input[type="submit"] + input[type="button"]) > input,
  #main-wrapper .inner :is(div, td, p):has(> input[type="button"] + input[type="submit"]) > input{ flex:1 1 100%; }
}

/* ============================================================================
   12. BUILD G (2026-11-23): Yes / No security questions before the final test
   The typed-answer rule (width:100% on inputs) was blowing the radio circles up
   to full width, and main.css makes every <label> a block, so Yes and No each
   took a whole line. Radios back to normal size, Yes / No side by side.
   ========================================================================= */
#main-wrapper .security_entry .entry:has(input[type="radio"]){ display:flex !important; flex-wrap:wrap; align-items:center;
  gap:0; grid-template-columns:none; margin:0 !important; padding:16px 0 !important;
  font:700 17px/1.4 Arial, sans-serif; color:var(--navy); border-bottom:1px solid var(--line); }
#main-wrapper .security_entry .entry:has(input[type="radio"]):last-child{ border-bottom:0; }
/* question on its own line, Yes / No on the line under it */
#main-wrapper .security_entry .entry:has(input[type="radio"])::after{ content:""; order:1; flex-basis:100%; height:10px; }
#main-wrapper .security_entry .entry:has(input[type="radio"]) > *{ order:2; }
#main-wrapper .security_entry .entry:has(input[type="radio"]) > br{ display:none; }
/* each answer is a pill: radio + word, easy to tap */
#main-wrapper .security_entry .entry input[type="radio"]{ -webkit-appearance:radio !important; appearance:auto !important;
  flex:none; width:22px !important; height:22px !important; min-height:0 !important; padding:0 !important;
  margin:0 -30px 0 10px !important; position:relative; z-index:1; border:0; box-shadow:none; accent-color:var(--navy); cursor:pointer; }
#main-wrapper .security_entry .entry input[type="radio"] + label{ display:inline-flex !important; align-items:center;
  width:auto; min-width:92px; min-height:44px; box-sizing:border-box; margin:0 10px 0 0 !important; padding:0 18px 0 40px;
  border:2px solid var(--line); border-radius:999px; background:#fff; text-transform:none; letter-spacing:0;
  font:600 16px/1 Arial, sans-serif; color:var(--ink); cursor:pointer; }
#main-wrapper .security_entry .entry input[type="radio"]:checked + label{ border-color:var(--navy); background:var(--row2); color:var(--navy); }
#main-wrapper .security_entry .entry input[type="radio"]:focus-visible + label{ outline:3px solid var(--gold); outline-offset:2px; }
#main-wrapper .security_entry:has(input[type="radio"]){ padding:4px 16px !important; }
@media screen and (max-width:640px){
  #main-wrapper .security_entry .entry:has(input[type="radio"]){ font-size:16px; padding:14px 0 !important; }
}

/* print: never blank the page, never print the pinned bars */
@media print{
  body:has(#Timer) #main-wrapper{ padding-top:0; }
  #main-wrapper #course_note #Timer, #main-wrapper #course_note #Continue,
  body:has(#Timer) #header-wrapper{ position:static !important; box-shadow:none; }
}
