/*
 * AR: Inner pages design batch, v1.0.0 (Nov 12, 2026)
 * Loaded by ar-design-system-fixes.php (v1.4.0) on every page EXCEPT the homepage,
 * so the homepage critical path (which matches stylesheets by exact URL) is untouched.
 * Plan: ar-staging-fixes/2026-11-12-p0/inner-pages-batch-plan.md
 * Pages: /careers/recruiters/, /careers/recruiter/<slug>/, /locations/, /locations/<city>/,
 *        /careers/, /job/<title>/<id>/
 *
 * Scale (same as the homepage): Display 44/34 (H1), Section clamp(26px,2.6vw,32px),
 * Title Inter 20/700 (18 on phones), Body 16, Small 14; uppercase eyebrows 13/700.
 * Radius: 6px controls, 12px cards, 50% avatars.
 * Red (#9B1B24) only for primary buttons and the current page; links are navy.
 *
 * Every rule starts with P = :is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner
 * To undo: set AR_DSF_INNER_TEST_GATE true (or delete this file).
 */

:root {
  --ari-navy: var(--ar-brand-navy, #1F243D);
  --ari-red: var(--ar-brand-red, #9B1B24);
  --ari-ink: var(--ar-ink, #33312E);
  --ari-muted: var(--ar-muted, #494441);
  --ari-border: var(--ar-border, #E7E6E3);
  --ari-tag-bg: #F1F0EE;
  --ari-section: clamp(26px, 2.6vw, 32px);
}

/* ======================= A1. Type ======================= */

/* Section headings: one size */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
  .ar27-section-heading > h2, .ar27-office-info > h2,
  h2.hmg-cp-landing-openings__title, .hmg-cp-landing-faq > h2, h2.hmg-cp-landing-explore__title,
  h1.hmg-cp-detail-title, .ar-compact-body > h1#ar-recruiter-name
) {
  font-family: "Archivo Black", Arial, sans-serif !important;
  font-size: var(--ari-section) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
}

/* Title: card and block headings, Inter 20/700 (18 on phones) */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
  .ar27-focus-card > h3, .ar27-member h3, .ar27-member h3 > a,
  .ar-profile-about > h2, .ar-profile-specialties > h2,
  h2.hmg-cp-filter-sidebar__title, .hmg-cp-listing-widget--alert > h2,
  .hmg-cp-card-title, .hmg-cp-card-title > a,
  h2.ar-share-card__title, .hmg-cp-recruiter-section-name, .hmg-cp-recruiter-section-name > a,
  .hmg-cp-prose h3, h3.ar-job-section-heading, h3.ar-ats-heading
) {
  font-family: Inter, Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}
@media (max-width: 767px) {
  :is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
    .ar27-focus-card > h3, .ar27-member h3, .ar27-member h3 > a,
    .ar-profile-about > h2, .ar-profile-specialties > h2,
    h2.hmg-cp-filter-sidebar__title, .hmg-cp-listing-widget--alert > h2,
    .hmg-cp-card-title, .hmg-cp-card-title > a,
    h2.ar-share-card__title, .hmg-cp-recruiter-section-name, .hmg-cp-recruiter-section-name > a,
    .hmg-cp-prose h3, h3.ar-job-section-heading, h3.ar-ats-heading
  ) { font-size: 18px !important; }
}

/* Eyebrows: labels above content, 13/700 uppercase, muted (white on navy bands) */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
  p.ar27-eyebrow, p.ar-profile-eyebrow, p.ar-profile-focus, p.ar-office-eyebrow, p.ar26p-eyebrow,
  p.ar-share-card__eyebrow, h3.hmg-cp-landing-explore__group-title,
  .hmg-cp-detail-body > section > h2, .hmg-cp-recruiter-section > h2, h2.hmg-cp-related-sidebar-title,
  a.hmg-cp-card-grid-meta-item--category
) {
  font-family: Inter, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--ari-muted) !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(.ar26p-page-hero, .ar27-team-hero, .ar-jobs-hero, .hmg-cp-listing-header) :is(p.ar26p-eyebrow, p.ar27-eyebrow, p) {
  color: rgba(255, 255, 255, 0.86) !important;
}

/* Body 16 */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
  p.ar-compact-affiliation, p.ar26p-page-lead, .ar27-team-hero > p,
  p.ar-share-card__copy, .hmg-cp-listing-widget--alert > p, .ar-manage-alerts > a, a.ar-location-jobs-link,
  span.hmg-cp-landing-faq-question-text, .hmg-cp-related-card-title, .hmg-cp-related-card-title > a,
  .ar-contact-links a, .fl-page-content a.ar-linkedin
) {
  font-size: 16px !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(.hmg-cp-related-card-title, .hmg-cp-related-card-title > a) { font-weight: 600 !important; }
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner span.hmg-cp-card-grid-meta-item--salary {
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Small 14 */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
  .ar-profile-back > a, a.hmg-cp-detail-back, p.ar-location, figcaption, p.ar-open-job-count,
  .ar-related-links > a, a.hmg-cp-card-grid-meta-item--location, p.hmg-cp-card-excerpt,
  .ar-hero-search > label, button.hmg-cp-filter-sidebar__collapse, .hmg-cp-search-multiselect__option > span,
  .hmg-cp-pagination, .hmg-cp-pagination a, .hmg-cp-pagination span, p.hmg-cp-pagination-status,
  p.hmg-cp-detail-job-id, p.ar-eeo-note, span.ar-eeo-label, p.hmg-cp-related-card-location,
  p.ar-profile-footer-note, .ar-state-office-info a, button.hmg-cp-results-toolbar__filters-reopen
) {
  font-size: 14px !important;
}

/* Tags and badges: 13/600, one neutral style ("Onsite" no longer red) */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(span.hmg-cp-card-badge, li.hmg-cp-badge) {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ari-ink) !important;
  background: var(--ari-tag-bg) !important;
  border-color: transparent !important;
  border-radius: 6px !important;
}

