/* ================================================================
   FAQ SECTION
================================================================ */
.hlx-faq-section {
  background: var(--clr-bg);
  padding: 48px 0 64px;
}

/* ── Tabs ── */
.hlx-faq-tabs-wrap {
  margin-bottom: 32px;
}
.hlx-faq-tabs {
  display: flex;
  gap: 0;
}
.hlx-faq-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 20px 10px 0;
  font-size: calc(15px * var(--a11y-font-scale, 1));
  font-weight: 500;
  color: var(--clr-text-muted);
  cursor: pointer;
  font-family: var(--font);
  margin-right: 24px;
  transition:
    color var(--tr),
    border-color var(--tr);
}
.hlx-faq-tab:hover {
  color: var(--clr-primary);
}
.hlx-faq-tab--active {
  color: var(--clr-green);
  border-bottom-color: var(--clr-primary);
  font-weight: 600;
}
.hlx-faq-group__trigger--light[aria-expanded="true"] {
  background: var(--clr-green);
  color: var(--clr-white);
  border-left-color: var(--clr-green);
}
.hlx-faq-tab:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.hlx-faq-tabs-border {
  height: 1px;
  background: var(--clr-border);
  margin-top: -1px;
}

/* ── Tab Panels ── */
.hlx-faq-panel {
  display: none;
}
.hlx-faq-panel--active {
  display: block;
}

/* ── FAQ Group ── */
.hlx-faq-group {
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

/* Dark header group trigger */
.hlx-faq-group__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--clr-green);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: calc(14px * var(--a11y-font-scale, 1));
  font-weight: 500;
  text-align: left;
  transition: background var(--tr);
  gap: 12px;
}
.hlx-faq-group__trigger:hover {
  background: #2d4229;
}
.hlx-faq-group__trigger:focus-visible {
  outline: 3px solid var(--clr-gold);
  outline-offset: -3px;
}

/* Light variant group trigger */
.hlx-faq-group__trigger--light {
  background: var(--clr-white);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-green);
}
.hlx-faq-group__trigger--light:hover {
  background: var(--clr-green);
  color: var(--clr-white);
}
.hlx-faq-group__trigger--light:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: -2px;
}

/* Group icon — plus/minus toggle */
.hlx-faq-group__icon {
  flex-shrink: 0;
  transition: transform var(--tr);
}
.hlx-faq-group__trigger--light .icon-minus {
  display: none;
}
.hlx-faq-group__trigger--light .icon-plus {
  display: block;
}
.hlx-faq-group__trigger--light[aria-expanded="true"] .icon-minus {
  display: block;
}
.hlx-faq-group__trigger--light[aria-expanded="true"] .icon-plus {
  display: none;
}

/* Group body */
.hlx-faq-group__body {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-top: none;
  padding: 15px 15px 15px;
}
.hlx-faq-group__body p {
  margin-bottom: 10px;
}
.hlx-faq-group__body--closed {
  display: none;
}

/* ── FAQ Item ── */
.hlx-faq-item {
  border-bottom: 1px solid var(--clr-border);
}
.hlx-faq-item:last-child {
  border-bottom: none;
}

/* Featured item — always visible, no expand button */
.hlx-faq-item--featured {
  padding: 18px 20px;
  background: var(--clr-white);
}
.hlx-faq-item__q {
  color: var(--clr-text);
  margin-bottom: 6px;
  line-height: 1.5;
  font-size: calc(14px * var(--a11y-font-scale, 1));
}
.hlx-faq-item__a {
  color: var(--clr-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* Expandable FAQ trigger */
.hlx-faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--clr-white);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  gap: 12px;
  transition: background var(--tr);
}
.hlx-faq-item__trigger:hover {
  background: #fafafa;
}
.hlx-faq-item__trigger:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: -2px;
}
.hlx-faq-item__q-text {
  color: var(--clr-text);
  font-weight: 400;
  line-height: 1.5;
  flex: 1;
}

/* Plus / Minus icon toggle */
.hlx-faq-item__icon {
  flex-shrink: 0;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
}
.hlx-faq-item__icon .icon-minus {
  display: none;
}
.hlx-faq-item__icon .icon-plus {
  display: block;
}
.hlx-faq-item__trigger[aria-expanded="true"] .icon-minus {
  display: block;
}
.hlx-faq-item__trigger[aria-expanded="true"] .icon-plus {
  display: none;
}
.hlx-faq-item__trigger[aria-expanded="true"] .hlx-faq-item__q-text {
  font-weight: 600;
  color: var(--clr-primary);
}

