/* Version 1.11.29: premium shared chrome and navigation refinement. */
:root{
  --hcp-premium-bg:#eff5f9;
  --hcp-premium-surface:#ffffff;
  --hcp-premium-surface-alt:#f7fbfd;
  --hcp-premium-ink:#17324a;
  --hcp-premium-muted:#5d7588;
  --hcp-premium-border:#d6e5ec;
  --hcp-premium-border-strong:#c6dae5;
  --hcp-premium-accent:#168594;
  --hcp-premium-accent-deep:#0f5e7d;
  --hcp-premium-shadow:0 14px 44px rgba(18,55,83,.08);
  --hcp-premium-shadow-soft:0 6px 24px rgba(18,55,83,.055);
}
/* Keep one set of links visible. Templates already reserve 80px for the header. */
#navbar.nav {
  position: sticky;
  height: auto;
  min-height: var(--header-height, 80px);
  margin-bottom: calc(0px - var(--header-height, 80px));
  background: var(--bg-white);
  border-bottom: 1px solid var(--hcp-premium-border);
  box-shadow: var(--hcp-premium-shadow-soft);
}
#navbar .nav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand menu tools";
  align-items: center;
  gap: 0 clamp(8px, 1vw, 18px);
  height: auto;
  min-height: var(--header-height, 80px);
  padding: 4px clamp(16px, 2vw, 40px);
}
#navbar .nav-logo { grid-area: brand; margin: 0; }
#navbar .nav-actions { grid-area: tools; justify-self: end; gap: 4px; margin: 0; }
#darkToggle { color: var(--text-dark); }
#navbar .hcp-site-menu { grid-area: menu; min-width: 0; }
.hcp-site-menu ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px clamp(2px, .4vw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hcp-site-menu li { min-width: 0; max-width: 100%; margin: 0; }
.hcp-site-menu a, .hcp-employer-menu summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 5px clamp(5px, .5vw, 10px);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.hcp-site-menu a:hover, .hcp-site-menu a[aria-current] {
  color: #0f5e7d;
  background: #e9f4f8;
}
.hcp-site-menu .hcp-account-link {
  border: 1px solid #a9c6d5;
  padding-inline: 12px;
}
.hcp-site-menu .hcp-register-link {
  color: #fff;
  background: #174f7d;
  padding-inline: 12px;
}
.hcp-site-menu .hcp-register-link:hover { color: #fff; background: #0e3b5e; }
.hcp-employer-menu { position: relative; }
.hcp-employer-menu summary { cursor: pointer; list-style: none; gap: .45em; }
.hcp-employer-menu summary::-webkit-details-marker { display: none; }
.hcp-employer-menu summary::after {
  content: ""; width: .4em; height: .4em;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.12em) rotate(45deg);
}
.hcp-employer-menu[open] summary::after { transform: translateY(.12em) rotate(225deg); }
.hcp-employer-menu summary:hover, .hcp-employer-menu[open] summary,
.hcp-employer-menu:has(a[aria-current]) summary { background: #e9f4f8; color: #0f5e7d; }
.hcp-employer-menu summary:focus-visible { outline: 3px solid #168594; outline-offset: 2px; }
.hcp-site-menu .hcp-employer-menu > ul {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 2;
  display: block; width: max-content; min-width: 10.5rem; padding: 4px;
  border: 1px solid var(--hcp-premium-border); border-radius: 10px;
  background: var(--bg-white); box-shadow: var(--shadow-md);
}

@media (max-width: 1199px) {
  #navbar .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand tools" "menu menu";
    padding-block: 2px 6px;
  }
  #navbar .nav-logo { width: 170px; max-width: 100%; height: 54px; }
  #navbar .nav-logo img { width: 132%; min-width: 0; height: auto; }
  .hcp-site-menu ul { justify-content: flex-start; }
}
@media (max-width: 600px), (max-height: 480px) {
  /* Short screens can move past the header by scrolling the page normally. */
  body #navbar.nav { position: relative; top: 0; }
}
@media (max-width: 600px) {
  #navbar .nav-inner { padding-inline: 12px; }
  #navbar .nav-logo { height: 48px; }
  .hcp-site-menu ul { gap: 1px 3px; }
  .hcp-site-menu a, .hcp-employer-menu summary { min-height: 38px; padding: 4px 7px; font-size: .84375rem; }
  .hcp-site-menu .hcp-account-link, .hcp-site-menu .hcp-register-link { padding-inline: 10px; }
}
.hcp-product-page .hcp-core form{box-shadow:var(--hcp-premium-shadow); border-radius:24px; border:1px solid var(--hcp-premium-border); background:linear-gradient(180deg,#ffffff,#fbfdfe)}
.hcp-product-page .hcp-core form input:not([type=checkbox]):not([type=hidden]):focus,
.hcp-product-page .hcp-core form select:focus,
.hcp-product-page .hcp-core form textarea:focus{border-color:#168594;box-shadow:0 0 0 3px rgba(22,133,148,.12);outline:none}

/* Use the homepage's Create a profile treatment on standalone content cards. */
#hcp-main-content {
  --hcp-card-edge: #238e91;
  --hcp-card-hover-shadow: 0 14px 32px rgba(18, 62, 86, .1);
}
body.dark-mode #hcp-main-content {
  --hcp-card-edge: #65c8cb;
  --hcp-card-hover-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

#hcp-main-content :where(
  .hcp-path, .hcp-benefit, .hcp-search-card, .hcp-hiring-panel,
  .hcp-reading-offer, .hcp-publisher-invitation, .hcp-pricing-card,
  .article-card, .hcp-ci-card, .hcp-ci-cta, .hcp-article-card, .hcp-reading-card,
  .hcp-author-panel, .hcp-publisher-banner, .hcp-publishing-summary,
  .hcp-person-card, .hcp-result, .hcp-check-panel, .hcp-check-summary,
  .hcp-job-card, .hcp-employer-preview, .hcp-founder-box, .hcp-billing-summary,
  .hcp-trust-grid > article, .hcp-trust-note, .hcp-recruiter-stats > div,
  .hcp-dash-insight-card, .hcp-dashboard-job, .hcp-timeline-item,
  .hcp-dashboard-panel:not(.hcp-dashboard-sidebar),
  .hcp-profile-guide, .hcp-profession-guide, .hcp-coaching-tip, .hcp-member-card,
  .hcpj-choice, .hcpj-tip, .hcpj-email-choice, .hcpj-import-review,
  .hcpj-provider-info, .hcp-gr-note, .hcp-gr-review, .hcp-enrichment-summary,
  .stat-card, .hiw-card, .category-card, .allied-card, .ai-feature-card,
  .candidate-card, .employer-card, .why-card, .pricing-card, .testimonial-card,
  .hcp-content-card, .hcp-home .card,
  .wp-block-group:is(.has-background, .has-border-color):not(.alignfull, .alignwide):not(:has(.wp-block-columns, .wp-block-group))
) {
  --hcp-card-lift: translateY(-2px);

  /* Keep form controls and panels containing their own cards stationary. */
  &:is(form, [contenteditable="true"]),
  &:has(input:not([type="hidden"], [type="submit"], [type="button"]), select, textarea, [contenteditable="true"]),
  &:has(.hcp-result, .hcp-person-card, .hcp-dashboard-job, .hcp-dash-insight-card, .hcp-timeline-item, .hcp-check-summary, .hcpj-email-choice) {
    --hcp-card-lift: none;
  }

  @media (hover: hover) and (pointer: fine) {
    &:hover {
      border-color: var(--hcp-card-edge);
      box-shadow: var(--hcp-card-hover-shadow);
    }
    /* Draw the same one-pixel edge on cards with no resting border. */
    &:hover:not(:focus-within) {
      outline: 1px solid var(--hcp-card-edge);
      outline-offset: -1px;
    }
    @media (prefers-reduced-motion: no-preference) {
      transition: transform 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out;
      &:hover { transform: var(--hcp-card-lift); }
    }
  }

  &:focus-visible, &:has(:focus-visible) {
    border-color: var(--hcp-card-edge);
    box-shadow: var(--hcp-card-hover-shadow);
  }

  /* Some older cards define a hover transform in their individual templates. */
  @media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    &:hover { transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}
