/*
 * ITIL certification hub (/itil-certification): rules shared by ALL its sections (direction.md section 2).
 * Loaded after tokens.css, base.css, skin.css (and the shared fold-faq.css), before cert-hub/fold-<key>.css.
 * Scope: main.itil-v1[data-page="certification"] only. Section-specific rules belong in cert-hub/fold-<key>.css.
 */

/* Type (direction section 2): H1 40 to 60px, H2 shared --fs-h2 (path and close cap their own in fold CSS); nothing under 16px. */
main.itil-v1[data-page="certification"] {
    --fs-h1: clamp(40px, 0.6rem + 3.55vw, 60px);
    --fs-body: 17px;
    --fs-small: 16px;
}
main.itil-v1[data-page="certification"] .v1-h1 { font-weight: 800; }
main.itil-v1[data-page="certification"] .v1-h2 { --v1-lh: 1.1; --v1-fw: 800; text-wrap: balance; }
@media (max-width: 767.98px) {
    main.itil-v1[data-page="certification"] { --fs-h1: clamp(30px, 8.4vw, 36px); }
}

/* REQUIRED hub-wide override (direction section 2 and fix 10): folds are sized to their content, never stretched
   to the viewport (base.css gives .v1-fold min-height: calc(100svh - var(--hdr-h)) from 768px). No scroll snapping. */
main.itil-v1[data-page="certification"] .v1-fold { min-height: 0; }

/* Dates, prices and counts: tabular numerals wherever they print. */
main.itil-v1[data-page="certification"] :is(time, .v1-price, [data-count], .cert-num) { font-variant-numeric: tabular-nums; }

/* In-page jumps (#courses, #courses-{level}, #path, #close): land below the sticky header. */
main.itil-v1[data-page="certification"] .v1-fold { scroll-margin-top: var(--hdr-h, 122px); }
main.itil-v1[data-page="certification"] .v1-fold :is(h1, h2, caption)[tabindex="-1"]:focus { outline: none; }
main.itil-v1[data-page="certification"] .v1-fold :is(h1, h2, caption)[tabindex="-1"]:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
main.itil-v1[data-page="certification"] .v1-dark :is(h1, h2, caption)[tabindex="-1"]:focus-visible { outline: var(--focus-on-dark); }

/* Shared freshness / VAT note ("Dates and prices as of 28 November 2026."). */
main.itil-v1[data-page="certification"] .cert-fresh { font-size: 16px; color: var(--mute); margin: 0; }
main.itil-v1[data-page="certification"] .v1-dark .cert-fresh { color: var(--on-dark-2); }

/* Shared action row (stubs and builders): the fold's pink button plus quiet links. */
main.itil-v1[data-page="certification"] :is(.cert-hero__actions, .cert-path__actions, .v1-ccourses__actions, .v1-cformats__actions, .cert-exam__actions, .cert-close__actions) {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5);
}

/* Phones: nothing wider than the screen. */
@media (max-width: 767.98px) {
    main.itil-v1[data-page="certification"] { overflow-x: clip; }
    main.itil-v1[data-page="certification"] .cert-close__br { display: none; }
}
