/* ============================================================================
   fif-course-1.css - Funny in Florida, ONE stylesheet for the whole student path
   BUILD: 2026-11-17-C
   Sign-up pages, login, Student Center, 4-hour and 8-hour chapters, quizzes,
   security questions, final exam, pass page, Processing Options and payment.
   One file for this site (same approach as Virginia's Fun Driving Clinic).
   ----------------------------------------------------------------------------
   SCOPE (Luis, 12 Nov)
   - Everything BELOW the header: registration pages, Student Center,
     chapter pages, Processing Options, payment.
   - Headers and footers are NOT restyled. Each site keeps its own.
     One exception, a repair rather than a restyle: chapters.css pushes the
     header's Support link 50px down on chapter pages (rule 2).
   - One palette for all sites. No per-site colours.
   - Timer: a light blue bar fixed to the very top of every chapter page,
     carrying the FLHSMV disclosure and the countdown.

   HOW IT LOADS
   One <link> as the LAST line of <head>:
     <link rel="stylesheet" href="/includes/css/fif-course-1.css" />
   global.css and foundation.cp.css are untouched: California uses them.
   Remove the one <link> and every page falls back to today's look.

   WHY EVERY RULE STARTS WITH #content_container (or html body)
   registration.css, chapters.css, menu.css and style.css are linked inside
   <body>, so they load after this file and would win a tie. A page-level id
   at the front of each rule makes ours the stronger rule without editing
   their files, and keeps every rule inside the content area.

   PROVISIONAL - waiting on page source
   The sign-up FORM page (register.php) and payment.php are styled from
   their stylesheets and screenshots, not their markup.
   ========================================================================= */

/* ---------- 0. palette: one set, every Florida site -------------------- */
:root{
  --fl-ink:#163A4F;       /* text and headings                              */
  --fl-sky:#95C3E1;       /* timer bar - the Funny in Florida light blue    */
                          /* ink on sky 6.4:1                               */
  --fl-sky-soft:#E4F1F9;  /* banners, selected cards                        */
  --fl-tint:#F3F8FC;      /* page canvas                                    */
  --fl-rule:#D6E4EE;
  --fl-muted:#55697A;
  --fl-action:#C2410C;    /* buttons and links. White on it 5.2:1           */
  --fl-action-lt:#D8501A;
  --fl-done:#CDEBD3;      /* timer bar once the chapter time is met         */
  --fl-note:#FFF4D6;      /* notices                                        */
  --fl-r-lg:20px; --fl-r-md:14px; --fl-r-sm:10px; --fl-pill:999px;
  --fl-shadow:0 2px 6px rgba(22,58,79,.05),0 12px 32px rgba(22,58,79,.08);
  --fl-sans:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --fl-serif:Georgia,"Times New Roman",serif;
  --fl-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
}

/* ---------- 1. page canvas -------------------------------------------------
   html body outranks chapters.css "body{background:#dedede}", which is why
   chapter pages are grey today and the other pages white. */
html body{background:var(--fl-tint);-webkit-text-size-adjust:100%}

/* ---------- 2. header repair (not a restyle) -------------------------------
   chapters.css gives every .right a 50px top margin and 10px padding. The
   header's Support list is class="right", so on chapter pages only it drops
   50px. This puts it back where every other page has it. */
html body #header .top-bar ul.right{margin:0;padding:0 20px 0 0}
@media only screen and (max-width:60em){html body #header .top-bar ul.right{margin:15px 15px 0 0}}
/* Phone side-scroll repair. Foundation gives the rows inside the header a
   -15px side margin, which makes every page 15px wider than a phone screen,
   and the logo image has no max width. */
html body #header .row{margin-left:0;margin-right:0}
html body #header #logo img{max-width:100%;height:auto}
html body{overflow-x:hidden}
#content_container input,
#content_container select,
#content_container textarea{max-width:100%;box-sizing:border-box}

/* ---------- 3. content card, type, controls ------------------------------ */
/* The inline style="padding-top:60px" and global.css's fixed 860px width
   both need !important to override. */
#content_container #aff_content{
  width:auto !important;max-width:900px;
  margin:14px auto 30px;padding:30px 34px !important;
  background:#fff;border:0;border-radius:var(--fl-r-lg);
  box-shadow:var(--fl-shadow);color:var(--fl-ink);
  font-family:var(--fl-sans);font-size:16px;line-height:1.55;
}
#content_container h1,
#content_container h2,
#content_container h3{
  font-family:var(--fl-serif);color:var(--fl-ink);
  font-weight:700;letter-spacing:-.01em;line-height:1.2;
}
#content_container h1{font-size:26px;margin:0 0 14px}
#content_container h2{font-size:20px;margin:22px 0 10px}
#content_container h3{font-size:18px;margin:18px 0 8px}
#content_container a{color:var(--fl-action)}
#content_container img{max-width:100%;height:auto}
#content_container table{max-width:100%}

/* Text fields at 16px: below that an iPhone zooms the page on tap.
   Today they are 8pt (registration.css) and 14px. */
#content_container input[type="text"],
#content_container input[type="password"],
#content_container input[type="email"],
#content_container input[type="tel"],
#content_container select{
  font-family:var(--fl-sans);font-size:16px;font-weight:400;color:var(--fl-ink);
  background:#fff;border:1px solid #B7CBD9;border-radius:var(--fl-r-sm);
  padding:10px 12px;margin:4px 0;max-width:100%;
}
#content_container input[type="text"]:focus,
#content_container input[type="password"]:focus,
#content_container input[type="email"]:focus,
#content_container input[type="tel"]:focus,
#content_container select:focus{
  outline:2px solid var(--fl-sky);outline-offset:1px;border-color:var(--fl-ink);
}
#content_container input[type="checkbox"],
#content_container input[type="radio"]{
  width:20px;height:20px;accent-color:var(--fl-ink);vertical-align:-4px;
}
/* Primary: every submit button. */
#content_container input[type="submit"]{
  font-family:var(--fl-sans);font-size:16px;font-weight:600;color:#fff;
  background:var(--fl-action);border:0;border-radius:var(--fl-pill);
  padding:13px 30px;cursor:pointer;margin:8px 4px;
}
#content_container input[type="submit"]:hover{background:var(--fl-action-lt)}
#content_container input[type="submit"]:focus-visible{outline:2px solid var(--fl-ink);outline-offset:2px}
#content_container input[type="submit"]:disabled{background:#C9D3D9;color:#55697A;cursor:not-allowed}
/* Secondary: Cancel, and the chapter TRUE/FALSE quiz buttons. */
#content_container input[type="button"]{
  font-family:var(--fl-sans);font-size:15px;font-weight:600;color:var(--fl-ink);
  background:var(--fl-sky-soft);border:1px solid var(--fl-rule);
  border-radius:var(--fl-pill);padding:9px 22px;cursor:pointer;
}
#content_container input[type="button"]:hover{background:var(--fl-sky)}
/* One error style: five .error rules across four files today. */
#content_container .error,
#content_container .errors{
  color:#9F2A1E;font-weight:600;line-height:1.5;
  background:#FCEDEC;border:1px solid #F2C5C1;border-radius:var(--fl-r-sm);
  padding:10px 14px;margin:10px 0;text-align:left;
}

