/* Scoped to this template. Existing header, footer and ACF module styles stay in the theme. */
#archive.dmg-careers-page,
#archive.dmg-careers-page > #primary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}

#dmg-careers {
  --dmg-width: 1120px;
  --dmg-gutter: clamp(20px, 6vw, 64px);
  --dmg-paper: #f7f7f5;
  --dmg-ink: #171817;
  --dmg-hero-header-space: 0px;
  --dmg-scroll-offset: 100px;
  color: var(--dmg-ink);
  background: var(--dmg-paper);
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
  text-align: left;
}
#dmg-careers *, #dmg-careers *::before, #dmg-careers *::after { box-sizing: border-box; }
#dmg-careers [hidden] { display: none !important; }
#dmg-careers h1, #dmg-careers h2, #dmg-careers h3,
#dmg-careers p, #dmg-careers ul { margin: 0; padding: 0; }
#dmg-careers h1, #dmg-careers h2, #dmg-careers h3 { text-transform: none; letter-spacing: normal; }
#dmg-careers ul { list-style: none; }
#dmg-careers li { margin: 0; }
#dmg-careers li::before { content: none; }
#dmg-careers a { text-decoration: none; }
#dmg-careers button { font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
#dmg-careers a:focus-visible, #dmg-careers button:focus-visible {
  outline: 3px solid #476b98;
  outline-offset: 4px;
}
#dmg-careers .dmg-container {
  width: calc(100% - var(--dmg-gutter) - var(--dmg-gutter));
  max-width: var(--dmg-width);
  margin-inline: auto;
}
#dmg-careers .dmg-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; }

/* Hero */
#dmg-careers .dmg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #262a28;
}
#dmg-careers .dmg-hero__media { position: absolute; z-index: -2; inset: 0; }
#dmg-careers .dmg-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 45%;
  border: 0;
  border-radius: 0;
}
#dmg-careers .dmg-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 8, .85), rgba(5, 9, 8, .60) 52%, rgba(5, 9, 8, .36));
}
#dmg-careers .dmg-hero__content {
  min-height: 400px;
  padding-top: calc(136px + var(--dmg-hero-header-space));
  padding-bottom: 48px;
}
#dmg-careers h1 {
  max-width: 850px;
  color: #fff;
  font: 700 clamp(32px, 4.7vw, 56px)/1.06 Georgia, "Times New Roman", serif;
  overflow-wrap: break-word;
}
#dmg-careers .dmg-hero__rule {
  display: block;
  width: 50px;
  height: 2px;
  margin: 28px 0 26px;
  background: rgba(255,255,255,.68);
}
#dmg-careers .dmg-hero__intro { max-width: 470px; color: #eee; font-size: 16px; line-height: 1.55; }

/* Shared buttons */
#dmg-careers .dmg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #8b8e8b;
  border-radius: 4px;
  box-shadow: none;
  background: transparent;
  color: var(--dmg-ink);
  font: 600 14px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: none;
  white-space: normal;
}
#dmg-careers .dmg-button--outline:hover { background: #e9eae6; border-color: #222; }
#dmg-careers .dmg-button--solid { background: #080908; border-color: #080908; color: #fff; }
#dmg-careers .dmg-button--solid:hover { background: #303430; border-color: #303430; }
#dmg-careers .dmg-button .dmg-icon { width: 18px; height: 18px; }

/* Choice buttons and benefits */
#dmg-careers .dmg-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 30px; }
#dmg-careers .dmg-paths .dmg-button { min-height: 60px; font-size: 16px; }
#dmg-careers .dmg-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 40px 0;
  border-bottom: 1px solid #cecfcb;
}
#dmg-careers .dmg-benefits > li { display: flex; align-items: flex-start; gap: 20px; min-width: 0; padding: 0 26px; }
#dmg-careers .dmg-benefits > li:first-child { padding-left: 0; }
#dmg-careers .dmg-benefits > li:last-child { padding-right: 0; }
#dmg-careers .dmg-benefits > li + li { border-left: 1px solid #cecfcb; }
#dmg-careers .dmg-benefits > li > .dmg-icon { width: 36px; height: 36px; margin-top: 2px; }
#dmg-careers .dmg-benefits strong { display: block; font-size: 15px; line-height: 1.4; }
#dmg-careers .dmg-benefits p { margin-top: 3px; color: #535650; font-size: 13px; line-height: 1.45; }

/* Vacancy list */
#dmg-careers .dmg-jobs { padding: 36px 0 44px; scroll-margin-top: var(--dmg-scroll-offset); }
#dmg-careers .dmg-jobs__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
#dmg-careers h2 { color: var(--dmg-ink); font: 700 30px/1.15 Georgia, "Times New Roman", serif; }
#dmg-careers .dmg-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
#dmg-careers .dmg-filters button {
  min-height: 44px;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #41453f;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
