/* Public experience only. Loaded after legacy page styles; admin is unaffected. */
.public-theme {
  --care-blue: #007fa9;
  --care-cyan: #00aeef;
  --care-navy: #123e59;
  --care-orange: #fa981b;
  --care-ink: #203e50;
  --care-muted: #607784;
  --care-line: #dce9ef;
  --care-soft: #edf7fb;
  background: #f6fafc;
  color: var(--care-ink);
  font-family: "open_sansregular", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.public-theme *, .public-theme *::before, .public-theme *::after { box-sizing: border-box; }
.public-theme a { color: var(--care-blue); }
.public-theme a:hover { color: #005d80; }
.public-theme :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--care-orange); outline-offset: 4px; }
.public-theme img { max-width: 100%; }
.public-theme :is(h1, h2, h3, h4, .identify-hdr) { font-family: "open_sansregular", Arial, sans-serif; }
.public-theme .form-control { height: 50px; border: 1px solid #cbdde6; border-radius: 8px; background: #fff; box-shadow: none; padding: 12px 15px; color: var(--care-ink); font-size: 15px; }
.public-theme .form-control:focus { border-color: var(--care-blue); box-shadow: 0 0 0 3px #007fa91a; }
.public-theme textarea.form-control { height: auto; min-height: 100px; }
.public-theme :is(.login-btn, .submit-btn, .nxt-prv-btn, .mid-btns, .main-btn) { background: var(--care-blue); color: #fff; border: 1px solid transparent; border-radius: 8px; box-shadow: none; font-family: inherit; font-weight: 600; text-transform: none; transition: background .18s, box-shadow .18s; }
.public-theme :is(.login-btn, .submit-btn, .nxt-prv-btn, .mid-btns, .main-btn):hover { background: #00698e; color: #fff; box-shadow: 0 4px 12px #007fa922; }
.public-theme .btn-hvr::before, .public-theme .btn-hvr::after { display: none; }
.public-theme .register-btn { color: var(--care-blue); border: 1px solid #b8d9e6; background: #fff; border-radius: 8px; font-family: inherit; font-weight: 600; }
.public-theme .register-btn:hover { color: #005d80; background: var(--care-soft); }
.public-theme .help-block, .public-theme label.error { font-size: 13px; }
/* Entry page */
.public-theme .welcome-page { min-height: 100vh; background: radial-gradient(ellipse at 10% 40%, #e4f5fc 0, transparent 52%), #f7fbfd; }
.public-theme .welcome-header { max-width: 1240px; margin: auto; padding: 27px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.public-theme .welcome-brand { display: flex; align-items: center; gap: 14px; color: var(--care-navy); font-size: 13px; line-height: 1.5; }
.public-theme .welcome-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; background: var(--care-blue); color: #fff; border-radius: 12px; font-size: 24px; }
.public-theme .welcome-brand strong { font-family: inherit; font-weight: 700; font-size: 15px; }
.public-theme .welcome-header-note { color: var(--care-muted); font-size: 12px; }
.public-theme .welcome-main { max-width: 1160px; margin: auto; padding: 42px 40px 64px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 88px; }
.public-theme .welcome-eyebrow { display: block; color: var(--care-blue); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.6; }
.public-theme .welcome-story > .welcome-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 3px; background: var(--care-orange); margin-right: 10px; vertical-align: middle; }
.public-theme .welcome-story h1 { margin: 23px 0; color: var(--care-navy); font-size: clamp(44px, 5vw, 66px); font-weight: 700; letter-spacing: -2.8px; line-height: 1.12; }
.public-theme .welcome-story h1 span { color: var(--care-blue); }
.public-theme .welcome-description { color: var(--care-muted); font-size: 17px; line-height: 1.85; max-width: 435px; }
.public-theme .welcome-path { margin-top: 38px; display: flex; gap: 17px; padding-top: 27px; border-top: 1px solid #cfe4ee; }
.public-theme .welcome-path-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; color: var(--care-blue); background: #daf0fa; display: grid; place-items: center; font-size: 20px; }
.public-theme .welcome-path h2 { font-size: 15px; font-weight: 700; margin: 0 0 7px; color: var(--care-navy); line-height: 1.5; }
.public-theme .welcome-path p { font-size: 13px; line-height: 1.8; color: var(--care-muted); }
.public-theme .welcome-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 11px; color: var(--care-muted); }
.public-theme .welcome-tags span::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--care-orange); margin: 0 7px 2px 0; }
.public-theme .welcome-card { background: #fff; border: 1px solid var(--care-line); border-top: 3px solid var(--care-cyan); border-radius: 16px; padding: 32px; box-shadow: 0 14px 50px #17465c0a; }
.public-theme .welcome-card h2 { color: var(--care-navy); font-size: 27px; font-weight: 700; margin: 10px 0 5px; letter-spacing: -.7px; }
.public-theme .welcome-card-description { font-size: 13px; color: var(--care-muted); margin-bottom: 26px; }
.public-theme .welcome-card label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.public-theme .welcome-card .form-group { margin-bottom: 18px; }
.public-theme .welcome-card .form-control { height: 47px; font-size: 13px; }
.public-theme .welcome-form-links { text-align: right; font-size: 12px; margin: -4px 0 18px; }
.public-theme .welcome-card .login-btn { padding: 12px 18px; font-size: 14px; }
.public-theme .welcome-card .login-btn i { margin-left: 14px; }
.public-theme .welcome-register { font-size: 12px; text-align: center; margin: 18px 0 24px; color: var(--care-muted); }
.public-theme .welcome-register a { font-weight: 700; }
.public-theme .welcome-guest { padding-top: 20px; border-top: 1px solid var(--care-line); text-align: center; }
.public-theme .welcome-guest > span { color: var(--care-muted); font-size: 11px; }
.public-theme .welcome-guest .register-btn { padding: 11px; font-size: 13px; margin-top: 10px; }
.public-theme .welcome-guest i { margin-left: 8px; }
.public-theme .welcome-guest p { color: var(--care-muted); font-size: 10px; line-height: 1.7; margin: 12px 0 0; }
.public-theme .welcome-partners { background: #fff; border-top: 1px solid var(--care-line); padding: 24px 32px 30px; text-align: center; }
.public-theme .welcome-partners > p { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: var(--care-muted); margin: 0 0 22px; }
.public-theme .logo-sec { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px 40px; width: 100%; }
.public-theme .logo-sec em { display: block; margin: 0; width: auto; }
.public-theme .logo-sec em img { width: auto; max-width: 180px; max-height: 62px; object-fit: contain; margin: 0; }
/* Registration and recovery */
.public-theme .login-tp-bg { min-height: 100vh; height: auto; padding: 48px 24px; background: radial-gradient(ellipse at top, #dff3fc, #f6fafc 70%); }
.public-theme .login-wrapper { position: relative; top: auto; left: auto; transform: none; width: 100%; max-width: 780px; margin: auto; padding: 0; }
.public-theme .login-wrapper.frgt-wrapper { max-width: 550px; }
.public-theme .login-wrapper h1 { color: var(--care-navy); font-size: 25px; line-height: 1.5; }
.public-theme .login .site-logo { margin: 0 0 18px; }
.public-theme .login .site-logo img { width: 230px; }
.public-theme .login-inner { margin-top: 30px; padding: 32px; border: 1px solid var(--care-line); border-top: 3px solid var(--care-cyan); border-radius: 16px; box-shadow: 0 12px 40px #123e590b; }
.public-theme .login-inner h3 { color: var(--care-navy); font-size: 22px; line-height: 1.5; }
.public-theme .login-blue-rd, .public-theme .login-red-rd { display: none; }
.public-theme .register-wrapper .login-inner-lft { width: 100%; padding: 26px 0 0; background: none; }
/* Learning and workbook surfaces */
.public-theme .mid-lt { background: var(--care-navy); border-right: 1px solid #1d506b; }
.public-theme .nav li { border-bottom-color: #ffffff12; }
.public-theme .nav li a { padding-top: 12px; padding-bottom: 12px; }
.public-theme .nav li a:hover, .public-theme .nav li a.active, .public-theme .nav .open > a { background: #1c536f; }
.public-theme .dropdown-menu li a { color: #d0e7f1 !important; }
.public-theme .dropdown-menu li a.active { box-shadow: inset 3px 0 var(--care-orange); }
.public-theme .logout-link a { background: #0d3046; }
.public-theme .step-hdr { background: #fff; border-bottom: 1px solid var(--care-line); }
.public-theme .step-hdr h2 { color: var(--care-navy); }
.public-theme .step-hdr > span, .public-theme .step-hdr h2 span { background: var(--care-soft); color: var(--care-blue); }
.public-theme .step-hdr > span::after, .public-theme .step-hdr h2 span::after { border-left-color: var(--care-soft); }
.public-theme .mid-cont-area { padding-bottom: 45px; }
.public-theme .content-sec :is(p, li) { color: var(--care-ink); line-height: 1.85; }
.public-theme .identify-hdr { color: var(--care-blue); }
.public-theme .identify-hdr::after { background: var(--care-orange); }
.public-theme .que-row { background: var(--care-blue); border-radius: 10px; padding: 18px 24px; }
.public-theme .que-row::after, .public-theme .que-shape { display: none; }
.public-theme .que-row h3 { line-height: 1.65; }
.public-theme .ans-row { background: #fff; border: 1px solid var(--care-line); border-radius: 10px; padding: 24px; }
.public-theme .explanation-blk { background: var(--care-soft); border-left: 4px solid var(--care-cyan); border-radius: 8px; padding: 24px; }
.public-theme .explanation-blk::before, .public-theme .explanation-blk::after, .public-theme .curve-shape { display: none; }
.public-theme .mid-table { border: 1px solid var(--care-line); border-radius: 8px; zoom: 1; }
.public-theme .mid-table table tr th { background: #e4f3fa; color: var(--care-navy); border-color: #cde5f0; padding: 14px; }
.public-theme .mid-table table tr td { padding: 13px; }
.public-theme .hdr-btns { background-color: var(--care-blue); color: #fff; border-radius: 8px; }
.public-theme .hdr-btns::after { display: none; }
.public-theme .pagination { background: var(--care-blue); border-radius: 8px; padding-left: 12px; }
.public-theme .pagination::before { display: none; }
.public-theme .home-content { max-width: 960px; margin: auto; padding: 35px 20px 28px; background: #e9f6fc; border: 1px solid var(--care-line); border-radius: 14px; float: none; }
.public-theme .home-content h1 { color: var(--care-navy); font-size: clamp(26px, 3.3vw, 42px); line-height: 1.35; font-family: inherit; }
.public-theme .home-content h2 { color: var(--care-blue); font-size: 24px; line-height: 1.5; }
.public-theme .home-btns .main-btn { min-width: 0; padding: 5px 32px; font-size: 19px; }
.public-theme .home-btns .mid-btns { margin: 6px; }
.public-theme .mid-btn-note, .public-theme .button-notes { display: none; }
.public-theme .home-btns .logo-sec { margin-top: 36px; padding: 28px 16px; background: #fff; border-top: 1px solid var(--care-line); }
.public-theme .step-btn { background-color: var(--care-blue); border-radius: 10px; box-shadow: none; }
.public-theme .step-btn small { background: var(--care-navy); }
.public-theme .step-btn small::after { border-left-color: var(--care-navy); }
.public-theme .btn-disable { background-color: #607985; color: #fff; }
.public-theme .modal-title { background: var(--care-navy); color: #fff; }
.public-theme .modal-mid { background: #fff; }
.public-theme .modal-mid .mid-btns { margin: 6px; }
.public-theme .i-checks input:focus-visible + i { outline: 3px solid var(--care-orange); outline-offset: 3px; }
@media (max-width: 1000px) {
  .public-theme .welcome-main { gap: 40px; padding: 35px 32px 50px; }
  .public-theme .welcome-card { padding: 26px; }
  .public-theme .welcome-tags { gap: 8px 12px; }
}
@media (max-width: 767px) {
  .public-theme .welcome-header { padding: 20px 24px; }
  .public-theme .welcome-header-note { display: none; }
  .public-theme .welcome-main { grid-template-columns: 1fr; gap: 30px; padding: 24px 24px 40px; max-width: 550px; }
  .public-theme .welcome-story h1 { font-size: 46px; margin: 16px 0; }
  .public-theme .welcome-description { font-size: 15px; }
  .public-theme .welcome-path { margin-top: 24px; padding-top: 20px; }
  .public-theme .welcome-tags { margin-top: 16px; }
  .public-theme .welcome-card { padding: 25px; }
  .public-theme .welcome-partners { padding: 24px; }
  .public-theme .logo-sec { gap: 24px; }
  .public-theme .logo-sec em img { max-width: 125px; max-height: 48px; }
  .public-theme .login-tp-bg { padding: 28px 18px; }
  .public-theme .login-inner { padding: 24px 20px; }
  .public-theme .login-wrapper h1 { font-size: 21px; }
  .public-theme .mid-cont-area { padding-left: 18px; padding-right: 18px; }
  .public-theme .ans-row { padding: 16px; }
  .public-theme .home-content { padding-top: 20px; }
  .public-theme .home-btns .main-btn { max-width: 100%; padding: 8px 20px; font-size: 16px; line-height: 1.7; }
  .public-theme .home-btns .mid-btns { min-width: 0; width: calc(50% - 16px); font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-theme *, .public-theme *::before, .public-theme *::after { animation: none !important; transition: none !important; }
}

/* Keep long lesson titles and step descriptions readable at every width. */
.public-theme .public-field-label { display: block; text-align: left; font-size: 12px; margin-bottom: 7px; color: var(--care-ink); }
.public-theme .hdr-btns { box-shadow: none; }
.public-theme .intropage { max-width: 100%; }
.public-theme .intropage h1 { background: var(--care-soft); color: var(--care-navy); border: 1px solid var(--care-line); border-left: 4px solid var(--care-cyan); border-radius: 10px; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.45; padding: 28px; font-weight: 600; }
.public-theme .learning-opt { padding: 12px 0; }
.public-theme .learning-opt ol li { color: var(--care-ink); line-height: 1.8; }
.public-theme .steps-btn-row { position: static; transform: none; padding: 55px 0; }
.public-theme .steps-btn-row-inn { width: min(800px, 100%); }
.public-theme .step-btn { color: #fff; min-height: 66px; height: auto; display: flex; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.public-theme .step-btn:hover { color: #fff; background-color: #00698e; }
.public-theme .step-btn small { height: 100%; display: flex; align-items: center; justify-content: center; }
.public-theme .step-btn small::after { display: none; }
.public-theme .step-btn span { display: block; height: auto; line-height: 1.6; }
.public-theme .step-btn.case-btn { justify-content: center; }
@media (max-width: 767px) {
  .public-theme .steps-btn-row { padding: 24px 0; }
  .public-theme .step-btn { padding-left: 80px; padding-right: 32px; }
  .public-theme .step-btn small { width: 64px; font-size: 13px; }
  .public-theme .step-btn span { font-size: 13px; }
  .public-theme .intropage h1 { padding: 20px; font-size: 24px; }
}
/* The legacy custom scrollbar collapses its viewport on small screens.
   Use normal document scrolling there so lessons remain visible. */
@media (max-width: 767px) {
  .public-theme #vertical-scrollbar-demo,
  .public-theme #vertical-scrollbar-demo > .viewport { height: auto !important; overflow: visible; }
  .public-theme #vertical-scrollbar-demo > .viewport > .overview { position: relative; top: auto !important; left: auto !important; width: 100%; }
  .public-theme #vertical-scrollbar-demo > .scroll-bar { display: none; }
}

/* Step 1 workbook: a focused learning workspace. */
.public-theme .lesson-workspace { min-height: 100vh; background: #f4f9fc; }
.public-theme .lesson-topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px max(28px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid var(--care-line); }
.public-theme .lesson-brand { display: flex; align-items: center; gap: 12px; color: var(--care-navy); }
.public-theme .lesson-brand > span { display: grid; place-items: center; width: 44px; height: 44px; background: var(--care-blue); color: #fff; font-size: 22px; border-radius: 12px; }
.public-theme .lesson-brand strong { font: 700 18px/1.4 Arial, sans-serif; letter-spacing: .4px; }
.public-theme .lesson-brand small { display: block; font: 12px/1.5 Arial, sans-serif; letter-spacing: 0; color: var(--care-muted); }
.public-theme .lesson-topbar nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.public-theme .lesson-topbar nav i { margin: 0 6px; }
.public-theme .lesson-all-steps { padding: 10px 14px; border: 1px solid var(--care-line); border-radius: 8px; }
.public-theme .lesson-context { max-width: 1120px; margin: 28px auto 20px; display: flex; align-items: center; gap: 14px; color: var(--care-muted); font-size: 12px; padding: 0 24px; }
.public-theme .lesson-stage { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.public-theme .lesson-workspace #workbook-ajax { max-width: 1120px; margin: 0 auto; padding: 0 24px 40px; }
.public-theme .lesson-workspace .step-hdr { padding: 0; min-height: 0; border: 0; background: transparent; }
.public-theme .lesson-workspace .step-hdr > span,
.public-theme .lesson-workspace .step-hdr h2,
.public-theme .lesson-workspace .hdr-btns-row > .home-btn,
.public-theme .lesson-workspace .hdr-btns-row > .four-steps-btn { display: none; }
.public-theme .lesson-workspace .hdr-btns-row { position: static; text-align: right; margin-bottom: 12px; }
.public-theme .lesson-workspace .pagination { float: none; display: inline-block; margin: 0; color: var(--care-blue); background: #e2f1f8; }
.public-theme .lesson-workspace .pagination small { color: var(--care-blue); }
.public-theme .lesson-workspace .mid-cont-area { float: none; display: flow-root; padding: 0; }
.public-theme .lesson-workspace #vertical-scrollbar-demo,
.public-theme .lesson-workspace #vertical-scrollbar-demo > .viewport { height: auto !important; overflow: visible; }
.public-theme .lesson-workspace #vertical-scrollbar-demo > .viewport > .overview { position: relative; top: auto !important; left: auto !important; width: 100%; }
.public-theme .lesson-workspace #vertical-scrollbar-demo > .scroll-bar { display: none; }
.public-theme .lesson-workspace #top-div { display: flow-root; }
.public-theme .lesson-workspace .cmn-cont { padding: 32px; background: #fff; border: 1px solid var(--care-line); border-radius: 16px; box-shadow: 0 6px 28px #123e5905; }
.public-theme .lesson-workspace .cmn-cont.first-cont { padding: 0; background: transparent; border: 0; box-shadow: none; }
.public-theme .lesson-kicker { display: flex; align-items: center; gap: 14px; padding: 30px 36px 0; background: #e5f3fa; border-radius: 16px 16px 0 0; }
.public-theme .lesson-kicker span:first-child { color: #936015; background: #fff2db; border: 1px solid #f6d99f; border-radius: 5px; padding: 5px 9px; font-size: 10px; letter-spacing: 1.3px; font-weight: 700; }
.public-theme .lesson-kicker span:last-child { font-size: 12px; color: var(--care-muted); }
.public-theme .lesson-workspace .intropage { text-align: left; margin: 0 0 32px; }
.public-theme .lesson-workspace .intropage h1 { border: 0; border-radius: 0 0 16px 16px; background: #e5f3fa; margin: 0; padding: 20px 36px 34px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.35; font-weight: 700; letter-spacing: -.8px; }
.public-theme .lesson-workspace .identify-hdr { display: block; font-size: 20px; font-weight: 600; border: 0; padding: 0; margin: 0 0 20px; color: var(--care-navy); }
.public-theme .lesson-workspace .identify-hdr::after { display: none; }
.public-theme .lesson-workspace .first-cont .learning-opt { padding: 0; margin: 0; }
.public-theme .lesson-workspace .first-cont .learning-opt ol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: objectives; }
.public-theme .lesson-workspace .first-cont .learning-opt ol li { position: relative; margin: 0 !important; padding: 27px 24px 27px 84px; min-height: 104px; background: #fff; border: 1px solid var(--care-line); border-radius: 12px; font-family: inherit; font-size: 15px; line-height: 1.7; text-align: left; display: flex; align-items: center; }
.public-theme .lesson-workspace .first-cont .learning-opt ol li::before { counter-increment: objectives; content: counter(objectives, decimal-leading-zero); position: absolute; top: 28px; left: 22px; width: 42px; height: 42px; display: grid; place-items: center; border: none; border-radius: 10px; background: var(--care-soft); color: var(--care-blue); font-size: 15px; font-weight: 700; }
.public-theme .lesson-workspace .nxt-prev-btn { position: static; display: block; float: left; width: 100%; margin: 26px 0 0; border-top: 1px solid var(--care-line); padding: 22px 0 0; text-align: right; }
.public-theme .lesson-workspace .nxt-prv-btn { min-width: 130px; line-height: 48px; margin: 0 0 0 10px; font-size: 14px; }
.public-theme .lesson-workspace .prev-btn { background: #547383; }
@media (max-width: 767px) {
  .public-theme .lesson-topbar { padding: 16px 18px; gap: 12px; }
  .public-theme .lesson-topbar nav { gap: 12px; font-size: 12px; }
  .public-theme .lesson-topbar nav > a:first-child { display: none; }
  .public-theme .lesson-all-steps { padding: 8px 10px; }
  .public-theme .lesson-context { padding: 0 18px; margin: 22px 0 16px; gap: 10px; font-size: 11px; }
  .public-theme .lesson-stage { font-size: 8px; letter-spacing: .5px; }
  .public-theme .lesson-workspace #workbook-ajax { padding: 0 18px 30px; }
  .public-theme .lesson-kicker { padding: 22px 22px 0; gap: 10px; }
  .public-theme .lesson-kicker span:last-child { font-size: 10px; }
  .public-theme .lesson-workspace .intropage h1 { padding: 18px 22px 26px; font-size: 26px; }
  .public-theme .lesson-workspace .first-cont .learning-opt ol { grid-template-columns: 1fr; gap: 12px; }
  .public-theme .lesson-workspace .first-cont .learning-opt ol li { min-height: 94px; padding: 22px 18px 22px 76px; font-size: 14px; }
  .public-theme .lesson-workspace .first-cont .learning-opt ol li::before { top: 24px; left: 18px; width: 38px; height: 38px; }
  .public-theme .lesson-workspace .cmn-cont { padding: 22px; }
}

/* Keep the original button guidance visible in the refreshed home page. */
.public-theme .home-btns .main-btn-blk { display: flex; align-items: center; justify-content: center; gap: 28px; width: 100%; padding: 0 20px; margin: 8px auto 24px; }
.public-theme .home-btns .mid-btn-note { position: static; display: flex; align-items: center; gap: 18px; width: auto; max-width: 310px; }
.public-theme .home-btns .mid-btn-note p { width: auto; margin: 0; color: var(--care-ink); font-size: 15px; line-height: 1.65; text-align: left; }
.public-theme .home-btns .mid-btn-note em { flex: 0 0 48px; margin: 0; }
.public-theme .home-btns .mid-btn-note img { width: 48px; height: auto; }
.public-theme .home-btns .main-btn { margin: 0; flex-shrink: 0; }
.public-theme .home-btns .blink_me { animation: care-button-arrow 1.5s ease-in-out infinite; }
.public-theme .home-btns .button-notes { display: block; width: min(780px, 100%); margin: 12px auto 18px; padding: 0 16px; }
.public-theme .home-btns .button-notes em { display: inline-block; width: 23%; margin: 0; }
.public-theme .home-btns .button-notes img { width: 25px; height: auto; }
.public-theme .home-btns .button-notes p { color: var(--care-ink); font-size: 14px; line-height: 1.7; margin: 10px 0 0; }
@keyframes care-button-arrow { 0%, 100% { transform: translateX(0); opacity: .65; } 50% { transform: translateX(7px); opacity: 1; } }
@media (max-width: 767px) {
  .public-theme .home-btns .main-btn-blk { flex-direction: column; gap: 14px; padding: 0 18px; }
  .public-theme .home-btns .mid-btn-note { flex-direction: column; gap: 6px; max-width: 280px; }
  .public-theme .home-btns .mid-btn-note p { text-align: center; font-size: 14px; }
  .public-theme .home-btns .mid-btn-note em { flex: none; height: 38px; display: grid; place-items: center; }
  .public-theme .home-btns .mid-btn-note img { width: 32px; transform: rotate(90deg); }
  .public-theme .home-btns .blink_me { animation-name: care-button-arrow-down; }
  .public-theme .home-btns .button-notes { margin-top: 10px; }
  .public-theme .home-btns .button-notes em { width: 21%; }
}
@keyframes care-button-arrow-down { 0%, 100% { transform: translateY(0); opacity: .65; } 50% { transform: translateY(5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .public-theme .home-btns .blink_me { animation: none; }
}

/* Home action hierarchy: orange primary actions, quiet supporting links. */
.public-theme .home-btns .main-btn,
.public-theme .home-right.top-login-btn {
  background: #fa981b;
  color: #173b50;
  border: 1px solid #ed8b0e;
  box-shadow: 0 5px 15px #c7771426;
  font-weight: 700;
}
.public-theme .home-btns .main-btn:hover,
.public-theme .home-btns .main-btn:focus,
.public-theme .home-right.top-login-btn:hover,
.public-theme .home-right.top-login-btn:focus {
  background: #ffad3d;
  color: #173b50;
  box-shadow: 0 6px 18px #c7771438;
}
.public-theme .home-btns .mid-btns {
  background: #fff;
  color: var(--care-blue);
  border: 1px solid #a9cddd;
  box-shadow: none;
}
.public-theme .home-btns .mid-btns:hover,
.public-theme .home-btns .mid-btns:focus {
  background: #e5f3fa;
  color: #005d80;
  border-color: var(--care-blue);
}
.public-theme .home-right.top-login-btn {
  width: auto;
  min-width: 104px;
  height: 48px;
  padding: 0 22px;
  line-height: 46px;
  font-size: 15px;
  bottom: 24px;
  right: 24px;
}
@media (max-width: 767px) {
  .public-theme .home-right.top-login-btn {
    position: static;
    display: table;
    margin: 12px auto 24px;
  }
}

/* LMS surfaces stay white; deeper orange supports clear white action labels. */
.public-theme,
.public-theme .welcome-page,
.public-theme .login-tp-bg,
.public-theme .lesson-workspace { background: #fff; }
.public-theme .home-btns .main-btn,
.public-theme .home-right.top-login-btn {
  background: #b95b00;
  border-color: #b95b00;
  color: #fff;
}
.public-theme .home-btns .main-btn:hover,
.public-theme .home-btns .main-btn:focus,
.public-theme .home-right.top-login-btn:hover,
.public-theme .home-right.top-login-btn:focus {
  background: #9e4c00;
  border-color: #9e4c00;
  color: #fff;
}

/* Filled secondary actions make the home navigation visibly clickable. */
.public-theme .home-btns .mid-btns {
  background: var(--care-blue);
  border-color: var(--care-blue);
  color: #fff;
  box-shadow: 0 3px 8px #123e591a;
}
.public-theme .home-btns .mid-btns:hover,
.public-theme .home-btns .mid-btns:focus {
  background: #00698e;
  border-color: #00698e;
  color: #fff;
  box-shadow: 0 5px 12px #123e5926;
}

/* Data-heavy lessons use the viewport; prose keeps its reading width.
   The existing selected class follows Next/Previous navigation. */
.public-theme .lesson-workspace #workbook-ajax:has(.cmn-cont.selected .mid-table) {
  max-width: none;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}
.public-theme .lesson-workspace .cmn-cont.selected:has(.mid-table) {
  padding: 20px;
  min-width: 0;
}
.public-theme .lesson-workspace .mid-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
  .public-theme .lesson-workspace #workbook-ajax:has(.cmn-cont.selected .mid-table) {
    padding-left: 12px;
    padding-right: 12px;
  }
  .public-theme .lesson-workspace .cmn-cont.selected:has(.mid-table) { padding: 12px; }
}

/* Compact workbook chrome keeps the lesson and grid near the top. */
.public-theme .lesson-topbar { padding-top: 8px; padding-bottom: 8px; }
.public-theme .lesson-brand > span { width: 32px; height: 32px; border-radius: 8px; font-size: 17px; }
.public-theme .lesson-brand { gap: 9px; }
.public-theme .lesson-brand strong { font-size: 15px; line-height: 1.2; }
.public-theme .lesson-brand small { font-size: 10px; line-height: 1.3; }
.public-theme .lesson-topbar nav { font-size: 12px; gap: 18px; }
.public-theme .lesson-all-steps { padding: 5px 10px; }
.public-theme .lesson-context { margin-top: 7px; margin-bottom: 5px; line-height: 20px; }
.public-theme .lesson-workspace .hdr-btns-row { margin-bottom: 5px; }
.public-theme .lesson-workspace .pagination { min-height: 24px; line-height: 22px; padding-top: 0; padding-bottom: 0; }
.public-theme .lesson-workspace .pagination .curPage { font-size: 15px; }
@media (max-width: 767px) {
  .public-theme .lesson-topbar { padding-top: 7px; padding-bottom: 7px; }
  .public-theme .lesson-context { margin-top: 5px; margin-bottom: 3px; }
}

/* Ultra-compact lesson header: navigation plus one shared context row. */
.public-theme .lesson-topbar { min-height: 40px; padding-top: 5px; padding-bottom: 5px; }
.public-theme .lesson-brand > span { width: 28px; height: 28px; font-size: 15px; border-radius: 6px; }
.public-theme .lesson-brand strong { display: flex; align-items: baseline; gap: 9px; font-size: 14px; }
.public-theme .lesson-brand small { display: inline; font-size: 10px; }
.public-theme .lesson-all-steps { padding: 3px 9px; }
.public-theme .lesson-context { max-width: none; height: 26px; margin: 0; padding: 0 130px 0 24px; line-height: 26px; font-size: 11px; }
.public-theme .lesson-stage { font-size: 9px; }
.public-theme .lesson-workspace #workbook-ajax { position: relative; }
.public-theme .lesson-workspace .step-hdr { position: static; }
.public-theme .lesson-workspace .hdr-btns-row { position: absolute; top: -25px; right: 24px; margin: 0; line-height: 22px; }
.public-theme .lesson-workspace .pagination { min-height: 20px; line-height: 20px; border-radius: 5px; font-size: 10px; }
.public-theme .lesson-workspace .pagination .curPage { font-size: 13px; }
.public-theme .lesson-workspace .hdr-btns-row > .top-logout-btn { width: auto; height: 20px; line-height: 20px; padding: 0 8px; font-size: 10px; }
@media (max-width: 767px) {
  .public-theme .lesson-topbar { padding: 5px 12px; }
  .public-theme .lesson-brand small { display: none; }
  .public-theme .lesson-context { margin: 0; padding-left: 12px; padding-right: 95px; gap: 7px; font-size: 10px; }
  .public-theme .lesson-stage { display: none; }
  .public-theme .lesson-workspace .hdr-btns-row { right: 12px; }
}

/* Compact birth-register rows without shrinking answer controls. */
.public-theme .lesson-workspace .hospital-reg table tr th {
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.35;
}
.public-theme .lesson-workspace .hospital-reg table tr td {
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.4;
}
.public-theme .lesson-workspace .hospital-reg table tr td .fa-check { font-size: 15px; }
.public-theme .lesson-workspace .hospital-reg table tr.table-que td { padding-top: 7px; padding-bottom: 7px; }
.public-theme .lesson-workspace .hospital-reg table tr td .performence-field { margin-top: 3px; margin-bottom: 3px; }

/* Square edges throughout the workbook learning workspace. */
.public-theme .lesson-workspace :is(
  .lesson-brand > span, .lesson-all-steps, .pagination, .hdr-btns,
  .cmn-cont, .mid-table, .lesson-kicker, .lesson-kicker span,
  .intropage h1, .learning-opt ol li, .nxt-prv-btn, .submit-btn,
  .mid-btns, .btn, .form-control, .que-row, .ans-row, .explanation-blk
),
.public-theme .lesson-workspace .first-cont .learning-opt ol li::before {
  border-radius: 0;
}
.public-theme .lesson-workspace .cmn-cont.first-cont,
.public-theme .lesson-workspace .first-cont .learning-opt ol li,
.public-theme .lesson-workspace .lesson-kicker span:first-child {
  border-radius: 0;
}