/* ---------- 4. start page (terms + I Agree) --------------------------------
   Restyle only. The acknowledgement wording is not touched. */
#content_container #startTable{width:100%;font-size:16px;line-height:1.6}
#content_container #startTable h1{font-size:26px;text-align:center}
#content_container td.borderBar{background:var(--fl-sky);height:3px;padding:0}
#content_container ul.start_list{
  background:var(--fl-tint);border-radius:var(--fl-r-md);
  padding:16px 18px 4px;margin:12px 0 18px;
}
#content_container ul.start_list li{
  font-size:14px;line-height:1.6;margin-left:18px;padding-bottom:12px;color:#33495A;
}
#content_container form#ack_check{
  display:inline-block;font-weight:600;font-size:16px;
  background:var(--fl-sky-soft);border-radius:var(--fl-pill);padding:10px 20px;
}

/* ---------- 5. sign-up form + confirmation ------------------------------- */
#content_container .reg_label{font-size:15px;font-weight:600;padding-left:0;color:var(--fl-ink)}
#content_container .reg_input,
#content_container .reg_select{background-image:none;margin:4px 0;font-size:16px}
#content_container p.reg_conf{color:#33495A;font-size:15px}
#content_container table.reg_conf,
#content_container table:has(td.reg_conf){width:100%;border-collapse:collapse}
#content_container td.reg_conf{
  font-size:15px;padding:9px 12px;border-bottom:1px solid var(--fl-rule);vertical-align:top;
}
#content_container td.reg_conf b{color:var(--fl-ink)}
#content_container .divider{margin:14px 0;border-top:1px solid var(--fl-rule);border-bottom:0}
#content_container .note{font-size:13px;font-style:normal;padding:2px 0 8px;color:var(--fl-muted)}
#content_container .note.red{color:var(--fl-action);font-weight:600}

/* ---------- 5b. the sign-up FORM (register.php, table#reg) ------------------
   From the page source captured 13 Nov (Funny in Florida, 4-hour BDI).
   Layout only: no field, label, required marker or wording changes.
   NOTE for whoever edits the markup later: the <form> tag in this page
   opens and closes before the rows; the fields still submit only because
   browsers attach them to it anyway. Never wrap or move these rows. */
#content_container #aff_content > p{font-size:15px;color:#33495A;margin:0 0 8px}
#content_container #aff_content > p > b > u{text-decoration:none;color:var(--fl-ink);font-family:var(--fl-serif);font-size:20px;display:block;margin-top:4px}
#content_container table#reg{width:100%;max-width:660px;margin:8px auto 0;border-collapse:collapse}
#content_container table#reg td{padding:7px 8px;vertical-align:middle;font-size:15px;color:var(--fl-ink)}
#content_container table#reg td.reg_label{font-weight:600;width:34%}
#content_container table#reg tr.reg_label > td:first-child{font-weight:600}
#content_container table#reg select.reg_select{width:auto;margin:4px 6px 4px 0}
#content_container table#reg input.reg_input{width:100%;max-width:320px}
#content_container table#reg .note[align="right"]{text-align:left;padding:4px 0 8px;font-size:14px;color:var(--fl-muted)}
#content_container table#reg .note.red{font-size:13px}
#content_container table#reg #example_1 img,
#content_container table#reg #example_2 img{max-width:100%;height:auto;border-radius:var(--fl-r-sm);border:1px solid var(--fl-rule)}
#content_container table#reg a#questionExplanation img{width:24px;height:24px;vertical-align:middle}
#content_container table#reg tr[align="center"] td{text-align:center;color:#33495A;font-size:14px}

/* ---------- 5c. "You're not quite done yet" (view.php?view=payment) -------- */
#content_container table#table1{width:100%;max-width:741px;margin:0 auto}
#content_container table#table1 td{padding:6px 4px;text-align:left}
#content_container table#table1 font{font-family:var(--fl-sans);color:var(--fl-ink)}
#content_container table#table1 font[size="4"]{font-size:20px;line-height:1.35}
#content_container table#table1 font[size="2"]{font-size:14px;color:var(--fl-muted)}
#content_container table#table1 font[size="3"]{font-size:16px}
#content_container table#table1 p > font > font > b > a[href*="payment.php"],
#content_container table#table1 b > a[href*="payment.php"]{
  display:inline-block;margin:10px 0 6px;padding:14px 28px;border-radius:var(--fl-pill);
  background:var(--fl-action);color:#fff;text-decoration:none;font-size:17px;font-weight:600;
}
#content_container table#table1 b > a[href*="payment.php"]:hover{background:var(--fl-action-lt)}
#content_container table#table1 a[href*="payment.php"] img{margin:2px 2px 0 0;vertical-align:middle}

/* ---------- 6. Processing Options + payment --------------------------------
   Each option becomes a card: control, text, price on one line. Today an
   image floats left, a 480px label floats left and the price floats right;
   on a phone they cannot fit. Scoped to #content_container because a stray
   </div> closes #main_container early, leaving "No thanks" and the
   Continue button outside it. */
