/* Author: SiberMimar "Guray Avci" | www.sibermimar.com.tr */
.career-theme main.only-public:has(> .posting-detail) {
  max-width: none;
  padding-inline: clamp(16px, 3.4vw, 64px);
}

.posting-detail {
  padding-block: clamp(18px, 2.4vw, 36px) clamp(28px, 4vw, 60px);
}

.posting-back {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  margin-bottom: .75rem;
  color: var(--polat-text);
  font-size: .88rem;
  font-weight: 500;
}

.posting-back span,
.posting-copy h2 { color: var(--polat-gold); }

.posting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.025fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2.7vw, 48px);
}

.posting-grid-text { grid-template-columns: minmax(0, 1fr); }

.posting-media {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.posting-cover {
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  border-radius: 15px;
  background: #091827;
  border: 1px solid var(--line);
}

.posting-cover img {
  display: block;
  width: 100%;
  max-height: max(520px, calc(100svh - 160px));
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

.posting-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.posting-gallery a {
  display: block;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.posting-gallery img {
  display: block;
  width: 68px;
  height: 85px;
  object-fit: contain;
  border-radius: 5px;
}

.posting-info {
  min-width: 0;
  padding: clamp(20px, 3.1vw, 50px);
  background: var(--polat-surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.posting-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-bottom: clamp(18px, 2.3vw, 29px);
  border-bottom: 1px solid var(--line);
}

.posting-header > div { flex: 1 1 16rem; min-width: 0; }

.posting-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.25vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.posting-expiry { margin: .65rem 0 0; color: var(--polat-text); font-size: .82rem; }
.posting-expiry time { margin-inline-start: .3rem; }

.posting-apply {
  flex: 0 0 auto;
  min-height: 46px;
  margin-inline-start: auto;
  white-space: nowrap;
}

.posting-copy {
  max-width: 72ch;
  padding-top: clamp(19px, 2.4vw, 32px);
  color: var(--polat-text);
  font-size: .95rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.posting-copy h2 {
  margin: 1.55em 0 .55em;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .025em;
}

.posting-copy p, .posting-copy ul { margin: 0 0 1em; }
.posting-copy > :first-child { margin-top: 0; }
.posting-copy > :last-child { margin-bottom: 0; }
.posting-copy ul { padding-inline-start: 1.2em; }
.posting-copy li + li { margin-top: .28em; }
.posting-copy li::marker { color: var(--polat-gold); }

@media (max-width: 780px) {
  .posting-grid { grid-template-columns: minmax(0, 1fr); }
  .posting-cover img { max-height: none; }
}

@media (max-width: 520px) {
  .posting-info { padding: 20px 17px; }
  .posting-apply { width: 100%; }
}
