.detail-page {
  padding-bottom: 0;
}

.page-heading--detail {
  padding-top: 22px;
  padding-bottom: 23px;
}

.page-heading--detail .page-heading__title {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 72px;
}

.detail-content {
  min-width: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
}

.back-link::before {
  content: "<";
  margin-right: 7px;
  text-decoration: none;
}

.job-overview {
  padding: 26px 28px 28px;
  background: var(--surface);
  border-top: 5px solid var(--brand-cyan);
  box-shadow: 0 3px 14px rgba(16, 44, 77, 0.06);
}

.job-overview__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.employment-badge {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 10px;
  color: #fff;
  background: var(--brand-navy);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

.job-overview__office {
  color: var(--brand-cyan-dark);
  font-weight: 700;
}

.job-overview h1 {
  margin: 14px 0 6px;
  font-size: 29px;
  line-height: 1.45;
}

.job-overview__catch {
  margin: 0;
  color: #344054;
  font-size: 16px;
  font-weight: 700;
}

.overview-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.overview-facts > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overview-facts dt,
.overview-facts dd {
  margin: 0;
  padding: 12px;
}

.overview-facts dt {
  display: flex;
  align-items: center;
  color: #44546a;
  background: #edf1f5;
  font-size: 12px;
  font-weight: 800;
}

.overview-facts dd {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.overview-facts__salary dd {
  color: var(--brand-navy);
  font-size: 19px;
  font-weight: 800;
}

.job-overview__lead {
  margin: 20px 0 0;
  color: #475467;
}

.highlight-section,
.detail-section {
  margin-top: 24px;
  padding: 26px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.highlight-section {
  border-left: 5px solid var(--brand-cyan);
}

.section-heading {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brand-navy);
}

.section-heading--compact {
  padding-bottom: 10px;
}

.section-heading p {
  margin: 0;
  color: var(--brand-cyan-dark);
  font-size: 10px;
  font-weight: 800;
}

.section-heading h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.highlight-copy {
  margin-top: 18px;
  color: #475467;
  font-size: 14px;
}

.highlight-copy p {
  margin: 0 0 6px;
}

.highlight-copy p:last-child {
  margin-bottom: 0;
}

.detail-table {
  margin: 0;
}

.detail-table > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.detail-table dt,
.detail-table dd {
  margin: 0;
  padding: 18px;
}

.detail-table dt {
  color: #344054;
  background: #f3f6f9;
  font-size: 13px;
  font-weight: 800;
}

.detail-table dd {
  overflow-wrap: anywhere;
  color: #475467;
  font-size: 14px;
}

.detail-table dd p {
  margin: 0 0 5px;
}

.detail-table dd p:last-child {
  margin-bottom: 0;
}

.detail-table__salary {
  color: var(--brand-navy);
  font-size: 19px;
  font-weight: 800;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-tags li {
  padding: 4px 9px;
  color: var(--brand-cyan-dark);
  background: var(--soft-cyan);
  border: 1px solid #b7e3e7;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

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

.process-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.process-list span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand-cyan-dark);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.application-phone {
  display: inline-block;
  color: var(--brand-navy);
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}

.back-link--bottom {
  margin-top: 24px;
  margin-bottom: 0;
}

.entry-sidebar {
  position: sticky;
  top: 20px;
}

.entry-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid #cbd3de;
  border-top: 5px solid var(--brand-navy);
  border-radius: 6px;
  box-shadow: 0 3px 14px rgba(16, 44, 77, 0.06);
}

.entry-panel__eyebrow {
  margin: 0;
  color: var(--brand-cyan-dark);
  font-size: 10px;
  font-weight: 800;
}

.entry-panel h2 {
  margin: 2px 0 5px;
  font-size: 20px;
}

.entry-panel > p:not(.entry-panel__eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.entry-panel__button {
  width: 100%;
  margin-top: 17px;
}

.entry-panel__phone {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.entry-panel__phone span,
.entry-panel__phone small,
.entry-panel__phone a {
  display: block;
}

.entry-panel__phone span,
.entry-panel__phone small {
  color: var(--muted);
  font-size: 11px;
}

.entry-panel__phone a {
  color: var(--brand-navy);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

.entry-sidebar__back {
  display: block;
  margin-top: 14px;
  color: var(--brand-blue);
  font-size: 12px;
  text-align: center;
}

.mobile-entry-bar {
  display: none;
}

@media (max-width: 959px) {
  .detail-page {
    padding-bottom: 74px;
  }

  .detail-layout {
    display: block;
    padding-top: 22px;
  }

  .entry-sidebar {
    display: none;
  }

  .mobile-entry-bar {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px max(16px, calc((100vw - 720px) / 2));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px rgba(16, 44, 77, 0.12);
  }

  .mobile-entry-bar span,
  .mobile-entry-bar strong {
    display: block;
  }

  .mobile-entry-bar span {
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-entry-bar strong {
    color: var(--brand-navy);
    font-size: 16px;
  }

  .mobile-entry-bar .button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .page-heading--detail {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .page-heading--detail .page-heading__title {
    font-size: 22px;
  }

  .detail-layout {
    padding-bottom: 45px;
  }

  .job-overview {
    padding: 19px 15px 20px;
  }

  .job-overview__meta {
    display: block;
  }

  .job-overview__meta > span {
    display: block;
    margin-top: 8px;
  }

  .job-overview h1 {
    margin-top: 12px;
    font-size: 23px;
  }

  .job-overview__catch {
    font-size: 14px;
  }

  .overview-facts {
    grid-template-columns: 1fr;
  }

  .overview-facts > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .overview-facts dt,
  .overview-facts dd {
    padding: 10px;
  }

  .job-overview__lead {
    font-size: 13px;
  }

  .highlight-section,
  .detail-section {
    margin-top: 16px;
    padding: 20px 15px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .detail-table > div {
    display: block;
  }

  .detail-table dt,
  .detail-table dd {
    padding: 12px;
  }

  .detail-table dt {
    border-left: 3px solid var(--brand-cyan);
  }

  .detail-table dd {
    font-size: 13px;
  }

  .process-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-entry-bar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-entry-bar .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .mobile-entry-bar .button {
    width: 100%;
  }
}