#content_container #shipping_header{
  margin:0 0 22px;padding:18px;text-align:center;
  background:var(--fl-sky-soft);border:0;border-radius:var(--fl-r-md);
}
#content_container #shipping_header h1{font-size:24px;letter-spacing:.04em;padding:0;margin:0}
#content_container form[name="form1"] h2{
  font-family:var(--fl-sans);font-size:13px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--fl-muted);line-height:1.4;margin:22px 0 8px;text-align:left;
}
#content_container .shipping_option{
  display:grid;grid-template-columns:40px 24px minmax(0,1fr) auto;
  gap:12px;align-items:start;text-align:left;
  background:#fff;border:1px solid var(--fl-rule);border-radius:var(--fl-r-md);
  padding:16px 18px;margin:0 0 12px;
}
#content_container .shipping_option:has(input:checked){
  border-color:var(--fl-ink);background:var(--fl-sky-soft);
}
#content_container .shipping_option .upgrade_img{order:1;float:none}
#content_container .shipping_option .upgrade_img img{width:36px;height:auto}
#content_container .shipping_option input{order:2;float:none;width:20px;margin:2px 0 0}
#content_container .shipping_option label.form{order:3;float:none;width:auto;font-size:15px;line-height:1.5}
#content_container .shipping_option .price{
  order:4;float:none;margin:0;font-family:var(--fl-mono);font-size:17px;
  font-weight:600;color:var(--fl-ink);white-space:nowrap;
}
#content_container .shipping_option .price span{color:#1B6E4A !important}
#content_container .shipping_option .clear{display:none}
#content_container .shipping_desc{color:#33495A}
#content_container .shipping_option small strong{color:var(--fl-action) !important;font-weight:600}
#content_container #payment_button{margin:24px 0 8px}
#content_container form[name="form1"] table[width="700"]{width:100%}
/* Tracker offer heading and its one-line pitch (BDI only). */
#content_container form[name="form1"] > p{margin:-2px 0 10px;font-size:14px;color:#33495A;text-align:left}

/* ---------- 6b. Payment (payment.php) --------------------------------------
   From the page source captured 13 Nov. Layout only: no field, amount or
   wording changes. Several boxes carry inline style="width:350px" and
   "width:400px", which only !important can override. */
#content_container #payment_container{position:static;width:auto;max-width:560px;height:auto}
#content_container #main_container > h2{font-size:22px;text-align:center;letter-spacing:.02em}
/* Order summary: the first table on the page. */
#content_container #main_container > table{
  width:100%;max-width:460px;margin:6px auto 18px;border-collapse:separate;
  background:var(--fl-sky-soft);border-radius:var(--fl-r-md);padding:10px 14px;
}
#content_container #main_container > table td{width:auto;padding:5px 6px;font-size:15px;color:var(--fl-ink)}
#content_container #main_container > table td:last-child{font-family:var(--fl-mono);text-align:right}
#content_container #main_container > table tr:last-child td{border-top:1px solid var(--fl-rule);padding-top:9px;font-size:17px}
#content_container #main_container > table td.label{white-space:normal;text-align:left}
/* Groupon and coupon boxes. */
#content_container #main_container > div.row{
  width:auto !important;max-width:460px;margin:0 auto 14px !important;
  padding:14px 16px !important;background:#fff !important;
  border:1px solid var(--fl-rule) !important;border-radius:var(--fl-r-md);
}
#content_container #main_container > div.row label.form{font-size:14px;font-weight:600;color:var(--fl-ink);padding-top:8px}
#content_container #main_container > div.row input[type="submit"]{
  background:var(--fl-sky-soft);color:var(--fl-ink);border:1px solid var(--fl-rule);font-size:14px;padding:9px 18px;margin:4px 0;
}
#content_container #main_container > div.row div[style*="8pt"]{font-size:12px !important;color:var(--fl-muted)}
/* Billing address and card. */
#content_container form#payment-form table{width:100%;max-width:460px;margin:0 auto}
#content_container form#payment-form td{padding:5px 6px;vertical-align:middle;font-size:15px}
#content_container td.label{font-weight:600;color:var(--fl-ink);text-align:right;white-space:nowrap}
#content_container form#payment-form td.label .small{font-weight:400;font-size:12px;color:var(--fl-muted);white-space:normal}
#content_container form#payment-form td.label img{width:150px;height:auto;margin-top:6px;border-radius:8px}
#content_container form#payment-form input.card-number{width:100%;max-width:260px}
#content_container #payment_button input[type="submit"]{font-size:18px;padding:15px 40px}
#content_container .payment-errors:empty{display:none}
#content_container .amount{font-family:var(--fl-mono);color:var(--fl-ink)}
#content_container #receipt{width:auto;max-width:460px;border-radius:var(--fl-r-md)}

/* ---------- 7. Student Center (home.php) ---------------------------------- */
#content_container #menu_container{padding:0}
#content_container #menu_header{
  width:auto;max-width:760px;height:auto;padding:16px;margin:0 auto 18px;
  display:flex;flex-wrap:wrap;gap:16px;align-items:stretch;
  background:var(--fl-sky-soft);border-radius:var(--fl-r-md);
}
#content_container #stoplight_container{float:none;height:auto;flex:1 1 260px}
#content_container #stoplight_container table{width:100%}
/* Stoplight GIFs out; the three links become buttons, Start in the action colour. */
/* The traffic light stays (Luis, 17 Nov): three lamps stacked, the three
   links beside them. The lamp pictures are 50px tall and already drawn as
   one signal, so the rows must touch. */
#content_container #stoplight_container table{border-collapse:collapse;border-spacing:0}
#content_container #stoplight_container td{padding:0;border:0;background:transparent;vertical-align:middle}
#content_container #stoplight_container img{display:block;width:auto;height:50px;max-width:none}
#content_container #stoplight_container td.the_light{padding:0 0 0 14px}
#content_container #stoplight_container td.the_light a{display:block;padding:6px 0;text-decoration:none}
#content_container #stoplight_container .light_text{margin:0;font-size:17px;font-weight:600;color:var(--fl-ink);line-height:1.3}
#content_container #stoplight_container td.the_light a .light_text{text-decoration:underline;text-underline-offset:3px}
#content_container #stoplight_container td#green_light a .light_text{color:var(--fl-action)}
#content_container #profile_container{
  float:none;width:auto;height:auto;flex:1 1 260px;
  background:#fff;border:0;border-radius:var(--fl-r-sm);
  padding:14px 16px;font-size:14px;line-height:1.5;color:var(--fl-ink);
}
/* Chapter list: the 608px width gives way to the screen. */
#content_container table[width="608px"],
#content_container table.menu_footer{width:100%;max-width:760px;margin:0 auto;border-collapse:collapse}
#content_container tr.menu_header td{
  background:var(--fl-ink);color:#fff;font-family:var(--fl-sans);
  font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:10px 8px;border:0;
}
#content_container td.light,
#content_container td.dark{background:#fff;border:0;border-bottom:1px solid var(--fl-rule);padding:8px}
#content_container tr:nth-child(even) td.light,
#content_container tr:nth-child(even) td.dark{background:var(--fl-tint)}
#content_container td.dark ul{margin:0;padding:0}
#content_container td.dark li.sections{font-size:14px;color:var(--fl-ink);margin:0;padding:0 !important}
#content_container td.dark font{font-family:var(--fl-mono);font-size:14px}
#content_container table.menu_footer td{border:1px solid var(--fl-rule);padding:12px;font-size:15px;background:var(--fl-sky-soft)}
/* Chapter review window: 900px wide and pulled 450px left today, so on a
   phone it opens off the left edge. */
