/* Careers pages. Built on the site's own tokens (eds-base.css) and chrome (eds-pages.css), with the
   same light and dark themes. No inline styles: the careers pages' CSP forbids them.
   Link after eds-pages.css and before eds-responsive.css. */

[hidden] { display: none !important; }
body.a-body { display: flex; flex-direction: column; min-height: 100vh; overflow-wrap: anywhere; }
body.a-body > main { flex: 1; width: 100%; padding: 72px 0 96px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--eds-gold-700); outline-offset: 3px; }
body.dark :focus-visible { outline-color: var(--eds-gold-500); }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; background: var(--eds-ink-950); color: var(--eds-ink-50); padding: 12px 20px; text-decoration: none; font-family: var(--eds-sans); }
.skip-link:focus { top: 12px; }

.a-nav ul a.nav-cta { height: 38px; padding: 0 18px; }
.a-theme-toggle svg.ic { stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.a-footer .footer-contact { font-family: var(--eds-serif); font-size: 14px; color: var(--eds-ink-300); }

.careers-body { max-width: 780px; }

/* headings and text */
.careers-body .eyebrow {
  font-family: var(--eds-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--eds-gold-900); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.careers-body .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--eds-gold-900); }
.careers-body h1 { font-family: var(--eds-display); font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.025em; color: var(--eds-ink-950); margin: 0 0 24px; }
.careers-body h1 strong { font-weight: 400; font-style: italic; color: var(--eds-gold-900); }
.careers-body h2 { font-family: var(--eds-display); font-weight: 500; font-size: 24px; line-height: 1.25; color: var(--eds-ink-950); margin: 40px 0 12px; }
.careers-body h3 { font-family: var(--eds-display); font-weight: 500; font-size: 18px; color: var(--eds-ink-950); margin: 24px 0 8px; }
.careers-body p, .careers-body ul, .careers-body ol { font-family: var(--eds-serif); font-size: 17px; line-height: 1.6; color: var(--eds-ink-700); margin: 0 0 16px; }
.careers-body ul, .careers-body ol { padding-left: 24px; }
.careers-body li { margin-bottom: 6px; }
.careers-body .lede { font-size: 19px; line-height: 1.5; max-width: 640px; }
.careers-body .muted { color: var(--eds-ink-600); }
.careers-body .meta { font-family: var(--eds-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--eds-ink-600); }
.careers-body a { color: var(--eds-gold-900); text-decoration: underline; text-underline-offset: 3px; }
.careers-body a:hover { color: var(--eds-ink-950); }

.panel, .empty-state { background: #fff; border: 1px solid var(--eds-ink-200); padding: 32px 28px; margin: 24px 0; }
.panel { padding: 28px; }
.empty-state p:last-child { margin-bottom: 0; }

/* buttons (links styled as the site's buttons, and real buttons in the live state) */
.careers-body .btn, .careers-body button.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px;
  font-family: var(--eds-sans); font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  background: var(--eds-ink-900); color: var(--eds-ink-50); border: 1px solid var(--eds-ink-900);
  text-decoration: none; cursor: pointer; transition: background 0.18s, border-color 0.18s;
}
.careers-body .btn:hover { background: var(--eds-ink-950); border-color: var(--eds-gold-700); color: var(--eds-ink-50); }
.careers-body .btn[disabled], .careers-body .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.careers-body .btn-ghost { background: transparent; color: var(--eds-ink-900); border-color: var(--eds-ink-300); }
.careers-body .btn-ghost:hover { background: transparent; border-color: var(--eds-gold-700); color: var(--eds-gold-900); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; align-items: center; }

