.job-detail-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.job-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.job-detail-head .btn {
  min-width: 70px;
  height: 36px;
  border-radius: 4px;
  box-shadow: none;
  font-size: 0.78rem;
}

.job-detail-head > .job-detail-list-action {
  min-width: 0;
  margin-left: auto;
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #59636b;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #aab2b8;
  text-underline-offset: 4px;
}

.job-detail-head > .job-detail-list-action:hover,
.job-detail-head > .job-detail-list-action:focus-visible {
  background: transparent;
  color: var(--primary);
  text-decoration-color: currentColor;
}

.job-detail-card {
  border: 1px solid #dbe3f1;
  border-radius: 12px;
  background: #fff;
  padding: 22px;
}

.job-detail-loading,
.job-detail-empty {
  color: #5f759a;
  font-size: 0.95rem;
}

.job-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.job-detail-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: #f0f4f9;
  color: #516380;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid #dbe3f1;
  white-space: nowrap;
}

.job-detail-dday {
  color: #e64b7a;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: #fff0f5;
  border: 1px solid #f7b8cd;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

.job-detail-title {
  margin: 0 0 6px;
  color: #1f2738;
  font-size: 1.34rem;
  line-height: 1.4;
}

.job-detail-company {
  margin: 0 0 16px;
  color: #526886;
  font-size: 1rem;
  font-weight: 600;
}

.job-detail-heading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 16px;
}

.job-detail-heading-meta .job-detail-company {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.job-detail-views {
  margin: 0;
  color: #6c82a3;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.job-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.job-detail-meta div {
  border: 1px solid #e6edf8;
  border-radius: 8px;
  padding: 10px 12px;
}

.job-detail-meta dt {
  margin: 0 0 4px;
  color: #6c82a3;
  font-size: 0.78rem;
  font-weight: 700;
}

.job-detail-meta dd {
  margin: 0;
  color: #233956;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── 채용 요약 하이라이트 (3원형) ── */
.job-detail-highlights {
  list-style: none;
  margin: 6px 0 18px;
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #e6edf8;
}

.job-detail-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 4px 6px;
}

.job-detail-highlight-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid #d5deeb;
  background: #f8fafc;
  color: #6c82a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.job-detail-highlight-icon svg {
  width: 26px;
  height: 26px;
}

.job-detail-highlight-label {
  color: #2f476a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.job-detail-highlight-sub {
  color: #6c82a3;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── 라벨/값 행 정보 ── */
.job-detail-info {
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-detail-info > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  gap: 12px;
}

.job-detail-info dt {
  margin: 0;
  color: #6c82a3;
  font-size: 0.92rem;
  font-weight: 600;
}

.job-detail-info dd {
  margin: 0;
  color: #233956;
  font-size: 0.96rem;
  font-weight: 600;
  word-break: break-all;
}

.job-detail-section h3 {
  margin: 0 0 8px;
  color: #1f2738;
  font-size: 1rem;
}

.job-detail-description {
  margin: 0;
  white-space: pre-wrap;
  color: #2f476a;
  line-height: 1.75;
}

.job-detail-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.job-detail-contact div {
  border: 1px solid #e6edf8;
  border-radius: 8px;
  padding: 10px 12px;
}

.job-detail-contact dt {
  margin: 0 0 4px;
  color: #6c82a3;
  font-size: 0.78rem;
  font-weight: 700;
}

.job-detail-contact dd {
  margin: 0;
  color: #233956;
  font-size: 0.92rem;
  font-weight: 600;
}

.job-detail-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.job-detail-company-stats {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8f9fc;
  border: 1px solid #e6edf8;
  border-radius: 8px;
  text-align: center;
}

.job-detail-company-stats p {
  margin: 0;
  color: #526886;
  font-size: 0.92rem;
}

.job-owner-actions {
  display: inline-flex;
  gap: 6px;
}

.job-owner-actions[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .job-detail-card {
    padding: 16px;
  }

  .job-detail-meta {
    grid-template-columns: 1fr;
  }

  .job-detail-highlights {
    gap: 4px;
  }

  .job-detail-highlight-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .job-detail-highlight-icon svg {
    width: 22px;
    height: 22px;
  }

  .job-detail-highlight-label {
    font-size: 0.84rem;
  }

  .job-detail-highlight-sub {
    font-size: 0.76rem;
  }

  .job-detail-info > div {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .job-detail-contact {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 390px) {
  .job-detail-head:has(.job-owner-actions:not([hidden])) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-detail-head:has(.job-owner-actions:not([hidden])) .job-owner-actions {
    display: contents;
  }

  .job-detail-head:has(.job-owner-actions:not([hidden])) .job-detail-action {
    width: 100%;
    padding-inline: 8px;
  }
}

/* 공유하기 모달 */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.share-modal[hidden] {
  display: none;
}

.share-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 33, 0.58);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.share-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid rgba(214, 221, 232, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 29, 48, 0.28);
  overflow: hidden;
  animation: shareModalIn 0.22s ease-out;
}

@keyframes shareModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.share-modal-handle {
  display: none;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px 14px;
}

.share-modal-header h2 {
  margin: 0;
  color: #182235;
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: 0;
}

.share-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e2e7ef;
  border-radius: 4px;
  background: #f7f9fc;
  color: #52657e;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s, border-color 0.16s;
}

.share-modal-close:hover {
  border-color: #cbd5e2;
  background: #edf2f7;
}

.share-modal-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 24px 24px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  gap: 10px;
  padding: 14px 8px;
  border: 1px solid #e2e7ef;
  border-radius: 6px;
  background: #fff;
  color: #26364d;
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.share-option:hover {
  border-color: #bac7d7;
  box-shadow: 0 8px 20px rgba(31, 50, 76, 0.09);
  transform: translateY(-2px);
}

.share-option:active {
  transform: translateY(0);
}

.share-option:focus-visible,
.share-modal-close:focus-visible {
  outline: 3px solid rgba(43, 110, 183, 0.28);
  outline-offset: 2px;
}

.share-icon-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.share-option-copy .share-icon-wrap {
  background: #eaf3ff;
  color: #2466a8;
}

.share-option-message .share-icon-wrap {
  background: #e8f7ef;
  color: #238153;
}

.share-option-kakao .share-icon-wrap {
  background: #fee500;
  color: #3c1e1e;
}

.share-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.share-label {
  color: #26364d;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .share-modal {
    align-items: flex-end;
    padding: 0;
  }

  .share-modal-content {
    max-width: none;
    border: 0;
    border-radius: 8px 8px 0 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    animation-name: shareSheetIn;
  }

  .share-modal-handle {
    display: block;
    width: 38px;
    height: 4px;
    margin: 9px auto 0;
    border-radius: 2px;
    background: #d7dee8;
  }

  .share-modal-header {
    padding: 14px 20px 12px;
  }

  .share-modal-body {
    gap: 8px;
    padding: 6px 16px 16px;
  }

  .share-option {
    min-height: 104px;
    padding: 12px 4px;
  }

  .share-label {
    font-size: 0.82rem;
  }
}

@keyframes shareSheetIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-modal-content {
    animation: none;
  }
}

.share-label {
  color: #233956;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
