.hpj-salary {
  --hpj-navy: #17324d;
  --hpj-blue: #1677c8;
  --hpj-teal: #0fa7a0;
  --hpj-orange: #f58b1f;
  margin: 2.5rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--hpj-navy);
  background: #f6f9fc;
  border: 1px solid #dbe5ee;
  border-radius: 14px;
}

.hpj-salary__header h2,
.hpj-salary__card h3 {
  margin-top: 0;
  color: var(--hpj-navy);
}

.hpj-salary__eyebrow {
  margin: 0 0 0.35rem;
  color: #53697d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hpj-salary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}

.hpj-salary__card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(23 50 77 / 7%);
}

.hpj-salary__median {
  margin: 0.25rem 0 1.25rem;
  color: var(--hpj-navy);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
}

.hpj-salary__median span {
  color: #66798a;
  font-size: 0.9rem;
  font-weight: 600;
}

.hpj-salary__track {
  position: relative;
  height: 16px;
  margin: 0.5rem 0;
  overflow: visible;
  background: linear-gradient(90deg, #f5a262 0 16%, #13a5a0 16% 84%, #2f74bd 84% 100%);
  border-radius: 999px;
}

.hpj-salary__track::after {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: var(--hpj-median-position);
  width: 3px;
  content: "";
  background: #fff;
  border: 1px solid var(--hpj-navy);
  border-radius: 2px;
  transform: translateX(-50%);
}

.hpj-salary__labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #66798a;
  font-size: 0.8rem;
}

.hpj-salary__labels span {
  display: flex;
  flex-direction: column;
}

.hpj-salary__labels span:nth-child(2) {
  text-align: center;
}

.hpj-salary__labels span:last-child {
  text-align: right;
}

.hpj-salary__labels b {
  color: var(--hpj-navy);
  text-transform: uppercase;
}

.hpj-salary__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hpj-salary__table th,
.hpj-salary__table td {
  padding: 0.48rem 0;
  border-bottom: 1px solid #e7edf3;
}

.hpj-salary__table th {
  color: #53697d;
  font-weight: 600;
  text-align: left;
}

.hpj-salary__table td {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.hpj-salary__source {
  margin: 1rem 0 0;
  color: #66798a;
  font-size: 0.78rem;
  line-height: 1.5;
}

.hpj-salary__source a {
  color: var(--hpj-blue);
}

.hpj-salary__breakdown summary {
  display: none;
}

.hpj-pilot-page {
  padding-bottom: 150px;
}

/* The site-wide after-content widget must be enabled for WordPress Pages so
 * enhanced menu pages can reuse it. Keep it suppressed everywhere else. */
body.page:not(.hpj-pilot-page) .awac-wrapper {
  display: none !important;
}

.hpj-pilot-content {
  --hpj-navy: #17324d;
  --hpj-blue: #1677c8;
  --hpj-teal: #0fa7a0;
  color: #293b4d;
}

.hpj-pilot-answer,
.hpj-pilot-section {
  margin: 2rem 0;
}

.hpj-pilot-answer {
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border-left: 5px solid var(--hpj-orange, #f58b1f);
  background: #fff8ef;
  border-radius: 0 10px 10px 0;
}

.hpj-pilot-answer h2,
.hpj-pilot-section h2,
.hpj-pilot-section h3 {
  color: var(--hpj-navy);
}

.hpj-pilot-answer h2,
.hpj-pilot-section h2 {
  margin-top: 0;
}

.hpj-pilot-answer p:last-child,
.hpj-pilot-section > p:last-child {
  margin-bottom: 0;
}

.hpj-pilot-eyebrow {
  margin: 0 0 0.35rem;
  color: #53697d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hpj-pilot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hpj-pilot-grid > div {
  padding: 1.15rem;
  background: #f6f9fc;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
}

.hpj-pilot-grid h3 {
  margin-top: 0;
}

.hpj-pilot-content ul {
  padding-left: 1.2rem;
}

.hpj-pilot-content li + li {
  margin-top: 0.45rem;
}

.hpj-pilot-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
}

.hpj-pilot-outlook {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: collapse;
}

.hpj-pilot-outlook th,
.hpj-pilot-outlook td {
  padding: 0.75rem;
  border-bottom: 1px solid #e6edf3;
  text-align: left;
  vertical-align: top;
}

.hpj-pilot-outlook thead th {
  color: #fff !important;
  font-weight: 700;
  background: var(--hpj-navy) !important;
  border-color: #31516d;
}

/* Divi's table selectors otherwise override the header text color. */
.entry-content .hpj-pilot-outlook thead tr th {
  color: #fff !important;
  background: #17324d !important;
}

.hpj-pilot-outlook tbody th,
.hpj-pilot-outlook tbody td {
  color: #293b4d !important;
  background: #fff;
}

.hpj-pilot-outlook tbody tr:nth-child(even) th,
.hpj-pilot-outlook tbody tr:nth-child(even) td {
  background: #f7f9fb;
}

.hpj-pilot-outlook tbody th {
  font-weight: 700;
}

.hpj-pilot-outlook tbody tr:last-child th,
.hpj-pilot-outlook tbody tr:last-child td {
  border-bottom: 0;
}

.hpj-pilot-note,
.hpj-pilot-sources {
  color: #5c6d7c;
  font-size: 0.88rem;
}

.hpj-original-content {
  margin: 2.5rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid #dbe5ee;
}

.hpj-pilot-jobs {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #cfe0ec;
  background: #f4fbff;
  border-radius: 12px;
}

.hpj-job-widget,
.hpj-job-widget .awac,
.hpj-job-widget .cjsearchbox {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.hpj-job-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.hpj-job-tab {
  padding: 0.55rem 0.85rem;
  color: var(--hpj-navy);
  font-weight: 700;
  background: #fff;
  border: 1px solid #b8cfdf;
  border-radius: 999px;
  cursor: pointer;
}

.hpj-job-tab:hover,
.hpj-job-tab:focus,
.hpj-job-tab.is-active {
  color: #fff;
  background: var(--hpj-blue);
  border-color: var(--hpj-blue);
}

.hpj-job-widget #careeromatic_table {
  width: 100%;
}

.hpj-job-widget #careeromatic_table td {
  padding: 0.35rem;
}

