/* dgm_section_jobs: job ads as cards (Karriere task B, 2026-11-13). Complete in itself (no page or group file needed).
   The family's measures: head at the family's left edge, h2 700 Inter Tight, body Inter 16px, hairline cards with a 16px
   radius, #00abe3 for links, accents and the filled button, navy #003e52 as text; kinds of position as soft tints of the
   calendar's event-type colours (13 %) with a solid dot. Nothing under 12px. Notes: Tools/KarriereRedesign/design/elements/jobs.md */

.dj {
  --dj-primary: #00abe3; --dj-primary-rgb: 0 171 227; --dj-ink: #003e52; --dj-text: #0f2233; --dj-muted: #475569; --dj-line: #dce6ec;
  --dj-head: Heading-Font, Theme-Font, Inter, system-ui, sans-serif; --dj-body: Theme-Font, Inter, system-ui, sans-serif;
  --dj-ease: cubic-bezier(.22, .8, .24, 1);
  /* the family's content width, as the bright hero (dgm_section_hero_people) and the layout explore of dgm_section_events:
     1152px inside a 1280px box, a side pad of 64px, 24px under 900px, 20px under 640px (director, 2026-11-13) */
  --dj-pad: 64px;
  --dj-f-h2: 700 1.5rem/1.25 var(--dj-head);
  position: relative; display: block; margin: 0; padding: clamp(56px, 6.2vw, 88px) 0;
  background: #fff; color: var(--dj-text); font: 400 1rem/1.55 var(--dj-body); letter-spacing: -.006em; text-align: left;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.dj--sky { background: linear-gradient(180deg, #f4fbfe 0%, #e6f6fd 100%); }
.dj * { box-sizing: border-box; }
.dj ::selection { background: rgb(var(--dj-primary-rgb) / .22); color: var(--dj-ink); }
@media (min-width: 640px) { .dj { --dj-f-h2: 700 1.875rem/1.25 var(--dj-head); } }
@media (min-width: 1024px) { .dj { --dj-f-h2: 700 2.25rem/1.25 var(--dj-head); } }
.dj__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dj__in { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--dj-pad); }
@media (max-width: 899.98px) { .dj { --dj-pad: 24px; } }
@media (max-width: 639.98px) { .dj { --dj-pad: 20px; } }

/* head: headline and lead on the left, the count on the right (below under 768px) */
.dj__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; margin-bottom: clamp(24px, 2.6vw, 36px); }
.dj__copy { min-width: 0; max-width: 760px; }
.dj__h2 { font: var(--dj-f-h2); margin: 0; color: var(--dj-text); letter-spacing: -.025em; text-wrap: balance; }
.dj__lead { max-width: 62ch; margin-top: 12px; color: var(--dj-muted); text-wrap: pretty; }
.dj__lead > :first-child { margin-top: 0; }
.dj__lead > :last-child { margin-bottom: 0; }
.dj__lead p { margin: 0 0 .6em; }
.dj__lead a { color: var(--dj-primary); font-weight: 600; text-underline-offset: 3px; }
.dj__count { margin: 0; color: var(--dj-ink); font: 600 15px/1.4 var(--dj-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 767.98px) { .dj__head { grid-template-columns: minmax(0, 1fr); } }

/* search and filter (shown by jobs.js) */
.dj__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 24px; }
.dj__tools[hidden] { display: none; }
.dj__search { position: relative; flex: 1 1 280px; max-width: 420px; display: block; }
.dj__search i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--dj-ink); font-size: 15px; pointer-events: none; }
.dj__q { width: 100%; height: 46px; padding: 0 16px 0 44px; border: 1px solid var(--dj-line); border-radius: 12px; background: #fff; color: var(--dj-text);
  font: 400 16px/1.2 var(--dj-body); caret-color: var(--dj-primary); appearance: none; transition: border-color .2s, box-shadow .2s; }
