/* /listings-app/public/assets/help.css */

:root {
  --help-bg: var(--bg, #f3f4f6);
  --help-surface: var(--card, #ffffff);
  --help-surface-soft: #f8fafc;
  --help-border: var(--border, #e5e7eb);
  --help-text: var(--ink, #111827);
  --help-muted: var(--muted, #6b7280);
  --help-link: #1d4ed8;
  --help-link-strong: #1e40af;
  --help-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --help-radius-lg: 24px;
  --help-radius-md: 18px;
  --help-radius-sm: 14px;
  --help-max: 1120px;

  --help-accent: #2563eb;
  --help-accent-strong: #1d4ed8;
  --help-accent-soft: #eff6ff;
  --help-accent-soft-2: #f5f9ff;
  --help-accent-border: rgba(37, 99, 235, 0.14);
  --help-accent-border-strong: rgba(37, 99, 235, 0.18);
  --help-accent-background: rgba(37, 99, 235, 0.08);
  --help-body-background: rgba(37, 99, 235, 0.04);
  --help-accent-hover: rgba(37, 99, 235, 0.10);
  --help-accent-text: #0c41b5;

  --help-accent-studiocard: #6725eb;
  --help-accent-strong-studiocard: #5718d4;
  --help-accent-soft-studiocard: #f3edff;
  --help-accent-soft-2-studiocard: #f8f5ff;
  --help-accent-border-studiocard: rgba(103, 37, 235, 0.14);
  --help-accent-border-strong-studiocard: rgba(103, 37, 235, 0.20);
  --help-accent-background-studiocard: rgba(103, 37, 235, 0.08);
  --help-body-background-studiocard: rgba(103, 37, 235, 0.04);
  --help-accent-hover-studiocard: rgba(103, 37, 235, 0.12);
  --help-accent-text-studiocard: #4a16b8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.help-body {
  margin: 0;
  background: var(--help-bg);
  color: var(--help-text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

/* =========================================================
   Legacy help styles
   ========================================================= */

.help-page__header {
  padding: 40px 20px 16px;
}

.help-page__content {
  padding: 0 20px 48px;
}

.help-page__inner {
  width: min(100%, var(--help-max));
  margin: 0 auto;
}

.help-page__inner--narrow {
  width: min(100%, 980px);
}

.help-page__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--help-muted);
}

.help-page__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.help-grid {
  display: grid;
  gap: 18px;
}

.help-card {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius-lg);
  box-shadow: var(--help-shadow);
  padding: 22px;
}

.help-card--intro {
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.help-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.help-card__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

.help-card__body {
  color: var(--help-muted);
  font-size: 16px;
}

.help-card__back {
  flex: 0 0 auto;
  color: var(--help-link);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.help-card__back:hover,
.help-card__nav-link:hover {
  color: var(--help-link-strong);
  text-decoration: underline;
}

.help-card__nav {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--help-border);
}

.help-card__nav-title {
  margin: 0 0 10px;
  font-size: 16px;
}

.help-card__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.help-card__nav-item {
  margin: 0;
}

.help-card__nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--help-radius-sm);
  background: var(--help-surface-soft);
  color: var(--help-text);
  text-decoration: none;
  border: 1px solid var(--help-border);
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.help-card__nav-link:hover {
  border-color: var(--help-accent-border-strong);
  background: #ffffff;
  transform: translateY(-1px);
}

/* =========================================================
   Help toggle
   ========================================================= */

.help-toggle {
  position: relative;
  margin: 18px 0 24px;
  overflow: hidden;
}

.help-toggle__button {
  appearance: none;
  border: 1px solid var(--help-accent-border);
  border-radius: 50px;
  background: var(--help-accent-background);
  color: inherit;
  text-align: start;
  cursor: pointer;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  font-weight: 700;
}

html[lang="he"] .help-toggle__button {
  border: none;
}

.help-toggle__button:hover {
  background: var(--help-accent-hover);
}

.studio-card .help-toggle__button {
  border: 1px solid var(--help-accent-border-studiocard);
  background: var(--help-accent-background-studiocard);
}

.studio-card .help-toggle__button:hover {
  background: var(--help-accent-hover-studiocard);
}

.help-toggle__title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--help-accent-text);
}

.studio-card .help-toggle__title {
  color: var(--help-accent-text-studiocard);
}

html[lang="he"] .help-toggle__title {
  font-size: 15px;
}

.help-toggle__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--help-accent);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.studio-card .help-toggle__icon {
  color: var(--help-accent-studiocard);
}

.help-toggle__panel {
  border-top: 1px solid rgba(37, 99, 235, 0.08);
}

.help-toggle__content {
  padding: 20px 24px 20px;
  color: #475569;
  font-size: 15px;
}

/* RTL */

[dir="rtl"] .help-toggle__button,
[dir="rtl"] .help-card__header {
  text-align: right;
}

/* =========================================================
   Structured help body
   ========================================================= */

.info-body-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 10px;
  border-left: 5px solid var(--help-accent);
}

