/**
 * OnlySecurity leaderboard component kit.
 *
 * Shared styles for [onlysecurity_podium], [onlysecurity_self_locate],
 * [onlysecurity_climbers], [onlysecurity_ladder].
 *
 * Brand tokens: navy #2F62AF, slate #1e293b, gold #fcb900.
 */

/*
 * Brand tokens. Defined on both .os-lb (leaderboard component scope,
 * used when shortcodes render outside an .os-lb-page wrapper) and
 * .os-lb-page (the page surface used by /leaderboard/ and
 * /trainer-application/, so .os-tp descendants resolve the vars too).
 */
.os-lb,
.os-lb-page {
    --os-lb-bg: #0d1b2e;
    --os-lb-panel: #16243d;
    --os-lb-panel-2: #1e2f4a;
    --os-lb-border: rgba(255, 255, 255, 0.08);
    --os-lb-text: #e6edf6;
    --os-lb-muted: #94a3b8;
    --os-lb-primary: #2F62AF;
    --os-lb-gold: #fcb900;
    --os-lb-silver: #c8d1dc;
    --os-lb-bronze: #cd7f32;
    --os-lb-up: #4caf50;
    --os-lb-down: #ef4444;
}

.os-lb {
    color: var(--os-lb-text);
    font-family: inherit;
}

.os-lb a { color: inherit; text-decoration: none; }
.os-lb a:hover { text-decoration: underline; }

/* ─────────── Page wrapper (used on /leaderboard-v2/) ─────────── */
.os-lb-page {
    background: #0d1b2e;
    color: #e6edf6;
    padding: 64px 24px 96px;
}

/*
 * Shoptimizer parent theme adds 1em horizontal padding to .col-full at
 * <= 992px, which produces a white frame around the dark leaderboard
 * content on mobile. Target only the specific .col-full that wraps
 * .os-lb-page (descendant :has() match) so the footer's .col-full is
 * left alone.  :has() needs Chrome 105+, Safari 15.4+, Firefox 121+.
 */
.col-full:has(.os-lb-page) {
    padding-right: 0;
    padding-left: 0;
}
/*
 * Page wrapper width. Use the theme's `wide-size` var (1190px on
 * shoptimizer) rather than the narrower `content-size` (900px). The
 * page is structured as a full-bleed dark surface so it should fill
 * the wide container.
 *
 * Critical: the outer Gutenberg group has class "is-layout-constrained"
 * which makes Gutenberg's runtime CSS cap every direct child of the
 * inner wrapper to the narrow `content-size` (900px) with auto margins.
 * Our hero grid, stat grids and FAQ block would collapse to 900px each
 * and read as a broken layout. The override below beats that rule
 * (0,1,1 vs Gutenberg's 0,1,0 from the :where() selector).
 */
.os-lb-page__inner {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin: 0 auto;
}
/*
 * Sign-up page (post 7597) only: wider container so the two-column split
 * (value-prop + 520px registration form) has room and doesn't feel squished.
 * Scoped by page-id so the shared leaderboard page keeps the default wide-size.
 * max-width is inherently responsive — it only caps on viewports wider than
 * 1400px, so no media query is needed.
 */
body.page-id-7597 .os-lb-page__inner {
    max-width: 1400px;
}
/*
 * Gutenberg's runtime CSS:
 *   .is-layout-constrained > :where(...) { max-width: var(--wp--style--global--content-size); }
 * has specificity (0,1,0), same as `.os-lb-page__inner > *`, but its
 * `global-styles-inline-css` is printed AFTER our stylesheet, so on a
 * tie the inline style wins and our children get capped to 900px.
 * Chaining `.is-layout-constrained` bumps us to (0,2,1) so we beat it.
 * Repeat for the longer `wp-block-group-is-layout-constrained` class
 * that Gutenberg also emits on the same element.
 */
.os-lb-page__inner.is-layout-constrained > *,
.os-lb-page__inner.wp-block-group-is-layout-constrained > * {
    max-width: 100%;
}

/*
 * Gutenberg's runtime also sets `margin-block-end: 0` on every child
 * of an .is-layout-constrained wrapper, which clobbers our explicit
 * `margin-bottom` on section classes at 0,1,0 specificity. Chain
 * `.os-lb-page__inner >` to bump to 0,2,0 so our intended gaps win.
 */
.os-lb-page__inner > .os-tp-hero      { margin-bottom: 64px; }
.os-lb-page__inner > .os-tp-split     { margin-bottom: 80px; }
.os-lb-page__inner > .os-tp-sec       { margin-bottom: 32px; }
.os-lb-page__inner > .os-tp-stat-grid { margin-bottom: 80px; }
.os-lb-page__inner > .os-tp-process   { margin-bottom: 80px; }
.os-lb-page__inner > .os-tp-faq       { margin-bottom: 80px; }
.os-lb-page__hero { text-align: center; margin-bottom: 48px; }
.os-lb-page__hero h1 {
    font-size: 44px;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #fff;
}
.os-lb-page__hero p {
    color: #94a3b8;
    margin: 0;
    font-size: 17px;
}
.os-lb-page__section { margin: 56px 0 20px; }
.os-lb-page__section h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #fff;
    letter-spacing: -0.01em;
}
.os-lb-page__section p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}
.os-lb-page__cta {
    margin-top: 56px;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}
