/**
 * Token overrides for the online-admission templates.
 *
 * form_wizard / editadmission2 / online_admission_review load their own
 * Inspinia 2.6 stack (backend/2/) with <link> tags inside the body, which
 * puts those sheets after the theme head styles in source order. This sheet
 * is linked by layout.php AFTER the page content, so it comes last and wins
 * on order alone — no !important except where it answers one of Inspinia's
 * own (marked inline).
 *
 * Structure of the admission markup is untouched (live enrolment, names
 * bound to server validation) — this recolours the chrome to the school's
 * tokens with the Inspinia teal as the no-token fallback.
 */

/* Inspinia "navy" accents. (No generic `body.sf a` override here — site.css
   already tokenises link colour, and a broad rule this late in the cascade
   out-specifies the theme's own .sf-btn/.sf-menu colours.) */
body.sf .text-navy,
body.sf .navy-bg {
    color: var(--ss-primary, #1ab394);
}

body.sf .navy-line:after {
    background: var(--ss-primary, #1ab394);
}

/* Buttons */
body.sf .btn-primary,
body.sf .btn-primary:hover,
body.sf .btn-primary:focus,
body.sf .btn-primary:active,
body.sf .btn-primary.active,
body.sf .btn-primary:active:focus {
    background-color: var(--ss-primary, #1ab394);
    border-color: var(--ss-primary, #1ab394);
    color: var(--ss-primary-foreground, #ffffff);
}

body.sf .btn-primary:hover {
    background-color: var(--ss-primary-hover, #17a085);
    border-color: var(--ss-primary-hover, #17a085);
}

body.sf .btn-danger {
    background-color: var(--ss-danger, #ed5565);
    border-color: var(--ss-danger, #ed5565);
}

/* jquery.steps wizard rail */
body.sf .wizard > .steps .current a,
body.sf .wizard > .steps .current a:hover,
body.sf .wizard > .steps .current a:active {
    background: var(--ss-primary, #1ab394);
    color: var(--ss-primary-foreground, #ffffff);
}

body.sf .wizard > .steps .done a,
body.sf .wizard > .steps .done a:hover,
body.sf .wizard > .steps .done a:active {
    background: var(--ss-primary-soft, #f6ecf3);
    color: var(--ss-primary, #1ab394);
}

body.sf .wizard > .actions a,
body.sf .wizard > .actions a:hover,
body.sf .wizard > .actions a:active {
    background: var(--ss-primary, #1ab394);
    color: var(--ss-primary-foreground, #ffffff);
}

/* Inspinia form focus */
body.sf .form-control:focus,
body.sf .single-line:focus {
    border-color: var(--ss-ring, #1ab394);
}

/* iCheck boxes */
body.sf .icheckbox_square-green.checked,
body.sf .iradio_square-green.checked {
    border-color: var(--ss-primary, #1ab394);
}

/* Inspinia panels used as section headers in the wizard */
body.sf .panel-primary {
    border-color: var(--ss-primary, #1ab394);
}

body.sf .panel-primary > .panel-heading {
    background-color: var(--ss-primary, #1ab394);
    border-color: var(--ss-primary, #1ab394);
}

/* Labels / badges */
body.sf .label-primary,
body.sf .badge-primary {
    background-color: var(--ss-primary, #1ab394);
}
