/* Careers pages. Shared chrome, buttons and form fields come from landing.css. */
.careers-page nav > a[aria-current="page"] { color: var(--green); }
.careers-page .desktop-only, .careers-page .mobile-only { display: inline; }
.careers-page .mobile-only { display: none; }
.careers-page h1, .careers-page h2, .careers-page h3 { font-weight: 500; }
.careers-eyebrow, .roles-head .mono, .role-meta, .back-link { color: #56605b; }
.careers-eyebrow { color: var(--green); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.careers-hero { display: flex; flex-direction: column; gap: 28px; padding: 104px 5% 72px; }
.careers-hero .careers-eyebrow { margin-bottom: -4px; }
.careers-hero h1 { max-width: 900px; font-size: 64px; line-height: 66px; letter-spacing: -.035em; }
.careers-intro { max-width: 740px; font-size: 22px; line-height: 32px; color: #56605b; }

.roles { display: flex; flex-direction: column; gap: 28px; padding: 0 5% 32px; }
.roles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #cbd3cf; }
.roles-head h2 { font-size: 40px; line-height: 44px; letter-spacing: -.03em; }
.role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.role-card { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 32px; background: #f8faf9; border: 1px solid #cad2ce; border-radius: 14px; }
.role-copy { display: flex; flex-direction: column; gap: 16px; }
.role-card h3 { font-size: 28px; line-height: 32px; letter-spacing: -.02em; margin: 0; }
.role-card h3 a:hover, .roles-note a:hover, .back-link a:hover { text-decoration: underline; text-underline-offset: 4px; }
.role-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: -4px; }
.role-dot { color: #a9b5b0; letter-spacing: 0; }
.role-summary { max-width: 640px; font-size: 18px; line-height: 26px; color: #56605b; }
.role-view { flex-shrink: 0; padding: 12px 22px; }
.roles-note { font-size: 16px; line-height: 24px; color: #56605b; }
.roles-note a, .role-toggle { color: var(--green); }
.roles-note a { text-decoration: underline 1px; text-underline-offset: 4px; }

.back-link { padding: 48px 5% 0; font-size: 10px; letter-spacing: .08em; line-height: 15px; text-transform: uppercase; }
.back-link span { letter-spacing: 0; margin-right: 8px; }
.role-header { display: flex; flex-direction: column; gap: 18px; padding: 32px 5% 56px; border-bottom: 1px solid #cbd3cf; }
.role-header h1 { font-size: 56px; line-height: 58px; letter-spacing: -.035em; }
.role-header .role-meta { margin-top: 0; }
.role-body { display: flex; align-items: flex-start; gap: 80px; padding: 56px 5% 120px; }
.role-description { flex: 1 1 0; max-width: 656px; display: flex; flex-direction: column; gap: 22px; font-size: 19px; line-height: 30px; }
.role-more { display: contents; }
.role-description ul { list-style: none; margin: 0; padding: 0 0 0 8px; display: flex; flex-direction: column; gap: 10px; }
.role-description li { display: flex; gap: 12px; }
.role-description li::before { content: "•"; flex: 0 0 8px; }
[data-collapsed="true"] .role-more { display: none; }
.role-toggle { display: none; }

.apply-rail { flex: 0 0 clamp(420px, 40%, 560px); position: sticky; top: 104px; }
.apply-form { display: grid; padding: 30px 30px 26px; border: 1px solid rgb(36 48 43 / 14%); border-radius: 14px; background: rgb(255 255 255 / 60%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.apply-panel, .apply-confirmation { grid-area: 1 / 1; }
.apply-form[data-state="sent"] .apply-panel, .apply-form:not([data-state="sent"]) .apply-confirmation { display: none; }
.apply-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.apply-label { font-size: 11px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: #56605b; }
.apply-optional { font-size: 12px; line-height: 14px; letter-spacing: 0; text-transform: none; color: #56605b; margin-left: 6px; }
.apply-url { display: flex; align-items: center; min-height: 46px; border: 1px solid #8a938c; border-radius: 8px; background: rgb(255 255 255 / 70%); transition: background-color 180ms ease-out, border-color 180ms ease-out; }
.apply-url-prefix { padding-left: 14px; font-size: 16px; line-height: 20px; color: #727b74; }
.contact-field .apply-url input { flex: 1; min-width: 0; min-height: 44px; padding-left: 0; border: 0; background: transparent; }
.contact-field .apply-url input:focus-visible { outline: none; background: transparent; }
.apply-url:focus-within { background: rgb(255 255 255 / 92%); border-color: var(--green); outline: 2px solid var(--green); outline-offset: 3px; }
.apply-url:has([aria-invalid="true"]) { border-color: #87483e; }

.dropzone { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px dashed #8a938c; border-radius: 10px; background: rgb(255 255 255 / 45%); transition: background-color 180ms ease-out, border-color 180ms ease-out; }
.dropzone[data-drag="true"] { border-color: var(--green); border-style: solid; background: rgb(40 97 63 / 6%); }
.dropzone-icon { flex-shrink: 0; }
.dropzone-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
.dropzone-title { font-size: 15px; line-height: 20px; }
.dropzone-copy .mono { color: #56605b; }
.dropzone-choose { flex-shrink: 0; padding: 12px 18px; cursor: pointer; }
.dropzone:focus-within .dropzone-choose { outline: 2px solid var(--green); outline-offset: 3px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #cad2ce; border-radius: 10px; background: rgb(255 255 255 / 72%); }
.file-icon { flex-shrink: 0; }
.file-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-name { font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.file-meta { font-size: 13px; line-height: 18px; color: #56605b; }
.file-actions { display: flex; flex-shrink: 0; gap: 2px; }
.file-actions button { min-height: 44px; padding: 0 6px; border: 0; background: none; color: #56605b; }
.file-remove { color: #87483e !important; }
.apply-resume[data-file="rejected"] .file-row { border-color: #87483e; }

.apply-progress { display: flex; flex-direction: column; gap: 10px; }
.apply-bar { height: 4px; border-radius: 999px; background: #dfe5e3; overflow: hidden; }
.apply-bar-fill { height: 4px; width: 0; border-radius: 999px; background: var(--green); transition: width 180ms ease-out; }
.apply-progress-label { color: #56605b; }
.apply-submit { padding: 0 26px; }
.apply-confirmation { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 12px 0; }
.apply-confirmation:focus { outline: none; }
.apply-confirmation .contact-note { max-width: 470px; }
.apply-confirmation .back-link { padding: 6px 0 0; }

@media (max-width: 1100px) and (min-width: 701px) {
  .careers-hero h1 { font-size: 48px; line-height: 52px; }
  .role-header h1 { font-size: 44px; line-height: 48px; }
  .role-body { flex-direction: column; gap: 48px; }
  .apply-rail { flex-basis: auto; width: 100%; max-width: 560px; position: static; }
}
@media (max-width: 700px) {
  .careers-page nav > a[aria-current="page"] { display: inline; font-size: 10px; margin-right: 16px; }
  .careers-page .desktop-only { display: none; }
  .careers-page .mobile-only { display: inline; }
  .careers-hero { gap: 24px; padding: 56px 20px 48px; }
  .careers-hero h1 { font-size: 40px; line-height: 44px; }
  .careers-intro { font-size: 18px; line-height: 27px; }
  .roles { gap: 20px; padding: 0 20px 80px; }
  .roles-head { padding-bottom: 18px; }
  .roles-head h2 { font-size: 30px; line-height: 34px; }
  .role-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 22px; }
  .role-copy { gap: 10px; }
  .role-card h3 { font-size: 24px; line-height: 28px; }
  .role-meta { gap: 8px; margin-top: 0; }
  .role-summary { font-size: 16px; line-height: 24px; padding-top: 4px; }
  .role-view { width: 100%; min-height: 46px; margin-top: 10px; }
  .back-link { padding: 28px 20px 0; }
  .role-header { gap: 14px; padding: 24px 20px 32px; }
  .role-header h1 { font-size: 34px; line-height: 38px; }
  .role-body { flex-direction: column; gap: 40px; padding: 32px 20px 72px; }
  .role-description { font-size: 17px; line-height: 27px; gap: 18px; }
  .role-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 11px; }
  .apply-rail { flex-basis: auto; width: 100%; position: static; padding-top: 32px; border-top: 1px solid #cbd3cf; }
  .apply-form { padding: 20px; }
  .apply-panel { gap: 16px; }
  .dropzone { flex-wrap: wrap; gap: 14px 12px; padding: 18px; }
  .dropzone-icon { width: 22px; height: 22px; }
  .dropzone-choose { width: 100%; min-height: 46px; background: rgb(255 255 255 / 60%); }
  .file-row { flex-wrap: wrap; }
  .file-actions { width: 100%; justify-content: flex-end; }
  .apply-submit { width: 100%; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .apply-url, .dropzone, .apply-bar-fill { transition: none !important; }
}
.careers-page [hidden] { display: none; }