/* forms (live state only) */
.careers-body form { margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label, .field legend, .label {
  font-family: var(--eds-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eds-ink-700);
}
.req { color: var(--eds-gold-900); }
.careers-body .help { font-family: var(--eds-sans); font-size: 14px; color: var(--eds-ink-600); margin: 0; }
.careers-body input[type="text"], .careers-body input[type="email"], .careers-body input[type="tel"], .careers-body input[type="url"],
.careers-body input[type="number"], .careers-body input[type="date"], .careers-body input[type="search"], .careers-body select, .careers-body textarea {
  background: #fff; border: 1px solid var(--eds-ink-500); color: var(--eds-ink-950);
  font-family: var(--eds-sans); font-size: 16px; padding: 12px 16px; width: 100%; min-height: 44px; border-radius: 0; appearance: none;
}
.careers-body select { background-image: linear-gradient(45deg, transparent 50%, var(--eds-ink-600) 50%), linear-gradient(135deg, var(--eds-ink-600) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.careers-body textarea { min-height: 120px; resize: vertical; }
.careers-body input[type="file"] { color: var(--eds-ink-700); font-size: 14px; width: 100%; padding: 10px 0; }
.careers-body input[readonly] { color: var(--eds-ink-600); }
.careers-body input:focus, .careers-body select:focus, .careers-body textarea:focus { border-color: var(--eds-gold-700); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--eds-gold-800); }
.check label { font-family: var(--eds-serif); font-size: 17px; color: var(--eds-ink-700); text-transform: none; letter-spacing: 0; }
.careers-body fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.careers-body fieldset legend { margin-bottom: 8px; }
.careers-body input.invalid, .careers-body select.invalid, .careers-body textarea.invalid { border-color: #9a2f1c; }
.careers-body .field-error { font-family: var(--eds-sans); color: #9a2f1c; font-size: 14px; margin: 0; }
.field-error::before { content: 'Problem: '; font-weight: 600; }
.error-summary { background: #fff; border: 2px solid #9a2f1c; padding: 20px 24px; margin: 24px 0; }
.careers-body .error-summary h2 { margin: 0 0 8px; font-size: 18px; }
.careers-body .error-summary ul, .careers-body .error-summary a { color: #9a2f1c; }
.careers-body .notice { border-left: 4px solid var(--eds-gold-700); background: #fff; padding: 16px 20px; margin: 20px 0; }
.careers-body .notice.ok { border-left-color: var(--eds-pos); }
.careers-body .notice.bad { border-left-color: #9a2f1c; }
.careers-body .notice p { margin: 0; color: inherit; }
.careers-body progress { width: 100%; height: 12px; accent-color: var(--eds-gold-800); }

/* honeypot: visually hidden, still in the DOM and not display:none */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* lists of jobs and slots */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.careers-body .job-list { list-style: none; padding: 0; }
.job-card { background: #fff; border: 1px solid var(--eds-ink-200); padding: 24px 28px; margin-bottom: 16px; }
.job-card:hover { border-color: var(--eds-gold-700); }
.careers-body .job-card h2 { margin: 0 0 8px; font-size: 22px; }
.careers-body .job-card h2 a { color: var(--eds-ink-950); text-decoration: none; }
.careers-body .job-card h2 a:hover { text-decoration: underline; }
.careers-body .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.careers-body .chip { font-family: var(--eds-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eds-ink-700); background: var(--eds-ink-100); border: 1px solid var(--eds-ink-200); padding: 4px 12px; border-radius: 999px; margin: 0; }
.careers-body .slots { list-style: none; padding: 0; }
.slot { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--eds-ink-200); padding: 12px 16px; margin-bottom: 8px; }
.slot input { width: 22px; height: 22px; accent-color: var(--eds-gold-800); }
.slot label { flex: 1; cursor: pointer; font-family: var(--eds-serif); font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--eds-ink-900); }
.pdf-frame { width: 100%; height: 70vh; min-height: 360px; border: 1px solid var(--eds-ink-200); background: #fff; }
.screen-count { font-family: var(--eds-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eds-ink-600); margin-bottom: 12px; }
.turnstile-box { min-height: 70px; margin: 12px 0 20px; }

/* dark theme */
body.dark.a-body > main { background: var(--eds-ink-950); }
body.dark .careers-body h1, body.dark .careers-body h2, body.dark .careers-body h3 { color: var(--eds-ink-50); }
body.dark .careers-body h1 strong { color: var(--eds-gold-500); }
body.dark .careers-body .eyebrow { color: var(--eds-gold-500); }
body.dark .careers-body .eyebrow::before { background: var(--eds-gold-500); }
body.dark .careers-body p, body.dark .careers-body ul, body.dark .careers-body ol { color: var(--eds-ink-300); }
body.dark .careers-body .muted, body.dark .careers-body .meta, body.dark .careers-body .help, body.dark .screen-count { color: var(--eds-ink-400); }
body.dark .careers-body a { color: var(--eds-gold-500); }
body.dark .careers-body a:hover { color: var(--eds-ink-50); }
body.dark .panel, body.dark .empty-state, body.dark .job-card, body.dark .slot, body.dark .error-summary, body.dark .careers-body .notice { background: var(--eds-ink-900); border-color: var(--eds-ink-800); }
body.dark .careers-body .notice { border-left-color: var(--eds-gold-600); }
body.dark .careers-body .notice.ok { border-left-color: #8fb38e; }
body.dark .careers-body .notice.bad { border-left-color: #e0917c; }
body.dark .job-card:hover { border-color: var(--eds-gold-600); }
body.dark .careers-body .job-card h2 a, body.dark .slot label { color: var(--eds-ink-50); }
body.dark .careers-body .btn, body.dark .careers-body button.btn { background: var(--eds-gold-600); color: var(--eds-ink-950); border-color: var(--eds-gold-600); }
body.dark .careers-body .btn:hover { background: var(--eds-gold-500); border-color: var(--eds-gold-500); color: var(--eds-ink-950); }
body.dark .careers-body .btn-ghost { background: transparent; color: var(--eds-ink-100); border-color: var(--eds-ink-600); }
body.dark .careers-body .btn-ghost:hover { background: transparent; border-color: var(--eds-gold-600); color: var(--eds-gold-500); }
body.dark .field label, body.dark .field legend, body.dark .label { color: var(--eds-ink-200); }
body.dark .req { color: var(--eds-gold-500); }
body.dark .check label { color: var(--eds-ink-300); }
body.dark .careers-body input[type="text"], body.dark .careers-body input[type="email"], body.dark .careers-body input[type="tel"], body.dark .careers-body input[type="url"],
body.dark .careers-body input[type="number"], body.dark .careers-body input[type="date"], body.dark .careers-body input[type="search"], body.dark .careers-body select, body.dark .careers-body textarea {
  background: var(--eds-ink-900); border-color: var(--eds-ink-600); color: var(--eds-ink-50);
}
body.dark .careers-body input[type="file"] { color: var(--eds-ink-300); }
body.dark .careers-body input:focus, body.dark .careers-body select:focus, body.dark .careers-body textarea:focus { border-color: var(--eds-gold-500); }
body.dark .careers-body .chip { background: var(--eds-ink-800); border-color: var(--eds-ink-700); color: var(--eds-ink-200); }
body.dark .careers-body .field-error, body.dark .error-summary ul, body.dark .error-summary a { color: #f0a794; }
body.dark .careers-body input.invalid, body.dark .careers-body select.invalid, body.dark .careers-body textarea.invalid { border-color: #f0a794; }
body.dark .error-summary { border-color: #f0a794; }
body.dark .pdf-frame { background: var(--eds-ink-900); border-color: var(--eds-ink-800); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (max-width: 900px) { body.a-body > main { padding: 48px 0 72px; } }
@media (max-width: 480px) {
  .panel, .empty-state, .job-card { padding: 20px 16px; }
  .careers-body .btn, .careers-body button.btn { width: 100%; }
}

@media print {
  body.a-body { background: #fff; color: #000; display: block; }
  .a-nav, .a-footer, .skip-link, .no-print, .actions { display: none !important; }
  body.a-body > main { padding: 0; }
  .careers-body { max-width: none; }
  .careers-body h1, .careers-body h2, .careers-body h3, .careers-body p, .careers-body li, .careers-body .eyebrow, .careers-body .muted, .screen-count { color: #000 !important; }
  .careers-body a { color: #000; }
  .panel, .notice { background: none; border: 0; }
}

/* Chrome contrast on the careers pages (WCAG AA): the site's muted greys (ink-500) are a little too
   light for small text on these backgrounds, so the careers pages use the next step. */
.a-nav .brand .sub { color: var(--eds-ink-600); }
.a-footer h2, .a-footer .bottom { color: var(--eds-ink-400); }