#content_container #chapreview{width:min(900px,96vw);margin-left:0;left:50%;transform:translateX(-50%)}
#content_container #reviewbar{width:auto;height:auto;padding:6px 10px;background:var(--fl-ink);border:0}
#content_container #chapreview iframe{width:100%}

/* ---------- 8. THE TIMER BAR -----------------------------------------------
   Moved from the bottom of the chapter to a bar fixed across the very top
   of the screen, by styling alone: the HTML is untouched. Light blue,
   with the FLHSMV disclosure on the left and the page's own countdown
   ("Time Left: 21:43") on the right.
   The disclosure words live in this file (content:"..."), so changing
   them is a one-line edit here, not a code change.
   Showing the chapter's REQUIRED time as well ("22:00 required") needs one
   line of JavaScript (Virgil); the number is already in the page as
   Seconds = 1320. */
html body #content_container #Timer{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  width:auto;margin:0;padding:10px 18px;border:0;border-radius:0;
  border-bottom:1px solid rgba(22,58,79,.20);
  background:var(--fl-sky);color:var(--fl-ink);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 16px;
  font:600 20px/1.2 var(--fl-mono);font-variant-numeric:tabular-nums;
  box-shadow:0 3px 12px rgba(22,58,79,.14);
}
html body #content_container #Timer::before{
  content:"FLHSMV-required time";
  font:700 11px/1 var(--fl-sans);letter-spacing:.09em;text-transform:uppercase;
  background:#fff;color:var(--fl-ink);border-radius:var(--fl-pill);padding:6px 10px;
}
/* global.css sets "* { margin: 0 auto }" on everything; inside the bar that
   centres the countdown and shoves the label and sentence to the edges. */
html body #content_container #Timer > *{margin:0}
/* Time met: the page swaps the countdown for "You can move on now!" */
html body #content_container #Timer:not(:has(#TimerText)){background:var(--fl-done)}
/* Simple by design (Luis, 13 Nov): the bar shows only the label and the
   time remaining. When time is met it turns green and shows the page's own
   "You can move on now!" with no label. */
