/* ================================================
   CAREER START — first-time pilots (#start-career-section on career.html)
   Region + airline grid on the left, offer panel (contract + signing) on the right.
   ================================================ */

.cst {
    --cst-card: #fff;
    --cst-line: #e2e8f0;
    --cst-ink: #1e293b;
    --cst-muted: #64748b;
    --cst-soft: #f1f5f9;
    --cst-primary: #4092cc;
    --cst-green: #16a34a;
    --cst-shadow: 0 6px 20px -12px rgba(15, 23, 42, .25);
    color: var(--cst-ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
body.dark-mode .cst {
    --cst-card: #2c2c2e;
    --cst-line: #3a3a3c;
    --cst-ink: #f1f5f9;
    --cst-muted: #a1a1aa;
    --cst-soft: #1f1f21;
    --cst-shadow: 0 6px 20px -12px rgba(0, 0, 0, .6);
}
/* Cancels the global green button lift */
.cst button:hover { transform: none; box-shadow: none; }
.cst h1, .cst h2, .cst h3, .cst h4 { font-family: 'Poppins', sans-serif; margin: 0; color: var(--cst-ink); }

/* ── Top bar ── */
.cst-bar { padding-left: 14px; }
.cst-brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.cst-brand i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(64, 146, 204, .12); color: var(--cst-primary); }
.cst-steps { display: flex; align-items: center; gap: .25rem; margin: 0 auto; }
.cst-step { display: flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--cst-muted); white-space: nowrap; }
.cst-step b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--cst-soft); border: 1px solid var(--cst-line); }
.cst-step.done { color: var(--cst-green); }
.cst-step.done b { background: var(--cst-green); border-color: var(--cst-green); color: #fff; font-size: .6rem; }
.cst-step.on { color: var(--cst-primary); background: rgba(64, 146, 204, .1); }
.cst-step.on b { background: var(--cst-primary); border-color: var(--cst-primary); color: #fff; }
.cst-step-sep { width: 18px; height: 1px; background: var(--cst-line); }
.cst .cst-clocks { margin-left: 0; }

/* ── Card shell ── */
.cst-card { background: var(--cst-card); border: 1px solid var(--cst-line); border-radius: 14px; box-shadow: var(--cst-shadow); }
.cst-card-h { display: flex; align-items: center; gap: .65rem; padding: 14px 18px; border-bottom: 1px solid var(--cst-line); }
.cst-card-h h3 { font-size: 1rem; font-weight: 600; }
.cst-sub { margin-left: auto; font-size: .78rem; color: var(--cst-muted); }
.cst-tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: .85rem; flex: none; }
.cst-t-blue { background: rgba(64, 146, 204, .12); color: var(--cst-primary); }
.cst-t-sky { background: rgba(14, 165, 233, .12); color: #0ea5e9; }
.cst-t-amber { background: rgba(245, 166, 35, .14); color: #d98a06; }
.cst-t-green { background: rgba(22, 163, 74, .12); color: var(--cst-green); }
.cst-t-purple { background: rgba(139, 92, 246, .12); color: #8b5cf6; }

/* ── Hero ── */
.cst-hero { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; margin-bottom: 20px; }
.cst-hero-l { padding: 28px 30px; }
.cst-kicker { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cst-primary); background: rgba(64, 146, 204, .1); padding: .3rem .65rem; border-radius: 999px; }
.cst-hero h1 { font-size: 1.9rem; font-weight: 700; margin: .7rem 0 .4rem; letter-spacing: -.01em; }
.cst-hero p { color: var(--cst-muted); margin: 0 0 1.2rem; max-width: 560px; line-height: 1.55; }
.cst-perks { display: flex; flex-wrap: wrap; gap: .5rem; }
.cst-perk { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: 10px; background: var(--cst-soft); font-size: .82rem; font-weight: 600; }
.cst-perk i { color: var(--cst-primary); }
.cst-hero-r { position: relative; padding: 24px 28px; background: linear-gradient(135deg, #0f2a44, #1d4f7a 60%, #4092cc); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.cst-hero-r::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200'%3E%3Cpath d='M-20 170 Q200 -40 420 120' stroke='white' stroke-opacity='.12' stroke-width='1.5' fill='none' stroke-dasharray='5 6'/%3E%3Cpath d='M-20 60 Q180 210 420 40' stroke='white' stroke-opacity='.08' stroke-width='1.5' fill='none' stroke-dasharray='5 6'/%3E%3C/svg%3E") center/cover; }
.cst-hero-r label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cst-regions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.cst-region { padding: .5rem .85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: 600 .82rem 'Plus Jakarta Sans', sans-serif; cursor: pointer; transition: background .15s; }
.cst-region:hover { background: rgba(255, 255, 255, .18); }
.cst-region.active { background: #fff; color: #0f2a44; border-color: #fff; }
.cst-refresh { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .82rem; }
.cst-refresh-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(0, 0, 0, .22); font-variant-numeric: tabular-nums; }
.cst-refresh-pill:empty { display: none; }
.cst-refresh small { opacity: .7; }

/* ── Main split ── */
.cst-split { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
.cst-toolbar { display: flex; align-items: center; gap: .5rem; padding: 12px 18px; border-bottom: 1px solid var(--cst-line); flex-wrap: wrap; }
.cst-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cst-soft); border: 1px solid var(--cst-line); }
.cst-seg button { border: 0; background: none; padding: .38rem .8rem; border-radius: 999px; font: 600 .78rem 'Plus Jakarta Sans', sans-serif; color: var(--cst-muted); cursor: pointer; }
.cst-seg button:hover { background: none; color: var(--cst-ink); }
.cst-seg button.on, .cst-seg button.on:hover { background: var(--cst-card); color: var(--cst-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.cst-count { margin-left: auto; font-size: .78rem; color: var(--cst-muted); }
.cst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding: 18px; }
.cst-grid > .loading-message, .cst-grid > .no-aircraft-message, .cst-grid > .cst-empty { grid-column: 1 / -1; }

/* Airline card */
.cst-al { position: relative; display: flex; flex-direction: column; border: 1px solid var(--cst-line); border-radius: 14px; background: var(--cst-card); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cst-al:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(15, 23, 42, .45); }
.cst-al.sel { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), 0 12px 26px -16px rgba(15, 23, 42, .45); }
.cst-al[hidden] { display: none; }
.cst-band { position: relative; height: 64px; background: var(--c); display: flex; align-items: center; padding: 0 14px; }
.cst-band::after, .cst-of-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .18) 0 30%, transparent 30% 34%, rgba(255, 255, 255, .1) 34% 40%, transparent 40%); }
.cst-logo { position: relative; z-index: 1; width: 120px; height: 44px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 6px 10px; box-sizing: border-box; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
/* Fill the padded box and let object-fit centre the logo inside it */
.cst-logo img { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; }
.cst-logo span { font-weight: 800; font-size: .8rem; color: #0f172a; text-align: center; line-height: 1.1; }
.cst-tier { position: absolute; z-index: 1; right: 12px; top: 12px; padding: .2rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0f172a; font-size: .68rem; font-weight: 700; }
.cst-tier.reg { background: #0f172a; color: #fff; }
.cst-al-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.cst-al-name { font-size: .8rem; color: var(--cst-muted); font-weight: 600; }
.cst-al-ac { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.cst-al-base { display: flex; align-items: center; gap: .45rem; font-size: .82rem; min-width: 0; }
.cst-al-base b { font-family: 'Poppins', sans-serif; padding: .1rem .4rem; border-radius: 6px; background: var(--cst-soft); border: 1px solid var(--cst-line); font-size: .75rem; }
.cst-al-base span { color: var(--cst-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cst-al-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cst-al-stat { padding: .45rem .6rem; border-radius: 9px; background: var(--cst-soft); }
.cst-al-stat small { display: block; font-size: .65rem; color: var(--cst-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cst-al-stat strong { font-size: .92rem; font-variant-numeric: tabular-nums; }
.cst-al-stat em { font-style: normal; font-size: .7rem; color: var(--cst-muted); }
.cst-al-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .76rem; color: var(--cst-muted); }
.cst-al-foot .go { color: var(--cst-primary); font-weight: 700; display: flex; align-items: center; gap: .3rem; white-space: nowrap; }

/* ── Offer panel ── */
.cst-panel { position: sticky; top: 82px; overflow: hidden; }
.cst-empty { padding: 48px 28px; text-align: center; color: var(--cst-muted); }
.cst-empty .cst-tile { width: 56px; height: 56px; border-radius: 16px; font-size: 1.3rem; margin: 0 auto 1rem; }
.cst-empty h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.cst-empty p { margin: 0; font-size: .85rem; }
.cst-empty ol { text-align: left; max-width: 280px; margin: 1.4rem auto 0; padding: 0; list-style: none; display: grid; gap: .6rem; font-size: .84rem; }
.cst-empty li { display: flex; gap: .6rem; align-items: center; }
.cst-empty li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--cst-soft); border: 1px solid var(--cst-line); font-size: .7rem; color: var(--cst-ink); }

.cst-of-band { position: relative; padding: 18px 20px; background: var(--c); color: #fff; display: flex; align-items: center; gap: 14px; }
.cst-of-band .cst-logo { width: 104px; height: 48px; flex: none; }
.cst-of-band h2 { position: relative; z-index: 1; font-size: 1.15rem; font-weight: 600; color: inherit; }
.cst-of-band small { position: relative; z-index: 1; display: block; opacity: .85; font-size: .78rem; margin-top: 2px; }
.cst-of-band.light { color: #0f172a; }
.cst-of-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .2); color: #fff; cursor: pointer; }
.cst-of-close:hover { background: rgba(0, 0, 0, .35); }
.cst-of-scroll { max-height: calc(100vh - 82px - 86px - 20px); overflow-y: auto; }
.cst-of-sec { padding: 16px 20px; border-bottom: 1px solid var(--cst-line); }
.cst-of-sec:last-child { border-bottom: 0; }
.cst-of-label { font-size: .7rem; font-weight: 700; color: var(--cst-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem; }
/* Also .job-row-map, which brings the zoom/fullscreen button styling from the Jobs board */
.cst-of-map { height: 170px; min-height: 0; border-radius: 12px; background: var(--cst-soft); border: 1px solid var(--cst-line); overflow: hidden; }
.cst-of-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.cst-of-tile { padding: .55rem .65rem; border-radius: 10px; background: var(--cst-soft); min-width: 0; }
.cst-of-tile small { display: block; font-size: .65rem; color: var(--cst-muted); font-weight: 700; text-transform: uppercase; }
.cst-of-tile strong { font-size: .92rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cst-of-tile strong i { font-size: .7rem; color: var(--cst-muted); margin: 0 .3rem 0 .15rem; }

.cst-tiers { display: grid; gap: 8px; }
.cst-tier-opt { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--cst-line); cursor: pointer; transition: border-color .15s, background .15s; }
.cst-tier-opt:hover { border-color: #cbd5e1; }
body.dark-mode .cst-tier-opt:hover { border-color: #52525b; }
.cst-tier-opt.sel { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); }
.cst-radio { grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; position: relative; }
.cst-tier-opt.sel .cst-radio { border-color: var(--c); }
.cst-tier-opt.sel .cst-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c); }
.cst-tier-name { font-weight: 700; font-size: .9rem; }
.cst-tier-name .stars { color: #f5a623; letter-spacing: 1px; margin-left: .3rem; font-size: .8rem; }
.cst-tier-rate { font-family: 'Poppins', sans-serif; font-weight: 600; text-align: right; }
.cst-tier-meta { font-size: .76rem; color: var(--cst-muted); }
.cst-tier-bonus { font-size: .76rem; text-align: right; color: var(--cst-green); font-weight: 700; white-space: nowrap; }
.cst-tier-bonus.none { color: var(--cst-muted); font-weight: 500; }
.cst-tag { font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cst-primary); background: rgba(64, 146, 204, .12); padding: .1rem .4rem; border-radius: 5px; margin-left: .35rem; vertical-align: 2px; }

.cst-terms { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .85rem; margin: 0 0 12px; }
.cst-terms dt { color: var(--cst-muted); }
.cst-terms dd { margin: 0; font-weight: 600; text-align: right; }
.cst-terms dd.up { color: var(--cst-green); }
.cst-cta { width: 100%; margin-top: 14px; padding: .85rem 1rem; border: 0; border-radius: 12px; background: var(--c, var(--cst-primary)); color: var(--c-on, #fff); font: 700 .95rem 'Plus Jakarta Sans', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: opacity .15s, filter .15s; }
.cst-cta:hover:not(:disabled) { background: var(--c, var(--cst-primary)); filter: brightness(1.08); }
.cst-cta:disabled { opacity: .4; cursor: not-allowed; }
.cst-locked { opacity: .45; pointer-events: none; }

.cst-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.cst-note { padding: 16px 18px; display: flex; gap: .8rem; }
.cst-note h4 { font-size: .88rem; margin-bottom: .25rem; }
.cst-note p { margin: 0; font-size: .8rem; color: var(--cst-muted); line-height: 1.5; }

@media (max-width: 1200px) {
    .cst-split { grid-template-columns: minmax(0, 1fr) 390px; }
    .cst-step span { display: none; }
}
@media (max-width: 960px) {
    .cst-hero { grid-template-columns: 1fr; }
    .cst-split { grid-template-columns: 1fr; }
    .cst-panel { position: static; }
    .cst-of-scroll { max-height: none; }
    .cst-notes { grid-template-columns: 1fr; }
    .cst .cst-clocks { display: none; }
}
@media (max-width: 640px) {
    .cst-brand span { display: none; }
    .cst-step { padding: .3rem .45rem; }
    .cst-step-sep { width: 8px; }
    .cst-hero-l, .cst-hero-r { padding: 20px; }
    .cst-hero h1 { font-size: 1.45rem; }
    .cst-grid { grid-template-columns: 1fr; padding: 14px; }
}
