/*
Theme Name: APLMED Academy 2026
Theme URI: https://aplmed.com/
Author: APLMED Academy Inc.
Description: Theme for APLMED Academy (CNA school, Aurora CO). Warm light design, built from the approved "APLMED — Warm v2" mockup. CNA groups, QMAP exam dates, reviews and site settings are edited in the WordPress admin.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: aplmed
*/

/* ==========================================================
   1. Design tokens
   ========================================================== */
:root {
	--c-bg: #faf6f0;
	--c-sand: #f1e8dc;
	--c-sand-2: #e8d9c6;
	--c-white: #ffffff;
	--c-text: #2a2420;
	--c-muted: #6f6359;
	--c-faint: #9a8d80;
	--c-line: #e6dccf;
	--c-line-2: #efe6da;
	--c-line-3: #d9ccbb;
	--c-brand: #981014;
	--c-accent: #1f6f6b;
	--c-accent-ink: #ffffff;
	--c-link: #1f6f6b;       /* links in text = brand teal of the buttons */
	--c-link-hover: #144a47;

	--f-brand: "Cinzel", Georgia, serif;
	--f-head: "Lora", Georgia, serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(56px, 8vw, 90px);
	--r-sm: 12px;
	--r-md: 16px;
	--r-lg: 20px;
	--r-xl: 28px;
	--shadow: 0 10px 30px rgba(42, 36, 32, .12);
}

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-text); }
a:hover { color: var(--c-muted); }
/* Links in running text: teal and underlined, so they read as links. Menus, buttons and cards keep their own look. */
.prose a:not(.btn), .site-footer a:not(.btn),
main :is(p, li, td, dd, address, figcaption, label) a:not(.btn):not(.res):not(.sched-btn) {
	color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose a:not(.btn):hover, .site-footer a:not(.btn):hover,
main :is(p, li, td, dd, address, figcaption, label) a:not(.btn):not(.res):not(.sched-btn):hover { color: var(--c-link-hover); text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; clip: auto; width: auto; height: auto;
	background: var(--c-white); padding: 10px 16px; border-radius: var(--r-sm);
}
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sand { background: var(--c-sand); }
.section--tight-top { padding-top: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.h1 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -.01em; }
.h1--hero { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; }
.h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--c-muted); max-width: 640px; }
.muted { color: var(--c-muted); }
.small { font-size: 14px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 16px 30px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px;
	text-decoration: none; cursor: pointer; border: 1.5px solid transparent; line-height: 1.2;
}
.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--primary:hover { color: var(--c-accent-ink); filter: brightness(1.08); }
.btn--ghost { border-color: var(--c-text); color: var(--c-text); background: transparent; }
.btn--light { background: var(--c-white); color: var(--c-text); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.link-arrow { font-weight: 600; }

/* Cards */
.card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.card--plain { border: 0; }
.card--sand { background: var(--c-sand); border: 0; }
.pill { display: inline-block; background: var(--c-sand); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 4px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line-2); font-size: 17px; }
.price-row:last-child { border-bottom: 0; }
.placeholder {
	background: var(--c-sand-2); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 20px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted);
}
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--c-white); border-radius: var(--r-md); padding: 18px 20px; font-size: 15px; line-height: 1.55; }
.breadcrumbs { font-size: 13px; color: var(--c-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--c-muted); }

