html:has(.portal-body) { overflow:auto; height:auto; min-height:100%; }
.portal-body { overflow:visible; height:auto; min-height:100%; background:#f5f7f8; }
a { color:inherit; }
.portal-header { max-width:1000px; margin:auto; padding:20px 24px; display:flex; justify-content:space-between; align-items:center; }
.portal-brand { display:flex; align-items:center; gap:11px; font-size:20px; font-weight:800; text-decoration:none; letter-spacing:-.4px; }
.portal-brand small { display:block; font-size:10px; letter-spacing:.08em; color:#71828b; font-weight:500; margin-top:3px; }
.qd-mark { display:grid; place-content:center; width:44px; height:44px; background:#153e4b; border-radius:13px; color:#fff; font-size:19px; letter-spacing:-2px; }
.qd-mark span { color:#8de0d1; }
.portal-version { font-size:11px; color:#71828b; }
.portal-main { max-width:900px; margin:auto; padding:0 24px 24px; }
.access-status { font-size:12px; color:#52736a; padding:9px 0 14px; }
.portal-hero { background:#153e4b; border-radius:24px; padding:34px; color:#fff; position:relative; overflow:hidden; }
.portal-hero .eyebrow { color:#97ded1; font-size:10px; letter-spacing:.17em; }
.portal-hero h1 { font-size:36px; line-height:1.45; letter-spacing:.02em; margin:16px 0; position:relative; z-index:1; }
.portal-hero p { color:#c9dde0; line-height:1.9; font-size:14px; position:relative;z-index:1; }
.hero-rings { position:absolute; width:230px; height:230px; border:1px solid #77bfb94a; border-radius:50%; top:65px; right:-110px; box-shadow:0 0 0 32px #77bfb911,0 0 0 65px #77bfb909; }
.menu-heading { display:flex; justify-content:space-between; align-items:center; margin:26px 0 13px; }
.menu-heading h2 { font-size:16px; }.menu-heading>span { font-size:10px; letter-spacing:.1em; color:#76848c; }
.program-list { display:grid; gap:12px; }.program-card { display:flex; align-items:center; gap:16px; width:100%; padding:23px; border:1px solid #e0e7e9; background:white; border-radius:18px; text-decoration:none; text-align:left; box-shadow:0 3px 9px #203b5004; }
.program-quiz { border-color:#7caea6; background:#fafffd; }.program-copy { flex:1; min-width:0; }.program-copy strong { display:block; font-size:20px; margin:8px 0 6px; }.program-copy small { display:block; color:#71828b; font-size:12px; }
.program-meta { font-size:10px; letter-spacing:.1em; color:#668079; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }.program-meta em { font-style:normal; letter-spacing:0; padding:3px 7px; background:#eaf1f0; border-radius:5px; }
.program-icon { width:46px; height:46px; flex:none; display:grid; place-content:center; border-radius:14px; background:#e9f1ef; color:#287466; font-size:28px; font-weight:700; }.program-vehicle .program-icon { background:#f7efdf;color:#987e42; }.program-survey .program-icon { background:#ebedf7;color:#686c9c; }
.portal-back { display:inline-flex; align-items:center; min-height:44px; font-size:14px; font-weight:700; text-decoration:none; color:#526e78; }
.portal-heading { padding:20px 0 26px; }.portal-heading .eyebrow { font-size:10px; color:#398276; letter-spacing:.13em; }.portal-heading h1 { margin:12px 0; font-size:32px; line-height:1.45; }.portal-heading p { font-size:14px; line-height:1.85; color:#71828b; }
.catalog-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.topic-card { background:white; border:1px solid #dfe7e9; border-radius:17px; padding:20px; text-decoration:none; display:flex; flex-direction:column; gap:10px; min-height:180px; }.topic-top { display:flex; justify-content:space-between; align-items:center; color:#48877b;font-size:12px; }.topic-number { font-size:12px; font-weight:750; }.topic-card h2 { font-size:23px; }.topic-card p { font-size:12px; color:#6b808b; line-height:1.7;flex:1; }.topic-card footer { font-size:11px; color:#39796b; display:flex; justify-content:space-between;gap:8px; }.topic-card:hover,.program-card:hover { border-color:#398276; background:#edf7f3; }.topic-card:focus-visible,a:focus-visible { outline:3px solid #4d9fce;outline-offset:3px; }
.portal-footnote { font-size:12px; color:#71828b; line-height:1.8; margin-top:20px; }.portal-footer { margin-top:32px; border-top:1px solid #e0e7e9; padding-top:19px; color:#71828b; font-size:12px; }.portal-footer p { font-weight:700; }.portal-footer span { font-size:10px; font-weight:400; margin-left:10px; }.portal-footer small { display:block; font-size:10px; line-height:1.7; margin-top:12px; }
.coming-card { padding:30px 24px; margin-top:20px; }.coming-card h1 { font-size:25px; margin:18px 0; }.coming-card p { line-height:1.8; color:#71828b; margin-bottom:24px; }.button { text-decoration:none; }
.login-card { padding:24px; display:grid; gap:14px; }.login-card label { font-size:14px; font-weight:700; }.login-card input { width:100%; min-height:52px; border:1px solid #bfcfd5;border-radius:10px;padding:12px;font-size:18px; }.login-card p { font-size:12px;line-height:1.8;color:#71828b; }
.portal-link { font-size:13px;font-weight:700;text-decoration:none;min-height:44px;display:inline-flex;align-items:center; }
.menu-heading h1 { font-size:24px; }
.program-card { min-height:102px; }
.program-copy strong { margin:8px 0 0; }
.catalog-grid .topic-card { min-height:126px; gap:12px; }
.topic-card footer { margin-top:auto; }
.portal-heading h1 { font-size:28px; }
.wide-options { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
.match-options .match-choice { overflow-wrap:anywhere; }
.quiz-top-tools { align-items:center; }
@media(min-width:700px) { .catalog-grid {grid-template-columns:repeat(3,minmax(0,1fr))} .program-copy strong {font-size:23px} .portal-hero {padding:42px} }
@media(max-width:480px) { .portal-header {padding:18px 20px 12px}.portal-main {padding:0 20px 24px}.portal-hero {padding:27px 24px;border-radius:21px}.portal-hero h1 {font-size:29px}.portal-hero p {font-size:13px}.program-card {padding:18px 14px;gap:12px}.program-icon {width:38px;height:42px;font-size:25px}.program-copy strong {font-size:17px;line-height:1.5}.program-copy small {font-size:11px}.topic-card {padding:16px;min-height:170px}.topic-card h2 {font-size:21px}.portal-heading h1 {font-size:29px}.portal-brand {font-size:19px} }
@media(max-width:350px) { .portal-main {padding-left:14px;padding-right:14px}.program-card {gap:8px;padding:16px 10px}.program-copy strong {font-size:16px}.program-icon {width:32px}.topic-card {padding:13px}.topic-card h2 {font-size:19px} }
@media(max-width:480px) {
 .portal-hero { padding:22px 24px; }
 .portal-hero h1 { font-size:27px; margin:10px 0; line-height:1.35; }
 .portal-hero p { font-size:12px; line-height:1.75; }
 .program-card { padding-top:14px; padding-bottom:14px; }
 .menu-heading { margin-top:20px; }
}

@media(max-width:360px) { .learning-body .category-choices .choice-code { display:none; } }

.program-card:disabled { opacity:1; cursor:default; background:#f1f3f4; border-color:#e0e7e9; color:#647681; box-shadow:none; }
.program-card:disabled .program-icon { background:#e6ebed; color:#788b94; }
.portal-footer:has(#logout[hidden]) { display:none; }
.portal-brand { min-height:44px; }

.program-survey strong span { display:inline-block; }

.receipt-preview { font-weight:700; color:#173b4a; overflow-wrap:anywhere; }
#receiptSettings { margin:16px 0; }
#receiptSettings summary { min-height:44px; padding:10px 0; cursor:pointer; }
#entryNeeded { padding:24px; line-height:1.8; }

.entry-shell {max-width:480px;margin:28px auto;}
.entry-shell h1 {font-size:28px;line-height:1.3;margin:0 0 16px;}
.entry-shell>p {margin:0 0 24px;color:#526e78;}
.entry-shell .login-card {margin-top:16px;}
.direct-entry .portal-header,.direct-entry #accessStatus,.direct-entry .portal-footer {display:none;}
.direct-entry .entry-shell {margin-top:clamp(32px,10vh,100px);}
#captchaImage {max-width:100%;height:auto;justify-self:center;border-radius:8px;}
#captchaAnswer {text-transform:uppercase;letter-spacing:.2em;}
#passFields {display:grid;gap:10px;}
.large-receipt {font-size:40px;letter-spacing:.08em;text-align:center;overflow-wrap:anywhere;}
.access-pass {font:700 clamp(17px,4.8vw,23px)/1.5 monospace;white-space:nowrap;text-align:center;background:#edf4f7;padding:16px 4px;border-radius:10px;}
.save-warning {font-size:clamp(16px,4.5vw,19px);line-height:1.6;color:#173b4a;}
.login-card .saved-check {display:flex;gap:12px;align-items:flex-start;line-height:1.7;}
.login-card .saved-check input {width:24px;min-height:24px;flex:none;margin-top:2px;}
#switchLogin {margin-bottom:14px;}
