/* ==========================================================================
   Careers (/careers/ and /careers/<job>/) – loaded only on these pages
   ========================================================================== */
.job-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.job-tags li { padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.05); font-size: 13px; color: var(--ink-2); }
.job-tags--hero li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e8e8ea; }
.job-tags__salary { background: #e8f8ee !important; color: #0a6b30 !important; font-weight: 600; }

/* perks */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.perk { padding: 26px 22px; border-radius: var(--radius); background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.perk:hover { transform: translateY(-5px); }
.perk__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--yellow); font-size: 24px; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(250,210,11,.3); }
.perk h3 { margin-bottom: 6px; }
.perk p { color: var(--ink-2); font-size: 14.5px; }

/* list of jobs */
.job-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.job-filter button { border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.8); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; }
.job-filter button[aria-pressed="true"] { background: var(--black); color: var(--yellow); border-color: var(--black); }
.jobs-list { display: grid; gap: 14px; }
.js-reveal .job-row.reveal { transition-delay: var(--d, 0ms); }
.job-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 26px; border-radius: var(--radius); background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(20,20,40,.06); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.job-row:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,20,40,.1); }
.job-row[hidden] { display: none; }
.job-row__dept { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.job-row h3 { font-size: clamp(20px, 2vw, 24px); }
.job-row p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.job-row__side { display: grid; justify-items: end; gap: 8px; text-align: right; }
.job-row__side small { font-size: 12px; color: var(--muted); }
.jobs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.job-card { display: grid; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow); transition: transform .3s; }
.job-card:hover { transform: translateY(-4px); }
.job-card__go { margin-top: 10px; font-weight: 600; font-size: 14px; }

/* one job */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.job-body h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 30px 0 12px; }
.job-body h2:first-child { margin-top: 0; }
.job-body p { color: var(--ink-2); margin-bottom: 12px; }
.job-list { display: grid; gap: 10px; }
.job-list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.job-list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-2); box-shadow: 0 0 0 3px rgba(250,232,11,.25); }
.job-list--check li::before { content: "✓"; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--black); color: var(--yellow); font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: none; }
.job-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.job-skills li { padding: 7px 14px; border-radius: 10px; background: #fff; border: 1px solid rgba(0,0,0,.08); font-size: 14px; font-weight: 500; }
.job-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.job-facts { padding: 24px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--black); box-shadow: 6px 6px 0 var(--black); }
.job-facts h3 { margin-bottom: 12px; }
.job-facts dl { display: grid; gap: 10px; margin-bottom: 18px; }
.job-facts dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(0,0,0,.12); font-size: 14px; }
.job-facts dt { color: var(--muted); }
.job-facts dd { font-weight: 600; text-align: right; }
.job-posted { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.job-share { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; margin-top: 12px; font-size: 13px; }
.job-share a, .job-share button { color: var(--cyan); font-weight: 600; background: none; border: 0; font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.job-share a:hover, .job-share button:hover { text-decoration: underline; }

/* application form */
.apply-wrap { max-width: 920px; }
.apply-card { padding: clamp(20px, 4vw, 36px); border-radius: 28px; background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 20px 60px rgba(20,20,40,.08); }
.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-bottom: 22px; }
.apply-field--full { grid-column: 1 / -1; }
.apply-field label, .apply-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.apply-field label small { color: var(--muted); font-weight: 400; }
.apply-field input, .apply-field select, .apply-field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0,0,0,.14); background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.apply-field textarea { resize: vertical; }
.apply-field input:focus, .apply-field select:focus, .apply-field textarea:focus { outline: none; border-color: var(--yellow-2); box-shadow: 0 0 0 4px rgba(250,232,11,.28); }
.apply-field.is-bad input, .apply-field.is-bad .apply-file { border-color: #e0245e; box-shadow: 0 0 0 3px rgba(224,36,94,.12); }
.req { color: #e0245e; }
.apply-file { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 2px dashed rgba(0,0,0,.18); background: #fafaf7; cursor: pointer; transition: border-color .2s, background .2s; }
.apply-file:hover, .apply-file.is-over { border-color: var(--yellow-2); background: #fffbe0; }
.apply-file.has-file { border-style: solid; border-color: var(--green); background: #f0fbf4; }
.apply-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.apply-file:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.apply-file__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); }
.apply-file__ico svg { width: 24px; height: 24px; }
.apply-file__txt { display: grid; }
.apply-file__txt b { font-weight: 600; word-break: break-all; }
.apply-file__txt small { color: var(--muted); font-size: 12.5px; }
.apply-submit { min-height: 54px; font-size: 16px; }
.apply-submit:disabled { opacity: .7; cursor: progress; }
.apply-msg { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; animation: drop .35s ease; }
.apply-msg.is-ok { background: #e8f8ee; color: #0a6b30; }
.apply-msg.is-bad { background: #fff0f4; color: #b0123f; }
.apply-done { text-align: center; padding: 30px 10px; animation: drop .4s ease; }
.apply-done__ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; box-shadow: 0 12px 30px rgba(0,176,66,.3); }
.apply-done h3 { margin-bottom: 6px; }
.apply-done p { color: var(--ink-2); }

@media (max-width: 1023px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-layout { grid-template-columns: minmax(0, 1fr); }
  .job-aside { position: static; }
}
@media (max-width: 767px) {
  .job-row { grid-template-columns: minmax(0, 1fr); }
  .job-row__side { justify-items: start; text-align: left; }
}
@media (max-width: 599px) {
  .perks, .jobs-grid, .apply-grid { grid-template-columns: minmax(0, 1fr); }
  .job-row { padding: 20px; }
}
