/* ===========================================================================
   The Help Center (/help).

   Loads landing.css for its tokens, .container, .hero__orb and the .btn
   classes, the same reason the catalogue pages already load it. Self-
   contained otherwise: everything below reads a token with a literal
   fallback.

   Redesigned 2026-11-21 from a page of three link-out cards (to /faq,
   /contact, and nothing else) into FAQs answered inline, grouped into four
   categories, searchable and collapsed behind native <details> accordions.
   =========================================================================== */

body.help-page {
  background: #fff;
  color: var(--ink, #172725);
  font-family: Tajawal, Arial, sans-serif;
  overflow-x: hidden;
}

/* --- Compact hero ----------------------------------------------------------- */

.help-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, #f8fbfa 0%, #fff 60%);
}

.help-hero .container {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.help-hero h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--dark, #132c27);
}

.help-hero p {
  margin: 0;
  color: var(--muted, #687875);
  font-size: 15px;
  line-height: 1.85;
}

/* --- Search and category jump nav ------------------------------------------- */

.help-body {
  padding: 8px 0 20px;
}

.help-body .container {
  max-width: 760px;
}

.help-search {
  position: relative;
  margin-bottom: 18px;
}

.help-search svg:first-child {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9aa9a6;
  pointer-events: none;
}

.help-search input {
  width: 100%;
  height: 48px;
  padding-inline-start: 46px;
  padding-inline-end: 44px;
  border: 1px solid var(--line, #dfe9e5);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #172725);
  font-family: inherit;
  font-size: 14px;
}

.help-search input:focus-visible {
  outline: 3px solid rgba(0, 132, 90, 0.14);
  border-color: var(--green, #00845a);
}

.help-search button {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa9a6;
  cursor: pointer;
}

.help-search button svg {
  width: 16px;
  height: 16px;
}

.help-search button:hover,
.help-search button:focus-visible {
  background: var(--soft, #f4f8f6);
  color: var(--green, #00845a);
}

.help-search button[hidden] {
  display: none;
}

.help-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.help-jump a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--soft, #f4f8f6);
  color: var(--dark, #132c27);
  font-size: 12.5px;
  font-weight: 700;
}

.help-jump a:hover,
.help-jump a:focus-visible {
  background: #dcf0e8;
  color: var(--green, #00845a);
}

.help-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--muted, #687875);
  font-size: 14px;
}

.help-empty:not([hidden]) {
  display: block;
}

/* --- Categories and the accordion ------------------------------------------- */

.help-category {
  margin-bottom: 30px;
  scroll-margin-top: 96px;
}

.help-category[hidden] {
  display: none;
}

.help-category h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--dark, #132c27);
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-item {
  border: 1px solid var(--line, #dfe9e5);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.help-item[hidden] {
  display: none;
}

.help-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark, #132c27);
  cursor: pointer;
  list-style: none;
}

.help-item summary::-webkit-details-marker {
  display: none;
}

.help-item summary:focus-visible {
  outline: 3px solid rgba(0, 132, 90, 0.2);
  outline-offset: -2px;
}

.help-item__chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted, #687875);
  transition: transform 0.2s ease;
}

.help-item[open] .help-item__chevron {
  transform: rotate(180deg);
  color: var(--green, #00845a);
}

.help-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted, #687875);
  font-size: 13.5px;
  line-height: 1.85;
}

/* --- Contact-support band ---------------------------------------------------- */

.help-cta {
  padding: 48px 0 72px;
  text-align: center;
}

.help-cta h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0 0 18px;
  color: var(--dark, #132c27);
}

/* --- Small screens ------------------------------------------------------------ */

@media (max-width: 480px) {
  .help-hero {
    padding: 44px 0 32px;
  }

  .help-item summary {
    padding: 14px 15px;
  }

  .help-item p {
    padding: 0 15px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-item__chevron {
    transition: none;
  }
}