/* ==========================================================
   3. Header
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.admin-bar .site-header { top: 32px; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.brand img { height: 42px; width: auto; }
.brand__name { font-family: var(--f-brand); font-weight: 700; font-size: 16px; letter-spacing: .02em; line-height: 1; white-space: nowrap; color: var(--c-brand); }
.site-header__actions { display: none; align-items: center; gap: 16px; }
.site-header__phone { font-weight: 600; font-size: 15px; text-decoration: none; }
.site-header__mobile { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-btn {
	width: 46px; height: 46px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-white);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0;
	color: var(--c-text); text-decoration: none; font-size: 9px; font-weight: 600; cursor: pointer;
}
.icon-btn .icon-close { display: none; }
.icon-btn[aria-expanded="true"] .icon-open { display: none; }
.icon-btn[aria-expanded="true"] .icon-close { display: block; }

.primary-nav { display: none; border-top: 1px solid var(--c-line); }
.primary-nav ul { list-style: none; margin: 0 auto; padding: 12px var(--gutter); max-width: var(--wrap); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 36px; font-size: 15px; font-weight: 500; }
.primary-nav a { text-decoration: none; }
.primary-nav .current-menu-item > a, .primary-nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--c-accent); padding-bottom: 3px; }
.primary-nav .menu-login a, .nav-login {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid var(--c-line-3); border-radius: 999px; background: var(--c-white);
}
.primary-nav li:has(> .nav-logout) { margin-left: -20px; }
.nav-logout { color: var(--c-muted); font-size: 14px; }
.nav-logout:hover { color: var(--c-text); }

.mobile-nav { border-top: 1px solid var(--c-line); padding: 4px 18px 20px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--c-line-2); font-size: 18px; font-weight: 600; text-decoration: none; }
.mobile-nav__cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.mobile-nav__cta .btn { padding: 13px 10px; font-size: 15px; }

@media (min-width: 761px) {
	.site-header__bar { padding-block: 10px; gap: 16px 24px; flex-wrap: wrap; }
	.brand { gap: 18px; }
	.brand img { height: 80px; }
	.brand__name { font-size: clamp(22px, 3.2vw, 40px); letter-spacing: .06em; }
	.site-header__actions { display: flex; }
	.site-header__mobile, .mobile-nav { display: none !important; }
	.primary-nav { display: block; }
}

/* ==========================================================
   4. Footer
   ========================================================== */
.site-footer { border-top: 1px solid var(--c-line); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px 48px; font-size: 14px; color: var(--c-muted); }
.site-footer img { height: 84px; width: auto; }
.site-footer a { color: var(--c-muted); }
.site-footer b { color: var(--c-text); }
.call-bar { display: none; }
@media (max-width: 760px) {
	.call-bar {
		position: sticky; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
		background: var(--c-bg); border-top: 1px solid var(--c-line); padding: 10px 14px 14px;
	}
	.call-bar .btn { padding: 13px 10px; font-size: 15px; }
	.site-footer__inner { flex-direction: column; text-align: center; }
}

/* ==========================================================
   5. Home
   ========================================================== */
.hero { padding-block: 40px var(--section); }
.hero__grid { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.hero__lead { margin: 20px 0 34px; max-width: 500px; }
.hero__facts { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 24px 36px; font-size: 14px; color: var(--c-muted); }
.hero__facts b { display: block; font-size: 18px; color: var(--c-text); margin-bottom: 4px; }
.hero__media { position: relative; min-height: clamp(300px, 40vw, 520px); }
.hero__media .placeholder, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-xl); }
.float-card { position: absolute; background: var(--c-white); border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.float-card--tl { top: 24px; left: 12px; }
.float-card--br { bottom: 24px; right: 12px; flex-direction: column; align-items: flex-start; gap: 2px; }
.float-card--br span { font-size: 13px; font-weight: 400; color: var(--c-muted); }
@media (min-width: 900px) { .float-card--tl { left: -16px; } .float-card--br { right: -16px; } }

.facts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-block: 40px; }
.facts b { display: block; font-family: var(--f-head); font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; margin-bottom: 4px; }
.facts span { font-size: 15px; color: var(--c-muted); }

.step-num { font-family: var(--f-head); font-size: 36px; font-weight: 600; color: var(--c-accent); margin-bottom: 10px; line-height: 1; }

/* ==========================================================
   6. Schedule
   ========================================================== */
