/* ESG Academy (update 221): the course cards, lesson pages, exam and certificate. Builds on site.css and content.css (the lesson page
   is laid out like an article). The certificate is the one ornate thing here: a paper sheet with a dark frame, printed as it looks. */

/* ---------- cards and small parts ---------- */
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.ac-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ac-card:hover { border-color: #bcd9c8; box-shadow: var(--shadow); }
.ac-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ac-card-img { aspect-ratio: 16 / 9; background: var(--soft); border-bottom: 1px solid var(--line); }
.ac-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ac-card-t { margin: 0; font-size: 1.16rem; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.ac-card-link:hover .ac-card-t { color: var(--brand-600); }
.ac-card-s { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ac-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: auto 0 0; font-size: 13.5px; color: var(--muted); }
.ac-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b7c3bd; margin-inline-end: 14px; vertical-align: middle; }
.ac-pill { align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ac-pill.is-done { background: var(--brand-50); border-color: #bfe0cd; color: var(--brand-600); }
.ac-pill.is-bad { background: var(--danger-50); border-color: #f5c6c0; color: var(--danger); }
.ac-note { margin: 22px 0 0; font-size: 14.5px; color: var(--muted); max-width: 70ch; }
.ac-note a { color: var(--brand-600); }
.ac-h2 { font-size: 1.4rem; margin: 40px 0 14px; letter-spacing: -.015em; }
.ac-h2:first-child { margin-top: 0; }
.ac-progress { height: 8px; border-radius: 8px; background: #e6ece9; overflow: hidden; max-width: 420px; }
.ac-progress span { display: block; height: 100%; background: var(--brand); border-radius: 8px; }
.ac-progress-t { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- the hub ---------- */
.ac-hero-cert { margin: 0; }
.ac-hero-cert .ac-cert { transform: rotate(-1.2deg); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ac-hero-cert figcaption { margin-top: 14px; font-size: 13.5px; color: var(--on-dark-2); text-align: center; }
.ac-me { background: var(--brand-50); border-bottom: 1px solid #cde5d7; }
.ac-me-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.ac-me p { margin: 0; font-size: 15px; }
.ac-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.ac-steps li { position: relative; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); counter-increment: step; }
.ac-steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: var(--mint-2); font-weight: 760; margin-bottom: 14px; }
.ac-steps h3 { margin: 0 0 8px; font-size: 1.06rem; }
.ac-steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .ac-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ac-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- a course ---------- */
.ac-hero-img { margin: 0; }
.ac-hero-img img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.35); }
.ac-facts { border-bottom: 1px solid var(--line); background: var(--white); }
.ac-facts dl { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0; padding: 20px 0; }
.ac-facts dt { font-size: 13px; color: var(--muted); }
.ac-facts dd { margin: 2px 0 0; font-weight: 650; color: var(--ink); }
.ac-course { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.ac-course-side { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); font-size: 15px; color: var(--ink-2); }
.ac-course-side p { margin: 0 0 14px; }
.ac-side-h { margin: 0 0 6px; font-size: 15px; font-weight: 750; color: var(--ink); }
.ac-side-h ~ .ac-side-h { margin-top: 8px; }
.ac-course-side .cm-share { margin-top: 10px; }
@media (max-width: 960px) { .ac-course { grid-template-columns: minmax(0, 1fr); gap: 36px; } .ac-course-side { position: static; } }
.ac-lessons { list-style: none; margin: 22px 0 0; padding: 0; }
.ac-lessons li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.ac-lessons li:last-child { border-bottom: 1px solid var(--line); }
.ac-lesson-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #c9d6ce; font-weight: 700; color: var(--ink-2); font-size: 15px; }
.ac-lessons li.is-done .ac-lesson-n { background: var(--brand); border-color: var(--brand); color: #fff; }
.ac-lesson-exam .ac-lesson-n { background: var(--dark); border-color: var(--dark); color: var(--mint-2); }
.ac-lessons h3 { margin: 4px 0 6px; font-size: 1.1rem; line-height: 1.35; }
.ac-lessons h3 a { color: var(--ink); text-decoration: none; }
.ac-lessons h3 a:hover { color: var(--brand-600); text-decoration: underline; }
.ac-lessons p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.ac-lessons .ac-meta { margin-top: 4px; }
.ac-refs-plain { margin: 0; padding: 0; border: 0; }

/* ---------- a lesson ---------- */
.ac-toc li a { padding-top: 7px; padding-bottom: 7px; }
.ac-toc li.is-here a { color: var(--brand-600); border-inline-start-color: var(--brand); font-weight: 650; }
.ac-toc li.is-done a::after { content: " ✓"; color: var(--brand); }
.ac-body .cm-fig img { background: var(--white); }
.ac-check { margin: 40px 0 0; padding: 24px 26px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.ac-check h2 { margin: 0 0 14px; font-size: 1.2rem; }
.ac-check-q { margin: 0 0 10px; font-weight: 650; color: var(--ink); font-size: 17px; }
.ac-check-opts { margin: 0 0 14px; padding-inline-start: 26px; color: var(--ink-2); }
.ac-check-opts li { margin: 4px 0; }
.ac-check-a summary { cursor: pointer; font-weight: 650; color: var(--brand-600); display: inline-block; padding: 6px 0; }
.ac-check-a p { margin: 6px 0 0; padding: 12px 14px; background: var(--white); border: 1px solid #cde5d7; border-radius: 12px; color: var(--ink-2); }
.ac-check-a + .ac-check-q { margin-top: 24px; }
.ac-done { margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.ac-done p { margin: 0; flex-basis: 100%; color: var(--ink-2); }
.ac-done p a { color: var(--brand-600); }
.ac-done form { margin: 0; }
.ac-done-t { font-weight: 650; color: var(--brand-600) !important; }
.ac-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 28px; }
.ac-pager-a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 650; line-height: 1.35; font-size: 15px; }
.ac-pager-a span { font-size: 13px; font-weight: 500; color: var(--muted); }
.ac-pager-a:hover { border-color: var(--brand); color: var(--brand-600); }
.ac-pager-a.is-next { text-align: end; grid-column: 2; }
@media (max-width: 560px) { .ac-pager { grid-template-columns: minmax(0, 1fr); } .ac-pager-a.is-next { grid-column: auto; } }

/* ---------- forms, sign-in, the exam ---------- */
.ac-form-wrap, .ac-exam { max-width: 760px; }
.ac-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.ac-form p { margin: 0 0 4px; color: var(--ink-2); }
.ac-form label { font-weight: 650; color: var(--ink); }
.ac-form input:not([type=hidden]) { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #c2ccd6; border-radius: 12px; background: var(--white); color: var(--ink); }
.ac-form input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.ac-form input[aria-invalid=true] { border-color: var(--danger); }
.ac-form .lp-btn { align-self: flex-start; margin-top: 6px; }
.ac-code-in { letter-spacing: .18em; font-variant-numeric: tabular-nums; max-width: 260px; }
.ac-hint { font-size: 14px; color: var(--muted) !important; }
.ac-hint a { color: var(--brand-600); }
.ac-form-alt { display: inline; margin: 18px 18px 0 0; }
.ac-linkbtn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; color: var(--brand-600); text-decoration: underline; cursor: pointer; }
.ac-alert, .ac-ok { margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; font-size: 15.5px; }
.ac-alert { background: var(--danger-50); border: 1px solid #f5c6c0; color: var(--danger); }
.ac-ok { background: var(--brand-50); border: 1px solid #cde5d7; color: var(--brand-600); }
.ac-signout { margin-top: 36px; }
.ac-rules { margin: 0 0 24px; padding-inline-start: 22px; color: var(--ink-2); line-height: 1.7; }
.ac-left { margin: 0; padding-inline-start: 22px; line-height: 1.9; }
.ac-left a, .ac-exam p a:not(.lp-btn) { color: var(--brand-600); }
.ac-timer { position: sticky; top: 76px; z-index: 5; margin: 0 0 22px; padding: 10px 14px; border-radius: 12px; background: var(--dark); color: var(--on-dark); font-size: 14.5px; }
.ac-timer-left { font-weight: 700; color: var(--mint-2); margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.ac-timer.is-low .ac-timer-left { color: #ffd28a; }
.ac-q { margin: 0 0 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.ac-q legend { padding: 0; font-weight: 650; font-size: 17px; color: var(--ink); line-height: 1.45; float: left; width: 100%; margin-bottom: 12px; }
.ac-q legend + * { clear: both; }
.ac-q-n { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.ac-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.ac-opt:hover { background: var(--soft); }
.ac-opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.ac-opt:has(input:checked) { background: var(--brand-50); color: var(--ink); }
.ac-result { padding: 24px 26px; border-radius: var(--radius); margin-bottom: 30px; }
.ac-result.is-pass { background: var(--brand-50); border: 1px solid #bfe0cd; }
.ac-result.is-fail { background: var(--warn-50); border: 1px solid #f1dcae; }
.ac-result p { margin: 0 0 10px; }
.ac-result p:last-child { margin-bottom: 0; }
.ac-result-score { font-size: 1.8rem; font-weight: 780; letter-spacing: -.02em; color: var(--ink); }
.ac-review { list-style: none; margin: 0; padding: 0; counter-reset: rev; }
.ac-review li { padding: 16px 0 16px 18px; border-inline-start: 3px solid var(--line); margin-bottom: 14px; }
.ac-review li.is-right { border-inline-start-color: var(--brand); }
.ac-review li.is-wrong { border-inline-start-color: var(--danger); }
.ac-review p { margin: 0 0 6px; color: var(--ink-2); }
.ac-review-q { font-weight: 650; color: var(--ink) !important; }
.ac-review-why { font-size: 15px; color: var(--muted) !important; }
.ac-tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; margin-inline-end: 6px; }
.is-right .ac-tag { background: var(--brand-50); color: var(--brand-600); }
.is-wrong .ac-tag { background: var(--danger-50); color: var(--danger); }

/* ---------- the learner's page ---------- */
.ac-certs { list-style: none; margin: 0; padding: 0; }
.ac-certs li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ac-certs a { font-weight: 650; color: var(--brand-600); }
.ac-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ac-mine-row { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.ac-mine-row h3 { margin: 0 0 12px; font-size: 1rem; line-height: 1.35; }
.ac-mine-row h3 a { color: var(--ink); }

/* ---------- the certificate ---------- */
.ac-cert-box { container-type: inline-size; }
.ac-cert { position: relative; aspect-ratio: 1200 / 630; background: #fbfdfc; color: var(--ink); border: 1.8cqi solid var(--dark); border-top-color: var(--dark); border-radius: 6px; padding: 4.2cqi 5.5cqi 3.4cqi; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: inset 0 0 0 .2cqi #cfe3d8; }
.ac-cert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .55cqi; background: var(--mint); }
.ac-cert p { margin: 0; }
.ac-cert-top { align-self: stretch; display: flex; justify-content: space-between; gap: 2cqi; font-size: 1.5cqi; }
.ac-cert-brand { font-weight: 760; color: var(--brand); }
.ac-cert-id { color: var(--muted); }
.ac-cert-k { margin-top: 4.5cqi !important; font-size: 1.9cqi; font-weight: 760; color: var(--brand); }
.ac-cert-pre { margin-top: 1.6cqi !important; font-size: 1.7cqi; color: var(--muted); }
.ac-cert-name { margin-top: 1.2cqi !important; font-size: 4.4cqi; line-height: 1.1; font-weight: 790; letter-spacing: -.02em; padding-bottom: 1.4cqi; border-bottom: .15cqi solid #cfe3d8; max-width: 90%; overflow-wrap: anywhere; }
.ac-cert-course { margin-top: 1.4cqi !important; font-size: 2.6cqi; line-height: 1.25; font-weight: 760; max-width: 86%; }
.ac-cert-foot { margin-top: auto; align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: .6cqi 3cqi; font-size: 1.4cqi; color: var(--ink-2); }
.ac-cert-foot span:last-child { color: var(--brand); flex-basis: 100%; }
.ac-cert-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.ac-cert-wrap.is-revoked .ac-cert { filter: grayscale(1); opacity: .55; }
.ac-cert-dl { margin: 0 0 22px; display: grid; gap: 12px; }
.ac-cert-dl dt { font-size: 13px; color: var(--muted); }
.ac-cert-dl dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ac-cert-dl a { color: var(--brand-600); }
.ac-cert-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
@media (max-width: 960px) { .ac-cert-page { grid-template-columns: minmax(0, 1fr); } }

@media print {
  .lp-header, .lp-footer, .pg-hero, .ac-cert-side, .lp-skip, .tt-root, .ac-me { display: none !important; }
  .pg-section { padding: 0 !important; }
  .ac-cert-page { display: block; }
  .ac-cert { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 12mm; }
}
.ac-done .lp-btn { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 44px; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }

/* ---------- full programmes (update 222): modules, objectives, page contents, practice ---------- */
.ac-outcomes { margin: 0 0 36px; }
.ac-outcomes ul, .ac-goals ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ac-outcomes li, .ac-goals li { position: relative; padding-inline-start: 26px; color: var(--ink-2); }
.ac-outcomes li::before, .ac-goals li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.ac-outcomes ul { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 28px; }
.ac-lessons li.ac-mod { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 26px 0 8px; border-top: 0; }
.ac-lessons li.ac-mod h3 { margin: 0; font-size: 1.02rem; color: var(--brand-600); }
.ac-lessons li.ac-mod + li { border-top: 1px solid var(--line); }
.ac-toc li.ac-toc-mod { margin: 14px 0 4px; padding-inline-start: 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ac-toc li.ac-toc-mod:first-child { margin-top: 4px; }
.ac-goals { margin: 0 0 22px; padding: 18px 22px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid #cde5d7; }
.ac-goals h2 { margin: 0; font-size: 1rem; color: var(--ink); }
.ac-onpage { margin: 0 0 28px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.ac-onpage h2 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 650; }
.ac-onpage ol { margin: 0; padding-inline-start: 22px; columns: 2 260px; column-gap: 32px; }
.ac-onpage li { margin: 3px 0; break-inside: avoid; }
.ac-onpage a { color: var(--brand-600); }
.ac-practice { margin: 44px 0 0; }
.ac-practice > h2 { margin: 0 0 14px; font-size: 1.35rem; }
.ac-ex { margin: 0 0 18px; padding: 22px 24px; border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: var(--radius); background: var(--white); }
.ac-ex h3 { margin: 0 0 10px; font-size: 1.08rem; }
.ac-ex .cm-body > :first-child { margin-top: 0; }
.ac-ex .cm-body > :last-child { margin-bottom: 0; }
.ac-ex-a { margin-top: 14px; }
.ac-ex-a summary { cursor: pointer; font-weight: 650; color: var(--brand-600); padding: 6px 0; }
.ac-ex-a[open] summary { margin-bottom: 8px; }
.ac-ex-a > .cm-body { padding: 16px 18px; background: var(--soft); border-radius: 12px; }
@media (max-width: 560px) { .ac-ex { padding: 18px 16px; } }

/* ---------- glossary, practice and notes (update 224) ---------- */
.ac-az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ac-az a { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--brand-600); text-decoration: none; }
.ac-az a:hover { border-color: var(--brand); background: var(--brand-50); }
.ac-gloss { margin: 0; display: grid; gap: 0; }
.ac-gloss > div { padding: 14px 0; border-top: 1px solid var(--line); }
.ac-gloss dt { font-weight: 700; font-size: 1.05rem; }
.ac-gloss dt a { color: var(--ink); }
.ac-gloss dt a:hover { color: var(--brand-600); }
.ac-gloss dd { margin: 4px 0 0; color: var(--ink-2); max-width: 75ch; }
.ac-term { padding-top: 36px; padding-bottom: 48px; }
.ac-term-learn, .ac-term-rel { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.ac-term-learn h2, .ac-term-rel h2 { margin: 0 0 12px; font-size: 1.2rem; }
.ac-term-learn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ac-term-learn li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.ac-term-learn li a { font-weight: 650; color: var(--brand-600); }
.ac-term-rel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-term-rel a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.ac-term-rel a:hover { border-color: var(--brand); color: var(--brand-600); }
.ac-pq { margin: 0 0 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.ac-pq-n { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.ac-pq-q { margin: 0 0 10px; font-weight: 650; font-size: 17px; color: var(--ink); }
.ac-pq .ac-check-opts { margin-bottom: 10px; }
.ac-pq-from { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.ac-pq-from a { color: var(--brand-600); }
.ac-res { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.ac-notes-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 22px 24px; margin: 0 0 30px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid #cde5d7; }
.ac-notes-dl p { margin: 0; color: var(--ink-2); }
.ac-notes-mod { margin: 26px 0 8px; font-size: 1rem; color: var(--brand-600); }
.ac-notes-list { margin: 0; padding-inline-start: 24px; }
.ac-notes-list li { margin: 0 0 12px; }
.ac-notes-list a { font-weight: 650; color: var(--ink); }
.ac-notes-list span { display: block; color: var(--muted); font-size: 15px; }
.ac-side-links { margin: 0 0 16px; padding-inline-start: 18px; }
.ac-side-links li { margin: 4px 0; }
.ac-side-links a, .ac-lesson-res a { color: var(--brand-600); }
.ac-lesson-res { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.ac-resgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.ac-resgrid > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.ac-resgrid h3 { margin: 0 0 10px; font-size: 1.05rem; }
.ac-resgrid ul { margin: 0; padding-inline-start: 18px; }
.ac-resgrid li { margin: 5px 0; }
.ac-resgrid a { color: var(--brand-600); }

/* ---- Update 226: answering, checking figures, form walkthroughs, phone navigation ---------------------------------------- */
.ac-check-intro { margin: -6px 0 14px; color: var(--muted); font-size: 15px; }
.ac-q { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.ac-q + .ac-q { padding-top: 20px; border-top: 1px solid var(--line); }
.ac-q legend { padding: 0; }
.ac-q-opts { display: grid; gap: 8px; margin: 0 0 8px; }
.ac-q-opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.ac-q-opt:hover { border-color: #b9c4cf; }
.ac-q-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-q-l { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); background: var(--soft); }
.ac-q-opt:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.ac-q-opt:has(input:checked) { border-color: var(--ink-2); }
.ac-q-opt.is-right { border-color: var(--brand); background: var(--brand-50); color: var(--ink); }
.ac-q-opt.is-right .ac-q-l { background: var(--brand); border-color: var(--brand); color: #fff; }
.ac-q-opt.is-wrong { border-color: #f1b4ae; background: var(--danger-50); }
.ac-q-opt.is-wrong .ac-q-l { background: var(--danger); border-color: var(--danger); color: #fff; }
.ac-q-fb { margin: 0; min-height: 0; font-weight: 650; font-size: 15px; }
.ac-q-fb:empty { display: none; }
.ac-q-fb.is-right { color: var(--brand-600); }
.ac-q-fb.is-wrong { color: var(--danger); }
.ac-q-fb.is-right::before { content: "✓ "; }
.ac-q-fb.is-wrong::before { content: "✗ "; }

.ac-try { margin: 16px 0 4px; padding: 16px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.ac-try-h { margin: 0 0 12px !important; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.ac-try-rows { display: grid; gap: 10px; }
.ac-try-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px) 84px; gap: 10px; align-items: center; }
.ac-try-row label { font-size: 15px; color: var(--ink-2); }
.ac-try-in { display: flex; align-items: center; background: var(--white); border: 1px solid #c9d2dc; border-radius: 10px; overflow: hidden; }
.ac-try-in:focus-within { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.ac-try-in input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font: inherit; font-size: 15.5px; font-variant-numeric: tabular-nums; background: transparent; color: var(--ink); outline: none; }
.ac-try-u { padding: 0 10px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.ac-try-r { font-size: 14px; font-weight: 650; color: var(--muted); }
.ac-try-row.is-right .ac-try-in { border-color: var(--brand); background: var(--brand-50); }
.ac-try-row.is-right .ac-try-r { color: var(--brand-600); }
.ac-try-row.is-right .ac-try-r::before { content: "✓ "; }
.ac-try-row.is-wrong .ac-try-in { border-color: var(--danger); }
.ac-try-row.is-wrong .ac-try-r { color: var(--danger); }
.ac-try-row.is-wrong .ac-try-r::before { content: "✗ "; }
.ac-try-act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.ac-try-sum { font-size: 15px; color: var(--ink-2); }
@media (max-width: 640px) {
  .ac-try-row { grid-template-columns: minmax(0, 1fr) 84px; }
  .ac-try-row label { grid-column: 1 / -1; }
}

/* A government form, redrawn: the printed form in black, the example entries in pen blue, the notes in the margin */
.ac-gf { margin: 30px 0; --pen: #1d3f8f; }
.ac-gf-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ac-gf-tag { font-size: 13.5px; font-weight: 700; color: var(--brand-600); background: var(--brand-50); border-radius: 999px; padding: 4px 12px; }
.ac-gf-tgl { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ac-gf-tgl button { font: inherit; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; }
.ac-gf-tgl button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ac-gf-tgl button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ac-gf-paper { background: #fffefb; border: 1px solid #d6d3c8; border-radius: 6px; box-shadow: 0 1px 0 #ece9df, 0 8px 24px rgba(11, 18, 32, .06); padding: 22px 24px 10px; color: #111; }
.ac-gf-head { text-align: center; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid #111; }
.ac-gf-basis { margin: 0 0 4px !important; font-size: 13.5px; color: #3c3c3c; }
.ac-gf-title { margin: 0 !important; font-size: 18px; font-weight: 750; letter-spacing: .01em; line-height: 1.3; }
.ac-gf-part { padding: 4px 0; }
.ac-gf-ph { margin: 14px 0 6px !important; font-weight: 750; font-size: 15px; padding: 6px 8px; background: #f1efe7; border-inline-start: 3px solid #111; }
.ac-gf-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 22px; padding: 10px 0; border-bottom: 1px dashed #d9d5c9; }
.ac-gf-row:last-child { border-bottom: 0; }
.ac-gf-l { margin: 0 !important; font-size: 15px; line-height: 1.45; color: #111; }
.ac-gf-n { font-weight: 700; margin-inline-end: 2px; }
.ac-gf-v { margin: 6px 0 0 !important; padding: 6px 10px; min-height: 34px; border: 1px solid #bdb8a8; border-radius: 3px; background: var(--white); }
.ac-gf-v span, .ac-gf-cv { color: var(--pen); font-weight: 600; font-size: 15px; }
.ac-gf-tw { overflow-x: auto; margin-top: 8px; }
.ac-gf-t { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.ac-gf-t th, .ac-gf-t td { border: 1px solid #bdb8a8; padding: 6px 8px; text-align: start; vertical-align: top; }
.ac-gf-t thead th { background: #f1efe7; font-weight: 700; color: #111; }
.ac-gf-t tbody th { font-weight: 500; color: #111; }
.ac-gf-note { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); border-inline-start: 3px solid var(--brand); padding: 2px 0 2px 12px; }
.ac-gf-note p { margin: 0 0 6px !important; }
.ac-gf-note p:last-child { margin-bottom: 0 !important; }
.ac-gf-warn { color: var(--warn); }
.ac-gf-warn strong { color: var(--warn); }
.ac-gf figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.ac-gf.is-blank .ac-gf-v span, .ac-gf.is-blank .ac-gf-cv { visibility: hidden; }
.ac-gf.no-notes .ac-gf-note { display: none; }
@media (min-width: 1180px) {
  .ac-gf-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .ac-gf.no-notes .ac-gf-row, .ac-gf-row.is-wide { grid-template-columns: minmax(0, 1fr); }
  .ac-gf-row.is-wide .ac-gf-note { max-width: 70ch; }
}
@media (max-width: 560px) { .ac-gf-paper { padding: 16px 14px 6px; } .ac-gf-title { font-size: 16.5px; } }

/* Reading progress, and the lesson bar on phones */
.ac-readbar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.ac-readbar span { display: block; height: 100%; width: 0; background: var(--mint); }
.ac-mbar { display: none; }
@media (max-width: 900px) {
  .ac-mbar { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 18, 32, .06); }
  .ac-mbar-a { padding: 10px 12px; border-radius: 10px; font-weight: 650; font-size: 15px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); white-space: nowrap; }
  .ac-mbar-a.is-next { background: var(--brand); border-color: var(--brand); color: #fff; }
  .ac-mbar-mid { display: grid; gap: 5px; justify-items: center; font-size: 13px; color: var(--muted); text-decoration: none; }
  .ac-mbar-bar { display: block; width: 100%; max-width: 160px; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
  .ac-mbar-bar span { display: block; height: 100%; background: var(--brand); }
  body:has(.ac-mbar) .lp-footer, body:has(.ac-mbar) footer { padding-bottom: 76px; }
  .pg-hero.ac-lesson-hero { padding: 18px 0 22px; }
  .ac-lesson-hero h1 { font-size: clamp(26px, 7vw, 34px); line-height: 1.15; margin: 10px 0 8px; }
  .ac-lesson-hero .pg-crumbs { display: none; }
  .ac-lesson-hero .cm-hero-kind { font-size: 13.5px; margin-bottom: 8px; }
}

.ac-resume { margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; background: var(--brand-50); border: 1px solid #cde5d7; color: var(--ink-2); }
.ac-resume a { color: var(--brand-600); font-weight: 650; }
.lp-container > .ac-resume { margin-top: 22px; }
.ac-about { margin-bottom: 30px; }
.ac-about p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.ac-exam-pre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; }
.ac-exam-pre h2 { font-size: 1.15rem; margin: 0 0 8px; }
.ac-exam-pre ul { margin: 0; padding-inline-start: 20px; color: var(--ink-2); }
.ac-exam-pre li { margin: 4px 0; }
@media (max-width: 700px) { .ac-exam-pre { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .ac-readbar, .ac-mbar, .ac-gf-tgl, .ac-try { display: none !important; }
  .ac-gf-paper { box-shadow: none; }
  .ac-gf-row { break-inside: avoid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .ac-gf-row.is-wide { grid-template-columns: minmax(0, 1fr); }
}
.ac-gf-tw:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ==== Update 227: the Academy's enterprise look — photographic bands, real screenshots, paths, catalogue ================== */
.ax-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 64px 0 0; }
.ax-hero-bg { position: absolute; inset: 0; z-index: -2; }
.ax-hero-bg picture, .ax-hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ax-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(3,14,9,.96) 0%, rgba(3,14,9,.9) 34%, rgba(3,14,9,.62) 64%, rgba(3,14,9,.45) 100%),
              linear-gradient(180deg, rgba(3,14,9,.2) 0%, transparent 40%, rgba(3,14,9,.85) 100%); }
.ax-hero-in { display: grid; gap: 48px; align-items: center; padding-bottom: 72px; }
.ax-hero.has-media .ax-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.ax-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 780; color: #fff; margin: 18px 0 18px; max-width: 14em; text-wrap: balance; }
.ax-hero.is-compact h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.ax-kicker { margin: 18px 0 -6px; font-size: 15px; font-weight: 650; color: var(--mint-2); }
.ax-lead { font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.6; color: #d7ece2; max-width: 36em; margin: 0; }
.ax-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: #cfe7dc; }
.ax-points li { display: inline-flex; align-items: center; gap: 8px; }
.ax-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: rgba(79,214,140,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%234fd68c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ax-hero-media { position: relative; min-width: 0; padding: 0 0 40px 0; }
.ax-hero-media > .ax-win { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); transform-origin: 0 50%; box-shadow: 0 40px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(167,243,208,.16); }
.ax-float { position: absolute; z-index: 2; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 26px 60px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(11,18,32,.08); }
.ax-float img { display: block; width: 100%; height: auto; }
.ax-float-a { width: 56%; inset-inline-start: -8%; bottom: 0; }
.ax-photo-note { position: absolute; inset-inline-end: 14px; top: 12px; margin: 0; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; color: #e9f6ef; background: rgba(4,18,12,.55); }
.ax-hero .pg-crumbs { margin-bottom: 0; }

.ax-facts { position: relative; border-top: 1px solid rgba(167,243,208,.16); background: rgba(3,14,9,.72); backdrop-filter: blur(6px); }
.ax-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.ax-facts dl > div { padding: 18px 20px 20px; border-inline-start: 1px solid rgba(167,243,208,.12); }
.ax-facts dl > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ax-facts dt { font-size: 13px; color: var(--on-dark-2); margin-bottom: 4px; }
.ax-facts dd { margin: 0; font-size: 17px; font-weight: 650; color: #fff; }

/* windows, phones and pages around the screenshots */
.ax-win { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px -28px rgba(11,18,32,.45), 0 0 0 1px rgba(11,18,32,.08); }
.ax-win-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #eef2f0; border-bottom: 1px solid #dfe6e2; }
.ax-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd8d3; }
.ax-win-bar span { margin-inline-start: 10px; font-size: 12.5px; color: #5d6b66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-win img, .ax-phone img, .ax-page img { display: block; width: 100%; height: auto; }
.ax-phone { width: min(100%, 250px); padding: 10px; border-radius: 38px; background: #0d1512; box-shadow: 0 30px 70px -26px rgba(11,18,32,.55), inset 0 0 0 1px #2a3530; }
.ax-phone img { border-radius: 28px; }
.ax-page { width: min(100%, 300px); background: #fff; border: 1px solid #e2e6e3; box-shadow: 0 2px 0 #f1f3f2, 0 26px 60px -30px rgba(11,18,32,.45); }

/* the figures band */
.ax-band { background: var(--white); border-bottom: 1px solid var(--line); }
.ax-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.ax-stats > div { padding: 30px 16px 28px; border-inline-start: 1px solid var(--line); }
.ax-stats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ax-stats dt { order: 2; font-size: 14px; color: var(--muted); margin-top: 4px; }
.ax-stats > div { display: flex; flex-direction: column; }
.ax-stats dd { order: 1; margin: 0; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 760; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.05; }
@media (max-width: 900px) { .ax-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ax-stats > div:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; } .ax-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .ax-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ax-stats > div { border-inline-start: 0 !important; padding-inline-start: 0 !important; padding: 20px 0; border-top: 1px solid var(--line); } .ax-stats > div:nth-child(-n+2) { border-top: 0; } }

/* sections */
.ax-sec { padding: 88px 0; }
.ax-sec.is-soft { background: var(--soft); }
.ax-sec.is-dark { background: var(--dark); color: var(--on-dark); }
.ax-head { max-width: 46rem; margin-bottom: 40px; }
.ax-h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 760; color: var(--ink); margin: 0 0 12px; text-wrap: balance; }
.ax-sec.is-dark .ax-h2 { color: #fff; }
.ax-head p { margin: 0; font-size: 1.1rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 700px) { .ax-sec { padding: 60px 0; } .ax-head { margin-bottom: 28px; } }

/* paths */
.ax-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ax-path { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ax-path-img { aspect-ratio: 16 / 10; overflow: hidden; }
.ax-path-img picture { display: block; height: 100%; }
.ax-path-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ax-path-b { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.ax-path h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.ax-path p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ax-path-list { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 6px; }
.ax-path-list li { counter-increment: p; display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.ax-path-list li::before { content: counter(p); flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--brand-600); background: var(--brand-50); }
.ax-path-list a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.ax-path-list a:hover { color: var(--brand-600); text-decoration: underline; }
.ax-path-m { margin: auto 0 0 !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px !important; color: var(--muted); }
@media (max-width: 1100px) { .ax-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ax-paths { grid-template-columns: minmax(0, 1fr); } }

/* catalogue */
.ax-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ax-course { background: var(--white); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ax-course:hover { box-shadow: 0 22px 50px -26px rgba(11,18,32,.35); transform: translateY(-2px); }
.ax-course-a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ax-course-a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: 16px; }
.ax-course-img { position: relative; }
.ax-course-img { aspect-ratio: 16 / 9; overflow: hidden; }
.ax-course-img picture { display: block; height: 100%; }
.ax-course-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ax-level, .ax-state { position: absolute; top: 14px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; }
.ax-level { inset-inline-start: 14px; background: rgba(255,255,255,.94); color: var(--ink); }
.ax-state { inset-inline-end: 14px; background: var(--ink); color: #fff; }
.ax-state.is-done { background: var(--brand); }
.ax-course-b { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.ax-course-t { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.ax-course-s { margin: 0 0 18px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.ax-course-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: auto 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ax-course-k dt { font-size: 12.5px; color: var(--muted); }
.ax-course-k dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.ax-course-go { font-weight: 650; color: var(--brand-600); font-size: 15px; }
@media (max-width: 1060px) { .ax-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ax-courses { grid-template-columns: minmax(0, 1fr); } }

/* practise rows */
.ax-rows { display: grid; gap: 96px; }
.ax-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.ax-row.is-flip .ax-row-t { order: 2; }
.ax-row-t h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; color: var(--ink); }
.ax-row-t p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; margin: 0 0 16px; }
.ax-row-m { display: inline-block; font-size: 15px !important; font-weight: 650; color: var(--brand-600) !important; padding-top: 14px; border-top: 2px solid var(--brand); }
.ax-row-v { min-width: 0; }
.ax-row-v > .ax-win { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.ax-duo { display: flex; gap: 28px; align-items: flex-end; justify-content: center; }
.ax-duo .ax-phone { width: 230px; }
.ax-duo .ax-page { width: 290px; transform: rotate(2deg); }
@media (max-width: 900px) { .ax-rows { gap: 64px; } .ax-row { grid-template-columns: minmax(0, 1fr); gap: 28px; } .ax-row.is-flip .ax-row-t { order: 0; } }
@media (max-width: 520px) { .ax-duo { gap: 14px; } .ax-duo .ax-phone { width: 46%; } .ax-duo .ax-page { width: 50%; } }

/* sources */
.ax-src { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.ax-src p { color: var(--on-dark-2); font-size: 1.05rem; line-height: 1.65; }
.ax-src-k { display: flex; gap: 40px; margin: 28px 0 0; }
.ax-src-k dt { font-size: 14px; color: var(--on-dark-2); }
.ax-src-k dd { margin: 4px 0 0; font-size: 2rem; font-weight: 760; color: #fff; letter-spacing: -.02em; }
.ax-src-h { margin: 0 0 16px; font-size: 1rem; color: var(--mint-2); font-weight: 650; }
.ax-pubs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ax-pubs li { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--dark-line); background: rgba(167,243,208,.05); color: #e3f3ec; font-size: 14.5px; }
.ax-src-note { margin-top: 18px; font-size: 14px !important; }
@media (max-width: 900px) { .ax-src { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* certificate */
.ax-cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ax-cert-fig { margin: 0; }
.ax-cert-fig figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ax-steps { list-style: none; counter-reset: s; margin: 22px 0 20px; padding: 0; display: grid; gap: 18px; }
.ax-steps li { counter-increment: s; position: relative; padding-inline-start: 52px; }
.ax-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; color: #fff; background: var(--brand); }
.ax-steps h3 { margin: 4px 0 4px; font-size: 1.08rem; color: var(--ink); }
.ax-steps p { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .ax-cert { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* resources */
.ax-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ax-res-img img { object-fit: cover; object-position: top; }
.ax-res-c { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding-bottom: 18px; }
.ax-res-img { height: 170px; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
.ax-res-img img, .ax-res-img picture { display: block; width: 100%; }
.ax-res-img.is-page { padding: 18px 40px 0; }
.ax-res-img.is-page img { box-shadow: 0 10px 30px -12px rgba(11,18,32,.35); }
.ax-res-img.is-photo picture { height: 100%; }
.ax-res-img.is-photo img { height: 100%; object-fit: cover; }
.ax-res-c h3 { margin: 18px 20px 10px; font-size: 1.1rem; color: var(--ink); }
.ax-res-c ul { margin: 0 20px; padding-inline-start: 18px; display: grid; gap: 5px; font-size: 15px; }
@media (max-width: 1000px) { .ax-res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ax-res { grid-template-columns: minmax(0, 1fr); } }
.ax-fig img { border-radius: 14px; box-shadow: 0 20px 50px -30px rgba(11,18,32,.4); }

@media (max-width: 960px) {
  .ax-hero { padding-top: 40px; }
  .ax-hero.has-media .ax-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ax-hero::before { background: linear-gradient(180deg, rgba(3,14,9,.82) 0%, rgba(3,14,9,.88) 55%, rgba(3,14,9,.95) 100%); }
  .ax-hero-media > .ax-win { transform: none; }
  .ax-float-a { width: 62%; inset-inline-start: auto; inset-inline-end: -8px; }
  .ax-facts dl > div { padding: 14px 14px 16px 0; border-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { .ax-course, .ax-course:hover { transition: none; transform: none; } }
@media print { .ax-hero-bg, .ax-hero-media, .ax-photo-note { display: none; } }

/* course page (update 227) */
.ax-incl { padding: 22px 22px 20px; margin-bottom: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -34px rgba(11,18,32,.35); }
.ax-incl-h { margin: 0 0 12px; font-weight: 750; font-size: 1.05rem; color: var(--ink); }
.ax-incl ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.ax-incl li { position: relative; padding-inline-start: 26px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.ax-incl li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f6e46' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ax-incl li strong { color: var(--ink); }
.ax-incl-btn { display: flex; justify-content: center; width: 100%; }
.ax-incl-f { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (min-width: 1000px) { .ac-course-side .ax-incl { position: sticky; top: 92px; } }
.ax-inside { margin: 0 0 40px; }
.ax-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ax-gal-i { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); color: var(--ink-2); text-decoration: none; }
.ax-gal-i img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: var(--soft); }
.ax-gal-i span { display: block; padding: 10px 14px 12px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }
.ax-gal-i:hover span { color: var(--brand-600); }
.ax-gal-i.is-wide { grid-column: 1 / -1; }
.ax-gal-i.is-wide img { aspect-ratio: 16 / 7; }
.ax-gal-i:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 560px) { .ax-gal { grid-template-columns: minmax(0, 1fr); } }
.ax .ac-course-main > .ax-courses, .ax .ax-courses { margin-top: 8px; }
.ax-kicker a { color: var(--mint-2); }
.ax-hero.has-media .ax-hero-media > .ax-page { margin-inline: auto; width: min(100%, 320px); transform: rotate(2deg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.75); }
.ax-hero.is-compact { padding-top: 48px; }
.ax-hero.is-compact .ax-hero-in { padding-bottom: 56px; }
.ax-hero.is-compact.has-media .ax-hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 960px) { .ax-hero.is-compact.has-media .ax-hero-in { grid-template-columns: minmax(0, 1fr); } .ax-hero.is-compact .ax-hero-media { display: none; } }
.pg-hero.ac-lesson-hero.has-photo { padding: 52px 0 60px; }
@media (max-width: 900px) { .pg-hero.ac-lesson-hero.has-photo { padding: 18px 0 22px; } }

/* form pages (update 228) */
.ax-frm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 48px 0 72px; align-items: start; }
.ax-frm-main { min-width: 0; }
.ax-frm-side { position: sticky; top: 92px; }
.ax-answer { padding: 22px 24px; border-radius: 14px; background: var(--brand-50); border: 1px solid #cde5d7; margin-bottom: 22px; }
.ax-answer h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brand-600); }
.ax-answer p { margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--ink); }
.ax-keyfacts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 40px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ax-keyfacts > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); }
.ax-keyfacts > div:first-child { border-top: 0; }
.ax-keyfacts dt { font-weight: 650; color: var(--ink); font-size: 15px; }
.ax-keyfacts dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.ax-h2s { font-size: 1.5rem; letter-spacing: -.02em; margin: 40px 0 10px; color: var(--ink); }
.ax-mist { padding-inline-start: 20px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.55; }
.ax-frm .pg-section { padding: 40px 0 0; background: none; }
.ax-frm .pg-section > .lp-container { padding: 0; max-width: none; }
.ax-frm-list { list-style: none !important; padding: 0 !important; }
.ax-frm-list li::before { display: none; }
.ax-frm-list li { padding-inline-start: 0 !important; }
.ax-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ax-formcard a { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: inherit; text-decoration: none; }
.ax-formcard a:hover { box-shadow: 0 22px 50px -30px rgba(11,18,32,.35); }
.ax-formcard a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ax-formcard h2 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.ax-formcard p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ax-formcard dl { display: grid; gap: 6px; margin: auto 0 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.ax-formcard dl div { display: flex; gap: 8px; }
.ax-formcard dt { color: var(--muted); min-width: 80px; }
.ax-formcard dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) { .ax-frm { grid-template-columns: minmax(0, 1fr); } .ax-frm-side { position: static; } }
@media (max-width: 700px) { .ax-forms { grid-template-columns: minmax(0, 1fr); } .ax-keyfacts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* compliance tools (update 228) */
.ct-res { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ct-res li { padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; font-size: 15px; }
.ct-res li.is-yes { border-color: #b9dcc8; background: var(--brand-50); }
.ct-res li.is-no { background: var(--soft); }
.ct-res li.is-warn { border-color: #f0d49a; background: var(--warn-50); }
.ct-res strong { color: var(--ink); }
.ct-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.ct-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.ct-check span { display: grid; gap: 2px; }
.ct-check b { color: var(--ink); font-size: 15px; }
.ct-check small { color: var(--muted); font-size: 13.5px; }
.ct-check:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.ct-cal { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.ct-cal li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ct-cal li:first-child { border-top: 0; }
.ct-cal time { font-weight: 750; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.ct-cal div { display: grid; gap: 3px; }
.ct-cal b { color: var(--ink); font-size: 15px; }
.ct-cal span { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 560px) { .ct-cal li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.ct-dl { white-space: normal; text-align: center; max-width: 100%; }
