/* ============================================================
   JOBS SITE — components on top of obsidian.css + obsidian-lux.css
   (loaded third). Same tokens, same register as careers.html.
   Anything rendered from the feed gets overflow-wrap:anywhere so a
   long word can never push the page sideways on a phone.
   ============================================================ */

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* ---------- focus (keyboard users) ---------- */
body.lux a:focus-visible, body.lux button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ---------- smaller subpage header (posting / apply / privacy) ---------- */
.chero-lux.small { min-height: 48vh; }
.chero-lux.small h1 { font-size: clamp(48px, 5.4vw, 76px); overflow-wrap: anywhere; }

/* ---------- section head (matches careers .roles-head) ---------- */
.sec-head { padding: 170px 64px 60px; border-top: 1px solid var(--hair); }
.sec-head:first-child { border-top: none; }
.sec-head .lede { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 560px; margin-top: 26px; }

/* ---------- posting cards (same component as careers.html) ---------- */
.job-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 8px 64px 0; }
.job-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--hair); padding: 40px 44px 36px; color: var(--ink); transition: background 0.35s ease, border-color 0.35s ease; }
.job-card:hover { background: var(--charcoal); border-color: rgba(236,234,229,0.22); }
.job-card .jc-meta { font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); overflow-wrap: anywhere; }
.job-card h3 { font-family: var(--clash); font-weight: 600; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.12; color: var(--ink); margin-top: 16px; overflow-wrap: anywhere; }
.job-card p { font-size: 15px; line-height: 1.7; color: var(--muted); margin-top: 16px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .jc-sub { font-size: 13px; line-height: 1.6; color: rgba(236,234,229,0.62); margin-top: 18px; overflow-wrap: anywhere; }
.job-card .quiet-link { margin-top: auto; padding-top: 30px; }
body.lux .job-card:hover .quiet-link { color: var(--ink); }
body.lux .job-card:hover .quiet-link .arr { transform: translateX(8px); }

/* ---------- loading / empty / error box (same look as .roles-empty) ---------- */
.state-box { border: 1px solid var(--hair); padding: 44px 48px; margin: 8px 64px 0; }
.state-box h4 { font-family: var(--clash); font-weight: 600; font-size: 22px; color: var(--ink); }
.state-box p { font-size: 15px; line-height: 1.7; color: var(--muted); margin-top: 12px; max-width: 620px; }
.state-box a { color: rgba(236,234,229,0.8); text-decoration: underline; text-decoration-color: var(--hair); }
.state-box.loading h4 { color: var(--muted); font-family: var(--gen); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- anti-fraud notice ---------- */
.fraud { display: grid; grid-template-columns: 1fr 560px; gap: 110px; padding: 150px 64px; border-top: 1px solid var(--hair); align-items: start; }
.fraud-panel { border: 1px solid var(--gold-hair); padding: 44px 48px; }
.fraud-panel p { font-size: 15.5px; line-height: 1.75; color: rgba(236,234,229,0.72); }
.fraud-panel p + p { margin-top: 16px; color: var(--muted); }
.fraud-panel a { color: rgba(236,234,229,0.85); text-decoration: underline; text-decoration-color: var(--hair); }

/* ---------- footer anti-fraud line (every page) ---------- */
.footer-fraud { margin: 0 64px; padding: 24px 0; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.65; color: rgba(236,234,229,0.55); max-width: 900px; }

/* ---------- shared bits ---------- */
.back-link { display: inline-block; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.chero-lux .line:empty { display: none; }
.chero-lux .line { overflow-wrap: anywhere; }
.m-only { display: none; }

/* ============================================================
   POSTING PAGE
   ============================================================ */
.posting-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 110px; padding: 120px 64px 150px; align-items: start; }
.posting-main > section + section { margin-top: 72px; }
.posting-main h2 { font-family: var(--clash); font-weight: 600; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.1; color: var(--ink); }
.posting-main .caps li { overflow-wrap: anywhere; }
.posting-main p { font-size: 16px; line-height: 1.75; color: var(--muted); margin-top: 22px; max-width: 600px; }
.posting-side { position: sticky; top: 120px; background: var(--charcoal); border: 1px solid var(--hair); padding: 40px; }
.facts dt { font-weight: 500; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 15px; line-height: 1.55; color: var(--ink); padding: 8px 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--hair); overflow-wrap: anywhere; }
.posting-side .btn, .posting-main .btn { width: 100%; }
.side-note { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 18px; }
.posting-msg { padding: 80px 64px 150px; }

/* ============================================================
   APPLY PAGE
   ============================================================ */
.apply-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 110px; padding: 120px 64px 150px; align-items: start; }
.apply-aside { position: sticky; top: 120px; }
.apply-aside h2 { font-family: var(--clash); font-weight: 600; font-size: 26px; color: var(--ink); margin-top: 22px; }
.apply-aside .caps { margin-top: 24px; }
.apply-aside .caps li { font-size: 14px; }
.apply-aside p { font-size: 14px; line-height: 1.65; color: var(--muted); margin-top: 24px; }
.apply-aside a { color: rgba(236,234,229,0.8); text-decoration: underline; text-decoration-color: var(--hair); }

