/* Aurus.ai — Careers (careers.css). The apply panel (crx-) plus two helpers
   for the restored page. Pairs with careers.js. */

/* tokens for the panel; the restored page does not load aurus-2026.css */
.crx-overlay { --a-navy: var(--primary-navy, #061c39); --a-gold: var(--accent-yellow, #ffc000); --a-line: #E2E8F0; --a-muted: #475569; --a-ink: #0F172A; --a-wash: #F8FAFC; }

/* roles hidden by Platform Admin (not published) */
.job-card[hidden], .job-nav-link[hidden], .job-nav-section-label[hidden], .job-nav-divider[hidden] { display: none !important; }

/* added roles: section headings inside the card body */
.job-card[data-crx-added] .job-section h3 { font-size: 1.1rem; color: var(--primary-navy, #061c39); margin: 1.4rem 0 .6rem; }
.job-card[data-crx-added] .job-section ul { margin: 0 0 .5rem; padding-left: 1.2rem; line-height: 1.7; color: #475569; }

.crx-lock, .crx-lock body { overflow: hidden; }
.crx-moving, .crx-moving * { user-select: none !important; }

/* Window chrome follows the suite modal (src/shell/modal.css):
   navy bar, gold rule, muted sub-line, 14px radius. Position and size
   are set by careers.js; only the body scrolls. */
.crx-overlay {
  position: fixed; inset: 0; z-index: 10000; display: none;
  background: rgba(6,28,57,.5); overflow: hidden;
}
.crx-overlay.crx-show { display: block; }
.crx-dialog {
  position: absolute; display: flex; flex-direction: column;
  width: 860px; height: 88vh; max-width: calc(100vw - 8px); max-height: calc(100vh - 8px);
  background: #fff; border-radius: 14px; border: 1px solid #b9c4d2;
  box-shadow: 0 24px 60px rgba(6,28,57,.32); outline: none; overflow: hidden;
}
.crx-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  background: var(--a-navy); color: #fff; padding: 14px 16px 14px 20px;
  border-bottom: 3px solid var(--a-gold); cursor: move; touch-action: none;
}
.crx-titles { flex: 1; min-width: 0; }
.crx-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: #fff; }
.crx-head-meta { margin-top: 2px; font-size: .8rem; line-height: 1.4; color: #b9c6d8; }
.crx-x {
  flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: #fff; font-size: 21px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.crx-x:hover { background: rgba(255,255,255,.14); }
.crx-x:focus-visible { outline: 2px solid var(--a-gold); outline-offset: 1px; }
.crx-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1.4rem 1.8rem 1.8rem; color: var(--a-ink); }
.crx-grip {
  position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, var(--a-line) 50%, var(--a-line) 58%, transparent 58%, transparent 70%, var(--a-line) 70%, var(--a-line) 78%, transparent 78%);
}
.crx-body h3 { margin: 1.4rem 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--a-navy); }
.crx-role p { margin: 0 0 .8rem; line-height: 1.7; }
.crx-role ul { margin: 0 0 .5rem; padding-left: 1.2rem; line-height: 1.7; }
.crx-role:empty { display: none; }

.crx-form { border-top: 1px solid var(--a-line); margin-top: 1.2rem; }
.crx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.crx-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--a-navy); }
.crx-grid label span { font-weight: 400; color: var(--a-muted); }
.crx-span { grid-column: span 2; }
.crx-grid input, .crx-grid textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--a-ink); padding: .65rem .8rem;
  border: 1.5px solid var(--a-line); border-radius: 9px; background: #fff; width: 100%; box-sizing: border-box;
}
.crx-grid textarea { resize: vertical; }
.crx-grid input:focus, .crx-grid textarea:focus { outline: none; border-color: var(--a-navy); box-shadow: 0 0 0 3px rgba(6,28,57,.12); }
.crx-file-label { font-size: .85rem; font-weight: 700; color: var(--a-navy); margin-bottom: .35rem; }
.crx-file-label span { font-weight: 400; color: var(--a-muted); }
.crx-zone {
  display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 1rem;
  border: 2px dashed var(--a-line); border-radius: 12px; background: var(--a-wash);
  color: var(--a-muted); text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.crx-zone:hover, .crx-zone:focus-visible, .crx-zone.is-over { border-color: var(--a-gold); outline: none; }
.crx-zone.is-over { background: rgba(255,192,0,.08); }
.crx-zone.has-file { border-style: solid; border-color: var(--a-navy); background: #fff; cursor: default; }
.crx-zone-text { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .95rem; }
.crx-zone-text svg { color: var(--a-navy); }
.crx-zone-text[hidden], .crx-zone-file[hidden] { display: none; }
.crx-browse { color: var(--a-navy); text-decoration: underline; text-underline-offset: 2px; }
.crx-zone-file { display: flex; align-items: center; gap: .8rem; color: var(--a-ink); font-size: .95rem; }
.crx-file-name { overflow-wrap: anywhere; }
.crx-file-x {
  flex: none; font: inherit; font-size: .85rem; padding: .35rem .9rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--a-navy); border: 1.5px solid var(--a-navy);
}
.crx-file-x:hover { background: var(--a-navy); color: #fff; }
.crx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.crx-fine { font-size: .82rem; color: var(--a-muted); margin: 1rem 0 0; }
.crx-fine a { color: var(--a-navy); }
.crx-error { margin-top: 1rem; padding: .75rem .9rem; border-radius: 9px; background: #fdf3f3; color: #8a1c1c; font-size: .92rem; }
.crx-error[hidden] { display: none; }
.crx-submit { display: flex; justify-content: center; width: auto; margin: 1.1rem auto 0; padding: .6rem 1.75rem; font-weight: 400; font-size: .95rem; }
.crx-submit:disabled { opacity: .6; cursor: default; transform: none; }
.crx-done { text-align: center; padding: 1rem 0 .4rem; }
.crx-done[hidden], .crx-form[hidden] { display: none; }
.crx-done p { line-height: 1.7; margin: 0 0 1.2rem; }
.crx-ref { display: block; margin-top: .6rem; font-size: .85rem; color: var(--a-muted); }

@media (max-width: 640px) {
  .crx-grid { grid-template-columns: 1fr; }
  .crx-span { grid-column: span 1; }
  .crx-head { cursor: default; padding: 12px 12px 12px 16px; }
  .crx-body { padding: 1.1rem 1.2rem 1.4rem; }
  .crx-dialog { inset: 0 !important; width: auto !important; height: auto !important; max-width: none; max-height: none; border-radius: 0; border: 0; }
  .crx-grip { display: none; }
}

/* v3: level line, summary clamp, role sections */
.crx-card-level { font-size: .9rem; font-weight: 600; color: var(--a-navy); margin-top: -.2rem; }
.crx-card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.crx-lede { font-size: 1.05rem; line-height: 1.7; margin: 0 0 .4rem; }
.crx-role h3 { text-transform: none; letter-spacing: 0; font-size: 1.08rem; margin: 1.5rem 0 .55rem; }
.crx-role ul { margin: 0 0 .4rem; }
.crx-role li { margin-bottom: .3rem; }
