/* JobZapp help centre, uses app theme-client / theme-worker / theme-admin */
:root {
  --help-ink: #1e2a35;
  --help-muted: #5c6670;
  --help-line: rgba(30, 42, 53, 0.12);
  --help-bg: #f5f5f5;
  --help-card: #ffffff;
  --help-radius: 14px;
  --help-max: 1080px;
  /* Defaults match theme-client until a role class is applied */
  --romio-accent: #0d8ffa;
  --romio-accent-light: #ddf3fe;
  --help-role: var(--romio-accent);
  --help-role-soft: var(--romio-accent-light);
}

.jobzapp-help-page {
  margin: 0;
  min-height: 100vh;
  background: var(--help-bg);
  color: var(--help-ink);
  font-family: "Urbanist", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

/* Same tokens as style.css role themes */
.jobzapp-help-page.theme-client,
.jobzapp-help-card.theme-client {
  --romio-accent: #0d8ffa;
  --romio-accent-light: #ddf3fe;
  --romio-secondary-bg: #ddf3fe;
  --romio-secondary-border: #c5e6fe;
  --romio-secondary-text: #0d8ffa;
  --help-role: var(--romio-accent);
  --help-role-soft: var(--romio-accent-light);
}

.jobzapp-help-page.theme-worker,
.jobzapp-help-card.theme-worker {
  --romio-accent: #1e2a35;
  --romio-accent-light: #e8ecf0;
  --romio-secondary-bg: #e8ecf0;
  --romio-secondary-border: #d4dbe2;
  --romio-secondary-text: #1e2a35;
  --help-role: var(--romio-accent);
  --help-role-soft: var(--romio-accent-light);
}

.jobzapp-help-page.theme-admin,
.jobzapp-help-card.theme-admin {
  --romio-accent: #d770ad;
  --romio-accent-light: #f5e0ed;
  --romio-secondary-bg: #f5e0ed;
  --romio-secondary-border: #ebb7d6;
  --romio-secondary-text: #d770ad;
  --help-role: var(--romio-accent);
  --help-role-soft: var(--romio-accent-light);
}

.jobzapp-help-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--help-card);
  border-bottom: 1px solid var(--help-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.jobzapp-help-header a {
  color: var(--romio-accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.jobzapp-help-jobbot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  justify-self: start;
  grid-column: 1;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  width: 44px;
  height: 44px;
  margin-left: -4px;
}

.jobzapp-help-jobbot img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* JobBot: same off-screen mount + open pattern as the app / www */
#jobbot-root {
  position: fixed;
  right: 0;
  top: -80px;
  z-index: 999;
}

#jobbot-root df-messenger-chat-bubble {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

#jobbot-root.df-ready df-messenger,
#jobbot-root df-messenger {
  z-index: 999;
  --df-messenger-primary-color: #0d8ffa;
  --df-messenger-titlebar-border-bottom: 0;
  --df-messenger-titlebar-icon-height: 64px;
  --df-messenger-titlebar-icon-width: 64px;
  --df-messenger-titlebar-title-font-size: 18px;
  --df-messenger-titlebar-title-font-weight: 700;
  --df-messenger-font-color: #000;
  --df-messenger-font-family: "Urbanist", sans-serif;
  --df-messenger-chat-background: #f3f6fc;
  --df-messenger-message-user-background: #0d8ffa;
  --df-messenger-message-user-font-color: #fff;
  --df-messenger-message-bot-background: #fff;
}

.theme-worker #jobbot-root.df-ready df-messenger,
.theme-worker #jobbot-root df-messenger {
  --df-messenger-primary-color: #171717;
  --df-messenger-message-user-background: #171717;
}

.theme-admin #jobbot-root.df-ready df-messenger,
.theme-admin #jobbot-root df-messenger {
  --df-messenger-primary-color: #c164ff;
  --df-messenger-message-user-background: #c164ff;
}

.jobzapp-help-brand {
  grid-column: 2;
  justify-self: center;
  text-decoration: none;
  line-height: 0;
}

.jobzapp-help-logo {
  display: block;
  width: 140px;
  height: 44px;
  background: url(/img/logo.webp) no-repeat center center;
  background-size: contain;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.jobzapp-help-header-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  justify-self: end;
  grid-column: 3;
  min-width: 44px;
  min-height: 44px;
}