/* Answer */
.hlx-faq-item__answer {
  padding: 0 20px 18px 20px;
  background: var(--clr-white);
}
.hlx-faq-item__answer p {
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin: 0;
}
/* ================================================================
   ACCESSIBLE TABLE
================================================================ */
.hlx-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--clr-border);
  margin: 16px 0;
}

/* Scrollbar hint on mobile */
.hlx-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.hlx-table-wrap::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.hlx-table-wrap::-webkit-scrollbar-thumb {
  background: var(--clr-primary);
}

.hlx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(14px * var(--a11y-font-scale, 1));
  font-family: var(--font);
  color: var(--clr-text);
  min-width: 500px; /* prevents squishing on mobile */
}

/* Header row */
.hlx-table thead tr {
  background: var(--clr-green);
}
.hlx-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: calc(13px * var(--a11y-font-scale, 1));
  font-weight: 600;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.hlx-table thead th:last-child {
  border-right: none;
}

/* Body rows */
.hlx-table tbody tr {
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--tr);
}
.hlx-table tbody tr:last-child {
  border-bottom: none;
}
.hlx-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* Body cells */
.hlx-table tbody td {
  padding: 6px 14px;
  vertical-align: middle;
  border-right: 1px solid var(--clr-border);
  line-height: 1.55;
}
.hlx-table tbody td:last-child {
  border-right: none;
}

/* First column — serial number */
.hlx-table tbody td:first-child {
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  width: 60px;
  text-align: center;
}

/* Yes / No badges */
.hlx-table .badge-yes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--clr-text);
  font-size: calc(14px * var(--a11y-font-scale, 1));
  font-weight: 400;
  padding: 3px 10px;
  border-radius: 50px;
}
.hlx-table .badge-no {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #991b1b;
  font-size: calc(14px * var(--a11y-font-scale, 1));
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

/* Focus visible on rows */
.hlx-table tbody tr:focus-within {
  outline: 2px solid var(--clr-primary);
  outline-offset: -2px;
}

/* Responsive */
@media (max-width: 600px) {
  .hlx-faq-tab {
    font-size: calc(13px * var(--a11y-font-scale, 1));
    margin-right: 12px;
  }
  .hlx-faq-group__trigger,
  .hlx-faq-item__trigger {
    padding: 14px 14px;
  }
  .hlx-faq-item--featured {
    padding: 14px;
  }
  .hlx-faq-item__answer {
    padding: 0 14px 14px;
  }
}

/* Dark mode */
body.dark-mode .hlx-faq-group__trigger--light {
  background: var(--clr-surface);
  border-color: var(--clr-border);
  color: var(--clr-text);
}
body.dark-mode .hlx-faq-group__body {
  background: var(--clr-surface);
  border-color: var(--clr-border);
}
body.dark-mode .hlx-faq-item {
  border-color: var(--clr-border);
}
body.dark-mode .hlx-faq-item__trigger {
  background: var(--clr-surface);
}
body.dark-mode .hlx-faq-item--featured {
  background: var(--clr-surface);
}
body.dark-mode .hlx-faq-item__answer {
  background: var(--clr-surface);
}
body.dark-mode .hlx-faq-item__q-text {
  color: var(--clr-text);
}
body.dark-mode .hlx-table-wrap {
  border-color: var(--clr-border);
}
body.dark-mode .hlx-table {
  color: var(--clr-text);
}
body.dark-mode .hlx-table tbody tr:nth-child(even) {
  background: #1a2535;
}
body.dark-mode .hlx-table tbody tr:hover {
  background: rgba(227, 123, 36, 0.08);
}
body.dark-mode .hlx-table tbody td {
  border-color: var(--clr-border);
}
body.dark-mode .hlx-table .badge-yes {
  color: #86efac;
}
body.dark-mode .hlx-table thead tr{
background: var(--clr-surface);
}
body.dark-mode .hlx-table .badge-no {
  background: #7f1d1d;
  color: #fca5a5;
}
