/* Delviom — Job details (inner page), light theme.
   Loaded after main.css + index1.css + job-openings.css, so the banner, pills,
   skill chips, buttons, job cards and the Apply modal all come from there.
   This file adds the job banner, the description column, the sticky
   "Job Overview" card and the "Other open roles" strip. */

/* ===================== Job banner ===================== */
.job-hero .page-banner-title {
   font-size: clamp(1.9rem, 3.6vw, 2.8rem);
   max-width: 24ch;
}

.job-hero .job-meta {
   margin-bottom: 18px;
}

/* Pills re-tinted for the navy wave */
.job-hero .pill {
   background: rgba(255, 255, 255, 0.08);
   border-color: rgba(255, 255, 255, 0.24);
   color: #fff;
}

.job-hero .pill.status {
   background: rgba(92, 183, 170, 0.22);
   border-color: rgba(92, 183, 170, 0.62);
   color: #c9f2eb;
}

.job-hero .pill.new {
   background: rgba(247, 191, 90, 0.18);
   border-color: rgba(247, 191, 90, 0.6);
   color: var(--gold);
}

.job-facts--hero {
   display: flex;
   flex-wrap: wrap;
   gap: 12px 28px;
   margin-top: clamp(18px, 2vw, 24px);
}

.job-facts--hero li {
   color: rgba(245, 247, 250, 0.9);
   font-size: clamp(0.92rem, 1.1vw, 1rem);
}

.job-facts--hero svg {
   width: 19px;
   height: 19px;
   stroke: var(--gold);
}

/* ---------- Back link (banner + sidebar) ---------- */
.job-back {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   color: var(--teal-deep);
   font-size: 0.8rem;
   font-weight: 700;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   transition: color .18s ease, gap .18s ease;
}

.job-back svg {
   width: 16px;
   height: 16px;
   fill: none;
   stroke: currentColor;
   stroke-width: 2.2;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.job-back:hover {
   color: var(--navy);
   gap: 12px;
}

.job-back--light {
   margin-bottom: clamp(20px, 2.4vw, 28px);
   color: rgba(255, 255, 255, 0.78);
}

.job-back--light:hover {
   color: var(--gold);
}

/* ===================== Description + overview ===================== */
.job-detail {
   padding-block: clamp(44px, 5.5vw, 76px);
}

.job-detail-grid {
   display: grid;
   grid-template-columns: minmax(0, 1fr) 350px;
   align-items: start;
   gap: clamp(32px, 4.5vw, 64px);
}

/* ---------- Key areas ---------- */
.job-skills {
   margin-bottom: clamp(26px, 3vw, 36px);
   padding-bottom: clamp(24px, 2.8vw, 32px);
   border-bottom: 1px solid var(--line);
}

.job-skills .skill-label {
   margin-top: 0;
}

/* ---------- Description, as written in the admin editor ---------- */
.job-description {
   color: var(--text);
}

.job-description > :first-child {
   margin-top: 0;
}

.job-description h2,
.job-description h3,
.job-description h4 {
   position: relative;
   margin-top: clamp(34px, 4vw, 46px);
   padding-top: 18px;
   color: var(--ink);
   font-size: clamp(1.15rem, 1.7vw, 1.35rem);
   font-weight: 700;
   line-height: 1.35;
   letter-spacing: -0.01em;
}

.job-description h4 {
   font-size: 1.05rem;
}

.job-description h2::before,
.job-description h3::before,
.job-description h4::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 48px;
   height: 3px;
   border-radius: 999px;
   background: linear-gradient(90deg, var(--teal), var(--gold));
}

.job-description p {
   margin-top: 14px;
   color: var(--text);
   font-size: clamp(0.96rem, 1.1vw, 1.02rem);
   line-height: 1.85;
}

.job-description strong,
.job-description b {
   color: var(--ink);
   font-weight: 600;
}

.job-description ul,
.job-description ol {
   display: grid;
   gap: 10px;
   margin-top: 16px;
}