html body #content_container #Timer:not(:has(#TimerText))::before{display:none}
/* Room for the bar so it never covers the logo. */
html body:has(#Timer){padding-top:56px}

/* ---------- 8b. chapter pages: header pinned, timer right under it ---------
   Luis, 17 Nov: the header stays at the very top and the timer bar sits
   directly under it, both fixed while the student scrolls. Only on pages
   that have a timer; every other page keeps its header exactly as today.
   A 160px header cannot stay pinned on a phone, so here it becomes one
   compact 64px bar: logo left, Support right. "Login Here" is hidden on
   these pages only (the student is already logged in). */
@supports selector(:has(*)){
  html body:has(#Timer) #header{
    position:fixed;top:0;left:0;right:0;z-index:1001;
    height:64px !important;max-width:none;width:auto;margin:0;padding:0 16px;
    display:flex;align-items:center;justify-content:space-between;
  }
  html body:has(#Timer) #header > .row{width:auto;max-width:none;margin:0;flex:0 0 auto}
  html body:has(#Timer) #header > .row::before,
  html body:has(#Timer) #header > .row::after{display:none}
  html body:has(#Timer) #header .columns{padding:0;width:auto;float:none}
  html body:has(#Timer) #header > .row:has(#reg_log){display:none}
  html body:has(#Timer) #header #logo{margin:0 !important}
  html body:has(#Timer) #header #logo img{height:auto;width:auto;max-height:48px;max-width:calc(100vw - 120px);display:block}
  html body:has(#Timer) #header .top-bar{display:block !important;height:auto;padding:0;margin:0;background:transparent;line-height:1}
  html body:has(#Timer) #header .top-bar ul.right{float:none;margin:0 !important;padding:0}
  html body:has(#Timer) #header .top-bar ul.right li{float:none;background:transparent}
  html body:has(#Timer) #header .top-bar ul.right li a{line-height:1.2;padding:8px 4px;background:transparent;height:auto}
  html body #content_container #Timer{top:64px}
  html body:has(#Timer){padding-top:120px}
}

#content_container .timer-note{
  color:var(--fl-ink) !important;padding:12px 16px !important;
  background:var(--fl-note);border-radius:var(--fl-r-sm);
  max-width:720px;margin:12px auto;font-size:14px;line-height:1.5;
}
#content_container .timer-note p{margin:0;padding:0;font-size:14px}
/* Continue: the page shows and hides it with an inline display value, so
   display is left alone here. */
#content_container a#Continue{
  max-width:320px;margin:16px auto;text-align:center;text-decoration:none;
  background:var(--fl-action);color:#fff;font-size:17px;font-weight:600;
  border-radius:var(--fl-pill);padding:14px 28px;
}
#content_container a#Continue:hover{background:var(--fl-action-lt)}

/* ---------- 9. chapter reading column ------------------------------------ */
/* The inline width:700 has no unit and is ignored today. */
#content_container .chapter_tag_header > div[style]{max-width:740px;margin:0 auto;padding:10px 0 !important}
#content_container .chapter_tag_header,
#content_container .chapter_tag_header p{
  font-family:var(--fl-sans);font-size:16px;line-height:1.65;font-weight:400;color:#22394A;
}
#content_container .chapter_tag_header p{margin:0 0 14px;padding:0}
#content_container .chapter_tag_header strong,
#content_container .chapter_tag_header b{color:var(--fl-ink)}
/* Section banners: any table holding a .subtitle heading (bordered or grey)
   becomes a light blue header. Seen in chapters 1, 4 and 10. */
#content_container .chapter_tag_header table:has(.subtitle){
  border:0;border-collapse:separate;background:var(--fl-sky-soft);
  border-radius:var(--fl-r-sm);margin:26px 0 14px;
}
#content_container .chapter_tag_header table:has(.subtitle) td,
#content_container .chapter_tag_header table:has(.subtitle) tr{border:0;background:transparent}
/* Dark banners (bgcolor black / #333 with white .reverse text) stay dark. */
#content_container .chapter_tag_header td[bgcolor="#000000"],
#content_container .chapter_tag_header td[bgcolor="#333333"]{background:var(--fl-ink) !important;border-radius:var(--fl-r-sm);padding:10px 14px !important}
#content_container .chapter_tag_header td[bgcolor] p,
#content_container .chapter_tag_header td[bgcolor="#cccccc"]{margin:0;padding:10px 14px}
#content_container .chapter_tag_header td[bgcolor="#000000"] *,
#content_container .chapter_tag_header td[bgcolor="#333333"] *{color:#fff !important}
/* Grey fact boxes ("Did you know", Florida statistics). */
#content_container .chapter_tag_header td[bgcolor="#cccccc"],
#content_container .chapter_tag_header tr[bgcolor="#cccccc"] > td{background:var(--fl-sky-soft)}
#content_container .chapter_tag_header table:not(:has(.subtitle)):has(td[bgcolor="#cccccc"]),
#content_container .chapter_tag_header table:not(:has(.subtitle)):has(tr[bgcolor="#cccccc"]){border:0;border-collapse:separate;border-radius:var(--fl-r-sm);overflow:hidden}
/* Plain data tables with borders (e.g. "Full and complete stop / 3 seconds"). */
#content_container .chapter_tag_header table[border="1"]:not(:has(.subtitle)){border-collapse:collapse;border:0}
#content_container .chapter_tag_header table[border="1"]:not(:has(.subtitle)) td{border:1px solid var(--fl-rule);padding:8px 10px}
#content_container .chapter_tag_header ul{margin:6px 0 14px 22px}
#content_container .chapter_tag_header li{margin:4px 0;line-height:1.55}

/* ---------- 9b. chapter quiz (show.php, form name=form1 with .question) ---- */
#content_container .mainbox{background:transparent;padding:0}
#content_container .mainbox .question{
  font-family:var(--fl-sans);font-size:17px;font-weight:600;color:var(--fl-ink);
  margin:26px 0 10px;line-height:1.45;
}
#content_container .mainbox .answer{
  font-family:var(--fl-sans);font-size:16px;color:#22394A;margin:6px 0;
  padding:12px 14px;border:1px solid var(--fl-rule);border-radius:var(--fl-r-sm);background:#fff;
}
#content_container .mainbox .answer:has(input:checked){border-color:var(--fl-ink);background:var(--fl-sky-soft)}
#content_container .mainbox .answer input{margin-right:10px}
#content_container .mainbox input[type="submit"]{margin-top:22px}
/* Tap anywhere on an answer box. The page has no <label>, so the radio is
   stretched invisibly over the whole box and a drawn circle shows the choice.
   Only where the browser supports :has(); older phones keep the plain radio. */
@supports selector(:has(*)){
  #content_container .mainbox .answer{position:relative;padding-left:48px;cursor:pointer}
  #content_container .mainbox .answer input[type="radio"]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
  #content_container .mainbox .answer::before{
    content:"";position:absolute;left:14px;top:50%;transform:translateY(-50%);
    width:20px;height:20px;border-radius:50%;border:2px solid var(--fl-muted);background:#fff;
  }
  #content_container .mainbox .answer:has(input:checked)::before{border-color:var(--fl-ink);background:radial-gradient(var(--fl-ink) 0 42%,#fff 48%)}
  #content_container .mainbox .answer:has(input:focus-visible){outline:2px solid var(--fl-ink);outline-offset:2px}
}

#content_container .chapter_tag_header .subtitle{font-family:var(--fl-serif);font-size:20px;color:var(--fl-ink)}
/* Statistics tables: zebra rows. */
#content_container .chapter_tag_header table.TableColor{border-collapse:collapse;min-width:260px;background:#fff}
#content_container .chapter_tag_header table.TableColor td{border-bottom:1px solid var(--fl-rule);padding:6px 12px}
#content_container .chapter_tag_header table.TableColor tr:nth-child(odd) td{background:var(--fl-tint)}
#content_container .chapter_tag_header table.TableColor p{margin:0;font-size:15px}
/* Jokes and asides. */
#content_container .chapter_tag_header blockquote{
  margin:18px 0;padding:14px 18px;background:var(--fl-note);
  border-left:4px solid #E9B949;border-radius:0 var(--fl-r-sm) var(--fl-r-sm) 0;
}
#content_container .chapter_tag_header blockquote p{margin:0 0 8px}

/* ---------- 9c. 8-hour course chapters -------------------------------------
   Same chapters.css as the 4-hour course, but the 8-hour chapters use a
   second set of its classes: .chapter_title, .section_title, .section_sub,
   p.content, .chapter_list, .img_lt/.img_rt, video, and six coloured aside
   boxes (One-Liners, Jokes, Actual Collision Reports, Silly Signs, Bumper
   Snickers, Actual Vanity Plates). They also nest a SECOND
   #content_container inside the chapter (a duplicate id), flattened here. */
#content_container .chapter_tag_header #main_container,
#content_container .chapter_tag_header #content_container{width:auto;margin:0;padding:0;background:transparent;border:0}
#content_container .chapter_title{
  background:none;height:auto;width:auto;margin:4px 0 18px;padding:0 0 10px;
  font:700 26px/1.25 var(--fl-serif);color:var(--fl-ink);border-bottom:3px solid var(--fl-sky);
}
#content_container .section_title{
  margin:30px 0 12px;padding:10px 14px;background:var(--fl-sky-soft);border-radius:var(--fl-r-sm);
  font:700 21px/1.3 var(--fl-serif);color:var(--fl-ink);
}
#content_container .section_sub{margin:22px 0 8px;padding:0;font:700 18px/1.35 var(--fl-sans);color:var(--fl-ink)}
/* THE 8-HOUR CONTRADICTION: every 8-hour paragraph is class="content", and
   global.css (California's file) gives .content a fixed 860px width, 20px
   padding and a 40px bottom gap - it was written for page containers, not
   paragraphs. On a phone every paragraph runs off the right edge. */
#content_container p.content{width:auto;margin:0 0 14px;padding:0;border:0;background:transparent}
#content_container .chapter_list{font-family:var(--fl-sans);font-size:16px;line-height:1.55;list-style-position:outside}
#content_container .chapter_list ul{margin:4px 0 4px 20px}
#content_container .img,
#content_container .img_lt,
#content_container .img_rt{padding:6px 0;text-align:center}
#content_container .img_lt{padding-right:18px;max-width:45%}
#content_container .img_rt{padding-left:18px;max-width:45%}
#content_container .img img,
#content_container .img_lt img,
#content_container .img_rt img{border-radius:var(--fl-r-sm)}
#content_container .img_txt{display:block;margin-top:6px;font:400 13px/1.4 var(--fl-sans);color:var(--fl-muted)}
#content_container .course_video video{display:block;width:100%;max-width:640px;height:auto;margin:0 auto;border-radius:var(--fl-r-sm);background:#000}
/* Asides: one look for all six. The heading becomes a small label, the box a note card. */
#content_container :is(.one_liner_header,.joke_header,.collision_header,.silly_signs_header,.bumper_snickers_header,.vanity_header){
  display:inline-block;margin:18px 0 0;padding:6px 10px;border-radius:var(--fl-pill);
  background:var(--fl-sky);color:var(--fl-ink);
  font:700 11px/1 var(--fl-sans);letter-spacing:.09em;text-transform:uppercase;
}
#content_container :is(.one_liner,.joke,.collision,.silly_signs,.bumper_snickers,.vanity){
  margin:8px 0 18px;padding:14px 18px;border:0;border-left:4px solid #E9B949;border-radius:0 var(--fl-r-sm) var(--fl-r-sm) 0;
  background:var(--fl-note);color:#22394A;text-align:left;
  font:500 16px/1.55 var(--fl-sans);
}
#content_container .vanity{text-align:center}
/* Bordered tables (New Laws box, points tables, bumper heights). */
#content_container .chapter_tag_header table[border="1"] th{
  background:var(--fl-sky) !important;color:var(--fl-ink);padding:10px 14px;
  font:700 18px/1.3 var(--fl-serif);border:0;
}
#content_container .chapter_tag_header table.table{margin:14px auto;font-size:15px}
#content_container .chapter_tag_header table.table td p{margin:0}
#content_container .chapter_tag_header table[cellpadding="20"] td{padding:16px 18px}

