/* Training academy, online tests and the dealer family page */
.ac-eyebrow { margin: 0 0 6px; font: 600 13px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-amber, #FAAE43); }
.ac-title { margin: 8px 0 18px; }
.ac-narrow { max-width: 820px; }
.ac-narrow > .contact-card { margin-bottom: 18px; }
.ac-signed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; color: rgba(255, 255, 255, .85); font-size: 14px; }
.ac-signed img { height: 34px; width: auto; }
.ac-signed__chip { display: inline-flex; padding: 5px 10px; border-radius: 10px; background: #fff; }
.ac-signed__amp { font-weight: 700; }

.ac-how { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ac-how li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-lg, 14px); background: #fff; border: 1px solid var(--line-2, #e5e9f2); }
.ac-how h2, .ac-how h3 { margin: 0 0 4px; font-size: 1.02rem; }
.ac-how p { margin: 0; font-size: 14px; color: var(--muted); }
.ac-how__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 15px var(--font-head); }
.ac-how--stack { grid-template-columns: 1fr; margin-bottom: 16px; }

.ac-mine { margin-bottom: 30px; }
.ac-mine__list { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-cert-chip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #e8f6ee; color: #0d6b3f; text-decoration: none; }
.ac-cert-chip svg { width: 26px; height: 26px; flex: none; }
.ac-cert-chip small { display: block; color: #3d7a5b; }

.ac-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.ac-track { padding: 18px; border-radius: var(--radius-lg, 14px); background: #fff; border: 1px solid var(--line-2, #e5e9f2); box-shadow: var(--shadow-sm); scroll-margin-top: 110px; }
.ac-track header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ac-track h3, .ac-track h4 { margin: 0; font-size: 1.1rem; }
.ac-group { margin: 28px 0 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); }
.ac-group:first-of-type { margin-top: 8px; }
.ac-track__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eef2fb; color: var(--navy-700); }
.ac-track__icon svg { width: 22px; height: 22px; }
.ac-track__courses { display: grid; gap: 10px; }
.ac-course { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2, #e5e9f2); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.ac-course:hover { border-color: var(--orange); transform: translateY(-1px); }
.ac-course strong { display: block; margin: 6px 0 2px; line-height: 1.3; }
.ac-course small { color: var(--muted); }
.ac-level { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e8f6ee; color: #0d6b3f; font: 600 12px var(--font-head); }
.ac-level--advanced { background: #fdf3df; color: #92400e; }
.ac-level--hero { margin-bottom: 8px; }
.ac-done { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-weight: 600; font-size: 13px; color: #0d6b3f; }
.ac-done svg { width: 16px; height: 16px; }
.ac-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.ac-verify__form { display: flex; gap: 8px; }
.ac-verify__form input { flex: 1; min-width: 0; text-transform: uppercase; }

.ac-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.ac-side { display: grid; gap: 16px; position: sticky; top: 110px; }
.ac-lead { font-size: 1.08rem; }
.ac-main h2 { margin: 28px 0 12px; font-size: 1.25rem; }
.ac-checks { list-style: none; padding: 0; margin: 0 0 14px; }
.ac-checks li { display: flex; gap: 10px; padding: 6px 0; }
.ac-checks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #138A52; }
.ac-modules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ac-modules a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2, #e5e9f2); color: inherit; text-decoration: none; }
.ac-modules a:hover { border-color: var(--orange); }
.ac-modules__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-700); color: #fff; font: 700 14px var(--font-head); }
.ac-modules__body { flex: 1; min-width: 0; }
.ac-modules__body small { display: block; color: var(--muted); }
.ac-modules__min { flex: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.ac-sources { font-size: 14px; }

.ac-read { max-width: 820px; }
.ac-toc { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; margin-bottom: 26px; border-radius: 12px; background: var(--tint, #f6f8fc); border: 1px solid var(--line-2, #e5e9f2); font-size: 14.5px; }
.ac-lesson { margin-bottom: 34px; scroll-margin-top: 110px; }
.ac-lesson h2 { font-size: 1.4rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-amber, #FAAE43); }
.ac-lesson h4 { margin: 20px 0 6px; font-size: 1.05rem; color: var(--navy-700); }
.ac-lesson table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.ac-lesson th, .ac-lesson td { padding: 8px 10px; border: 1px solid var(--line-2, #e5e9f2); text-align: start; vertical-align: top; }
.ac-lesson th { background: var(--tint, #f6f8fc); }
.ac-keypoints, .ac-practice { padding: 20px; margin-bottom: 22px; border-radius: var(--radius-lg, 14px); background: #fff; border: 1px solid var(--line-2, #e5e9f2); scroll-margin-top: 110px; }
.ac-keypoints { background: #f3faf6; border-color: #cfe9da; }
.ac-keypoints h2, .ac-practice h2 { margin: 0 0 10px; font-size: 1.15rem; }
.ac-q { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line-2, #e5e9f2); border-radius: 12px; background: #fff; min-width: 0; }
.ac-q legend { float: inline-start; width: 100%; padding: 0; margin-bottom: 4px; font-weight: 600; }
.ac-q legend + * { clear: both; }
.ac-q legend small { display: block; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ac-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-top: 8px; border-radius: 10px; border: 1px solid var(--line-2, #e5e9f2); cursor: pointer; }
.ac-opt:hover { border-color: var(--navy-700); }
.ac-opt input { margin-top: 4px; flex: none; accent-color: var(--orange); }
.ac-opt:has(input:checked) { border-color: var(--orange); background: #fff7f3; }
.ac-opt.is-right { border-color: #138A52; background: #e8f6ee; }
.ac-opt.is-wrong { border-color: #b42318; background: #fdecea; }
.ac-explain { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--tint, #f6f8fc); font-size: 14px; }
.ac-practice__score { margin: 12px 0 0; font-weight: 700; }
.ac-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 10px; }

.ac-testcard p { margin: 0 0 12px; }
.ac-history { list-style: none; padding: 0; margin: 0; }
.ac-history li { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-2, #e5e9f2); }
.ac-history li span:first-child { flex: 1; color: var(--muted); }
.ac-pill { padding: 2px 10px; border-radius: 999px; background: #f1f2f5; color: var(--muted); font-size: 12px; font-weight: 600; }
.ac-pill--pass { background: #e8f6ee; color: #0d6b3f; }

/* The timed paper */
.ac-testbar { position: sticky; top: 0; z-index: 30; background: var(--navy-900, #0b2a55); color: #fff; }
.ac-testbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-block: 10px; font-size: 14px; }
.ac-testbar__in strong { flex: 1; min-width: 180px; }
.ac-testbar__time b { font: 700 18px var(--font-head); font-variant-numeric: tabular-nums; }
.ac-testbar.is-low .ac-testbar__time b { color: #ffb4a8; }
.ac-paper { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ac-paper__mark { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-repeat: repeat; }
.ac-paper__shield, .ac-paper__print { display: none; }
body.is-shielded .ac-paper > form { filter: blur(12px); opacity: .25; pointer-events: none; }
body.is-shielded .ac-paper__shield { display: block; position: sticky; top: 40vh; z-index: 3; margin: 0 auto; max-width: 420px; padding: 14px 18px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; font-weight: 600; }
.page-academy-test .action-bar, .page-academy-test .fab, .page-academy-test .compare-tray { display: none !important; }
@media print {
  .ac-paper > :not(.ac-paper__print) { display: none !important; }
  .ac-paper__print { display: block; padding: 20px; border: 1px solid #ccc; }
}

.ac-result { text-align: center; }
.ac-result h2 { margin: 12px 0 6px; }
.ac-result .btn { margin: 6px 4px 0; }
.ac-result--pass { border-color: #9fd6b7; background: #f3faf6; }
.ac-score { --pct: 0; width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--orange) calc(var(--pct) * 1%), #e5e9f2 0); position: relative; }
.ac-score::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.ac-score strong { position: relative; font: 700 26px var(--font-head); }
.ac-result--pass .ac-score { background: conic-gradient(#138A52 calc(var(--pct) * 1%), #e5e9f2 0); }
.ac-result--pass .ac-score::before { background: #f3faf6; }

/* Dealer family page */
.pg-band { background: var(--tint, #f6f8fc); border-block: 1px solid var(--line-2, #e5e9f2); }
.fam-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.fam-hero__ghost, .fam-hero__ghost:hover { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.fam-status { margin-bottom: 20px; }
.fam-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.fam-benefit { padding: 20px; border-radius: var(--radius-lg, 14px); background: #fff; border: 1px solid var(--line-2, #e5e9f2); box-shadow: var(--shadow-sm); }
.fam-benefit h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.fam-benefit p { margin: 0; font-size: 14.5px; color: var(--muted); }
.fam-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.fam-two--form { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
.fam-agreement { max-height: 520px; overflow-y: auto; padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2, #e5e9f2); font-size: 14.5px; }
.fam-agreement h3 { margin: 16px 0 4px; font-size: 1rem; }
.fam-agreement h3:first-child { margin-top: 0; }
.fam-agreement p { margin: 0 0 8px; }
#apply, #agreement { scroll-margin-top: 110px; }
.fam-segments { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fam-segments legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.fam-segments label, .fam-accept { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.fam-accept input, .fam-segments input { margin-top: 4px; flex: none; width: auto; }
.notice--ok { background: #e8f6ee; border-color: #9fd6b7; color: #0d6b3f; }

@media (max-width: 900px) {
  .ac-how, .ac-bottom, .ac-layout, .fam-two, .fam-two--form { grid-template-columns: 1fr; }
  .ac-side { position: static; }
  .ac-tracks { grid-template-columns: 1fr; }
  .fam-two { gap: 24px; }
}

/* Partner Family programme page */
.pf-toc { margin-top: 18px; }
.pf-lead { max-width: 820px; margin-bottom: 26px; }
.pf-note { max-width: 860px; color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.pf-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pf-offer { padding: 20px; border-radius: var(--radius-lg, 14px); background: #fff; border: 1px solid var(--line-2, #e5e9f2); box-shadow: var(--shadow-sm); }
.pf-offer h3 { margin: 12px 0 4px; font-size: 1.2rem; color: var(--orange); }
.pf-offer p { margin: 0; font-size: 14.5px; }
.pf-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pf-tier { padding: 22px; border-radius: var(--radius-lg, 14px); background: #fff; border: 2px solid var(--navy-700); }
.pf-tier--later { border-style: dashed; border-color: #b9c2d3; }
.pf-tier header { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pf-tier h3 { margin: 0; font-size: 1.15rem; }
.pf-tier__n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-700); color: #fff; font: 700 18px var(--font-head); }
.pf-tier--later .pf-tier__n { background: #8b96ab; }
.pf-tier__phase { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #eef2fb; color: var(--navy-700); font: 600 12px var(--font-head); }
.pf-tier dl { margin: 0; font-size: 14.5px; }
.pf-tier dt { margin-top: 10px; font: 600 12px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pf-tier dd { margin: 2px 0 0; }
.pf-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.pf-flow__box { display: flex; flex-direction: column; align-items: center; min-width: 150px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1.5px solid #c9d1df; text-align: center; font-size: 13px; }
.pf-flow__box strong { font: 600 14px var(--font-head); }
.pf-flow__box span { color: var(--muted); }
.pf-flow__box--top { background: #e8f0fc; border-color: var(--navy-700); }
.pf-flow__box--later { border-style: dashed; }
.pf-flow__arrow { width: 26px; height: 2px; background: #9aa5b8; position: relative; }
.pf-flow__arrow::after { content: ''; position: absolute; inset-inline-end: -1px; top: -4px; border: 5px solid transparent; border-inline-start-color: #9aa5b8; }
.pf-table-wrap { overflow-x: auto; border-radius: var(--radius-lg, 14px); border: 1px solid var(--line-2, #e5e9f2); background: #fff; }
.pf-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.pf-table th, .pf-table td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line-2, #e5e9f2); }
.pf-table thead th { background: var(--navy-700); color: #fff; font: 600 14px var(--font-head); }
.pf-table tbody th { width: 21%; font-weight: 600; background: var(--tint, #f6f8fc); }
.pf-table tbody tr:last-child th, .pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-table--terms { min-width: 560px; }
.pf-table--terms tbody th { width: 46%; }
.pf-how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pf-how__card { padding: 22px; border-radius: var(--radius-lg, 14px); background: #fff; border: 1px solid var(--line-2, #e5e9f2); }
.pf-how__card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.pf-how__card .ac-checks { margin: 0; font-size: 14.5px; }
.pf-later { columns: 2; column-gap: 34px; padding-inline-start: 20px; margin: 0; font-size: 14.5px; }
.pf-later li { break-inside: avoid; margin-bottom: 8px; }
.pf-score { list-style: none; padding: 0; margin: 0 0 12px; }
.pf-score li { position: relative; display: flex; justify-content: space-between; gap: 14px; padding: 12px 0 16px; border-bottom: 1px solid var(--line-2, #e5e9f2); }
.pf-score i { position: absolute; inset-inline-start: 0; bottom: 6px; height: 4px; width: calc(var(--w) * 1%); border-radius: 2px; background: var(--orange); }
.pf-locked { max-width: 640px; }
.pf-cta { text-align: center; }
.pf-cta p { max-width: 640px; margin: 0 auto 18px; }
.pf-cta .btn { margin: 4px; }
@media (max-width: 900px) {
  .pf-tiers, .pf-how { grid-template-columns: 1fr; }
  .pf-later { columns: 1; }
  .pf-flow { flex-direction: column; }
  .pf-flow__arrow { width: 2px; height: 18px; }
  .pf-flow__arrow::after { inset-inline-end: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: #9aa5b8; }
}

/* Course catalogue: Basic and Advanced as separate sections */
.ac-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; }
.ac-levels__tab { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: var(--radius-lg, 14px); background: #e8f6ee; color: #0d6b3f; text-decoration: none; border: 2px solid transparent; }
.ac-levels__tab strong { font: 700 1.15rem var(--font-head); }
.ac-levels__tab span { font-size: 13.5px; }
.ac-levels__tab--advanced { background: #fdf3df; color: #92400e; }
.ac-levels__tab:hover { border-color: currentColor; }
.ac-levelsec { padding: 24px; margin-bottom: 26px; border-radius: 18px; background: #f3faf6; border: 1px solid #cfe9da; scroll-margin-top: 100px; }
.ac-levelsec--advanced { background: #fffaf0; border-color: #f3dfb4; }
.ac-levelsec__head h2 { margin: 0 0 4px; color: #0d6b3f; }
.ac-levelsec--advanced .ac-levelsec__head h2 { color: #92400e; }
.ac-levelsec__head p { margin: 0; color: var(--muted); }
.ac-levelsec .ac-tracks { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ac-course--card { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.ac-course--card header { margin-bottom: 8px; }
.ac-course--card strong { margin: 0; }
.ac-course__track { font: 600 12.5px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 700px) { .ac-levels { grid-template-columns: 1fr; } .ac-levelsec { padding: 16px; } }

/* Product authenticity check */
.vf-form { display: grid; gap: 10px; margin-bottom: 18px; }
.vf-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-row input { flex: 1; min-width: 220px; font: 600 1.05rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.vf-result { margin-bottom: 18px; border-width: 2px; }
.vf-result h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.3rem; }
.vf-result h2 svg { width: 26px; height: 26px; flex: none; }
.vf-result--ok { border-color: #138A52; background: #f3faf6; }
.vf-result--ok h2 { color: #0d6b3f; }
.vf-result--warn { border-color: #E0850F; background: #fffaf0; }
.vf-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.vf-facts dt { color: var(--muted); font-size: 14px; }
.vf-facts dd { margin: 0; font-weight: 600; }
.vf-why { margin-top: 26px; }
.vf-why h2 { font-size: 1.15rem; }
.vf-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vf-tools .btn svg { width: 16px; height: 16px; }
.vf-photo { cursor: pointer; position: relative; overflow: hidden; }
.vf-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vf-scanner { display: grid; gap: 8px; justify-items: start; }
.vf-scanner #vf-reader { width: 100%; max-width: 460px; border-radius: 12px; overflow: hidden; background: #0f1b33; }
.vf-preview { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.vf-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2, #e5e9f2); }
.vf-status { margin: 0; font-weight: 600; min-height: 1.2em; }

/* Lesson picture and video (set per lesson in Admin → Training) */
.ac-media { margin: 14px 0 18px; }
.ac-media img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.ac-media--video { position: relative; aspect-ratio: 16 / 9; background: #0f1b33; border-radius: 12px; overflow: hidden; }
.ac-media--video iframe, .ac-media--video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-apply { margin: 6px 0 4px; }
