/* Course pages (new design): undo the current site's global styles inside <main class="c2">.
   Loaded after course-v2.css. Keep this file small; course-v2.css is generated from the new website. */

/* site-wide heading style capitalises every word ("Diploma In Cosmetology") */
main.c2 h1, main.c2 h2, main.c2 h3, main.c2 h4, main.c2 summary, main.c2 figcaption { text-transform: none; }

/* Tailwind's reset removes list bullets and link underlines */
main.c2 ul { list-style: disc; }
main.c2 ol { list-style: decimal; }
main.c2 p a, main.c2 li a, main.c2 td a, main.c2 .note a, main.c2 .small a { text-decoration: underline; text-underline-offset: 2px; }
main.c2 .btn, main.c2 .section-nav a { text-decoration: none; }

/* footer.php gives every .btn margin-bottom: 8px */
main.c2 .btn { margin-bottom: 0; }

/* breadcrumb inside the purple banner (the new site shows it in its own header bar) */
main.c2 .c2-crumbs { font-size: .85rem; color: rgba(255, 255, 255, .78); margin: 0 0 14px; }
main.c2 .c2-crumbs a { color: #fff; text-decoration: none; }
main.c2 .c2-crumbs a:hover { text-decoration: underline; }

/* spam-trap field: never visible */
main.c2 .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* the new site's own phone bottom bar isn't used here (this site has its "Ask Your Query" button) */
@media (max-width: 640px) { main.c2 { padding-bottom: 0; } }

/* The site sets overflow-x:hidden on html and body, which makes <body> a scroll container and stops
   position:sticky from working. "clip" hides sideways overflow the same way without that side effect. */
html:has(main.c2), body:has(main.c2) { overflow-x: clip !important; }

/* the section bar sticks right under the site's fixed header */
main.c2 .section-nav { top: var(--header-h, 76px); }

/* Nothing inside the course content may widen the page on phones (phone browsers otherwise zoom the page out) */
main.c2 { overflow-x: clip; }

/* Tables have min-width:640px in the new design. Even inside their scroll box that makes phone browsers
   zoom the whole page out (the header menu button ends up off-screen), so on phones tables wrap instead. */
@media (max-width: 700px) { main.c2 table { min-width: 0; } }