.os-lb-page__cta h2 { margin: 0 0 8px; font-size: 28px; color: #fff; }
.os-lb-page__cta p { margin: 0 0 20px; color: #94a3b8; }
.os-lb-page__cta a {
    display: inline-block;
    background: #2F62AF;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}
.os-lb-page__cta a:hover { background: #3b78d0; text-decoration: none; }

@media (max-width: 760px) {
    .os-lb-page { padding: 32px 16px 64px; }
    .os-lb-page__hero h1 { font-size: 32px; }
}

/* ─────────── Podium ─────────── */
.os-lb-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: end;
    gap: 16px;
}
.os-lb-podium__card {
    background: linear-gradient(180deg, var(--os-lb-panel) 0%, var(--os-lb-panel-2) 100%);
    border: 1px solid var(--os-lb-border);
    border-radius: 20px;
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
}
.os-lb-podium__card--1 {
    padding-top: 36px;
    border-color: rgba(252, 185, 0, 0.35);
    box-shadow: 0 12px 40px -10px rgba(252, 185, 0, 0.25);
}
.os-lb-podium__crown {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--os-lb-bg);
    border: 1px solid var(--os-lb-border);
    font-size: 18px;
    font-weight: 700;
}
.os-lb-podium__card--1 .os-lb-podium__crown {
    background: linear-gradient(135deg, #fcb900, #f59e0b);
    border-color: var(--os-lb-gold);
    color: #1a1300;
}
.os-lb-podium__card--2 .os-lb-podium__crown {
    background: linear-gradient(135deg, #e5e7eb, #94a3b8);
    border-color: var(--os-lb-silver);
    color: #111;
}
.os-lb-podium__card--3 .os-lb-podium__crown {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    border-color: var(--os-lb-bronze);
    color: #fff;
}
.os-lb-podium__avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--os-lb-border);
    object-fit: cover;
    display: block;
    margin: 0 auto 14px;
    background: #1e293b;
}
.os-lb-podium__card--1 .os-lb-podium__avatar img { width: 120px; height: 120px; border-color: var(--os-lb-gold); }
.os-lb-podium__card--2 .os-lb-podium__avatar img { border-color: var(--os-lb-silver); }
.os-lb-podium__card--3 .os-lb-podium__avatar img { border-color: var(--os-lb-bronze); }

.os-lb-podium__name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}
.os-lb-podium__card--1 .os-lb-podium__name { font-size: 22px; }

.os-lb-rank-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(47, 98, 175, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(47, 98, 175, 0.45);
    margin: 6px 0 12px;
}
.os-lb-podium__points {
    font-size: 16px;
    color: var(--os-lb-muted);
    margin: 0;
}
.os-lb-podium__points b {
    color: var(--os-lb-text);
    font-weight: 600;
}

.os-lb-empty {
    color: var(--os-lb-muted);
    text-align: center;
    padding: 24px;
}

/* ─────────── Self-locate strip ─────────── */
.os-lb-self-locate {
    background: linear-gradient(90deg, rgba(47, 98, 175, 0.18), rgba(47, 98, 175, 0.02));
    border: 1px solid rgba(47, 98, 175, 0.45);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--os-lb-text);
}
.os-lb-self-locate__pos {
    font-size: 24px;
    font-weight: 700;
    color: #93c5fd;
    line-height: 1.2;
}
.os-lb-self-locate__meta {
    color: var(--os-lb-muted);
    font-size: 14px;
    margin-top: 2px;
}
.os-lb-self-locate__meta b {
    color: var(--os-lb-text);
    font-weight: 600;
}

@media (max-width: 760px) {
    .os-lb-self-locate { flex-direction: column; align-items: flex-start; }
}

