/* THE REBUILT FLEET APPLICATION, public sheet (lane fleetapp-steps, 9 Nov 2026; plan L3-L6; look and flow of docs/prototypes/apply-2026-11).
   Loaded after App_Themes/Core/theme.css on the CBS-public master (Apply/Apply.master), which supplies the TOKENS (the CBS Evergreen Glass set --cbs-eg-* in light and dark) and the shared
   button system (.btn, .btn-primary, .btn-secondary). TOKENS ONLY: no hex, rgb or hsl in this sheet. Every class here starts ap- so nothing collides with a shared class, and every rule is
   inside body.ap so nothing leaks. Small first: written for 360x640, widened at 640 and 900. Nothing is smaller than 13px. Light and dark follow the visitor's system (apply-theme.js sets
   data-theme before the first paint). Targets are 44px and up; focus is always visible; colour never carries meaning alone (words and a tick mark do). */
@font-face { font-family: Manrope; src: url("Manrope-VariableFont_wght.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

body.ap {
    --brand-primary: var(--cbs-eg-brand);
    --brand-on-primary: var(--cbs-eg-on-brand);
    --brand-ink: var(--cbs-eg-brand);
    --ap-link: var(--cbs-eg-link);
    --ap-ui: var(--cbs-eg-ui);
    --ap-surface: var(--cbs-eg-surface);
    --ap-border: var(--cbs-eg-border);
    --ap-tint: color-mix(in srgb, var(--cbs-eg-brand) 10%, var(--cbs-eg-surface));
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 16px/1.55 Manrope, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    height: auto;
    overflow: auto;
    display: block;
}
/* 11 Nov 2026: THE PAGE MUST SCROLL. The shared theme.css (loaded here for the colour tokens) gives html AND body height: 100% and overflow: hidden (it is the app shell's rule). body.ap above
   frees the body, but html stayed overflow: hidden with a viewport-high height, so the long body was clipped and the visitor could not scroll (only a script could). This frees the root,
   only for the page that has body.ap. */
html:has(> body.ap) { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
body.ap *, body.ap *::before, body.ap *::after { box-sizing: border-box; }
body.ap [hidden] { display: none !important; }
body.ap h1, body.ap h2, body.ap h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
body.ap h1 { font-size: 1.5rem; font-weight: 800; }
body.ap h2 { font-size: 1.2rem; font-weight: 800; margin-top: 28px; }
body.ap p { margin: 0 0 1em; }
body.ap a { color: var(--ap-link); font-weight: 700; text-underline-offset: 3px; }
body.ap :focus-visible { outline: 3px solid var(--ap-link); outline-offset: 2px; border-radius: 4px; }
body.ap .ap-sr, body.ap .ap-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.ap .ap-skip { opacity: 1; position: absolute; left: 8px; top: -60px; background: var(--brand-primary); color: var(--brand-on-primary); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; text-decoration: none; }
body.ap .ap-skip:focus { top: 8px; }
body.ap .ap-muted { color: var(--muted); }
body.ap .ap-small { font-size: .875rem; }
body.ap .btn { min-height: 44px; text-decoration: none; }
body.ap .btn-primary { color: var(--brand-on-primary); }
body.ap .btn-secondary { color: var(--brand-ink); }
body.ap .btn-link { background: none; border: 0; box-shadow: none; padding: 0; height: auto; min-height: 44px; color: inherit; font: inherit; font-weight: 600; text-align: left; }
body.ap .btn-link:hover { text-decoration: underline; }

/* header */
body.ap .ap-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1040px; margin: 0 auto; }
body.ap .ap-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.0625rem; line-height: 1.15; }
body.ap .ap-brand img { width: 48px; height: 48px; flex: none; }
body.ap .ap-grow { flex: 1; }
body.ap .ap-phone { display: none; font-weight: 800; text-decoration: none; white-space: nowrap; }
body.ap .ap-callus { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }

/* shell: one column on a phone, a step rail beside the form from 900px */
body.ap .ap-shell { max-width: 1040px; margin: 0 auto; padding: 0 16px 120px; display: block; }
body.ap .ap-rail { display: none; }
body.ap .ap-progress { margin: 4px 0 16px; }
body.ap .ap-progress__line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-weight: 700; }
body.ap .ap-name { color: var(--muted); font-weight: 600; }
body.ap .ap-segs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
body.ap .ap-segs span { height: 6px; border-radius: 3px; background: var(--ap-border); }
body.ap .ap-segs .ap-done { background: var(--brand-primary); }
body.ap .ap-segs .ap-now { background: var(--ap-link); }
body.ap .ap-saved { font-size: .8125rem; color: var(--muted); min-height: 1.2em; margin: 6px 0 0; }

body.ap .ap-card { background: var(--surface); border-radius: 16px; padding: 20px 16px; box-shadow: var(--shadow-3); border: 1px solid var(--ap-border); }
body.ap .ap-step-h { margin-bottom: 4px; }
body.ap .ap-step-sub { color: var(--muted); margin-bottom: 20px; }

