/**
 * homeModern.php — supplemental styles only (loads after styles.css)
 * Compact customer header, share popover, star feed on dark banner, cookie actions.
 */

/* Safety net: pasted job ad markup in listing cards must not match layout .page */
.job-card__description .page,
.job-card__description-full .page {
  max-width: none;
  margin: 0;
  min-height: 0;
  position: static;
}

/* Share-by-email modal (homeModernShareEmail.js + ajax/homeModernShareEmail.ajax.php) */
.homeModern-share-email__message {
  font-family: var(--font-dm);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-black);
}

.homeModern-share-email__message a {
  word-break: break-all;
}

.homeModern-share-email__qr {
  border-radius: 8px;
  border: 1px solid var(--color-neutral-200);
}

.homeModern-share-email__recipients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--color-neutral-300, #ced4da);
  border-radius: 0.375rem;
  background: #fff;
  cursor: text;
}

.homeModern-share-email__recipients:focus-within {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.homeModern-share-email__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.homeModern-share-email__chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 4px 2px 10px;
  border-radius: 6px;
  background: var(--color-neutral-100, #f1f3f5);
  font-family: var(--font-dm);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-black);
}

.homeModern-share-email__chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homeModern-share-email__chip-remove {
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--color-neutral-600, #6c757d);
  cursor: pointer;
}

.homeModern-share-email__chip-remove:hover {
  color: var(--color-black);
}

.homeModern-share-email__recipients-input {
  flex: 1 1 120px;
  min-width: 120px;
  margin: 0;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-dm);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-black);
}

.homeModern-share-email__recipients-input:disabled {
  display: none;
}

/* Customer logo above hero (expr3ss_customers/images/{code}_images/{code}-logo.png) */
.modernApplicant-customer-logo {
  padding-top: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.modernApplicant-customer-logo a {
  display: inline-block;
  text-decoration: none;
}

.modernApplicant-customer-logo img {
  display: block;
  max-height: 72px;
  max-width: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Multi-logo strip: customers (e.g. craveablebrands) with several rows in
   {customercode}_company render every logo here. Use flex so logos wrap onto
   additional rows on narrow viewports while staying baseline-aligned. */
.modernApplicant-customer-logo--multi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* Full viewport width (banner is outside .page so it is not capped at --page-max) */
.notification-banner--fullbleed {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Rich text from stripAllButSimpleTags (do not escape in PHP) */
.job-card__description {
  font-family: var(--font-dm);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.036px;
  color: var(--color-neutral-600);
}

.job-card__description p,
.job-card__description li > p {
  margin-top: 0;
  margin-bottom: 0;
}

.job-card__description p + p {
  margin-top: 0.5em;
}

.job-card__description ul,
.job-card__description ol {
  margin: 0.5em 0;
  padding-left: 1.25em;
}

/* Short preview + expand (truncated listings) */
.job-card__description-preview {
  font-family: var(--font-dm);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.036px;
  color: var(--color-neutral-600);
}

.job-card__read-more {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  color: var(--color-black);
  text-decoration: underline;
}

.job-card__read-more:hover {
  opacity: 0.85;
}

.job-card__description-full:not([hidden]) {
  margin-top: 12px;
}

.job-card__description-full .job-card__description {
  margin-top: 0;
}

/* ----- Hero: customer header.jpg / header_*.jpg (img, full width, native aspect). No green fill — wrapper must not out-tall the image layer. ----- */
/* Override styles.css .hero-banner { height: 262px } which caused a tall green band when .hero-banner__media was shorter */
.hero-banner.hero-banner--compact {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: auto;
  min-height: 0;
  border-radius: 8px;
  background: transparent;
}

.hero-banner--compact .hero-banner__sprinkles {
  display: none;
}

.hero-banner--compact .hero-banner__media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background-color: transparent;
}

@media (max-width: 768px) {
  /* Flush hero under notification / top of column; bleed to viewport edges */
  .hero-spacer {
    padding-top: 0;
    margin-left: calc(-1 * var(--content-pad-x));
    margin-right: calc(-1 * var(--content-pad-x));
    width: calc(100% + 2 * var(--content-pad-x));
    max-width: none;
  }

  .hero-banner.hero-banner--compact {
    min-height: 0;
    border-radius: 0;
  }

  .hero-banner--compact .hero-banner__media {
    min-height: 0;
    border-radius: 0;
  }
}

/* Phosphor star row (matches index.html — filled/half gold, empty muted on bar) */
.notification-banner #starFeed {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.notification-banner__stars .ph.ph-star:not(.ph-fill) {
  color: rgba(255, 255, 255, 0.38);
}

.notification-banner__inner a {
  color: var(--color-white);
}

/* Share: single icon, destinations on hover */
.job-card__share-wrap {
  position: relative;
  flex-shrink: 0;
}

.job-card__share-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  min-width: 180px;
  padding: 8px 0;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  z-index: 20;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.job-card__share-wrap:hover .job-card__share-menu,
.job-card__share-wrap.job-card__share-wrap--open .job-card__share-menu {
  opacity: 1;
  visibility: visible;
}

.job-card__share-menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  font-family: var(--font-dm);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-black);
  text-decoration: none;
  white-space: nowrap;
}