.jobzapp-help-hero {
  background: linear-gradient(145deg, #0c4a6e 0%, #0d8ffa 55%, #38bdf8 100%);
  color: #fff;
  padding: 2.5rem 1.25rem 2.75rem;
}

.theme-worker .jobzapp-help-hero {
  background: linear-gradient(145deg, #0f1419 0%, #1e2a35 48%, #3d4f5f 100%);
}

.theme-admin .jobzapp-help-hero {
  background: linear-gradient(145deg, #6b3a58 0%, #d770ad 52%, #ebb7d6 100%);
}

.jobzapp-help-hero-inner {
  max-width: var(--help-max);
  margin: 0 auto;
}

.jobzapp-help-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
}

.jobzapp-help-hero p {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  opacity: 0.9;
  line-height: 1.55;
}

.jobzapp-help-search {
  display: flex;
  gap: 0.5rem;
  max-width: 32rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
}

.jobzapp-help-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  outline: none;
  min-width: 0;
}

.jobzapp-help-search input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.jobzapp-help-search button {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--romio-accent, var(--help-ink));
  font-weight: 700;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.jobzapp-help-main {
  max-width: var(--help-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.jobzapp-help-main.theme-admin-wide,
.jobzapp-help-main.help-wide {
  max-width: var(--help-max);
}

.jobzapp-help-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .jobzapp-help-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.jobzapp-help-topics-btn {
  display: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--help-ink);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1;
}

.jobzapp-help-topics-btn i {
  font-size: 1.35rem;
}

.jobzapp-help-topics-btn:hover {
  background: rgba(30, 42, 53, 0.06);
  text-decoration: none;
}

.jobzapp-help-topics-btn[aria-expanded='true'] {
  background: rgba(30, 42, 53, 0.08);
}

.jobzapp-help-nav-backdrop {
  display: none;
}

.jobzapp-help-nav {
  background: var(--help-card);
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  padding: 1rem;
  position: sticky;
  top: 4.25rem;
}

.jobzapp-help-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.jobzapp-help-nav-head h2 {
  margin: 0;
}

.jobzapp-help-nav-close {
  display: none;
  appearance: none;
  margin: 0;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--help-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.jobzapp-help-nav-close:hover {
  color: var(--help-ink);
  background: rgba(30, 42, 53, 0.06);
}

.jobzapp-help-nav h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--help-muted);
  border: 0;
  padding: 0;
}

.jobzapp-help-nav-head h2 {
  margin: 0;
}

@media (max-width: 899px) {
  /* Without JS: keep Topics in flow (not sticky) so it scrolls away. */
  .jobzapp-help-nav {
    position: static;
    top: auto;
  }

  .jobzapp-help-topics-btn {
    display: none;
  }

  .jobzapp-help-has-drawer .jobzapp-help-topics-btn {
    display: inline-flex;
  }

  .jobzapp-help-has-drawer .jobzapp-help-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(30, 42, 53, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .jobzapp-help-has-drawer .jobzapp-help-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .jobzapp-help-has-drawer .jobzapp-help-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    z-index: 40;
    width: min(300px, 86vw);
    max-height: none;
    margin: 0;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    border: 0;
    border-left: 1px solid var(--help-line);
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(105%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }

  .jobzapp-help-has-drawer .jobzapp-help-nav.is-open {
    transform: translateX(0);
    box-shadow: -8px 0 28px rgba(30, 42, 53, 0.18);
  }

  .jobzapp-help-has-drawer .jobzapp-help-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
  }

  body.jobzapp-help-topics-open {
    overflow: hidden;
  }
}

.jobzapp-help-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jobzapp-help-nav a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: var(--help-ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.jobzapp-help-nav a:hover,
.jobzapp-help-nav a.is-active {
  background: var(--help-role-soft);
  color: var(--help-role);
  font-weight: 600;
}

.jobzapp-help-lead {
  color: var(--help-muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.jobzapp-help-main h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.jobzapp-help-main h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--help-line);
}

.jobzapp-help-main h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.jobzapp-help-main h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.jobzapp-help-main p,
.jobzapp-help-main li {
  line-height: 1.6;
}

.jobzapp-help-main ul,
.jobzapp-help-main ol {
  padding-left: 1.25rem;
}

.jobzapp-help-main a {
  color: var(--help-role, #0d8ffa);
  font-weight: 600;
  text-decoration: none;
}

.jobzapp-help-main a:hover,
.jobzapp-help-main a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Card links: border/shadow is the hover cue — do not underline icon + title + blurb. */
.jobzapp-help-main a.jobzapp-help-card:hover,
.jobzapp-help-main a.jobzapp-help-card:focus-visible,
.jobzapp-help-main a.jobzapp-help-chapter-card:hover,
.jobzapp-help-main a.jobzapp-help-chapter-card:focus-visible,
.jobzapp-help-main a.jobzapp-help-screen-link:hover,
.jobzapp-help-main a.jobzapp-help-screen-link:focus-visible {
  text-decoration: none;
}

/* UI/system terms: same weight whether linked or plain */
.jobzapp-help-main strong {
  font-weight: 700;
  color: inherit;
}

.jobzapp-help-main a strong {
  color: inherit;
  font-weight: 700;
}

.jobzapp-help-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .jobzapp-help-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .jobzapp-help-cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jobzapp-help-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--help-card);
  border: 1px solid var(--help-line);
  border-top: 4px solid var(--help-role, var(--romio-accent));
  border-radius: var(--help-radius);
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jobzapp-help-card:hover {
  border-color: var(--help-role, var(--romio-accent));
  border-top-color: var(--help-role, var(--romio-accent));
  box-shadow: 0 8px 24px rgba(30, 42, 53, 0.08);
}

.jobzapp-help-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.jobzapp-help-card p {
  margin: 0;
  color: var(--help-muted);
  font-size: 0.95rem;
}

.jobzapp-help-card .help-meta {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--help-role, var(--romio-accent));
}

.jobzapp-help-chapter-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .jobzapp-help-chapter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .jobzapp-help-chapter-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.jobzapp-help-chapter-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  background: var(--help-card);
  border: 1px solid var(--help-line);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.15rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jobzapp-help-chapter-card:hover {
  border-color: var(--help-role);
  box-shadow: 0 8px 22px rgba(30, 42, 53, 0.07);
}

.jobzapp-help-chapter-card > strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--help-muted);
}