/* fields */
body.ap .ap-field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
body.ap .ap-field > label, body.ap .ap-lbl { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
body.ap .ap-why { display: block; font-size: .875rem; color: var(--muted); font-weight: 500; margin: -2px 0 6px; }
body.ap .ap-opt { font-weight: 500; color: var(--muted); }
body.ap input[type=text], body.ap input[type=email], body.ap input[type=tel], body.ap input[type=number], body.ap input[type=search], body.ap select, body.ap textarea {
    width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--ap-ui); border-radius: 10px;
}
body.ap textarea { min-height: 96px; resize: vertical; }
body.ap input:focus, body.ap select:focus, body.ap textarea:focus { border-color: var(--ap-link); outline: 2px solid var(--ap-link); outline-offset: 0; }
body.ap [aria-invalid=true] { border-color: var(--danger) !important; }
body.ap .ap-err { color: var(--danger); font-size: .875rem; font-weight: 700; margin: 6px 0 0; }
body.ap .ap-hint { color: var(--ink); font-size: .875rem; margin: 6px 0 0; }
body.ap .ap-hint button { font: inherit; font-weight: 700; color: var(--ap-link); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; min-height: 32px; }
body.ap .ap-row2 { display: grid; gap: 0 12px; }
body.ap .ap-w-short input, body.ap .ap-w-short select { max-width: 9rem; }
body.ap .ap-w-med input, body.ap .ap-w-med select { max-width: 16rem; }
body.ap .ap-sumbox { background: var(--surface-danger); border: 2px solid var(--danger); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; }
body.ap .ap-sumbox h2 { font-size: 1rem; margin: 0 0 6px; }
body.ap .ap-sumbox ul { margin: 0; padding-left: 20px; }
body.ap .ap-sumbox a { color: var(--ink); }
body.ap .ap-note { background: var(--ap-tint); border-radius: 12px; padding: 12px 14px; margin: 0 0 20px; font-size: .9375rem; }
body.ap .ap-note.ap-ok { background: var(--surface-success); }

/* choice tiles: radio and checkbox as 48px tiles; a tick mark shows the chosen one (not colour alone) */
body.ap .ap-choices { display: flex; flex-wrap: wrap; gap: 8px; }
body.ap .ap-choice { position: relative; display: block; margin: 0; }
body.ap .ap-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
body.ap .ap-choice span { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; border: 2px solid var(--ap-ui); border-radius: 10px; background: var(--surface); font-weight: 600; }
body.ap .ap-choice input:checked + span { border-color: var(--brand-primary); background: var(--ap-tint); box-shadow: inset 0 0 0 1px var(--brand-primary); }
body.ap .ap-choice input:checked + span::before { content: "\2713"; font-weight: 800; color: var(--brand-primary); }
body.ap .ap-choice input:focus-visible + span { outline: 3px solid var(--ap-link); outline-offset: 2px; }
body.ap .ap-choices.ap-stack { flex-direction: column; }
body.ap .ap-choices.ap-stack .ap-choice span { width: 100%; }
body.ap .ap-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 8px; margin-top: 10px; max-height: 20rem; overflow: auto; padding: 2px; }
body.ap .ap-states .ap-choice span { min-height: 44px; padding: 6px 8px; font-size: .9375rem; }
body.ap .ap-count { font-weight: 700; margin: 8px 0 12px; }