.studio-card .info-body-list {
  border-left: 5px solid var(--help-accent-studiocard);
}

html[lang="he"] .info-body-list {
  border-left: none;
  border-right: 5px solid var(--help-accent);
  padding-left: 0;
  padding-right: 10px;
}

html[lang="he"] .studio-card .info-body-list {
  border-right: 5px solid var(--help-accent-studiocard);
}

.info-body-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--help-accent-border-strong);
  background: var(--help-body-background);
}

.studio-card .info-body-row {
  border-bottom: 1px solid var(--help-accent-border-strong-studiocard);
  background: var(--help-body-background-studiocard);
}

.info-body-expl {
  flex: 1 1 auto;
  color: #1e293b;
  line-height: 1.45;
  font-size: 15px;
}

html[lang="he"] .info-body-expl {
  font-size: 16px;
}

.info-body-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--help-accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.16);
  white-space: nowrap;
}

.studio-card .info-body-action {
  background: var(--help-accent-soft-studiocard);
  border: 1px solid rgba(103, 37, 235, 0.16);
}

.info-body-action-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--help-accent-strong);
}

.studio-card .info-body-action-label {
  color: var(--help-accent-strong-studiocard);
}

html[lang="he"] .info-body-action-label {
  font-size: 13px;
}

.info-body-action-value {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

html[lang="he"] .info-body-action-value {
  font-size: 14px;
}

.studio-card .help-toggle {
  margin-right: 0;
}

/* =========================================================
   New Help Hub layout
   ========================================================= */

.help-hub-page .help-page__content.help-hub__content {
  padding-top: 24px;
}

.help-hub {
  min-height: calc(100vh - 120px);
}

.help-hub__top {
  display: grid;
  gap: 75px;
  margin-top: 24px;
}

.help-hub__overlay-top {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  margin: 0 auto;
  direction: ltr;
}

.help-hub__hero {
  display: grid;
  justify-items: center;
  gap: 50px;
  text-align: center;
}

.help-hub__hero-title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0f172a;
}

.help-hub__roles {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  padding: 30px;
  background: #ffffff;
  border: 0;
  border-radius: 50px;
  box-shadow: none;
}

.help-hub__role {
  appearance: none;
  border: 0;
  background: var(--help-accent-background);
  color: var(--help-muted);
  cursor: default;
  font: inherit;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  padding: 10px 30px;
  border-radius: 50px;
  transition: none;
}

.help-hub__role:hover {
  background: transparent;
  color: var(--help-muted);
}

.help-hub__section-title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: #111827;
}

/* =========================================================
   Help Hub attached tabs
   ========================================================= */

.help-hub__nav{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  margin-bottom: 0;
  align-items: end;
}

.help-hub__nav-card{
  appearance: none;
  position: relative;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-bottom-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  padding: 0 20px;
  min-height: 126px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
  margin-bottom: 10px;	
}

html[lang="he"] .help-hub__nav-card{
  text-align: right;
}

.help-hub__nav-card:hover{
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
  border-color: rgba(37, 99, 235, 0.24);
  transform: translateY(-2px);
}

.help-hub__nav-card.is-active{
  background: #ffffff;
  border-color: var(--help-border);
  border-bottom-color: #ffffff;
  border-radius: 18px 18px 0 0;
  z-index: 3;
  transform: translateY(1px);
  margin-bottom: 0;
}

.help-hub__nav-title{
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #1d4ed8;
}

html[lang="he"] .help-hub__nav-title{
  font-size: 30px;
}

.help-hub__nav-subtitle{
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: #64748b;
}

.help-hub__nav-card.is-active .help-hub__nav-title{
  color: #0f172a;
}

.help-hub__nav-card.is-active .help-hub__nav-subtitle{
  color: #475569;
}

.help-hub__panels{
  position: relative;
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: 0 0 22px 22px;
  box-shadow: var(--help-shadow);
  padding: 22px;
  margin-top: -1px;
  z-index: 1;
}

.help-hub__panel{
  display: none;
}

.help-hub__panel.is-active{
  display: block;
}

.help-hub__stack {
  display: grid;
  gap: 16px;
}

.help-hub-card {
  background: var(--help-body-background);
  border-radius: 16px;
  padding: 22px;
}

.help-hub-card__header {
  margin-bottom: 12px;
}

.help-hub-card__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

html[lang="he"] .help-hub-card__title {
  font-size: 24px;
  font-weight: 600;
}

.help-hub-card__body {
  margin: 0;
  color: var(--help-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   FAQ intro
   ========================================================= */

.help-hub__faq-intro {
  margin-top: 30px;
  margin-bottom: 18px;
}

.help-hub__faq-heading {
  margin: 70px 0 6px 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.help-hub__faq-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--help-muted);
}

/* =========================================================
   FAQ section blocks
   ========================================================= */

.help-hub__faq {
  display: grid;
  gap: 18px;
}

.help-hub-faq__section {
  background: #ffffff;
  border: 1px solid var(--help-accent-border);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding: 20px;
}

.help-hub-faq__section-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--help-border);
}

