/* Site-wide type and layout, matched to the homepage.
   Headings: Plus Jakarta Sans 800, tight tracking. Body and interface: Inter.
   Scoped to inner pages; the homepage and the exam screens keep their own styles. */

main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)){max-width:1248px;padding:48px 24px 80px;font-family:Inter,Arial,sans-serif;font-size:17px;line-height:1.6;color:var(--body2)}

/* Headings */
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) :is(h1,h2,h3,h4){font-family:Jakarta,Arial,sans-serif;font-weight:800;color:var(--ink2);text-wrap:balance}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) h1{font-size:clamp(36px,4.4vw,54px);line-height:1.08;letter-spacing:-.035em}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) h2{font-size:clamp(24px,2.4vw,30px);line-height:1.2;letter-spacing:-.03em}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) h3{font-size:20px;line-height:1.3;letter-spacing:-.02em}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) h4{font-size:18px;line-height:1.35;letter-spacing:-.015em}

/* Lead line under a page title */
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .page-head p,main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .page-head+p{font-size:19px;line-height:1.6;color:var(--body2);max-width:760px}

/* Body copy */
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) :is(p,li,td,label,summary,dd,dt){color:inherit}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .reading :is(p,li){font-size:18px;line-height:1.75;color:var(--body2)}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) :is(.muted,small){color:var(--muted2)}

/* Small labels above titles */
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) :is(.eyebrow,.card-label,.activity-title){font-family:Inter,Arial,sans-serif;font-weight:700;font-size:13px;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-blue)}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .activity-title{color:var(--muted2)}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .pill{font-size:13px;line-height:1.4}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .crumb,main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) nav[aria-label="Breadcrumb"]{font-size:15px}

/* Buttons */
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .btn{font-family:Jakarta,Arial,sans-serif;font-weight:700;font-size:16px;line-height:1.3;min-height:48px;padding:12px 22px;border-radius:999px}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .btn.quiet{min-height:0;padding:8px 0;border-radius:0}

/* Form controls: 16px+ stops phones zooming in */
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) :is(input,select,textarea){font-family:Inter,Arial,sans-serif;font-size:17px}

/* Study-area menu under the header, lined up with page content */
.learning-nav{max-width:1200px;margin:0 auto;padding:0 24px;gap:8px;border-bottom:1px solid var(--line2);font-family:Inter,Arial,sans-serif;font-size:16px}
.learning-nav a{padding:16px 12px;color:var(--muted2);font-weight:600;border-bottom:3px solid transparent}
.learning-nav a:first-child{padding-left:0}
.learning-nav a[aria-current]{color:var(--brand-blue);font-weight:700;border-bottom-color:var(--brand-blue)}

@media (max-width:760px){
 main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)){padding:32px 20px 56px;font-size:17px}
 main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) h1{font-size:clamp(32px,8.5vw,40px)}
 main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .page-head p{font-size:18px}
 .learning-nav{padding:0 20px;margin:0;font-size:15px}
}

/* Fit-and-finish */
.learning-nav{max-width:1248px}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .page-head p{margin-top:12px}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) :is(.lesson-side,.right-col,.panel,.next-card,.route-card,.credits-box,aside) :is(h2){font-size:22px;line-height:1.25}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .lesson-side h2{font-size:20px}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .btn{white-space:normal;text-align:center}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .lesson-side .btn{width:100%}
main#main:not(.homepage):where(:not(.cbt-entry,.cbt-exam-main)) .hc{margin-left:-.09em}

/* Account: optional email choices beside sign-in and on the account page */
#email-choices{margin-top:20px;padding:24px}
#email-choices h2{margin-bottom:10px}
.email-choices{border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin:16px 0}
.email-choices legend{font-size:15px;font-weight:700;padding:0 6px}
#membership .email-choices .field,#email-choices .field{flex-direction:row;font-weight:400;margin:10px 0;line-height:1.6}
#membership .email-choices .field>span,#email-choices .field>span{display:block}
#membership .email-choices input[type=checkbox],#email-choices input[type=checkbox]{width:18px;height:18px;margin:0 8px 0 0;vertical-align:-3px;accent-color:var(--blue)}
#membership .email-choices select,#email-choices select{margin-left:8px;padding:7px 10px}
.email-choices-note{font-size:14px;color:var(--muted);margin:8px 0 14px}
.email-choices-note a{text-decoration:underline}
#choices-message{font-size:15px;color:var(--muted);margin-left:10px}
.account-panel{padding:26px}
.account-panel h2{margin-bottom:10px}
.pricing-account{font-size:15px;color:var(--muted);margin-bottom:18px}
.pricing-account a,.notice a{text-decoration:underline}
