/* Standalone stylesheet for archive-workforce.php + single-workforce.php.
   Self-contained like apartment-ads.css so the Workforce surface can move to
   the IBMHR brand/domain without the theme's global CSS. */

:root {
  /* Aligned with the site palette (main.css) so this section reads as part of
     ISRA Services rather than a separate brand. */
  --wf-ibm: #1B2A3D;        /* = --slate */
  --wf-ibm-soft: #E0F2FE;   /* = --cyan-soft */
  --wf-accent: #0EA5E9;     /* = --cyan */
  --wf-accent-dark: #0369A1;/* = --cyan-dark */
  --wf-bg: #F8FAFC;         /* = --bg-warm */
  --wf-surface: #FFFFFF;
  --wf-border: #E2E8F0;     /* = --border */
  --wf-muted: #64748B;      /* = --gray-light */
  --wf-whatsapp: #25D366;
  --wf-radius: 12px;
}

* { box-sizing: border-box; }

/* Runs inside the site header/footer: the theme owns body background,
   colour and typography — only our components are styled here. */

/* Header */
.isr-wf-header { text-align: center; padding: 20px 16px 4px; }
.isr-wf-logo-link { display: inline-block; text-decoration: none; }
.isr-wf-logo { max-height: 48px; width: auto; }
.isr-wf-brand { font-size: 24px; font-weight: 800; color: var(--wf-ibm); letter-spacing: 0.5px; }
.isr-wf-tagline { margin: 6px 0 0; font-size: 13px; color: var(--wf-muted); }

.isr-wf-main { padding-block: 8px 56px; }

/* Breadcrumbs (visible only; the schema is Rank Math's) */
.isr-wf-breadcrumbs {
  max-width: var(--container-max, 1280px);
  margin-inline: auto;
  padding: 14px var(--container-pad, clamp(16px, 4vw, 48px)) 0;
  font-size: 13px;
  color: var(--wf-muted);
}
.isr-wf-breadcrumbs a { color: var(--wf-accent-dark); text-decoration: none; }
.isr-wf-breadcrumbs a:hover { text-decoration: underline; }
.isr-wf-breadcrumbs span[aria-current] { color: var(--wf-ibm); font-weight: 600; }

/* Headings */
.isr-wf-heading { font-size: 21px; font-weight: 800; margin: 8px 0 6px; text-align: center; }
.isr-wf-intro { font-size: 14px; color: var(--wf-muted); text-align: center; margin: 0 auto 18px; max-width: 740px; }
.isr-wf-section-title { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.isr-wf-count { font-size: 13px; font-weight: 700; color: var(--wf-ibm); margin: 0 0 12px; }

/* Role filter */
.isr-wf-roles { margin: 0 0 16px; }
.isr-wf-roles__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.isr-wf-role {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--wf-border); border-radius: 999px;
  background: var(--wf-surface); color: var(--wf-ibm); font-size: 13px; font-weight: 600; text-decoration: none;
}
.isr-wf-role:hover { border-color: var(--wf-accent); color: var(--wf-accent-dark); }
.isr-wf-role:focus-visible { outline: 2px solid var(--wf-accent); outline-offset: 2px; }
.isr-wf-role--active { background: var(--wf-ibm-soft); border-color: var(--wf-accent); color: var(--wf-accent-dark); }
.isr-wf-role--all { border-style: dashed; }
.isr-wf-role__count { font-size: 11px; font-weight: 700; background: var(--wf-bg); border-radius: 999px; padding: 1px 7px; color: var(--wf-muted); }
.isr-wf-role--active .isr-wf-role__count { background: var(--wf-surface); color: var(--wf-accent-dark); }

