/* G Career · one stylesheet for the website, dashboards, caregiver training and certificates */
@font-face { font-family: "GC Sans"; src: url("/fonts/NotoSans-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GC Sans"; src: url("/fonts/NotoSans-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GC Display"; src: url("/fonts/NotoSerifDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --teal: #0F4C5C; --teal-2: #136378; --ink: #0B2E36; --gold: #D4A63A; --gold-ink: #8A6A1C;
  --bg: #F3F7F7; --sage: #E2EDEB; --line: #D5E1DF; --muted: #4F6468; --white: #fff;
  --ok: #1F7A4D; --ok-bg: #E4F3EA; --warn: #8A5A00; --warn-bg: #FFF4DB; --err: #A3261B; --err-bg: #FCE9E6;
  --radius: 10px; --radius-lg: 18px;
  --sans: "GC Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "GC Display", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.pad-xl { padding: 96px 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .95rem; font-weight: 700; color: var(--gold-ink); margin-bottom: .6em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .98rem; padding: 12px 20px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; line-height: 1.2; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E2B748; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--teal); border-color: #A9C3C2; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-light:hover { border-color: #fff; color: #fff; }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-plain { text-decoration: none; font-weight: 700; color: var(--ink); }

/* header */
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { width: 176px; height: auto; }
.menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font-weight: 700; font-size: .96rem; color: var(--ink); text-decoration: none; border-radius: 6px; }
.menu > li > a.on, .menu > li > a:hover { color: var(--teal); background: var(--sage); }
.has-sub .sub { display: none; position: absolute; top: 100%; left: 0; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 14px 36px rgba(11,46,54,.12); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sub a:hover { background: var(--bg); }
.sub b { display: block; }
.sub span { font-size: .86rem; color: var(--muted); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 1020px) {
  .site-header nav, .site-header .actions { display: none; }
  .burger { display: block; }
  .site-header.open nav, .site-header.open .actions { display: block; }
  .site-header.open .bar { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .site-header.open nav { width: 100%; order: 3; }
  .site-header.open .menu { flex-direction: column; }
  .site-header.open .has-sub .sub { display: block; position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 0 12px; }
  .site-header.open .actions { width: 100%; order: 4; display: flex; flex-wrap: wrap; padding: 8px 0 6px; }
}

/* hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--ink); max-width: 15ch; }
.hero .lead { margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* the training-year graphic (signature element) */
.year { margin: 0; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 30px 30px 24px; box-shadow: 0 30px 60px -30px rgba(11,46,54,.6); }
.year-head { margin-bottom: 16px; }
.year-head b { display: block; }
.year-head b { font-family: var(--display); font-size: 1.45rem; }
.year-head span { color: #A9C7C9; font-size: .9rem; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .72rem; color: #8FB1B3; margin: 0 0 8px 104px; }
.track { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; margin: 10px 0; }
.track-label { font-size: .86rem; line-height: 1.25; }
.track-label small { display: block; color: #A9C7C9; }
.lane { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; height: 34px; }
.blk { border-radius: 5px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--teal-2); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #DCEDEE; }
.blk.gold { background: var(--gold); color: var(--ink); }
.blk.soft { background: #2B6170; }
.blk.span2 { grid-column: span 2; } .blk.span3 { grid-column: span 3; } .blk.span6 { grid-column: span 6; } .blk.span12 { grid-column: span 12; }
.year-foot { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #BCD4D6; }
.year-foot i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 520px) { .months { margin-left: 0; } .track { grid-template-columns: 1fr; } .year { padding: 20px 16px; } }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: #fff; }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .lead, .section.dark .muted { color: #BCD4D6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* program panels: three trainings, each a distinct tall panel */
.program { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.program::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--teal); }
.program.pca::before { background: linear-gradient(90deg, var(--teal) 50%, var(--teal-2) 50%); }
.program.annual::before { background: var(--gold); }
.program .hours { font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--teal); margin: 6px 0 4px; }
.program .hours small { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 6px; }
.program h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.program p { color: var(--muted); }
.program .who { font-size: .9rem; font-weight: 700; color: var(--gold-ink); }
.program .more { margin-top: auto; font-weight: 700; color: var(--teal); padding-top: 12px; }
.program:hover { border-color: #A9C3C2; color: var(--ink); }

/* features list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 44px; }
.feature h3 { margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.feature h3 svg { flex: none; color: var(--teal); }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* steps (a real sequence, so numbered) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 22px 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 14px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .96rem; }
.section.dark .steps p { color: #BCD4D6; }
.section.dark .steps li::after { background: rgba(255,255,255,.18); }
.section.dark .steps li::before { background: var(--gold); color: var(--ink); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 30px 0; } .steps li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* photo with caption */
.photo { border-radius: var(--radius-lg); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* roles strip */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.roles > div { padding: 26px; }
.roles > div + div { border-left: 1px solid var(--line); }
.roles h3 { margin-bottom: 4px; }
.roles .can { font-size: .9rem; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.roles p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } .roles > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* call to action band */
.cta-band { background: var(--teal); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; max-width: 22ch; }
.cta-band p { color: #CFE3E4; margin: 0; max-width: 56ch; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* page heads */
.page-head { padding: 64px 0 40px; background: #fff; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.crumbs { font-size: .9rem; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* training detail page */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; }
.facts dl { margin: 0; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0 0 14px; font-weight: 700; }
.facts .btn { width: 100%; margin-top: 6px; }
.modules { list-style: none; padding: 0; margin: 0 0 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.modules li { display: flex; gap: 16px; padding: 16px 20px; align-items: flex-start; }
.modules li + li { border-top: 1px solid var(--line); }
.mcode { flex: none; min-width: 52px; text-align: center; font-weight: 700; font-size: .85rem; color: var(--teal); background: var(--sage); border-radius: 6px; padding: 4px 6px; }
.modules b { display: block; }
.modules small { color: var(--muted); }
.session { margin: 26px 0 10px; font-size: 1.05rem; }
.rule { border-left: 4px solid var(--gold); background: #fff; padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 28px; }
.rule p:last-child { margin: 0; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose { max-width: 72ch; }
.cite { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .facts { position: static; } }

/* comparison table */
.req-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); font-size: .96rem; }
.req-table th, .req-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.req-table th { background: var(--sage); font-size: .9rem; }
.req-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
label.f { display: block; font-weight: 700; font-size: .92rem; }
label.f span.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 1rem; width: 100%; padding: 11px 12px; border: 1.5px solid #B9CBCA; border-radius: 8px; background: #fff; color: var(--ink); margin-top: 6px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,76,92,.15); }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 8px 0 0; accent-color: var(--teal); transform: scale(1.15); }
.check { display: flex; align-items: flex-start; gap: 4px; font-weight: 400; font-size: .96rem; }
.check input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.alert { padding: 14px 16px; border-radius: var(--radius); margin: 12px 0; font-size: .96rem; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--sage); color: var(--ink); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* verify */
.verify-box { display: flex; gap: 10px; }
.verify-box input { margin: 0; text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
.verify-result dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 16px 0 0; }
.verify-result dt { color: var(--muted); }
.verify-result dd { margin: 0; font-weight: 700; }

/* footer */
.site-footer { background: var(--ink); color: #BCD4D6; padding: 60px 0 24px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a, .site-footer span { display: block; color: #BCD4D6; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .about img { margin-bottom: 14px; width: 170px; }
.site-footer .foot-cta { color: var(--gold); font-weight: 700; }
.site-footer .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 18px; font-size: .86rem; }
.site-footer .legal span, .site-footer .legal a { display: inline; margin: 0; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ================= app (dashboards) ================= */
body.app, body.auth, body.learn { background: var(--bg); }
.boot { padding: 80px; text-align: center; color: var(--muted); }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #CFE0E1; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .logo { padding: 4px 8px 20px; }
.side .logo img { width: 160px; }
.side nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #CFE0E1; text-decoration: none; border-radius: 8px; font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a.on { background: var(--teal); color: #fff; }
.side .badge { background: var(--gold); color: var(--ink); border-radius: 20px; padding: 0 8px; font-size: .78rem; }
.side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.side .me b { color: #fff; display: block; }
.side .me button { background: none; border: 0; color: var(--gold); padding: 0; font: inherit; font-weight: 700; cursor: pointer; margin-top: 6px; }
.main { padding: 28px 34px 60px; min-width: 0; }
.main h1 { font-family: var(--sans); font-size: 1.6rem; margin-bottom: 4px; }
.topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.topline .muted { margin: 0; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tools select, .tools input { margin: 0; width: auto; padding: 8px 10px; font-size: .92rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.stat b { display: block; font-size: 1.9rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat.alert-stat { border-color: var(--gold); background: #FFFBF0; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-family: var(--sans); font-size: 1.08rem; margin: 0; }
.panel-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.t th { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFCFC; }
table.t td { padding: 11px 14px; border-bottom: 1px solid #E8EFEE; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #F6FAFA; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--sage); color: var(--ink); }
.pill.assigned { background: #EEF2F2; color: var(--muted); }
.pill.in_progress { background: #E1EEF6; color: #1C4F78; }
.pill.pending_rn { background: var(--warn-bg); color: var(--warn); }
.pill.returned { background: #F7E8F4; color: #7A2E6B; }
.pill.completed { background: var(--ok-bg); color: var(--ok); }
.pill.revoked { background: var(--err-bg); color: var(--err); }
.bar-mini { width: 90px; height: 7px; background: #E2EBEA; border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.bar-mini i { display: block; height: 100%; background: var(--teal); }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-form .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .grid-form { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.mod-row { display: grid; grid-template-columns: 60px 1fr 120px 90px 80px; gap: 10px; padding: 10px 0; border-bottom: 1px solid #E8EFEE; align-items: center; font-size: .93rem; }
.mod-row:last-child { border-bottom: 0; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 100; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.err { background: var(--err); }
dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(620px, 94vw); box-shadow: 0 30px 80px rgba(11,46,54,.35); color: var(--ink); }
dialog::backdrop { background: rgba(11,46,54,.45); }
.dlg-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { font-family: var(--sans); font-size: 1.15rem; margin: 0; }
.dlg-body { padding: 20px 22px; max-height: 70vh; overflow-y: auto; }
.dlg-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.mobile-top { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 60; }
  .shell.nav-open .side { transform: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); }
  .mobile-top img { width: 130px; }
  .mobile-top button { background: none; border: 0; color: #fff; font-size: 1.6rem; }
  .main { padding: 20px 16px 50px; }
  .mod-row { grid-template-columns: 50px 1fr 80px; }
  .mod-row .hide-sm { display: none; }
}

/* auth pages */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; }
.auth-card .logo { display: block; width: 180px; margin: 0 auto 22px; }
.auth-card h1 { font-family: var(--sans); font-size: 1.45rem; text-align: center; }
.auth-card form > * + * { margin-top: 14px; }
.auth-card .btn { width: 100%; }
.auth-links { text-align: center; margin-top: 18px; font-size: .94rem; }

/* ================= caregiver training ================= */
.learn-top { background: #fff; border-bottom: 1px solid var(--line); }
.learn-top .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.learn-top .ag-logo { height: 40px; width: auto; max-width: 110px; object-fit: contain; }
.learn-top .ag b { display: block; line-height: 1.2; }
.learn-top .ag span { font-size: .86rem; color: var(--muted); }
.learn-main { width: min(820px, 100% - 32px); margin: 0 auto; padding: 28px 0 70px; }
.learn-main h1 { font-family: var(--sans); font-size: 1.6rem; }
.progress-big { height: 14px; background: #DCE7E6; border-radius: 8px; overflow: hidden; margin: 10px 0 6px; }
.progress-big i { display: block; height: 100%; background: var(--teal); transition: width .4s; }
.mod-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.mod-card:hover { border-color: var(--teal); color: var(--ink); }
.mod-card .state { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--sage); color: var(--teal); }
.mod-card.done .state { background: var(--ok); color: #fff; }
.mod-card.locked { opacity: .6; cursor: not-allowed; }
.mod-card .info { flex: 1; min-width: 0; }
.mod-card .info b { display: block; line-height: 1.3; }
.mod-card .info span { font-size: .88rem; color: var(--muted); }
.lesson { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; font-size: 1.06rem; line-height: 1.7; }
.lesson h2 { font-family: var(--sans); font-size: 1.3rem; margin: 1.4em 0 .5em; color: var(--teal); }
.lesson h2:first-child { margin-top: 0; }
.lesson ul { padding-left: 1.2em; margin: 0 0 1em; }
.lesson .callout { background: var(--sage); border-left: 4px solid var(--teal); padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 0 0 1em; }
.lesson .agency-box { background: #FFFBF0; border: 1px solid #EBD69C; padding: 14px 16px; border-radius: 8px; margin: 0 0 1em; white-space: pre-wrap; }
.lesson table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.lesson td, .lesson th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.lesson tr:first-child td { background: var(--sage); font-weight: 700; }
.timer { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 0; margin-top: 20px; }
.timer .wrap2 { width: min(820px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.timer .tbar { flex: 1; min-width: 160px; height: 10px; background: #DCE7E6; border-radius: 6px; overflow: hidden; }
.timer .tbar i { display: block; height: 100%; background: var(--gold); }
.quiz .q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.quiz .q.right { border-color: var(--ok); background: #F5FBF7; }
.quiz .q.wrong { border-color: var(--err); background: #FFF8F7; }
.quiz .q p { font-weight: 700; margin-bottom: 10px; }
.quiz label { display: flex; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; align-items: flex-start; }
.quiz label:hover { background: var(--bg); }
.quiz label input { margin-top: 6px; }
.why { font-size: .92rem; color: var(--muted); margin-top: 8px; }

/* ================= certificate / report (print) ================= */
body.print-page { background: #E9EFEF; }
.cert-toolbar { display: flex; gap: 10px; justify-content: center; padding: 18px; }
.certificate { width: 8.5in; min-height: 11in; margin: 0 auto 40px; background: #fff; padding: .7in .75in; position: relative; border: 10px solid var(--teal); outline: 2px solid var(--gold); outline-offset: -18px; }
.cert-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cert-head .ag-logo { max-height: 70px; max-width: 200px; object-fit: contain; }
.ag-name-big { font-family: var(--display); font-size: 1.6rem; color: var(--teal); }
.cert-agency { text-align: right; font-size: .82rem; color: var(--muted); }
.cert-agency b, .cert-agency span { display: block; }
.cert-agency b { color: var(--ink); font-size: .95rem; }
.cert-kicker { text-align: center; margin: 40px 0 6px; color: var(--gold-ink); font-weight: 700; font-size: 1.05rem; }
.cert-name { text-align: center; font-family: var(--display); font-size: 2.6rem; color: var(--ink); margin: 0; }
.cert-line { text-align: center; color: var(--muted); margin: 4px 0 18px; }
.cert-body { text-align: center; max-width: 60ch; margin: 0 auto 22px; font-size: .98rem; }
.cert-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.cert-table th, .cert-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.cert-table th { background: var(--sage); }
.cert-table .total td { font-weight: 700; border-bottom: 0; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 40px; }
.sig-name { font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive; font-size: 2rem; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding: 0 20px 2px 0; }
.sig-line { font-size: .85rem; margin-top: 4px; }
.sig small, .cert-meta { font-size: .78rem; color: var(--muted); }
.cert-meta { text-align: right; }
.cert-meta b { color: var(--ink); }
.cert-meta .issuer { margin-top: 6px; }
.cert2 { display: flex; flex-direction: column; }
.cert2 .cert-kicker { font-size: 1.5rem; letter-spacing: .02em; margin-top: 46px; font-family: var(--display); }
.cert-presented { text-align: center; color: var(--muted); margin: 22px 0 4px; }
.cert2 .cert-name { font-size: 2.9rem; }
.cert2 .cert-body { margin: 12px auto 2px; color: var(--muted); }
.cert-program { text-align: center; font-family: var(--display); font-size: 1.55rem; color: var(--teal); margin: 0 0 30px; }
.cert-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 auto 10px; width: 100%; }
.cert-facts > div { padding: 14px 10px; text-align: center; border-right: 1.5px solid var(--line); }
.cert-facts > div:last-child { border-right: 0; }
.cert-facts span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cert-facts b { display: block; font-size: 1.25rem; color: var(--ink); margin-top: 4px; }
.cert-facts small { display: block; font-size: .72rem; color: var(--muted); }
.cert-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: auto; padding-top: 60px; }
.cert-sigs .sig-name, .cert-sigs .sig-img { height: 54px; }
.cert-sigs .sig-img { display: block; max-width: 240px; object-fit: contain; object-position: left bottom; border-bottom: 1.5px solid var(--ink); width: 100%; }
.cert-sessions { text-align: center; font-size: .9rem; color: var(--ink); margin: 6px 0 0; }
.cert-id { text-align: center; font-size: .72rem; color: var(--muted); margin: 26px 0 0; }
@media (max-width: 860px) { .cert-facts { grid-template-columns: 1fr 1fr; } .cert-facts > div:nth-child(2) { border-right: 0; } .cert-facts > div:nth-child(-n+2) { border-bottom: 1.5px solid var(--line); } .cert-sigs { grid-template-columns: 1fr; gap: 30px; } }
.void-mark { position: absolute; inset: 40% 0 auto; text-align: center; font-size: 6rem; font-weight: 700; color: rgba(163,38,27,.18); transform: rotate(-18deg); pointer-events: none; }
.report { width: 8.5in; margin: 0 auto 40px; background: #fff; padding: .6in; font-size: .9rem; }
.report h1 { font-family: var(--sans); font-size: 1.4rem; }
.report h2 { font-family: var(--sans); font-size: 1.05rem; margin-top: 22px; }
.report .qa li { margin-bottom: 8px; }
.report .qa li.no { color: var(--err); }

/* ---- certificate (landscape, same layout as the agency paper certificate) ---- */
.cert3 { width: 11in; height: 8.5in; box-sizing: border-box; margin: 0 auto 40px; background: #fff; border: 14px solid #1E5A5E; padding: 14px; position: relative; color: #1C2B30; font-family: var(--sans); }
.cert3 .c3-in { box-sizing: border-box; height: 100%; border: 1.5px solid #B8892B; background: #FFFDF7; padding: 26px 64px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.c3-logo { max-height: 42px; max-width: 160px; object-fit: contain; margin-bottom: 4px; }
.c3-agency { color: #1E5A5E; font-weight: 700; font-size: 17px; letter-spacing: .01em; text-transform: uppercase; line-height: 1.2; }
.c3-address { font-size: 12px; font-weight: 700; color: #2A3A3F; margin-top: 4px; }
.cert3 .c3-title { font-family: Georgia, var(--display); font-weight: 700; font-size: 40px; line-height: 1.1; margin: 10px 0 0; color: #1C2B30; letter-spacing: -.005em; }
.c3-certifies { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 18px; margin: 4px 0 0; color: #2A3A3F; }
.c3-name { font-family: Georgia, var(--display); font-weight: 700; font-size: 32px; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; margin-top: 2px; padding: 0 26px 4px; border-bottom: 2px solid #B8892B; min-width: 46%; }
.c3-role { font-size: 13px; margin: 8px 0 0; color: #2A3A3F; }
.c3-lead { font-size: 13px; margin: 4px 0 6px; color: #2A3A3F; }
.c3-table { width: 100%; border-collapse: collapse; font-size: 11.5px; color: #2A3A3F; }
.c3-table th { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 3px 0 4px; border-bottom: 1.5px solid #B8892B; color: #1C2B30; }
.c3-table td { text-align: left; padding: 5px 0; border-bottom: 1px solid #ECE7DA; }
.c3-table .n { text-align: right; width: 70px; } .c3-table .m { text-align: center; width: 130px; } .c3-table .d { text-align: right; width: 90px; }
.c3-table td.pass { color: #2E7D46; font-weight: 700; }
.c3-summary { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #2A3A3F; }
.c3-summary b { font-size: 15px; color: #1C2B30; }
.c3-summary .c3-topics { font-weight: 700; color: #1C2B30; }
.c3-foot { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 10px; }
.c3-col { width: 37%; text-align: left; display: flex; flex-direction: column; }
.c3-col.r { text-align: right; }
.c3-above { font-size: 14px; min-height: 34px; display: flex; align-items: flex-end; padding: 0 2px 3px; }
.c3-col.r .c3-above { justify-content: flex-end; }
.c3-rule { border-top: 1.2px solid #444; }
.c3-col small { font-size: 9.5px; color: #2A3A3F; margin-top: 5px; }
.c3-col small.c3-lic { margin-top: 1px; }
.c3-sig-name { font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive; font-size: 24px; line-height: 1; }
.c3-sig-img { max-height: 40px; max-width: 220px; object-fit: contain; }
.c3-id { font-family: "Courier New", Courier, monospace; font-weight: 700; font-size: 11px; margin: 8px 0 0; letter-spacing: .02em; }
@media print { .cert3 { margin: 0; } }
@media screen and (max-width: 1100px) { body.print-page { overflow-x: auto; } }

@media print {
  @page { size: letter; margin: 0; }
  body.print-page { background: #fff; }
  .no-print { display: none !important; }
  .certificate { margin: 0; border-width: 10px; }
  .report { margin: 0; }
}
@media (max-width: 860px) { .certificate, .report { width: auto; min-height: 0; padding: 28px 20px; } .cert-name { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- invoice (printable; save as PDF) ---------- */
.invoice { position: relative; max-width: 8in; margin: 0 auto 40px; background: #fff; padding: .55in .6in; border: 1px solid var(--line); color: #1d2b2b; font-size: 13px; line-height: 1.45; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 3px solid #1E5A5E; padding-bottom: 16px; }
.inv-logo { height: 38px; display: block; margin-bottom: 8px; }
.inv-from { font-size: 12.5px; color: #3b4a4a; }
.inv-title { text-align: right; }
.inv-title h1 { margin: 0 0 8px; font-family: Georgia, serif; letter-spacing: .12em; color: #1E5A5E; font-size: 30px; }
.inv-meta { margin-left: auto; border-collapse: collapse; font-size: 12.5px; }
.inv-meta th { text-align: left; color: #5d6b6b; font-weight: 600; padding: 2px 12px 2px 0; }
.inv-meta td { text-align: right; padding: 2px 0; }
.inv-billto { margin: 18px 0; }
.invoice small { display: block; color: #B8892B; font-weight: 700; letter-spacing: .08em; font-size: 10.5px; margin-bottom: 3px; }
.inv-table, .inv-detail { width: 100%; border-collapse: collapse; }
.inv-table th, .inv-detail th { background: #E3EFEE; text-align: left; padding: 7px 8px; font-size: 12px; }
.inv-table td, .inv-detail td { padding: 7px 8px; border-bottom: 1px solid #e6ecec; }
.inv-table .n, .inv-detail .n { text-align: right; }
.inv-table tfoot td { border-bottom: 0; padding-top: 6px; }
.inv-due td { background: #FFFBF0; border-top: 2px solid #B8892B !important; font-size: 14px; }
.inv-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; padding: 14px 16px; background: #FFFDF7; border: 1px solid #efe4c8; border-radius: 6px; }
.inv-h2 { font-size: 15px; margin: 26px 0 8px; color: #1E5A5E; break-before: auto; }
.inv-detail { font-size: 11.5px; }
.inv-detail td { padding: 4px 6px; }
.inv-foot { margin-top: 22px; text-align: center; color: #5d6b6b; font-size: 11.5px; }
.inv-paid { position: absolute; top: 1.6in; right: .8in; transform: rotate(-12deg); border: 4px solid #2E7D4F; color: #2E7D4F; font: 800 34px/1 Georgia, serif; padding: 6px 18px; border-radius: 8px; opacity: .55; }
.invoice.void { opacity: .75; }
@media print { .invoice { border: 0; padding: 0; max-width: none; margin: 0; } .inv-detail tr { break-inside: avoid; } }
.report table.tbl { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: .92rem; }
.report table.tbl th, .report table.tbl td { border-bottom: 1px solid #e3e9e9; padding: 5px 8px; text-align: left; }
.report table.tbl th { background: #E3EFEE; }