.job-card__share-menu a > i {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--color-black);
}

.job-card__share-menu a:hover {
  background: var(--color-neutral-100, #e6e6e4);
}

/* Cookie banner: two actions + optional manage */
.cookies-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-manage-settings {
  flex-shrink: 0;
  padding: 16px 24px;
  border: 1px solid var(--color-black);
  border-radius: 6px;
  background: var(--color-white);
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  color: var(--color-black);
  cursor: pointer;
  white-space: nowrap;
}

/* modernApplicant cookie modal (simplified duplicate of footer modal, scoped) */
.modernApplicant-cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  overflow: auto;
  padding: 24px;
}

.modernApplicant-cookie-modal.is-open {
  display: block;
}

.modernApplicant-cookie-modal__panel {
  max-width: 560px;
  margin: 40px auto;
  background: var(--color-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-dm);
  font-size: 15px;
  line-height: 1.5;
}

.modernApplicant-cookie-modal__panel h3 {
  margin-top: 0;
  font-size: 18px;
}

.modernApplicant-cookie-modal__panel label {
  display: block;
  margin: 12px 0 4px;
}

.modernApplicant-cookie-modal__close {
  float: right;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .modernApplicant-cookie-modal {
    padding: 16px;
  }

  .modernApplicant-cookie-modal__panel {
    padding: 16px;
  }
}

/* Filter dropdown panels (no legacy home.css) */
.filter-dropdown {
  position: relative;
}

.filter-dropdown__panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 240px;
  overflow: auto;
  padding: 8px 0;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.filter-dropdown.is-open .filter-dropdown__panel {
  display: block;
}

.filter-dropdown__panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-black);
  transition: background-color 0.12s ease, color 0.12s ease;
}

.filter-dropdown__panel label:hover {
  background: var(--color-neutral-50);
}

/* Figma node 1073:8054 — when an option in the Date/Location/Division/Job type
 * dropdown is selected, the entire row renders with a black background and
 * white text to match the design system's active-state colour. The native
 * checkbox/radio is kept (with accent-color for browsers that don't support
 * :has(), and inverted via filter when they do) so screen readers and
 * keyboard users still get the underlying control.
 *
 * `:has()` ships in all evergreen browsers (Chrome 105+, Safari 15.4+,
 * Firefox 121+); pre-:has() browsers fall back to the black accent-color
 * indicator on the input itself. */
.filter-dropdown__panel label input[type="checkbox"],
.filter-dropdown__panel label input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-black);
}

.filter-dropdown__panel label:has(input:checked) {
  background: var(--color-black);
  color: var(--color-white);
}

.filter-dropdown__panel label:has(input:checked):hover {
  background: var(--color-black);
}

.filter-dropdown__panel label:has(input:checked) input[type="checkbox"],
.filter-dropdown__panel label:has(input:checked) input[type="radio"] {
  accent-color: var(--color-white);
}

.filter-select.filter-select--active span {
  color: var(--color-black);
}

/* Searchable filter dropdown (Location): sticky search input at the top of the
 * panel, live-filters the option <label>s below by case-insensitive substring. */
.filter-dropdown__panel--searchable {
  padding-top: 0;
}

.filter-dropdown__search {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-neutral-200);
}

.filter-dropdown__search .ph {
  color: var(--color-neutral-500);
  font-size: 16px;
  flex: 0 0 auto;
}

.filter-dropdown__search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--color-black);
  padding: 4px 0;
}

.filter-dropdown__search-input::placeholder {
  color: var(--color-neutral-500);
}

.filter-dropdown__empty {
  padding: 12px 16px;
  color: var(--color-neutral-500);
  font-size: 14px;
}

.notification-banner.is-hidden {
  display: none;
}

@media (max-width: 768px) {
  .cookies-banner__actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookies-banner__actions .btn-okay,
  .cookies-banner__actions .btn-manage-settings {
    flex: 1;
    text-align: center;
  }
}