/* ---------- 9e. 12-hour ADI, TLSAE and DETS chapters -----------------------
   These courses use a third set of classes: written-answer boxes
   (.response-wrapper), "Joke Break" boxes fixed at 555px, and floated
   pictures (.img_l / .img_r). Wording and answer checking are untouched. */
#content_container .response-wrapper{border:1px solid var(--fl-rule);border-radius:var(--fl-r-sm);background:var(--fl-tint);padding:14px 16px;margin:0 0 18px}
#content_container .response-question{font:600 16px/1.45 var(--fl-sans);color:var(--fl-ink);margin-bottom:8px}
#content_container table.response-table{width:100%;border-collapse:collapse}
#content_container table.response-table td{font-size:15px;color:#22394A;vertical-align:top}
#content_container textarea.open-answer{width:100%;min-height:110px;padding:10px 12px;font:400 16px/1.5 var(--fl-sans);color:var(--fl-ink);background:#fff;border:1px solid #B9C9D6;border-radius:8px}
#content_container textarea.open-answer:disabled,
#content_container .response-wrapper input:disabled{background:#EEF3F7;color:var(--fl-muted)}
#content_container .response-wrapper .word-count{font-size:13px;color:var(--fl-muted);padding-top:4px}
#content_container .response-wrapper .padded label{display:inline-block;padding:6px 0;font-size:16px;color:var(--fl-ink)}
#content_container .response-wrapper .padded input{margin-right:10px;vertical-align:middle}
#content_container button{
  font:600 15px/1 var(--fl-sans);color:var(--fl-ink);background:var(--fl-sky-soft);
  border:1px solid var(--fl-sky);border-radius:var(--fl-pill);padding:11px 20px;margin:6px 0;cursor:pointer;
}
#content_container button:hover{background:var(--fl-sky)}
#content_container .response-error,
#content_container .response-success{font-weight:500;font-size:15px;line-height:1.5;border-radius:8px;padding:10px 12px;margin-top:8px}
#content_container .response-error{background:#FDECEA;color:#8A1F11}
#content_container .response-success{background:var(--fl-done);color:#14532D}
#content_container .response-error.hidden,
#content_container .response-success.hidden{display:none}
#content_container .chapter_tag_header #main_container h1,
#content_container .chapter_tag_header #course_content h1{font:700 26px/1.25 var(--fl-serif);letter-spacing:0;color:var(--fl-ink);margin:4px 0 16px;padding:0 0 10px;border-bottom:3px solid var(--fl-sky)}
#content_container .chapter_tag_header #main_container h2,
#content_container .chapter_tag_header #course_content h2{font:700 21px/1.3 var(--fl-serif);color:var(--fl-ink) !important;margin:28px 0 10px;padding:10px 14px;background:var(--fl-sky-soft);border-radius:var(--fl-r-sm)}
#content_container .chapter_tag_header #main_container h3,
#content_container .chapter_tag_header #course_content h3{font:700 18px/1.35 var(--fl-sans);color:var(--fl-ink) !important;margin:22px 0 8px;padding:0}
#content_container .chapter_tag_header #main_container p,
#content_container .chapter_tag_header #main_container li{font-size:16px;line-height:1.65}
/* Joke Break / trivia boxes: 555px wide, floated, white text on green. */
#content_container .joke_time{margin:20px 0;padding:0;width:auto;clear:both}
#content_container .joke_image,
#content_container .joke_guy,
#content_container .trivia_image{float:none;width:auto;padding:0 0 6px}
#content_container .joke_image img,
#content_container .trivia_image img{max-height:70px;width:auto}
#content_container .joke_title{display:inline-block;padding:6px 10px;border-radius:var(--fl-pill);background:var(--fl-sky);color:var(--fl-ink);font:700 11px/1 var(--fl-sans);letter-spacing:.09em;text-transform:uppercase}
#content_container :is(.joke_text,.trivia_text,.one_liners,.insurance_claims,.real_jokes){
  float:none;width:auto;margin:8px 0 18px;padding:14px 18px;border:0;border-left:4px solid #E9B949;
  border-radius:0 var(--fl-r-sm) var(--fl-r-sm) 0;background:var(--fl-note);
}
#content_container :is(.joke_text,.trivia_text) p{margin:0;font:500 16px/1.55 var(--fl-sans);color:#22394A}
#content_container .chapter_tag_header .img_l,
#content_container .chapter_tag_header .img_r{margin:6px 0 10px;max-width:45%}
#content_container .chapter_tag_header .img_l{margin-right:18px}
#content_container .chapter_tag_header .img_r{margin-left:18px}
#content_container .caption{font:400 13px/1.4 var(--fl-sans);color:var(--fl-muted);margin-top:6px}

/* ---------- 7b. permit test home (no traffic light, 728px profile box) ----- */
#content_container #profile_container[style]{width:auto !important}
#content_container .idemia{max-width:650px;margin:0 auto;font-size:16px;line-height:1.6}
#content_container #retestPmt a{display:inline-block;padding:13px 26px;border:0 !important;border-radius:var(--fl-pill);background:var(--fl-action);color:#fff;font-weight:600;text-decoration:none}