.hpj-job-widget #cjwhat,
.hpj-job-widget #cjwhere {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #b8cfdf;
  border-radius: 6px;
}

.hpj-job-widget #careeromatic-submit-form {
  min-height: 42px;
  padding: 0.6rem 1rem;
  color: #fff;
  font-weight: 700;
  background: var(--hpj-orange, #f58b1f);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.hpj-job-widget #cjSearchResult {
  margin-top: 1rem;
}

.hpj-job-widget .cjjob {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid #dbe5ee;
}

.hpj-job-widget .jobtitle {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.hpj-job-source {
  display: inline-block;
  margin-top: 0.35rem;
  color: #637687;
  font-size: 0.76rem;
}

.hpj-jobs-loading {
  color: #637687;
  font-style: italic;
}

.hpj-pilot-related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem 1rem;
  padding: 0;
  margin-left: 0;
  list-style: none !important;
}

.hpj-pilot-related li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.entry-content .hpj-pilot-related li::before,
.entry-content .hpj-pilot-related li::marker,
.hpj-pilot-related li::before,
.hpj-pilot-related li::marker {
  content: none !important;
  display: none !important;
}

.hpj-pilot-related a {
  display: block;
  padding: 0.75rem;
  background: #f7f7f7;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
}

.hpj-pilot-sources {
  padding-top: 1.25rem;
  border-top: 1px solid #dbe5ee;
}

@media (max-width: 640px) {
  .hpj-salary {
    padding: 1rem;
  }

  .hpj-salary__card {
    padding: 1rem;
  }

  .hpj-salary__breakdown summary {
    display: block;
    margin-top: 0.9rem;
    padding: 0.7rem;
    color: var(--hpj-blue);
    font-weight: 700;
    text-align: center;
    background: #f4f8fb;
    border: 1px solid #dbe5ee;
    border-radius: 6px;
    cursor: pointer;
  }

  .hpj-salary__breakdown[open] summary {
    margin-bottom: 0.5rem;
  }

  .hpj-pilot-grid {
    grid-template-columns: 1fr;
  }

  .hpj-job-widget #careeromatic_table,
  .hpj-job-widget #careeromatic_table tbody,
  .hpj-job-widget #careeromatic_table tr,
  .hpj-job-widget #careeromatic_table td {
    display: block;
    width: 100%;
  }
}