/* ---- Sticky / collapsible office-group bar (homeModern only) ----
 * Replaces the plain h2 office-group heading with a click-anywhere bar:
 * category title + "N jobs" in one typographic row (Figma 1177:4405 /
 * Sorting 1177:4406: 20px bold + 20px regular, 8px gap, items-center),
 * chevron alone on the far right, divider line
 * underneath, and position:sticky so the bar pins to the viewport top while
 * its group's cards are in view. The next group's bar pushes the previous
 * one off the top, so the visible bar always names the group whose cards
 * are currently being scrolled. Uses a --sticky modifier so the base
 * .office-group rules in modern/styles.css are not restyled. */
.office-group--sticky {
  gap: 0;
}

/* Let the bar's ::after divider escape the constrained .content-gutter
 * column and reach the viewport edges. We clip horizontal overflow at the
 * BODY level (not at .office-group, which is itself the constrained
 * container) so the 100vw line can extend past the column but still be
 * trimmed to the viewport width without producing a horizontal scrollbar.
 * overflow-x: clip - unlike overflow-x: hidden - does NOT create a scroll
 * container, so position: sticky on .office-group__bar still ranges
 * across the full document scroll. */
body.homeModern-body {
  overflow-x: clip;
}

.office-group--sticky .office-group__bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 16px 0 12px;
  border: 0;
  /* Divider when collapsed (column-width) or when pinned (--stuck uses the
   * ::after full-bleed line below). Expanded + not stuck: no line so cards
   * flow straight from the header. */
  border-bottom: 0;
  background: var(--color-white);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: sticky;
  top: 0;
  z-index: 10;
}

.office-group--sticky.office-group--collapsed .office-group__bar {
  border-bottom: 1px solid var(--color-neutral-200);
}

/* Pinned (collapsed or expanded): drop any column-width border and draw a
 * full-bleed line with a pseudo-element that breaks out of the .content-gutter
 * column to the viewport edges (mirrors the jobDetailsModern sticky header).
 * --stuck is toggled by initOfficeGroupStickyState() in homeModern.js via
 * IntersectionObserver. body.homeModern-body has overflow-x: clip so the 100vw
 * line never produces a horizontal scrollbar. */
.office-group--sticky.office-group--collapsed .office-group__bar--stuck {
  border-bottom: 0;
}

.office-group--sticky .office-group__bar--stuck::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  margin-left: -50vw;
  height: 1px;
  background: var(--color-neutral-200);
  pointer-events: none;
}

.office-group--sticky .office-group__bar:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Override the styles.css :first-of-type padding so the heading sits flush
 * inside the new bar (the bar owns the padding now). Title + count share
 * one flex row inside the h2 so both use 20px caps-height alignment per Figma. */
.office-group--sticky .office-group__heading.office-group__heading--lg {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0;
  margin: 0;
  font-family: var(--font-dm);
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--color-black);
}

.office-group--sticky .office-group__name {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-group--sticky .office-group__heading .office-group__count {
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.04px;
  color: var(--color-black);
  white-space: nowrap;
  flex-shrink: 0;
}

.office-group__toggle {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 24px;
  color: var(--color-black);
  transition: transform 0.18s ease;
}

.office-group--collapsed .office-group__toggle {
  transform: rotate(-90deg);
}

.office-group__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.office-group--collapsed .office-group__cards {
  display: none;
}

/* Hot Jobs group (control.jobsearchview bit 1) */
.office-group--hot .office-group__name--hot {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.office-group__hot-icon {
  width: 41px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.office-group__help-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 14px;
  font-weight: 400;
}

/* Applicant view prefs modal (supervisor) */
.job-title-row__links .homeModern-applicant-prefs__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

#homeModernApplicantPrefsModal .homeModern-applicant-prefs__section {
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border-subtle, #dee2e6);
  border-radius: 8px;
  background-color: var(--color-surface-muted, #f8f9fa);
}

#homeModernApplicantPrefsModal .homeModern-applicant-prefs__section-title {
  font-weight: 600;
  color: var(--color-black, #212529);
}

#homeModernApplicantPrefsModal .homeModern-applicant-prefs__radios {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--color-border-subtle, #e9ecef);
}

@media (max-width: 575.98px) {
  #homeModernApplicantPrefsModal .homeModern-applicant-prefs__section {
    padding: 16px;
  }

  #homeModernApplicantPrefsModal .homeModern-applicant-prefs__radios {
    padding: 16px;
  }
}

/* Job cards: full-area link under content (share / read more / in-body links stay interactive). */
body.homeModern-body .job-card--clickable {
  position: relative;
  cursor: pointer;
}

body.homeModern-body .job-card--clickable .job-card__hit {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px;
}

body.homeModern-body .job-card--clickable .job-card__surface {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  pointer-events: none;
}

body.homeModern-body .job-card--clickable .job-card__share-wrap {
  pointer-events: auto;
  z-index: 2;
}