/* restrictions */
body.ap .ap-legend { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: .9375rem; margin: 0 0 16px; }
body.ap .ap-legend b { display: inline-block; min-width: 1.5rem; }
body.ap .ap-bulk { background: var(--ap-surface); border-radius: 12px; padding: 12px; margin: 0 0 16px; }
body.ap .ap-bulk .ap-lbl { font-weight: 800; margin-bottom: 8px; }
body.ap .ap-abc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
body.ap .ap-opt3 { position: relative; display: block; margin: 0; }
body.ap .ap-opt3 input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
body.ap .ap-abc .ap-opt3 span, body.ap .ap-abc button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 52px; height: auto; padding: 4px 2px;
    border: 2px solid var(--ap-ui); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; line-height: 1.15; cursor: pointer; box-shadow: none;
}
body.ap .ap-abc small { font-weight: 600; font-size: .8125rem; color: var(--muted); }
body.ap .ap-abc .ap-opt3 input:checked + span { border-color: var(--brand-primary); background: var(--brand-primary); color: var(--brand-on-primary); }
body.ap .ap-abc .ap-opt3 input:checked + span small { color: var(--brand-on-primary); }
body.ap .ap-abc .ap-opt3 input:focus-visible + span, body.ap .ap-abc button:focus-visible { outline: 3px solid var(--ap-link); outline-offset: 2px; }
body.ap .ap-index { position: sticky; top: 0; z-index: 5; background: var(--surface); padding: 8px 0; margin: 0 0 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
body.ap .ap-index a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; border-radius: 999px; background: var(--ap-surface); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 700; white-space: nowrap; }
body.ap .ap-group { margin: 0 0 40px; scroll-margin-top: 64px; border: 0; padding: 0; min-width: 0; }
body.ap .ap-group > legend { padding: 0; font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
body.ap .ap-svc { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
body.ap .ap-svc > legend { padding: 0; font-weight: 600; margin-bottom: 6px; }
body.ap .ap-star { font-weight: 800; color: var(--muted); }
body.ap .ap-fn { font-size: .875rem; color: var(--muted); }

/* certificate */
body.ap .ap-drop { background: var(--ap-surface); border: 2px dashed var(--ap-ui); border-radius: 12px; padding: 16px; }
body.ap .ap-fileok { margin: 0 0 8px; font-weight: 700; }

/* the rail (wide windows) */
body.ap .ap-rail ol { list-style: none; margin: 0; padding: 0; }
body.ap .ap-rail li { display: flex; gap: 10px; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; }
body.ap .ap-rail li b { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ap-ui); display: flex; align-items: center; justify-content: center; font-size: .8125rem; flex: none; }
body.ap .ap-rail li.ap-done b { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
body.ap .ap-rail li.ap-now { color: var(--ink); font-weight: 800; }
body.ap .ap-rail li.ap-now b { border-color: var(--ap-link); color: var(--ap-link); }

/* the action bar, the shared footer in a fixed strip */
body.ap .ap-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; background: var(--surface); border-top: 1px solid var(--ap-border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
body.ap .ap-bar__in { max-width: 1040px; margin: 0 auto; display: flex; gap: 8px; }
body.ap .ap-bar .btn { flex: 0 0 auto; width: auto; }
body.ap .ap-bar .ap-grow { flex: 1; }

/* the saved / bad-link panels */
body.ap .ap-panel p { margin: 0 0 12px; }
body.ap .ap-link-box { word-break: break-all; }
/* step 7: the answers read back (space between sections, no divider lines), the agreement; step 8: the reference and what happens next (lane fleetapp-review) */
body.ap .ap-rev { margin: 0 0 28px; }
body.ap .ap-rev__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
body.ap .ap-rev__h h2 { margin: 0; }
body.ap .ap-rev .ap-rev__g { font-size: 1rem; font-weight: 800; margin: 16px 0 4px; }
body.ap .ap-rev dl { margin: 6px 0 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
body.ap .ap-rev dt { font-size: .875rem; color: var(--muted); font-weight: 700; }
body.ap .ap-rev dd { margin: 0 0 10px; font-weight: 600; overflow-wrap: anywhere; }
body.ap .ap-terms { background: var(--ap-surface); border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; font-size: .9375rem; }
body.ap .ap-terms p:last-child { margin-bottom: 0; }
body.ap .ap-ref { display: inline-block; font-size: 1.5rem; font-weight: 800; background: var(--ap-tint); border-radius: 12px; padding: 10px 16px; margin: 0 0 14px; }
body.ap .ap-next { padding-left: 1.4rem; margin: 0 0 20px; }
body.ap .ap-next li { margin: 0 0 12px; }

/* footer */
body.ap .ap-foot { max-width: 1040px; margin: 0 auto; padding: 8px 16px 140px; color: var(--muted); font-size: .8125rem; }
body.ap .ap-foot p { margin: 0 0 6px; }
/* Powered by MG: a quiet line. Ink at .7 (not muted: muted at .7 falls under 4.5:1 on white), Manrope is the nearest shipped face to the MG wordmark (the wordmark is outlined Optima-style lettering, no font file ships for it). */
body.ap .ap-foot .ap-mg { margin: 14px 0 0; }
body.ap .ap-mglink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: .8125rem; font-weight: 600; text-decoration: none; opacity: .7; }
body.ap .ap-mglink img { flex: none; width: 23px; height: 16px; }
body.ap .ap-mglink:hover, body.ap .ap-mglink:focus-visible { opacity: 1; text-decoration: none; }
body.ap .ap-mglink:focus-visible { outline: 3px solid var(--ap-link); outline-offset: 2px; }

@media (min-width: 640px) {
    body.ap .ap-phone { display: inline; }
    body.ap .ap-row2 { grid-template-columns: 1fr 1fr; }
    body.ap .ap-card { padding: 28px; }
    body.ap .ap-rev dl { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 16px; }
    body.ap .ap-rev dd { margin: 0; }
    body.ap .ap-legend { grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 24px; }
    body.ap .ap-svc { display: grid; grid-template-columns: 1fr 20rem; gap: 12px; align-items: center; }
    body.ap .ap-svc > legend { float: left; width: 100%; }
    body.ap h1 { font-size: 1.75rem; }
}
@media (min-width: 900px) {
    body.ap .ap-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
    body.ap .ap-rail { display: block; position: sticky; top: 16px; padding-top: 4px; }
    body.ap .ap-progress { display: none; }
    body.ap .ap-bar__in { justify-content: flex-end; }
    body.ap .ap-bar .ap-grow { flex: none; min-width: 11rem; }
}
@media (max-height: 420px) { body.ap .ap-bar { position: static; } body.ap .ap-shell { padding-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { body.ap *, body.ap *::before, body.ap *::after { transition: none !important; scroll-behavior: auto !important; } }