.fs { border: none; padding: 0; margin: 0; min-width: 0; }
.fs + .fs { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--hair); }
.fs-title { font-family: var(--clash); font-weight: 600; font-size: 24px; color: var(--ink); padding: 0; }
.fs-note { font-size: 14px; line-height: 1.65; color: var(--muted); margin-top: 10px; max-width: 560px; }
.fs > .field:first-of-type, .fs > .field-row:first-of-type .field { margin-top: 28px; }
fieldset.field { border: none; padding: 0; min-width: 0; }
fieldset.field > legend { font-weight: 500; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 12px; line-height: 1.6; }
.field .hint { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.field input[type="date"] { color-scheme: dark; }
.field-err { font-size: 12.5px; line-height: 1.5; color: #E39A94; }
.field-err:empty { display: none; }
.field.has-err input:not([type="radio"]):not([type="checkbox"]), .field.has-err select { border-bottom-color: rgba(194,86,79,0.85); }

/* Yes / No and multi-choice buttons (real radios/checkboxes underneath) */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt span { display: inline-block; min-width: 68px; text-align: center; border: 1px solid rgba(236,234,229,0.22); padding: 12px 18px; font-size: 14px; color: rgba(236,234,229,0.78); cursor: pointer; user-select: none; transition: border-color 0.2s ease; }
.opt span:hover { border-color: rgba(236,234,229,0.5); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.opt input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 2px; }
.field.has-err .opt span { border-color: rgba(194,86,79,0.6); }

/* file input */
.field input[type="file"] { border-bottom: none; padding: 6px 0; font-size: 13.5px; color: var(--muted); }
.field input[type="file"]::file-selector-button { font-family: var(--gen); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid rgba(236,234,229,0.22); padding: 11px 16px; margin-right: 14px; cursor: pointer; }
.file-ok { font-size: 13px; color: rgba(236,234,229,0.72); overflow-wrap: anywhere; }
.file-ok:empty { display: none; }

/* consent */
/* .field label is caps/10px on the main site; consent labels are full sentences */
.field label.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.6; color: rgba(236,234,229,0.75); cursor: pointer; }
.consent + .consent { margin-top: 18px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.consent a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(236,234,229,0.35); }
.field.has-err .consent { color: #E39A94; }

/* error summary, Turnstile, status, honeypot */
.err-summary { border: 1px solid rgba(194,86,79,0.6); padding: 22px 24px; margin-bottom: 44px; }
.err-summary h3 { font-family: var(--clash); font-weight: 600; font-size: 19px; color: var(--ink); }
.err-summary ul { margin: 12px 0 0 18px; }
.err-summary li { font-size: 14px; line-height: 1.7; color: #E39A94; }
.err-summary a { color: #E39A94; text-decoration: underline; }
.ts-wrap { margin-top: 44px; min-height: 65px; max-width: 100%; }
.form-status { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.err { color: #E39A94; }
.form-panel .btn[disabled] { opacity: 0.5; cursor: wait; box-shadow: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ============================================================
   THANK-YOU PAGE (layout copied from the main site's thankyou.html)
   ============================================================ */
.thanks { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding: 128px 64px 110px; border-bottom: 1px solid var(--hair); overflow: hidden; }
.thanks-glow { position: absolute; bottom: 10%; left: 16%; width: 700px; height: 400px; background: radial-gradient(ellipse at center, rgba(107,39,55,0.16), transparent 65%); filter: blur(56px); pointer-events: none; }
.thanks-inner { position: relative; z-index: 2; margin-top: auto; padding-top: 56px; max-width: 720px; }
.thanks .eyebrow { display: flex; align-items: center; gap: 18px; }
.thanks .eyebrow .gold-rule { width: 56px; }
.thanks h1 { font-family: var(--clash); font-weight: 600; font-size: clamp(64px, 8vw, 116px); line-height: 1.0; letter-spacing: -0.02em; color: var(--ink); }
.thanks p { font-size: 16px; line-height: 1.7; color: var(--muted); margin-top: 22px; overflow-wrap: anywhere; }
.thanks h1 + div > p:first-child { margin-top: 40px; }
.thanks .ref { font-family: var(--clash); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: 0.04em; color: var(--ink); margin-top: 10px; }
.thanks .next-h { font-family: var(--gen); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 48px; }
.thanks .next-h + p { margin-top: 14px; }
.thanks .quiet-link { display: inline-block; margin-top: 48px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes luxUp2 { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  .thanks .eyebrow { animation: luxUp2 1s ease-out both; }
  .thanks h1 { animation: luxUp2 1s ease-out 0.12s both; }
  .thanks-inner > *:not(h1) { animation: luxUp2 1s ease-out 0.28s both; }
}

/* ============================================================
   MOBILE — same 1080px breakpoint as the main site
   ============================================================ */
@media (max-width: 1080px) {
  .thanks { padding: 96px 22px 70px; min-height: 100svh; }
  .thanks h1 { font-size: clamp(44px, 12vw, 72px); }
  .m-only { display: block; }
  .posting-body { grid-template-columns: minmax(0, 1fr); gap: 50px; padding: 60px 22px 90px; }
  .posting-side { position: static; order: -1; padding: 28px 24px; }
  .posting-main .m-only { margin-top: 60px; }
  .posting-msg { padding: 50px 22px 100px; }
  .apply-wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 60px 22px 90px; }
  .apply-aside { position: static; }
  /* 18px sides leave 310px inside the panel at 390px, so Turnstile (300px) fits */
  .apply-wrap .form-panel { padding: 30px 18px; }
  .chero-lux.small { min-height: 40svh; }
  .sec-head { padding: 90px 22px 30px; }
  .job-list { grid-template-columns: minmax(0, 1fr); padding: 8px 22px 0; }
  .job-card { padding: 28px 24px; }
  .state-box { margin: 8px 22px 0; padding: 30px 24px; }
  .fraud { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 90px 22px; }
  .fraud-panel { padding: 28px 24px; }
  .footer-fraud { margin: 0 22px; }
}