/* ─────────── Climbers ─────────── */
.os-lb-climbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.os-lb-climbers__card {
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.os-lb-climbers__avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    display: block;
}
.os-lb-climbers__info { min-width: 0; flex: 1; }
.os-lb-climbers__name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.os-lb-climbers__rank {
    font-size: 12px;
    color: var(--os-lb-muted);
    margin-top: 2px;
}
.os-lb-climbers__gain {
    font-size: 12px;
    color: var(--os-lb-up);
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 760px) {
    .os-lb-climbers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .os-lb-climbers { grid-template-columns: 1fr; }
    .os-lb-climbers__rank { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ─────────── Ladder ─────────── */
.os-lb-ladder {
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 16px;
    overflow: hidden;
}
.os-lb-ladder__row {
    display: grid;
    grid-template-columns: 56px 56px 1fr 140px 110px;
    align-items: center;
    padding: 14px 20px;
    gap: 16px;
    border-top: 1px solid var(--os-lb-border);
}
.os-lb-ladder__row:first-child { border-top: 0; }
.os-lb-ladder__row--head {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--os-lb-muted);
}
.os-lb-ladder__row--me {
    background: linear-gradient(90deg, rgba(47, 98, 175, 0.18), transparent);
    border-left: 3px solid var(--os-lb-primary);
    padding-left: 17px;
}
.os-lb-ladder__pos {
    font-weight: 700;
    font-size: 18px;
    color: var(--os-lb-muted);
}
.os-lb-ladder__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    display: block;
}
.os-lb-ladder__name {
    font-weight: 600;
    font-size: 15px;
}
.os-lb-ladder__you {
    display: inline-block;
    background: var(--os-lb-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.os-lb-ladder__rank .os-lb-rank-pill { margin: 0; }
.os-lb-ladder__points {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

@media (max-width: 760px) {
    .os-lb-ladder__row {
        grid-template-columns: 36px 36px 1fr auto;
        gap: 10px;
        padding: 12px 14px;
    }
    .os-lb-ladder__row--me { padding-left: 11px; }
    .os-lb-ladder__rank { display: none; }
    .os-lb-ladder__row--head .os-lb-ladder__rank { display: none; }
    .os-lb-ladder__points { text-align: right; }
}
/* Head cells carry the row classes so the phone rules above reach them; keep the head's own type. */
.os-lb-ladder__row--head > div { font-size: inherit; font-weight: inherit; color: inherit; }

/* ─────────── Rank browser (tabbed) ─────────── */
.os-lb-rb__radio {
    /* Visually hidden but accessible (still focusable for keyboard users). */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.os-lb-rb__tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.os-lb-rb__tab {
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    color: var(--os-lb-text);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.os-lb-rb__tab:hover {
    background: var(--os-lb-panel-2);
}
.os-lb-rb__count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #aebbcc; /* 5.8:1 on the tab panel; --os-lb-muted gave 4.41:1 */
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}
.os-lb-rb__panels {
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 16px;
    padding: 24px;
}
.os-lb-rb__panel { display: none; }
.os-lb-rb__earners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}
.os-lb-rb__earner {
    text-align: center;
    color: var(--os-lb-text);
    text-decoration: none;
}
.os-lb-rb__earner:hover { text-decoration: none; }
.os-lb-rb__earner:hover .os-lb-rb__earner-name { text-decoration: underline; }
.os-lb-rb__earner img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    display: block;
    margin: 0 auto 6px;
}
.os-lb-rb__earner-name {
    display: block;
    font-size: 12px;
    color: var(--os-lb-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.os-lb-rb__empty {
    color: var(--os-lb-muted);
    text-align: center;
    padding: 24px;
    margin: 0;
}
.os-lb-rb__more {
    color: var(--os-lb-muted);
    text-align: center;
    margin: 16px 0 0;
    font-size: 13px;
}

/*
 * Pure-CSS tab activation. Radio inputs are direct children of .os-lb-rb,
 * so :nth-of-type(N):checked aligns positionally with the Nth tab label
 * inside .os-lb-rb__tabs and the Nth panel inside .os-lb-rb__panels.
 * Supports up to 10 ranks per browser instance; bump this list if a
 * rank type ever gets more than 10 tiers.
 */
.os-lb-rb__radio:nth-of-type(1):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(1),
.os-lb-rb__radio:nth-of-type(2):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(2),
.os-lb-rb__radio:nth-of-type(3):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(3),
.os-lb-rb__radio:nth-of-type(4):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(4),
.os-lb-rb__radio:nth-of-type(5):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(5),
.os-lb-rb__radio:nth-of-type(6):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(6),
.os-lb-rb__radio:nth-of-type(7):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(7),
.os-lb-rb__radio:nth-of-type(8):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(8),
.os-lb-rb__radio:nth-of-type(9):checked  ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(9),
.os-lb-rb__radio:nth-of-type(10):checked ~ .os-lb-rb__panels > .os-lb-rb__panel:nth-of-type(10) {
    display: block;
}
.os-lb-rb__radio:nth-of-type(1):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(1),
.os-lb-rb__radio:nth-of-type(2):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(2),
.os-lb-rb__radio:nth-of-type(3):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(3),
.os-lb-rb__radio:nth-of-type(4):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(4),
.os-lb-rb__radio:nth-of-type(5):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(5),
.os-lb-rb__radio:nth-of-type(6):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(6),
.os-lb-rb__radio:nth-of-type(7):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(7),
.os-lb-rb__radio:nth-of-type(8):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(8),
.os-lb-rb__radio:nth-of-type(9):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(9),
.os-lb-rb__radio:nth-of-type(10):checked ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(10) {
    background: var(--os-lb-primary);
    border-color: var(--os-lb-primary);
    color: #fff;
}
.os-lb-rb__radio:nth-of-type(1):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(1) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(2):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(2) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(3):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(3) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(4):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(4) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(5):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(5) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(6):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(6) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(7):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(7) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(8):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(8) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(9):checked  ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(9) .os-lb-rb__count,
.os-lb-rb__radio:nth-of-type(10):checked ~ .os-lb-rb__tabs > .os-lb-rb__tab:nth-of-type(10) .os-lb-rb__count {
    background: rgba(0, 0, 0, 0.22); /* white-tinted chip gave 3.55:1 on the active tab */
    color: #fff;
}
.os-lb-rb__radio:focus-visible ~ .os-lb-rb__tabs > .os-lb-rb__tab {
    outline: 2px solid transparent;
}
.os-lb-rb__radio:focus-visible ~ .os-lb-rb__tabs > .os-lb-rb__tab[for="<see-via-attr>"] {
    /* :focus-visible on hidden radio doesn't propagate cleanly to the label;
       keyboard-focus styling falls back to label:focus-within in browsers
       that support it. */
}
.os-lb-rb__tab:focus-within {
    outline: 2px solid var(--os-lb-primary);
    outline-offset: 2px;
}

/* ──────────────────────────────────────────────────────────────────
 * Trainer Application page (.os-tp-page).
 * Same brand tokens as .os-lb. Reuses .os-lb-page wrapper.
 * Themes [tutor_instructor_registration_form] output inside .os-tp-form.
 * ────────────────────────────────────────────────────────────────── */

.os-tp { color: var(--os-lb-text); }
.os-tp a { color: #93c5fd; text-decoration: none; }
.os-tp a:hover { text-decoration: underline; }

/* Hero, copy + form side by side */
.os-tp-hero {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 64px;
}
/*
 * Heading + lede are scoped to .os-tp-hero-copy (not .os-tp-hero) so
 * they survive the split-layout restructure, where the hero copy lives
 * inside .os-tp-split-main and the .os-tp-hero wrapper is gone. Without
 * this the H1 fell back to the theme's dark default colour on the dark
 * blue page.
 */
.os-tp-hero-copy h1 {
    font-size: 48px;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 16px;
    color: #fff;
}
.os-tp-hero-copy h1 .accent { color: var(--os-lb-gold); }
.os-tp-hero-copy .lede {
    color: var(--os-lb-muted);
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 28px;
    max-width: 460px;
}

/* Hero 3-stat strip */
.os-tp-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 520px;
}
.os-tp-hero-stat {
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 12px;
    padding: 16px;
}
.os-tp-hero-stat b {
    font-size: 22px;
    color: var(--os-lb-gold);
    display: block;
    line-height: 1;
}
.os-tp-hero-stat span {
    font-size: 12px;
    color: var(--os-lb-muted);
    margin-top: 6px;
    display: block;
}

/* Form card, host for [tutor_instructor_registration_form] */
.os-tp-form {
    background: linear-gradient(180deg, var(--os-lb-panel) 0%, var(--os-lb-panel-2) 100%);
    border: 1px solid var(--os-lb-border);
    border-radius: 20px;
    padding: 32px;
    position: sticky;
    top: 24px;
}
.os-tp-form h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #fff;
}
.os-tp-form .sub {
    color: var(--os-lb-muted);
    margin: 0 0 20px;
    font-size: 14px;
}

/* Override Tutor's emitted form styles inside the dark card */
.os-tp-form #tutor-registration-wrap { width: 100%; }
.os-tp-form .tutor-form-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
.os-tp-form .tutor-form-col-6 { flex: 1 1 calc(50% - 6px); min-width: 0; }
/* min-width 0 (DEV-518): register_form prints the 304 px reCAPTCHA into this
 * column, and without it the column grew to 304 px at phone width, taking the
 * Referral code field beside it past the card's right edge. */
.os-tp-form .tutor-form-col-12 { flex: 1 1 100%; min-width: 0; }
.os-tp-form .tutor-form-group {
    margin-bottom: 14px;
    padding: 0;
}
.os-tp-form .tutor-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--os-lb-muted);
    margin: 0 0 6px;
}
.os-tp-form .tutor-form-group input[type="text"],
.os-tp-form .tutor-form-group input[type="email"],
.os-tp-form .tutor-form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: #0b1729;
    border: 1px solid var(--os-lb-border);
    border-radius: 10px;
    color: var(--os-lb-text);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}
