:root {
  --ez-careers-ink: #171717;
  --ez-careers-muted: #66645f;
  --ez-careers-line: #e6e2d8;
  --ez-careers-bg: #f7f5ef;
  --ez-careers-card: #ffffff;
  --ez-careers-accent: #f1d400;
  --ez-careers-accent-strong: #e2c700;
  --ez-careers-radius: 22px;
  --ez-careers-shadow: 0 18px 50px rgba(20, 20, 20, .08);
}

.ez-careers-page .page-content,
.ez-careers-page .entry-content,
.ez-careers-page .site-main { overflow: visible; }

.ez-careers-wrap {
  color: var(--ez-careers-ink);
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 80px;
  font-family: inherit;
}

.ez-careers-wrap * { box-sizing: border-box; }
.ez-careers-wrap a { text-decoration: none; }

.ez-careers-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6f6550;
}

.ez-careers-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  gap: 26px;
  align-items: stretch;
  background: var(--ez-careers-bg);
  border: 1px solid var(--ez-careers-line);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
}

.ez-careers-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--ez-careers-accent);
  opacity: .34;
}

.ez-careers-hero__copy { position: relative; z-index: 1; }
.ez-careers-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 800;
  color: var(--ez-careers-ink);
}
.ez-careers-hero h1 span { color: #6e6a62; }
.ez-careers-lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: #4f4c46;
}
.ez-careers-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ez-btn {
  appearance: none;
  border: 1px solid var(--ez-careers-ink);
  border-radius: 999px;
  padding: 13px 20px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ez-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.10); }
.ez-btn--primary { background: var(--ez-careers-ink); color: #fff !important; }
.ez-btn--primary:hover { background: #000; }
.ez-btn--secondary { background: #fff; color: var(--ez-careers-ink) !important; }

.ez-careers-hero__panel {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 28px;
  border-radius: 24px;
  background: #171717;
  color: #fff;
  box-shadow: var(--ez-careers-shadow);
}
.ez-careers-panel-tag {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: auto;
  padding: 7px 10px;
  border: 1px solid rgba(241,212,0,.6);
  border-radius: 999px;
  color: var(--ez-careers-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ez-careers-panel-big { margin: 22px 0 12px; font-size: 30px; line-height: 1.08; font-weight: 800; }
.ez-careers-hero__panel > p:last-child { margin: 0; color: #d2d0ca; line-height: 1.55; }

.ez-careers-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--ez-careers-line);
  border-radius: 18px;
  background: var(--ez-careers-line);
}
.ez-careers-proof > div { background: #fff; padding: 20px; }
.ez-careers-proof strong { display: block; font-size: 27px; line-height: 1; }
.ez-careers-proof span { display: block; margin-top: 7px; color: var(--ez-careers-muted); font-size: 13px; line-height: 1.35; }

.ez-careers-section { padding: 78px 0 0; scroll-margin-top: 110px; }
.ez-careers-section__heading { max-width: 760px; margin-bottom: 28px; }
.ez-careers-section__heading h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.07; letter-spacing: -.025em; }
.ez-careers-section__heading--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.ez-careers-section__aside { max-width: 420px; margin: 0; color: var(--ez-careers-muted); line-height: 1.55; }

.ez-careers-grid { display: grid; gap: 16px; }
.ez-careers-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ez-careers-feature {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--ez-careers-line);
  border-radius: 20px;
  background: #fff;
}
.ez-careers-feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ez-careers-accent); font-weight: 900; font-size: 12px; }
.ez-careers-feature h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.2; }
.ez-careers-feature p { margin: 0; color: var(--ez-careers-muted); line-height: 1.6; }