.job-description li {
   position: relative;
   padding-left: 28px;
   color: var(--text);
   font-size: clamp(0.95rem, 1.08vw, 1rem);
   line-height: 1.75;
}

/* Teal tick instead of a bullet */
.job-description ul > li::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0.32em;
   width: 18px;
   height: 18px;
   border-radius: 50%;
   background: rgba(92, 183, 170, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E8B7F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.job-description ol {
   counter-reset: jd-step;
}

.job-description ol > li {
   counter-increment: jd-step;
}

.job-description ol > li::before {
   content: counter(jd-step) ".";
   position: absolute;
   left: 0;
   top: 0;
   color: var(--teal-deep);
   font-weight: 700;
}

/* The editor wraps list text in <p> — keep it on the tick's line */
.job-description li > p {
   margin-top: 0;
   font-size: inherit;
}

.job-description li > p + p {
   margin-top: 6px;
}

.job-description a {
   color: var(--teal-deep);
   font-weight: 600;
   text-decoration: underline;
   text-underline-offset: 3px;
}

.job-description a:hover {
   color: var(--steel);
}

/* ---------- Job Overview card ---------- */
.job-summary {
   position: sticky;
   top: calc(var(--header-height) + 24px);
   display: grid;
   gap: 20px;
}

.job-summary-card {
   position: relative;
   overflow: hidden;
   padding: clamp(24px, 2.4vw, 30px);
   border: 1px solid var(--line);
   border-radius: 20px;
   background: var(--white);
   box-shadow: 0 18px 40px rgba(11, 31, 58, 0.08);
}

.job-summary-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: linear-gradient(90deg, var(--teal), var(--gold));
}

.job-summary-card h2 {
   color: var(--ink);
   font-size: 1.12rem;
   font-weight: 700;
   letter-spacing: -0.01em;
}

.job-summary-list {
   margin-top: 16px;
}

.job-summary-list > div {
   padding-block: 13px;
   border-top: 1px solid var(--line);
}

.job-summary-list > div:first-child {
   border-top: 0;
   padding-top: 4px;
}

.job-summary-list dt {
   color: var(--muted);
   font-size: 0.7rem;
   font-weight: 700;
   letter-spacing: 0.12em;
   text-transform: uppercase;
}

.job-summary-list dd {
   margin-top: 3px;
   color: var(--ink);
   font-size: 0.94rem;
   font-weight: 600;
   line-height: 1.5;
}

.job-summary-actions {
   display: grid;
   gap: 10px;
   margin-top: 18px;
}

.job-summary .job-back {
   justify-self: start;
}

/* ===================== Other open roles ===================== */
.job-related {
   background: rgb(233, 252, 255);
   padding-block: clamp(48px, 6vw, 78px);
}

.job-related-head {
   display: flex;
   flex-wrap: wrap;
   align-items: end;
   justify-content: space-between;
   gap: 12px 24px;
   margin-bottom: clamp(24px, 3vw, 34px);
}

.job-related-head h2 {
   color: var(--ink);
   font-size: clamp(1.4rem, 2.4vw, 1.9rem);
   font-weight: 700;
   letter-spacing: -0.01em;
}

.job-related-all {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: var(--teal-deep);
   font-size: 0.82rem;
   font-weight: 700;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   transition: gap .18s ease, color .18s ease;
}

.job-related-all svg {
   width: 16px;
   height: 16px;
   fill: none;
   stroke: currentColor;
   stroke-width: 2.2;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.job-related-all:hover {
   gap: 10px;
   color: var(--navy);
}

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
   .job-detail-grid {
      grid-template-columns: 1fr;
   }

   .job-summary {
      position: static;
   }
}

@media (max-width: 620px) {
   .job-hero .page-banner-actions .btn-job {
      flex: 1 1 100%;
   }

   .job-facts--hero {
      flex-direction: column;
      gap: 10px;
   }
}