/* Profile industry chip ("Healthcare") and the EEO label: tag / Small sizes */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner .ar-profile-industries a {
  font-size: 13px !important;
  font-weight: 600 !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner.ar-dsf-inner p.ar-eeo-note span.ar-eeo-label {
  font-size: 14px !important;
}

/* ======================= A2. Tap targets (phones) ======================= */
@media (max-width: 767px) {
  :is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
    .ar-card-name > a, .ar-card-bottom > a, .ar-profile-back > a, .ar-related-links > a,
    a.hmg-cp-card-grid-meta-item, .hmg-cp-card-title > a, a.ar27-back, .ar27-jumps > a, a.ar27-text-link,
    .ar-office-location > a, .ar-office-owner a, a.hmg-cp-page, a.hmg-cp-detail-back,
    .hmg-cp-recruiter-section-name > a, .hmg-cp-related-card-title > a,
    .fl-page-content a.ar26p-with-icon, .fl-page-content a.ar-linkedin, .ar27-member h3 > a,
    .ar-profile-industries a, .hmg-cp-landing-explore__chips a, .ar26p-page-hero-inner nav a
  ) {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* ======================= A3. Red only for primary actions ======================= */

/* Content links: navy, underlined; red on hover */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
  .fl-page-content a.ar26p-with-icon:not(.ar-see-jobs, [class*="btn"], [class*="button"]), .fl-page-content a.ar-linkedin, .ar-office-owner a, a.ar27-text-link, .ar27-brochure > a,
  .ar-manage-alerts > a, a.ar-location-jobs-link, a.ar27-back, .ar27-jumps > a, a.hmg-cp-detail-back,
  a.hmg-cp-page, .hmg-cp-landing-faq-answer a, .ar-related-links > a, .ar27-member h3 > a,
  button.ar-faq-message-link
) {
  color: var(--ari-navy) !important;
  text-decoration-line: underline !important;
  text-decoration-color: currentColor !important;
  text-underline-offset: 0.18em !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
  .fl-page-content a.ar26p-with-icon:not(.ar-see-jobs, [class*="btn"], [class*="button"]), .fl-page-content a.ar-linkedin, .ar-office-owner a, a.ar27-text-link, .ar27-brochure > a,
  .ar-manage-alerts > a, a.ar-location-jobs-link, a.ar27-back, .ar27-jumps > a, a.hmg-cp-detail-back,
  a.hmg-cp-page, .hmg-cp-landing-faq-answer a, .ar-related-links > a, .ar27-member h3 > a,
  button.ar-faq-message-link
):hover {
  color: var(--ari-red) !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(a.hmg-cp-detail-back, a.ar27-back, a.hmg-cp-page) span { color: inherit !important; }
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner .ar27-member h3 > a { text-decoration-line: none !important; }
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner a.hmg-cp-detail-back { background: transparent !important; border-color: transparent !important; padding-left: 0 !important; }

/* Job sidebar: "View Job" becomes an outline button; related cards lose the red rule */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner a.hmg-cp-related-view {
  background: #fff !important;
  color: var(--ari-navy) !important;
  border: 1px solid var(--ari-navy) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner a.hmg-cp-related-view:hover {
  background: var(--ari-navy) !important;
  color: #fff !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner article.hmg-cp-related-card {
  border: 1px solid var(--ari-border) !important;
  border-radius: 12px !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner section.hmg-cp-detail-apply-card.ar-share-card {
  border-top: 1px solid var(--ari-border) !important;
}

/* Pull quotes: navy rule instead of red */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner .ar27-quotes > figure {
  border-left-color: var(--ari-navy) !important;
}

/* ======================= A4. Radius: 6 / 12 / 50% ======================= */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(
  .fl-page-content a.ar26p-with-icon, .fl-page-content a.ar-linkedin, p.ar-location, button.ar-faq-message-link, p.hmg-cp-related-card-pay,
  a.hmg-cp-card-grid-meta-item--category
) { border-radius: 6px !important; }
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(details.hmg-cp-landing-faq-item, div.hmg-cp-listing-stage) { border-radius: 12px !important; }
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner img.hmg-cp-recruiter-section-photo { border-radius: 50% !important; }

/* ======================= A5. One opening for listing pages ======================= */
/* Full-width navy band: the band bleeds to the viewport edges with a box-shadow,
   clipped to the element's height, so no markup changes are needed. */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(header.ar27-team-hero, header.hmg-cp-listing-header, section.ar-jobs-hero) {
  background: var(--ari-navy) !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 0 0 100vmax var(--ari-navy) !important;
  clip-path: inset(0 -100vmax) !important;
  padding-top: 56px !important;
  padding-bottom: 48px !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner :is(header.ar27-team-hero, header.hmg-cp-listing-header, section.ar-jobs-hero) :is(h1, p) {
  color: #fff !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner header.hmg-cp-listing-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 32px !important;
}
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner header.ar27-team-hero {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Secondary hero button stays readable on navy */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner header.ar27-team-hero a:not(.ar27-button) { color: #fff !important; }

/* ======================= A6. Less repetition ======================= */
/* "Recruiting nationwide" stays on every office card (recruiters serve clients nationwide,
   not only where their office is). Phase B rewrites it as "Recruiting nationwide · <City> office"
   and moves it out of the city heading. */
/* One "Markets and specialties" card spans the row */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner .ar27-focus-grid:has(> :only-child) { grid-template-columns: 1fr !important; }

/* Job cards: summaries are hidden until a preview script marks them ready, and most never
   are, which left an empty band in every card. Cards drop the summary so every card is the
   same: category, title, location, tags, salary. (No layout shift: nothing appears later.) */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner article.hmg-cp-card .hmg-cp-card-field-block--excerpt { display: none !important; }

/* Office cards keep "Recruiting nationwide" (see A6 note): Small 14, muted */
:is(html, #ar-ds#ar-ds#ar-ds#ar-ds#ar-ds) body.ar-dsf-inner .ar-office-location > span {
  font-size: 14px !important;
  color: var(--ari-muted) !important;
}