.jobzapp-help-chapter-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--help-ink);
}

.jobzapp-help-screen-grid {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}

.jobzapp-help-screen-link {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--help-card);
  border: 1px solid var(--help-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jobzapp-help-screen-link:hover {
  border-color: var(--help-role);
  box-shadow: 0 6px 18px rgba(30, 42, 53, 0.06);
}

.jobzapp-help-screen-link-body {
  flex: 1;
  min-width: 0;
}

.jobzapp-help-screen-link-blurb {
  color: var(--help-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.jobzapp-help-screen-path {
  color: var(--help-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.jobzapp-help-placeholder {
  margin: 1.25rem 0;
  border: 2px dashed rgba(26, 31, 44, 0.18);
  border-radius: var(--help-radius);
  background: repeating-linear-gradient(
    -45deg,
    rgba(26, 31, 44, 0.03),
    rgba(26, 31, 44, 0.03) 10px,
    rgba(26, 31, 44, 0.06) 10px,
    rgba(26, 31, 44, 0.06) 20px
  );
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--help-muted);
}

.jobzapp-help-placeholder strong {
  color: var(--help-ink);
  display: block;
  margin-bottom: 0.35rem;
}

/* help placeholder filled image */
.jobzapp-help-placeholder.has-screen {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--help-radius);
}
.jobzapp-help-placeholder.has-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--help-radius);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}


.jobzapp-help-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  color: #fff !important;
}

.jobzapp-help-badge.bg-yellow-dark,
.help-chip.bg-yellow-dark,
.help-status-pill.bg-yellow-dark {
  color: #1e2a35 !important;
}

.jobzapp-help-h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--help-line);
}

.jobzapp-help-main > .jobzapp-help-h2:first-of-type,
.jobzapp-help-layout .jobzapp-help-h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.jobzapp-help-steps {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
  border: 1px solid var(--help-line);
  border-radius: 14px;
  background: var(--help-card);
  overflow: hidden;
}

.jobzapp-help-flow-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.75rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 560px) {
  .jobzapp-help-flow-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .jobzapp-help-flow-grid {
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  }
}

.jobzapp-help-flow-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 1.05rem 1rem 1.15rem;
  border-radius: 14px;
  background: var(--help-card);
  border: 1px solid var(--help-line);
}

.jobzapp-help-flow-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--help-role-soft, var(--romio-accent-light));
  color: var(--help-role, var(--romio-accent));
  font-size: 1rem;
}

.jobzapp-help-flow-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--help-ink);
}

