/* public/careers/careers.css — HR System P19. Self-contained brand stylesheet
   for the public careers site: Taziker navy #1C355D, action orange #DC5F20,
   serif headings, flat surfaces (the app's design tokens, hand-inlined —
   no CDN fonts/styles; the page CSP allows no external origins). */

:root {
  --navy: #1C355D;
  --orange: #DC5F20;
  --orange-soft: #EE9366;
  --page-bg: #F4F5F7;
  --card-border: #E8EBEF;
  --text: #22314A;
  --muted: #5A6B85;
  --label: #A2ADBE;
  --ok-bg: #EDF7EE;
  --ok-border: #2F9E44;
  --fail-bg: #FDF0EC;
  --fail-border: #C92A2A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .4em;
}

a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange-soft);
  outline-offset: 2px;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ── Header / footer ─────────────────────────────────────────────────────── */

.siteHeader { background: var(--navy); }
.headerInner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand img { display: block; }
.headerLink { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14px; }
.headerLink:hover { color: #fff; text-decoration: underline; }

.siteFooter { background: var(--navy); color: rgba(255, 255, 255, .7); margin-top: 56px; font-size: 13px; }
.footerInner { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.siteFooter a { color: rgba(255, 255, 255, .85); }

/* ── Banner ──────────────────────────────────────────────────────────────── */

.banner { background: var(--navy); color: #fff; padding: 44px 0 40px; }
.bannerCompact { padding: 30px 0 28px; }
.banner h1 { color: #fff; font-size: 40px; margin: 0 0 8px; }
.bannerCompact h1 { font-size: 30px; }
.bannerKicker {
  color: var(--orange-soft); text-transform: uppercase; letter-spacing: .08em;
  font-size: 12px; font-weight: 700; margin: 0 0 6px;
}
.bannerSub { color: rgba(255, 255, 255, .82); margin: 0; font-size: 17px; }
.bannerClosing { color: var(--orange-soft); margin: 8px 0 0; font-size: 14px; }
.backLink { color: rgba(255, 255, 255, .8); text-decoration: none; display: inline-block; margin-bottom: 12px; font-size: 14px; }
.backLink:hover { color: #fff; }
.refBadge {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 99px;
  background: rgba(255, 255, 255, .12); font-size: 12px; letter-spacing: .04em;
}

/* ── Sections & cards ────────────────────────────────────────────────────── */

.section { padding: 34px 20px 0; }
.sectionNarrow { max-width: 680px; }

.jobGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .jobGrid { grid-template-columns: 1fr; } }

.jobCard {
  background: #fff; border: 1px solid var(--card-border); border-radius: 10px;
  padding: 22px 22px 18px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(28, 53, 93, .05);
}
.jobTitle { font-size: 21px; margin-bottom: 4px; }
.jobTitle a { text-decoration: none; }
.jobTitle a:hover { text-decoration: underline; }
.jobMeta { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.jobExcerpt { margin: 0 0 12px; font-size: 15px; }
.jobClosing { color: var(--orange); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.jobActions { margin-top: auto; display: flex; gap: 10px; }

.emptyState {
  background: #fff; border: 1px solid var(--card-border); border-radius: 10px;
  padding: 44px 28px; text-align: center;
}
.emptyState p { color: var(--muted); }

/* ── Detail layout ───────────────────────────────────────────────────────── */

.detailLayout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .detailLayout { grid-template-columns: 1fr; } }

.jobDescription {
  background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 26px 28px;
}
.jobDescription h3, .jobDescription h4 { margin-top: 1.2em; }
.jobDescription ul, .jobDescription ol { padding-left: 22px; }
.jobDescription blockquote { border-left: 3px solid var(--orange); margin-left: 0; padding-left: 14px; color: var(--muted); }

/* ── Apply form ──────────────────────────────────────────────────────────── */

.applyPanel {
  background: #fff; border: 1px solid var(--card-border); border-radius: 10px;
  padding: 24px; position: sticky; top: 16px;
}
.applyPanel h2 { font-size: 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--navy); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #C4CCD8; border-radius: 6px;
  font: inherit; color: var(--text); background: #fff;
}
.field input[type="file"] { font-size: 14px; }
.field textarea { resize: vertical; }
.hint { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.req { color: var(--orange); }

.fieldCheckbox label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.fieldCheckbox input { width: 16px; height: 16px; }

fieldset.screening { border: 1px solid var(--card-border); border-radius: 8px; padding: 12px 14px 4px; margin: 0 0 14px; }
fieldset.screening legend { font-size: 15px; padding: 0 6px; }

.consentLine { color: var(--muted); font-size: 12.5px; }

.fieldError { color: #C92A2A; font-size: 12.5px; margin: 4px 0 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #C92A2A; }

/* Honeypot — off-screen, not display:none (some bots skip hidden fields). */
.hpField { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer;
}
.btnPrimary { background: var(--orange); color: #fff; }
.btnPrimary:hover { background: #C25219; }
.btnPrimary[disabled] { opacity: .6; cursor: default; }
.btnGhost { background: #fff; color: var(--navy); border-color: #C4CCD8; }
.btnGhost:hover { border-color: var(--navy); }
.btnSubmit { width: 100%; margin-top: 10px; }

/* ── Result panels ───────────────────────────────────────────────────────── */

.resultPanel { border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
.resultPanel h1 { font-size: 24px; }
.resultOk { background: var(--ok-bg); border: 1px solid var(--ok-border); }
.resultFail { background: var(--fail-bg); border: 1px solid var(--fail-border); }