.help-hub-faq__section-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
}

.help-hub-faq__section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--help-muted);
}

.help-hub-faq__list {
  display: grid;
  gap: 12px;
}

/* =========================================================
   FAQ items
   ========================================================= */

.help-hub-faq__item {
  background: #ffffff;
  border: 1px solid var(--help-accent-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.help-hub-faq__item:hover {
  border-color: var(--help-accent-border-strong);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

.help-hub-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--help-body-background);
  border: 0;
  cursor: pointer;
  text-align: start;
  font: inherit;
  color: inherit;
}

.help-hub-faq__trigger:focus-visible {
  outline: 2px solid var(--help-accent);
  outline-offset: -2px;
}

.help-hub-faq__question {
  display: block;
  flex: 1 1 auto;
  font-size: 0.99rem;
  line-height: 1.55;
  font-weight: 600;
  color: #111827;
}

.help-hub-faq__trigger .help-toggle__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--help-accent-soft);
  color: var(--help-accent);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.help-hub-faq__panel {
  padding: 18px;
}

.help-hub-faq__answer {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
}

/* RTL */

[dir="rtl"] .help-hub-faq__trigger,
[dir="rtl"] .help-hub-faq__question,
[dir="rtl"] .help-hub-faq__answer,
[dir="rtl"] .help-hub-faq__section-header,
[dir="rtl"] .help-hub__faq-intro {
  text-align: right;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .help-hub__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .help-page__header {
    padding: 28px 14px 10px;
  }

  .help-page__content {
    padding: 0 14px 28px;
  }

  .help-card {
    padding: 18px;
    border-radius: 20px;
  }

  .help-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-card__nav-list {
    grid-template-columns: 1fr;
  }

  .help-toggle__button,
  .help-toggle__content {
    padding-inline: 16px;
  }

  .help-toggle__button {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .info-body-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .info-body-action {
    align-self: flex-start;
    white-space: normal;
  }

  .help-toggle__title {
    font-size: 13px;
  }

  .help-toggle__icon {
    font-size: 14px;
  }

  html[lang="he"] .help-toggle__title {
    font-size: 13px;
  }

  html[lang="he"] .help-toggle__icon {
    font-size: 14px;
  }

  .info-body-expl {
    font-size: 12px;
  }

  html[lang="he"] .info-body-expl {
    font-size: 12px;
  }

  .info-body-action-label {
    font-size: 10px;
  }

  html[lang="he"] .info-body-action-label {
    font-size: 10px;
  }

  .info-body-action-value {
    font-size: 11px;
  }

  html[lang="he"] .info-body-action-value {
    font-size: 11px;
  }

  .help-hub-page .help-page__content.help-hub__content {
    padding-top: 16px;
  }
  
  .help-hub__top .overlay-block.overlay-top {
    transform: scale(.9);
  }
  
  html[lang="he"] .help-hub__top .top-right-content {
    width: 130px;
  }

  .help-hub__top {
    gap: 30px;
    margin-top: 10px;
  }

  .help-hub__hero {
    gap: 20px;
    padding: 0 20px;
  }

  .help-hub__hero-title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .help-hub__roles {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
  }

  .help-hub__role {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 10px 18px;
  }

  .help-hub__section-title {
    font-size: 20px;
    margin: 30px 0 0 0;
  }

  .help-hub__nav {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .help-hub__nav-card {
    min-height: auto;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 0;
  }
  
  .help-hub__nav-card.is-active {
    border-radius: 18px;
  }

  .help-hub__nav-title {
    font-size: 18px;
  }
  
  html[lang="he"] .help-hub__nav-title {
    font-size: 20px;
}

  .help-hub__nav-subtitle {
    font-size: 13px;
  }

  .help-hub__panels {
    padding: 14px;
    border-radius: 22px;
  }

  .help-hub__stack {
    gap: 12px;
  }

  .help-hub-card {
    padding: 16px;
    border-radius: 18px;
  }

  .help-hub-card__title {
    font-size: 20px;
  }
  
  html[lang="he"] .help-hub-card__title {
    font-size: 20px;
  }

  .help-hub-card__body {
    font-size: 14px;
  }

  .help-hub__faq-intro {
    margin-top: 24px;
    margin-bottom: 14px;
  }

  .help-hub__faq-heading {
    font-size: 1.35rem;
  }

  .help-hub__faq-lead {
    font-size: 0.92rem;
  }

  .help-hub__faq {
    gap: 14px;
  }

  .help-hub-faq__section {
    padding: 16px;
    border-radius: 18px;
  }

  .help-hub-faq__section-title {
    font-size: 1.05rem;
  }

  .help-hub-faq__section-subtitle {
    font-size: 0.9rem;
  }

  .help-hub-faq__trigger {
    padding: 14px;
    gap: 10px;
  }

  .help-hub-faq__question {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .help-hub-faq__panel {
    padding: 0 14px 14px;
  }

  .help-hub-faq__trigger .help-toggle__icon {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }
}