/*
 * Focus state. Tutor core ships `.tutor-form-group input:not([type=submit]):focus
 * { background:#fff }` at the same (0,3,1) specificity as a plain
 * `.os-tp-form .tutor-form-group input:focus`, so on a load-order tie its white
 * background wins and our light `--os-lb-text` becomes invisible (light-on-light).
 * Scoping to the input type bumps us to (0,4,1) so we beat it without !important,
 * and we pin both background AND colour to keep the field dark + readable on focus.
 */
.os-tp-form .tutor-form-group input[type="text"]:focus,
.os-tp-form .tutor-form-group input[type="email"]:focus,
.os-tp-form .tutor-form-group input[type="password"]:focus {
    outline: none;
    background: #0b1729;
    color: var(--os-lb-text);
    border-color: var(--os-lb-primary);
    box-shadow: 0 0 0 3px rgba(47, 98, 175, 0.25);
}
/*
 * Defeat browser autofill (Chrome/Edge/Safari) which forces a white/
 * yellow background and the OS's default dark text colour over our
 * dark inputs. -webkit-text-fill-color overrides the autofill text
 * colour; the box-shadow trick paints the field with our dark colour
 * since you can't override the autofill background directly.
 */
.os-tp-form .tutor-form-group input:-webkit-autofill,
.os-tp-form .tutor-form-group input:-webkit-autofill:hover,
.os-tp-form .tutor-form-group input:-webkit-autofill:focus,
.os-tp-form .tutor-form-group input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--os-lb-text);
    -webkit-box-shadow: 0 0 0 1000px #0b1729 inset;
    caret-color: var(--os-lb-text);
    transition: background-color 9999s ease-in-out 0s;
}
/*
 * Tutor v4 (4.x) registration inputs. v4 renders each field as
 * `.tutor-input-field > input.tutor-form-control.tutor-input`, NOT the v3
 * `.tutor-form-group > input[type=...]` the rules above target (and on
 * /trainer-application/ there is no .tutor-form-group wrapper at all). Worse,
 * v4's empty-field rule
 *   .tutor-input-field .tutor-input:placeholder-shown:not(:focus):not(:disabled)
 * has specificity (0,5,0) and paints the field light (--tutor-surface-l3),
 * out-weighing the v3 skin (0,3,1), so on the dark card the inputs rendered
 * light grey. Match v4's structure AND the placeholder-shown state so the dark
 * skin wins without !important (our selector reaches (0,6,0)). No-ops on v3
 * (no .tutor-input-field there). Verified on the rc.2 clone 2026-07-03:
 * /sign-up/ + /trainer-application/ inputs go from rgb(245,245,246) to #0b1729.
 */
.os-tp-form .tutor-input-field .tutor-input,
.os-tp-form .tutor-input-field .tutor-input:placeholder-shown:not(:focus):not(:disabled) {
    background-color: #0b1729;
    color: var(--os-lb-text);
    border-color: var(--os-lb-border);
}
.os-tp-form .tutor-input-field .tutor-input:focus {
    background-color: #0b1729;
    color: var(--os-lb-text);
    border-color: var(--os-lb-primary);
    box-shadow: 0 0 0 3px rgba(47, 98, 175, 0.25);
    outline: none;
}
.os-tp-form .tutor-input-field .tutor-input::placeholder { color: var(--os-lb-muted); }
.os-tp-form .tutor-input-field .tutor-input:-webkit-autofill,
.os-tp-form .tutor-input-field .tutor-input:-webkit-autofill:hover,
.os-tp-form .tutor-input-field .tutor-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--os-lb-text);
    -webkit-box-shadow: 0 0 0 1000px #0b1729 inset;
    caret-color: var(--os-lb-text);
    transition: background-color 9999s ease-in-out 0s;
}
/* Password strength + show-hide controls (Tutor's UI) */
.os-tp-form .tutor-password-field { position: relative; }
.os-tp-form .show-hide-btn { color: var(--os-lb-muted); }
.os-tp-form .tutor-password-strength-hint .indicator span {
    background: rgba(255, 255, 255, 0.1);
}
.os-tp-form .tutor-password-strength-hint .indicator .strong { background: var(--os-lb-up); }
.os-tp-form .tutor-password-strength-hint .text { color: var(--os-lb-muted); }
/* Terms checkbox row */
.os-tp-form #tutor-terms-conditions + label { color: var(--os-lb-muted); font-size: 13px; }
.os-tp-form .tutor-d-flex { gap: 10px; }
/* Submit button */
.os-tp-form .tutor-btn.tutor-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--os-lb-primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}
.os-tp-form .tutor-btn.tutor-btn-primary:hover {
    background: #3b78d0;
}
/* reCAPTCHA breathing room */
.os-tp-form .g-recaptcha { margin: 4px 0 12px; }
/* Tutor's success/error notice colours */
.os-tp-form .tutor-notice { border-radius: 10px; padding: 12px 14px; }

/*
 * After a successful registration, [tutor_instructor_registration_form]
 * replaces the form with a confirmation block that uses Tutor's own
 * color utility classes (.tutor-color-black for the headline,
 * .tutor-color-secondary for the subhead). On our dark form-card those
 * render black-on-dark and grey-on-dark, basically unreadable.
 * Repaint them to match our palette. Leaves status colours
 * (.tutor-color-success / -danger / -warning) alone since those carry
 * meaning.
 */
