.job-detail-renewal {
  --job-navy: #14213d;
  --job-blue: #2864e6;
  --job-blue-dark: #1748ad;
  --job-muted: #5b667a;
  --job-border: #e2e8f0;
  --job-surface: #f5f8fc;
  color: var(--job-navy);
  font-family: var(--foryoujob-font-family);
}

.job-detail-renewal .job-detail-container { max-width: 1480px; padding: 42px 32px 80px; }
.job-detail-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 86px; margin-bottom: 22px; }
.job-detail-kicker, .job-detail-section-head span, .job-detail-action-card > span { display: block; color: var(--job-blue); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.job-detail-page-head h2 { margin: 7px 0 6px; font-size: clamp(25px, 2.2vw, 34px); font-weight: 800; letter-spacing: -.04em; }
.job-detail-page-head p { margin: 0; color: var(--job-muted); font-size: 15px; }
.job-detail-text-button { min-height: 44px; padding: 0 18px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--job-navy); font-weight: 700; }

.job-detail-hero, .job-company-overview, .job-applicant-insight, .job-detail-content-card, .job-detail-facts-card, .job-detail-action-card { border: 1px solid var(--job-border); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(15, 35, 70, .06); }
.job-detail-hero { overflow: hidden; }
.job-detail-banner { position: relative; height: 230px; aspect-ratio: 16 / 5; overflow: hidden; contain: layout paint; background: linear-gradient(120deg, #0f3275, #2d6bea 58%, #80a8ff); }
.job-detail-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.job-detail-banner.is-plain img { display: none; }
.job-detail-banner.is-load-failed img { visibility: hidden; }
.job-detail-banner.is-plain { background: linear-gradient(125deg, #122a55 0%, #285fc7 58%, #9ab9f6 130%); }
.job-detail-banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 55, .48), rgba(8, 24, 55, .05)); }
.job-detail-banner-label { position: absolute; left: 34px; bottom: 27px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.job-detail-hero-body { padding: 28px 34px 34px; }
.job-detail-company-row { display: flex; align-items: center; gap: 14px; min-height: 60px; margin-bottom: 24px; }
.job-detail-company-row strong { font-size: 17px; font-weight: 800; }
.job-detail-company-logo { display: none; width: 54px; height: 54px; overflow: hidden; border: 1px solid var(--job-border); border-radius: 14px; background: #fff; }
.job-detail-company-logo img { width: 100%; height: 100%; object-fit: contain; }
.job-detail-company-logo.is-initial { display: flex !important; align-items: center; justify-content: center; background: linear-gradient(135deg, #f4f7ff, #e8efff); color: #2459ad; font-size: 20px; font-weight: 900; }
.job-detail-verified { display: none; width: max-content; margin-top: 4px; padding: 4px 9px; border-radius: 999px; background: #eaf7ef; color: #187245; font-size: 11px; font-weight: 800; }
.job-detail-source-badge { display: inline-flex; align-items: center; width: max-content; gap: 5px; margin-top: 5px; padding: 4px 9px; border-radius: 999px; background: #eaf2ff; color: #1f58c8; font-size: 11px; font-weight: 800; }
.job-detail-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.job-detail-title-row h1 { max-width: 920px; min-height: 2.5em; margin: 12px 0 0; font-size: clamp(28px, 3vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1.25; word-break: keep-all; }
.job-detail-status { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: #475569; font-size: 12px; font-weight: 800; }
.job-detail-status.is-run { background: #eaf2ff; color: #1f58c8; }
.job-detail-status.is-ready { background: #fff5d9; color: #8b6100; }
.job-detail-status.is-end { background: #eef1f5; color: #596273; }
.job-detail-deadline { min-width: 190px; min-height: 72px; padding-left: 24px; border-left: 1px solid var(--job-border); }
.job-detail-deadline span { display: block; margin-bottom: 6px; color: var(--job-muted); font-size: 12px; font-weight: 700; }
.job-detail-deadline strong { display: block; font-size: 16px; line-height: 1.5; }
.job-detail-view-count { min-height: 20px; margin: 10px 0 0; color: #788397; font-size: 13px; }

.job-applicant-insight { margin-top: 24px; padding: 32px 34px 24px; }
.job-insight-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.job-insight-head h2 { margin: 7px 0 5px; font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.job-insight-head p { margin: 0; color: var(--job-muted); font-size: 14px; }
.job-insight-total { min-width: 150px; padding-left: 24px; border-left: 1px solid var(--job-border); text-align: right; }
.job-insight-total span { display: block; color: var(--job-muted); font-size: 12px; font-weight: 700; }
.job-insight-total strong { display: block; margin-top: 5px; color: var(--job-blue); font-size: 26px; font-weight: 800; }
.job-insight-empty { margin-top: 24px; padding: 26px; border-radius: 16px; background: var(--job-surface); text-align: center; }
.job-insight-empty strong { font-size: 16px; }
.job-insight-empty p { margin: 6px 0 0; color: var(--job-muted); font-size: 13px; }
.job-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.job-insight-grid[hidden], .job-insight-empty[hidden] { display: none; }
.job-insight-card { min-width: 0; padding: 23px 24px 15px; border: 1px solid #e7ecf3; border-radius: 17px; background: #fbfcfe; }
.job-insight-card > div:first-child > span { color: var(--job-blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.job-insight-card h3 { margin: 5px 0 3px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.job-insight-card p { margin: 0; color: var(--job-muted); font-size: 12px; }
.job-insight-chart { min-height: 250px; margin-top: 8px; }
.job-insight-no-data { display: flex; align-items: center; justify-content: center; min-height: 250px; color: #758197; font-size: 13px; }
.job-insight-privacy { margin: 18px 0 0; color: #69758a; font-size: 12px; line-height: 1.6; }

.job-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 24px; margin-top: 24px; }
.job-detail-content-card { min-width: 0; min-height: 620px; padding: 36px 40px 56px; }
.job-detail-section-head { padding-bottom: 24px; border-bottom: 1px solid var(--job-border); }
.job-detail-section-head h3, .job-detail-facts-card h3, .job-detail-action-card h3 { margin: 7px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.job-detail-viewer { min-height: 460px; padding-top: 30px; color: #1e293b; }
.job-detail-viewer .toastui-editor-contents { color: #1e293b; font-family: var(--foryoujob-font-family); font-size: 15px; line-height: 1.8; }
.job-detail-viewer .toastui-editor-contents img { max-width: 100%; height: auto; }
.job-detail-sidebar { position: sticky; top: 116px; display: grid; gap: 18px; }
.job-detail-facts-card, .job-detail-action-card { padding: 27px; }
.job-detail-facts-card { min-height: 360px; }
.job-detail-action-card { min-height: 300px; }
.job-detail-facts { margin: 20px 0 0; }
.job-detail-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid #edf1f6; }
.job-detail-facts dt { color: #6b7689; font-size: 13px; font-weight: 700; }
.job-detail-facts dd { margin: 0; color: #19243a; font-size: 14px; font-weight: 700; line-height: 1.55; word-break: keep-all; }
.job-detail-action-card { background: linear-gradient(145deg, #f5f8ff, #fff); }
.job-detail-action-card p { margin: 12px 0 22px; color: var(--job-muted); font-size: 14px; line-height: 1.65; }
.job-detail-primary-button, .job-detail-list-button, .job-detail-favorite-button, .job-detail-secondary-actions button { width: 100%; min-height: 48px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.job-detail-primary-button { border: 1px solid var(--job-blue); background: var(--job-blue); color: #fff; }
.job-detail-primary-button:hover { background: var(--job-blue-dark); border-color: var(--job-blue-dark); }
.job-detail-list-button { margin-top: 10px; border: 1px solid #ccd5e2; background: #fff; color: var(--job-navy); }
.job-detail-favorite-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 10px; border: 1px solid #c9d6e8; background: #fff; color: var(--job-navy); }
.job-detail-favorite-button span { font-size: 14px; line-height: 1; }
.job-detail-favorite-button:hover { border-color: #93b4ef; color: var(--job-blue); }
.job-detail-favorite-button.is-active { border-color: #b9c7dc; background: #eef4ff; color: var(--job-blue); }
.job-detail-favorite-button.is-active span { color: var(--job-blue); }
.job-detail-primary-button:disabled { border-color: #aeb9ca; background: #aeb9ca; cursor: wait; }
.job-detail-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.job-detail-secondary-actions button { border: 1px solid #ccd5e2; background: #fff; color: var(--job-navy); }
.job-detail-secondary-actions button.is-danger { border-color: #f0c8c8; color: #b42323; }
.job-detail-renewal button { transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.job-detail-renewal button:hover { transform: translateY(-1px); }
.job-detail-renewal button:focus-visible { outline: 3px solid rgba(40, 100, 230, .25); outline-offset: 2px; }

.favorite-login-modal { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, .48); }
.favorite-login-modal.is-open { display: flex; }
.favorite-login-dialog { position: relative; width: min(380px, 100%); padding: 28px 30px 30px; border: 1px solid #dbe7ff; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .22); text-align: left; }
.favorite-login-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: #334155; font-size: 22px; line-height: 1; }
.favorite-login-kicker { display: inline-flex; margin-bottom: 9px; padding: 5px 9px; border-radius: 999px; background: #eaf2ff; color: var(--job-blue); font-size: 12px; font-weight: 900; }
.favorite-login-dialog h3 { margin: 0; color: var(--job-navy); font-size: 20px; font-weight: 900; line-height: 1.35; letter-spacing: 0; }
.favorite-login-dialog p { margin: 8px 0 22px; color: var(--job-muted); font-size: 14px; line-height: 1.55; word-break: keep-all; }
.favorite-login-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 4px; }
.favorite-login-actions a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 900; text-decoration: none; }
.favorite-login-primary { border: 1px solid #2563eb; background: #2563eb; color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, .22); }
.favorite-login-primary:hover { border-color: #1746a2; background: #1746a2; color: #fff; }
.favorite-login-secondary { border: 1px solid #cbd5e1; background: #fff; color: #132238; }
.favorite-feedback-toast { position: fixed; top: 92px; right: 24px; z-index: 10060; display: flex; min-width: 260px; max-width: min(360px, calc(100vw - 32px)); align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid #bfdbfe; border-radius: 14px; background: #fff; color: var(--job-navy); box-shadow: 0 18px 48px rgba(15, 23, 42, .18); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease; }
.favorite-feedback-toast.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.favorite-feedback-toast strong { font-size: 14px; font-weight: 900; line-height: 1.4; word-break: keep-all; }
.favorite-feedback-toast a { flex: 0 0 auto; color: var(--job-blue); font-size: 13px; font-weight: 900; text-decoration: none; white-space: nowrap; }

.job-company-overview { margin-top: 18px; padding: 18px 22px; }
.job-company-overview[hidden] { display: none; }
.job-company-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--job-border); }
.job-company-overview-head h2 { margin: 4px 0 2px; font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
.job-company-overview-head p { margin: 0; color: var(--job-muted); font-size: 13px; }
.job-company-overview-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--job-blue); border-radius: 10px; background: var(--job-blue); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.job-company-overview-link:hover { background: var(--job-blue-dark); border-color: var(--job-blue-dark); color: #fff; text-decoration: none; }
.job-company-overview-link::after { content: "→"; margin-left: 8px; font-size: 15px; line-height: 1; }
.job-company-overview-link[hidden] { display: none; }
.job-company-overview-body { padding-top: 14px; }
.job-company-overview-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.job-company-overview-main strong { display: block; min-width: 0; color: var(--job-navy); font-size: 18px; font-weight: 800; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-company-overview-main span { display: none; flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: #eaf7ef; color: #187245; font-size: 10px; font-weight: 800; }
.job-company-overview-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 12px 0 0; border-top: 1px solid #e7ecf3; border-bottom: 1px solid #e7ecf3; }
.job-company-overview-facts > div { min-width: 0; padding: 12px 14px; border-right: 1px solid #e7ecf3; background: #fff; }
.job-company-overview-facts > div:last-child { border-right: 0; }
.job-company-overview-facts dt { margin-bottom: 4px; color: #6b7689; font-size: 11px; font-weight: 800; }
.job-company-overview-facts dd { margin: 0; color: #19243a; font-size: 13px; font-weight: 800; line-height: 1.35; word-break: keep-all; }
.job-company-overview-summary { display: -webkit-box; margin: 10px 0 0; overflow: hidden; color: #526078; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

.job-detail-api .job-detail-api-banner { background: linear-gradient(125deg, #15345d 0%, #2874b5 54%, #8bc8e8 130%); }
.job-detail-api .job-detail-api-content { min-height: 620px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; }
.job-detail-api .job-detail-api-action .job-detail-primary-button { display: flex; align-items: center; justify-content: center; gap: 5px; }
.job-detail-api .job-detail-source-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #e5ebf3; color: #788397; font-size: 11px; line-height: 1.6; }

@media (max-width: 1100px) {
  .job-detail-layout { grid-template-columns: 1fr; }
  .job-detail-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .job-company-overview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-company-overview-facts > div:nth-child(2n) { border-right: 0; }
  .job-company-overview-facts > div:nth-child(n+3) { border-top: 1px solid #e7ecf3; }
}

@media (max-width: 900px) {
  .job-insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .job-detail-renewal .job-detail-container { padding: 24px 16px 56px; }
  .job-detail-page-head { align-items: flex-start; flex-direction: column; }
  .job-detail-text-button { width: 100%; }
  .job-detail-banner { height: 150px; aspect-ratio: 16 / 9; }
  .job-detail-banner-label { left: 20px; bottom: 18px; }
  .job-detail-hero-body { padding: 22px 20px 26px; }
  .job-detail-company-row { align-items: flex-start; margin-bottom: 18px; }
  .job-detail-title-row { align-items: flex-start; flex-direction: column; gap: 18px; }
  .job-detail-title-row h1 { font-size: 27px; }
  .job-detail-deadline { width: 100%; min-width: 0; padding: 14px 0 0; border-top: 1px solid var(--job-border); border-left: 0; }
  .job-company-overview { margin-top: 16px; padding: 18px 16px; }
  .job-company-overview-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .job-company-overview-link { width: 100%; }
  .job-company-overview-body { padding-top: 14px; }
  .job-company-overview-main strong { font-size: 17px; }
  .job-company-overview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-applicant-insight { margin-top: 16px; padding: 25px 20px 20px; }
  .job-insight-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .job-insight-total { width: 100%; padding: 13px 0 0; border-top: 1px solid var(--job-border); border-left: 0; text-align: left; }
  .job-insight-grid { margin-top: 18px; }
  .job-insight-card { padding: 20px 16px 12px; }
  .job-detail-layout { margin-top: 16px; }
  .job-detail-content-card { min-height: 500px; padding: 27px 20px 40px; }
  .job-detail-sidebar { grid-template-columns: 1fr; }
  .job-detail-facts-card, .job-detail-action-card { min-height: 0; padding: 24px 20px; }
  .job-detail-api .job-detail-api-content { min-height: 500px; }
}

@media (prefers-reduced-motion: reduce) {
  .job-detail-renewal button { transition: none; }
}