.dj__q::placeholder { color: #5b6b7a; opacity: 1; }
.dj__q:hover { border-color: #b9ccd6; }
.dj__q:focus { outline: none; border-color: var(--dj-primary); box-shadow: 0 0 0 3px rgb(var(--dj-primary-rgb) / .22); }
.dj__kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.dj__kind { --c: var(--dj-primary); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--dj-line); border-radius: 999px;
  background: #fff; color: var(--dj-ink); font: 600 14px/1.2 var(--dj-body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.dj__kind:hover { border-color: var(--c); }
.dj__kind[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.dj__kind:first-child[aria-pressed="true"] { background: var(--dj-ink); border-color: var(--dj-ink); color: #fff; }
.dj__kind:focus-visible, .dj__reset:focus-visible { outline: 2px solid var(--dj-ink); outline-offset: 2px; }
.dj__n { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .75; }
.dj__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c); }
.dj__none { padding: 28px; border: 1px dashed #b9ccd6; border-radius: 16px; text-align: center; color: var(--dj-ink); }
.dj__none[hidden] { display: none; }
.dj__none p { margin: 0 0 12px; }
.dj__reset { min-height: 40px; padding: 0 16px; border: 1px solid var(--dj-line); border-radius: 10px; background: #fff; color: var(--dj-ink); font: 600 15px/1 var(--dj-body); cursor: pointer; }
.dj__reset:hover { border-color: var(--dj-primary); color: var(--dj-primary); }

/* the list: one column on phones, two from 720px, three from 1100px; a single ad keeps a reading width */
.dj__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 1.8vw, 24px); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .dj__list--many { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dj__list--many { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dj__list--one { grid-template-columns: minmax(0, 720px); }
.dj__item { display: flex; min-width: 0; margin: 0; padding: 0; }
.dj__item[hidden] { display: none; }

/* a card: employer, title, facts, the way out */
.dj-card { --c: #00abe3; position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 24px 24px 20px; border: 1px solid var(--dj-line);
  border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(0 62 82 / .05), 0 8px 24px -16px rgb(0 62 82 / .22);
  transition: transform .35s var(--dj-ease), box-shadow .35s var(--dj-ease), border-color .2s; }
.dj-card--c1 { --c: #12a182; } .dj-card--c2 { --c: #7a5ad8; } .dj-card--c3 { --c: #ee9b1c; } .dj-card--c4 { --c: #e0587c; }
.dj__kind--c1 { --c: #12a182; } .dj__kind--c2 { --c: #7a5ad8; } .dj__kind--c3 { --c: #ee9b1c; } .dj__kind--c4 { --c: #e0587c; } .dj__kind--c0 { --c: #00abe3; }
.dj-card--link:hover { transform: translateY(-3px); border-color: rgb(var(--dj-primary-rgb) / .45); box-shadow: 0 2px 4px rgb(0 62 82 / .06), 0 18px 36px -18px rgb(0 62 82 / .32); }
.dj-card:focus-within { border-color: var(--dj-primary); }
.dj-card__who { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; margin-bottom: 10px; }
.dj-card__logo { display: flex; align-items: center; height: 52px; max-width: min(200px, 70%); }
.dj-card__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 52px; object-fit: contain; object-position: left center; }
.dj-card__employer { margin: 0; color: var(--dj-muted); font: 600 14px/1.4 var(--dj-body); }
.dj-card__employer--type { color: var(--dj-ink); font: 700 17px/1.3 var(--dj-head); letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dj-card__title { margin: 0; color: var(--dj-text); font: 700 20px/1.3 var(--dj-head); letter-spacing: -.015em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.dj-card__link { color: inherit !important; text-decoration: none !important; }
.dj-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.dj-card__link:focus-visible { outline: none; }
.dj-card__link:focus-visible::after { outline: 2px solid var(--dj-ink); outline-offset: 3px; }
.dj-card--link:hover .dj-card__title { color: var(--dj-ink); }
.dj-card__text { margin: 10px 0 0; color: var(--dj-muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dj-card__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 0; padding: 0; color: var(--dj-ink); font-size: 15px; line-height: 1.4; }
.dj-card__fact { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dj-card__fact dd { display: inline-flex; align-items: center; gap: 7px; margin: 0; min-width: 0; }
.dj-card__fact i { color: var(--dj-ink); font-size: 14px; opacity: .8; }
.dj-chip { padding: 3px 10px 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--dj-ink); font-weight: 600; font-size: 14px; }
.dj-card__fact--due { flex-basis: 100%; gap: 6px; }
.dj-card__fact--due dt { color: var(--dj-muted); font-weight: 400; }
.dj-card__fact--due dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.dj-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: auto; padding-top: 18px; }
.dj-card__facts + .dj-card__foot, .dj-card__text + .dj-card__foot, .dj-card__title + .dj-card__foot { margin-top: auto; }
.dj-card__foot::before { content: ""; flex-basis: 100%; height: 1px; margin: 4px 0 2px; background: var(--dj-line); order: -1; }
.dj-card__more { display: inline-flex; align-items: center; gap: 8px; color: var(--dj-primary); font: 600 15px/1.3 var(--dj-body); }
.dj-card__more i { font-size: 13px; transition: transform .3s var(--dj-ease); }
.dj-card--link:hover .dj-card__more i { transform: translateX(3px); }
.dj-card__apply { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 32px; color: var(--dj-ink) !important; font: 600 15px/1.3 var(--dj-body);
  text-decoration: underline !important; text-decoration-color: rgb(0 62 82 / .35) !important; text-decoration-thickness: 1px !important; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.dj-card__apply:hover { text-decoration-color: var(--dj-ink) !important; }
.dj-card__apply:focus-visible { outline: 2px solid var(--dj-ink); outline-offset: 2px; }
.dj-card__pub { flex-basis: 100%; margin: 0; color: var(--dj-muted); font-size: 13px; line-height: 1.4; }
@media (min-width: 640px) { .dj-card__pub { flex-basis: auto; margin-left: auto; } }

/* no ad: one calm panel, the sentence and the button */
/* as wide as the content: the sentence on the left (its own measure), the way out on the right; stacked under 768px */
.dj-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--dj-line); border-radius: 16px; background: linear-gradient(150deg, #e6f6fd, #f4fbfe); }
.dj-empty__text { flex: 1 1 420px; max-width: 62ch; margin: 0; color: var(--dj-ink); font: 600 18px/1.45 var(--dj-body); text-wrap: pretty; }
.dj-empty__go { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--dj-primary) !important; font: 600 16px/1.4 var(--dj-body);
  text-decoration: none !important; }
.dj-empty__go span { text-decoration: underline; text-decoration-color: rgb(var(--dj-primary-rgb) / .4); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.dj-empty__go:hover span { text-decoration-color: var(--dj-primary); }
.dj-empty__go i { font-size: 14px; transition: transform .25s var(--dj-ease); }
.dj-empty__go:hover i { transform: translateX(3px); }
.dj-empty__go:focus-visible { outline: 2px solid var(--dj-ink); outline-offset: 3px; border-radius: 4px; }
.dj--bare .dj-empty { margin-top: 0; }

@media (max-width: 639.98px) {
  .dj-card { padding: 20px 18px 16px; }
  .dj-card__title { font-size: 18px; }
  .dj-card__logo { height: 44px; }
  .dj-card__logo img { max-height: 44px; }
  .dj__search { flex-basis: 100%; max-width: none; }
  .dj__kinds { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--dj-pad)); padding: 2px var(--dj-pad); scrollbar-width: none; }
  .dj__kinds::-webkit-scrollbar { display: none; }
  .dj__kind { flex: none; }
  .dj-empty__go { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dj-card, .dj-card__more i, .dj-empty__go i { transition: none; }
  .dj-card--link:hover { transform: none; }
  .dj-card--link:hover .dj-card__more i, .dj-empty__go:hover i { transform: none; }
}
