/* LansMed Academy theme. Built from assets/css/src/*.css (see BUILD.md). Below 960px the phone layouts apply,
   in a centred column up to 720px. Text sizes are in rem so the browser's text size setting applies. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-800-normal.woff2) format("woff2"); }

:root {
  --navy: #002764; --red: #D1092B; --brand: #F30B32; --ink: #0B1530; --slate: #5A6782; --slate2: #36425E;
  --mist: #EEF2F8; --line: #DCE3EE; --line2: #E7ECF3; --soft: #F7F9FC; --bar: #E4E9F2; --white: #FFFFFF;
  --green: #11643F; --green-bg: #E3F5EC; --green-line: #B9E4CF; --err: #B0071F; --err-bg: #FFF1F2; --err-line: #F6C7CE;
  --amber: #7A4B00; --amber-bg: #FFF1D6; --amber-line: #EBCB8B; --on-navy-red: #FF8A9C; --on-navy-text: #C9D4E8;
  --field: #6E7B92; --soft-border: #C9D3E3; --notice: #FFF4F5; --notice-text: #8A1023; --wa-icon: #4ADE80;
  --radio: #5A6782; --navy2: #0B3A86; --wa-green: #0E6B3A;
  --head: Montserrat, sans-serif; --body: Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--body); overflow-wrap: anywhere; }
fieldset { min-width: 0; }
a { color: var(--navy); }
a:hover { color: var(--red); }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
::placeholder { color: var(--slate); opacity: 1; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.lm-dark :focus-visible { outline-color: #FFFFFF; }
[data-dialog-box]:focus, [data-dialog-box]:focus-visible { outline: none; }
[hidden] { display: none !important; }

.lm-skip { position: absolute; left: 16px; top: 12px; z-index: 200; padding: 12px 18px; border-radius: 10px; background: var(--navy); color: #FFFFFF; font-family: var(--head); font-weight: 700; text-decoration: none; transform: translateY(-220%); }
.lm-skip:focus { transform: none; color: #FFFFFF; }
.lm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@keyframes lm-spin { to { transform: rotate(360deg); } }
.lm-spin { animation: lm-spin 0.9s linear infinite; transform-origin: 50% 50%; }
@keyframes lm-ecg { 0% { stroke-dashoffset: 1000; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1000; } }
.lm-ecg-run { stroke-dasharray: 1000; animation: lm-ecg 4.5s linear infinite; }
html.lm-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .lm-spin, .lm-ecg-run { animation: none !important; }
  .lm-ecg-run { stroke-dasharray: none; }
  html { scroll-behavior: auto !important; }
}

/* Page shell */
.lm-root { min-height: 100vh; display: flex; flex-direction: column; position: relative; font-family: var(--body); color: var(--ink); background: var(--page-bg, #FFFFFF); }
.lm-main { flex: 1 0 auto; display: flex; flex-direction: column; outline: none; }
.lm-container { width: 100%; max-width: var(--max, 1240px); margin: 0 auto; padding: var(--pad, 24px 32px 80px); }
.lm-band { background: var(--bg, var(--mist)); }
.lm-band__inner { max-width: var(--max, 1240px); margin: 0 auto; padding: var(--pad, 28px 32px 44px); }
.lm-wide { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.lm-min0 { min-width: 0; }
.lm-inline-icon { display: inline-flex; }
.lm-stack-10 { display: flex; flex-direction: column; gap: 10px; }
.lm-mb-20 { margin: 0 0 20px; }
.lm-text-err, .lm-text-err:hover { color: var(--err) !important; }
.lm-note-line { margin: 10px 0 0; font-size: 0.875rem; color: var(--slate2); }

/* Responsive visibility: these only hide, so each element keeps its own display. */
@media (min-width: 960px) { .lm-m-only { display: none !important; } }

@media (max-width: 959.98px) {
  .lm-root { background: var(--page-bg-m, var(--page-bg, #FFFFFF)); }
  .lm-container { max-width: 720px; padding: var(--pad-m, 16px 20px 40px); }
  .lm-band__inner { max-width: 720px; padding: var(--pad-m, 18px 20px 24px); }
  .lm-wide { max-width: 720px; padding: 0; }
  .lm-d-only { display: none !important; }
}
/* ---------- buttons ---------- */
.lm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-family: var(--head); font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.lm-btn .lm-icon { flex: none; }
.lm-btn--lg { min-height: 54px; padding: 0 28px; border-radius: 12px; font-size: 1rem; }
.lm-btn--md { min-height: 50px; padding: 0 22px; border-radius: 12px; font-size: 0.9375rem; }
.lm-btn--sm { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 0.875rem; }
.lm-btn--xs { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 0.8125rem; }
.lm-btn--red, .lm-btn--red:hover { background: var(--red); color: #FFFFFF; border: 0; }
.lm-btn--navy, .lm-btn--navy:hover { background: var(--navy); color: #FFFFFF; border: 0; }
.lm-btn--outline, .lm-btn--outline:hover { background: #FFFFFF; color: var(--navy); border: 2px solid var(--navy); }
.lm-btn--light, .lm-btn--light:hover { background: #FFFFFF; color: var(--navy); border: 1.5px solid var(--soft-border); }
.lm-btn--white, .lm-btn--white:hover { background: #FFFFFF; color: var(--navy); border: 0; }
.lm-btn--mist, .lm-btn--mist:hover { background: var(--mist); color: var(--navy); border: 0; }
.lm-btn--ghost, .lm-btn--ghost:hover { background: transparent; color: var(--navy); border: 0; }
.lm-btn--danger, .lm-btn--danger:hover { background: transparent; color: var(--err); border: 0; }
.lm-btn--success, .lm-btn--success:hover { background: var(--green-bg); color: var(--green); border: 2px solid var(--green); }
.lm-btn--disabled, .lm-btn--disabled:hover, .lm-btn[disabled] { background: var(--bar); color: var(--slate2); border: 0; cursor: not-allowed; }
.lm-btn--full { display: flex; width: 100%; }
.lm-btn--start { justify-content: flex-start; }
.lm-btn--thin { border-width: 1.5px; }
.lm-btn--support-soft, .lm-btn--support-soft:hover { background: var(--notice); color: var(--err); justify-content: flex-start; }
.lm-btn[aria-busy="true"] { cursor: progress; }
.lm-btn--danger-light, .lm-btn--danger-light:hover { color: var(--err); border-color: var(--err-line); }
@media (max-width: 959.98px) {
  .lm-btn--m-full { display: flex; width: 100%; }
  .lm-btn--m-sm { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 0.875rem; }
  .lm-btn--m-md { min-height: 50px; padding: 0 22px; border-radius: 12px; font-size: 0.9375rem; }
  .lm-btn--m-noicon .lm-icon { display: none; }
}

.lm-icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--soft-border); background: #FFFFFF; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- links ---------- */
.lm-link { font-family: var(--head); font-weight: 700; font-size: var(--fs, 0.9375rem); display: inline-flex; align-items: center; gap: 6px; }
.lm-link--plain { text-decoration: none; }
button.lm-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--navy); text-decoration: underline; }
@media (max-width: 959.98px) { .lm-link { font-size: var(--fs-m, var(--fs, 0.9375rem)); } }

/* ---------- small pieces ---------- */
.lm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: var(--fs, 0.8125rem); font-weight: 700; }
.lm-pill--green { background: var(--green-bg); color: var(--green); }
.lm-pill--amber { background: var(--amber-bg); color: var(--amber); }
.lm-pill--mist { background: var(--mist); color: var(--slate2); }
.lm-pill--navy { background: var(--mist); color: var(--navy); }
.lm-pill--red { background: var(--err-bg); color: var(--err); }
.lm-pill--white { background: #FFFFFF; color: var(--slate2); }
.lm-pill--dark { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.lm-pill--upper { letter-spacing: 0.06em; text-transform: uppercase; }

.lm-eyebrow { margin: 0 0 var(--mb, 14px); font-family: var(--head); font-weight: 700; font-size: var(--fs, 0.8125rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
@media (max-width: 959.98px) { .lm-eyebrow { font-size: var(--fs-m, var(--fs)); margin-bottom: var(--mb-m, var(--mb, 14px)); } }

.lm-bar { flex: 1 1 auto; height: var(--h, 8px); border-radius: 99px; background: var(--track, var(--bar)); overflow: hidden; }
.lm-bar__fill { height: 100%; border-radius: 99px; background: var(--fill, var(--navy)); }

.lm-ring { position: relative; flex: none; width: var(--size, 168px); height: var(--size, 168px); }
.lm-ring svg { width: 100%; height: 100%; display: block; }
.lm-ring__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lm-ring__score { font-family: var(--head); font-weight: 800; font-size: calc(var(--size, 168px) * 0.24); color: var(--navy); }
.lm-ring__pct { font-size: 0.875rem; font-weight: 600; color: var(--slate); }
@media (max-width: 959.98px) { .lm-ring { width: var(--size-m, var(--size)); height: var(--size-m, var(--size)); } .lm-ring__score { font-size: calc(var(--size-m, var(--size)) * 0.24); } }

.lm-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 0.875rem; color: var(--slate); }
.lm-crumbs li { display: flex; gap: 8px; }
.lm-crumbs a { color: var(--slate2); }
.lm-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 959.98px) { .lm-crumbs ol { font-size: 0.8125rem; } }

.lm-h1 { margin: var(--m, 0); font-family: var(--head); font-weight: 800; font-size: var(--fs, 2.875rem); line-height: var(--lh, 1.1); color: var(--navy); outline: none; }
.lm-h2 { margin: var(--m, 0); font-family: var(--head); font-weight: 800; font-size: var(--fs, 1.875rem); line-height: 1.2; color: var(--navy); }
@media (max-width: 959.98px) {
  .lm-h1 { font-size: var(--fs-m, var(--fs)); margin: var(--m-m, var(--m, 0)); line-height: var(--lh-m, var(--lh, 1.1)); }
  .lm-h2 { font-size: var(--fs-m, var(--fs)); margin: var(--m-m, var(--m, 0)); }
}

.lm-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 32px; }
.lm-section-head__text { min-width: 0; }
.lm-section-head__sub { margin: 10px 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--slate); }
.lm-section-head__link { font-size: 0.9375rem; }
@media (max-width: 959.98px) {
  .lm-section-head { align-items: baseline; margin-bottom: 16px; }
  .lm-section-head--pad { padding: 0 20px; }
  .lm-section-head__sub { margin-top: 6px; font-size: 0.9375rem; }
  .lm-section-head__link { font-size: 0.875rem; }
}

/* ---------- feedback ---------- */
.lm-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--mist); }
.lm-alert__icon { flex: none; margin-top: 1px; display: inline-flex; color: var(--navy); }
.lm-alert__body { min-width: 0; flex: 1 1 auto; font-size: 0.9375rem; line-height: 1.55; color: var(--ink); }
.lm-alert__label { margin: 0 0 2px; font-family: var(--head); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lm-alert__title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1rem; color: var(--navy); }
.lm-alert__text { margin: 0; }
.lm-alert__text--after { margin: 4px 0 0; }
.lm-alert__text p { margin: 0; }
.lm-alert__text p + p { margin-top: 6px; }
.lm-alert__actions { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.lm-alert--success { background: var(--green-bg); border-color: var(--green-line); }
.lm-alert--success .lm-alert__icon, .lm-alert--success .lm-alert__title, .lm-alert--success .lm-alert__label { color: var(--green); }
.lm-alert--error { background: var(--err-bg); border-color: var(--err-line); }
.lm-alert--error .lm-alert__icon, .lm-alert--error .lm-alert__title, .lm-alert--error .lm-alert__label { color: var(--err); }
.lm-alert--warning { background: var(--amber-bg); border-color: var(--amber-line); }
.lm-alert--warning .lm-alert__icon, .lm-alert--warning .lm-alert__title, .lm-alert--warning .lm-alert__label { color: var(--amber); }
.lm-alert--neutral { background: var(--soft); border-color: var(--line2); }
.lm-alert--neutral .lm-alert__icon, .lm-alert--neutral .lm-alert__label { color: var(--slate2); }
.lm-alert--info .lm-alert__label { color: var(--navy); }
.lm-alert:focus { outline: none; }
.lm-alert:focus-visible { outline: 3px solid var(--navy); }

.lm-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px 32px; border-radius: 18px; border: 1.5px dashed var(--soft-border); background: #FFFFFF; }
.lm-empty__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--mist); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.lm-empty__title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--navy); outline: none; }
.lm-empty__text { margin: 0; max-width: 560px; font-size: 1rem; line-height: 1.6; color: var(--slate2); }
.lm-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.lm-empty--compact { padding: 22px; }
.lm-empty--compact .lm-empty__icon { width: 44px; height: 44px; }
.lm-empty--compact .lm-empty__title { font-size: 1.0625rem; }
.lm-empty--compact .lm-empty__text { font-size: 0.875rem; }
.lm-empty--left { align-items: flex-start; text-align: left; }
.lm-empty--left .lm-empty__actions { justify-content: flex-start; }
@media (max-width: 959.98px) {
  .lm-empty { padding: 32px 20px; }
  .lm-empty--compact { padding: 22px; }
  .lm-empty__title { font-size: 1.25rem; }
  .lm-empty--compact .lm-empty__title { font-size: 1.0625rem; }
}

/* Dialog: modal on desktop, bottom sheet on phones. */
.lm-dialog { position: fixed; inset: 0; z-index: 60; background: rgba(11, 21, 48, 0.55); display: flex; align-items: center; justify-content: center; padding: 32px; }
.lm-dialog__box { width: min(var(--w, 640px), 100%); max-height: calc(100vh - 64px); overflow: auto; border-radius: 22px; background: #FFFFFF; padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 70px rgba(11, 21, 48, 0.3); }
.lm-dialog__grip { display: none; align-self: center; width: 44px; height: 5px; border-radius: 99px; background: var(--soft-border); margin: 4px 0 2px; flex: none; }
.lm-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lm-dialog__heading { min-width: 0; }
.lm-dialog__title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.625rem; line-height: 1.25; color: var(--navy); }
.lm-dialog__sub { margin: 6px 0 0; font-size: 0.875rem; color: var(--slate); }
.lm-dialog__footer { display: flex; flex-wrap: wrap; gap: 12px; }
.lm-dialog__text { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--slate2); }
@media (max-width: 959.98px) {
  .lm-dialog { align-items: flex-end; padding: 0; }
  .lm-dialog__box { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; padding: 10px 20px 24px; gap: 16px; box-shadow: 0 -12px 40px rgba(11, 21, 48, 0.25); }
  .lm-dialog__grip { display: block; }
  .lm-dialog__title { font-size: 1.3125rem; }
}

.lm-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #FFFFFF; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; box-shadow: 0 16px 40px rgba(11, 21, 48, 0.3); }
.lm-toast__icon { flex: none; display: inline-flex; color: #6EE7A8; }
.lm-toast--error .lm-toast__icon { color: #FF8A9C; }
.lm-toast--info .lm-toast__icon { color: #9CC2FF; }

/* ---------- form fields ---------- */
.lm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lm-field__label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.lm-field__optional { font-weight: 500; color: var(--slate); }
.lm-field__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lm-field__labelrow a { font-size: 0.875rem; font-weight: 600; }
.lm-field__hint { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--slate); }
.lm-input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--field); background: #FFFFFF; font-family: var(--body); font-size: 1rem; color: var(--ink); }
.lm-input--error { border: 2px solid var(--err); }
.lm-input--icon { padding-left: 46px; }
.lm-input--pw { padding-right: 56px; }
.lm-select { padding: 0 12px; }
.lm-textarea { padding: 12px 14px; min-height: var(--minh, 120px); resize: vertical; line-height: 1.5; }
.lm-input[readonly] { background: var(--soft); }
.lm-input-wrap { position: relative; display: block; }
.lm-input-wrap__icon { position: absolute; left: 15px; top: 15px; pointer-events: none; }
.lm-pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 0.8125rem; cursor: pointer; }
.lm-check { display: flex; align-items: flex-start; gap: 10px; }
.lm-checkbox { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.lm-check label { font-size: 0.9375rem; line-height: 1.5; color: var(--slate2); }
.lm-field__error { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--err); }
.lm-field__error .lm-icon { flex: none; margin-top: 1px; }
.lm-error-summary { padding: 16px 18px; border-radius: 14px; background: var(--err-bg); border: 2px solid var(--err); }
.lm-error-summary__title { margin: 0 0 8px; font-family: var(--head); font-weight: 800; font-size: 1rem; color: var(--err); }
.lm-error-summary ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
.lm-error-summary a { color: var(--err); font-weight: 600; }
.lm-error-summary:focus { outline: none; }
.lm-error-summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.lm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Filter chips */
.lm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lm-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 0.875rem; text-decoration: none; cursor: pointer; background: #FFFFFF; color: var(--navy); border: 1.5px solid var(--soft-border); }
.lm-chip:hover { color: var(--navy); }
.lm-chip.is-on, .lm-chip.is-on:hover { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.lm-chip__count { font-weight: 600; opacity: 0.85; }
@media (max-width: 959.98px) {
  .lm-chips { flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; }
  .lm-chip { padding: 0 14px; font-size: 0.8125rem; }
}

.lm-icon-badge { display: flex; width: 60px; height: 60px; border-radius: 18px; background: var(--mist); color: var(--navy); align-items: center; justify-content: center; margin-bottom: 18px; }
.lm-icon-badge--green { background: var(--green-bg); color: var(--green); }
.lm-icon-badge--red { background: var(--err-bg); color: var(--err); }
.lm-icon-badge--amber { background: var(--amber-bg); color: var(--amber); }
/* ---------- header ---------- */
.lm-header { position: relative; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.lm-header__inner { max-width: 1240px; margin: 0 auto; padding: 12px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; }
.lm-header__logo { display: flex; align-items: center; flex: none; }
.lm-header__logo img { height: 56px; width: auto; display: block; }
.lm-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-family: var(--head); font-weight: 600; font-size: 0.9375rem; }
.lm-nav__item { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; cursor: pointer; font: inherit; }
.lm-nav__item.is-active, .lm-nav__item:hover { color: var(--red); }
.lm-nav__item.is-active { border-bottom-color: var(--red); }
.lm-header__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Six menu items since 1.2.0 (Exam Sheets): tighter spacing keeps the header on one row down to 960 px. */
@media (min-width: 960px) and (max-width: 1159.98px) {
  .lm-header__inner { padding: 12px 20px; column-gap: 20px; }
  .lm-nav { column-gap: 18px; }
}
.lm-tool { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.lm-tool:hover { color: var(--navy); }
.lm-tool--search.is-active { background: var(--mist); }
.lm-tool--menu { display: none; }
.lm-account { display: flex; align-items: center; min-height: 44px; border-radius: 999px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 0.875rem; }
.lm-account--out, .lm-account--out:hover { gap: 8px; padding: 0 20px; background: var(--navy); color: #FFFFFF; }
.lm-account__icon { width: 18px; height: 18px; }
.lm-account--in, .lm-account--in:hover { gap: 10px; padding: 0 16px 0 6px; border: 1px solid var(--line); color: var(--navy); }
.lm-account--in.is-active { background: var(--mist); border-color: var(--mist); }
.lm-account__initials { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex: none; }

.lm-subjects-menu { position: relative; }
.lm-subjects-menu__panel { position: absolute; left: -16px; top: calc(100% + 10px); z-index: 40; width: 300px; padding: 10px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 39, 100, 0.16); }
.lm-subjects-menu__all { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--navy); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 0.9375rem; background: var(--mist); }
.lm-subjects-menu__panel ul { list-style: none; margin: 6px 0 0; padding: 0; }
.lm-subjects-menu__panel li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 0.9375rem; }
.lm-subjects-menu__panel li a:hover { background: var(--soft); color: var(--navy); }

@media (max-width: 959.98px) {
  .lm-header__inner { max-width: none; min-height: 72px; padding: 0 12px 0 16px; flex-wrap: nowrap; gap: 8px; }
  .lm-header__logo img { height: 50px; }
  .lm-nav { display: none; }
  .lm-header__tools { gap: 8px; }
  .lm-tool { border-radius: 12px; border: 0; background: var(--mist); }
  .lm-tool--menu { display: flex; background: var(--navy); color: #FFFFFF; }
  .lm-tool--menu:hover { color: #FFFFFF; }
  .is-signed-in .lm-tool--menu, .is-signed-in .lm-tool--menu:hover { background: var(--mist); color: var(--navy); }
  .lm-account { width: 44px; height: 44px; min-height: 44px; padding: 0 !important; justify-content: center; flex: none; gap: 0 !important; }
  .lm-account__text { display: none; }
  .lm-account--out, .lm-account--out:hover { border-radius: 12px; background: var(--mist); color: var(--navy); }
  .lm-account__icon { width: 20px; height: 20px; }
  .lm-account--in, .lm-account--in:hover, .lm-account--in.is-active { border-radius: 50%; border: 0; background: var(--navy); color: #FFFFFF; }
  .lm-account__initials { width: auto; height: auto; background: none; }
}

/* ---------- phone menu ---------- */
.lm-menu { display: none; position: fixed; inset: 0; z-index: 80; overflow: auto; background: #FFFFFF; flex-direction: column; min-height: 100%; }
.lm-menu:target, .lm-menu.is-open { display: flex; }
.lm-menu__top { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.lm-menu__badge { display: flex; }
.lm-menu__badge img { width: 46px; height: 46px; }
.lm-menu__title { flex: 1 1 auto; font-family: var(--head); font-weight: 800; font-size: 1.0625rem; color: var(--navy); }
.lm-menu__close, .lm-menu__close:hover { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--navy); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; flex: none; }
.lm-menu__body { flex: 1 1 auto; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.lm-menu__list { list-style: none; margin: 0; padding: 0; }
.lm-menu__row { display: flex; align-items: center; justify-content: space-between; min-height: 54px; border-bottom: 1px solid var(--line2); color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.1875rem; }
.lm-menu__user { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--mist); }
.lm-menu__initials { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 0.875rem; }
.lm-menu__who { min-width: 0; }
.lm-menu__name { display: block; font-family: var(--head); font-weight: 800; font-size: 1rem; color: var(--navy); }
.lm-menu__email { display: block; font-size: 0.8125rem; color: var(--slate); overflow-wrap: anywhere; }
.lm-menu__pair { display: flex; gap: 10px; }
.lm-menu__pair > * { flex: 1 1 0; min-width: 0; }
.lm-menu__signout { margin: 0; display: flex; }
.lm-menu__more { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.875rem; }
.lm-menu__more a { color: var(--slate2); min-height: 32px; display: inline-flex; align-items: center; }
.lm-wa-icon { color: var(--green); display: inline-flex; }

/* ---------- footer ---------- */
.lm-footer { margin-top: auto; background: var(--navy); color: var(--on-navy-text); }
.lm-footer a { color: var(--on-navy-text); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.lm-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.lm-footer a.lm-footer__mail { color: #FFFFFF; text-decoration: underline; min-height: 0; display: inline; }
.lm-footer__logo { height: 58px; width: auto; align-self: flex-start; display: block; }
.lm-footer__head { font-family: var(--head); font-weight: 700; color: #FFFFFF; margin-bottom: 2px; }
.lm-footer--full .lm-footer__inner { max-width: 1240px; margin: 0 auto; padding: 64px 32px 28px; }
.lm-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.lm-footer__brand { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lm-footer__brand p { margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.lm-footer__brand p:first-of-type { max-width: 320px; }
.lm-footer__navs { display: contents; }
.lm-footer__col { display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
.lm-footer__col--0 { flex: 0 1 160px; }
.lm-footer__col--1 { flex: 0 1 220px; }
.lm-footer__col--2 { flex: 0 1 160px; }
.lm-footer__col--3 { flex: 0 1 180px; }
.lm-footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.lm-footer--compact .lm-footer__inner { max-width: 1240px; margin: 0 auto; padding: 40px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.lm-footer--compact .lm-footer__logo { height: 50px; align-self: center; }
.lm-footer__row { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.9375rem; }
.lm-footer__copy { margin: 0; font-size: 0.875rem; }
@media (max-width: 959.98px) {
  .lm-footer--full .lm-footer__inner { padding: 36px 20px 28px; }
  .lm-footer__cols { display: block; }
  .lm-footer__brand { display: block; }
  .lm-footer--full .lm-footer__logo { height: 52px; }
  .lm-footer__brand p { margin: 14px 0 0; }
  .lm-footer__brand p + p { margin-top: 8px; }
  .lm-footer__navs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 28px; }
  .lm-footer__col { gap: 6px; }
  .lm-footer__bottom { display: block; margin: 32px 0 0; padding-top: 18px; font-size: 0.8125rem; line-height: 1.6; }
  .lm-footer--compact .lm-footer__inner { display: block; padding: 28px 20px; }
  .lm-footer--compact .lm-footer__logo { height: 46px; }
  .lm-footer__row { gap: 4px 18px; margin-top: 14px; font-size: 0.875rem; }
  .lm-footer__copy { margin: 14px 0 0; font-size: 0.8125rem; line-height: 1.6; }
}

/* ---------- decorative ---------- */
.lm-ecg { position: absolute; left: 0; width: 100%; }
.lm-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 28px 28px; }

/* Lecture cover: YouTube thumbnail, or a generated cover whose title follows the card width. */
.lm-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; container-type: inline-size; background: var(--navy); }
.lm-thumb > img[data-yt-thumb] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lm-thumb__text { position: absolute; left: 18px; top: 16px; right: 70px; display: flex; flex-direction: column; gap: 6px; }
.lm-thumb__subject { font-family: var(--head); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-red); }
.lm-thumb__title { font-family: var(--head); font-weight: 800; font-size: clamp(0.9375rem, 6.5cqw, 1.25rem); line-height: 1.1; color: #FFFFFF; }
.lm-thumb .lm-ecg { bottom: 14px; height: 30px; }
.lm-thumb__badge { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; }
.lm-thumb__play { position: absolute; right: 12px; top: calc(50% + 12px); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.lm-thumb__play svg { width: 19px; height: 19px; }
.lm-thumb__play--center { right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; }
.lm-thumb__play--center svg { width: 22px; height: 22px; }
.lm-thumb__dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(11, 21, 48, 0.85); color: #FFFFFF; font-size: 0.75rem; font-weight: 600; }
@media (max-width: 959.98px) {
  .lm-thumb--auto .lm-thumb__text, .lm-thumb--sm .lm-thumb__text { left: 14px; top: 12px; right: 56px; gap: 4px; }
  .lm-thumb--auto .lm-thumb__subject, .lm-thumb--sm .lm-thumb__subject { font-size: 0.625rem; }
  .lm-thumb--auto .lm-thumb__title, .lm-thumb--sm .lm-thumb__title { font-size: clamp(0.875rem, 6cqw, 1.0625rem); }
  .lm-thumb--auto .lm-ecg, .lm-thumb--sm .lm-ecg { bottom: 12px; height: 26px; }
  .lm-thumb--auto .lm-thumb__badge, .lm-thumb--sm .lm-thumb__badge { right: 10px; top: 10px; width: 38px; height: 38px; }
  .lm-thumb--auto .lm-thumb__play, .lm-thumb--sm .lm-thumb__play { right: 10px; top: calc(50% + 8px); width: 38px; height: 38px; }
  .lm-thumb--auto .lm-thumb__play svg, .lm-thumb--sm .lm-thumb__play svg { width: 16px; height: 16px; }
  .lm-thumb--auto .lm-thumb__play--center, .lm-thumb--sm .lm-thumb__play--center { right: auto; top: 50%; width: 46px; height: 46px; }
  .lm-thumb--auto .lm-thumb__play--center svg, .lm-thumb--sm .lm-thumb__play--center svg { width: 18px; height: 18px; }
}
.lm-mini-thumb { position: relative; flex: none; width: 108px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--navy); display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.lm-mini-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.lm-mini-thumb__play { position: relative; display: inline-flex; }
.lm-mini-thumb__dur { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: 4px; background: rgba(11, 21, 48, 0.85); font-size: 0.6875rem; font-weight: 600; }

/* Note cover */
.lm-note-cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0, 39, 100, 0.08); }
.lm-note-cover--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lm-note-cover__head { height: 38%; background: var(--navy); padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; }
.lm-note-cover__subject { font-family: var(--head); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-red); }
.lm-note-cover__title { font-family: var(--head); font-weight: 800; font-size: 1.0625rem; line-height: 1.15; color: #FFFFFF; }
.lm-note-cover__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.lm-note-cover__line { height: 7px; border-radius: 4px; background: var(--bar); display: block; }
.lm-note-cover__block { height: 44px; width: 100%; border-radius: 6px; background: var(--mist); display: block; }
.lm-note-cover__badge { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; }
.lm-note-cover--sm { border-radius: 10px; }
.lm-note-cover--xs { flex: none; width: 52px; height: 70px; aspect-ratio: auto; border-radius: 7px; box-shadow: none; display: flex; flex-direction: column; }
.lm-note-cover--xs.lm-note-cover--image { display: block; }
.lm-note-cover__band { height: 40%; background: var(--navy); display: block; }
.lm-note-cover__lines { flex: 1 1 auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.lm-note-cover__lines span { height: 3px; border-radius: 2px; background: var(--bar); display: block; }
.lm-note-cover__lines span:nth-child(1) { width: 80%; }
.lm-note-cover__lines span:nth-child(2) { width: 92%; }
.lm-note-cover__lines span:nth-child(3) { width: 60%; }
@media (max-width: 959.98px) {
  .lm-note-cover--auto { border-radius: 10px; }
  .lm-note-cover--auto .lm-note-cover__head { padding: 12px; }
  .lm-note-cover--auto .lm-note-cover__subject { font-size: 0.5625rem; }
  .lm-note-cover--auto .lm-note-cover__title { font-size: 0.8125rem; }
  .lm-note-cover--auto .lm-note-cover__body { padding: 12px; gap: 6px; }
  .lm-note-cover--auto .lm-note-cover__line { height: 5px; }
  .lm-note-cover--auto .lm-note-cover__block { height: 30px; }
  .lm-note-cover--auto .lm-note-cover__badge { width: 26px; height: 26px; }
}

/* ---------- cards ---------- */
.lm-subject-card { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; color: var(--ink); text-decoration: none; }
/* Only tiles size their text to the card (container units); containment on a column-flex card would inflate its height. */
.lm-subject-card--tile { container-type: inline-size; }
.lm-subject-card:hover { color: var(--ink); border-color: var(--soft-border); }
.lm-subject-card--directory { gap: 12px; }
.lm-subject-card__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--mist); display: flex; align-items: center; justify-content: center; flex: none; }
.lm-subject-card__img { display: flex; align-items: center; justify-content: center; height: 220px; border-radius: 12px; overflow: hidden; background: var(--mist); }
.lm-subject-card__img img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.lm-subject-card__glyph { display: flex; align-items: center; justify-content: center; width: 132px; height: 132px; border-radius: 28px; background: #FFFFFF; }
.lm-subject-card--pic { padding: 14px 14px 20px; }
.lm-subject-card--pic .lm-subject-card__name, .lm-subject-card--pic .lm-subject-card__meta, .lm-subject-card--pic .lm-subject-card__topics { padding: 0 6px; }
.lm-subject-card--pic:hover .lm-subject-card__img img { transform: scale(1.03); }
@media (prefers-reduced-motion: no-preference) { .lm-subject-card__img img { transition: transform .25s ease; } }
.lm-subject-card--all { background: var(--mist); }
.lm-subject-card--all .lm-subject-card__icon { background: #FFFFFF; }
.lm-subject-card__name { font-family: var(--head); font-weight: 700; font-size: 1.1875rem; color: var(--navy); }
.lm-subject-card__meta { font-size: 0.875rem; line-height: 1.45; color: var(--slate); }
.lm-subject-card--all .lm-subject-card__meta { color: var(--slate2); line-height: normal; }
.lm-subject-card__topics { font-size: 0.875rem; line-height: 1.5; color: var(--slate2); }
@media (max-width: 959.98px) {
  .lm-subject-card { padding: 18px; }
  .lm-subject-card--tile { flex: initial; gap: 10px; min-height: 104px; padding: 16px; border-radius: 14px; color: var(--navy); }
  .lm-subject-card--tile .lm-subject-card__icon { width: 24px; height: 24px; border-radius: 0; background: none; }
  .lm-subject-card--tile .lm-subject-card__icon svg { width: 24px; height: 24px; }
  .lm-subject-card--tile .lm-subject-card__name { font-size: clamp(0.8125rem, 12.5cqw, 1rem); }
  .lm-subject-card--tile .lm-subject-card__meta { font-size: 0.75rem; line-height: 1.4; }
  .lm-subject-card--all.lm-subject-card--tile .lm-subject-card__name { font-size: 1rem; }
  .lm-subject-card--pic.lm-subject-card--tile { padding: 8px 8px 14px; }
  .lm-subject-card--pic .lm-subject-card__name, .lm-subject-card--pic .lm-subject-card__meta { padding: 0 4px; }
  .lm-subject-card__img { height: auto; aspect-ratio: 1; border-radius: 9px; }
  .lm-subject-card__img img { width: 100%; height: 100%; }
  .lm-subject-card__glyph { width: 64%; height: 64%; border-radius: 18px; }
  .lm-subject-card__glyph svg { width: 50%; height: 50%; }
  .lm-subject-card--all.lm-subject-card--tile .lm-subject-card__meta { color: var(--slate2); }
}

.lm-lecture-card { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.lm-lecture-card:hover { color: var(--ink); }
.lm-lecture-card:hover .lm-lecture-card__title { text-decoration: underline; }
.lm-lecture-card__title { font-family: var(--head); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.lm-lecture-card__meta { font-size: 0.875rem; color: var(--slate); }
.lm-progress-text { font-size: 0.8125rem; font-weight: 700; }
.lm-progress-text--green { color: var(--green); }
.lm-progress-text--amber { color: var(--amber); }
@media (max-width: 959.98px) {
  .lm-lecture-card { gap: 10px; }
  .lm-lecture-card--carousel { flex: none; width: 17rem; }
  .lm-lecture-card__title { font-size: 1rem; }
  .lm-lecture-card__meta { font-size: 0.8125rem; }
}
.lm-lecture-row { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; min-height: 44px; }
.lm-lecture-row:hover { color: var(--ink); }
.lm-lecture-row:hover .lm-lecture-row__title { text-decoration: underline; }
.lm-lecture-row__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lm-lecture-row__title { font-family: var(--head); font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.lm-lecture-row__meta { font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 959.98px) {
  .lm-lecture-row { container-type: inline-size; }
  .lm-lecture-row .lm-mini-thumb { width: clamp(88px, 36cqw, 128px); }
}

.lm-note-card { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.lm-note-card__cover { position: relative; }
.lm-note-card__title { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.lm-note-card__meta { font-size: 0.875rem; line-height: 1.45; color: var(--slate); }
.lm-note-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.lm-file-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; }
.lm-file-status--missing { color: var(--amber); }
.lm-save-icon { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.96); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.lm-save-icon:hover { color: var(--navy); }
@media (max-width: 959.98px) {
  .lm-note-card { flex: initial; gap: 8px; }
  .lm-note-card--carousel { flex: none; width: 12.5rem; }
  .lm-note-card__title { font-size: 0.875rem; }
  .lm-note-card__meta { font-size: 0.75rem; }
  .lm-note-card__actions { gap: 8px; flex-direction: column; }
  .lm-note-card--carousel .lm-note-card__actions { flex-direction: row; }
}
.lm-note-row { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; align-items: flex-start; }
.lm-note-row__body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.lm-note-row__title { margin: 0; font-family: var(--head); font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.lm-note-row__meta { font-size: 0.8125rem; color: var(--slate); }
.lm-note-row__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.lm-quiz-card { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 18px; background: var(--mist); }
.lm-quiz-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lm-quiz-card__title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.3125rem; color: var(--navy); }
.lm-quiz-card__meta { font-size: 0.9375rem; line-height: 1.5; color: var(--slate2); }
.lm-quiz-card__last { font-size: 0.875rem; font-weight: 700; color: var(--slate); }
.lm-quiz-card__last--done { color: var(--green); }
.lm-quiz-card__cta { margin-top: auto; }
@media (max-width: 959.98px) {
  .lm-quiz-card { flex: initial; gap: 10px; padding: 18px; }
  .lm-quiz-card__title { font-size: 1.125rem; }
  .lm-quiz-card__meta { font-size: 0.875rem; }
}

.lm-article-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.lm-article-cover--image { background: var(--line); }
.lm-article-cover--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lm-article-cover--round { border-radius: 20px; }
.lm-article-cover__text { position: absolute; left: 20px; top: 18px; right: 76px; display: flex; flex-direction: column; gap: 6px; }
.lm-article-cover__subject { font-family: var(--head); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-red); }
.lm-article-cover__title { font-family: var(--head); font-weight: 800; font-size: 1.1875rem; line-height: 1.12; color: #FFFFFF; }
.lm-article-cover .lm-ecg { bottom: 14px; height: 28px; }
.lm-article-cover__badge { position: absolute; right: 14px; top: 14px; width: 46px; height: 46px; }
.lm-article-cover--big { aspect-ratio: 16 / 7; }
.lm-article-cover--big .lm-grid-bg { background-size: 44px 44px; }
.lm-article-cover--big .lm-article-cover__text { left: 40px; top: 36px; right: 150px; gap: 10px; }
.lm-article-cover--big .lm-article-cover__subject { font-size: 0.8125rem; }
.lm-article-cover--big .lm-article-cover__title { font-size: 2.125rem; }
.lm-article-cover--big .lm-ecg { bottom: 26px; height: 46px; }
.lm-article-cover--big .lm-article-cover__badge { right: 32px; top: 30px; width: 92px; height: 92px; }
@media (max-width: 959.98px) {
  .lm-article-cover--big { aspect-ratio: 16 / 10; }
  .lm-article-cover--big .lm-grid-bg { background-size: 28px 28px; }
  .lm-article-cover--big .lm-article-cover__text { left: 20px; top: 18px; right: 76px; gap: 6px; }
  .lm-article-cover--big .lm-article-cover__subject { font-size: 0.6875rem; }
  .lm-article-cover--big .lm-article-cover__title { font-size: 1.1875rem; }
  .lm-article-cover--big .lm-ecg { bottom: 14px; height: 28px; }
  .lm-article-cover--big .lm-article-cover__badge { right: 14px; top: 14px; width: 46px; height: 46px; }
}
.lm-article-card { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lm-article-card:hover { color: var(--ink); }
.lm-article-card:hover .lm-article-card__title { text-decoration: underline; }
.lm-article-card__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.lm-article-card__pill { align-self: flex-start; }
.lm-article-card__title { font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.lm-article-card__by { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--slate); }
.lm-author-photo { flex: none; width: var(--s, 28px); height: var(--s, 28px); border-radius: 50%; object-fit: cover; background: var(--mist); border: 1px solid var(--line); }
.lm-author-photo--logo { background: #FFFFFF; padding: 2px; }
@media (max-width: 959.98px) {
  .lm-article-card { border-radius: 16px; }
  .lm-article-card--carousel { flex: none; width: 17rem; }
  .lm-article-card__body { padding: 16px; gap: 8px; }
  .lm-article-card__title { font-size: 1.0625rem; }
  .lm-article-card__by { font-size: 0.8125rem; }
}

.lm-founder-photo { display: block; width: var(--s, 100%); aspect-ratio: 1 / 1; border-radius: var(--r, 50%); object-fit: cover; }
.lm-founder-photo--logo { position: relative; background: var(--mist); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lm-founder-photo--logo img { width: 74%; height: 74%; filter: drop-shadow(0 6px 14px rgba(0, 39, 100, 0.16)); }
.lm-founder-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-founder-card__head { display: flex; align-items: center; gap: 16px; }
.lm-founder-card__photo { flex: none; width: 84px; }
.lm-founder-card__name { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.25rem; line-height: 1.25; color: var(--navy); }
.lm-founder-card__role { margin: 4px 0 0; font-family: var(--head); font-weight: 700; font-size: 0.875rem; color: var(--red); }
.lm-founder-card__known { margin: 2px 0 0; font-size: 0.875rem; color: var(--slate2); }
.lm-founder-card__bio { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--slate2); }
@media (max-width: 959.98px) {
  .lm-founder-card { padding: 20px; }
  .lm-founder-card__photo { width: 72px; }
  .lm-founder-card__name { font-size: 1.125rem; }
  .lm-founder-card__bio { font-size: 0.9375rem; }
}

/* WhatsApp business chat button (donations from outside Sierra Leone) */
.lm-wa-business, .lm-wa-business:hover { display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 22px 8px 10px; border-radius: 999px; background: var(--wa-green); color: #FFFFFF; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1rem; line-height: 1.25; }
.lm-wa-business__badge { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: var(--wa-green); display: inline-flex; align-items: center; justify-content: center; }
.lm-wa-business__label { flex: 1 1 auto; }
@media (max-width: 959.98px) { .lm-wa-business--m-full { display: flex; width: 100%; } }
/* ---------- home ---------- */
.lm-self-start { align-self: flex-start; }
.lm-d-only-flex { display: flex; }
/* Opening: text, the running terms, and the founders' cards over the two videos. ECG-paper squares sit faintly
   behind the picture side; the terms card's progress line is an ECG trace that draws itself while a term shows. */
.lm-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #FFFFFF; }
.lm-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(209, 9, 43, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(209, 9, 43, 0.07) 1px, transparent 1px), linear-gradient(rgba(209, 9, 43, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(209, 9, 43, 0.035) 1px, transparent 1px); background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; -webkit-mask-image: radial-gradient(ellipse 46% 78% at 78% 50%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%); mask-image: radial-gradient(ellipse 46% 78% at 78% 50%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%); }
.lm-hero__inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 64px 32px 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.lm-hero__text { flex: 1 1 460px; min-width: 0; }
.lm-hero .lm-h1 { letter-spacing: -0.015em; text-wrap: balance; }
.lm-hero__keep { white-space: nowrap; }
.lm-hero__lead { margin: 22px 0 0; max-width: 520px; padding-left: 16px; border-left: 3px solid var(--brand); font-family: var(--head); font-weight: 600; font-size: 1.3125rem; line-height: 1.45; color: var(--slate2); text-wrap: balance; }
.lm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.lm-terms { position: relative; max-width: 560px; margin-top: 36px; padding: 22px 24px 16px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 39, 100, 0.08); }
.lm-terms__list { display: grid; margin: 0; padding: 0; list-style: none; }
.lm-term { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease; }
.lm-term.is-active { opacity: 1; transform: none; pointer-events: auto; }
.lm-term__subject { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 0.8125rem; color: var(--red); }
.lm-term__subject::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.lm-term__name { position: relative; display: block; width: 100%; margin-top: 10px; font-family: var(--head); font-weight: 800; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
.lm-term__typed { position: absolute; left: 0; top: 0; right: 0; display: none; }
.lm-term.is-typing .lm-term__full { color: transparent; }
.lm-term.is-typing .lm-term__typed { display: block; }
.lm-term__typed::after { content: ""; display: inline-block; width: 3px; height: 0.95em; margin-left: 3px; vertical-align: -0.1em; border-radius: 2px; background: var(--brand); }
.lm-term__def { display: block; margin-top: 8px; font-size: 1.0625rem; line-height: 1.6; color: var(--slate2); transition: opacity 0.4s ease, transform 0.4s ease; }
.lm-term.is-typing .lm-term__def { opacity: 0; transform: translateY(4px); }
.lm-terms__ecg { display: block; width: 100%; height: 28px; margin-top: 12px; overflow: visible; }
.lm-terms__ecg path { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lm-terms__ecg-base { stroke: var(--line); }
.lm-terms__ecg-run { stroke: var(--brand); stroke-dasharray: 100; stroke-dashoffset: 100; }

.lm-hero__visual-col { flex: 1 1 420px; min-width: 0; }
.lm-hero__visual { position: relative; height: 640px; border-radius: 28px; overflow: hidden; isolation: isolate; background: var(--ink); box-shadow: 0 40px 80px -28px rgba(0, 39, 100, 0.5), 0 0 0 1px rgba(0, 39, 100, 0.08); }
.lm-hero__videos { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); }
.lm-hero__video { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; background: var(--ink); }
.lm-hero__shade { position: absolute; inset: 0; pointer-events: none; background-color: rgba(0, 39, 100, 0.5); background-image: linear-gradient(180deg, rgba(11, 21, 48, 0.9) 0%, rgba(11, 21, 48, 0.45) 16%, rgba(11, 21, 48, 0) 34%), linear-gradient(0deg, rgba(11, 21, 48, 0.97) 0%, rgba(11, 21, 48, 0.75) 30%, rgba(11, 21, 48, 0) 58%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); border-radius: inherit; }
.lm-hero__visual--still { background: var(--navy); }
.lm-hero__badge { position: absolute; left: 22px; top: 22px; width: 56px; height: 56px; }
.lm-hero__pause { position: absolute; right: 18px; top: 22px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.94); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 0.8125rem; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.lm-hero__pause:hover { background: #FFFFFF; color: var(--navy); }
.lm-hero__pause-icon { display: inline-flex; }

/* The cards share one grid cell, so every card is as tall as the tallest and the ones behind always show above. */
.lm-deck { position: absolute; left: 28px; right: 28px; bottom: 28px; display: grid; margin: 0; padding: 0; list-style: none; }
.lm-deck__card { position: relative; grid-area: 1 / 1; min-width: 0; display: flex; align-items: center; gap: 18px; min-height: 116px; padding: 18px 22px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36); transform-origin: 50% 0; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease; }
.lm-deck__card[data-pos="0"] { z-index: 3; }
.lm-deck__card[data-pos="1"] { z-index: 2; transform: translateY(-16px) scale(0.95); opacity: 0.8; }
.lm-deck__card[data-pos="2"] { z-index: 1; transform: translateY(-32px) scale(0.9); opacity: 0.52; }
.lm-deck__card[data-pos="3"] { z-index: 0; transform: translateY(-32px) scale(0.9); opacity: 0; }
.lm-deck__card.is-leaving { z-index: 4; transform: translateY(28px); opacity: 0; transition-duration: 0.45s; }
.lm-deck__card > * { transition: opacity 0.35s ease 0.15s; }
.lm-deck__card:not([data-pos="0"]) > *, .lm-deck__card.is-leaving > * { opacity: 0; transition-delay: 0s; }
.lm-deck__photo { flex: none; width: 76px; }
.lm-deck__text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lm-deck__name { font-family: var(--head); font-weight: 800; font-size: 1.3125rem; line-height: 1.2; color: var(--navy); }
.lm-deck__role { font-family: var(--head); font-weight: 700; font-size: 0.875rem; line-height: 1.3; color: var(--red); }
.lm-deck__known { font-size: 0.875rem; line-height: 1.3; color: var(--slate2); }

@media (prefers-reduced-motion: reduce) {
  .lm-term, .lm-term__def, .lm-deck__card { transition: none; }
}
@media (max-width: 959.98px) {
  .lm-hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 40% at 50% 84%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 90% 40% at 50% 84%, #000 0%, transparent 75%); }
  .lm-hero__inner { display: block; max-width: 720px; padding: 32px 20px 36px; }
  .lm-hero__lead { margin-top: 16px; padding-left: 12px; font-size: 1.0625rem; }
  .lm-hero__actions { flex-direction: column; gap: 12px; margin-top: 24px; }
  .lm-terms { max-width: none; margin-top: 24px; padding: 18px 18px 12px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0, 39, 100, 0.06); }
  .lm-term__subject { font-size: 0.75rem; }
  .lm-term__name { margin-top: 8px; font-size: 1.375rem; }
  .lm-term__def { margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; }
  .lm-terms__ecg { height: 22px; margin-top: 10px; }
  .lm-hero__visual { height: 460px; margin-top: 24px; border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(0, 39, 100, 0.45); }
  .lm-hero__badge { left: 14px; top: 14px; width: 40px; height: 40px; }
  .lm-hero__pause { right: 12px; top: 14px; padding: 0 14px 0 12px; font-size: 0.75rem; }
  .lm-deck { left: 14px; right: 14px; bottom: 14px; }
  .lm-deck__card { min-height: 84px; gap: 12px; padding: 12px 16px; border-radius: 16px; }
  .lm-deck__card[data-pos="1"] { transform: translateY(-12px) scale(0.95); }
  .lm-deck__card[data-pos="2"], .lm-deck__card[data-pos="3"] { transform: translateY(-24px) scale(0.9); }
  .lm-deck__card.is-leaving { transform: translateY(22px); }
  .lm-deck__photo { width: 52px; }
  .lm-deck__name { font-size: 1.0625rem; }
  .lm-deck__role, .lm-deck__known { font-size: 0.8125rem; }
  .lm-d-only-flex { display: none !important; }
}

.lm-numbers { background: var(--mist); }
.lm-numbers__inner { max-width: 1240px; margin: 0 auto; padding: 40px 32px; }
.lm-numbers__row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.lm-numbers__free { flex: 1 1 420px; min-width: 0; }
.lm-numbers__community { flex: 1 1 460px; min-width: 0; }
.lm-numbers__label { margin: 0 0 12px; font-family: var(--head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.lm-numbers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
.lm-numbers__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lm-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lm-stat__num { font-family: var(--head); font-weight: 800; font-size: 2.25rem; color: var(--navy); }
.lm-stat__label { font-size: 0.9375rem; color: var(--slate2); }
.lm-numbers__social { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; }
.lm-social { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lm-social:hover { color: var(--ink); border-color: var(--soft-border); }
.lm-social__ext { position: absolute; right: 12px; top: 12px; color: var(--slate); display: inline-flex; }
.lm-social__num { font-family: var(--head); font-weight: 800; font-size: 1.875rem; line-height: 1.1; color: var(--navy); }
.lm-social__label { font-size: 0.875rem; line-height: 1.35; color: var(--slate2); }
.lm-social__label strong { font-weight: 700; color: var(--ink); }
.lm-numbers__note { margin: 18px 0 0; font-size: 0.8125rem; color: var(--slate2); }
@media (max-width: 959.98px) {
  .lm-numbers__inner { max-width: 720px; padding: 26px 20px; }
  .lm-numbers__row { align-items: stretch; gap: 22px; }
  .lm-numbers__grid { gap: 16px 12px; }
  .lm-numbers__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lm-stat__num { font-size: 1.75rem; }
  .lm-stat__label { font-size: 0.875rem; }
  .lm-numbers__social { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lm-social { padding: 12px 14px; }
  .lm-social__num { font-size: 1.5rem; }
  .lm-social__label { font-size: 0.8125rem; }
  .lm-numbers__note { margin-top: 14px; }
}

.lm-home-sec__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.lm-home-sec--subjects { padding: 88px 0 72px; }
.lm-home-sec--lectures { padding: 72px 0; }
.lm-home-sec--notes { padding: 72px 0; background: var(--soft); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.lm-home-sec--mcqs { padding: 80px 0; }
.lm-home-sec--articles { padding: 72px 0; background: var(--soft); border-top: 1px solid var(--line2); }
.lm-home-sec--founders { padding: 88px 0; }
.lm-home-sec__more { display: flex; justify-content: center; margin-top: 40px; }
.lm-subject-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.lm-cards-row { display: flex; flex-wrap: wrap; gap: 24px; }
.lm-quiz-row { display: flex; flex-wrap: wrap; gap: 20px; }
.lm-founders-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.lm-founders-head__text { flex: 1 1 560px; min-width: 0; }
.lm-founders-head__title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 2.375rem; line-height: 1.15; color: var(--navy); }
.lm-founders-head__mission { margin: 16px 0 0; max-width: 720px; font-size: 1.125rem; line-height: 1.6; color: var(--slate2); }
.lm-founders-head__mission strong { color: var(--ink); }
.lm-founders-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
@media (max-width: 959.98px) {
  .lm-home-sec__inner { max-width: 720px; padding: 0; }
  .lm-home-sec--subjects { padding: 40px 20px 24px; }
  .lm-home-sec--lectures { padding: 32px 0 24px; }
  .lm-home-sec--notes, .lm-home-sec--articles { padding: 32px 0; }
  .lm-home-sec--mcqs { padding: 40px 20px 24px; }
  .lm-home-sec--founders { padding: 40px 20px; }
  .lm-home-sec__more { margin-top: 0; padding: 16px 20px 0; }
  .lm-subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lm-cards-row { flex-wrap: nowrap; gap: 14px; overflow-x: auto; padding: 0 20px 8px; }
  .lm-quiz-row { flex-direction: column; gap: 12px; }
  .lm-founders-head__title { font-size: 1.75rem; }
  .lm-founders-head__mission { margin-top: 12px; font-size: 1rem; }
  .lm-founders-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
}

.lm-ask { background: var(--mist); padding: 80px 0; }
.lm-ask__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; flex-wrap: wrap; gap: 28px; }
.lm-ask__form { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 18px 40px rgba(0, 39, 100, 0.08); }
.lm-ask__title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.875rem; color: var(--navy); }
.lm-ask__lead { margin: 8px 0 0; font-size: 1rem; color: var(--slate); }
.lm-ask__pair { display: flex; flex-wrap: wrap; gap: 16px; }
.lm-ask__note { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--slate2); }
.lm-ask__send { align-self: flex-start; }
.lm-ask__side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lm-ask__card { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 22px; background: #FFFFFF; }
.lm-ask__card--wa { background: var(--navy); color: #FFFFFF; }
.lm-ask__icon { width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; }
.lm-ask__icon--wa { background: rgba(255, 255, 255, 0.12); color: var(--wa-icon); }
.lm-ask__icon--support { background: var(--notice); color: var(--red); }
.lm-ask__card-title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.5rem; }
.lm-ask__card--support .lm-ask__card-title { color: var(--navy); }
@media (max-width: 959.98px) {
  .lm-ask { padding: 32px 20px; }
  .lm-ask__inner { max-width: 720px; padding: 0; flex-direction: column; gap: 18px; }
  .lm-ask__form { flex: initial; gap: 14px; padding: 22px; border-radius: 18px; }
  .lm-ask__title { font-size: 1.5rem; }
  .lm-ask__lead { font-size: 0.9375rem; }
  .lm-ask__send { align-self: auto; }
  .lm-ask__side { display: contents; }
  .lm-ask__card { flex: initial; gap: 12px; padding: 22px; border-radius: 18px; }
  .lm-ask__card-title { font-size: 1.3125rem; }
  .lm-self-start { align-self: auto; }
}
/* ---------- shared page pieces ---------- */
.lm-lead { margin: 10px 0 0; max-width: 720px; font-size: 1.125rem; line-height: 1.55; color: var(--slate2); }
.lm-mt-24 { margin-top: 24px; }
.lm-d-contents { display: contents; }
.lm-m-contents { display: none; }
.lm-soon { color: var(--slate); }
@media (max-width: 959.98px) {
  .lm-lead { font-size: 0.9375rem; }
  .lm-d-contents { display: none; }
  .lm-m-contents { display: contents; }
}

/* ---------- subjects directory ---------- */
.lm-subject-dir { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 959.98px) { .lm-subject-dir { flex-direction: column; gap: 12px; } }

/* ---------- subject page ---------- */
.lm-subject-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; }
.lm-subject-head__main { display: flex; align-items: flex-start; gap: 24px; flex: 1 1 560px; min-width: 0; }
.lm-subject-head__icon { flex: none; width: 84px; height: 84px; border-radius: 22px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.lm-subject-head__img { flex: none; width: 132px; height: 132px; border-radius: 24px; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); }
.lm-subject-head__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lm-subject-head__desc { margin: 12px 0 0; max-width: 640px; font-size: 1.0625rem; line-height: 1.6; color: var(--slate2); }
.lm-subject-head__counts { margin: 14px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--slate2); }
.lm-subject-head__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lm-subject-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
@media (max-width: 959.98px) {
  .lm-subject-head { display: block; margin-top: 18px; }
  .lm-subject-head__main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: center; }
  .lm-subject-head__main > .lm-min0 { display: contents; }
  .lm-subject-head__icon { width: 60px; height: 60px; border-radius: 16px; }
  .lm-subject-head__icon svg { width: 32px; height: 32px; }
  .lm-subject-head__img { width: 76px; height: 76px; border-radius: 16px; }
  .lm-subject-head__desc, .lm-subject-head__counts { grid-column: 1 / -1; }
  .lm-subject-head__desc { margin-top: 14px; font-size: 0.9375rem; }
  .lm-subject-head__counts { margin-top: 10px; font-size: 0.875rem; }
  .lm-subject-head__actions { margin-top: 18px; }
  .lm-subject-switch { flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 20px -20px 0; padding: 0 20px 4px; }
}

.lm-subject-body { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.lm-onpage { display: flex; flex-wrap: wrap; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--head); font-weight: 700; font-size: 0.9375rem; }
.lm-onpage a { flex: none; padding: 6px 0; color: var(--slate2); text-decoration: none; }
.lm-onpage a.is-first { color: var(--navy); }
.lm-continue-box { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: #FFFFFF; }
.lm-continue-box__text { flex: 1 1 320px; min-width: 0; }
.lm-continue-box__title { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.lm-continue-box__bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.lm-continue-box__bar span { flex: none; font-size: 0.875rem; color: var(--slate2); }
.lm-subject-sec { padding: 48px 0 24px; }
.lm-subject-sec--topics { padding: 56px 0 24px; }
.lm-subject-sec--mcqs { padding: 48px 0 88px; }
.lm-subject-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; margin-bottom: 24px; }
.lm-subject-sec__head--end { align-items: flex-end; }
.lm-subject-sec__sub { margin: 6px 0 0; font-size: 1rem; color: var(--slate); }
.lm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.lm-topic-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.9375rem; }
.lm-topic-table thead tr { background: var(--soft); text-align: left; }
.lm-topic-table thead th { padding: 14px 20px; font-family: var(--head); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate2); }
.lm-topic-table tbody tr { border-top: 1px solid var(--line2); }
.lm-topic-table tbody th { padding: 16px 20px; text-align: left; font-weight: 600; color: var(--ink); }
.lm-topic-table td { padding: 16px 20px; }
.lm-topic-table td a { font-weight: 600; }
.lm-cards-wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.lm-lecture-card--b300 { flex-basis: 300px; }
.lm-rows { display: flex; flex-direction: column; gap: 14px; }
.lm-note-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lm-quiz-wrap { display: flex; flex-wrap: wrap; gap: 20px; }
.lm-quiz-wrap .lm-quiz-card { flex-basis: 300px; }
.lm-topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lm-topic-item { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.lm-topic-item__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lm-topic-item__name { font-weight: 700; font-size: 1rem; }
.lm-topic-item__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-family: var(--head); font-weight: 700; font-size: 0.875rem; }
.lm-topic-item__links a, .lm-topic-item__soon { min-height: 32px; display: inline-flex; align-items: center; }
.lm-topic-item__soon { font-family: var(--body); font-weight: 500; color: var(--slate); }
@media (max-width: 959.98px) {
  .lm-subject-body { max-width: 720px; padding: 0; }
  .lm-onpage { flex-wrap: nowrap; overflow-x: auto; padding: 0 20px; gap: 22px; }
  .lm-onpage a { padding: 16px 0 13px; }
  .lm-onpage a.is-first { border-bottom: 3px solid var(--red); }
  .lm-subject-body__inner { padding: 20px; }
  .lm-continue-box { margin-top: 0; gap: 12px; padding: 18px; }
  .lm-continue-box__title { font-size: 1rem; }
  .lm-subject-sec, .lm-subject-sec--topics { padding: 32px 0 0; }
  .lm-subject-sec--mcqs { padding: 32px 0 8px; }
  .lm-subject-sec__head { margin-bottom: 14px; }
  .lm-subject-sec__sub { font-size: 0.875rem; }
  .lm-note-rows { display: flex; flex-direction: column; gap: 10px; }
  .lm-quiz-wrap { flex-direction: column; gap: 12px; }
  .lm-quiz-wrap .lm-quiz-card { flex: initial; }
}
/* ---------- catalogue pages (lectures, notes) ---------- */
.lm-lead--normal { line-height: normal; max-width: none; }
.lm-lead--15 { line-height: 1.5; max-width: none; }
.lm-catalog-search { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; max-width: 760px; }
.lm-catalog-search__field { flex: 1 1 380px; }
.lm-catalog-search__btn { align-self: flex-end; }
.lm-catalog-search__btn .lm-btn { min-height: 50px; }
.lm-catalog__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.lm-catalog__sort--220 { flex: 0 0 220px; }
.lm-catalog__sort--200 { flex: 0 0 200px; }
.lm-catalog__apply { align-self: flex-end; }
.lm-catalog__status { margin: 22px 0; }
.lm-results-line { margin: 0; font-size: 0.9375rem; color: var(--slate2); }
.lm-lecture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.lm-lecture-card--b280 { flex-basis: 280px; }
.lm-catalog__more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 44px; }
.lm-catalog__more--48 { margin-top: 48px; }
.lm-catalog__left { font-size: 0.875rem; color: var(--slate); }
.lm-catalog[aria-busy="true"] { opacity: 0.6; transition: opacity 0.2s; }
@media (max-width: 959.98px) {
  .lm-catalog-search { margin-top: 18px; }
  .lm-catalog__sort--220, .lm-catalog__sort--200 { flex: 1 1 100%; }
  .lm-lecture-grid { display: flex; flex-direction: column; gap: 22px; }
  .lm-catalog__more, .lm-catalog__more--48 { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .lm-catalog[aria-busy="true"] { transition: none; } }

/* ---------- lecture page ---------- */
/* Desktop: crumbs, then the main column (player, title, actions, more lectures) beside the study column.
   Phones: one column with the player edge to edge at the top; the columns dissolve (display: contents) and each
   part takes its place with order (lm-lo-1 … lm-lo-6). */
.lm-lecture { width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 32px 80px; }
.lm-lecture__cols { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 22px; align-items: flex-start; }
.lm-lecture__main { flex: 999 1 640px; min-width: 0; }
.lm-lecture__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lm-input--soft { background: var(--soft); }

.lm-player__poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--navy); color: #FFFFFF; cursor: pointer; text-align: left; text-decoration: none; }
.lm-player__poster:hover { color: #FFFFFF; }
.lm-player__poster--off { cursor: default; }
.lm-player__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lm-player__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 44px 44px; }
.lm-player__text { position: absolute; left: 44px; top: 40px; right: 160px; display: flex; flex-direction: column; gap: 10px; }
.lm-player__subject { font-family: var(--head); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-red); }
.lm-player__title { font-family: var(--head); font-weight: 800; font-size: 2.875rem; line-height: 1.05; color: #FFFFFF; }
.lm-player__ecg { position: absolute; left: 0; bottom: 70px; width: 100%; height: 76px; }
.lm-player__badge { position: absolute; right: 32px; top: 32px; width: 104px; height: 104px; }
.lm-player__play { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: #FFFFFF; color: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.lm-player__play--mid { top: 50%; }
.lm-player__continue { position: absolute; left: 50%; top: calc(54% + 60px); transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 0.8125rem; white-space: nowrap; }
.lm-player__dur { position: absolute; right: 16px; bottom: 16px; padding: 4px 10px; border-radius: 8px; background: rgba(11, 21, 48, 0.85); color: #FFFFFF; font-size: 0.875rem; font-weight: 600; }
.lm-player__soon { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.lm-player__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000000; }
.lm-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lm-player__fallback { margin: 10px 0 0; font-size: 0.8125rem; color: var(--slate); }

.lm-lecture__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; font-size: 0.9375rem; color: var(--slate); }
.lm-lecture__subject { padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 0.8125rem; }
.lm-lecture__subject:hover { color: var(--navy); text-decoration: underline; }
.lm-lecture__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.lm-lecture__pair { display: contents; }
.lm-lecture__yt { margin-left: auto; }
.lm-lecture__status { margin: 14px 0 0; font-size: 0.9375rem; color: var(--slate2); }
.lm-lecture__status--done, .lm-lecture__status--progress { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lm-lecture__status--done { color: var(--green); }
.lm-lecture__status--progress { color: var(--amber); }
.lm-lecture__finish { margin-top: 14px; }
.lm-lecture__more { margin-top: 44px; }
.lm-lecture__more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.lm-lecture__more-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.lm-study { display: flex; flex-direction: column; padding: 22px; border-radius: 18px; }
.lm-study--note, .lm-study--next { gap: 14px; border: 1px solid var(--line); background: #FFFFFF; }
.lm-study--soon { gap: 8px; border: 1.5px dashed var(--soft-border); }
.lm-study--quiz { gap: 10px; background: var(--mist); }
.lm-study--quiz-soon { gap: 8px; background: var(--soft); }
.lm-study--subscribe { gap: 12px; background: var(--navy); color: #FFFFFF; }
.lm-study__note { display: flex; gap: 14px; align-items: center; }
.lm-study__note-title { margin: 0; font-family: var(--head); font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.lm-study__note-meta { margin: 6px 0 0; font-size: 0.8125rem; color: var(--slate); }
.lm-study__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.lm-study__btns .lm-study__btn { flex: 1 1 8rem; white-space: nowrap; }
.lm-study__text { margin: 0; font-size: 0.9375rem; color: var(--slate2); }
.lm-study__text--14 { font-size: 0.875rem; }
.lm-study__start { align-self: flex-start; }
.lm-study--quiz .lm-study__start { margin-top: 6px; }
.lm-study__label { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.lm-study__badge { width: 56px; height: 56px; }
.lm-study__sub-title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.125rem; color: #FFFFFF; }

@media (min-width: 960px) and (max-width: 1059.98px) {
  .lm-lecture__aside { flex-basis: 100%; }
}
@media (max-width: 959.98px) {
  .lm-lecture { display: flex; flex-direction: column; max-width: 720px; padding: 16px 20px 40px; }
  .lm-lecture__cols, .lm-lecture__main, .lm-lecture__aside { display: contents; }
  .lm-lo-1 { order: 1; }
  .lm-lecture__crumbs { order: 2; margin-top: 16px; }
  .lm-lo-3 { order: 3; }
  .lm-lo-4 { order: 4; }
  .lm-lo-5 { order: 5; }
  .lm-lo-6 { order: 6; }
  .lm-lecture__player { margin: -16px -20px 0; }
  .lm-player__poster, .lm-player__frame { border-radius: 0; }
  .lm-player__text { left: 18px; top: 16px; right: 70px; gap: 4px; }
  .lm-player__subject { font-size: 0.625rem; }
  .lm-player__title { font-size: 1.375rem; }
  .lm-player__badge { right: 12px; top: 12px; width: 50px; height: 50px; }
  .lm-player__play { width: 64px; height: 64px; }
  .lm-player__play svg { width: 26px; height: 26px; }
  .lm-player__continue { top: calc(54% + 44px); }
  .lm-player__dur { right: 10px; bottom: 10px; font-size: 0.75rem; }
  .lm-player__fallback { margin: 10px 20px 0; line-height: 1.5; }
  .lm-lecture__meta { font-size: 0.875rem; }
  .lm-lecture__actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
  .lm-lecture__pair { display: flex; gap: 10px; }
  .lm-lecture__yt { margin-left: 0; }
  .lm-study--note, .lm-study--soon { margin-top: 22px; }
  .lm-study--quiz, .lm-study--quiz-soon, .lm-study--subscribe { margin-top: 12px; }
  .lm-study--next { margin-top: 28px; }
  .lm-lecture__more { margin-top: 28px; }
  .lm-lecture__more-head { margin-bottom: 14px; }
}

/* ---------- notes library and preview ---------- */
.lm-note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.lm-preview__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 16px 18px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line2); }
.lm-preview__item { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.lm-preview__item dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.lm-preview__item dd { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.lm-preview__h { margin: 0 0 10px; font-family: var(--head); font-weight: 800; font-size: 1rem; color: var(--navy); }
.lm-preview__pages { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; }
.lm-preview__page { display: block; flex: none; width: 300px; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); }
.lm-preview__png { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.lm-preview__pdf { display: block; width: 100%; height: 62vh; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
@media (max-width: 959.98px) {
  .lm-note-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 22px 14px; }
  .lm-preview__pages { gap: 12px; }
  .lm-preview__page { width: 220px; }
  .lm-preview__pdf { height: 60vh; }
}
.lm-preview__note { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--slate2); }
/* ---------- MCQ banks ---------- */
.lm-lead--760 { max-width: 760px; }
.lm-mcqs__build { margin-top: 24px; }
.lm-mcqs__group { margin-top: 36px; }
.lm-mcqs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.lm-mcqs__count { font-size: 0.875rem; color: var(--slate); }
.lm-mcqs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 959.98px) {
  .lm-mcqs__build { margin-top: 16px; }
  .lm-mcqs__group { margin-top: 26px; }
  .lm-mcqs__grid { display: flex; flex-direction: column; gap: 12px; }
}

/* ---------- setup ---------- */
.lm-setup { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.lm-setup__main { flex: 999 1 560px; min-width: 0; }
.lm-setup__side { flex: 1 1 300px; min-width: 0; }
.lm-setup__resume { margin-bottom: 28px; }
.lm-setup__form { display: flex; flex-direction: column; gap: 32px; }
.lm-setup__set { margin: 0; padding: 0; border: 0; }
.lm-setup__legend { padding: 0; margin-bottom: 12px; font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.lm-setup__subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lm-setup__subject { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 14px; cursor: pointer; border: 1.5px solid var(--soft-border); background: #FFFFFF; }
.lm-setup__subject.is-on { border: 2px solid var(--navy); background: var(--mist); }
.lm-setup__subject:has(input:checked) { border: 2px solid var(--navy); background: var(--mist); }
.lm-setup__radio { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.lm-setup__subject-text { display: flex; flex-direction: column; gap: 2px; }
.lm-setup__subject-name { font-family: var(--head); font-weight: 800; font-size: 1.0625rem; color: var(--navy); }
.lm-setup__subject-n { font-size: 0.875rem; color: var(--slate2); }
.lm-setup__soon { margin: 12px 0 0; font-size: 0.875rem; color: var(--slate); }
.lm-setup__nojs { margin: 12px 0 0; }
.lm-setup__topics { list-style: none; margin: 0; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--line); background: #FFFFFF; }
.lm-setup__topics.is-error { border: 2px solid var(--err); }
.lm-setup__topic { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.lm-setup__topic--soon { cursor: default; font-size: 0.9375rem; color: var(--slate); }
.lm-setup__check { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.lm-setup__box { flex: none; width: 22px; height: 22px; border-radius: 5px; border: 1.5px dashed var(--soft-border); }
.lm-setup__topic-name { flex: 1 1 auto; font-weight: 600; }
.lm-setup__topic-n { font-size: 0.875rem; color: var(--slate2); }
.lm-setup__topic-soon { font-size: 0.8125rem; white-space: nowrap; }
.lm-setup__error { margin-top: 8px; }
.lm-setup__counts { display: flex; flex-wrap: wrap; gap: 10px; }
.lm-setup__count { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 12px; cursor: pointer; border: 1.5px solid var(--soft-border); background: #FFFFFF; font-size: 0.9375rem; font-weight: 600; }
.lm-setup__count.is-on { border: 2px solid var(--navy); background: var(--mist); }
.lm-setup__count:has(input:checked) { border: 2px solid var(--navy); background: var(--mist); }
.lm-setup__count-radio { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.lm-setup__summary { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 39, 100, 0.07); }
.lm-setup__sum-title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.125rem; color: var(--navy); }
.lm-setup__dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.lm-setup__row { display: flex; justify-content: space-between; gap: 12px; }
.lm-setup__row dt { flex: none; color: var(--slate2); }
.lm-setup__row dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 959.98px) {
  .lm-setup { display: block; }
  .lm-setup__side { margin-top: 26px; }
  .lm-setup__resume { margin-bottom: 22px; }
  .lm-setup__form { gap: 26px; }
  .lm-setup__legend { font-size: 1.125rem; }
  .lm-setup__subjects { grid-template-columns: 1fr; }
  .lm-setup__summary { position: static; padding: 20px; }
}

/* ---------- the quiz ---------- */
.lm-quizbar { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.lm-quizbar__inner { max-width: 1160px; margin: 0 auto; padding: 12px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.lm-quizbar__badge { width: 48px; height: 48px; flex: none; }
.lm-quizbar__title { flex: 1 1 auto; min-width: 0; }
.lm-quizbar__subject { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--slate2); }
.lm-quizbar__name { margin: 2px 0 0; font-family: var(--head); font-weight: 800; font-size: 1.125rem; color: var(--navy); }
.lm-quizbar__progress { flex: 1 1 260px; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.lm-quizbar__count { font-size: 0.875rem; font-weight: 600; color: var(--slate2); }
.lm-quizbar__bar { flex: none; }
.lm-quiz { max-width: 1160px; margin: 0 auto; padding: 40px 32px 64px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.lm-quiz__nojs { flex: 1 1 100%; }
.lm-quiz__card { flex: 999 1 620px; min-width: 0; padding: 36px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 18px 40px rgba(0, 39, 100, 0.07); }
.lm-q__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.lm-q__no { font-family: var(--head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.lm-q__stem { margin: 16px 0 28px; font-family: var(--head); font-weight: 700; font-size: 1.6875rem; line-height: 1.35; color: var(--ink); outline: none; }
.lm-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lm-opt { display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 64px; padding: 12px 18px; border-radius: 14px; text-align: left; font-family: var(--body); font-size: 1.0625rem; font-weight: 500; color: var(--ink); border: 1.5px solid var(--soft-border); background: #FFFFFF; cursor: pointer; }
button.lm-opt:hover { border-color: var(--navy); }
.lm-opt.is-done { cursor: default; }
.lm-opt__letter { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 0.9375rem; background: var(--mist); color: var(--navy); }
.lm-opt__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lm-opt__tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 700; }
.lm-opt__why { font-size: 0.9375rem; font-weight: 400; line-height: 1.55; color: var(--slate2); }
.lm-opt.is-right { border: 2px solid var(--green); background: var(--green-bg); }
.lm-opt.is-right .lm-opt__letter { background: var(--green); color: #FFFFFF; }
.lm-opt.is-right .lm-opt__tag { color: var(--green); }
.lm-opt.is-wrong { border: 2px solid var(--err); background: var(--err-bg); }
.lm-opt.is-wrong .lm-opt__letter { background: var(--err); color: #FFFFFF; }
.lm-opt.is-wrong .lm-opt__tag { color: var(--err); }
.lm-feedback { margin-top: 24px; padding: 20px 22px; border-radius: 16px; outline: none; }
.lm-feedback.is-ok { background: var(--green-bg); border: 1px solid var(--green-line); }
.lm-feedback.is-wrong { background: var(--err-bg); border: 1px solid var(--err-line); }
.lm-feedback__title { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 800; font-size: 1.125rem; }
.lm-feedback.is-ok .lm-feedback__title { color: var(--green); }
.lm-feedback.is-wrong .lm-feedback__title { color: var(--err); }
.lm-feedback__title .lm-icon { flex: none; }
.lm-feedback__why { margin: 8px 0 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.lm-feedback__link { margin: 10px 0 0; }
.lm-quiz__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }
.lm-quiz__left { display: flex; flex-wrap: wrap; gap: 12px; }
.lm-quiz__hint { margin: 10px 0 0; font-size: 0.875rem; color: var(--slate2); }
.lm-quiz__aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lm-qnav { padding: 24px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-qnav__title { margin: 0 0 16px; font-family: var(--head); font-weight: 800; font-size: 1.0625rem; color: var(--navy); }
.lm-qnav__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lm-qnav__item { position: relative; min-height: 44px; border-radius: 10px; font-family: var(--head); font-weight: 700; font-size: 0.9375rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--slate2); }
.lm-qnav__item.is-right { border: 0; background: var(--green); color: #FFFFFF; }
.lm-qnav__item.is-wrong { border: 0; background: var(--err); color: #FFFFFF; }
.lm-qnav__item.is-skipped { border: 1.5px dashed var(--slate); background: #FFFFFF; color: var(--slate2); }
.lm-qnav__item.is-current { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--navy); }
.lm-qnav__mark { display: inline-flex; }
.lm-qnav__mark:empty { display: none; }
.lm-qnav__legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 0.8125rem; color: var(--slate2); }
.lm-qnav__key { display: inline-flex; align-items: center; gap: 6px; }
.lm-qnav__swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; }
.lm-qnav__swatch.is-right { background: var(--green); }
.lm-qnav__swatch.is-wrong { background: var(--err); }
.lm-qnav__swatch.is-skipped { border: 1.5px dashed var(--slate); }
.lm-qnav__swatch.is-current { border: 1.5px solid var(--line); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px var(--navy); }
@media (max-width: 959.98px) {
  .lm-quizbar__inner { max-width: 720px; padding: 10px 14px 12px; gap: 10px; }
  .lm-quizbar__badge { display: none; }
  .lm-quizbar__exit { order: -1; padding: 0; width: 44px; flex: none; }
  .lm-quizbar__name { font-size: 1rem; }
  .lm-quizbar__progress { flex: 1 1 100%; min-width: 0; }
  .lm-quiz { display: block; max-width: 720px; padding: 20px; }
  .lm-quiz__card { padding: 22px 18px; }
  .lm-q__stem { margin: 16px 0 20px; font-size: 1.3125rem; }
  .lm-opts { gap: 10px; }
  .lm-opt { min-height: 56px; padding: 12px 14px; font-size: 1rem; }
  .lm-feedback { margin-top: 18px; padding: 16px; }
  .lm-feedback__title { font-size: 1rem; }
  .lm-feedback__why { font-size: 0.9375rem; }
  .lm-quiz__left { width: 100%; }
  .lm-quiz__right { width: 100%; }
  .lm-quiz__aside { margin-top: 20px; }
}

/* ---------- results ---------- */
.lm-text-green, .lm-text-green:hover { color: var(--green) !important; }
.lm-inline-form { display: contents; }
.lm-result { margin-top: 22px; padding: 36px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 18px 40px rgba(0, 39, 100, 0.07); display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.lm-result__text { flex: 1 1 420px; min-width: 0; }
.lm-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 0.9375rem; color: var(--slate2); }
.lm-result__msg { margin: 14px 0 0; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.lm-result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.lm-result__save { margin-top: 20px; }
.lm-result__panel { margin-top: 28px; padding: 30px 36px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-result__groups { display: flex; flex-direction: column; gap: 16px; }
.lm-result__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.lm-result__gname { flex: 0 1 300px; font-size: 0.9375rem; font-weight: 600; }
.lm-result__gscore { flex: none; min-width: 64px; text-align: right; font-size: 0.9375rem; font-weight: 700; color: var(--slate2); }
.lm-result__missed { margin-top: 28px; }
.lm-result__cards { display: flex; flex-direction: column; gap: 18px; }
.lm-result__hhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lm-result__hlist { list-style: none; margin: 0; padding: 0; }
.lm-result__hrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--line2); font-size: 0.9375rem; }
.lm-result__hwhen { font-weight: 600; }
.lm-result__hscore { font-weight: 700; color: var(--navy); }
.lm-missed { padding: 26px 30px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-missed__label, .lm-review-item__label { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.lm-missed__stem { margin: 8px 0 16px; font-family: var(--head); font-weight: 700; font-size: 1.1875rem; line-height: 1.4; color: var(--ink); }
.lm-missed__pair { display: flex; flex-wrap: wrap; gap: 12px; }
.lm-missed__box { flex: 1 1 260px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 0.9375rem; }
.lm-missed__box--wrong { background: var(--err-bg); border: 1px solid var(--err-line); }
.lm-missed__box--wrong .lm-missed__icon { color: var(--err); }
.lm-missed__box--right { background: var(--green-bg); border: 1px solid var(--green-line); }
.lm-missed__box--right .lm-missed__icon { color: var(--green); }
.lm-missed__icon { flex: none; margin-top: 2px; }
.lm-missed__why { margin: 16px 0 0; font-size: 1rem; line-height: 1.6; color: var(--slate2); }
.lm-missed__why strong { color: var(--ink); }
.lm-missed__why--2 { margin-top: 10px; }
.lm-missed__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.lm-claim [data-claim-busy] .lm-empty__icon { animation: lm-pulse 1.4s ease-in-out infinite; }
@keyframes lm-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .lm-claim [data-claim-busy] .lm-empty__icon { animation: none; } }
@media (max-width: 959.98px) {
  .lm-result { padding: 24px 20px; gap: 20px; flex-direction: column; text-align: center; }
  .lm-result__text { flex: initial; width: 100%; }
  .lm-result__meta { justify-content: center; }
  .lm-result__actions { flex-direction: column; }
  .lm-result__panel { padding: 20px; }
  .lm-result__gname { flex: 1 1 100%; }
  .lm-missed { padding: 18px; }
  .lm-missed__stem { font-size: 1rem; }
  .lm-missed__why { font-size: 0.9375rem; }
}

/* ---------- review ---------- */
.lm-review__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 22px; }
.lm-review__sub { margin: 8px 0 0; font-size: 1rem; color: var(--slate2); }
.lm-review__chips { margin: 22px 0 18px; }
.lm-review__list { display: flex; flex-direction: column; gap: 16px; }
.lm-review-item { padding: 24px 28px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-review-item__label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lm-review-item__label .lm-pill { letter-spacing: normal; text-transform: none; }
.lm-review-item__stem { margin: 8px 0 14px; font-family: var(--head); font-weight: 700; font-size: 1.1875rem; line-height: 1.4; color: var(--ink); }
.lm-ropts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lm-ropt { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line2); }
.lm-ropt.is-right { background: var(--green-bg); border-color: var(--green-line); }
.lm-ropt.is-wrong { background: var(--err-bg); border-color: var(--err-line); }
.lm-ropt__letter { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #FFFFFF; color: var(--navy); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 0.8125rem; }
.lm-ropt.is-right .lm-ropt__letter { background: var(--green); color: #FFFFFF; }
.lm-ropt.is-wrong .lm-ropt__letter { background: var(--err); color: #FFFFFF; }
.lm-ropt__body { display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; line-height: 1.5; }
.lm-ropt__text { font-weight: 600; }
.lm-ropt__tag { font-size: 0.8125rem; font-weight: 700; }
.lm-ropt__why { color: var(--slate2); }
@media (max-width: 959.98px) {
  .lm-review-item { padding: 18px; }
  .lm-review-item__stem { font-size: 1rem; }
}
/* ---------- search ---------- */
.lm-search-form { margin-top: 24px; }
.lm-search__start { margin-top: 8px; }
.lm-search__try { margin-top: 28px; }
.lm-search__popular-title { margin: 0 0 12px; font-family: var(--head); font-weight: 800; font-size: 1.125rem; color: var(--navy); }
.lm-search__popular { display: flex; flex-wrap: wrap; gap: 10px; }
.lm-search__count { margin: 0 0 16px; font-size: 1rem; color: var(--slate2); }
.lm-search__count strong { color: var(--ink); }
.lm-search__group { margin-top: 32px; }
.lm-search__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lm-result-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); text-decoration: none; }
.lm-result-row:hover { color: var(--ink); border-color: var(--soft-border); }
.lm-result-row:hover .lm-result-row__title { text-decoration: underline; }
.lm-result-row .lm-icon { flex: none; }
.lm-result-row__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lm-result-row__type { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.lm-result-row__title { font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.lm-result-row__meta { font-size: 0.875rem; color: var(--slate2); }
@media (max-width: 959.98px) {
  .lm-search-form { margin-top: 16px; }
  .lm-search-form__btn { flex: 1 1 100%; }
  .lm-search__group { margin-top: 24px; }
}

/* ---------- articles ---------- */
.lm-articles__count { margin: 20px 0; font-size: 0.9375rem; color: var(--slate2); }
.lm-articles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.lm-article-page { margin-top: 24px; }
.lm-byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.lm-byline__text { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9375rem; color: var(--slate2); }
.lm-byline__name { font-weight: 700; color: var(--ink); }
.lm-article-page__cover { margin: 28px 0; }
.lm-article-cover--image.lm-article-cover--big { aspect-ratio: 16 / 10; }
.lm-article-page__note { margin: 28px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--notice); font-size: 0.875rem; line-height: 1.55; color: var(--notice-text); }
.lm-article-page__note a { color: var(--notice-text); }
.lm-article-page__share { margin-top: 20px; }
.lm-article-page__sec { margin-top: 40px; }
.lm-article-page__related { display: flex; flex-direction: column; gap: 12px; }
.lm-article-page__more { display: flex; flex-wrap: wrap; gap: 24px; }
@media (max-width: 959.98px) {
  .lm-articles__grid { display: flex; flex-direction: column; gap: 16px; }
  .lm-article-page { margin-top: 16px; }
  .lm-byline .lm-author-photo { width: 40px; height: 40px; }
  .lm-article-page__cover { margin: 20px 0; }
  .lm-article-page__more { flex-direction: column; gap: 16px; }
}

/* Article and page text (the block editor's content). */
.lm-article { color: var(--slate2); font-size: 1.0625rem; line-height: 1.7; }
.lm-article > :first-child { margin-top: 0; }
.lm-article p { margin: 0 0 1.1rem; }
.lm-article h2 { margin: 2rem 0 0.75rem; font-family: var(--head); font-weight: 800; font-size: 1.5rem; line-height: 1.25; color: var(--navy); }
.lm-article h3 { margin: 1.6rem 0 0.6rem; font-family: var(--head); font-weight: 800; font-size: 1.2rem; line-height: 1.3; color: var(--navy); }
.lm-article ul, .lm-article ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.lm-article li { margin: 0.35rem 0; }
.lm-article strong { color: var(--ink); }
.lm-article blockquote { margin: 1.4rem 0; padding: 0.9rem 1.2rem; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 12px 12px 0; }
.lm-article figure { margin: 1.6rem 0; }
.lm-article img { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.lm-article figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate); }
.lm-article .wp-block-table { overflow-x: auto; }
.lm-article table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
.lm-article th, .lm-article td { padding: 0.55rem 0.7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.lm-article a { color: var(--navy); font-weight: 600; }
.lm-article .wp-block-embed iframe, .lm-article iframe { max-width: 100%; }
@media (max-width: 959.98px) { .lm-article { font-size: 1rem; } .lm-article h2 { font-size: 1.3rem; } }

/* ---------- policies and plain lists ---------- */
.lm-policy__updated { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.9375rem; color: var(--slate2); }
.lm-policy__toc { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line2); }
.lm-policy__toc-title { margin: 0 0 8px; font-family: var(--head); font-weight: 800; font-size: 0.9375rem; color: var(--navy); }
.lm-policy__toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
.lm-policy__body { font-size: 1.0625rem; line-height: 1.7; color: var(--slate2); }
.lm-policy__body h2, .lm-policy__h2 { margin: 28px 0 10px; font-family: var(--head); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--navy); scroll-margin-top: 16px; }
.lm-policy__body p { margin: 0; }
.lm-policy__body p + p, .lm-policy__body ul, .lm-policy__body ol { margin-top: 12px; }
.lm-policy__body a { color: var(--navy); font-weight: 600; }
.lm-policy__others { margin: 32px 0 0; font-size: 0.9375rem; color: var(--slate2); }
.lm-plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lm-plain-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); text-decoration: none; }
.lm-plain-row:hover { color: var(--ink); border-color: var(--soft-border); }
.lm-plain-row__title { font-family: var(--head); font-weight: 700; font-size: 1rem; }
.lm-plain-row__meta { font-size: 0.875rem; color: var(--slate2); }
.lm-unavailable { max-width: 720px; margin: 0 auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--soft-border); font-family: var(--head); font-weight: 700; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
@media (max-width: 959.98px) {
  .lm-policy__body h2, .lm-policy__h2 { font-size: 1.25rem; }
}

/* ---------- about ---------- */
.lm-about__lead { margin: 12px 0 0; max-width: 760px; font-size: 1.1875rem; line-height: 1.6; color: var(--slate2); }
.lm-about__mission { position: relative; overflow: hidden; padding: 44px 48px 56px; border-radius: 26px; background: var(--navy); color: #FFFFFF; }
.lm-about__eyebrow { margin: 0 0 12px; font-family: var(--head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-red); }
.lm-about__statement { margin: 0; max-width: 820px; font-family: var(--head); font-weight: 800; font-size: 2.125rem; line-height: 1.25; }
.lm-about__text { margin: 16px 0 0; max-width: 760px; font-size: 1.125rem; line-height: 1.65; color: var(--on-navy-text); }
.lm-about__sec { margin-top: 48px; }
.lm-about__offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lm-offer { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lm-offer:hover { color: var(--ink); border-color: var(--soft-border); }
.lm-offer:hover .lm-offer__title { text-decoration: underline; }
.lm-offer__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--mist); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.lm-offer__title { font-family: var(--head); font-weight: 800; font-size: 1.125rem; color: var(--navy); }
.lm-offer__text { font-size: 0.9375rem; line-height: 1.5; color: var(--slate2); }
.lm-about__founders { margin-top: 56px; }
.lm-about__h2 { margin: 0 0 18px; font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--navy); }
.lm-about__people { display: flex; flex-direction: column; gap: 20px; }
.lm-person { display: flex; align-items: flex-start; gap: 32px; padding: 28px 32px; border-radius: 22px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-person__photo { flex: none; width: 160px; }
.lm-person__name { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.625rem; color: var(--navy); }
.lm-person__role { margin: 6px 0 0; font-family: var(--head); font-weight: 700; font-size: 0.9375rem; color: var(--red); }
.lm-person__known { font-family: var(--body); font-weight: 500; color: var(--slate2); }
.lm-person__bio { margin: 14px 0 0; max-width: 760px; font-size: 1.0625rem; line-height: 1.7; color: var(--slate2); }
.lm-about__contact { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; }
.lm-about__box { flex: 1 1 300px; padding: 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
.lm-about__box--mist { background: var(--mist); }
.lm-about__box--navy { background: var(--navy); color: #FFFFFF; }
.lm-about__box--line { border: 1px solid var(--line); }
.lm-about__box-title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.25rem; }
.lm-about__box-text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--slate2); }
.lm-about__social { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9375rem; }
.lm-about__social a { color: #FFFFFF; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.lm-about__social a:hover { color: #FFFFFF; }
@media (max-width: 959.98px) {
  .lm-about__lead { font-size: 1rem; }
  .lm-about__mission { padding: 26px 22px 34px; border-radius: 20px; }
  .lm-about__statement { font-size: 1.5rem; }
  .lm-about__text { font-size: 1rem; }
  .lm-about__ecg { height: 26px !important; }
  .lm-about__sec { margin-top: 32px; }
  .lm-about__offer { display: flex; flex-direction: column; gap: 12px; }
  .lm-about__founders { margin-top: 32px; }
  .lm-about__h2 { font-size: 1.5rem; }
  .lm-about__people { gap: 14px; }
  .lm-person { flex-direction: column; gap: 16px; padding: 20px; }
  .lm-person__photo { width: 120px; }
  .lm-person__name { font-size: 1.375rem; }
  .lm-about__contact { margin-top: 32px; }
}

/* ---------- support ---------- */
.lm-support__head { display: flex; align-items: flex-start; gap: 22px; margin-top: 28px; }
.lm-support__icon { flex: none; display: flex; width: 64px; height: 64px; border-radius: 18px; background: var(--red); color: #FFFFFF; align-items: center; justify-content: center; }
.lm-support__lead { margin: 14px 0 0; max-width: 680px; font-size: 1.125rem; line-height: 1.6; color: var(--slate2); }
.lm-support { padding: 36px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 39, 100, 0.07); }
.lm-support__set { margin: 0; padding: 0; border: 0; }
.lm-support__legend { padding: 0; font-family: var(--head); font-weight: 800; font-size: 1.75rem; color: var(--navy); }
.lm-support__regions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.lm-region { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; min-height: 92px; padding: 18px 22px; border-radius: 18px; cursor: pointer; border: 1.5px solid var(--soft-border); background: #FFFFFF; }
.lm-region.is-on { border: 2px solid var(--navy); background: var(--mist); }
.lm-region:has(input:checked) { border: 2px solid var(--navy); background: var(--mist); }
.lm-region:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; }
.lm-region__dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--radio); background: #FFFFFF; }
.lm-region.is-on .lm-region__dot { border: 7px solid var(--navy); }
.lm-region:has(input:checked) .lm-region__dot { border: 7px solid var(--navy); }
.lm-region__text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.lm-region__title { font-family: var(--head); font-weight: 800; font-size: 1.1875rem; color: var(--navy); }
.lm-region__sub { font-size: 0.9375rem; color: var(--slate2); }
.lm-support__panel { margin-top: 28px; padding-top: 10px; border-top: 1px solid var(--line2); }
/* Only the chosen place's panel shows: with :has() this works without scripts; otherwise the script sets data-from. */
.lm-support[data-from="sl"] [data-panel="intl"], .lm-support[data-from="intl"] [data-panel="sl"] { display: none; }
@supports selector(:has(*)) {
  .lm-support [data-panel] { display: block; }
  .lm-support:has(#from-sl:checked) [data-panel="intl"], .lm-support:has(#from-intl:checked) [data-panel="sl"] { display: none; }
}
.lm-om { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 18px; padding: 22px 24px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line2); }
.lm-om__text { flex: 1 1 260px; min-width: 0; }
.lm-om__label { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--slate2); }
.lm-om__number { margin: 6px 0 0; font-family: var(--head); font-weight: 800; font-size: 2rem; letter-spacing: 0.04em; color: var(--navy); overflow-wrap: anywhere; }
.lm-om__number--missing { font-size: 1.875rem; }
.lm-om__fallback { margin-top: 14px; }
.lm-om__input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--field); font-family: var(--head); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; color: var(--navy); background: #FFFFFF; }
.lm-support__wa { margin-top: 18px; }
.lm-support__thanks { margin: 28px 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--slate2); }
@media (max-width: 959.98px) {
  .lm-support__head { flex-direction: column; gap: 16px; margin-top: 18px; }
  .lm-support__icon { width: 54px; height: 54px; }
  .lm-support__icon svg { width: 28px; height: 28px; }
  .lm-support__lead { font-size: 1rem; }
  .lm-support { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .lm-support__legend { font-size: 1.375rem; }
  .lm-support__regions { flex-direction: column; gap: 12px; margin-top: 16px; }
  .lm-region { flex: initial; width: 100%; min-height: 76px; gap: 14px; padding: 14px 16px; border-radius: 16px; }
  .lm-region__title { font-size: 1.0625rem; }
  .lm-region__sub { font-size: 0.875rem; }
  .lm-support__panel { margin-top: 22px; padding-top: 8px; }
  .lm-om { margin-top: 14px; padding: 18px; }
  .lm-om__number { font-size: 1.625rem; }
  .lm-om__number--missing { font-size: 1.375rem; }
  .lm-support__wa { margin-top: 14px; }
  .lm-support__thanks { margin-top: 22px; }
}
/* ---------- account screens and My Learning ---------- */

/* Account screens: a card on a soft page (desktop); the plain page on phones. */
.lm-auth { padding: 56px 32px 80px; }
.lm-auth__card { width: 100%; max-width: 520px; margin: 0 auto; padding: 36px 40px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 39, 100, 0.08); }
.lm-auth__card--wide { max-width: 620px; }
.lm-auth__sub { margin: 10px 0 0; font-size: 1rem; line-height: 1.6; color: var(--slate2); }
.lm-auth__sub strong { color: var(--ink); overflow-wrap: anywhere; }
.lm-auth__form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.lm-auth__form--tight { gap: 16px; }
.lm-auth__alt { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line2); font-size: 0.9375rem; color: var(--slate2); }
.lm-auth__note { margin: 20px 0 0; font-size: 0.9375rem; color: var(--slate2); }
.lm-auth__terms { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--slate2); }
.lm-auth__actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.lm-auth__actions--row { flex-direction: row; flex-wrap: wrap; }
.lm-auth__block { margin-top: 24px; }
.lm-auth__msg { margin-top: 16px; }
.lm-auth__msg--18 { margin-top: 18px; }
.lm-auth__back { margin-bottom: 18px; }
.lm-auth__wait { margin: 8px 0 0; font-size: 0.875rem; color: var(--slate2); }
.lm-auth__resend { margin: 0; }
@media (max-width: 959.98px) {
  .lm-auth { padding: 0 0 8px; }
  .lm-auth__card { padding: 24px 20px 40px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
}

/* Sign-out forms hold a single button. */
.lm-signout { margin: 0; }
.lm-signout--btn { display: flex; }

/* ---------- My Learning layout ---------- */
.lm-dash { width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 32px 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.lm-dash__side { flex: 1 1 220px; min-width: 0; max-width: 280px; padding: 14px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-dash__side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lm-dash__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 0.9375rem; line-height: normal; text-align: left; text-decoration: none; cursor: pointer; }
.lm-dash__item:hover { color: var(--ink); }
.lm-dash__item[aria-current], .lm-dash__item[aria-current]:hover { background: var(--navy); color: #FFFFFF; }
.lm-dash__item--out, .lm-dash__item--out:hover { color: var(--err); }
.lm-dash__item .lm-icon { flex: none; }
.lm-dash__signout { margin: 0; }
.lm-dash__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lm-dash__chips { display: none; }
.lm-dash__pair { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
@media (max-width: 959.98px) {
  .lm-dash { display: block; max-width: 720px; padding: 22px 20px 40px; }
  .lm-dash__side { display: none; }
  .lm-dash__main { gap: 20px; }
  .lm-dash__chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; }
  .lm-dash__pair { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; }
}

/* Cards */
.lm-dcard { padding: 26px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-dcard--half { flex: 1 1 380px; min-width: 0; }
.lm-dcard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lm-dcard__title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
@media (max-width: 959.98px) {
  .lm-dcard { padding: 18px; border-radius: 18px; }
  .lm-dcard--half { flex: initial; }
  .lm-dcard__title { font-size: 1.125rem; }
}

/* Get started */
.lm-start { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lm-start li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line2); }
.lm-start__title { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 0.9375rem; color: var(--navy); }
.lm-start__num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; }
@media (max-width: 959.98px) { .lm-start { grid-template-columns: 1fr; } }

/* Continue learning */
.lm-cont { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; border-radius: 22px; background: var(--navy); color: #FFFFFF; }
.lm-cont__thumb { position: relative; flex: 0 1 260px; min-width: 200px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy2); display: flex; align-items: center; justify-content: center; }
.lm-cont__thumb-title { position: absolute; left: 14px; top: 12px; right: 14px; font-family: var(--head); font-weight: 800; font-size: 1.125rem; }
.lm-cont__play { width: 50px; height: 50px; border-radius: 50%; background: #FFFFFF; color: var(--red); display: flex; align-items: center; justify-content: center; }
.lm-cont__text { flex: 1 1 300px; min-width: 0; }
.lm-cont__eyebrow { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-red); }
.lm-cont__title { margin: 8px 0 0; font-family: var(--head); font-weight: 800; font-size: 1.5rem; }
.lm-cont__meta { margin: 4px 0 0; font-size: 0.9375rem; color: var(--on-navy-text); }
.lm-cont__bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.lm-cont__bar span { flex: none; font-size: 0.875rem; color: var(--on-navy-text); }
.lm-cont-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lm-cont-empty__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--mist); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.lm-cont-empty__text { flex: 1 1 260px; min-width: 0; }
.lm-cont-empty__title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.125rem; color: var(--navy); }
.lm-cont-empty__body { margin: 4px 0 0; font-size: 0.9375rem; color: var(--slate2); }
@media (max-width: 959.98px) {
  .lm-cont { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; border-radius: 18px; }
  .lm-cont__thumb { display: none; }
  .lm-cont__text { flex: 0 0 auto; }
  .lm-cont__title { font-size: 1.3125rem; }
}

/* Numbers */
.lm-stats { display: flex; flex-wrap: wrap; gap: 20px; }
.lm-stats__tile { flex: 1 1 160px; padding: 22px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-stats__num { margin: 0; font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--navy); }
.lm-stats__label { margin: 2px 0 0; font-size: 0.875rem; line-height: 1.3; font-weight: 600; color: var(--slate2); }
.lm-stats__hint { margin: 4px 0 0; font-size: 0.75rem; color: var(--slate); }
@media (max-width: 959.98px) {
  .lm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lm-stats__tile { padding: 14px 12px; border-radius: 14px; }
  .lm-stats__num { font-size: 1.375rem; }
  .lm-stats__label { font-size: 0.75rem; }
  .lm-stats__hint { display: none; }
}

/* Progress by subject */
.lm-prog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lm-prog a, .lm-prog a:hover { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.lm-prog__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 0.9375rem; }
.lm-prog__name { font-weight: 700; }
.lm-prog__count { color: var(--slate2); }

/* Saved: tabs and rows */
.lm-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--mist); }
.lm-tabs__tab, .lm-tabs__tab:hover { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--slate2); font-family: var(--head); font-weight: 700; font-size: 0.8125rem; text-decoration: none; cursor: pointer; }
.lm-tabs__tab.is-on, .lm-tabs__tab[aria-selected="true"] { background: #FFFFFF; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.lm-saved { list-style: none; margin: 0; padding: 0; }
.lm-saved li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line2); }
.lm-saved__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.lm-saved__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lm-saved__title { font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.lm-saved__meta { font-size: 0.8125rem; color: var(--slate); }
.lm-saved__missing { flex: none; font-size: 0.8125rem; font-weight: 600; color: var(--amber); }
.lm-saved__rm { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lm-saved__rm[aria-busy="true"] { cursor: progress; opacity: 0.6; }
@media (max-width: 959.98px) { .lm-saved__icon { display: none; } }

/* Quiz history: a table on desktop, a list on phones */
.lm-hist-wrap { overflow-x: auto; }
.lm-hist { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.lm-hist thead tr { text-align: left; color: var(--slate2); }
.lm-hist th { padding: 10px 0; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lm-hist .lm-hist__actcol { font-size: inherit; letter-spacing: normal; text-transform: none; }
.lm-hist tbody tr { border-top: 1px solid var(--line2); }
.lm-hist td { padding: 13px 0; }
.lm-hist__quiz { font-weight: 600; }
.lm-hist__muted { color: var(--slate2); }
.lm-hist__score { font-weight: 700; color: var(--navy); }
.lm-hist__act { text-align: right; }
.lm-hist__act a { font-family: var(--head); font-weight: 700; font-size: 0.875rem; }
.lm-hist-list { list-style: none; margin: 0; padding: 0; }
.lm-hist-list a, .lm-hist-list a:hover { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line2); color: var(--ink); text-decoration: none; }
.lm-hist-list__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lm-hist-list__title { font-weight: 700; font-size: 0.9375rem; }
.lm-hist-list__meta { font-size: 0.8125rem; color: var(--slate); }
.lm-hist-list__pct { font-family: var(--head); font-weight: 800; font-size: 1rem; color: var(--navy); }
.lm-hist-list .lm-icon { flex: none; }

/* Account summary */
.lm-acct { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lm-acct__initials { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; }
.lm-acct__text { flex: 1 1 220px; min-width: 0; }
.lm-acct__name { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.0625rem; color: var(--ink); }
.lm-acct__meta { margin: 4px 0 0; font-size: 0.875rem; color: var(--slate2); overflow-wrap: anywhere; }
.lm-acct__ok { color: var(--green); font-weight: 700; }
.lm-acct__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 959.98px) { .lm-acct__btns { flex-direction: column; } }

/* ---------- Account settings ---------- */
.lm-pf { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.lm-pf__sec { padding: 28px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.lm-pf__sec--danger { border-color: var(--err-line); }
.lm-pf__title { margin: 0 0 14px; font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.lm-pf__sec--danger .lm-pf__title { color: var(--err); }
.lm-pf__dl { margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.lm-pf__dl div { display: flex; flex-direction: column; gap: 2px; }
.lm-pf__dl dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.lm-pf__dl dd { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.lm-pf__form { display: flex; flex-direction: column; gap: 16px; }
.lm-pf__save { align-self: flex-start; }
.lm-pf__email { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lm-pf__addr { margin: 0; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.lm-pf__pill { margin: 6px 0 0; }
.lm-pf__msg { margin-top: 16px; }
.lm-pf__text { margin: 0 0 14px; font-size: 0.9375rem; line-height: 1.55; color: var(--slate2); }
.lm-pf__dform { display: flex; flex-direction: column; gap: 20px; }
.lm-pf__dform .lm-dialog__text { margin: 0; }
.lm-pf__dform .lm-dialog__text strong { color: var(--ink); }
@media (max-width: 959.98px) {
  .lm-pf { gap: 16px; margin-top: 18px; }
  .lm-pf__sec { padding: 20px; }
  .lm-pf__title { font-size: 1.125rem; }
  .lm-pf__save { align-self: auto; }
  .lm-pf__dform { gap: 16px; }
}

/* ---------- 1.2.0: Exam Sheets, note reading page, Photo Library ---------- */

.lm-js-only { display: none; }
.lm-js .lm-js-only { display: inline-flex; }
.lm-catalog__topic { margin: 14px 0 0; display: flex; }
.lm-catalog__sort--320 { flex: 0 1 360px; }

/* Note covers: show the whole first page (slides are landscape), never cropped. */
.lm-note-cover--image { background: var(--soft); }
.lm-note-cover--image img { object-fit: contain; }

/* Exam sheet cards: the sheet itself, whole. */
.lm-sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; align-items: start; }
.lm-sheet-card { min-width: 0; }
.lm-sheet-card__link { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; border-radius: 16px; }
.lm-sheet-card__frame { display: block; padding: 10px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); transition: border-color .15s ease, box-shadow .15s ease; }
.lm-sheet-card__frame img { display: block; width: 100%; height: auto; border-radius: 6px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(11, 21, 48, .08); }
.lm-sheet-card__link:hover .lm-sheet-card__frame { border-color: var(--soft-border); box-shadow: 0 6px 18px rgba(0, 39, 100, .10); }
.lm-sheet-card__link:hover .lm-sheet-card__title { color: var(--red); }
.lm-sheet-card__title { margin: 6px 0 0; font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.lm-sheet-card__meta { font-size: 0.84375rem; color: var(--slate); line-height: 1.4; }
.lm-sheet-card__part { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--slate2); font-size: 0.78125rem; font-weight: 600; }
@media (max-width: 959.98px) {
  .lm-sheet-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 22px 14px; }
  .lm-sheet-card__frame { padding: 6px; border-radius: 12px; }
  .lm-sheet-card__title { font-size: 0.9375rem; }
}

/* Sheet and note pages */
.lm-sheet-head__where { margin: 18px 0 0; font-size: 0.9375rem; color: var(--slate); font-weight: 600; }
.lm-sheet-head__where a { color: var(--slate2); }
.lm-sheet-head__part { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); color: var(--slate2); font-size: 0.8125rem; }
.lm-note-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.lm-sheet-view { margin: 0; }
.lm-sheet-view__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.lm-sheet-view__meta { font-size: 0.875rem; color: var(--slate); }
.lm-sheet-view__frame { display: block; padding: 12px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); cursor: zoom-in; }
.lm-sheet-view__frame img, .lm-sheet-view__plain { display: block; width: 100%; height: auto; border-radius: 6px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(11, 21, 48, .10); }
.lm-sheet-view__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.lm-sheet-series { margin: 32px 0 0; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); background: #FFFFFF; }
.lm-sheet-series__h { margin: 0 0 8px; font-family: var(--head); font-size: 1rem; font-weight: 700; color: var(--navy); }
.lm-sheet-series ol { margin: 0; padding-left: 20px; line-height: 1.8; }
.lm-sheet-related { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; }
.lm-sheet-more { margin: 48px 0 0; }
@media (max-width: 959.98px) {
  .lm-sheet-view__frame { padding: 4px; border-radius: 10px; }
  .lm-sheet-view__actions { flex-direction: column; }
  .lm-sheet-series { padding: 14px 16px; }
}

/* PDF reader */
.lm-reader { margin: 0; border-radius: 18px; background: var(--mist); border: 1px solid var(--line); overflow: hidden; }
.lm-reader__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.lm-reader__count { font-family: var(--head); font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.lm-reader__tools { display: flex; align-items: center; gap: 8px; }
.lm-reader__level, .lm-viewer__level { min-width: 52px; text-align: center; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lm-reader__pages { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px; overflow-x: auto; }
.lm-reader__pages.is-zoomed { align-items: flex-start; }
.lm-reader__page { flex: none; max-width: none; background: #FFFFFF; box-shadow: 0 1px 4px rgba(11, 21, 48, .14); }
.lm-reader__page canvas { display: block; width: 100%; height: 100%; }
.lm-reader__first { display: block; width: 100%; max-width: 1000px; height: auto; background: #FFFFFF; box-shadow: 0 1px 4px rgba(11, 21, 48, .14); }
.lm-reader__status { margin: 0; color: var(--slate); font-size: 0.9375rem; text-align: center; }
.lm-reader__status.is-error { color: var(--err); font-weight: 600; }
.lm-reader__status:empty { display: none; }
.lm-reader__fallback { margin: 0; padding: 16px; }
@media (max-width: 959.98px) {
  .lm-reader { border-radius: 0; border-left: 0; border-right: 0; }
  .lm-reader__pages { padding: 8px; gap: 8px; }
}

/* Full-screen viewers (sheet zoom and photos) */
.lm-viewer { position: fixed; inset: 0; z-index: 300; background: rgba(6, 14, 34, .94); }
.lm-viewer__box { position: absolute; inset: 0; display: flex; flex-direction: column; color: #FFFFFF; }
.lm-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: rgba(0, 0, 0, .35); }
.lm-viewer__title { font-family: var(--head); font-weight: 700; font-size: 1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-viewer__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.lm-icon-btn--dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #FFFFFF; }
.lm-icon-btn--dark:hover { background: rgba(255, 255, 255, .2); color: #FFFFFF; }
.lm-viewer :focus-visible { outline-color: #FFFFFF; }
.lm-viewer__stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 8px; touch-action: pan-x pan-y pinch-zoom; cursor: zoom-in; }
.lm-viewer__stage.is-zoomed { place-items: start; cursor: grab; }
.lm-viewer__stage.is-dragging { cursor: grabbing; user-select: none; }
.lm-viewer__stage img { display: block; max-width: none; background: #FFFFFF; }
.lm-viewer__stage--photo { cursor: default; }
.lm-viewer__stage--photo img, .lm-viewer__stage--photo video { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; background: transparent; border-radius: 6px; }
.lm-viewer__caption { margin: 0; padding: 10px 18px 18px; text-align: center; color: #DCE3EE; font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 959.98px) {
  .lm-viewer__bar { padding: 8px; }
  .lm-viewer__tools { gap: 2px; }
  .lm-viewer__tools .lm-icon-btn { width: 40px; height: 40px; }
  .lm-viewer__title { font-size: 0.875rem; }
  .lm-viewer__level { min-width: 40px; font-size: 0.8125rem; }
}

/* Photo Library: moving strips */
.lm-strips { position: relative; margin: 0 -32px 40px; padding: 4px 0; overflow: hidden; }
.lm-strips__rows { display: flex; flex-direction: column; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lm-strip { overflow: hidden; }
.lm-strip__track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0; list-style: none; animation: lm-strip var(--dur, 60s) linear infinite; will-change: transform; }
.lm-strip--right .lm-strip__track { animation-direction: reverse; }
.lm-strips.is-paused .lm-strip__track, .lm-strips.is-offscreen .lm-strip__track, .lm-strips:hover .lm-strip__track { animation-play-state: paused; }
.lm-strip__tile { flex: none; height: 210px; }
.lm-strip__tile a { position: relative; display: block; height: 100%; border-radius: 16px; overflow: hidden; }
.lm-strip__tile img { display: block; height: 100%; width: auto; max-width: none; }
.lm-strip__play, .lm-photo__play { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 39, 100, .85); color: #FFFFFF; }
.lm-strips__pause { position: absolute; right: 44px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 0; background: rgba(0, 39, 100, .88); color: #FFFFFF; font-family: var(--head); font-weight: 700; font-size: 0.8125rem; cursor: pointer; }
.lm-strips__pause:hover { background: var(--navy); }
@keyframes lm-strip { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (max-width: 959.98px) {
  .lm-strips { margin: 0 -16px 28px; }
  .lm-strip__tile { height: 130px; }
  .lm-strips__rows { gap: 10px; }
  .lm-strip__track { gap: 10px; }
  .lm-strips__pause { right: 16px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-strip__track { animation: none; }
  .lm-strips__pause { display: none; }
  .lm-sheet-card__frame { transition: none; }
}

/* Photo Library: grid */
.lm-photo-browse .lm-chips { margin: 0 0 12px; }
.lm-photo-album__desc { margin: 0 0 12px; color: var(--slate2); max-width: 70ch; }
.lm-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 20px; margin: 16px 0 0; padding: 0; list-style: none; }
.lm-photo { min-width: 0; }
.lm-photo__link { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.lm-photo__frame { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--mist); }
.lm-photo__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.lm-photo__link:hover img { transform: scale(1.03); }
.lm-photo__title { font-family: var(--head); font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.lm-photo__date { font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 959.98px) {
  .lm-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .lm-photo__frame { border-radius: 12px; }
  .lm-photo__title { font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) { .lm-photo__frame img { transition: none; } .lm-photo__link:hover img { transform: none; } }

/* Articles: wide tables scroll inside the article on phones; block captions match figure captions. */
.lm-article .wp-block-table { overflow-x: auto; margin: 1.2rem 0; }
.lm-article .wp-block-table table { margin: 0; }
.lm-article thead th { background: var(--mist); font-family: var(--head); }
.lm-article .wp-element-caption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate); }
/* 1.3.0: LansMed Challenge (progress rows on /challenge/ and My Learning) */
.lm-ch { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 18px; }
.lm-ch__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; }
.lm-ch__label { font-weight: 700; }
.lm-ch__count { font-size: 0.875rem; font-weight: 700; color: var(--slate2); font-variant-numeric: tabular-nums; }
.lm-ch__count--done { color: var(--green); }
.lm-ch__next { margin: 8px 0 0; }
.lm-ch__intro { margin: 4px 0 12px; }
.lm-ch__lead { font-size: 1.0625rem; margin: 12px 0 0; }
.lm-ch__page { display: grid; gap: 24px; }
.lm-ch__rules { margin: 12px 0 0; padding-left: 1.25em; display: grid; gap: 8px; }
