/* ==========================================================================
   /my-profile/ and /for-you/ (owner INBOX #757, milestone 1). Markup: template-profile.php. Script: avi-profile.js.
   Design guide: working pages (no hero), navy, Bebas title, DM Sans text, mono eyebrow, the shared card (avs-card),
   neutral chips with a solid gold selected state, neutral field focus, one gold action per screen. Phones first.
   ========================================================================== */

body.avi-pf-body { margin: 0; background: #060f1e; color: #e8eef5; font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.avi-pf-body .fsf-simple-header { background: #060f1e; border-bottom: 1px solid #1f3354; }
.avi-pf, .avi-pf *, .avi-pf *::before, .avi-pf *::after { box-sizing: border-box; }
.avi-pf { display: block; min-height: calc(100vh - 56px - 120px); min-height: calc(100dvh - 56px - 120px); }
.avi-pf-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 40px; }
.avi-pf [hidden] { display: none !important; }

/* ── Head ── */
.avi-pf-head { margin: 0 0 24px; }
.avi-pf-eyebrow { margin: 0 0 8px; font: 500 11px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #e8a020; }
.avi-pf h1.avi-pf-h1 { margin: 0; font: 400 52px/.95 "Bebas Neue", "Arial Narrow", sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #e8eef5; }
.avi-pf-sub { max-width: 34em; margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: #94a7be; }
html body .avi-pf a.avi-pf-dash { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: 15px; font-weight: 600; color: #e8a020; text-decoration: none; }
html body .avi-pf a.avi-pf-dash:hover { color: #eeae36; text-decoration: underline; }
/* H100 (CLS): a signed-in device's "See my briefing" link is unhidden when its profile arrives from the server (?add=med on an account with no local copy moved the whole form 50px, CLS 0.25 at 1280): hold its slot, invisible, from first paint */
html.avi-sk-in body .avi-pf:not(.is-first) .avi-pf-head a.avi-pf-dash[hidden] { display: inline-flex !important; visibility: hidden; }

/* ── Questions ── */
.avi-pf-form { min-width: 0; }
.avi-pf-q { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.avi-pf-q__l { display: block; float: none; width: 100%; margin: 0 0 12px; padding: 0; font: 700 18px/1.25 "DM Sans", system-ui, sans-serif; color: #e8eef5; }
.avi-pf-q--sub { margin-bottom: 20px; }
.avi-pf-q--sub .avi-pf-q__l { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #94a7be; }
.avi-pf-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #7d93ad; }
.avi-pf-err { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #ef4444; }

/* Sections of one profession: with the script only the picked one shows; without it all show. */
.avi-pf-js .avi-pf-for { display: none; }
.avi-pf-js .avi-pf-for.is-on { display: block; animation: avi-pf-in .32s cubic-bezier(.33, 1, .68, 1) both; }
.avi-pf-js .avi-pf-for-kind.is-off { display: none; }
.avi-pf-for__who { margin: 0 0 14px; padding-top: 20px; border-top: 1px solid #1f3354; font: 500 11px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #7d93ad; }
.avi-pf-js .avi-pf-for__who { display: none; }
@keyframes avi-pf-in{ from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Chips (a styled radio or checkbox; selected = solid gold, never an outline) ── */
.avi-pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.avi-pf-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.avi-pf-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.avi-pf-chip > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: #0f1e38; border: 1px solid #2a4266; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.15; color: #e8eef5; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.avi-pf-chip--ic > span { padding-left: 12px; }
.avi-pf-chip .avi-pf-ic { color: #94a7be; }
@media (hover: hover) and (pointer: fine) { .avi-pf-chip:hover > span { border-color: #7d93ad; color: #fff; } }
.avi-pf-chip input:checked + span { background: linear-gradient(to bottom, #eeae36, #e8a020 70%); border-color: #a8700f; border-top-color: #eeae36; color: #1a1205; }
.avi-pf-chip input:checked + span .avi-pf-ic { color: #1a1205; }
.avi-pf-chip input:focus-visible + span { outline: 2px solid #e8a020; outline-offset: 2px; }
.avi-pf-chips--prov { gap: 6px; }
.avi-pf-chip--prov > span { justify-content: center; min-width: 50px; padding: 0 12px; font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; }
.avi-pf-chip--prov abbr { text-decoration: none; border: 0; cursor: inherit; }
.avi-pf-chip--prov b { display: none; font: 600 14px/1.15 "DM Sans", system-ui, sans-serif; letter-spacing: 0; }
.avi-pf-chip--any { flex: 0 0 100%; }

/* ── Fields ── */
.avi-pf-field { position: relative; display: flex; align-items: center; max-width: 420px; }
html body .avi-pf .avi-pf-field input[type="text"] { width: 100%; height: 54px; margin: 0; padding: 0 16px !important; background: #0c1a30; border: 1px solid #2a4266; border-radius: 12px; color: #e8eef5; font: 500 17px/1.2 "DM Sans", system-ui, sans-serif !important; font-size: 17px !important; box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none; }
html body .avi-pf .avi-pf-field input[type="text"]::placeholder { color: #7d93ad; opacity: 1; font-weight: 400; }
html body .avi-pf .avi-pf-field input[type="text"]:hover { border-color: #3a557d; }
html body .avi-pf .avi-pf-field input[type="text"]:focus { border-color: #7d93ad; box-shadow: 0 0 0 3px rgba(125, 147, 173, .22); }
.avi-pf-field--num { max-width: 200px; }
html body .avi-pf .avi-pf-field input[type="text"][aria-invalid="true"] { border-color: #ef4444; }
html body .avi-pf .avi-pf-field--num input[type="text"] { font-variant-numeric: tabular-nums; }
.avi-pf-field__unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #7d93ad; pointer-events: none; }
.avi-pf-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.avi-pf-grid3 .avi-pf-field--num { max-width: none; }
html body .avi-pf .avi-pf-grid3 .avi-pf-field--num input[type="text"] { padding-right: 12px !important; }

/* The aircraft type: field, drawing, list */
.avi-pf-type { position: relative; max-width: 420px; }
.avi-pf-type__ic { position: absolute; left: 12px; top: 50%; width: 28px; height: 28px; margin-top: -14px; color: #e8eef5; pointer-events: none; z-index: 1; }
.avi-pf-type__ic .avi-pf-ic { width: 100%; height: 100%; }
html body .avi-pf .avi-pf-field--type.has-ic input[type="text"] { padding-left: 50px !important; }
html body .avi-pf .avi-pf-field--type input[type="text"] { padding-right: 48px !important; }
html body .avi-pf button.avi-pf-type__clear { position: absolute; right: 4px; top: 50%; width: 44px; height: 44px; margin: -22px 0 0; padding: 0; background: transparent; border: 0; border-radius: 10px; color: #94a7be; font: 400 24px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; box-shadow: none; }
html body .avi-pf button.avi-pf-type__clear:hover { color: #fff; background: transparent; }
html body .avi-pf button.avi-pf-type__clear:focus-visible { outline: 2px solid #e8a020; outline-offset: -4px; }
.avi-pf-type__box { position: absolute; left: 0; right: 0; top: 58px; z-index: 20; margin: 0; padding: 6px; list-style: none; background: #0f1e38; border: 1px solid #2a4266; border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
.avi-pf-type__opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #e8eef5; cursor: pointer; }
.avi-pf-type__opt .avi-pf-ic { color: #94a7be; }
.avi-pf-type__opt.is-on, .avi-pf-type__opt:hover { background: #16294b; }
.avi-pf-type__none { padding: 10px; font-size: 14px; line-height: 1.4; color: #94a7be; }
.avi-pf-cls { margin-top: 12px; }
.avi-pf-cls .avi-pf-note { margin: 0 0 10px; color: #94a7be; }

/* A switch-like tick row */
.avi-pf-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 0 0; font-size: 15px; font-weight: 500; color: #e8eef5; cursor: pointer; }
.avi-pf-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.avi-pf-switch > span { display: inline-flex; align-items: center; gap: 10px; }
.avi-pf-switch > span::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; background: #0c1a30; border: 1.5px solid #3a5784; border-radius: 6px; }
.avi-pf-switch input:checked + span::before { background: #e8a020 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5.5 11.5l3.6 3.6L16.6 7.4' fill='none' stroke='%231a1205' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; border-color: #a8700f; }
.avi-pf-switch input:focus-visible + span::before { outline: 2px solid #e8a020; outline-offset: 2px; }

/* "Add more": a closed row, like the site's other fold rows */
.avi-pf-more { margin: 0 0 28px; background: #0c1a30; border: 1px solid #1f3354; border-radius: 12px; }
.avi-pf-more > summary { display: flex; flex-direction: column; gap: 3px; position: relative; min-height: 56px; padding: 12px 48px 12px 16px; list-style: none; cursor: pointer; }
.avi-pf-more > summary::-webkit-details-marker { display: none; }
.avi-pf-more > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid #94a7be; border-bottom: 2px solid #94a7be; transform: rotate(45deg); transition: transform .2s ease; }
.avi-pf-more[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.avi-pf-more > summary:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; border-radius: 12px; }
.avi-pf-more__t { font-size: 16px; font-weight: 700; color: #e8eef5; }
.avi-pf-more__d { font-size: 13px; line-height: 1.4; color: #7d93ad; }
.avi-pf-more__body { padding: 8px 16px 16px; border-top: 1px solid #1f3354; }
.avi-pf-more__body > :first-child { margin-top: 12px; }
.avi-pf-more__body > :last-child { margin-bottom: 0; }
.avi-pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
html body .avi-pf button.avi-pf-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 0 10px 0 12px; background: #0f1e38; border: 1px solid #2a4266; border-radius: 8px; color: #e8eef5; font: 600 13px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; box-shadow: none; }
.avi-pf-tag__x { font-size: 17px; color: #94a7be; }

/* #761: the head is one centred column: eyebrow + "Sign in" link, title, subtitle, one privacy line */
.avi-pf--form .avi-pf-wrap { max-width: 680px; }
.avi-pf-head__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.avi-pf-head__top .avi-pf-eyebrow { margin: 0; }
/* #761 round 2: "Sign in" = a small outlined button (36 px drawn, 44 px tap area), neutral, never gold */
html body .avi-pf a.avi-pf-signin { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border: 1px solid #2a4266; border-radius: 10px; background: transparent; font: 600 14px/1 "DM Sans", system-ui, sans-serif; color: #e8eef5; text-decoration: none; white-space: nowrap; }
html body .avi-pf a.avi-pf-signin::before { content: ""; position: absolute; inset: -4px -2px; } /* 44 px tall tap area */
html body .avi-pf a.avi-pf-signin:hover { border-color: #7d93ad; background: #0f1e38; color: #fff; }
html body .avi-pf a.avi-pf-signin:focus-visible { outline: 0; box-shadow: 0 0 0 2px #060f1e, 0 0 0 4px #7d93ad; }

/* #761 round 2: "What do you do?" = a grid of tappable rows (icon, label, check circle); one pick, a real radio each */
.avi-pf-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 359.98px) { .avi-pf-rows { grid-template-columns: minmax(0, 1fr); } }
.avi-pf-row { position: relative; display: block; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.avi-pf-row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.avi-pf-row__in { display: flex; align-items: center; gap: 10px; min-height: 52px; height: 100%; padding: 8px 12px; background: #0f1a2e; border: 1px solid #1f3354; border-radius: 10px; transition: background-color .12s ease, border-color .12s ease; }
.avi-pf-row__ic { flex: 0 0 auto; color: #94a7be; }
.avi-pf-row__t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.2; color: #e8eef5; }
.avi-pf-row__ck { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid #2a4266; border-radius: 50%; color: transparent; }
@media (hover: hover) and (pointer: fine) { .avi-pf-row:hover .avi-pf-row__in { border-color: #3a557d; } }
.avi-pf-row input:checked + .avi-pf-row__in { background: #15243d; border-color: #2a4266; }
.avi-pf-row input:checked + .avi-pf-row__in .avi-pf-row__t, .avi-pf-row input:checked + .avi-pf-row__in .avi-pf-row__ic { color: #e8a020; }
.avi-pf-row input:checked + .avi-pf-row__in .avi-pf-row__ck { background: #e8a020; border-color: #e8a020; color: #1a1205; }
.avi-pf-row input:focus-visible + .avi-pf-row__in { box-shadow: 0 0 0 2px #060f1e, 0 0 0 4px #7d93ad; }

/* #761 round 2: "Where will you work?" = Anywhere | Choose provinces, then a checklist of full names */
.avi-pf-seg { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; padding: 4px; background: #0f1a2e; border: 1px solid #1f3354; border-radius: 12px; }
.avi-pf-seg__o { position: relative; display: block; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.avi-pf-seg__o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.avi-pf-seg__o span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; color: #94a7be; transition: background-color .12s ease, color .12s ease; }
.avi-pf-seg__o input:checked + span { background: linear-gradient(to bottom, #eeae36, #e8a020 70%); color: #1a1205; }
.avi-pf-seg__o input:focus-visible + span { box-shadow: 0 0 0 2px #060f1e, 0 0 0 4px #7d93ad; }
html:not(.avi-pf-js) .avi-pf-seg { display: none; }
.avi-pf-provlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin-top: 12px; }
.avi-pf-js .avi-pf-where:not(.is-pick) .avi-pf-provlist { display: none; }
.avi-pf-check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; cursor: pointer; font-size: 15px; line-height: 1.25; color: #e8eef5; -webkit-tap-highlight-color: transparent; }
html body .avi-pf .avi-pf-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; padding: 0; background: #0f1a2e; border: 1.5px solid #2a4266; border-radius: 5px; -webkit-appearance: none; appearance: none; cursor: pointer; display: inline-grid; place-content: center; }
html body .avi-pf .avi-pf-check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #1a1205; border-bottom: 2px solid #1a1205; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
html body .avi-pf .avi-pf-check input:checked { background: #e8a020; border-color: #e8a020; }
html body .avi-pf .avi-pf-check input:checked::after { opacity: 1; }
html body .avi-pf .avi-pf-check input:focus-visible { outline: 0; box-shadow: 0 0 0 2px #060f1e, 0 0 0 4px #7d93ad; }
.avi-pf-trust { max-width: 40em; margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #7d93ad; }
html body .avi-pf .avi-pf-trust a { color: #94a7be; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
html body .avi-pf .avi-pf-trust a:hover { color: #e8eef5; }
/* #761.7: the header's "Set up profile" button is not shown on the profile page itself (the drawing, signed in, is) */
html body a.avi-pf-btn.avi-pf-btn--here:not(.is-set) { display: none !important; }

/* Actions */
.avi-pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
html body .avi-pf .avi-pf-save:not(#avs-raised), html body .avi-pf a.avi-pf-setup:not(#avs-raised) { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; height: 56px; padding: 0 28px; border-radius: 12px; font: 600 17px/1 "DM Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; }
html body .avi-pf button.avi-pf-del { min-height: 44px; margin: 0; padding: 0 4px; background: transparent; border: 0; color: #7d93ad; font: 500 14px/1 "DM Sans", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none; }
html body .avi-pf button.avi-pf-del:hover { color: #e8eef5; background: transparent; }
html body .avi-pf button.avi-pf-del[data-armed] { color: #ef4444; font-weight: 700; }
html body .avi-pf button.avi-pf-del:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
.avi-pf-del-note { max-width: 40em; margin: 14px 0 0; padding: 12px 14px; background: #0c1a30; border: 1px solid #2a4266; border-radius: 12px; font-size: 14px; line-height: 1.45; color: #e8eef5; outline: 0; }

/* ── The payoff: jobs that fit ── */
.avi-pf-preview { margin-top: 36px; padding-top: 28px; border-top: 1px solid #1f3354; }
.avi-pf-preview__eyebrow { margin: 0 0 10px; font: 500 11px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #7d93ad; }
.avi-pf-preview__body { transition: opacity .15s ease; }
.avi-pf.is-loading .avi-pf-preview__body { opacity: .55; }
.avi-pf-jobs__h { margin: 0; font: 700 22px/1.2 "DM Sans", system-ui, sans-serif; color: #e8eef5; }
.avi-pf--foryou .avi-pf-jobs__h { font-size: 24px; }
.avi-pf-jobs__sub { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: #94a7be; }
.avi-pf-jobs__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.avi-pf-jobs__item { min-width: 0; margin: 0; padding: 0; }
html body .avi-pf a.avi-pf-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px !important; color: #e8eef5; text-decoration: none; }
.avi-pf-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.avi-pf-card__t { min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: #e8eef5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avi-pf-card__new { flex: 0 0 auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: #e8a020; border-radius: 6px; font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #1a1205; }
.avi-pf-card__where { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 15px; line-height: 1.35; }
.avi-pf-card__co { font-weight: 600; color: #e8a020; }
.avi-pf-card__loc { color: #94a7be; }
.avi-pf-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 14px; }
.avi-pf-card__pay { font-weight: 700; color: #e8eef5; }
.avi-pf-card__age { color: #7d93ad; }
.avi-pf-card__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.avi-pf-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; background: #0f1e38; border: 1px solid #2a4266; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.1; color: #cfd9e5; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
html body .avi-pf a.avi-pf-card:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
html body .avi-pf a.avi-pf-jobs__all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px; font-size: 15px; font-weight: 600; color: #e8a020; text-decoration: none; }
html body .avi-pf a.avi-pf-jobs__all:hover { color: #eeae36; text-decoration: underline; }

/* ── Phones and tablets: the count and the one gold action stay in reach ── */
.avi-pf-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #0a1628; border-top: 1px solid #1f3354; box-shadow: 0 -8px 24px rgba(0, 0, 0, .45); }
.avi-pf-bar__line { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: #e8eef5; overflow-wrap: anywhere; }
html body .avi-pf .avi-pf-bar__btn:not(#avs-raised) { flex: 0 0 auto; height: 46px; padding: 0 18px; border-radius: 10px; font: 600 15px/1 "DM Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
@media (max-width: 1023.98px) {
	/* #761: the sticky bar is gone from /my-profile/; the form's own Save (signed in) is the full-width action */
	html body .avi-pf .avi-pf-save:not(#avs-raised) { width: 100%; }
}

/* ── /for-you/ ── */
.avi-pf-you { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 16px 0 0; padding: 10px 14px 10px 10px; background: #0c1a30; border: 1px solid #1f3354; border-radius: 12px; }
.avi-pf-you__ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #0f1e38; border: 1px solid #2a4266; border-radius: 50%; color: #e8eef5; }
.avi-pf-you__t { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: #e8eef5; }
html body .avi-pf a.avi-pf-you__edit { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 600; color: #e8a020; text-decoration: none; }
html body .avi-pf a.avi-pf-you__edit:hover { text-decoration: underline; }
.avi-pf-setup { margin-top: 18px; }
html.avi-pf-has .avi-pf-only-new { display: none !important; }
/* With a profile the page knows, before any script runs, that the "you" row and the lead line will be filled: their
   room is kept from the first paint, so nothing below them moves when they arrive (#757 round 4: shift 0.064 / 0.05). */
.avi-pf-you { box-sizing: border-box; min-height: 66px; }
html.avi-pf-has .avi-pf--foryou:not(.is-posted) .avi-pf-you[hidden],
html.avi-pf-has .avi-pf--foryou:not(.is-posted) .avi-pf-lead[hidden] { display: block !important; visibility: hidden; } /* beats the site's [hidden] { display: none !important } */
html.avi-pf-has .avi-pf--foryou:not(.is-posted) .avi-pf-lead { min-height: calc(3 * 1.45em); }
@media (min-width: 768px) { html.avi-pf-has .avi-pf--foryou:not(.is-posted) .avi-pf-lead { min-height: calc(2 * 1.45em); } }
html.avi-pf-has .avi-pf-list--generic { visibility: hidden; }
.avi-pf-list { min-height: 320px; transition: opacity .15s ease; }
@media (max-width: 1023.98px) {
	/* Phones and tablets: the medical is one compact strip above the jobs; pay on the type comes after them. */
	.avi-pf--foryou .avi-pf-sidecol { display: contents; }
	.avi-pf--foryou .avi-pf-strip:not([hidden]) { display: block; order: -1; margin-top: -8px; }
	.avi-pf--foryou .avi-pf-med { order: -2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 14px; padding: 12px 16px; }
	.avi-pf--foryou .avi-pf-med .avi-pf-side__h { grid-column: 1 / -1; margin: 0; }
	.avi-pf--foryou .avi-pf-med__big { font-size: 30px; white-space: nowrap; }
	.avi-pf--foryou .avi-pf-med .avi-pf-side__note, .avi-pf--foryou .avi-pf-med .avi-pf-side__link--quiet { display: none; }
	.avi-pf--foryou .avi-pf-med.is-priv .avi-pf-side__note { display: block; grid-column: 1 / -1; margin: 4px 0 0; } /* "Commercial: ended" needs its private-privileges line */
	.avi-pf--foryou .avi-pf-med.is-priv .avi-pf-med__big { font-size: 26px; }
	html body .avi-pf.avi-pf--foryou .avi-pf-med a.avi-pf-side__link { margin: 0; justify-content: flex-end; text-align: right; }
	.avi-pf--foryou .avi-pf-pay { order: 5; }
	.avi-pf--foryou .avi-pf-fy { gap: 20px; }
}

/* ── Milestone 2 ── */
.avi-pf-q__opt { margin-left: 6px; font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #7d93ad; }
.avi-pf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 420px; }
.avi-pf-pair .avi-pf-q { margin-bottom: 0; }
.avi-pf-pair .avi-pf-field--num { max-width: none; }
.avi-pf-note--pair { margin: 10px 0 28px; max-width: 34em; }
/* Chris in chat (2026-11-18): Total · PIC · Multi-engine. Phones: Total + PIC side by side, Multi-engine under them (same
   width as one field: three side by side would wrap every label at 390). 768 px up: three equal fields in one row; the
   labels share a row (subgrid), so the three inputs line up even when a label wraps. */
.avi-pf-pair--3 { row-gap: 18px; }
@media (min-width: 768px) {
	.avi-pf-pair--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; row-gap: 0; max-width: 660px; }
	.avi-pf-pair--3 > .avi-pf-q { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
	.avi-pf-pair--3 > .avi-pf-q > .avi-pf-q__l { align-self: end; }
}
.avi-pf-msg { margin: 8px 0 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: #ffb547; }
.avi-pf-selects { display: flex; gap: 10px; max-width: 420px; }
html body .avi-pf .avi-pf-selects select { flex: 1 1 0; min-width: 0; height: 54px; margin: 0; padding: 0 36px 0 14px; background: #0c1a30 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2394a7be' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat; border: 1px solid #2a4266; border-radius: 12px; color: #e8eef5; font: 500 16px/1.2 "DM Sans", system-ui, sans-serif !important; font-size: 16px !important; -webkit-appearance: none; appearance: none; box-shadow: none; outline: 0; }
html body .avi-pf .avi-pf-selects select:focus { border-color: #7d93ad; box-shadow: 0 0 0 3px rgba(125, 147, 173, .22); }
.avi-pf-more__body a { color: #e8a020; }
.avi-pf-nojs { display: block; }
.avi-pf-js .avi-pf-nojs { display: none; }
html:not(.avi-pf-js) .avi-pf-chip--any { display: none; }
.avi-pf-type__opt--swap span { color: #94a7be; }
.avi-pf-preview__line { margin: 0 0 14px; font-size: 16px; font-weight: 600; line-height: 1.4; color: #e8eef5; }
.avi-pf-lead { max-width: 44em; margin: 16px 0 0; font-size: 17px; font-weight: 600; line-height: 1.45; color: #e8eef5; }

/* For you: groups of cards */
.avi-pf-fy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.avi-pf-grp { margin: 0 0 32px; }
.avi-pf-grp__h { margin: 0; font: 700 21px/1.25 "DM Sans", system-ui, sans-serif; color: #e8eef5; }
.avi-pf-grp__n { margin-left: 4px; font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace; color: #e8a020; vertical-align: 2px; }
/* round 8: "+N new since your last visit" on a group heading; the sub-line before "all of them" licence ads */
.avi-pf-grp__new { display: inline-block; margin-left: 6px; font: 500 12px/1.3 system-ui, sans-serif; color: #8fd1a8; vertical-align: 2px; }
.avi-pf--foryou .avi-pf-jobs__list > li.avi-pf-jobs__sub { grid-column: 1 / -1; margin: 8px 0 0; padding: 0; font: 600 13px/1.4 system-ui, sans-serif; color: #9fb3cf; list-style: none; }
/* round 8: the inline PIC box above "Check the ad" */
.avi-pf-picbox { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #1f3354; border-radius: 12px; background: #0a1628; }
.avi-pf-picbox label { display: block; margin: 0 0 8px; font: 600 15px/1.35 system-ui, sans-serif; color: #e6edf7; }
.avi-pf-picbox__row { display: flex; gap: 8px; flex-wrap: wrap; }
.avi-pf-picbox input { flex: 1 1 120px; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #2a4470; border-radius: 8px; background: #071122; color: #e6edf7; font-size: 16px; }
.avi-pf-picbox button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: #e8a020; color: #071122; font: 700 15px/1 system-ui, sans-serif; cursor: pointer; }
.avi-pf-picbox__err { margin: 8px 0 0; font-size: 14px; color: #ff9d8a; }
.avi-pf-picbox__err:empty { display: none; }
/* round 9 polish: the line that replaces the PIC box after a sort; an apprentice card's reason line */
.avi-pf-picdone { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #1f3354; border-left: 3px solid #8fd1a8; border-radius: 10px; background: #0a1628; font: 500 15px/1.45 system-ui, sans-serif; color: #e6edf7; }
.avi-pf-picdone a { color: #e8a020; text-decoration: underline; text-underline-offset: 2px; }
.avi-pf-grp__note { display: block; max-width: 44em; margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #94a7be; }
.avi-pf-grp .avi-pf-jobs__list { margin-top: 14px; }
.avi-pf-grp__more { margin-top: 8px; }
.avi-pf-grp__more > summary, .avi-pf-grp--fold > summary { list-style: none; cursor: pointer; }
.avi-pf-grp__more > summary::-webkit-details-marker, .avi-pf-grp--fold > summary::-webkit-details-marker { display: none; }
.avi-pf-grp__more > summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: #e8a020; }
.avi-pf-grp__more[open] > summary { display: none; }
.avi-pf-grp--fold { background: #0a1628; border: 1px solid #1f3354; border-radius: 12px; }
.avi-pf-grp--fold > summary { position: relative; display: block; padding: 14px 48px 14px 16px; }
.avi-pf-grp--fold > summary::after { content: ""; position: absolute; right: 20px; top: 24px; width: 9px; height: 9px; border-right: 2px solid #94a7be; border-bottom: 2px solid #94a7be; transform: rotate(45deg); }
.avi-pf-grp--fold[open] > summary::after { top: 28px; transform: rotate(-135deg); }
.avi-pf-grp--fold > .avi-pf-jobs__list { margin: 0; padding: 0 12px 12px; }
.avi-pf-grp__more > summary:focus-visible, .avi-pf-grp--fold > summary:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; border-radius: 8px; }

/* Card extras: tags, the verdict line, the ad's own words */
.avi-pf-card__tags { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.avi-pf-card__new--week { background: #0f1e38; border: 1px solid #2a4266; color: #cfd9e5; }
.avi-pf-card__type { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: #e8eef5; border-radius: 6px; font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #0c1a30; white-space: nowrap; }
.avi-pf-card__v { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.avi-pf-card__vl { font-size: 14px; font-weight: 700; line-height: 1.35; color: #e8eef5; }
.avi-pf-card__v--meets .avi-pf-card__vl::before, .avi-pf-card__v--yours .avi-pf-card__vl::before { content: ""; display: inline-block; width: 13px; height: 8px; margin: 0 8px 3px 2px; border-left: 2.4px solid #e8a020; border-bottom: 2.4px solid #e8a020; transform: rotate(-45deg); }
.avi-pf-card__v--more .avi-pf-card__vl, .avi-pf-card__v--check .avi-pf-card__vl, .avi-pf-card__v--pic .avi-pf-card__vl, .avi-pf-card__v--none .avi-pf-card__vl, .avi-pf-card__v--pref .avi-pf-card__vl, .avi-pf-card__v--open .avi-pf-card__vl, .avi-pf-card__v--any .avi-pf-card__vl { font-weight: 600; color: #cfd9e5; }
.avi-pf-card__q { font-size: 13px; line-height: 1.45; color: #94a7be; overflow-wrap: anywhere; }
.avi-pf-card__qw { font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #7d93ad; margin-right: 4px; }
/* Round 5 (R6): phones fit more cards per screen (cards were 260-290 px tall at 390): tighter padding and type, two
   pills at most, the verdict line + the ad's own words + one "It also says" (the rest are on the ad's page). The whole
   card stays one link, so the tap target is the card (never under 44 px). */
@media (max-width: 767.98px) {
	html body .avi-pf.avi-pf--foryou a.avi-pf-card { gap: 5px; padding: 12px 14px !important; }
	.avi-pf--foryou .avi-pf-card__t { font-size: 16px; line-height: 1.25; }
	.avi-pf--foryou .avi-pf-card__new, .avi-pf--foryou .avi-pf-card__type { height: 20px; padding: 0 6px; font-size: 9px; }
	.avi-pf--foryou .avi-pf-card__where { font-size: 14px; line-height: 1.3; }
	.avi-pf--foryou .avi-pf-card__meta { font-size: 13px; line-height: 1.3; }
	.avi-pf--foryou .avi-pf-card__pills { gap: 4px; margin-top: 0; }
	.avi-pf--foryou .avi-pf-pill { min-height: 22px; padding: 0 6px; font-size: 11px; }
	.avi-pf--foryou .avi-pf-pill:nth-child(n+3) { display: none; }
	.avi-pf--foryou .avi-pf-card__v { gap: 2px; margin-top: 2px; padding-top: 7px; }
	.avi-pf--foryou .avi-pf-card__vl { font-size: 13.5px; line-height: 1.3; }
	.avi-pf--foryou .avi-pf-card__q { font-size: 12.5px; line-height: 1.35; }
	.avi-pf--foryou .avi-pf-card__v > .avi-pf-card__q:nth-child(n+4) { display: none; }
	.avi-pf--foryou .avi-pf-jobs__list { gap: 8px; }
}
@media (max-width: 374.98px) {
	/* round 7: 320 / 360 phones: a little tighter still (cards were 255-307 px) */
	html body .avi-pf.avi-pf--foryou a.avi-pf-card { gap: 4px; padding: 10px 12px !important; }
	.avi-pf--foryou .avi-pf-card__t { font-size: 15px; }
	.avi-pf--foryou .avi-pf-card__where { font-size: 13px; }
	.avi-pf--foryou .avi-pf-card__vl { font-size: 13px; }
	.avi-pf--foryou .avi-pf-card__q { font-size: 12px; }
}

/* The phone pay line (the full block is further down the page) and the lead's link to the fold */
.avi-pf-strip { display: none; }
html body .avi-pf a.avi-pf-paystrip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; min-height: 44px; padding: 10px 16px; background: #0c1a30; border: 1px solid #1f3354; border-radius: 12px; color: #e8eef5; text-decoration: none; }
.avi-pf-paystrip__l { font: 500 11px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #94a7be; }
.avi-pf-paystrip__v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
html body .avi-pf a.avi-pf-lead__jump { color: #e8a020; text-decoration: underline; text-underline-offset: 3px; }
.avi-pf-card__v--instr .avi-pf-card__vl, .avi-pf-card__v--close .avi-pf-card__vl { font-weight: 600; }

/* For you: the medical and pay on your type */
.avi-pf-sidecol { display: grid; gap: 12px; align-content: start; }
.avi-pf-side { padding: 18px; background: #0c1a30; border: 1px solid #1f3354; border-radius: 14px; }
.avi-pf-side__h { margin: 0 0 10px; font: 500 11px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #94a7be; }
.avi-pf-side__note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #94a7be; }
html body .avi-pf a.avi-pf-side__link { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-size: 15px; font-weight: 600; color: #e8a020; text-decoration: none; }
html body .avi-pf a.avi-pf-side__link:hover { text-decoration: underline; }
html body .avi-pf a.avi-pf-side__link--quiet { min-height: 32px; margin-top: 0; font-size: 13px; font-weight: 500; color: #7d93ad; }
.avi-pf-med__big { margin: 0; font: 400 44px/1 "Bebas Neue", "Arial Narrow", sans-serif; letter-spacing: .02em; color: #e8eef5; }
.avi-pf-med.is-soon .avi-pf-med__big { color: #ffb547; }
.avi-pf-pay__list { margin: 0; padding: 0; list-style: none; }
.avi-pf-nw { white-space: nowrap; } /* "Dash 8-400" never breaks at its hyphen */
html body .avi-pf a.avi-pf-pay__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-top: 1px solid #1f3354; color: #e8eef5; text-decoration: none; }
.avi-pf-pay__list li:first-child .avi-pf-pay__row { border-top: 0; padding-top: 0; }
.avi-pf-pay__co { font-size: 15px; font-weight: 700; color: #e8a020; }
.avi-pf-pay__fig { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #94a7be; }
.avi-pf-pay__fig b { font-weight: 700; color: #e8eef5; font-variant-numeric: tabular-nums; }
.avi-pf-pay__src { font-size: 12px; line-height: 1.4; color: #7d93ad; }
/* Round 6: the gap line's count shows only the cards it counts; the left-out list; the seat question */
html body .avi-pf a.avi-pf-gaplink { color: #e8a020; text-decoration: underline; text-underline-offset: 3px; }
.avi-pf-grp--fold.is-gap .avi-pf-jobs__item:not([data-gap]) { display: none; }
.avi-pf-left { margin: 0 0 24px; }
.avi-pf-left__body { padding: 0 16px 16px; }
.avi-pf-left__h { margin: 16px 0 6px; font-size: 15px; font-weight: 700; line-height: 1.35; color: #e8eef5; }
.avi-pf-left__list { margin: 0; padding: 0; list-style: none; }
.avi-pf-left__item { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid #1f3354; }
html body .avi-pf .avi-pf-left__item a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: #e8a020; text-decoration: none; }
.avi-pf-left__where { font-size: 13px; color: #94a7be; }
.avi-pf.is-loading .avi-pf-list { opacity: .55; }
@media (max-width: 359px) { .avi-pf-wrap { padding-left: 12px; padding-right: 12px; } .avi-pf-more > summary { padding-left: 12px; } .avi-pf-more__body { padding-left: 12px; padding-right: 12px; } }

/* ── #759: the save step (sign-in by email code or Google) and the account. Same palette and parts as the form:
   navy panel, neutral fields, one gold action, links in gold. The Google button is the light text colour on navy
   (Google's own G mark keeps its four colours inside the button only). ── */
.avi-pf-left { min-width: 0; }
.avi-pf-js:not(.avi-sk-in) .avi-sk-in { display: none !important; }
.avi-pf-js.avi-sk-in .avi-sk-out { display: none !important; }
html:not(.avi-pf-js) .avi-sk, html:not(.avi-pf-js) .avi-sk-js { display: none !important; }
.avi-sk { margin: 8px 0 0; padding: 20px 16px 22px; background: #0c1a30; border: 1px solid #1f3354; border-radius: 16px; scroll-margin-top: 16px; }
.avi-sk__h { margin: 0 0 8px; font: 700 22px/1.2 "DM Sans", system-ui, sans-serif; color: #e8eef5; }
.avi-sk__p { max-width: 34em; margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #94a7be; }
.avi-sk__who b { font-weight: 700; color: #e8eef5; overflow-wrap: break-word; } /* round 4: breaks at the <wbr> before "@" first */
.avi-sk__pmsg { margin: 0; scroll-margin: 80px; }
.avi-sk__mail { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.avi-sk__l { display: block; float: none; width: 100%; margin: 0 0 8px; padding: 0; font: 600 15px/1.3 "DM Sans", system-ui, sans-serif; color: #e8eef5; }
.avi-sk__c { display: flex; margin-top: 2px; }
.avi-sk__c > span { line-height: 1.35; }
.avi-sk__mail .avi-pf-note { max-width: 36em; }
.avi-sk__form { display: grid; gap: 10px; max-width: 420px; }
.avi-sk__form .avi-pf-field, .avi-sk__panel .avi-pf-field { max-width: none; }
html body .avi-pf .avi-sk input[type="email"], html body .avi-pf .avi-sk input[type="text"] { width: 100%; height: 54px; margin: 0; padding: 0 16px !important; background: #060f1e; border: 1px solid #2a4266; border-radius: 12px; color: #e8eef5; font: 500 17px/1.2 "DM Sans", system-ui, sans-serif !important; font-size: 17px !important; box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none; }
html body .avi-pf .avi-sk input::placeholder { color: #7d93ad; opacity: 1; font-weight: 400; }
html body .avi-pf .avi-sk input:focus { border-color: #7d93ad; box-shadow: 0 0 0 3px rgba(125, 147, 173, .22); }
html body .avi-pf .avi-sk #avi-sk-code, html body .avi-pf .avi-sk #avi-sk-rcode, html body .avi-pf .avi-sk #avi-sk-ncode { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
html body .avi-pf .avi-sk .avi-sk__go:not(#avs-raised) { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 56px; margin: 0; padding: 0 24px; cursor: pointer; } /* type: the shared gold main button (avs-buttons.css) */
html body .avi-pf .avi-sk .avi-sk__go:disabled { opacity: .6; cursor: default; }
html body .avi-pf .avi-sk .avi-sk__go--2:not(#avs-raised) { height: 50px; border-radius: 10px; font: 600 15px/1 "DM Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; } /* secondary size (design guide) */
html body .avi-pf a.avi-sk__google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 420px; height: 54px; padding: 0 20px; background: #e8eef5; border-radius: 12px; color: #0c1a30; font: 600 17px/1 "DM Sans", system-ui, sans-serif; text-decoration: none; }
html body .avi-pf a.avi-sk__google:hover { background: #fff; }
html body .avi-pf a.avi-sk__google:focus-visible { outline: 0; box-shadow: 0 0 0 2px #060f1e, 0 0 0 4px #7d93ad; } /* the site's neutral focus (grey #7d93ad), not gold */
.avi-sk__or { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 14px 0; font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #7d93ad; }
.avi-sk__or::before, .avi-sk__or::after { content: ""; flex: 1 1 auto; height: 1px; background: #1f3354; }
.avi-sk__soon { margin: 0 0 14px; }
.avi-sk__msg { max-width: 36em; margin: 14px 0 0; font-size: 15px; font-weight: 600; line-height: 1.45; color: #e8eef5; }
.avi-sk__msg.is-bad { color: #ef4444; } /* the design guide's red */
.avi-sk__acts { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 4px; }
html body .avi-pf .avi-sk button.avi-sk__link, html body .avi-pf .avi-sk a.avi-sk__link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 2px; background: transparent; border: 0; border-radius: 4px; color: #e8a020; font: 600 15px/1.2 "DM Sans", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none; }
html body .avi-pf .avi-sk .avi-pf-note button.avi-sk__link { display: inline; min-height: 0; padding: 6px 0; font-size: 13px; }
html body .avi-pf .avi-sk button.avi-sk__link--del { color: #94a7be; }
html body .avi-pf .avi-sk .avi-sk__link:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
.avi-sk__panel { display: grid; gap: 12px; max-width: 420px; margin-top: 14px; padding-top: 16px; border-top: 1px solid #1f3354; }
.avi-sk__panel .avi-sk__p { margin: 0; }
.avi-sk__fld .avi-sk__l { margin-bottom: 6px; }
html body .avi-pf .avi-sk button.avi-sk__danger { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin: 0; padding: 0 24px; background: #ef4444; border: 0; border-radius: 12px; color: #060f1e; font: 700 17px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; box-shadow: none; }
html body .avi-pf .avi-sk button.avi-sk__danger:focus-visible { outline: 2px solid #e8eef5; outline-offset: 2px; }
.avi-pf-med-saved { color: #cfd9e5; }
/* round 3: reCAPTCHA (loaded only when a check is needed) shows the line in the save step instead of its badge, as /login/ does */
.grecaptcha-badge { visibility: hidden; }
.avi-sk__rc { margin-top: 14px; font-size: 12px; }
.avi-sk__rc a { color: #94a7be; text-decoration: underline; }
/* #761.3: signed out, the save step is the form's third question, not a card: same heading size as "What do you do?",
   email, the two unticked boxes and the short sender line, one gold button, then Google as a smaller second choice. */
html.avi-pf-js:not(.avi-sk-in) .avi-sk { margin: 4px 0 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
html.avi-pf-js:not(.avi-sk-in) .avi-sk__h { margin: 0 0 12px; font: 700 18px/1.25 "DM Sans", system-ui, sans-serif; }
html.avi-pf-js:not(.avi-sk-in) .avi-sk__mail { margin: 0 0 32px; } /* owner 2026-11-16: the boxes now come first, the log-in heading after */
html.avi-pf-js:not(.avi-sk-in) .avi-sk__l--mail { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.avi-sk__mail .avi-sk__from { max-width: none; margin-top: 6px; font-size: 12px; color: #7d93ad; }
/* #761 round 2: each box's row ends with a small grey "Who sends these?" link (same line on desktop, wraps on phones) */
.avi-sk__crow { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.avi-sk__crow .avi-sk__c { flex: 0 1 auto; min-width: 0; }
html body .avi-pf .avi-sk button.avi-sk__whobtn { display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; color: #7d93ad; font: 500 12px/1.2 "DM Sans", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html body .avi-pf .avi-sk button.avi-sk__whobtn:hover { color: #94a7be; background: transparent; }
html body .avi-pf .avi-sk button.avi-sk__whobtn:focus-visible { outline: 2px solid #7d93ad; outline-offset: 2px; }
@media (max-width: 767.98px) { .avi-sk__crow .avi-sk__whobtn { margin-left: 34px !important; } } /* under the label text, not the box */
.avi-sk [data-sk-pane="start"][hidden] ~ .avi-sk__goes { display: none !important; } /* the code step or the account is on screen */
.avi-sk__goes { display: grid; max-width: 420px; }
.avi-sk__goes .avi-sk__or { margin: 16px 0 12px; }
/* Owner 2026-11-16 (option C): the gold arrow joined to the right of the email field (one control, no separate button). */
html body .avi-pf .avi-sk #avi-sk-email { flex: 1 1 auto; min-width: 0; border-right: 0 !important; border-radius: 12px 0 0 12px !important; }
/* The shared gold look (avs-buttons.css tokens: #eeae36 / #e8a020 / edge #a8700f / text #1a1205), drawn here because the
   shared class forces its own size, padding and corners with !important. */
html body .avi-pf .avi-sk button.avi-sk__arrow { flex: 0 0 56px; display: inline-flex; align-items: center; justify-content: center; width: 56px; min-width: 0; height: 54px; margin: 0; padding: 0; background: linear-gradient(to bottom, #eeae36, #e8a020 70%); border: 1px solid #a8700f; border-top-color: #eeae36; border-radius: 0 12px 12px 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32); color: #1a1205; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html body .avi-pf .avi-sk button.avi-sk__arrow svg { display: block; flex: none; color: inherit; }
@media (hover: hover) and (pointer: fine) { html body .avi-pf .avi-sk button.avi-sk__arrow:hover { filter: brightness(1.06); } }
html body .avi-pf .avi-sk button.avi-sk__arrow:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
html body .avi-pf .avi-sk button.avi-sk__arrow:disabled { opacity: .6; cursor: default; }
html body .avi-pf a.avi-sk__google { gap: 10px; height: 48px; padding: 0 18px; background: transparent; border: 1px solid #2a4266; border-radius: 12px; color: #e8eef5; font: 600 15px/1 "DM Sans", system-ui, sans-serif; }
html body .avi-pf a.avi-sk__google:hover { background: #0f1e38; border-color: #7d93ad; }
.avi-sk__goes .avi-sk__soon { margin: 12px 0 0; font-size: 12px; }
html body .avi-pf .avi-sk .avi-sk__rc { margin-top: 12px; font-size: 11px; line-height: 1.4; color: #7d93ad; }
html body .avi-pf .avi-sk .avi-sk__rc a { color: #7d93ad; }
@media (min-width: 768px) {
	html.avi-pf-js.avi-sk-in .avi-sk { padding: 28px 28px 30px; }
	html body .avi-pf .avi-sk .avi-sk__goes .avi-sk__go:not(#avs-raised) { width: 100%; }
	html body .avi-pf .avi-sk .avi-sk__go:not(#avs-raised), html body .avi-pf .avi-sk button.avi-sk__danger { width: auto; min-width: 220px; justify-self: start; }
}

/* ── From 768 px ── */
@media (min-width: 768px) {
	.avi-pf-wrap { padding: 40px 32px 64px; }
	.avi-pf h1.avi-pf-h1 { font-size: 72px; }
	.avi-pf-sub { font-size: 17px; }
	.avi-pf-head { margin-bottom: 36px; }
	.avi-pf-chip--prov > span { min-width: 0; padding: 0 14px; }
	.avi-pf-chip--prov abbr { display: none; }
	.avi-pf-chip--prov b { display: inline; }
	.avi-pf-chip--any { flex: 0 0 auto; }
	.avi-pf--foryou .avi-pf-jobs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.avi-pf--foryou.has-side .avi-pf-jobs__list { grid-template-columns: minmax(0, 1fr); }
	html body .avi-pf a.avi-pf-card { padding: 20px !important; }
}
@media (min-width: 1024px) {
	.avi-pf--foryou.has-side .avi-pf-fy { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
	.avi-pf--foryou.has-side .avi-pf-sidecol { position: sticky; top: 24px; order: 2; }
	.avi-pf--foryou.has-side .avi-pf-jobs__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.avi-pf-js .avi-pf-for.is-on { animation: none; }
	.avi-pf-chip > span, .avi-pf-preview__body, .avi-pf-more > summary::after { transition: none; }
}

/* ── #761 round 3 (owner: "Yes, match them"): every other choice on /my-profile/ (what you fly, the seat, the aircraft
   kind for a type not in our list, medical category and age, AME licence, airport and ground) looks like the "What do
   you do?" rows: a 52 px card, icon (where it has one), label, and a check circle (a rounded square for tick-several)
   that turns gold when picked. Same inputs, names and values as before: only the look changes. For you is untouched. ── */
.avi-pf--form .avi-pf-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.avi-pf--form .avi-pf-chips--kind { grid-template-columns: minmax(0, 1fr); } /* phones: 3 rows, one column */
@media (max-width: 359.98px) { .avi-pf--form .avi-pf-chips { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) { .avi-pf--form .avi-pf-chips--kind { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.avi-pf--form .avi-pf-chip { display: block; }
.avi-pf--form .avi-pf-chip > span, .avi-pf--form .avi-pf-chip--ic > span { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: 100%; min-height: 52px; padding: 8px 12px; background: #0f1a2e; border: 1px solid #1f3354; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.2; color: #e8eef5; }
.avi-pf--form .avi-pf-chip > span::after { content: ""; flex: 0 0 auto; box-sizing: border-box; width: 20px; height: 20px; margin-left: auto; border: 1.5px solid #2a4266; border-radius: 50%; background: transparent center / 12px 12px no-repeat; }
.avi-pf--form .avi-pf-chip input[type="checkbox"] + span::after { border-radius: 5px; }
@media (hover: hover) and (pointer: fine) { .avi-pf--form .avi-pf-chip:hover > span { border-color: #3a557d; color: #e8eef5; } }
.avi-pf--form .avi-pf-chip input:checked + span { background: #15243d; border-color: #2a4266; color: #e8a020; }
.avi-pf--form .avi-pf-chip input:checked + span .avi-pf-ic { color: #e8a020; }
.avi-pf--form .avi-pf-chip input:checked + span::after { background-color: #e8a020; border-color: #e8a020; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%231a1205' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.avi-pf--form .avi-pf-chip input:focus-visible + span { outline: 0; box-shadow: 0 0 0 2px #060f1e, 0 0 0 4px #7d93ad; }

/* #802 (Chris 2026-11-18): not signed in, the form ends with the email boxes and ONE gold "Show my page →" (kept on this
   device); the sign-in (email code / Google) shows only when asked for ("Sign in" at the top, #signin: html.avi-sk-signin). */
html.avi-pf-js:not(.avi-sk-in):not(.avi-sk-signin) .avi-sk__in { display: none !important; }
html.avi-pf-js.avi-sk-signin:not(.avi-sk-in) .avi-sk__in { margin-top: 32px; padding-top: 24px; border-top: 1px solid #1f3354; }
.avi-pf-actions--go { display: block; margin: 0; }
.avi-pf-actions--go .avi-pf-go { width: 100%; max-width: 420px; }
.avi-pf-go__msg { margin-top: 12px; }
.avi-sk__mailto { margin: 16px 0 0; max-width: 420px; }
.avi-sk__mailto[hidden] { display: none; }
.avi-sk__mailto .avi-sk__l { display: block; margin: 0 0 8px; }
.avi-sk__mailto .avi-pf-note { margin: 8px 0 0; }

/* ── #803 (Chris 2026-11-18): FIRST RUN of /my-profile/ (main.is-first, set before the form is parsed): "What do you do?"
   and the ONE question that fits it (main.fr-<pick>, set by avi-profile.js), then #802's "Show my page →". Everything
   else is hidden here and stays on the full form for later edits. Without JavaScript the full form shows, as before. ── */
.avi-pf-who, .avi-pf-train, .avi-pf-firstsub { display: none; }
.avi-pf.is-first .avi-pf-who, .avi-pf.is-first .avi-pf-firstsub { display: block; }
.avi-pf.is-first .avi-pf-head .avi-pf-sub:not(.avi-pf-firstsub) { display: none; }
.avi-pf.is-first [data-step="profession"], .avi-pf.is-first .avi-pf-for__who, .avi-pf.is-first [data-step="kind"], .avi-pf.is-first [data-step="pic"],
.avi-pf.is-first [data-step="me"], .avi-pf.is-first [data-step="lic"], .avi-pf.is-first [data-step="type"],
.avi-pf.is-first [data-step="medical"], .avi-pf.is-first [data-step="ground"], .avi-pf.is-first .avi-sk__mail, .avi-pf.is-first .avi-pf-dash { display: none !important; }
.avi-pf.is-first:not(.fr-other) [data-step="province"] { display: none !important; }
.avi-pf.is-first .avi-pf-pair--3 { grid-template-columns: minmax(0, 1fr); max-width: 260px; }
.avi-pf.is-first .avi-pf-pair--3 > .avi-pf-q { display: block; grid-row: auto; }
.avi-pf.is-first .avi-pf-for.is-on { animation: none; }
.avi-pf.is-first.fr-student .avi-pf-train, .avi-pf.is-stu:not(.is-first) .avi-pf-train { display: block; }
.avi-pf.is-first .avi-pf-who { margin-bottom: 28px; }
.avi-pf--form .avi-pf-chips--train { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.avi-pf--form .avi-pf-chips--train .avi-pf-chip > span { min-height: 44px; }
@media (min-width: 768px) { .avi-pf--form .avi-pf-chips--train { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* H65: a student on the full form: no "What do you fly?", hours, licence or type; the train question (above) shows */
.avi-pf.is-stu:not(.is-first) .avi-pf-for[data-for="pilots"]:not(.avi-pf-for--med) { display: none !important; } /* the medical box (own wrapper) stays */
/* H65: a student has the train question (under Profession); the work-province question is not shown */
.avi-pf.is-stu:not(.is-first) [data-step="province"] { display: none !important; }

/* ── H65 (Chris 2026-11-18): /my-profile/ layout: YOUR FLYING > WHERE > MEDICAL > EMAILS > Save last > account ── */
.avi-pf-sec { margin: 40px 0 14px; font: 500 11px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #e8a020; }
.avi-pf-sec:first-of-type { margin-top: 8px; }
.avi-pf.is-first .avi-pf-sec, .avi-pf.is-stu:not(.is-first) .avi-pf-sec--where { display: none; }
.avi-pf-head__top { justify-content: flex-end; }
/* same width for every control */
.avi-pf-col .avi-pf-field:not(.avi-pf-field--num), .avi-pf-col .avi-pf-seg, .avi-pf-col .avi-pf-type { max-width: none; }
/* emails: the section is plain; Save is its last control; the account sits below a thin divider */
html.avi-pf-js .avi-sk, html.avi-pf-js.avi-sk-in .avi-sk { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
html.avi-pf-js .avi-sk__l--mail { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.avi-pf-js .avi-sk__mail { margin: 0 0 24px; }
.avi-sk > .avi-pf-actions { margin: 0 0 8px; }
html.avi-pf-js.avi-sk-in .avi-sk__in { margin-top: 28px; padding-top: 18px; border-top: 1px solid #1f3354; }
html.avi-pf-js.avi-sk-in .avi-sk__h { display: none; }
html.avi-pf-js.avi-sk-in .avi-sk__who { margin: 0 0 6px; font-size: 14px; }
.avi-sk__acts { gap: 0 8px; }
/* H81 (Chris 2026-11-19): Delete account sits on the same line after the others (" · Delete account"), still muted red; the row wraps on phones */
.avi-sk__acts .avi-sk__link:not(.avi-sk__link--del)::after { content: "\00b7"; margin-left: 8px; color: #7d93ad; }
html body .avi-pf .avi-sk button.avi-sk__link--del { flex-basis: auto; justify-content: flex-start; color: #ec6c60; text-decoration: underline; text-decoration-color: #ec6c60; } /* the job cards' short-row ✕ red (avi-fy.css), underlined in the same colour */
/* H81 (Chris 2026-11-19): a device-only page: "Saved on this device only · Sign in to keep it · Remove from this device" under
   the form (the same row look as the account links), a confirm step under it */
.avi-sk__devrow[hidden], .avi-sk__devask[hidden] { display: none !important; }
.avi-sk__devrow { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #1f3354; }
.avi-sk__devline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; font: 500 15px/1.3 "DM Sans", system-ui, sans-serif; color: #94a7be; }
.avi-sk__devline > .avi-sk__dot { color: #7d93ad; } /* the separators are their own spans (never underlined with the link) */
.avi-sk__devask { margin: 10px 0 0; padding: 12px 14px; border: 1px solid #1f3354; border-radius: 10px; background: #0f1a2e; }
.avi-sk__devask .avi-sk__p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: #cfd9e5; }
.avi-sk__devacts { display: flex; flex-wrap: wrap; gap: 0 18px; }
@media (max-width: 767.98px) {
	/* H65: the Save button keeps its slot in the flow (constant height, room kept under the page) and, once something changed,
	   the button and its bar are fixed to the bottom of the screen: nothing moves when it switches on */
	html body .avi-pf { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
	html body .avi-pf .avi-sk > .avi-pf-actions { min-height: 56px; margin: 0 0 8px; }
	html body .avi-pf.is-dirty .avi-sk > .avi-pf-actions::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(76px + env(safe-area-inset-bottom, 0px)); background: #0a1628; border-top: 1px solid #1f3354; box-shadow: 0 -8px 24px rgba(0, 0, 0, .45); }
	html body .avi-pf.is-dirty .avi-sk > .avi-pf-actions .avi-pf-save:not(#avs-raised), html body .avi-pf.is-dirty .avi-sk > .avi-pf-actions .avi-pf-go:not(#avs-raised) { position: fixed; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 61; width: auto; max-width: none; margin: 0; }
	/* H110 (Chris 2026-11-20, iPhone): once the page is scrolled, iPhone Safari shrinks its bottom toolbar to a strip at the
	   bottom of the screen, and a tap on that strip only brings the toolbar back. The button sat 10px above the screen's edge
	   (the site has no viewport-fit=cover, so the safe-area inset is 0): it took 2-3 taps. The button and its bar now stay
	   above that strip, lifted by the height the toolbar gave back (100dvh - 100svh: 0 while the toolbar shows; iOS only) */
	@supports (-webkit-touch-callout: none) and (height: 100dvh) {
		html body .avi-pf.is-dirty .avi-sk > .avi-pf-actions::before { height: calc(76px + env(safe-area-inset-bottom, 0px) + 100dvh - 100svh); }
		html body .avi-pf.is-dirty .avi-sk > .avi-pf-actions .avi-pf-save:not(#avs-raised), html body .avi-pf.is-dirty .avi-sk > .avi-pf-actions .avi-pf-go:not(#avs-raised) { bottom: calc(10px + env(safe-area-inset-bottom, 0px) + 100dvh - 100svh); }
	}
}
/* H110: a half-done medical at save: the warning at the top of the medical box (the form's own amber message line, two navy buttons) */
.avi-pf-medwarn { margin: 0 0 16px; }
.avi-pf-medwarn[hidden] { display: none; }
.avi-pf-medwarn > .avi-pf-msg { margin: 0 0 10px; font-size: 15px; }
.avi-pf-medwarn__acts { display: flex; flex-wrap: wrap; gap: 12px; }
/* H110: tapped =the button says so at once ("Opening your briefing…" / "Saving…"), so nobody taps again while the page loads */
html body .avi-pf .avs-btn--gold.is-going:not(#avs-raised) { cursor: progress; }
/* H65: without JavaScript the Save button (inside .avi-sk now) stays; the rest of the section does not */
html:not(.avi-pf-js) .avi-sk { display: block !important; margin: 0; padding: 0; background: transparent; border: 0; }
html:not(.avi-pf-js) .avi-sk > :not(.avi-pf-actions), html:not(.avi-pf-js) .avi-sk > .avi-pf-actions--go { display: none !important; }

/* F2 audit fixes (2026-11-18) */
/* X5: the section label reads "Your flying" for pilots and students, "Your work" for everyone else */
.avi-pf-sec--work { display: none; }
.avi-pf.fr-maintenance .avi-pf-sec--fly, .avi-pf.fr-other .avi-pf-sec--fly { display: none; }
.avi-pf.fr-maintenance .avi-pf-sec--work, .avi-pf.fr-other .avi-pf-sec--work { display: block; }
.avi-pf.is-first .avi-pf-sec--work { display: none; }
/* 4.1: no medical for a drone pilot */
.avi-pf-for.is-nokind { display: none !important; }
/* X10: Show my page is as wide as the fields; the chip's label wraps to two lines at phone width; no lone Sign in under the full banner */
.avi-pf-actions--go .avi-pf-go { max-width: none; }
@media (max-width: 430px) {
	.avi-pf-row__in { gap: 8px; padding: 8px 10px; }
	.avi-pf-row__t { font-size: 13px; }
}
.avc-keep:not([hidden]):not(.is-min):not(.is-done) ~ .avi-pf-head .avi-pf-signin { display: none; }
/* H116 (Chris 2026-11-21): the aircraft type list opened under the later sections ("Anywhere in Canada", Medical). The section's entrance animation gives it its own layer, painted below later positioned content; lift the open section above them. */
.avi-pf-for.is-on { position: relative; z-index: 3; }
