/* UNL Academy: sign in, student dashboard and membership plans.
   Uses the UNL Theme design tokens, with fallbacks for other themes. */

.unl-account-page .unl-main { background: var(--unl-sand, #F6F3EA); }

/* ---------- Shared ---------- */
.unl-alert { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--unl-radius-sm, 10px); border: 1px solid var(--unl-line, #E6E1D3); background: #fff; color: var(--unl-ink, #0A1724); font-size: 15px; line-height: 1.5; }
.unl-alert a { font-weight: 600; color: inherit; }
.unl-alert--success { background: var(--unl-green-tint, #E3EFE7); border-color: #BFD8C8; color: var(--unl-green, #003C1E); }
.unl-alert--error { background: #FDECEC; border-color: #F2C4C4; color: #8A1C1C; }
.unl-alert--warn { background: var(--unl-cream, #FFF9DB); border-color: #EBD9A2; color: var(--unl-gold-text, #7A5A17); }
.unl-alert--info { background: #EEF3F8; border-color: #D3DFEA; color: var(--unl-navy-2, #13263A); }
.unl-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.5 var(--unl-font-body, inherit); background: var(--unl-sand, #F6F3EA); color: var(--unl-muted, #4A5360); vertical-align: middle; }
.unl-tag--ok { background: var(--unl-green-tint, #E3EFE7); color: var(--unl-green, #003C1E); }
.unl-tag--no { background: #FDECEC; color: #8A1C1C; }
.unl-tag--warn { background: var(--unl-cream, #FFF9DB); color: var(--unl-gold-text, #7A5A17); }
.unl-pagehead--center { text-align: center; }
.unl-pagehead--center p { margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.unl-form p { margin: 0 0 16px; }
.unl-form label { display: block; font: 600 14px/1.4 var(--unl-font-body, inherit); color: var(--unl-ink, #0A1724); margin-bottom: 6px; }
.unl-form input[type="text"], .unl-form input[type="email"], .unl-form input[type="password"] { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--unl-line, #E6E1D3); border-radius: var(--unl-radius-sm, 10px); background: #fff; font: 16px var(--unl-font-body, inherit); color: var(--unl-ink, #0A1724); transition: border-color .2s, box-shadow .2s; }
.unl-form input:focus { outline: none; border-color: var(--unl-gold, #C99A3A); box-shadow: 0 0 0 3px rgba(201, 154, 58, .25); }
.unl-form small, .unl-form__hint { display: block; margin-top: 6px; font-size: 13px; color: var(--unl-muted, #4A5360); }
.unl-form__hint { margin: -6px 0 16px; }
.unl-form__row { display: grid; gap: 0 16px; }
.unl-form__split { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin: -4px 0 20px; font-size: 14px; }
.unl-form__split a { color: var(--unl-green, #003C1E); font-weight: 600; }
.unl-form .unl-check { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }
.unl-form__fine { margin: 18px 0 0 !important; font-size: 14px; color: var(--unl-muted, #4A5360); text-align: center; }
.unl-form__fine a { color: var(--unl-green, #003C1E); font-weight: 600; }
.unl-form fieldset { border: 1px solid var(--unl-line, #E6E1D3); border-radius: var(--unl-radius-sm, 10px); padding: 16px 16px 0; margin: 8px 0 18px; }
.unl-form legend { padding: 0 6px; font: 700 14px var(--unl-font-head, inherit); color: var(--unl-ink, #0A1724); }
.unl-form--wide { max-width: 640px; }
.unl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 560px) { .unl-form__row { grid-template-columns: 1fr 1fr; } }

/* ---------- Sign in ---------- */
.unl-auth { padding: 48px 0 72px; }
.unl-auth__inner { display: grid; gap: 32px; align-items: center; }
.unl-auth__intro h1 { font: 800 clamp(32px, 4vw, 44px)/1.1 var(--unl-font-head, inherit); color: var(--unl-ink, #0A1724); margin: 6px 0 12px; }
.unl-auth__intro > p { font-size: 18px; color: var(--unl-text, #3E4752); max-width: 440px; }
.unl-auth__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.unl-auth__points li { position: relative; padding-left: 30px; color: var(--unl-ink, #0A1724); font-weight: 500; }
.unl-auth__points li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--unl-green, #003C1E) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.unl-auth__card { background: #fff; border: 1px solid var(--unl-line, #E6E1D3); border-radius: var(--unl-radius, 16px); box-shadow: var(--unl-shadow); padding: 28px 24px; }
.unl-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 999px; background: var(--unl-sand, #F6F3EA); }
.unl-auth__tabs a { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; font: 600 15px var(--unl-font-body, inherit); color: var(--unl-muted, #4A5360); text-decoration: none; transition: background-color .2s, color .2s; }
.unl-auth__tabs a.is-active { background: #fff; color: var(--unl-ink, #0A1724); box-shadow: 0 1px 3px rgba(10, 23, 36, .12); }
@media (min-width: 900px) {
	.unl-auth { padding: 72px 0 96px; }
	.unl-auth__inner { grid-template-columns: 1fr 460px; gap: 64px; }
	.unl-auth__card { padding: 36px 36px 32px; }
}

/* ---------- Dashboard ---------- */
.unl-dash-head { background: var(--unl-navy, #0A1724); color: #fff; padding: 36px 0 32px; }
.unl-dash-head__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.unl-dash-head h1 { margin: 4px 0 0; color: #fff; font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--unl-font-head, inherit); }
.unl-dash-head .unl-eyebrow { color: var(--unl-gold-light, #E2C27A); }
.unl-dash-head__side { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.unl-pill-plan { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(226, 194, 122, .5); color: var(--unl-gold-light, #E2C27A); font: 600 13px var(--unl-font-body, inherit); }
.unl-dash-head__out { color: var(--unl-on-dark, #C9D2DC); font-size: 14px; }
.unl-dash-head__out:hover { color: #fff; }

.unl-dash { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 72px; }
.unl-dash__nav { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 4px; scrollbar-width: none; }
.unl-dash__nav::-webkit-scrollbar { display: none; }
.unl-dash__nav a { flex: 0 0 auto; display: flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: var(--unl-radius-sm, 10px); color: var(--unl-text, #3E4752); font: 600 15px var(--unl-font-body, inherit); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.unl-dash__nav a:hover { background: #fff; color: var(--unl-ink, #0A1724); }
.unl-dash__nav a.is-active { background: var(--unl-navy, #0A1724); color: #fff; }
.unl-dash__main { min-width: 0; }
@media (min-width: 960px) {
	.unl-dash { grid-template-columns: 220px 1fr; gap: 36px; padding-top: 40px; }
	.unl-dash__nav { flex-direction: column; position: sticky; top: calc(var(--unl-header-h, 76px) + 20px); align-self: start; margin: 0; padding: 0; overflow: visible; }
}

.unl-dstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.unl-dstats > div { background: #fff; border: 1px solid var(--unl-line, #E6E1D3); border-radius: var(--unl-radius, 16px); padding: 18px 20px; }
.unl-dstats strong { display: block; font: 800 26px/1.15 var(--unl-font-head, inherit); color: var(--unl-ink, #0A1724); overflow-wrap: anywhere; }
.unl-dstats span { font-size: 14px; color: var(--unl-muted, #4A5360); }
@media (min-width: 720px) { .unl-dstats { grid-template-columns: repeat(4, 1fr); } }

.unl-dpanel { background: #fff; border: 1px solid var(--unl-line, #E6E1D3); border-radius: var(--unl-radius, 16px); padding: 22px 20px; margin-bottom: 24px; box-shadow: 0 1px 2px rgba(10, 23, 36, .04); }
.unl-dpanel__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.unl-dpanel__head h2 { margin: 0; font: 700 20px var(--unl-font-head, inherit); color: var(--unl-ink, #0A1724); }
.unl-dpanel__head a { font-size: 14px; font-weight: 600; color: var(--unl-green, #003C1E); }
@media (min-width: 720px) { .unl-dpanel { padding: 26px 28px; } }

.unl-dcourse { display: grid; grid-template-columns: 72px 1fr; gap: 14px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--unl-line-2, #EFEBE0); }
.unl-dcourse:first-of-type { border-top: 0; padding-top: 0; }
.unl-dcourse__img img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: var(--unl-radius-sm, 10px); }
.unl-dcourse__body h3 { margin: 0 0 4px; font: 700 16px/1.3 var(--unl-font-head, inherit); }
.unl-dcourse__body h3 a { color: var(--unl-ink, #0A1724); text-decoration: none; }
.unl-dcourse__body h3 a:hover { color: var(--unl-green, #003C1E); }
.unl-dcourse__meta { margin: 0 0 8px; font-size: 13px; color: var(--unl-muted, #4A5360); }
.unl-dcourse .unl-progress__bar { max-width: 320px; }
.unl-dcourse > .unl-btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) {
	.unl-dcourse { grid-template-columns: 88px 1fr auto; }
	.unl-dcourse__img img { width: 88px; height: 66px; }
	.unl-dcourse > .unl-btn { grid-column: auto; }
}

.unl-dempty { text-align: center; padding: 28px 16px; border: 1px dashed var(--unl-line, #E6E1D3); border-radius: var(--unl-radius-sm, 10px); background: var(--unl-sand, #F6F3EA); }
.unl-dempty p { margin: 0 0 14px; color: var(--unl-text, #3E4752); }
.unl-dempty p:last-child { margin: 0; }

.unl-dcert { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--unl-line-2, #EFEBE0); }
.unl-dcert:first-of-type { border-top: 0; padding-top: 0; }
.unl-dcert strong { display: block; color: var(--unl-ink, #0A1724); }
.unl-dcert span { font-size: 13px; color: var(--unl-muted, #4A5360); }
.unl-dcert__actions { display: flex; gap: 14px; align-items: center; }
.unl-dcert__actions > a:first-child { font-size: 14px; font-weight: 600; color: var(--unl-green, #003C1E); }

.unl-dtable-wrap { overflow-x: auto; }
.unl-dtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.unl-dtable th { text-align: left; font: 600 13px var(--unl-font-body, inherit); color: var(--unl-muted, #4A5360); text-transform: uppercase; letter-spacing: .04em; padding: 0 12px 10px 0; border-bottom: 1px solid var(--unl-line, #E6E1D3); }
.unl-dtable td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--unl-line-2, #EFEBE0); color: var(--unl-ink, #0A1724); vertical-align: top; }
.unl-dtable td a { color: var(--unl-green, #003C1E); font-weight: 600; }
.unl-dtable td small { display: block; color: var(--unl-muted, #4A5360); font-size: 13px; }
@media (max-width: 599px) {
	.unl-dtable thead { display: none; }
	.unl-dtable tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--unl-line-2, #EFEBE0); }
	.unl-dtable td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
	.unl-dtable td::before { content: attr(data-label); font-weight: 600; color: var(--unl-muted, #4A5360); text-align: left; }
}

.unl-dplan { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: var(--unl-radius-sm, 10px); background: var(--unl-sand, #F6F3EA); }
.unl-dplan__main strong { font: 800 22px var(--unl-font-head, inherit); color: var(--unl-ink, #0A1724); margin-right: 8px; }
.unl-dplan__main p { margin: 6px 0 0; color: var(--unl-text, #3E4752); font-size: 15px; }
.unl-dplan__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.unl-dplan__actions form { margin: 0; }
.unl-dfine { margin: 14px 0 0; font-size: 14px; }
.unl-dfine a { color: var(--unl-muted, #4A5360); }
.unl-dconfirm { margin-top: 14px; padding: 16px 18px; border-radius: var(--unl-radius-sm, 10px); border: 1px solid #F2C4C4; background: #FFF7F7; }
.unl-dconfirm p { margin: 0 0 12px; }
.unl-dconfirm form { display: flex; gap: 16px; align-items: center; margin: 0; }
.unl-dconfirm a { font-size: 14px; color: var(--unl-green, #003C1E); font-weight: 600; }

/* ---------- Plans ---------- */
.unl-pricing { padding: 40px 0 80px; }
.unl-plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .unl-plans--3 { grid-template-columns: repeat(3, 1fr); } .unl-plans--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; } }
.unl-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--unl-line, #E6E1D3); border-radius: var(--unl-radius, 16px); padding: 28px 24px; box-shadow: var(--unl-shadow); transition: transform .3s var(--unl-ease, ease), box-shadow .3s; }
.unl-plan:hover { transform: translateY(-3px); box-shadow: var(--unl-shadow-hover); }
.unl-plan--featured { background: var(--unl-navy, #0A1724); border-color: var(--unl-navy, #0A1724); color: #fff; }
.unl-plan.is-picked { outline: 3px solid var(--unl-gold, #C99A3A); outline-offset: 3px; }
.unl-plan__flag { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--unl-gold, #C99A3A); color: var(--unl-navy, #0A1724); font: 700 12px var(--unl-font-body, inherit); letter-spacing: .03em; text-transform: uppercase; }
.unl-plan__name { margin: 0; font: 800 24px var(--unl-font-head, inherit); color: inherit; }
.unl-plan--featured .unl-plan__name { color: #fff; }
.unl-plan__tag { margin: 6px 0 18px; color: var(--unl-text, #3E4752); }
.unl-plan--featured .unl-plan__tag { color: var(--unl-on-dark, #C9D2DC); }
.unl-plan__price { margin: 0 0 20px; display: flex; align-items: baseline; gap: 6px; }
.unl-plan__price strong { font: 800 44px/1 var(--unl-font-head, inherit); letter-spacing: -.02em; }
.unl-plan__price span { color: var(--unl-muted, #4A5360); }
.unl-plan--featured .unl-plan__price span { color: var(--unl-on-dark-2, #9FB0C1); }
.unl-plan__features { list-style: none; margin: 0 0 24px; padding: 20px 0 0; border-top: 1px solid var(--unl-line, #E6E1D3); display: grid; gap: 12px; flex: 1; }
.unl-plan--featured .unl-plan__features { border-color: rgba(255, 255, 255, .14); }
.unl-plan__features li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.unl-plan__features svg { flex: 0 0 auto; margin-top: 2px; color: var(--unl-green, #003C1E); }
.unl-plan--featured .unl-plan__features svg { color: var(--unl-gold-light, #E2C27A); }
.unl-plan.is-current { border-color: var(--unl-green, #003C1E); }
.unl-plan--featured .unl-btn--outline { color: #fff; border-color: rgba(255, 255, 255, .5); }

.unl-pricing__courses { margin-top: 64px; }
.unl-pricing__courses h2, .unl-faq h2 { font: 800 28px var(--unl-font-head, inherit); color: var(--unl-ink, #0A1724); margin: 0 0 20px; }
.unl-faq { margin: 64px auto 0; max-width: 760px; }
.unl-faq details { background: #fff; border: 1px solid var(--unl-line, #E6E1D3); border-radius: var(--unl-radius-sm, 10px); margin-bottom: 10px; }
.unl-faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; position: relative; font: 600 16px var(--unl-font-head, inherit); color: var(--unl-ink, #0A1724); }
.unl-faq summary::-webkit-details-marker { display: none; }
.unl-faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--unl-gold, #C99A3A); }
.unl-faq details[open] summary::after { content: '−'; }
.unl-faq details p { margin: 0; padding: 0 20px 18px; color: var(--unl-text, #3E4752); }

@media (prefers-reduced-motion: reduce) {
	.unl-plan, .unl-plan:hover { transition: none; transform: none; }
}
/* 0.8.2: show / hide password */
.unl-pwd { position: relative; display: block; }
.unl-form .unl-pwd input { padding-right: 52px; }
.unl-pwd__toggle { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--unl-muted, #4A5360); cursor: pointer; }
.unl-pwd__toggle:hover { color: var(--unl-ink, #0A1724); background: var(--unl-sand, #F6F3EA); }
.unl-pwd__toggle:focus-visible { outline: 2px solid var(--unl-gold, #C99A3A); outline-offset: 1px; }