/* GrayLedger careers pages.
   Matches the live home page: DM Sans and DM Mono, near-black canvas, blue accent.
   Self-hosted fonts, no external resources, no inline styles (the pages' CSP forbids them). */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/DMSans-latin.woff2") format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/DMMono-300-latin.woff2") format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/DMMono-400-latin.woff2") format('woff2'); }

:root {
  --blue-deep: #09268F;
  --blue-mid: #1A3BAA;
  --blue-bright: #42A2DD;
  --gray-900: #0A0B0F;
  --gray-800: #10121A;
  --gray-700: #1A1D26;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #D1D5DB;
  --white: #F8F9FA;
  --error: #F2A0A0;
  --ok: #8FD1A6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-900);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

[hidden] { display: none !important; }
a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--blue-deep); color: var(--white); padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* header and footer: same look as the home page */
.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding: 24px 56px;
  border-bottom: 1px solid rgba(66, 162, 221, 0.1);
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 32px; width: auto; display: block; }
.site-nav { display: flex; gap: 32px; list-style: none; flex-wrap: wrap; }
.site-nav a {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-400); text-decoration: none; padding: 8px 0; display: inline-block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.site-footer img { height: 28px; width: auto; display: block; opacity: 0.85; }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--gray-400); line-height: 2; text-align: center; }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); text-decoration: none; padding: 8px 0; display: inline-block; }
.footer-links a:hover { color: var(--gray-200); }

/* page body */
main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 72px 24px 96px; }
main:focus { outline: none; }
.eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--blue-bright); }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 24px; }
h1 strong { font-weight: 600; }
h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.015em; margin: 40px 0 12px; line-height: 1.25; }
h3 { font-size: 18px; font-weight: 500; margin: 24px 0 8px; }
p, ul, ol { margin-bottom: 16px; color: var(--gray-200); font-weight: 300; font-size: 16px; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 6px; }
.lede { font-size: 18px; color: var(--gray-200); max-width: 60ch; }
.muted { color: var(--gray-400); }
.meta { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: var(--gray-400); }

.panel { background: var(--gray-800); border: 1px solid rgba(255, 255, 255, 0.08); padding: 28px; margin: 24px 0; }
.empty-state { background: var(--gray-800); border: 1px solid rgba(255, 255, 255, 0.08); padding: 32px 28px; margin: 24px 0; }
.empty-state p:last-child { margin-bottom: 0; }

/* buttons */
.btn, button.btn {
  display: inline-block; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); background: var(--blue-deep);
  border: 1px solid var(--blue-mid); padding: 14px 32px; text-decoration: none; cursor: pointer; min-height: 44px;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--blue-mid); border-color: var(--blue-bright); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: none; border-color: rgba(66, 162, 221, 0.5); color: var(--blue-bright); }
.btn-ghost:hover { background: rgba(66, 162, 221, 0.12); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; align-items: center; }

/* forms */
form { margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label, .field legend, .label {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-200);
}
.req { color: var(--blue-bright); }
.help { font-size: 14px; color: var(--gray-400); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="search"],
select, textarea {
  background: var(--gray-900); border: 1px solid var(--gray-500); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 300; padding: 12px 16px; width: 100%; min-height: 44px;
  border-radius: 0; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--gray-400) 50%), linear-gradient(135deg, var(--gray-400) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: var(--gray-800); }
textarea { min-height: 120px; resize: vertical; }
input[type="file"] { color: var(--gray-200); font-size: 14px; width: 100%; padding: 10px 0; }
input[readonly] { color: var(--gray-400); }
input:focus, select:focus, textarea:focus { border-color: var(--blue-bright); }
.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(--blue-bright); }
.check label { font-size: 16px; font-weight: 300; color: var(--gray-200); text-transform: none; letter-spacing: 0; font-family: 'DM Sans', sans-serif; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
fieldset legend { margin-bottom: 8px; }
.invalid { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; margin: 0; }
.field-error::before { content: 'Problem: '; font-weight: 500; }
.error-summary { background: var(--gray-800); border: 2px solid var(--error); padding: 20px 24px; margin: 24px 0; }
.error-summary h2 { margin: 0 0 8px; font-size: 18px; color: var(--white); }
.error-summary ul { margin: 0; color: var(--error); }
.error-summary a { color: var(--error); }
.notice { border-left: 4px solid var(--blue-bright); background: var(--gray-800); padding: 16px 20px; margin: 20px 0; color: var(--white); }
.notice.ok { border-left-color: var(--ok); }
.notice.bad { border-left-color: var(--error); }
.notice p { margin: 0; color: inherit; }
progress { width: 100%; height: 12px; accent-color: var(--blue-bright); }

/* 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; }
.job-list { list-style: none; padding: 0; }
.job-card { background: var(--gray-800); padding: 24px 28px; margin-bottom: 16px; }
.job-card:hover { background: var(--gray-700); }
.job-card h2 { margin: 0 0 8px; font-size: 22px; }
.job-card h2 a { color: var(--white); text-decoration: none; }
.job-card h2 a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.chip { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-200); background: var(--gray-700); padding: 4px 12px; border-radius: 999px; }
.slots { list-style: none; padding: 0; }
.slot { display: flex; gap: 12px; align-items: center; background: var(--gray-800); padding: 12px 16px; margin-bottom: 8px; }
.slot input { width: 22px; height: 22px; accent-color: var(--blue-bright); }
.slot label { flex: 1; cursor: pointer; font-size: 16px; text-transform: none; letter-spacing: 0; font-family: 'DM Sans', sans-serif; color: var(--white); }
.pdf-frame { width: 100%; height: 70vh; min-height: 360px; border: 1px solid rgba(255, 255, 255, 0.08); background: var(--gray-800); }
.screen-count { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 12px; }
.turnstile-box { min-height: 70px; margin: 12px 0 20px; }

@media (max-width: 900px) {
  .site-header, .site-footer { padding: 20px 24px; }
  .site-footer { flex-direction: column; text-align: center; }
  main { padding: 48px 20px 72px; }
}
@media (max-width: 480px) {
  .site-nav { gap: 20px; }
  .panel, .empty-state, .job-card { padding: 20px 16px; }
  .btn, button.btn { width: 100%; text-align: center; }
}

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