/* Career Fixx — glossy finish for every public page, on the site's own violet colours:
   page banners framed like the home hero, glossy pill buttons with a top-left sheen,
   glossy labels and soft "clay" cards (inset highlight on top, inset shade at the bottom).
   Colours stay what each page set; the header is not touched.
   Loaded in the layout after the theme files; the home page adds cf-gloss.css on top. */

/* ══ Tokens ═══════════════════════════════════════════════════════════ */
html {
    --gl-accent: #7c3aed;
    --gl-accent-grad: linear-gradient(135deg, #9b3cf6 0%, #7c3aed 45%, #5b21b6 100%);
    --gl-page: #f7f5fc;
    --gl-card: #ffffff;
    --gl-card-2: #faf8ff;
    --gl-ink: #16122b;
    --gl-text: #4b4763;
    --gl-muted: #6f6b85;
    /* the sheen every glossy surface gets: a soft white spot above its top-left corner */
    --gl-sheen: radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 100%);
    /* main button: violet */
    --gl-btn: var(--gl-sheen), var(--gl-accent-grad);
    --gl-btn-shadow: inset 0 -3px 0 #3b0f86, inset 0 1px 0 rgba(255, 255, 255, .32),
        0 2.77px 2.21px rgba(60, 20, 140, .12), 0 6.65px 5.32px rgba(60, 20, 140, .13), 0 12.52px 10.02px rgba(76, 29, 149, .15), 0 22.34px 17.87px rgba(91, 43, 201, .16);
    /* second button and small surfaces: white */
    --gl-light: var(--gl-sheen), linear-gradient(#ffffff, #ffffff);
    --gl-light-shadow: inset 0 -3px 0 #ebe5f8, inset 0 1px 0 #fff, 0 2.77px 2.21px rgba(60, 20, 140, .1), 0 3px 3px rgba(60, 20, 140, .12);
    /* clay cards */
    --gl-clay: 0 7.77px 2.21px rgba(60, 20, 140, .05), 0 3px 3px rgba(60, 20, 140, .08), inset 0 -8px 0 rgba(91, 33, 182, .05), inset 0 4px 0 rgba(255, 255, 255, .6);
    --gl-clay-hover: 0 18px 30px rgba(76, 29, 149, .1), 0 4px 6px rgba(60, 20, 140, .08), inset 0 -8px 0 rgba(91, 33, 182, .05), inset 0 4px 0 rgba(255, 255, 255, .6);
    /* framed banners and the home hero */
    --gl-frame-gap: 16px;
    --gl-frame-radius: 40px;
    --gl-frame-shine: inset 0 4px 0 rgba(255, 255, 255, .45), inset 0 -8px 0 rgba(91, 33, 182, .06);
}
html[data-theme="dark"] {
    --gl-page: #0e0b1a;
    --gl-card: #1c1733;
    --gl-card-2: #221c3d;
    --gl-ink: #f4f1ff;
    --gl-text: #c8c1e2;
    --gl-muted: #9a93b8;
    --gl-light: var(--gl-sheen), linear-gradient(#221c3d, #221c3d);
    --gl-light-shadow: inset 0 -3px 0 #120d24, inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 3px rgba(0, 0, 0, .4);
    --gl-btn-shadow: inset 0 -3px 0 #3b0f86, inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px rgba(0, 0, 0, .4), 0 14px 26px rgba(91, 43, 201, .25);
    --gl-clay: 0 7.77px 2.21px rgba(0, 0, 0, .3), 0 3px 3px rgba(0, 0, 0, .4), inset 0 -8px 0 rgba(0, 0, 0, .3), inset 0 4px 0 rgba(255, 255, 255, .05);
    --gl-clay-hover: 0 18px 30px rgba(0, 0, 0, .5), 0 4px 6px rgba(0, 0, 0, .4), inset 0 -8px 0 rgba(0, 0, 0, .3), inset 0 4px 0 rgba(255, 255, 255, .05);
    --gl-frame-shine: inset 0 1px 0 rgba(255, 255, 255, .08);
}
@media (max-width: 991.98px) { html { --gl-frame-radius: 32px; } }
@media (max-width: 767.98px) { html { --gl-frame-gap: 10px; --gl-frame-radius: 26px; } }

/* the plain site colour shows around the framed banners, not the body's gradient */
html[data-theme] body.gradient-bg { background: var(--gl-page); }

/* glossy pill button for new markup */
.cfx-gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 0;
    border-radius: 99px;
    background: var(--gl-btn);
    box-shadow: var(--gl-btn-shadow);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cfx-gl-btn:hover { color: #fff; }
.cfx-gl-btn.is-light,
.cfx-gl-btn.is-light:hover { background: var(--gl-light); box-shadow: var(--gl-light-shadow); color: var(--gl-ink); }

/* ══ Page banners: a rounded frame with a gap round it, like the home hero ══ */
html[data-theme] body :is(.rbt-breadcrumb-default, .cfx-about .cfx-ab-hero, .cfx-contact .cfx-co-hero, .cfj .cfj-hero) {
    position: relative;
    isolation: isolate;
    margin-right: var(--gl-frame-gap);
    margin-left: var(--gl-frame-gap);
    border-radius: var(--gl-frame-radius);
    box-shadow: var(--gl-frame-shine);
}
/* the grid texture follows the rounded corners */
html[data-theme] body :is(.rbt-breadcrumb-default, .cfx-ab-hero, .cfx-co-hero, .cfj-hero)::before { border-radius: inherit; }
/* a gap above it too: heroes that start the page directly… */
html[data-theme] body :is(.cfx-about .cfx-ab-hero, .cfx-contact .cfx-co-hero, .cfj .cfj-hero) { margin-top: var(--gl-frame-gap); }
html[data-theme] body .rbt-breadcrumb-default { margin-top: var(--gl-frame-gap); }
/* …and banners that run up under the floating header (cf-header.css pulls them up by the header's room) */
html[data-theme] body .cfx-hdr-spacer ~ .rbt-breadcrumb-default:not(.cfx-hdr-spacer ~ :not(script, style, link, noscript) ~ *) {
    margin-top: calc(var(--gl-frame-gap) - var(--cfx-hdr-space));
}
/* light theme: the home hero's violet ribbon down the right side;
   the short breadcrumb banners get a smaller one tucked into the corner, so it stays off the title */
html[data-theme="light"] body :is(.cfx-about .cfx-ab-sec.cfx-ab-hero, .cfx-contact .cfx-co-hero, .cfj .cfj-hero) {
    background: url(../images/splash/banner-ribbon.svg) right center / cover no-repeat, var(--d-hero) !important;
}
html[data-theme="light"] body .rbt-breadcrumb-default {
    background: url(../images/splash/banner-ribbon.svg) right top / auto 200% no-repeat, var(--d-hero) !important;
}
/* narrow screens: the ribbon runs behind the title, so a lilac veil keeps it faint */
@media (max-width: 767.98px) {
    html[data-theme="light"] body :is(.rbt-breadcrumb-default, .cfx-about .cfx-ab-sec.cfx-ab-hero, .cfx-contact .cfx-co-hero, .cfj .cfj-hero) {
        background: linear-gradient(rgba(241, 235, 254, .78), rgba(241, 235, 254, .78)), url(../images/splash/banner-ribbon.svg) right center / cover no-repeat, var(--d-hero) !important;
    }
}

/* ══ Labels: glossy tags ═════════════════════════════════════════════ */
html[data-theme] body :is(.cfx-ab-badge, .cfj-badge, .rbt-new-badge.rbt-new-badge-one, .cfx-co-faq-badge,
              .cfx-sl-founders-badge, .cfx-sl-team-badge, .cfx-sl-cine-badge, .cfx-sl-reviews-badge, .cfx-sl-skills-badge,
              .cfx-sl-faq-badge, .cfx-sl-why-badge, .cfx-sl-plans-badge, .cfx-sl-choose-badge, .cfx-mgr-badge) {
    border-color: transparent;
    background: var(--gl-light);
    box-shadow: var(--gl-light-shadow);
}

/* ══ Cards: clay (their backgrounds stay as they were) ═══════════════ */
html[data-theme] body :is(.rbt-cat-box, .rbt-shadow-box, .rbt-card,
              .cfx-ab-split, .cfx-ab-feature, .cfx-ab-trainer, .cfx-ab-cert, .cfx-about .cfx-ab-stats li,
              .cfx-co-card, .cfx-co-panel, .cfx-co-faq-list details,
              .cfx-auth-card, .cfx-policy-card, .cfx-policy-doc,
              .cfj-box, .cfj-cat, .cfj-job, .cfj-search, .cfx-pl-steps .cfx-pl-steps-grid > li,
              .cfx-sl-founder-card, .cfx-sl-person, .cfx-sl-note, .cfx-sl-skill, .cfx-sl-faq-item, .cfx-sl-reason,
              .cfx-sl-plan, .cfx-mgr-card, .cfx-sl-cine-card) {
    border-color: transparent;
    box-shadow: var(--gl-clay);
}
html[data-theme] body :is(.rbt-cat-box, .rbt-card, .cfx-ab-feature, .cfx-ab-trainer, .cfx-ab-cert, .cfx-co-card, .cfj-cat, .cfj-job,
              .cfx-pl-steps .cfx-pl-steps-grid > li, .cfx-sl-founder-card, .cfx-sl-person, .cfx-sl-note, .cfx-sl-skill,
              .cfx-sl-reason, .cfx-mgr-card, .cfx-sl-cine-card):hover {
    border-color: transparent;
    box-shadow: var(--gl-clay-hover);
}
/* a little rounder, like the clay cards on the home page */
html[data-theme] body :is(.cfx-ab-split, .cfx-co-panel, .cfx-auth-card, .cfx-policy-doc) { border-radius: 36px; }
html[data-theme] body :is(.cfx-co-card, .cfx-ab-feature, .cfx-ab-trainer, .cfx-ab-cert, .cfj-job, .cfj-box, .cfx-policy-card, .rbt-shadow-box, .rbt-cat-box) { border-radius: 28px; }
html[data-theme] body .cfx-sl-founder-card { border-radius: 40px; }
html[data-theme] body :is(.cfx-sl-note, .cfx-sl-faq-item, .cfx-sl-reason, .cfx-sl-person) { border-radius: 28px; }
html[data-theme] body .cfx-mgr-card { border-radius: 32px; }
html[data-theme] body section.cfx-sl-plans .cfx-sl-plan { border-radius: 36px; }

/* ══ Buttons ══════════════════════════════════════════════════════════ */
/* main: glossy violet pill */
html[data-theme] body :is(.rbt-btn.btn-gradient, .cfx-ab-btn.is-primary, .cfx-co-quick a.is-primary, .cfx-co-form button.cfx-co-submit,
              .cfx-auth-submit, .cfj-search > button, .cfj-view, .cfj-apply:not(.is-done),
              .cfx-sl-why-actions a.is-primary, .cfx-sl-choose-actions a.is-primary, .cfx-sl-skills-cta a, .cfx-sl-train-btn, .cfx-mgr-btn) {
    border: 0;
    border-radius: 99px;
    background: var(--gl-btn);
    box-shadow: var(--gl-btn-shadow);
    color: #fff;
    transition: transform .25s ease, box-shadow .25s ease, gap .25s ease;
}
html[data-theme] body :is(.rbt-btn.btn-gradient, .cfx-ab-btn.is-primary, .cfx-co-quick a.is-primary, .cfx-co-form button.cfx-co-submit,
              .cfx-auth-submit, .cfj-search > button, .cfj-view, .cfj-apply:not(.is-done),
              .cfx-sl-why-actions a.is-primary, .cfx-sl-choose-actions a.is-primary, .cfx-sl-skills-cta a, .cfx-sl-train-btn, .cfx-mgr-btn):hover {
    background: var(--gl-btn);
    box-shadow: var(--gl-btn-shadow);
    color: #fff;
    filter: none;
}
/* the glossy buttons stay put on hover: no lift from the theme (style.css) or the footer (cf-footer.css) */
html[data-theme] body :is(.rbt-btn.btn-gradient, .rbt-btn.btn-white, .rbt-btn.btn-border,
              .cfx-foot .cfx-foot-btn, .cfx-foot .cfx-foot-social a, .cfx-foot .cfx-foot-contact-btn):hover { transform: none; }
/* package buttons keep each package's own colours, with the sheen */
html[data-theme] body .cfx-sl-plans .cfx-sl-plan-btn {
    border-radius: 99px;
    background: var(--gl-sheen), linear-gradient(135deg, var(--a), var(--b));
    box-shadow: inset 0 -3px 0 rgba(20, 5, 50, .35), inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 20px rgba(60, 20, 140, .2);
}
/* second: glossy white pill */
html[data-theme] body :is(.rbt-btn.btn-white, .rbt-btn.btn-border, .cfx-ab-btn.is-ghost, .cfx-co-quick a:not(.is-primary), .cfj-all, .cfx-policy-print,
              .cfx-sl-why-actions a:not(.is-primary), .cfx-sl-choose-actions a:not(.is-primary)) {
    border-color: transparent;
    border-radius: 99px;
    background: var(--gl-light);
    box-shadow: var(--gl-light-shadow);
    color: var(--gl-ink);
}
html[data-theme] body :is(.rbt-btn.btn-white, .rbt-btn.btn-border, .cfx-ab-btn.is-ghost, .cfx-co-quick a:not(.is-primary), .cfx-policy-print):hover {
    border-color: transparent;
    background: var(--gl-light);
    color: var(--gl-accent);
}
html[data-theme="dark"] body :is(.rbt-btn.btn-white, .rbt-btn.btn-border, .cfx-ab-btn.is-ghost, .cfx-co-quick a:not(.is-primary), .cfx-policy-print):hover { color: #d8b4fe; }
html[data-theme] body .cfj-all:hover { background: var(--gl-btn); box-shadow: var(--gl-btn-shadow); color: #fff; }
/* slider arrows: white glossy discs, violet when pointed at */
html[data-theme] body :is(.cfx-sl-arrow, .cfx-mgr-arrow) { border: 0; background: var(--gl-light); box-shadow: var(--gl-light-shadow); color: var(--gl-ink); }
html[data-theme] body :is(.cfx-sl-arrow, .cfx-mgr-arrow):hover { background: var(--gl-btn); box-shadow: var(--gl-btn-shadow); color: #fff; }

/* ══ Log in / register / forgot password card (cf-auth.css) ═══════════ */
/* a soft violet glow behind the card */
html[data-theme] body .cfx-auth .container { position: relative; isolation: isolate; }
html[data-theme] body .cfx-auth .container::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 50%;
    z-index: -1;
    width: min(900px, 90%);
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(155, 60, 246, .28), transparent);
    filter: blur(30px);
    transform: translateX(-50%);
    pointer-events: none;
}
html[data-theme] body .cfx-auth .cfx-auth-card { border-radius: 36px; }
/* the violet side gets the sheen and a glossy rim; its icons become glass tiles */
html[data-theme="light"] body .cfx-auth .cfx-auth-side { background: url(../images/splash/banner-ribbon.svg) right -40px bottom -60px / auto 120% no-repeat, var(--gl-sheen), var(--d-panel); }
html[data-theme="dark"] body .cfx-auth .cfx-auth-side { background: var(--gl-sheen), radial-gradient(380px 280px at 100% 0%, rgba(155, 60, 246, .5), transparent 70%), #0c0820; }
html[data-theme] body .cfx-auth .cfx-auth-side { box-shadow: inset 0 4px 0 rgba(255, 255, 255, .16), inset -8px 0 0 rgba(30, 5, 70, .12); }
html[data-theme] body .cfx-auth-side-icon { background: #fff; box-shadow: inset 0 -3px 0 #e6ddfa, 0 12px 26px rgba(20, 5, 50, .3); color: #7c3aed; }
html[data-theme] body .cfx-auth-side li i { border: 0; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(30, 5, 70, .18); color: #fff; }
html[data-theme] body .cfx-auth-side-note { border: 0; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
/* cf-light turns every span on the violet panel white; the learner badge's icon sits on white */
html[data-theme] body .cfx-auth .cfx-auth-side .cfx-auth-proof-icon,
html[data-theme] body .cfx-auth .cfx-auth-side .cfx-auth-proof-icon i { color: #7c3aed; }
/* the learner count and the tip sit together at the bottom of the panel */
html[data-theme] body .cfx-auth .cfx-auth-proof { margin-top: auto; }
html[data-theme] body .cfx-auth .cfx-auth-proof + .cfx-auth-side-note { margin-top: 0; }
/* fields: sunk in a little, violet glow when typing */
html[data-theme] body .cfx-auth-input { border-radius: 16px; box-shadow: inset 0 2px 4px rgba(60, 20, 140, .06), inset 0 -1px 0 rgba(255, 255, 255, .8); }
html[data-theme="dark"] body .cfx-auth-input { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35); }
html[data-theme] body .cfx-auth-input:focus-within { box-shadow: 0 0 0 4px rgba(124, 58, 237, .14), 0 10px 22px -10px rgba(124, 58, 237, .45); }
html[data-theme] body .cfx-auth-chip { background: var(--gl-light); box-shadow: var(--gl-light-shadow); }
/* "Keep me logged in": a glossy tick box */
html[data-theme] body .cfx-auth .cfx-auth-remember input[type=checkbox] {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--au-line);
    border-radius: 7px;
    background: var(--gl-light);
    box-shadow: var(--gl-light-shadow);
    -webkit-appearance: none;
            appearance: none;
}
html[data-theme] body .cfx-auth .cfx-auth-remember input[type=checkbox]:checked {
    border-color: transparent;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat, var(--gl-btn);
    box-shadow: inset 0 -2px 0 #3b0f86, 0 4px 10px rgba(91, 43, 201, .3);
}
html[data-theme] body .cfx-auth .cfx-auth-remember input[type=checkbox]:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
/* "New to Career Fixx?" link card */
html[data-theme] body .cfx-auth-alt { background: var(--gl-light); box-shadow: var(--gl-light-shadow); }
html[data-theme] body .cfx-auth-alt-icon { background: var(--gl-btn); box-shadow: inset 0 -3px 0 #3b0f86, inset 0 1px 0 rgba(255, 255, 255, .3); }
html[data-theme] body .cfx-auth-help { border-top-style: solid; }

/* ══ Footer: same colours, glossy finish ══════════════════════════════ */
html[data-theme] body .cfx-foot .cfx-foot-cta { box-shadow: inset 0 4px 0 rgba(255, 255, 255, .16), inset 0 -8px 0 rgba(30, 5, 70, .22), 0 20px 40px -22px rgba(76, 29, 149, .55); }
html[data-theme] body .cfx-foot .cfx-foot-btn { border-radius: 99px; }
html[data-theme="light"] body .cfx-foot .cfx-foot-btn.is-primary { background: var(--gl-sheen), linear-gradient(#ffffff, #ffffff); box-shadow: inset 0 -3px 0 #e6ddfa, inset 0 1px 0 #fff, 0 10px 22px -8px rgba(20, 5, 50, .45); }
html[data-theme="dark"] body .cfx-foot .cfx-foot-btn.is-primary { background: var(--gl-btn); box-shadow: var(--gl-btn-shadow); }
html[data-theme] body .cfx-foot .cfx-foot-social a { box-shadow: var(--gl-light-shadow); }
html[data-theme="light"] body .cfx-foot .cfx-foot-contact-btn { background: var(--gl-btn); box-shadow: var(--gl-btn-shadow); }
html[data-theme] body .cfx-foot .cfx-foot-contact { border-color: transparent; box-shadow: var(--gl-clay); }
html[data-theme] body .cfx-foot .cfx-foot-top { border-color: transparent; background: var(--gl-light); box-shadow: var(--gl-light-shadow); }

/* light / dark switch: the pressed side gets the sheen */
html[data-theme] body .cfx-theme button[aria-pressed="true"] { background: var(--gl-sheen), linear-gradient(135deg, #9b3cf6, #6d28d9); box-shadow: inset 0 -2px 0 #3b0f86, inset 0 1px 0 rgba(255, 255, 255, .3); }