/* Worker grid */
.isr-wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.isr-wf-card {
  background: var(--wf-surface); border: 1px solid var(--wf-border); border-radius: var(--wf-radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--wf-ibm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.isr-wf-card:hover { border-color: var(--wf-accent); box-shadow: 0 6px 16px rgba(11, 46, 79, 0.1); transform: translateY(-2px); }
.isr-wf-card:focus-visible { outline: 2px solid var(--wf-accent); outline-offset: 2px; }
.isr-wf-card__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--wf-ibm-soft); }
.isr-wf-card__photo--empty {
  aspect-ratio: auto;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--wf-bg);
  border-bottom: 1px solid var(--wf-border);
  color: var(--wf-muted);
  font-size: 12px;
}
.isr-wf-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.isr-wf-card__name { font-size: 16px; font-weight: 800; margin: 0; }
.isr-wf-card__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.isr-wf-card__facts li { font-size: 12px; background: var(--wf-bg); border: 1px solid var(--wf-border); border-radius: 999px; padding: 3px 10px; color: var(--wf-muted); }
.isr-wf-card__open { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--wf-accent-dark); text-align: center; }

/* Paging */
.isr-wf-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 0; }
.isr-wf-page-link {
  min-width: 40px; padding: 8px 12px; border: 1px solid var(--wf-border); border-radius: 8px;
  background: var(--wf-surface); color: var(--wf-ibm); font-size: 13px; font-weight: 700; text-decoration: none; text-align: center;
}
.isr-wf-page-link:hover { border-color: var(--wf-accent); color: var(--wf-accent-dark); }
.isr-wf-page-link--active { background: var(--wf-ibm); border-color: var(--wf-ibm); color: #fff; }

.isr-wf-empty {
  text-align: center; color: var(--wf-muted); background: var(--wf-surface);
  border: 1px dashed var(--wf-border); border-radius: var(--wf-radius); padding: 32px 16px;
}
.isr-wf-empty a { color: var(--wf-accent-dark); }

/* Single worker */
.isr-wf-back { margin: 0 0 12px; }
.isr-wf-back a { color: var(--wf-accent-dark); text-decoration: none; font-size: 14px; }
.isr-wf-single { background: var(--wf-surface); border: 1px solid var(--wf-border); border-radius: var(--wf-radius); padding: 18px; }
.isr-wf-single__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.isr-wf-single__photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.isr-wf-single__title { font-size: 22px; font-weight: 800; margin: 0; }
.isr-wf-single__sub { font-size: 14px; color: var(--wf-muted); margin: 4px 0 0; }

.isr-wf-details { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.isr-wf-details th, .isr-wf-details td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--wf-border); }
.isr-wf-details th { width: 130px; color: var(--wf-muted); font-weight: 600; }

