/* Help center flow — Figma nodes 117:18722, 117:19168, 117:19329, 117:19479 */
.help-page {
  --help-line: rgba(27, 67, 50, 0.14);
  --help-muted: rgba(27, 67, 50, 0.65);
  min-height: 100vh;
  background: var(--surface);
}

.help-page [hidden] { display: none !important; }
.help-page button,
.help-page input { font-family: var(--font-body); }
.help-page button:focus-visible,
.help-page a:focus-visible,
.help-page input:focus-visible {
  outline: 3px solid rgba(212, 134, 11, 0.3);
  outline-offset: 3px;
}

.help-app { min-height: 100vh; }
.help-header { height: 72px; padding-inline: 32px; }
.help-header .dashboard-header-title h1 { font-size: 20px; line-height: 29px; }
.help-header .dashboard-header-title p { font-size: 12px; line-height: 18px; }

.help-main {
  width: 100%;
  max-width: 1120px;
  min-height: calc(100vh - 72px);
  margin-inline: auto;
  padding: 24px 32px 88px;
}

.help-hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: 448px minmax(0, 576px);
  align-items: center;
  justify-content: end;
  gap: 32px;
  padding-block: 32px;
  direction: ltr;
}

.help-hero > * { direction: rtl; }
.help-hero-image-wrap {
  position: relative;
  width: 448px;
  height: 280px;
  overflow: hidden;
  background: var(--canvas);
  border-radius: 24px;
}

.help-hero-image-wrap > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.help-hero-image-wrap > span {
  position: absolute;
  bottom: 7px;
  left: 8px;
  padding: 2px 5px;
  color: rgba(255,255,255,.86);
  background: rgba(0,0,0,.58);
  border-radius: 2px;
  font-size: 7px;
  line-height: 10px;
  direction: ltr;
}

.help-hero-copy { min-width: 0; text-align: right; }
.help-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.help-hero-copy h2 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
}

.help-hero-copy > p {
  margin: 9px 0 18px;
  color: rgba(27, 67, 50, 0.7);
  font-size: 16px;
  line-height: 29px;
}

.help-search-form {
  position: relative;
  width: min(460px, 100%);
  height: 54px;
  margin-left: auto;
}

.help-search-form input {
  width: 100%;
  height: 54px;
  padding: 0 49px 0 17px;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid rgba(27, 67, 50, 0.18);
  border-radius: 16px;
  outline: 0;
  font-size: 16px;
  text-align: right;
}

.help-search-form input::placeholder { color: rgba(27, 67, 50, 0.42); }
.help-search-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,67,50,.08); }
.help-search-form button {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.help-search-form button img { width: 19px; height: 19px; object-fit: contain; opacity: .58; }
.help-hero-copy > small { display: block; margin-top: 10px; color: rgba(27, 67, 50, 0.55); font-size: 12px; line-height: 18px; }

.help-home-content {
  width: min(1000px, 100%);
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-right: 0;
}

.help-section { width: 100%; }
.help-section-heading { margin-bottom: 16px; text-align: right; }
.help-section-heading h2 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}
.help-section-heading p { margin: 1px 0 0; color: rgba(27, 67, 50, 0.6); font-size: 13px; line-height: 20px; }

.help-start-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--help-line);
  border-radius: 18px;
  list-style: none;
}