.date-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.date-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.date-card__date { font-family: var(--f-head); font-size: 22px; font-weight: 600; display: block; }
.shift-link {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--c-bg);
	border-radius: 14px; padding: 12px 16px; text-decoration: none;
}
.shift-link b { display: block; font-size: 15px; }
.shift-link span.small { color: var(--c-muted); }
.shift-link .tag { background: var(--c-accent); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.shift-link--closed { color: var(--c-faint); }
.shift-link--closed .tag { background: var(--c-sand); color: var(--c-faint); }

.year-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.year-tabs button {
	font: inherit; cursor: pointer; padding: 12px 28px; border-radius: 999px; font-size: 17px; font-weight: 700;
	background: var(--c-white); color: var(--c-text); border: 1.5px solid var(--c-line-3);
}
.year-tabs button[aria-selected="true"] { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.year-panel[hidden] { display: none; }

.sched-table-wrap { overflow-x: auto; background: var(--c-white); border-radius: var(--r-lg); }
.sched-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.sched-table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); padding: 18px 24px; border-bottom: 1px solid var(--c-line); font-weight: 600; }
.sched-table td { padding: 18px 24px; border-bottom: 1px solid var(--c-line-2); }
.sched-table tr:last-child td { border-bottom: 0; }
.sched-table tr.is-past { color: var(--c-faint); }
.sched-btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--c-accent); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.sched-btn:hover, .sched-btn:focus-visible { color: #fff; background: var(--c-link-hover); }
.sched-btn small { color: rgba(255, 255, 255, .85); }
.sched-btn small, .sched-closed small { font-size: 12px; font-weight: 500; }
.sched-closed { display: inline-flex; flex-direction: column; gap: 2px; font-weight: 600; color: var(--c-faint); }
.sched-cards { display: none; flex-direction: column; gap: 10px; }
.sched-card { background: var(--c-white); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.sched-card--past { flex-direction: row; justify-content: space-between; align-items: center; color: var(--c-faint); padding: 14px 18px; }
.sched-card__shifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sched-card__shifts > * { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; }
.sched-card__shifts a { background: var(--c-accent); color: #fff; }
.sched-card__shifts span { background: var(--c-sand); color: var(--c-faint); }
.sched-card__shifts small { font-size: 12px; font-weight: 500; }
@media (max-width: 760px) {
	.sched-table-wrap { display: none; }
	.sched-cards { display: flex; }
}
.exam-dates { display: flex; flex-wrap: wrap; gap: 10px; }
.exam-dates span { background: var(--c-sand); border-radius: var(--r-sm); padding: 12px 18px; font-weight: 700; font-size: 17px; }

/* ==========================================================
   7. Reviews
   ========================================================== */
.review { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; font-family: var(--f-head); font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--c-sand-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--c-muted); flex-shrink: 0; }

/* ==========================================================
   8. Forms
   ========================================================== */
.form-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.form-layout > form { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.form-aside { flex: 1 1 300px; min-width: 0; background: var(--c-sand); border-radius: 24px; padding: 28px; }
@media (min-width: 761px) { .form-aside { position: sticky; top: 170px; } }
.form-aside .row-kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line-2); font-size: 15px; }
.form-aside .row-kv span { color: var(--c-muted); }
.form-step { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 24px; padding: clamp(22px, 3vw, 32px); }
.form-step__title { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 18px; }
.form-step__num { width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent); color: #fff; font-family: var(--f-body); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-step__note { margin: -6px 0 18px; font-size: 15px; line-height: 1.55; color: var(--c-muted); }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.req { color: var(--c-brand); } /* every required-field asterisk, incl. checkboxes */
.field .hint { font-size: 13px; color: var(--c-muted); }
.input {
	font: inherit; font-size: 16px; padding: 13px 15px; border: 1px solid var(--c-line-3); border-radius: var(--r-sm);
	background: var(--c-white); color: var(--c-text); width: 100%;
}
textarea.input { resize: vertical; }
.choice { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; padding: 14px 16px; background: var(--c-bg); border-radius: 14px; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--c-accent); }
.agreement { max-height: 360px; overflow-y: auto; background: var(--c-bg); border-radius: var(--r-md); padding: 4px 22px 18px; font-size: 15px; line-height: 1.6; color: var(--c-muted); }
.agreement h3 { font-family: var(--f-body); font-size: 16px; font-weight: 700; color: var(--c-text); margin: 22px 0 8px; }
.agreement ul { padding-left: 20px; margin: 0 0 10px; }
.agreement p { margin: 0 0 10px; }
.pay-box { border: 2px dashed var(--c-line-3); border-radius: 18px; padding: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }

/* ==========================================================
   9. Legal / generic content
   ========================================================== */
.content { max-width: 760px; font-size: 17px; line-height: 1.75; }
.content p, .content ul, .content ol { margin: 0 0 18px; }
.content h2 { font-size: 26px; margin: 32px 0 12px; }
.content h3 { font-size: 21px; margin: 26px 0 10px; }
.content img { border-radius: var(--r-md); }
.wp-block-gallery { gap: 16px !important; }

/* WordPress / membership login form inside the Student Login card */
#loginform p, .swpm-login-widget-form div { margin: 0 0 14px; }
#loginform label, .swpm-login-widget-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#loginform input[type="text"], #loginform input[type="password"],
.swpm-login-widget-form input[type="text"], .swpm-login-widget-form input[type="password"] {
	font: inherit; font-size: 16px; padding: 13px 15px; border: 1px solid var(--c-line-3); border-radius: var(--r-sm); width: 100%; background: var(--c-white);
}
#loginform .login-remember label { display: inline-flex; gap: 8px; font-weight: 400; }
#loginform input[type="submit"], .swpm-login-widget-form input[type="submit"] {
	font: inherit; font-weight: 600; border: 0; cursor: pointer; background: var(--c-accent); color: #fff; padding: 16px 30px; border-radius: 999px; width: 100%;
}

/* Student account */
.cabinet { padding-top: 40px; padding-bottom: 72px; }
.cabinet__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.cabinet__head .h2 { margin-bottom: 0; }
.cabinet__who { display: flex; align-items: center; gap: 16px; }
.cabinet__photo { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--c-sand); border: 3px solid var(--c-white); box-shadow: 0 0 0 1px var(--c-line); }
.cabinet__photo--empty { display: grid; place-items: center; font-family: var(--f-head); font-size: 24px; font-weight: 600; color: var(--c-muted); }
@media (min-width: 761px) {
	.cabinet__photo { width: 96px; height: 96px; }
	.cabinet__photo--empty { font-size: 30px; }
}
.cabinet__preview { background: #fff4d6; margin-bottom: 20px; }
.cabinet__card { max-width: 640px; }
.cabinet__card .h3 { margin-bottom: 8px; }
.cabinet__small { font-size: 14px; }
.cabinet__help { margin-top: 32px; }
.cabinet__lead { max-width: 62ch; margin: 6px 0 20px; }
.cabinet__sub { font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); margin: 28px 0 10px; }
.cabinet__sub:first-of-type { margin-top: 18px; }
.cabinet__courses { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--c-line-3); font-size: 14px; font-weight: 600; text-decoration: none; background: var(--c-white); }
.chip.is-current { background: var(--c-text); border-color: var(--c-text); color: var(--c-white); }

.cabinet__summary { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); text-decoration: none; color: inherit; }
.stat__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.stat__value { font-family: var(--f-head); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.2; }
.stat__note { font-size: 14px; color: var(--c-muted); }
.stat--wide { background: var(--c-sand); border-color: transparent; }
.stat--due { border-left: 4px solid var(--c-brand); }
.stat--link:hover { border-color: var(--c-line-3); color: inherit; }
@media (min-width: 761px) {
	.cabinet__summary { grid-template-columns: 1.6fr 1fr 1fr; }
}