/* Bridge hover gap between share icon and popover so pointer does not fall through to the job link. */
body.homeModern-body .job-card--clickable .job-card__share-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  pointer-events: auto;
}

body.homeModern-body .job-card--clickable .job-card__read-more,
body.homeModern-body .job-card--clickable .job-card__share-menu a,
body.homeModern-body .job-card--clickable .job-card__description a,
body.homeModern-body .job-card--clickable .job-card__description-full a {
  pointer-events: auto;
}

body.homeModern-body .job-card--clickable .job-card__read-more {
  position: relative;
  z-index: 2;
}

body.homeModern-body .job-card--clickable .job-card__hit:focus {
  outline: none;
}

body.homeModern-body .job-card--clickable .job-card__hit:focus-visible {
  outline: 2px solid var(--color-black, #000);
  outline-offset: 2px;
}

/* ----- Mobile: collapsible filter drawer + header kebab (Job openings) ----- */
.homeModern-search-filter-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.homeModern-search-filter-bar .search-field {
  flex: 1 1 auto;
  min-width: 0;
}

.homeModern-filter-expand-btn {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  padding: 0;
  border: 1px solid var(--color-neutral-200);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-black);
  cursor: pointer;
  box-sizing: border-box;
}

.homeModern-filter-expand-btn .ph {
  font-size: 22px;
  line-height: 1;
  color: inherit;
}

.homeModern-filter-expand-btn[aria-expanded="true"] {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.homeModern-filter-expand-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 767.98px) {
  .homeModern-filter-expand-btn {
    display: inline-flex;
  }

  .homeModern-filter-expand-panel:not(.homeModern-filter-expand-panel--open) {
    display: none;
  }

  .homeModern-filter-expand-panel.homeModern-filter-expand-panel--open {
    display: flex;
  }
}

@media (min-width: 768px) {
  .homeModern-filter-expand-btn {
    display: none !important;
  }
}

.job-title-row__title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.job-title-row__mobile-menu {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.job-title-row__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
}

.job-title-row__menu-btn .ph {
  font-size: 24px;
  line-height: 1;
}

.job-title-row__menu-btn:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.job-title-row__menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  min-width: 220px;
  padding: 8px 0;
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.job-title-row__menu-popover[hidden] {
  display: none !important;
}

.job-title-row__menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 0;
  background: none;
  font-family: var(--font-dm);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-black);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

a.job-title-row__menu-item:hover {
  background: var(--color-neutral-100, #e6e6e4);
  text-decoration: none;
  color: var(--color-black);
}

button.job-title-row__menu-item:hover {
  background: var(--color-neutral-100, #e6e6e4);
}

.job-title-row__links--desktop {
  display: none;
}

@media (min-width: 768px) {
  .job-title-row__links--desktop {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .section-job-title .job-title-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .job-title-row__mobile-menu {
    display: block;
  }

  .job-title-row h1 {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Applicant home: Figma mobile rhythm */
  body.homeModern-body .section-job-title {
    margin-top: 20px;
  }

  body.homeModern-body .section-filters {
    margin-top: 20px;
  }

  body.homeModern-body .section-listings {
    margin-top: 18px;
  }

  body.homeModern-body .office-group--sticky .office-group__bar {
    padding-top: 12px;
  }

  body.homeModern-body .filters-stack {
    gap: 12px;
  }

  body.homeModern-body .homeModern-filter-expand-panel {
    gap: 12px;
  }

  body.homeModern-body .filters-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.homeModern-body .btn-clear-filters {
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
  }

  body.homeModern-body .btn-clear-filters .ph {
    color: var(--color-white);
  }
}

/* Off-canvas admin sidebar: floating hamburger overlaps sticky office-group
 * titles unless we inset the bar (see --modern-sidebar-hamburger-gutter). */
@media (max-width: 991px) {
  body[data-modern-sidebar="1"].homeModern-body .office-group--sticky .office-group__bar {
    padding-left: calc(var(--modern-sidebar-hamburger-gutter, 0px) - var(--content-pad-x));
  }
}

/* Applicant home vertical rhythm (Figma): logo strip, title, filters, first group */
@media (min-width: 768px) {
  body.homeModern-body .hero-spacer {
    padding-top: 12px;
  }

  body.homeModern-body .modernApplicant-customer-logo {
    padding-top: 8px;
    margin-bottom: 8px;
  }

  body.homeModern-body .section-job-title {
    margin-top: 36px;
  }

  body.homeModern-body .section-filters {
    margin-top: 32px;
  }

  body.homeModern-body .section-listings {
    margin-top: 28px;
  }
}

/* EOI badge on interest-only job cards (Figma Application-Process node 1177:1889) */
.tag--interest {
  background: #cff4fc;
  color: #055160;
}