.os-tp-form .tutor-instructor-application-body .tutor-color-black,
.os-tp-form .tutor-color-black {
    color: var(--os-lb-text);
}
.os-tp-form .tutor-instructor-application-body .tutor-color-secondary,
.os-tp-form .tutor-color-secondary {
    color: var(--os-lb-muted);
}
/* "Go to Dashboard" CTA in the success state, keep Tutor's white
 * text but swap their primary blue for our brand primary. */
.os-tp-form .tutor-instructor-apply-button .tutor-bg-primary {
    background: var(--os-lb-primary);
}
.os-tp-form .tutor-instructor-apply-button .tutor-bg-primary:hover {
    background: #3b78d0;
}

/* "After you apply" expectation strip below the submit */
.os-tp-form-aftermath {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--os-lb-border);
    font-size: 13px;
    color: var(--os-lb-muted);
    line-height: 1.55;
}
.os-tp-form-aftermath b { color: var(--os-lb-text); }

/*
 * White form panel (/trainer-application/ and /sign-up/), approved by the
 * operator 2026-10-24 (_local/ux-form-white/review.html in the workspace).
 * The card is the one bright object on the dark page. Re-pointing the three
 * tokens the rules above read flips every label, hint, border and success
 * message in one place; the rules below cover what is hard-coded dark in the
 * block above (card fill, input fill, autofill, links, reCAPTCHA surround).
 * The submit button keeps --os-lb-primary, the same blue as the rest of the
 * site. Tokens are set on .os-tp-form only, so the rest of the page keeps the
 * dark palette.
 */