.isr-wf-desc { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.isr-wf-desc p { margin: 0 0 10px; }
.isr-wf-video-link { margin: 0 0 16px; }
.isr-wf-video-link a { color: var(--wf-accent-dark); font-weight: 700; text-decoration: none; }

.isr-wf-related { margin-top: 26px; }

/* Contact card */
.isr-wf-contact {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  background: var(--wf-bg); border: 1px solid var(--wf-border); border-radius: 10px; padding: 12px 14px;
}
.isr-wf-contact__info { flex: 1; min-width: 150px; }
.isr-wf-contact__name { font-weight: 800; font-size: 15px; }
.isr-wf-contact__title { font-size: 12px; color: var(--wf-muted); }
.isr-wf-contact__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.isr-wf-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: opacity 0.15s ease;
}
.isr-wf-btn:active { opacity: 0.85; }
.isr-wf-btn--wa { background: var(--wf-whatsapp); color: #fff; }
.isr-wf-btn--ghost { background: var(--wf-surface); color: var(--wf-ibm); border: 1px solid var(--wf-border); }

/* FAQ */
.isr-wf-faq { margin-top: 28px; }
.isr-wf-faq__item { background: var(--wf-surface); border: 1px solid var(--wf-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.isr-wf-faq__q { font-size: 14px; font-weight: 700; cursor: pointer; }
.isr-wf-faq__a { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }

/* Footer */
.isr-wf-footer { text-align: center; padding: 16px; font-size: 12px; color: var(--wf-muted); }
.isr-wf-footer p { margin: 2px 0; }
.isr-wf-footer a { color: var(--wf-accent-dark); }

@media (min-width: 640px) {
  .isr-wf-heading { font-size: 26px; }
  .isr-wf-main { padding-top: 26px; }
}

/* Site heading font, same as the rest of the site */
.isr-wf-heading, .isr-wf-section-title, .isr-wf-card__name, .isr-wf-single__title { font-family: var(--font-heading, inherit); }

@media (max-width: 639px) {
  /* Roles as one swipeable row so profiles reach the first screen */
  .isr-wf-roles__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -16px;
    padding: 0 16px 2px;
  }
  .isr-wf-roles__list::-webkit-scrollbar { display: none; }
  .isr-wf-roles__list li { flex: 0 0 auto; }
  .isr-wf-role { white-space: nowrap; }
  .isr-wf-intro { font-size: 13px; }
}

/* Job board (archive-isr_job.php / single-isr_job.php) */
.isr-wf-btn--primary { background: var(--wf-ibm); color: #fff; }
.isr-wf-cta-line { text-align: center; margin: 0 0 18px; }
.isr-wf-card--job .isr-wf-card__body { padding-top: 16px; }
.isr-wf-card__sub { margin: 0; font-size: 13px; color: var(--wf-muted); font-weight: 600; }
.isr-wf-disclaimer { margin: 14px 0 0; font-size: 12px; color: var(--wf-muted); line-height: 1.6; }

/* Workforce guide + CTA (template-parts/workforce-guide.php) */
.isr-wf-guide { background: var(--wf-surface); border: 1px solid var(--wf-border); border-radius: var(--wf-radius); padding: 18px; margin-top: 18px; }
.isr-wf-guide p { line-height: 1.7; margin: 0 0 10px; }
.isr-wf-guide a { color: var(--wf-accent-dark); }
.isr-wf-guide__note { font-size: 13px; color: var(--wf-muted); }
.isr-wf-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.isr-wf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.isr-wf-table th, .isr-wf-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--wf-border); vertical-align: top; }
.isr-wf-table th { color: var(--wf-muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 639px) {
  .isr-wf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .isr-wf-table, .isr-wf-table tbody, .isr-wf-table tr, .isr-wf-table td { display: block; width: 100%; }
  .isr-wf-table tr { padding: 12px 0; border-bottom: 1px solid var(--wf-border); }
  .isr-wf-table tr:last-child { border-bottom: 0; }
  .isr-wf-table td { border: 0; padding: 3px 0; }
  .isr-wf-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--wf-muted); }
}

.isr-wf-cta { background: var(--wf-surface); border: 1px solid var(--wf-border); border-radius: var(--wf-radius); padding: 22px 18px; margin-top: 18px; text-align: center; }
.isr-wf-cta__title { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.isr-wf-cta__text { margin: 0 0 14px; line-height: 1.7; color: var(--wf-muted); }

/* Single profile: inquiry form */
.isr-wf-inquiry { background: var(--wf-surface); border: 1px solid var(--wf-border); border-radius: var(--wf-radius); padding: 18px; margin-top: 18px; }
.isr-wf-inquiry__lead { margin: 0 0 12px; color: var(--wf-muted); line-height: 1.7; }
.isr-wf-inquiry__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.isr-wf-inquiry__form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.isr-wf-inquiry__form input, .isr-wf-inquiry__form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--wf-border); border-radius: 8px; background: #fff; min-width: 0; }
.isr-wf-inquiry__full, .isr-wf-inquiry__msg, .isr-wf-inquiry__submit { grid-column: 1 / -1; }
.isr-wf-inquiry__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.isr-wf-inquiry__msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.isr-wf-inquiry__msg.is-ok { background: #F0FDF4; color: #166534; }
.isr-wf-inquiry__msg.is-err { background: #FEF2F2; color: #B91C1C; }
@media (max-width: 600px) { .isr-wf-inquiry__form { grid-template-columns: 1fr; } }

/* Worker cards: the name is the link; ::after stretches it over the whole card */
.isr-wf-card { position: relative; }
.isr-wf-card__a { color: inherit; text-decoration: none; }
.isr-wf-card__a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.isr-wf-card__a:focus-visible { outline: none; }
.isr-wf-card__a:focus-visible::after { outline: 2px solid var(--wf-accent); outline-offset: 2px; border-radius: var(--wf-radius); }
