/* =====================================================================
   CAREERS PAGE
   Page head, join card and .btn-sm come from team.css; cards, FAQ and
   section layout come from home.css. Only careers-specific parts live here.
   ===================================================================== */

/* How-to-apply card beside the page head */
.apply-summary {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.apply-summary .as-head { font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.apply-summary p { margin: 10px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.apply-summary p a { color: var(--blue); font-weight: 600; }
.apply-summary ul { margin: 12px 0 22px; padding-left: 20px; font-size: 14.5px; color: var(--navy); line-height: 1.7; }
.apply-summary li::marker { color: var(--blue); }

/* Our team — compact clinician cards (data: inc/team-members.php) */
#our-team .section-header a { color: var(--blue); font-weight: 600; white-space: nowrap; }

.team-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.team-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.team-mini:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.tm-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-soft), #DCE7FB);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}
.tm-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tm-text { display: flex; flex-direction: column; min-width: 0; }
.tm-name { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.tm-role { margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.tm-lic { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--blue); }

.apply-summary .as-link { display: inline-block; margin-left: 16px; font-size: 14px; font-weight: 600; color: var(--blue); }
.apply-summary .as-alt { margin-top: 16px; font-size: 13px; }
.join-card p a { color: var(--blue); font-weight: 600; }

/* Open positions — one full-width card per role (data: inc/careers-positions.php) */
.page-head + section.block.positions { padding-top: 56px; }

.job-list { display: grid; gap: 20px; }

.job-card {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.job-group { font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.job-title { margin: 6px 0 0; font-size: 24px; }
.job-subtitle { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.job-apply { flex-shrink: 0; }

.job-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.job-meta li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.job-summary { margin: 16px 0 0; max-width: 820px; font-size: 15.5px; line-height: 1.6; }

.job-details { margin-top: 18px; border-top: 1px solid var(--border); }
.job-details summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
}
.job-details summary::-webkit-details-marker { display: none; }
.job-details summary::after { content: ' +'; }
.job-details[open] summary::after { content: ' −'; }

.job-details-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  margin-top: 20px;
}
.job-section h4 { margin: 0 0 8px; font-size: 15px; }
.job-section ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.job-section li { margin-bottom: 4px; }
.job-section li::marker { color: var(--blue); }

.job-details-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 13.5px; color: var(--muted); }

.job-none { font-size: 16px; color: var(--muted); }

.job-referral { margin: 28px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.job-referral strong { color: var(--navy); }
.job-referral a { color: var(--blue); font-weight: 600; }

@media (max-width: 900px) {
  .job-details-body { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .apply-summary,
  .job-card { padding: 22px; }
  .job-head { flex-direction: column; gap: 14px; }
  .apply-summary .as-link { display: block; margin: 14px 0 0; }
}

/* Job card title links to its own page; link in the expanded details */
.job-title a { color: inherit; text-decoration: none; }
.job-title a:hover { color: var(--blue); }
.job-details-foot .job-page-link { margin-left: auto; font-weight: 600; color: var(--blue); }

/* Single job page (/careers/<slug>/, template-parts/job-detail.php) */
.job-page-head h1 { max-width: 26ch; font-size: clamp(30px, 3.6vw, 46px); }
.job-page-head .job-meta { margin-top: 20px; }
.job-page-head .lede { max-width: 70ch; }
.job-page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
section.block.job-page-body { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 900px) {
  section.block.job-page-body { padding-top: 48px; padding-bottom: 48px; }
}
.job-page-body .job-section h2 { margin: 0 0 10px; font-size: 20px; }
.job-page-body .job-section ul { font-size: 15px; }

/* "Hot" badge on priority roles ('hot' => true in inc/careers-positions.php) */
.job-hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF8A1F 0%, #F2421B 100%);
  box-shadow: 0 2px 8px rgba(242, 66, 27, 0.28);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.job-hot svg { flex-shrink: 0; }
.job-card.is-hot { border-color: #FFD9C7; }
.job-page-head .job-hot { display: flex; width: max-content; margin: 0 0 10px; }

/* What every physician role includes — shared cards above the positions
   (data: goclinic_physician_shared(); card look from .benefit in home.css) */
.physician-shared .section-header { margin-bottom: 40px; }
.physician-shared .section-header p { max-width: 760px; }
.physician-shared .ps-applies { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--blue); }
.physician-shared .cards-3 { gap: 24px; }
.ps-card { padding: 28px; }
.ps-card:hover { transform: none; box-shadow: none; }
.ps-card ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.ps-card li { margin-bottom: 10px; }
.ps-card li:last-child { margin-bottom: 0; }
.ps-card li::marker { color: var(--blue); }
.ps-card li strong { color: var(--navy); font-weight: 600; }

.job-shared-note { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--blue-soft); font-size: 14px; color: var(--navy); line-height: 1.55; }
.job-shared-note a { color: var(--blue); font-weight: 600; }

.job-about { max-width: 820px; margin-bottom: 36px; }
.job-about h2 { margin: 0 0 10px; font-size: 20px; }
.job-about p { margin: 0; font-size: 15.5px; line-height: 1.65; }

@media (max-width: 520px) {
  .ps-card { padding: 22px; }
}