.ez-careers-jobs { display: grid; gap: 18px; }
.ez-job-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--ez-careers-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.ez-job-card--featured { border-color: #d5c000; box-shadow: 0 0 0 3px rgba(241,212,0,.16); }
.ez-job-card__featured { display: inline-block; margin-bottom: 9px; padding: 6px 9px; border-radius: 999px; background: #fff8b5; color: #5c5200; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ez-job-card__top { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.ez-job-card h3 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.ez-job-card__top p { max-width: 780px; margin: 0; color: var(--ez-careers-muted); line-height: 1.55; }
.ez-job-meta { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.ez-job-meta span { padding: 13px 14px; border-radius: 12px; background: var(--ez-careers-bg); color: #3f3d39; font-size: 13px; line-height: 1.4; }
.ez-job-meta strong { display: block; margin-bottom: 4px; color: #817967; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ez-job-note { margin: 17px 0 0; padding-left: 2px; color: var(--ez-careers-muted); font-size: 13px; }
.ez-job-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ez-careers-line); }
.ez-job-details summary { cursor: pointer; font-weight: 800; }
.ez-job-details__body { padding-top: 14px; color: #4d4a44; line-height: 1.6; }
.ez-job-details__body h3 { margin-top: 22px; font-size: 19px; }
.ez-job-details__body ul { padding-left: 20px; }
.ez-careers-empty { padding: 30px; border: 1px dashed #c9c2b2; border-radius: 18px; background: var(--ez-careers-bg); }
.ez-careers-empty h3 { margin-top: 0; }

.ez-careers-section--fit {
  margin-top: 78px;
  padding: 44px;
  border-radius: 26px;
  background: #171717;
  color: #fff;
}
.ez-careers-section--fit .ez-careers-kicker { color: var(--ez-careers-accent) !important; }
.ez-careers-section--fit .ez-careers-section__heading { margin-bottom: 22px; }
/* Keep the dark fit section readable even when the active theme forces heading colors. */
.ez-careers-section--fit .ez-careers-section__heading h2 { color: #fff !important; }
.ez-careers-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.ez-careers-fit-grid ul { list-style: none; padding: 0; margin: 0; }
.ez-careers-fit-grid li { position: relative; padding: 15px 0 15px 30px; border-top: 1px solid rgba(255,255,255,.12); color: #dedbd3; line-height: 1.55; }
.ez-careers-fit-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--ez-careers-accent); font-weight: 900; }

.ez-careers-apply { display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; align-items: start; }
.ez-careers-apply__intro { position: sticky; top: 30px; padding: 28px; border-radius: 22px; background: var(--ez-careers-bg); border: 1px solid var(--ez-careers-line); }
.ez-careers-apply__intro h2 { margin: 0 0 12px; font-size: 42px; line-height: 1.05; }
.ez-careers-apply__intro > p:not(.ez-careers-kicker) { color: var(--ez-careers-muted); line-height: 1.6; }
.ez-careers-process { display: grid; gap: 10px; margin-top: 24px; }
.ez-careers-process > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 12px; border-radius: 13px; background: #fff; }
.ez-careers-process span { grid-row: 1 / span 2; display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ez-careers-accent); font-size: 12px; font-weight: 900; }
.ez-careers-process strong { font-size: 14px; }
.ez-careers-process small { color: var(--ez-careers-muted); line-height: 1.2; }

.ez-careers-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--ez-careers-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ez-careers-shadow);
}
.ez-field { min-width: 0; }
.ez-field--full { grid-column: 1 / -1; }
.ez-field label { display: block; margin: 0 0 7px; color: #302f2c; font-size: 13px; font-weight: 800; }
.ez-field label > span, .ez-field > label > span { color: #746b55; }
.ez-field label small { float: right; color: #817b70; font-weight: 500; }
.ez-field input[type="text"],
.ez-field input[type="email"],
.ez-field input[type="tel"],
.ez-field input[type="file"],
.ez-field select,
.ez-field textarea {
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d8d3c8;
  border-radius: 11px;
  background: #fff;
  color: var(--ez-careers-ink);
  font: inherit;
  font-size: 15px;
  box-shadow: none;
}
.ez-field textarea { min-height: 120px; resize: vertical; }
.ez-field input:focus, .ez-field select:focus, .ez-field textarea:focus { outline: 3px solid rgba(241,212,0,.25); border-color: #bca900; }
.ez-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; line-height: 1.5; }
.ez-consent input { margin-top: 4px; }
.ez-btn--submit { min-width: 220px; }
.ez-form-note { margin: 10px 0 0; color: #7a7469; font-size: 12px; line-height: 1.45; }
.ez-careers-hp { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.ez-careers-alert { margin: 0 0 20px; padding: 15px 18px; border-radius: 12px; line-height: 1.5; }
.ez-careers-alert--success { background: #edf8ef; border: 1px solid #b8dfc0; color: #184a23; }
.ez-careers-alert--error { background: #fff0ee; border: 1px solid #edc0b9; color: #6d2119; }

.ez-careers-brandmark {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 190px;
  margin: 0 0 14px;
  padding: 8px 11px;
  border-radius: 11px;
  background: #fff;
}
.ez-careers-brandmark__img { display: block; width: auto; max-width: 168px; max-height: 42px; object-fit: contain; }

.ez-careers-resource-strip {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: center;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--ez-careers-line);
  border-radius: 18px;
  background: #fff;
}
.ez-careers-resource-strip strong { display: block; margin-bottom: 4px; font-size: 15px; }
.ez-careers-resource-strip span { color: var(--ez-careers-muted); font-size: 13px; line-height: 1.45; }
.ez-careers-resource-strip nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.ez-careers-resource-strip a { color: var(--ez-careers-ink) !important; font-size: 13px; font-weight: 800; border-bottom: 2px solid var(--ez-careers-accent); padding-bottom: 2px; }

@media (max-width: 980px) {
  .ez-careers-hero { grid-template-columns: 1fr; }
  .ez-careers-hero__panel { min-height: 250px; }
  .ez-careers-proof { grid-template-columns: 1fr 1fr; }
  .ez-careers-grid--4 { grid-template-columns: 1fr 1fr; }
  .ez-job-meta { grid-template-columns: 1fr 1fr; }
  .ez-careers-apply { grid-template-columns: 1fr; }
  .ez-careers-resource-strip { grid-template-columns: 1fr; }
  .ez-careers-resource-strip nav { justify-content: flex-start; }
  .ez-careers-apply__intro { position: static; }
}

@media (max-width: 700px) {
  .ez-careers-wrap { padding: 12px 14px 60px; }
  .ez-careers-hero { padding: 28px 22px; border-radius: 22px; }
  .ez-careers-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .ez-careers-proof { grid-template-columns: 1fr 1fr; }
  .ez-careers-proof > div { padding: 16px; }
  .ez-careers-section { padding-top: 58px; }
  .ez-careers-section__heading--row { display: block; }
  .ez-careers-section__aside { margin-top: 14px; }
  .ez-careers-grid--4 { grid-template-columns: 1fr; }
  .ez-careers-feature { min-height: 0; }
  .ez-job-card { padding: 22px; }
  .ez-job-card__top { display: block; }
  .ez-job-card__top .ez-btn { margin-top: 18px; width: 100%; }
  .ez-job-meta { grid-template-columns: 1fr; }
  .ez-careers-section--fit { margin-top: 58px; padding: 28px 22px; }
  .ez-careers-fit-grid { grid-template-columns: 1fr; gap: 0; }
  .ez-careers-form { grid-template-columns: 1fr; padding: 22px; }
  .ez-field--full { grid-column: 1; }
  .ez-btn--submit { width: 100%; }
}

/* Dedicated, indexable job pages */
.ez-job-title-link { color: inherit !important; }
.ez-job-title-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ez-job-card__link { margin: 18px 0 0; font-size: 14px; font-weight: 800; }
.ez-job-card__link a { color: var(--ez-careers-ink) !important; border-bottom: 2px solid var(--ez-careers-accent); padding-bottom: 2px; }
.ez-job-detail-page { padding-top: 34px; }
.ez-job-detail-page > .ez-careers-kicker a { color: #6f6550 !important; }
.ez-job-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--ez-careers-line);
  border-radius: 28px;
  background: var(--ez-careers-bg);
}
.ez-job-detail-hero h1 { margin: 0; max-width: 900px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
.ez-job-detail-hero .ez-careers-lead { max-width: 820px; }
.ez-job-detail-hero .ez-btn { flex: 0 0 auto; }
.ez-job-detail-meta { margin: 22px 0 0; }
.ez-job-detail-content { max-width: 900px; margin: 48px 0 0; color: #3f3d39; font-size: 17px; line-height: 1.7; }
.ez-job-detail-content h2, .ez-job-detail-content h3 { color: var(--ez-careers-ink); line-height: 1.2; margin-top: 34px; }
.ez-job-detail-content ul { padding-left: 22px; }
.ez-job-detail-cta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-top: 54px;
  padding: 30px;
  border-radius: 22px;
  background: #171717;
  color: #fff;
}
.ez-job-detail-cta .ez-careers-kicker { color: var(--ez-careers-accent); }
.ez-job-detail-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(28px, 4vw, 40px); }
.ez-job-detail-cta p { margin-bottom: 0; color: #d8d5cc; }
.ez-job-detail-cta .ez-btn { background: var(--ez-careers-accent); color: #171717 !important; border-color: var(--ez-careers-accent); }

@media (max-width: 700px) {
  .ez-job-detail-hero, .ez-job-detail-cta { display: block; }
  .ez-job-detail-hero .ez-btn, .ez-job-detail-cta .ez-btn { width: 100%; margin-top: 22px; }
}


/* Dedicated job-page shell: these are careers pages, not blog posts. */
.ez-careers-job-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Fallback for themes that try to inject single-post chrome around custom posts. */
body.single-ez_job .entry-header,
body.single-ez_job .entry-meta,
body.single-ez_job .post-meta,
body.single-ez_job .post-info,
body.single-ez_job .post-navigation,
body.single-ez_job .comments-area,
body.single-ez_job .author-box {
  display: none !important;
}

/* Job description typography. Theme post CSS is intentionally overridden here. */
.ez-careers-page .ez-job-detail-content {
  max-width: 940px;
  margin-top: 42px;
  color: #3f3d39 !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}
.ez-careers-page .ez-job-detail-content p {
  margin: 0 0 18px !important;
  color: #3f3d39 !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}
.ez-careers-page .ez-job-detail-content h2,
.ez-careers-page .ez-job-detail-content h3,
.ez-careers-page .ez-job-detail-content h4 {
  margin: 34px 0 14px !important;
  color: var(--ez-careers-ink) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.015em;
}
.ez-careers-page .ez-job-detail-content h2 { font-size: 30px !important; }
.ez-careers-page .ez-job-detail-content h3 { font-size: 23px !important; }
.ez-careers-page .ez-job-detail-content h4 { font-size: 19px !important; }

/* Classic Editor users often make section labels bold instead of choosing Heading 2/3. */
.ez-careers-page .ez-job-detail-content p > strong:only-child {
  display: block;
  margin: 30px 0 10px;
  color: var(--ez-careers-ink) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
.ez-careers-page .ez-job-detail-content ul,
.ez-careers-page .ez-job-detail-content ol {
  display: block !important;
  margin: 8px 0 24px !important;
  padding-left: 26px !important;
  color: #3f3d39 !important;
}
.ez-careers-page .ez-job-detail-content ul { list-style: disc outside !important; }
.ez-careers-page .ez-job-detail-content ol { list-style: decimal outside !important; }
.ez-careers-page .ez-job-detail-content li {
  display: list-item !important;
  margin: 0 0 8px !important;
  padding-left: 4px !important;
  color: #3f3d39 !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}
.ez-careers-page .ez-job-detail-content li::marker {
  color: #9f8d00;
}
.ez-careers-page .ez-job-detail-content a {
  color: #5e5200 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .ez-careers-page .ez-job-detail-content,
  .ez-careers-page .ez-job-detail-content p,
  .ez-careers-page .ez-job-detail-content li {
    font-size: 16px !important;
  }
  .ez-careers-page .ez-job-detail-content h2 { font-size: 26px !important; }
  .ez-careers-page .ez-job-detail-content h3,
  .ez-careers-page .ez-job-detail-content p > strong:only-child { font-size: 21px !important; }
}