.cabinet__pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 22px; border: 2px dashed var(--c-line-3); border-radius: var(--r-lg); margin-bottom: 28px; }
.cabinet__pay form { margin: 0; }
.cabinet__pay .cabinet__small { flex-basis: 100%; }
.cabinet__amount { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cabinet__amount .input { width: 140px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.tabs { margin-top: 12px; }
.tabs__list { display: none; }
.tabs.is-js .tabs__list { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--c-line); margin-bottom: 24px; scrollbar-width: none; }
.tabs__tab { flex-shrink: 0; padding: 12px 16px; font-weight: 600; text-decoration: none; color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__tab[aria-selected="true"] { color: var(--c-text); border-bottom-color: var(--c-accent); }
.tabs__count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--c-brand); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.tabs__panel { padding-block: 8px 24px; }
.tabs__panel[hidden] { display: none; }
.tabs:not(.is-js) .tabs__panel + .tabs__panel { border-top: 1px solid var(--c-line); padding-top: 32px; }
.tabs__panel > .notice { margin-bottom: 16px; }

.doc-list, .res-list, .rem-list { list-style: none; margin: 0; padding: 0; }
.doc { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-line-2); }
.doc:last-child { border-bottom: 0; }
.doc__info { display: flex; flex-direction: column; gap: 2px; }
.doc__name { font-weight: 600; }
.doc__status { font-size: 13px; font-weight: 700; color: var(--c-brand); }
.doc--done .doc__status { color: var(--c-accent); }
.doc--new { background: #e7f3ee; border-radius: var(--r-sm); padding-inline: 12px; }
.doc__upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.doc__pick input { font: inherit; font-size: 14px; max-width: 100%; }
.doc__pick input::file-selector-button { font: inherit; font-weight: 600; padding: 8px 14px; margin-right: 10px; border: 1px solid var(--c-line-3); border-radius: 999px; background: var(--c-white); cursor: pointer; }
@media (min-width: 761px) {
	.doc { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
	.doc__action { justify-self: end; }
}

.cab-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cab-table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--c-line); }
.cab-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--c-line-2); }
@media (max-width: 760px) {
	.cab-table thead { display: none; }
	.cab-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line-2); }
	.cab-table td { padding: 0; border: 0; }
	.cab-table td[data-label="Payment"] { font-weight: 600; }
	.cab-table td[data-label="Type"], .cab-table td[data-label="Date"] { font-size: 13px; color: var(--c-muted); }
	.cab-table tr { grid-template-areas: "name amount" "meta status"; }
	.cab-table td[data-label="Payment"] { grid-area: name; }
	.cab-table td[data-label="Amount"] { grid-area: amount; text-align: right; font-weight: 600; }
	.cab-table td[data-label="Status"] { grid-area: status; text-align: right; }
	.cab-table td[data-label="Type"] { grid-area: meta; }
	.cab-table td[data-label="Date"] { display: none; }
}
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fbe9e7; color: var(--c-brand); }
.tag--ok { background: #e7f3ee; color: var(--c-accent); }

.res { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line-2); text-decoration: none; }
.res__title { font-weight: 600; }
.res__meta { flex-shrink: 0; font-size: 13px; color: var(--c-muted); }
.res:hover .res__title { text-decoration: underline; }
.faq-list { display: grid; gap: 8px; }
.faq { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq__a { padding-bottom: 14px; color: var(--c-muted); }
.faq__a p { margin: 0 0 8px; }

.rem { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line-2); }
.rem__type { font-weight: 600; }
.rem__text { grid-column: 1; color: var(--c-muted); font-size: 15px; }
.rem .tag { grid-column: 2; grid-row: 1; align-self: start; }
.rem--done { opacity: .65; }

.reader__jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.reader__jump label { font-weight: 600; font-size: 14px; }
.reader__jump .input { width: 110px; padding: 9px 12px; }
.reader { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 16px; }
.reader__page img { width: 100%; height: auto; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-sm); scroll-margin-top: 130px; }
.reader__page { scroll-margin-top: 130px; }

/* The "Call / Enroll now" bar is for visitors, not for students in their account */
.page-template-template-student-account .call-bar { display: none; }