.os-tp-form {
    --os-lb-text: #0f172a;
    --os-lb-muted: #475569;
    --os-lb-border: #cbd5e1;
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    color: var(--os-lb-text);
}
.os-tp-form h2 { color: #0f172a; }
.os-tp-form .tutor-form-group label { color: #1e293b; }
.os-tp-form .tutor-form-group input[type="text"],
.os-tp-form .tutor-form-group input[type="email"],
.os-tp-form .tutor-form-group input[type="password"],
.os-tp-form .tutor-form-group input[type="text"]:focus,
.os-tp-form .tutor-form-group input[type="email"]:focus,
.os-tp-form .tutor-form-group input[type="password"]:focus {
    background: #f8fafc;
    color: #0f172a;
}
.os-tp-form .tutor-form-group input[type="text"]:focus,
.os-tp-form .tutor-form-group input[type="email"]:focus,
.os-tp-form .tutor-form-group input[type="password"]:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 98, 175, 0.22);
}
.os-tp-form .tutor-form-group input:-webkit-autofill,
.os-tp-form .tutor-form-group input:-webkit-autofill:hover,
.os-tp-form .tutor-form-group input:-webkit-autofill:focus,
.os-tp-form .tutor-form-group input:-webkit-autofill:active {
    -webkit-text-fill-color: #0f172a;
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
    caret-color: #0f172a;
}
.os-tp-form .tutor-input-field .tutor-input,
.os-tp-form .tutor-input-field .tutor-input:placeholder-shown:not(:focus):not(:disabled) {
    background-color: #f8fafc;
    color: #0f172a;
}
.os-tp-form .tutor-input-field .tutor-input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(47, 98, 175, 0.22);
}
.os-tp-form .tutor-input-field .tutor-input::placeholder { color: #64748b; }
.os-tp-form .tutor-input-field .tutor-input:-webkit-autofill,
.os-tp-form .tutor-input-field .tutor-input:-webkit-autofill:hover,
.os-tp-form .tutor-input-field .tutor-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
    caret-color: #0f172a;
}
.os-tp-form .tutor-password-strength-hint .indicator span { background: #e2e8f0; }
.os-tp-form a { color: #2f62af; text-decoration: underline; }
.os-tp-form a:hover { color: #264f98; }
.os-tp-form .tutor-btn.tutor-btn-primary,
.os-tp-form .tutor-btn.tutor-btn-primary:hover,
.os-tp-form .tutor-instructor-apply-button .tutor-bg-primary,
.os-tp-form .tutor-instructor-apply-button .tutor-bg-primary:hover { color: #fff; text-decoration: none; }
.os-tp-form .tutor-btn.tutor-btn-primary:hover,
.os-tp-form .tutor-instructor-apply-button .tutor-bg-primary:hover { background: #264f98; }
.os-tp-form-aftermath { border-top-color: #e2e8f0; }

/*
 * Grey cards beside the white form, approved by the operator 2026-10-24
 * (_local/ux-form-white/final-compare.html, option B on both pages). Same
 * neutral card grey as the homepage tune layer. Only a page that carries the
 * form (/trainer-application/ and /sign-up/) matches, so the leaderboard and
 * other os-lb pages keep their navy cards. The page backdrop is unchanged.
 * The form sets its own --os-lb-border above, so its fields keep their border.
 */
.os-tp:has(.os-tp-form) {
    --os-lb-panel: #212a37;
    --os-lb-panel-2: #283241;
    --os-lb-border: #323e50;
}

/* Centered section heading */
.os-tp-sec { text-align: center; margin-bottom: 32px; }
.os-tp-sec h2 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -0.01em;
    color: #fff;
}
.os-tp-sec p {
    margin: 0 auto;
    color: var(--os-lb-muted);
    font-size: 16px;
    max-width: 560px;
}

/* 6-stat mid grid */
.os-tp-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}
.os-tp-stat-box {
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.os-tp-stat-box .v {
    color: var(--os-lb-gold);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    line-height: 1.1;
}
.os-tp-stat-box .l {
    color: var(--os-lb-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* 3-step process */
.os-tp-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}
.os-tp-step {
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
}
.os-tp-step .n {
    position: absolute;
    top: 16px;
    right: 20px;
    color: var(--os-lb-gold);
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    opacity: 0.6;
}
/* padding-right reserves space for the absolute-positioned step number */
.os-tp-step h3 { margin: 0 0 8px; padding-right: 44px; font-size: 17px; color: #fff; }
.os-tp-step p { margin: 0; color: var(--os-lb-muted); font-size: 14px; line-height: 1.5; }

/* FAQ accordion */
.os-tp-faq {
    margin-bottom: 80px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.os-tp-faq details {
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}
.os-tp-faq summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}
.os-tp-faq summary::-webkit-details-marker { display: none; }
.os-tp-faq summary::after {
    content: "+";
    color: var(--os-lb-muted);
    font-size: 22px;
    line-height: 1;
}
.os-tp-faq details[open] summary::after { content: "−"; }
.os-tp-faq details[open] { background: var(--os-lb-panel-2); }
.os-tp-faq .answer {
    padding: 0 22px 18px;
    color: var(--os-lb-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Closing CTA: homepage closing band gradient (the purple end went 2026-10-24) */
.os-tp-closing {
    background:
        radial-gradient(40% 70% at 78% 55%, rgba(252, 185, 0, 0.08), transparent 70%),
        linear-gradient(120deg, #1b2a44 0%, #18202c 55%, #131518 100%);
    border: 1px solid var(--os-lb-border);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
}
.os-tp-closing h2 { margin: 0 0 8px; font-size: 28px; color: #fff; }
.os-tp-closing p { margin: 0 0 20px; color: var(--os-lb-muted); }
/* Button-styled CTA only. Inline <a> in the paragraph copy below
 * should read as a regular link, not a second button. */
.os-tp-closing .os-tp-closing__btn {
    display: inline-block;
    background: var(--os-lb-gold);
    color: #1a1300;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.os-tp-closing .os-tp-closing__btn:hover { text-decoration: none; opacity: 0.92; }
.os-tp-closing p a {
    color: #93c5fd;
    text-decoration: underline;
}
.os-tp-closing p a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

@media (max-width: 880px) {
    .os-tp-hero { grid-template-columns: 1fr; gap: 32px; }
    .os-tp-form { order: -1; position: static; padding: 24px; }
    .os-tp-hero h1 { font-size: 32px; }
    .os-tp-process { grid-template-columns: 1fr; }
    /* 6-stat grid → 2-col on mobile so it doesn't become a tall stack */
    .os-tp-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .os-tp-stat-box { padding: 18px 14px; }
    .os-tp-stat-box .v { font-size: 18px; }
    .os-tp-stat-box .l { font-size: 12px; }
}

@media (max-width: 760px) {
    .os-lb-podium { grid-template-columns: 1fr; }
    .os-lb-podium__card--1 { order: 1; }
    .os-lb-podium__card--2 { order: 2; }
    .os-lb-podium__card--3 { order: 3; }
}

/* ──────────────────────────────────────────────────────────────────
 * Trainer Application v4 form polish (KSEC UI tweaks 2026-05-20).
 *
 * Three issues addressed:
 *  1. Tutor v4 swapped `.tutor-form-group` for `.tutor-input-field` and
 *     the labels lost our white/muted styling, rendering as dark text on
 *     the dark blue form card. Repeat the override for the v4 markup.
 *  2. The grey body text was hard to read on dark blue. Lift the muted
 *     token on the trainer-application surface only (don't touch the
 *     shared leaderboard palette).
 *  3. Tutor v4's `#tutor-registration-wrap` carries inline
 *     `margin: 40px auto;` from the vendor template, producing a visible
 *     gap between the form's header/description and the first input.
 *     Reset it inside our card.
 * ────────────────────────────────────────────────────────────────── */

.os-tp { --os-lb-muted: #b8c4d6; }

.os-tp-form .tutor-input-field { margin-bottom: 14px; padding: 0; }
.os-tp-form .tutor-input-field > label,
.os-tp-form .tutor-input-field .tutor-block {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--os-lb-muted);
    margin: 0 0 6px;
}
.os-tp-form .tutor-form-control,
.os-tp-form input.tutor-input {
    width: 100%;
    padding: 12px 14px;
    background: #0b1729;
    border: 1px solid var(--os-lb-border);
    border-radius: 10px;
    color: var(--os-lb-text);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}
.os-tp-form .tutor-form-control:focus,
.os-tp-form input.tutor-input:focus {
    outline: none;
    border-color: var(--os-lb-primary);
    box-shadow: 0 0 0 3px rgba(47, 98, 175, 0.25);
}
.os-tp-form .tutor-password-strength-checker .tutor-form-wrap input { width: 100%; }

/*
 * Reset the v4 wrapper styling. On the live render the wrap drops the
 * `.tutor-card` class but still picks up `padding: 40px 0 32px` from
 * somewhere in the Tutor v4 cascade, producing the visible gap between
 * the form header/description and the first input. Selector matches
 * with or without `.tutor-card`.
 */
.os-tp-form #tutor-registration-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* T&C small print + submit spacing inside the dark card */
.os-tp-form .tutor-small,
.os-tp-form .tutor-small a { color: var(--os-lb-muted); }
.os-tp-form .tutor-small a { text-decoration: underline; }
.os-tp-form .tutor-btn.tutor-btn-block { width: 100%; }

/*
 * Registration fee promotion banner, above the form inside the form card
 * (front-end/onlysecurity-trainer-promo.php). Rendered only while the
 * promotion window is open. A gold edge on a gold tint over the card. The card
 * is white since the white form panel, so inside .os-tp-form the headline, link
 * and countdown are restated dark below (white stays for any dark host).
 */
.os-tp-promo {
    background: rgba(252, 185, 0, 0.12);
    border: 1px solid rgba(252, 185, 0, 0.45);
    border-left: 4px solid var(--os-lb-gold);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 20px;
    color: var(--os-lb-text);
}
.os-tp-promo-eyebrow {
    display: inline-block;
    background: var(--os-lb-gold);
    color: var(--os-lb-bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 9px;
    margin-bottom: 8px;
}
.os-tp-promo p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--os-lb-text); }
.os-tp-promo p.os-tp-promo-title { font-size: 18px; font-weight: 700; line-height: 1.25; color: #fff; }
.os-tp-promo p.os-tp-promo-meta { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.os-tp-promo .os-tp-promo-left { display: block; margin: 2px 0; font-weight: 700; color: var(--os-lb-gold); font-variant-numeric: tabular-nums; }
.os-tp-promo .os-tp-promo-left[hidden] { display: none; }
.os-tp-promo a,
.os-tp .os-tp-promo a { color: #fff; text-decoration: underline; font-weight: 600; }
/* Inside the white form card the gold tint composites to about #fff7e0: dark
 * headline (about 16:1), blue link (about 5.7:1), dark gold countdown (about 5:1). */
.os-tp-form .os-tp-promo p.os-tp-promo-title { color: #0f172a; }
.os-tp-form .os-tp-promo a,
.os-tp .os-tp-form .os-tp-promo a { color: #2f62af; }
.os-tp-form .os-tp-promo a:hover,
.os-tp .os-tp-form .os-tp-promo a:hover { color: #264f98; }
.os-tp-form .os-tp-promo .os-tp-promo-left { color: #8a6100; }

/* ──────────────────────────────────────────────────────────────────
 * Two-column split layout for /trainer-application/ and /sign-up/.
 *
 * The page markup (raw wp:html blocks) wraps the hero copy + selected
 * value-prop sections in `.os-tp-split-main` (left) and the
 * registration form in `.os-tp-split-aside` (right). Sections that want
 * full width (FAQ, leaderboard podium, closing CTA) live OUTSIDE
 * `.os-tp-split` and render full-width below it.
 *
 * History: a 1.0.178 CSS-only attempt (display:grid + display:contents
 * + form row-span) was reverted — the ~1800px form inflated the spanned
 * grid rows and left large gaps. The fix is this block restructure,
 * which gives the two columns independent heights via flexbox.
 *
 * Desktop ≥992px: side by side, form sticky in the aside.
 * Below 992px: stacked, form pulled to the top (order:-1) so neither
 * the tall trainer form nor the short member form is pushed below the
 * value-prop content on mobile.
 * ────────────────────────────────────────────────────────────────── */
.os-tp-split { display: block; }

@media (min-width: 992px) {
    .os-tp-split {
        display: flex;
        align-items: flex-start;
        gap: 48px;
    }
    .os-tp-split-main {
        flex: 1 1 auto;
        min-width: 0;
    }
    .os-tp-split-aside {
        flex: 0 0 520px;
        position: sticky;
        top: 24px;
    }
    /* The aside now owns the sticky behaviour; drop the form's own. */
    .os-tp-split-aside .os-tp-form { position: static; top: auto; }

    /* Left column: left-align the otherwise-centered section headings,
       and set a comfortable rhythm between the stacked blocks. */
    .os-tp-split-main > .os-tp-hero-copy { margin-bottom: 44px; }
    .os-tp-split-main .os-tp-sec {
        text-align: left;
        margin-bottom: 20px;
    }
    .os-tp-split-main .os-tp-sec p { margin-left: 0; max-width: none; }
    .os-tp-split-main .os-tp-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 44px;
    }
    /*
     * Stack the 3 process steps in the narrow left column. Side-by-side
     * at ~195px each, the big absolute-positioned step number collides
     * with the wrapping h3; full-width cards give it room and read
     * better in a sidebar-style column.
     */
    .os-tp-split-main .os-tp-process {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 0;
    }
}

@media (max-width: 991px) {
    .os-tp-split { display: flex; flex-direction: column; }
    .os-tp-split-aside { order: -1; position: static; }
    .os-tp-split-aside .os-tp-form { padding: 24px; }
    .os-tp-split-main { order: 0; margin-top: 32px; }
}

/* ───────────── Contact page (/contact/, .os-ct) ───────────── */
.os-lb-page__inner > .os-ct-hero   { margin-bottom: 40px; }
.os-lb-page__inner > .os-ct-cards  { margin-bottom: 32px; }
.os-lb-page__inner > .os-ct-social { margin-bottom: 80px; }
.os-ct-hero .os-tp-hero-copy .lede { max-width: 640px; margin-bottom: 0; }
.os-ct-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.os-ct-card {
    display: flex;
    flex-direction: column;
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 16px;
    padding: 28px;
    color: var(--os-lb-text);
}
.os-tp a.os-ct-card:hover { text-decoration: none; background: var(--os-lb-panel-2); }
.os-ct-card--primary { border-color: rgba(252, 185, 0, 0.45); }
.os-ct-card h2 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.os-ct-card p { margin: 0 0 20px; color: var(--os-lb-muted); font-size: 15px; line-height: 1.55; flex: 1; }
.os-ct-go { font-weight: 700; color: #93c5fd; }
.os-ct-go::after { content: " \2192"; }
.os-ct-card--primary .os-ct-go { color: var(--os-lb-gold); }
.os-ct-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 16px 24px;
    background: var(--os-lb-panel);
    border: 1px solid var(--os-lb-border);
    border-radius: 12px;
    font-size: 15px;
}
.os-ct-social span { color: var(--os-lb-muted); }
.os-ct-faq-h { margin: 32px 0 12px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--os-lb-muted); }
.os-ct-faq-h:first-child { margin-top: 0; }
.os-ct .os-tp-faq { max-width: 860px; }
.os-ct .os-tp-faq a { color: #93c5fd; text-decoration: underline; }
@media (max-width: 880px) {
    .os-ct-cards { grid-template-columns: 1fr; }
    .os-ct-hero .os-tp-hero-copy h1 { font-size: 36px; }
    .os-ct-card { padding: 22px; }
}
/* Contact page closing banner: navy panel with the gold edge of the Support card, not the shared indigo gradient */
.os-ct .os-tp-closing {
    background: var(--os-lb-panel);
    border-color: rgba(252, 185, 0, 0.45);
}

/*
 * /leaderboard/ only (the page that carries both the podium and the rank
 * browser). Homepage grey cards, the homepage closing band gradient, and the
 * motion layer approved 2026-10-24 (_local/ux-os-leaderboard-motion/index.html).
 */
.os-lb-page:has(.os-lb-podium):has(.os-lb-rb),
.os-lb-page:has(.os-lb-podium):has(.os-lb-rb) .os-lb {
    --os-lb-panel: #212a37;
    --os-lb-panel-2: #283241;
    --os-lb-border: #323e50;
}
.os-lb-page:has(.os-lb-podium):has(.os-lb-rb) .os-lb-page__cta {
    background:
        radial-gradient(40% 70% at 78% 55%, rgba(252, 185, 0, 0.08), transparent 70%),
        linear-gradient(120deg, #1b2a44 0%, #18202c 55%, #131518 100%);
    border-color: rgba(255, 255, 255, 0.10);
}

/* "You are" progress to the next rank */
.os-lb-self-locate__bar {
    height: 8px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    overflow: hidden;
}
.os-lb-self-locate__bar i {
    display: block;
    height: 100%;
    width: var(--os-lb-fill, 0%);
    background: #5cc8ff;
    border-radius: 8px;
}

/* Ladder row hover */
.os-lb-page:has(.os-lb-podium):has(.os-lb-rb) .os-lb-ladder__row:not(.os-lb-ladder__row--head) {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s;
}
.os-lb-page:has(.os-lb-podium):has(.os-lb-rb) .os-lb-ladder__row:not(.os-lb-ladder__row--head):hover {
    transform: translateX(6px);
    background-color: rgba(92, 200, 255, 0.06);
}

/* Entrance motion: only armed by os-lb-motion.js (adds .os-lb-anim), runs once per visit */
@media (prefers-reduced-motion: no-preference) {
    .os-lb-anim .os-lb-podium:not(.is-in) .os-lb-podium__card,
    .os-lb-anim .os-lb-ladder:not(.is-in) .os-lb-ladder__row:not(.os-lb-ladder__row--head):nth-child(-n+9),
    .os-lb-anim .os-lb-self-locate:not(.is-in) .os-lb-self-locate__bar i {
        opacity: 0;
    }
    .os-lb-anim .os-lb-self-locate:not(.is-in) .os-lb-self-locate__bar i { opacity: 1; width: 0; }
    .os-lb-podium.is-in .os-lb-podium__card { animation: os-lb-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
    .os-lb-podium.is-in .os-lb-podium__card--2 { animation-delay: 0.1s; }
    .os-lb-podium.is-in .os-lb-podium__card--1 {
        animation: os-lb-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s backwards, os-lb-glow 2.6s ease-in-out 1.1s infinite;
    }
    .os-lb-podium.is-in .os-lb-podium__card--3 { animation-delay: 0.4s; }
    .os-lb-ladder.is-in .os-lb-ladder__row:not(.os-lb-ladder__row--head):nth-child(-n+9) {
        animation: os-lb-row-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
        animation-delay: calc((var(--os-lb-i, 1) - 1) * 70ms);
    }
    .os-lb-self-locate.is-in .os-lb-self-locate__bar i { animation: os-lb-fill 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
    .os-lb-anim .os-lb-page:has(.os-lb-podium):has(.os-lb-rb) .os-lb-climbers__gain { animation: os-lb-pulse 2.4s ease-in-out infinite; }
}
@keyframes os-lb-rise { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes os-lb-glow { 50% { box-shadow: 0 0 22px rgba(252, 185, 0, 0.35); } }
@keyframes os-lb-row-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes os-lb-fill { from { width: 0; } to { width: var(--os-lb-fill, 0%); } }
@keyframes os-lb-pulse { 50% { opacity: 0.55; } }

/* ─────────── Scope switch: All time / This month (G12) ─────────── */
.os-lb-scope__radio { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.os-lb-scope__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.os-lb-scope__tab { background: var(--os-lb-panel); border: 1px solid var(--os-lb-border); color: var(--os-lb-text); padding: 10px 18px; min-height: 44px; border-radius: 999px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; user-select: none; }
.os-lb-scope__tab:hover { background: var(--os-lb-panel-2); }
.os-lb-scope__radio--all:checked ~ .os-lb-scope__tabs .os-lb-scope__tab--all,
.os-lb-scope__radio--month:checked ~ .os-lb-scope__tabs .os-lb-scope__tab--month { background: var(--os-lb-primary); border-color: var(--os-lb-primary); color: #fff; }
.os-lb-scope__radio--all:focus-visible ~ .os-lb-scope__tabs .os-lb-scope__tab--all,
.os-lb-scope__radio--month:focus-visible ~ .os-lb-scope__tabs .os-lb-scope__tab--month { outline: 2px solid var(--os-lb-gold); outline-offset: 2px; }
.os-lb-scope__panel { display: none; }
.os-lb-scope__radio--all:checked ~ .os-lb-scope__p-all,
.os-lb-scope__radio--month:checked ~ .os-lb-scope__p-month { display: block; }
.os-lb-scope__note { color: var(--os-lb-muted); font-size: 13px; margin: 0 0 30px; }
.os-lb-scope__panel .os-lb { margin-bottom: 16px; }
.os-lb-self-locate__two { display: flex; gap: 24px; flex-wrap: wrap; width: 100%; }
.os-lb-self-locate__two > .os-lb-self-locate__main + .os-lb-self-locate__main { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: 24px; }
@media (max-width: 760px) {
    .os-lb-self-locate__two > .os-lb-self-locate__main + .os-lb-self-locate__main { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 12px; width: 100%; }
}

/* Top trainers block (DEV-447). Learners finished takes the rank column, kept on phones. */
.os-lb-trainers { margin-top: 8px; }
.os-lb-trainers__learners { margin: 4px 0 0; font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; }
.os-lb-trainers .os-lb-ladder__rank { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
    .os-lb-trainers .os-lb-ladder__row { grid-template-columns: 36px 36px 1fr auto auto; }
    .os-lb-trainers .os-lb-ladder__rank,
    .os-lb-trainers .os-lb-ladder__row--head .os-lb-ladder__rank { display: block; }
}