.jobzapp-help-flow-text {
  margin: 0;
  margin-top: auto;
  padding-top: 0.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--help-muted);
}

.jobzapp-help-step,
.jobzapp-help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
  padding: 0.95rem 1.1rem;
  margin: 0;
  list-style: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--help-line);
  border-radius: 0;
}

.jobzapp-help-step:last-child,
.jobzapp-help-steps li:last-child {
  border-bottom: 0;
}

.jobzapp-help-step-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--help-role, var(--romio-accent));
  background: var(--help-role-soft, var(--romio-accent-light));
}

.jobzapp-help-step-body {
  flex: 1;
  min-width: 0;
}

.jobzapp-help-step-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--help-ink);
  margin: 0 0 0.2rem;
  line-height: 1.35;
}

.jobzapp-help-step-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--help-muted);
}

.jobzapp-help-main .jobzapp-help-steps {
  padding-left: 0;
}

.jobzapp-help-intro {
  margin: 0.65rem 0 0;
  color: var(--help-ink);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42rem;
}

.jobzapp-help-intro + .jobzapp-help-intro {
  margin-top: 0.75rem;
}

.jobzapp-help-note {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--help-card);
  border: 1px solid var(--help-line);
}

.jobzapp-help-note-head {
  margin-bottom: 0.45rem;
}

.jobzapp-help-note-head strong {
  font-size: 0.95rem;
}

.jobzapp-help-note-p {
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--help-muted);
}

.jobzapp-help-note-p:last-child {
  margin-bottom: 0;
}

/* Real-life example cards (person portrait + scenario) */
.help-example-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 1.15rem 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--help-role-soft, #ddf3fe);
  border: 1px solid rgba(13, 143, 250, 0.22);
  border-color: color-mix(in srgb, var(--help-role, #0d8ffa) 22%, transparent);
  max-width: 42rem;
}

.help-example-card-media {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--help-card);
  border: 2px solid var(--help-card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--help-role, #0d8ffa) 28%, transparent);
}

.help-example-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.help-example-card-body {
  min-width: 0;
  flex: 1 1 auto;
}

.help-example-card-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--help-role, #0d8ffa);
}

.help-example-card-who {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--help-ink);
}

.help-example-card-who strong {
  font-weight: 700;
}

.help-example-card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--help-muted);
}

.theme-worker .help-example-card {
  background: #eef1f4;
  border-color: rgba(30, 42, 53, 0.14);
}

.theme-worker .help-example-card-label {
  color: #1e2a35;
}

.theme-worker .help-example-card-media {
  box-shadow: 0 0 0 1px rgba(30, 42, 53, 0.18);
}