#dmg-careers .dmg-filters button[aria-pressed="true"] { border-bottom-color: #111; color: #111; font-weight: 700; }
#dmg-careers .dmg-filters button:hover { color: #000; background: #eaece7; }
#dmg-careers .dmg-job-list { display: grid; gap: 9px; }
#dmg-careers .dmg-job {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, .8fr) minmax(0, 1.25fr) auto;
  grid-template-areas: "title location types action";
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 10px 12px 10px 24px;
  border: 0;
  border-radius: 5px;
  background: #edeeeb;
}
#dmg-careers .dmg-job__title { grid-area: title; color: #1e211e; font: 400 18px/1.35 Arial, Helvetica, sans-serif; overflow-wrap: break-word; }
#dmg-careers .dmg-job__location, #dmg-careers .dmg-job__types { display: flex; align-items: center; gap: 7px; min-width: 0; color: #454a43; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
#dmg-careers .dmg-job__location { grid-area: location; }
#dmg-careers .dmg-job__types { grid-area: types; }
#dmg-careers .dmg-job__location .dmg-icon, #dmg-careers .dmg-job__types .dmg-icon { width: 15px; height: 15px; }
#dmg-careers .dmg-job__apply { grid-area: action; min-width: 156px; min-height: 44px; font-size: 13px; padding: 11px 16px; }
#dmg-careers .dmg-empty { padding: 24px; background: #edeeeb; border-radius: 4px; color: #454a43; }

/* Open application banner */
#dmg-careers .dmg-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #e4e5e2; }
#dmg-careers .dmg-open--text-only { grid-template-columns: 1fr; }
#dmg-careers .dmg-open__content { padding: 28px 36px 28px max(var(--dmg-gutter), calc((100vw - var(--dmg-width)) / 2)); }
#dmg-careers .dmg-open h2 { font-size: 26px; }
#dmg-careers .dmg-open p { margin-top: 5px; color: #464a44; }
#dmg-careers .dmg-open .dmg-button { margin-top: 20px; }
#dmg-careers .dmg-open__media { position: relative; min-height: 200px; overflow: hidden; }
#dmg-careers .dmg-open__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; filter: grayscale(1); border: 0; border-radius: 0; }

#dmg-careers .dmg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  #dmg-careers .dmg-benefits > li { padding-inline: 18px; gap: 14px; }
  #dmg-careers .dmg-job { gap: 10px; padding-left: 18px; }
  #dmg-careers .dmg-job__title { font-size: 16px; }
  #dmg-careers .dmg-job__apply { min-width: 142px; padding-inline: 12px; }
}
@media (max-width: 760px) {
  #dmg-careers .dmg-hero__content { min-height: 360px; padding-top: calc(90px + var(--dmg-hero-header-space)); padding-bottom: 38px; }
  #dmg-careers .dmg-hero__image { object-position: 65% center; }
  #dmg-careers .dmg-hero::before { background: linear-gradient(90deg, rgba(5,9,8,.88), rgba(5,9,8,.58)); }
  #dmg-careers .dmg-paths { gap: 14px; }
  #dmg-careers .dmg-paths .dmg-button { font-size: 14px; padding-inline: 14px; }
  #dmg-careers .dmg-benefits { gap: 22px; padding-block: 30px; grid-template-columns: 1fr; }
  #dmg-careers .dmg-benefits > li { padding: 0; gap: 18px; }
  #dmg-careers .dmg-benefits > li + li { border-left: 0; }
  #dmg-careers .dmg-job {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas: "title title action" "location types action";
    padding: 16px;
    row-gap: 10px;
  }
  #dmg-careers .dmg-job__title { font-size: 18px; }
}
@media (max-width: 700px) {
  #dmg-careers .dmg-open { grid-template-columns: 1fr; }
  #dmg-careers .dmg-open__content { padding: 28px var(--dmg-gutter); }
  #dmg-careers .dmg-open__media { min-height: 180px; }
}
@media (max-width: 520px) {
  #dmg-careers { --dmg-gutter: 20px; }
  #dmg-careers .dmg-hero__intro { font-size: 15px; }
  #dmg-careers .dmg-paths { grid-template-columns: 1fr; padding-top: 22px; gap: 12px; }
  #dmg-careers .dmg-paths .dmg-button { min-height: 54px; }
  #dmg-careers .dmg-jobs { padding-block: 28px 32px; }
  #dmg-careers .dmg-jobs__top { align-items: flex-start; gap: 10px; }
  #dmg-careers h2 { font-size: 28px; }
  #dmg-careers .dmg-filters { width: 100%; gap: 10px; }
  #dmg-careers .dmg-filters button { flex: 1 1 auto; padding-inline: 4px; }
  #dmg-careers .dmg-job {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "title title" "location types" "action action";
    padding: 18px;
    row-gap: 14px;
  }
  #dmg-careers .dmg-job__apply { width: 100%; }
  #dmg-careers .dmg-open .dmg-button { max-width: 100%; }
}