/* ---------- 9d. chapter quiz result (pass / didn't pass) ------------------- */
#content_container .mainbox{font-family:var(--fl-sans);font-size:17px;line-height:1.6;color:var(--fl-ink)}
#content_container table#result_table{width:100%;max-width:760px;margin:6px auto 16px;border-collapse:collapse;border:0;text-align:left;font-size:15px}
#content_container table#result_table td{border:0;border-bottom:1px solid var(--fl-rule);padding:10px;vertical-align:top;color:#22394A !important}
#content_container table#result_table tr:first-child td{background:var(--fl-ink);color:#fff !important;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
#content_container table#result_table tr:not(:first-child) td:nth-child(2){font-weight:600;color:var(--fl-ink) !important}
#content_container .mainbox a[href*="show"]{
  display:inline-block;margin-top:14px;padding:13px 30px;border-radius:var(--fl-pill);text-decoration:none;
  background:var(--fl-action) !important;color:#fff;font-weight:600;font-size:17px;
}

/* ---------- 12. final exam flow --------------------------------------------
   start-test.php (Take The Test), the security questions, finaltest.php
   (the exam) and the pass page with Certificate Packages. */
/* Take The Test: inline style sets 8pt text on yellow, so !important. */
#content_container form[action="finaltest.php"] input[type="submit"]{
  font:600 17px/1 var(--fl-sans) !important;color:#fff !important;background:var(--fl-action) !important;
  padding:15px 34px;border:0;border-radius:var(--fl-pill);
}
/* Security questions: a ruled row per question, bigger Yes/No targets. */
#content_container form[action="start-test.php"] table{width:100%;max-width:520px;margin:12px auto;border-collapse:collapse}
#content_container form[action="start-test.php"] td{padding:10px 8px;font-size:16px;color:var(--fl-ink);border-bottom:1px solid var(--fl-rule)}
#content_container form[action="start-test.php"] tr:first-child td{border-bottom:2px solid var(--fl-ink);font-size:13px;text-transform:uppercase;letter-spacing:.06em}
#content_container form[action="start-test.php"] td[colspan="3"]{text-align:left !important;width:100%}
#content_container form[action="start-test.php"] td:not([colspan]){text-align:center;width:52px}
#content_container form[action="start-test.php"] input[type="radio"]{width:22px;height:22px;margin:0}
#content_container form[action="start-test.php"] tr:has(input:checked) td{background:var(--fl-tint)}
#content_container form[action="start-test.php"] input[type="submit"]{margin-top:14px;min-width:200px}
/* Final exam: a fine line between questions so answers never cross over,
   the question text bold on its own line, the chosen answer highlighted.
   The page has no wrapper per question, so the line hangs on the <b>. */
/* The intro ends in one unbroken 47-character line of < and > signs,
   wider than a phone screen. */
#content_container form[name="finaltest"],
#content_container div:has(> form[name="finaltest"]){overflow-wrap:anywhere}
#content_container div#final{margin:10px 0 0 !important;font-family:var(--fl-sans);font-size:16px;line-height:2.3;color:#22394A}
#content_container div#final > b{
  display:block;margin:6px 0 8px;padding-top:18px;border-top:1px solid var(--fl-rule);
  font-size:17px;font-weight:600;line-height:1.45;color:var(--fl-ink);
}
#content_container div#final > b:first-of-type{border-top:0;padding-top:4px}
/* The <br> on either side of each question would add empty lines. */
#content_container div#final > b + br,
#content_container div#final > br:has(+ b){display:none}
#content_container div#final > b{margin:14px 0 6px}
#content_container div#final input[type="radio"]{margin:0 6px 0 4px;vertical-align:middle}
#content_container div#final label{padding:5px 8px;border-radius:8px;cursor:pointer;-webkit-box-decoration-break:clone;box-decoration-break:clone}
#content_container div#final input:checked + label{background:var(--fl-sky-soft);color:var(--fl-ink);font-weight:600}
#content_container div#final ~ div input[type="submit"],
#content_container input[name="answers"]{min-width:240px}
/* Pass page: its own <style> block sets a 42pt Times heading and blue text. */
#content_container table#table1,
#content_container table#table1 td{border-color:var(--fl-rule) !important}
#content_container table#table1 h1{font:700 30px/1.2 var(--fl-serif) !important;color:var(--fl-ink) !important}
#content_container table#table1 h1 u{text-decoration:none}
#content_container table#table1 h4{font:600 15px/1.6 var(--fl-sans) !important;color:var(--fl-ink) !important;letter-spacing:.04em}
#content_container a[href*="payment.php?userID"]{
  display:inline-block;padding:14px 28px;border-radius:var(--fl-pill);text-decoration:none;
  background:var(--fl-action);color:#fff !important;font-size:17px !important;
}
#content_container div[style*="font-size: 24px"]{font-family:var(--fl-serif);color:var(--fl-ink);line-height:1.4}

/* ---------- 6c. Processing Options with no tracker offered (8-hour) --------
   The 8-hour course has no tracker, but the page still prints the tracker's
   "No thanks. I will follow-up on my own." choice. Hidden only when the page
   has no tracker offer. It stays selected underneath, so the form sends
   exactly what it sends today. */
#content_container:not(:has(input[name="tracker"][onclick*="Tracker"])) .shipping_option:has(input[name="tracker"]){display:none}

/* ---------- 13. login (aLogin.php) ----------------------------------------- */
#content_container form[action="/aLogin.php"] table{margin:10px auto 0;border-collapse:separate;border-spacing:0 10px;width:100%;max-width:380px}
#content_container form[action="/aLogin.php"] td{font-size:16px;font-weight:600;color:var(--fl-ink);text-align:left;padding:0 8px 0 0}
#content_container form[action="/aLogin.php"] input[type="text"],
#content_container form[action="/aLogin.php"] input[type="password"]{width:100%;margin:0}
#content_container form[action="/aLogin.php"] input[type="submit"]{min-width:200px}
/* "That username/password combination does not match" */
#content_container div[style*="color:red"]{
  color:#8A1F11 !important;background:#FDECEA;border-radius:var(--fl-r-sm);
  padding:12px 16px;max-width:420px;margin:0 auto 6px;font-size:15px;line-height:1.5;
}

/* ---------- 10. edit profile (page.php?template=change_reg) ----------------
   The page opens its <form> between table rows, so the browser leaves the
   form empty and the fields sit outside it. Rules hang on the 575px box. */