@media (max-width: 480px) {
  .help-example-card {
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .help-example-card-media {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* App-matching status colour backgrounds (same tokens as style.css bg-*) */
.bg-gray-dark { background-color: #77838e !important; }
.bg-red-dark { background-color: #ff4b4b !important; }
.bg-red-light { background-color: #ff9393 !important; }
.bg-purple-dark { background-color: #c164ff !important; }
.bg-yellow-dark { background-color: #FFCE54 !important; }
.bg-night-dark { background-color: #3F51B5 !important; }
.bg-orange-dark { background-color: #cc7800 !important; }
.bg-orange-light { background-color: #ff9600 !important; }
.bg-green-dark { background-color: #3e9c35 !important; }
.bg-green-light { background-color: #A0D468 !important; }
.bg-grass-dark { background-color: #58cc02 !important; }
.bg-blue-light { background-color: #0d8ffa !important; }
.bg-mint-dark { background-color: #168118 !important; }
.bg-pink-dark { background-color: #D770AD !important; }
.bg-pink-light { background-color: #ebb7d6 !important; }

.help-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff !important;
  font-size: 0.85rem;
  line-height: 1;
}

.help-chip.bg-pink-light {
  color: #6b2a52 !important;
}

.jobzapp-help-related ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.jobzapp-help-related a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: var(--help-card);
  border: 1px solid var(--help-line);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.jobzapp-help-related a:hover {
  border-color: var(--help-role);
  background: var(--help-role-soft);
}

.jobzapp-help-related a::before {
  content: "";
  display: none;
}

.jobzapp-help-path {
  color: var(--help-muted);
  font-size: 0.9rem;
  margin: -0.5rem 0 1rem;
}

.jobzapp-help-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--help-line);
  color: var(--help-muted);
  font-size: 0.95rem;
}

.jobzapp-help-hidden {
  display: none !important;
}

.jobzapp-help-search-empty {
  display: none;
  padding: 1.5rem;
  text-align: center;
  color: var(--help-muted);
  background: var(--help-card);
  border-radius: var(--help-radius);
  border: 1px solid var(--help-line);
}

.jobzapp-help-search-empty.is-visible {
  display: block;
}

.jobzapp-help-main code {
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.jobzapp-help-toc {
  background: var(--help-card);
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  padding: 1rem 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
}

.jobzapp-help-toc ul {
  margin: 0;
  columns: 1;
}

@media (min-width: 640px) {
  .jobzapp-help-toc ul {
    columns: 2;
  }
}

/* Status enum tables (ClientStatus / WorkerStatus / JobStatus / WorkStatus) */
.help-status-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--help-line);
  background: var(--help-card);
  -webkit-overflow-scrolling: touch;
}

.help-status-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.92rem;
}

.help-status-table th,
.help-status-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--help-line);
}

.help-status-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--help-muted);
  background: rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
}

.help-status-table tr:last-child td {
  border-bottom: 0;
}

.help-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
}

.help-status-pill .fa {
  font-size: 0.85rem;
}

/* Yellow badge: dark text for contrast (matches readability on bright yellow) */
.help-status-pill[style*="#FFCE54"] {
  color: #1e2a35 !important;
}

.help-status-welcome {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--help-muted);
  line-height: 1.35;
  font-style: italic;
}

@media (max-width: 640px) {
  .help-status-table {
    min-width: 0;
    font-size: 0.88rem;
  }

  .help-status-table thead {
    display: none;
  }

  .help-status-table,
  .help-status-table tbody,
  .help-status-table tr,
  .help-status-table td {
    display: block;
    width: 100%;
  }

  .help-status-table tr {
    padding: 0.85rem;
    border-bottom: 1px solid var(--help-line);
  }

  .help-status-table tr:last-child {
    border-bottom: 0;
  }

  .help-status-table td {
    border: 0;
    padding: 0.25rem 0;
  }

  .help-status-table td:nth-child(2)::before,
  .help-status-table td:nth-child(3)::before {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--help-muted);
    margin-bottom: 0.15rem;
  }

  .help-status-table td:nth-child(2)::before {
    content: "Means";
  }

  .help-status-table td:nth-child(3)::before {
    content: "What you can do";
  }
}

/* In-app slider storyboards (small images + arrows) */
.help-storyboard {
  margin: 0.5rem 0 1.75rem;
}

.help-storyboard-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.help-storyboard-card {
  flex: 0 0 auto;
  width: 9.5rem;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}

.help-storyboard-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--help-line);
  background: var(--help-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  aspect-ratio: 3 / 2;
  position: relative;
}

.help-storyboard-wrong {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #e55353;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.help-storyboard-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.help-storyboard-card figcaption {
  margin-top: 0.55rem;
  padding: 0 0.15rem;
}

.help-storyboard-card figcaption strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--help-ink);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.help-storyboard-card figcaption span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--help-muted);
}

.help-storyboard-arrow {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--romio-accent, #0d9488);
  opacity: 0.85;
}

.help-storyboard-arrow .fa {
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .help-storyboard-track {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .help-storyboard-card {
    width: 10.5rem;
  }
}

/* Related topic links */
.jobzapp-help-related {
  margin: 1.5rem 0 0.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--help-line);
  background: var(--help-card);
}

.jobzapp-help-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.jobzapp-help-related a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--romio-accent, #0d9488);
}

/* Related pills already use font-weight 600; nested <strong> from UI-term
   markup must not pick up heading styles (block / uppercase / smaller). */
.jobzapp-help-related a strong {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  vertical-align: baseline;
  margin: 0;
}

.jobzapp-help-related a:hover {
  text-decoration: underline;
}

.jobzapp-help-tour-cta {
  margin: 1rem 0 1.25rem;
}

.jobzapp-help-tour-cta .next-btn-free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  color: #fff;
  background: var(--romio-accent, #0d8ffa);
  border: 2px solid var(--romio-accent, #0d8ffa);
}

.theme-worker .jobzapp-help-tour-cta .next-btn-free {
  background: #1e2a35;
  border-color: #1e2a35;
}

.jobzapp-help-tour-cta .next-btn-free:hover {
  opacity: 0.92;
  text-decoration: none;
  color: #fff;
}