/* Online courses (QMAP, Administrator) */
.course { padding-top: 40px; padding-bottom: 72px; }
.course__wrap { max-width: 860px; }
.course__back { display: inline-block; margin-bottom: 14px; font-weight: 600; text-decoration: none; }
.course__title { margin: 6px 0 20px; }
.course-locked { max-width: 640px; }
.course-locked .h3 { margin-bottom: 8px; }
.prose { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--c-line); padding: 6px 10px; vertical-align: top; }
.prose p[style*="padding-left"] { padding-left: 0 !important; margin: 4px 0; }
.course__contents a { font-weight: 700; }
.course__contents a { font-weight: 600; }
.lesson { margin: 8px 0 28px; scroll-margin-top: 170px; }
.lesson__page { scroll-margin-top: 170px; }
.nowrap { white-space: nowrap; }
.staff-links { display: grid; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--c-line); }
.staff-links .eyebrow { margin-bottom: 4px; }
.staff-links .btn { justify-content: center; }
.lesson__count { font-size: 14px; margin-bottom: 10px; }
.lesson__page { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 40px); }
.lesson__page + .lesson__page { margin-top: 16px; }
.lesson__page[hidden] { display: none; }
.lesson__page .h3 { margin-bottom: 14px; }
.lesson__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.lesson__nav[hidden] { display: none; }
.lesson__nav .btn[disabled] { visibility: hidden; }
.course__topics { display: grid; gap: 12px; margin-top: 32px; }
.course__topic { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: var(--r-md); text-decoration: none; font-weight: 600; background: var(--c-white); }
.course__topic .muted { font-size: 13px; font-weight: 600; }
@media (min-width: 761px) {
	.course__topics { grid-template-columns: 1fr 1fr; }
	.course__topic--next { grid-column: 2; text-align: right; }
}
.course-tests, .course-exam { margin-bottom: 28px; }
.course-tests .h3, .course-exam .h3 { margin-bottom: 6px; }
.course-tests__list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.course-tests__list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-line-2); font-weight: 600; }
.course-exam__form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.course-exam__form .input { flex: 1 1 260px; }
.course-exam .notice { margin: 10px 0; }
.quiz { display: grid; gap: 16px; margin-top: 20px; }
.quiz__q { border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-white); padding: 18px 20px; margin: 0; }
.quiz__q legend { font-weight: 700; padding: 0 6px; margin-left: -6px; line-height: 1.45; }
.quiz__a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; line-height: 1.5; }
.quiz__a input { margin-top: 5px; flex-shrink: 0; accent-color: var(--c-accent); }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quiz__result { display: grid; gap: 12px; justify-items: start; }
.quiz__result[hidden] { display: none; }

/* Enrollment form states */
#enroll-form > .notice { margin-bottom: 24px; }
.notice--ok { background: #e7f3ee; }
.notice--error { background: #fbe9e7; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Student app buttons (CNA Program page) ---------- */
.app-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.app-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.app-btn { display: grid; grid-template-columns: auto; min-width: 180px; padding: 12px 22px; border-radius: var(--r-md); background: var(--c-text); color: #fff; text-decoration: none; line-height: 1.15; transition: background .2s; }
.app-btn:hover, .app-btn:focus-visible { background: #000; color: #fff; }
.app-btn__small { font-size: 12px; opacity: .8; }
.app-btn__big { font-size: 22px; font-weight: 700; font-family: var(--f-head); }
.app-btn__note { font-size: 12px; opacity: .65; margin-top: 2px; }
@media (max-width: 760px) { .app-buttons { width: 100%; } .app-btn { flex: 1 1 160px; } }

/* ---------- Page photo (template-parts/page-photo.php) ---------- */
.page-photo { padding-block: 0 clamp(32px, 5vw, 56px); }
.page-photo__frame {
	margin: 0;
	border-radius: var(--r-xl);
	overflow: hidden;
	background: var(--c-sand);
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 3;
}
.page-photo__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (min-width: 761px) {
	.page-photo__frame { aspect-ratio: 21 / 8; }
}