.help-start-list li {
  min-height: 70px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(27,67,50,.08);
}
.help-start-list li:last-child { border-bottom: 0; }
.help-step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--canvas);
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
.help-start-list strong,
.help-start-list small { display: block; text-align: right; }
.help-start-list strong { color: var(--brand); font-size: 15px; line-height: 23px; }
.help-start-list small { color: rgba(27,67,50,.6); font-size: 12px; line-height: 19px; }
.help-row-actions { display: flex; gap: 12px; direction: ltr; }
.help-row-actions a,
.help-common-list article > div:last-child a {
  min-width: 82px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.help-row-actions a.is-primary,
.help-common-list article > div:last-child a.is-primary { color: var(--surface); background: var(--brand); }

.help-services-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.help-service-list { display: flex; flex-direction: column; gap: 8px; }
.help-service-list button {
  width: 100%;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 16px;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid rgba(27,67,50,.13);
  border-radius: 15px;
  text-align: right;
}
.help-service-list button.is-active { background: var(--canvas); border-color: var(--brand); }
.help-service-list strong { font-size: 14px; line-height: 21px; }
.help-service-list small { color: rgba(27,67,50,.58); font-size: 10px; line-height: 16px; }
.help-service-feature {
  min-height: 287px;
  padding: 28px 32px;
  text-align: right;
  background: var(--surface);
  border: 1px solid rgba(27,67,50,.13);
  border-radius: 18px;
}
.help-service-feature > span {
  display: inline-block;
  padding: 7px 12px;
  color: var(--gold);
  background: #fff2dc;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.help-service-feature h3 { margin: 20px 0 8px; color: var(--brand); font-family: var(--font-display); font-size: 22px; line-height: 32px; }
.help-service-feature > p { margin: 0; color: rgba(27,67,50,.62); font-size: 13px; line-height: 22px; }
.help-service-feature nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.help-service-feature nav a { padding: 6px 10px; color: var(--brand); border-bottom: 1px solid var(--brand); border-radius: 8px; font-size: 12px; line-height: 18px; }

.help-common-list { overflow: hidden; border: 1px solid var(--help-line); border-radius: 18px; }
.help-common-list article {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 20px;
  background: var(--surface);
}
.help-common-list article:nth-child(even) { background: var(--canvas); }
.help-common-list strong,
.help-common-list small { display: block; text-align: right; }
.help-common-list strong { color: var(--brand); font-size: 14px; line-height: 22px; }
.help-common-list small { color: rgba(27,67,50,.56); font-size: 11px; line-height: 18px; }
.help-common-list article > div:last-child { display: flex; gap: 10px; direction: ltr; }
.help-common-list article > div:last-child a { min-width: 50px; min-height: 34px; padding-inline: 12px; }

.help-problem-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.help-problem-grid article {
  min-height: 125px;
  padding: 16px;
  background: #fffaf7;
  border: 1px solid rgba(207,78,36,.24);
  border-radius: 16px;
  text-align: right;
}
.help-problem-grid h3 { margin: 0 0 6px; color: var(--brand); font-size: 13px; line-height: 21px; }
.help-problem-grid p { margin: 0 0 8px; color: rgba(27,67,50,.56); font-size: 10px; line-height: 17px; }
.help-problem-grid a { color: var(--accent); font-size: 10px; font-weight: 700; line-height: 16px; }

.help-faq-list { display: flex; flex-direction: column; gap: 8px; }
.help-faq-list article { overflow: hidden; border: 1px solid rgba(27,67,50,.13); border-radius: 14px; }
.help-faq-list button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: var(--brand);
  background: var(--surface);
  border: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.help-faq-list button i {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-right: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.help-faq-list article.is-open button i { transform: rotate(225deg); }
.help-faq-list article > div { max-height: 0; overflow: hidden; transition: max-height .24s ease; }
.help-faq-list article.is-open > div { max-height: 120px; }
.help-faq-list article p { margin: 0; padding: 0 18px 14px; color: var(--help-muted); font-size: 12px; line-height: 21px; }

.help-contact {
  min-height: 154px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--canvas);
  border-radius: 18px;
  text-align: right;
}
.help-contact h2 { margin: 0 0 4px; color: var(--brand); font-family: var(--font-display); font-size: 20px; line-height: 30px; }
.help-contact p { margin: 0; color: rgba(27,67,50,.62); font-size: 12px; line-height: 20px; }
.help-contact div > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.help-contact span { padding: 4px 8px; color: rgba(27,67,50,.68); background: var(--surface); border: 1px solid rgba(27,67,50,.12); border-radius: 999px; font-size: 10px; }
.help-contact small { display: block; margin-top: 6px; color: var(--accent); font-size: 10px; }
.help-contact > a { min-width: 112px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--surface); background: var(--brand); border-radius: 12px; font-size: 14px; font-weight: 600; }

.help-legal { padding-top: 24px; border-top: 1px solid rgba(27,67,50,.08); text-align: right; }
.help-legal h2 { margin: 0 0 8px; color: var(--brand); font-size: 14px; line-height: 22px; }
.help-legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
.help-legal a { color: var(--brand); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

/* Results and no-results states */
.help-results { width: min(1000px, 100%); margin-right: 0; }
.help-results > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.help-results h2 { margin: 0; color: var(--brand); font-family: var(--font-display); font-size: 24px; line-height: 36px; }
.help-results header button {
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 700;
}
.help-result-list { display: flex; flex-direction: column; gap: 8px; }
.help-result-card {
  width: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 17px 20px;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid rgba(27,67,50,.12);
  border-radius: 16px;
  text-align: right;
}
.help-result-card:hover { color: var(--brand); border-color: rgba(27,67,50,.34); box-shadow: 0 10px 24px rgba(27,67,50,.06); }
.help-result-card strong { font-size: 16px; line-height: 24px; }
.help-result-card span { margin-top: 3px; color: rgba(27,67,50,.65); font-size: 14px; line-height: 23px; }
.help-result-card small { margin-top: 4px; color: rgba(27,67,50,.5); font-size: 12px; line-height: 18px; }
.help-empty-result {
  width: 600px;
  max-width: 100%;
  min-height: 182px;
  margin-right: 0;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid rgba(27,67,50,.14);
  border-radius: 18px;
  text-align: right;
}
.help-empty-result h3 { margin: 0; color: var(--brand); font-family: var(--font-display); font-size: 22px; line-height: 34px; }
.help-empty-result p { margin: 2px 0 16px; color: rgba(27,67,50,.62); font-size: 13px; line-height: 22px; }
.help-empty-result div { display: flex; align-items: center; gap: 18px; }
.help-empty-result button { min-width: 124px; min-height: 48px; padding: 0 20px; color: var(--brand); background: var(--surface); border: 1px solid var(--brand); border-radius: 12px; font-size: 14px; }
.help-empty-result a { color: var(--brand); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

/* Article */
.article-app { min-height: 100vh; }
.article-header .dashboard-header-title { max-width: 440px; }
.article-header-actions { gap: 16px; }
.article-back {
  min-width: 196px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: 12px;
  font-size: 14px;
}
.help-article-main {
  width: 100%;
  max-width: 1204px;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 880px);
  align-items: start;
  gap: 24px;
  margin-inline: auto;
  padding: 24px 32px 88px;
  direction: ltr;
}
.help-article-main > * { direction: rtl; }
.article-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  border: 1px solid rgba(27,67,50,.14);
  border-radius: 20px;
  text-align: right;
}
.article-toc strong { margin-bottom: 2px; color: rgba(27,67,50,.6); font-size: 14px; }
.article-toc a { padding: 8px 0; color: var(--brand); font-size: 14px; line-height: 21px; }
.article-content { min-width: 0; display: flex; flex-direction: column; gap: 32px; text-align: right; }
.article-title-block { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.article-title-block > span { padding: 8px 16px; color: var(--brand); background: rgba(27,67,50,.1); border-radius: 999px; font-size: 12px; font-weight: 700; }
.article-title-block h2 { margin: 0; color: var(--brand); font-family: var(--font-display); font-size: 32px; line-height: 45px; }
.article-title-block p { margin: 0; color: rgba(27,67,50,.72); font-size: 16px; line-height: 29px; }
.article-before { padding: 24px; background: var(--canvas); border-radius: 16px; }
.article-before h3 { margin: 0 0 8px; color: rgba(27,67,50,.6); font-size: 14px; line-height: 22px; }
.article-before p { margin: 0; color: var(--brand); font-size: 14px; line-height: 26px; }
.article-steps h3,
.article-after h3,
.article-related h3 { margin: 0 0 24px; color: var(--brand); font-family: var(--font-display); font-size: 20px; line-height: 30px; }
.article-steps ol { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.article-steps li { display: flex; align-items: flex-start; gap: 16px; }
.article-steps li > span { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; color: var(--gold); background: var(--canvas); border-radius: 9px; font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.article-steps strong { display: block; color: var(--brand); font-size: 16px; line-height: 24px; }
.article-steps p { margin: 2px 0 0; color: rgba(27,67,50,.7); font-size: 14px; line-height: 25px; }
.article-warning { padding: 18px 24px; background: #fffaf7; border: 1px solid rgba(207,78,36,.36); border-radius: 16px; }
.article-warning strong { color: var(--accent); font-size: 14px; line-height: 22px; }
.article-warning p { margin: 8px 0 0; color: rgba(27,67,50,.64); font-size: 14px; line-height: 25px; }
.article-after h3 { margin-bottom: 6px; }
.article-after p { margin: 0; color: rgba(27,67,50,.64); font-size: 14px; line-height: 25px; }
.article-after > a { min-width: 144px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; margin-top: 24px; padding: 0 20px; color: var(--surface); background: var(--brand); border-radius: 12px; font-size: 14px; }
.article-related h3 { margin-bottom: 16px; }
.article-related > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.article-related a { min-width: 240px; padding: 16px; color: var(--brand); background: var(--surface); border: 1px solid rgba(27,67,50,.13); border-radius: 16px; }
.article-related strong,
.article-related small { display: block; }
.article-related strong { font-size: 14px; line-height: 21px; }
.article-related small { margin-top: 2px; color: rgba(27,67,50,.5); font-size: 11px; line-height: 17px; }

@media (max-width: 1399.98px) {
  .help-main { max-width: 1120px; }
  .help-article-main { max-width: 1120px; grid-template-columns: 270px minmax(0, 1fr); }
}

@media (max-width: 1199.98px) {
  .help-main,
  .help-article-main { max-width: 100%; }
  .help-hero { grid-template-columns: minmax(300px, 448px) minmax(0, 1fr); }
  .help-hero-image-wrap { width: 100%; }
}

@media (max-width: 991.98px) {
  .help-main { padding-inline: 24px; }
  .help-hero { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 24px; }
  .help-hero-copy h2 { font-size: 31px; line-height: 40px; }
  .help-problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-article-main { grid-template-columns: 220px minmax(0,1fr); padding-inline: 24px; }
  .article-header-actions .article-back { display: none; }
}

@media (max-width: 767.98px) {
  .help-header { padding-inline: 16px; }
  .help-main { padding: 20px 16px 56px; }
  .help-hero { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding-block: 16px 28px; }
  .help-hero-image-wrap { width: 100%; height: 230px; }
  .help-hero-copy h2 { font-size: 28px; line-height: 38px; }
  .help-hero-copy > p { font-size: 14px; line-height: 25px; }
  .help-home-content { gap: 40px; }
  .help-section-heading h2,
  .help-results h2 { font-size: 21px; line-height: 32px; }
  .help-start-list li { grid-template-columns: 28px minmax(0,1fr); padding: 14px; }
  .help-row-actions { grid-column: 2; flex-wrap: wrap; }
  .help-row-actions a { min-width: 90px; }
  .help-services-layout { grid-template-columns: 1fr; }
  .help-service-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .help-service-feature { min-height: 250px; }
  .help-common-list article { align-items: flex-start; flex-direction: column; gap: 10px; }
  .help-contact { align-items: flex-start; flex-direction: column; }
  .help-contact > a { width: 100%; }
  .help-empty-result { width: 100%; }
  .help-article-main { display: block; padding: 20px 16px 56px; }
  .article-toc { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 12px; margin-bottom: 28px; }
  .article-toc strong { grid-column: 1 / -1; }
  .article-title-block { align-items: flex-start; }
  .article-title-block h2 { font-size: 28px; line-height: 40px; }
}

@media (max-width: 479.98px) {
  .help-hero-image-wrap { height: 205px; }
  .help-service-list { grid-template-columns: 1fr; }
  .help-problem-grid { grid-template-columns: 1fr; }
  .help-faq-list button { font-size: 12px; }
  .help-results > header { align-items: flex-start; }
  .help-result-card { min-height: 104px; padding: 15px; }
  .help-empty-result div { align-items: flex-start; flex-direction: column; }
  .help-empty-result button { width: 100%; }
  .article-toc { grid-template-columns: 1fr; }
  .article-related a { min-width: 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .help-faq-list article > div { transition: none; }
}