#content_container div[style*="575px"]{width:auto !important;max-width:575px;float:none !important}
#content_container div[style*="575px"] font{font-family:var(--fl-sans)}
#content_container div[style*="575px"] font[size="3"]{font-size:15px}
#content_container div[style*="575px"] font[size="1"]{font-size:12px;color:var(--fl-muted)}
#content_container div[style*="575px"] td{padding:6px 8px 6px 0;vertical-align:top}
#content_container div[style*="575px"] td p{margin:0}
#content_container div[style*="575px"] select{width:auto;margin:0}
#content_container div[style*="575px"] input[type="text"]{margin:0;width:100%;max-width:260px}

/* ---------- 11. phone ------------------------------------------------------ */
@media (max-width:640px){
  #content_container #aff_content{margin:8px 8px 24px;padding:20px 16px !important;border-radius:var(--fl-r-md)}
  #content_container h1{font-size:22px}
  /* Forms stack: label above field. */
  #content_container td.reg_label,
  #content_container td.reg_conf{display:block;padding:6px 4px}
  #content_container td.reg_conf:first-child{border-bottom:0;padding-bottom:0;color:var(--fl-muted)}
  #content_container input[type="text"],
  #content_container input[type="password"],
  #content_container input[type="email"]{width:100%}
  #content_container input[type="submit"]{width:100%;margin:8px 0}
  /* Sign-up form: every row stacks, label above field. jQuery hides and shows
     rows with an inline display value, which still wins over this. */
  #content_container table#reg,
  #content_container table#reg tbody,
  #content_container table#reg tr,
  #content_container table#reg td{display:block;width:auto !important}
  #content_container table#reg td{padding:3px 2px}
  #content_container table#reg td.reg_label{padding-top:12px}
  #content_container table#reg input.reg_input{max-width:none}
  /* Payment: label above field, boxes full width. */
  #content_container #main_container > div.row label.form,
  #content_container #main_container > div.row input[type="text"]{float:none !important;width:100% !important;display:block}
  #content_container form#payment-form table,
  #content_container form#payment-form tbody,
  #content_container form#payment-form tr,
  #content_container form#payment-form td{display:block;width:auto}
  #content_container form#payment-form td.label{text-align:left;padding-top:10px;white-space:normal}
  #content_container #main_container > div.row input[type="submit"]{width:100%;font-size:13px;padding:10px 8px}
  #content_container form#payment-form td > div[style*="75%"]{width:auto !important}
  /* Option cards: drop the icon column. */
  #content_container .shipping_option{grid-template-columns:24px minmax(0,1fr) auto;padding:14px}
  #content_container .shipping_option .upgrade_img{display:none}
  #content_container .shipping_option label.form{font-size:14px}
  /* Student Center */
  #content_container #menu_header{flex-direction:column;padding:12px}
  /* In a column the 260px flex basis becomes a height and leaves a gap. */
  #content_container #stoplight_container,
  #content_container #profile_container{flex:0 0 auto}
  #content_container tr.menu_header td{font-size:10px;padding:8px 4px}
  /* Chapter: floated images and tables stop wrapping text on a phone. */
  #content_container .chapter_tag_header table[align]{float:none;margin:10px auto}
  #content_container .chapter_tag_header table[width="610"]{width:100%}
  /* Chapter list-plus-picture tables stack: list first, picture under it. */
  #content_container .chapter_tag_header table:has(img):not(:has(.subtitle)) > tbody > tr > td{display:block;width:auto !important;text-align:center}
  #content_container .chapter_tag_header table:has(img):not(:has(.subtitle)) > tbody > tr > td ul{text-align:left}
  #content_container .chapter_tag_header .subtitle{font-size:17px}
  /* Timer bar on a phone: chip + countdown on one line, the sentence hidden. */
  html body #content_container #Timer{font-size:18px;padding:9px 12px;gap:10px}
  @supports selector(:has(*)){html body:has(#Timer){padding-top:112px}}
  /* Edit profile: one column, label above field. */
  #content_container div[style*="575px"] table,
  #content_container div[style*="575px"] tbody,
  #content_container div[style*="575px"] tr,
  #content_container div[style*="575px"] td{display:block;width:auto}
  #content_container div[style*="575px"] td{padding:3px 0}
  #content_container div[style*="575px"] td:has(select){display:inline-block;margin-right:8px}
  #content_container div[style*="575px"] input[type="text"]{max-width:none}
  /* 8-hour chapters: pictures stop floating; asides full width. */
  #content_container .img_lt,
  #content_container .img_rt{float:none;max-width:none;padding:6px 0}
  #content_container .chapter_title{font-size:22px}
  #content_container .section_title{font-size:18px}
  /* Final exam and security questions on a phone. */
  #content_container form[action="start-test.php"] td{font-size:15px;padding:10px 4px}
  #content_container input[name="answers"]{width:100%}
  #content_container form[action="/aLogin.php"] td{display:block;padding:0}
  #content_container #stoplight_container .light_text{font-size:16px}
  /* 12-hour, TLSAE, DETS on a phone: pictures and picture tables stop floating. */
  #content_container .chapter_tag_header .img_l,
  #content_container .chapter_tag_header .img_r{float:none;display:block;max-width:none;margin:10px 0;text-align:center}
  #content_container .chapter_tag_header table:has(img),
  #content_container .chapter_tag_header table:has(img) > tbody,
  #content_container .chapter_tag_header table:has(img) > tbody > tr{display:block;width:auto}
  #content_container .chapter_tag_header table{width:auto}
  #content_container table.response-table{width:100%}
  #content_container table.response-table td{display:block;width:auto !important;text-align:left}
}
/* ---------- 11b. small phones (360px and under) --------------------------- */
@media (max-width:360px){
  #content_container #aff_content{margin:6px 4px 20px;padding:16px 10px !important}
  #content_container tr.menu_header td{letter-spacing:0;font-size:9px;padding:6px 2px}
  #content_container td.light,
  #content_container td.dark{padding:6px 3px}
  #content_container td.light img{max-width:54px}
  #content_container .chapter_tag_header,
  #content_container .section_sub,
  #content_container .section_title,
  #content_container .chapter_title{overflow-wrap:anywhere}
  #content_container table#result_table{font-size:13px}
  #content_container table#result_table td{padding:8px 5px;overflow-wrap:anywhere}
  html body #content_container #Timer{font-size:16px;gap:6px;padding:9px 6px}
  html body #content_container #Timer::before{font-size:10px;letter-spacing:.04em;padding:6px 8px}
}
