/* ==========================================================================
   TRESUN-TECH — FAQ page stylesheet (Layer 2)
   File: assets/css/faq-page.css
   Scope: every selector is prefixed with .tsq-faq — no global element, no
          theme class and no other page of the site is affected.
   Companion: layer1-content.html (structure) · layer3 FAQ JavaScript (behaviour)
   Suggested pairing: enqueue on the FAQ route only, version = filemtime().
   --------------------------------------------------------------------------
   INDEX
   01 · Design tokens
   02 · Section shell
   03 · Hero header + glow
   04 · Search field
   05 · Category tabs
   06 · Accordion — closed / hover
   07 · Accordion — open (accent border, gradient, chevron)
   08 · Answer typography + data badges
   09 · Empty state
   10 · Bottom CTA
   11 · Responsive
   12 · Motion & accessibility preferences
   ========================================================================== */

/* ==========================================================================
   01 · DESIGN TOKENS  (scoped to .tsq-faq — never :root, so the rest of the
        staging site keeps its frozen palette untouched)
   ========================================================================== */
.tsq-faq {
  /* Brand core */
  --primary-dark: #091e2a;
  --primary-dark-2: #0c3247;
  --primary-dark-3: #12414a;

  /* Category accents */
  --color-solar: #f59e0b;
  --color-ess: #10b981;
  --color-ev: #0284c7;
  --color-shipping: #6366f1;

  /* Accent tints (derived, for boarders / glows / gradients) */
  --color-solar-soft: rgba(245, 158, 11, 0.10);
  --color-ess-soft: rgba(16, 185, 129, 0.10);
  --color-ev-soft: rgba(2, 132, 199, 0.10);
  --color-shipping-soft: rgba(99, 102, 241, 0.10);
  --color-solar-ring: rgba(245, 158, 11, 0.26);
  --color-ess-ring: rgba(16, 185, 129, 0.26);
  --color-ev-ring: rgba(2, 132, 199, 0.26);
  --color-shipping-ring: rgba(99, 102, 241, 0.26);

  /* Neutrals */
  --ink: #0b1f2a;
  --muted: #647680;
  --muted-2: #8298a2;
  --line: #e2e9ec;
  --line-strong: #cfdbe1;
  --card: #ffffff;
  --card-closed: #fafcfd;
  --page-soft: #f5f8f9;

  /* Radii */
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-soft: 0 10px 26px rgba(8, 31, 45, 0.05);
  --shadow-card: 0 18px 44px rgba(8, 31, 45, 0.09);
  --shadow-lift: 0 26px 56px rgba(8, 31, 45, 0.16);
  --shadow-hero: 0 34px 78px rgba(9, 30, 42, 0.30);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.34s;
  --dur-fast: 0.2s;
  --dur-slow: 0.55s;

  /* Layout */
  --shell: 1320px;
  --gutter: clamp(18px, 3.4vw, 52px);

  /* Local accent — overridden per accordion card via [data-category] */
  --accent: var(--color-ess);
  --accent-soft: var(--color-ess-soft);
  --accent-ring: var(--color-ess-ring);

  /* Auto-selected color for grouped rules (badges, tab glows) */
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   02 · SECTION SHELL
   ========================================================================== */
.tsq-faq {
  position: relative;
  display: block;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(56px, 6vw, 92px);
  background:
    radial-gradient(900px 420px at 6% 0%, rgba(16, 185, 129, 0.06), transparent 62%),
    radial-gradient(820px 380px at 100% 4%, rgba(2, 132, 199, 0.06), transparent 60%),
    var(--page-soft);
}

.tsq-faq > * {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.tsq-faq *,
.tsq-faq *::before,
.tsq-faq *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   03 · HERO HEADER + GLOW
   ========================================================================== */
.tsq-faq .tsq-faq-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(26px, 4vw, 62px);
  padding: clamp(32px, 4.6vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1080px 420px at 10% -14%, rgba(16, 185, 129, 0.22), transparent 62%),
    radial-gradient(760px 380px at 92% 2%, rgba(2, 132, 199, 0.24), transparent 64%),
    radial-gradient(640px 340px at 66% 122%, rgba(99, 102, 241, 0.20), transparent 60%),
    radial-gradient(520px 260px at 34% 46%, rgba(245, 158, 11, 0.10), transparent 68%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-2) 54%, var(--primary-dark-3) 100%);
  box-shadow: var(--shadow-hero);
  color: #e8f1f4;
}

/* micro-glow "night sky" grain */
.tsq-faq .tsq-faq-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 24%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 72% 16%, rgba(255, 255, 255, 0.42), transparent 60%),
    radial-gradient(1.1px 1.1px at 44% 68%, rgba(255, 255, 255, 0.36), transparent 60%),
    radial-gradient(1.3px 1.3px at 88% 62%, rgba(255, 255, 255, 0.40), transparent 60%),
    radial-gradient(1px 1px at 30% 86%, rgba(255, 255, 255, 0.30), transparent 60%);
}

.tsq-faq .tsq-faq-header-copy,
.tsq-faq .tsq-faq-search {
  position: relative;
  z-index: 1;
}

.tsq-faq .tsq-faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.tsq-faq .tsq-faq-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-ess), var(--color-ev));
}

.tsq-faq .tsq-faq-header h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.028em;
}

.tsq-faq .tsq-faq-intro {
  max-width: 62ch;
  margin: 0;
  color: #bcd2da;
  font-size: clamp(13.5px, 1.2vw, 15.5px);
}

/* ==========================================================================
   04 · SEARCH FIELD
   ========================================================================== */
.tsq-faq .tsq-faq-search {
  display: grid;
  gap: 10px;
  align-content: center;
}

.tsq-faq .tsq-faq-search-label {
  color: #9fb8c2;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tsq-faq .tsq-faq-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-search-field:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* focus glow (item 4 of the brief) */
.tsq-faq .tsq-faq-search-field:focus-within {
  border-color: rgba(16, 185, 129, 0.62);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 4px rgba(16, 185, 129, 0.18),
    0 0 34px rgba(16, 185, 129, 0.32),
    0 18px 38px rgba(4, 18, 26, 0.34);
  transform: translateY(-1px);
}

.tsq-faq .tsq-faq-search-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: #7fe0b4;
  transition: color var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-search-field:focus-within .tsq-faq-search-icon {
  color: #a7f3d0;
}

.tsq-faq .tsq-faq-search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 14.5px;
  outline: none;
}

.tsq-faq .tsq-faq-search-input::placeholder {
  color: #8ea8b3;
}

/* kill the native clear/decoration buttons for a clean pill */
.tsq-faq .tsq-faq-search-input::-webkit-search-decoration,
.tsq-faq .tsq-faq-search-input::-webkit-search-cancel-button,
.tsq-faq .tsq-faq-search-input::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
}

.tsq-faq .tsq-faq-search-hint {
  margin: 0;
  color: #8ea8b3;
  font-size: 11.5px;
  font-weight: 650;
}

/* ==========================================================================
   05 · CATEGORY TABS
   ========================================================================== */
.tsq-faq .tsq-faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(22px, 2.6vw, 34px) auto 0;
  padding-bottom: 2px;
}

.tsq-faq .tsq-faq-tab {
  --tab-accent: var(--color-ess);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: #33505d;
  font: inherit;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-tab::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tab-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tab-accent) 18%, transparent);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-tab:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(8, 31, 45, 0.12);
}

.tsq-faq .tsq-faq-tab:focus-visible {
  outline: 2px solid var(--tab-accent);
  outline-offset: 3px;
}

/* per-category tab accents */
.tsq-faq .tsq-faq-tab[data-category="all"] { --tab-accent: var(--primary-dark-2); }
.tsq-faq .tsq-faq-tab[data-category="inverter-solar"] { --tab-accent: var(--color-solar); }
.tsq-faq .tsq-faq-tab[data-category="battery-ess"] { --tab-accent: var(--color-ess); }
.tsq-faq .tsq-faq-tab[data-category="ev-charging"] { --tab-accent: var(--color-ev); }
.tsq-faq .tsq-faq-tab[data-category="order-shipping"] { --tab-accent: var(--color-shipping); }

/* active pill */
.tsq-faq .tsq-faq-tab.is-active,
.tsq-faq .tsq-faq-tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-2) 100%);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(9, 30, 42, 0.26);
}

.tsq-faq .tsq-faq-tab.is-active::before,
.tsq-faq .tsq-faq-tab[aria-selected="true"]::before {
  background: var(--tab-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tab-accent) 26%, transparent);
  transform: scale(1.06);
}

.tsq-faq .tsq-faq-tab.is-active:hover,
.tsq-faq .tsq-faq-tab[aria-selected="true"]:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   06 · ACCORDION — CLOSED / HOVER
   ========================================================================== */
.tsq-faq .tsq-faq-list {
  display: grid;
  gap: 12px;
  margin: clamp(20px, 2.4vw, 32px) auto 0;
}

/* category → accent wiring (drives border, glow, gradient, chevron) */
.tsq-faq .tsq-faq-item[data-category="inverter-solar"] {
  --accent: var(--color-solar);
  --accent-soft: var(--color-solar-soft);
  --accent-ring: var(--color-solar-ring);
}
.tsq-faq .tsq-faq-item[data-category="battery-ess"] {
  --accent: var(--color-ess);
  --accent-soft: var(--color-ess-soft);
  --accent-ring: var(--color-ess-ring);
}
.tsq-faq .tsq-faq-item[data-category="ev-charging"] {
  --accent: var(--color-ev);
  --accent-soft: var(--color-ev-soft);
  --accent-ring: var(--color-ev-ring);
}
.tsq-faq .tsq-faq-item[data-category="order-shipping"] {
  --accent: var(--color-shipping);
  --accent-soft: var(--color-shipping-soft);
  --accent-ring: var(--color-shipping-ring);
}

.tsq-faq .tsq-faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  /* left rail is always reserved, so opening never shifts the layout */
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  background: var(--card-closed);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              border-left-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-item[hidden],
.tsq-faq .tsq-faq-empty[hidden] {
  display: none !important;
}

/* closed-state hover: lift 2px + faint coloured halo */
.tsq-faq .tsq-faq-item:not([open]):hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--card);
  box-shadow: 0 22px 46px rgba(8, 31, 45, 0.13), 0 0 0 1px var(--accent-ring);
}

/* question row */
.tsq-faq .tsq-faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(16px, 1.6vw, 21px) clamp(18px, 2vw, 26px);
  color: var(--ink);
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  font-weight: 820;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

/* remove the native disclosure marker (Chrome / Safari / Firefox) */
.tsq-faq .tsq-faq-question::-webkit-details-marker {
  display: none;
}
.tsq-faq .tsq-faq-question::marker {
  content: "";
}

.tsq-faq .tsq-faq-question:hover {
  color: var(--primary-dark);
}

.tsq-faq .tsq-faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}

.tsq-faq .tsq-faq-question-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* chevron — drawn in CSS, rotates 180° when open */
.tsq-faq .tsq-faq-chevron {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-chevron::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translate(-50%, -62%) rotate(45deg);
  transition: border-color var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-item:not([open]) .tsq-faq-question:hover .tsq-faq-chevron {
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ==========================================================================
   07 · ACCORDION — OPEN
   ========================================================================== */
.tsq-faq .tsq-faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  border-left-color: var(--accent);   /* 4px category-coloured rail */
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0) 62%),
    var(--card);
  box-shadow: 0 26px 54px rgba(8, 31, 45, 0.13), 0 0 0 1px var(--accent-ring);
}

.tsq-faq .tsq-faq-item[open] .tsq-faq-question {
  color: var(--primary-dark);
  padding-bottom: 12px;
}

.tsq-faq .tsq-faq-item[open] .tsq-faq-chevron {
  transform: rotate(180deg);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
}

.tsq-faq .tsq-faq-item[open] .tsq-faq-chevron::before {
  border-right-color: var(--accent);
  border-bottom-color: var(--accent);
}

/* answer body — animated on open (see §12 note: pure <details> cannot
   animate height; Layer 3 JavaScript upgrades this to a true height slide) */
.tsq-faq .tsq-faq-answer {
  padding: 0 clamp(18px, 2vw, 26px) clamp(18px, 1.8vw, 24px);
  animation: tsq-answer-in var(--dur-slow) var(--ease-out) both;
}

.tsq-faq .tsq-faq-item[open] .tsq-faq-answer p {
  animation: tsq-answer-in var(--dur-slow) var(--ease-out) both;
}

@keyframes tsq-answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   08 · ANSWER TYPOGRAPHY + DATA BADGES
   ========================================================================== */
.tsq-faq .tsq-faq-answer p {
  max-width: 92ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 14.5px);
  line-height: 1.72;
}

.tsq-faq .tsq-faq-answer p + p {
  margin-top: 12px;
}

.tsq-faq .tsq-faq-answer sub {
  font-size: 0.72em;
  vertical-align: -0.16em;
}

.tsq-faq .tsq-faq-answer a {
  color: var(--primary-dark-2);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-ring);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-answer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- inline technical data badge -------------------------------------- */
.tsq-faq .tsq-badge {
  --badge-accent: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 3px;
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--badge-accent) 34%, #ffffff);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--badge-accent) 11%, #ffffff);
  color: color-mix(in srgb, var(--badge-accent) 72%, #06202c);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
}

.tsq-faq .tsq-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--badge-accent);
}

/* optional tones — use when the badge should not inherit the card accent */
.tsq-faq .tsq-badge[data-tone="solar"] { --badge-accent: var(--color-solar); }
.tsq-faq .tsq-badge[data-tone="ess"] { --badge-accent: var(--color-ess); }
.tsq-faq .tsq-badge[data-tone="ev"] { --badge-accent: var(--color-ev); }
.tsq-faq .tsq-badge[data-tone="shipping"] { --badge-accent: var(--color-shipping); }
.tsq-faq .tsq-badge[data-tone="neutral"] {
  --badge-accent: #64748b;
  color: #3b4c56;
}

/* ==========================================================================
   09 · EMPTY STATE
   ========================================================================== */
.tsq-faq .tsq-faq-empty {
  margin: 4px 0 0;
  padding: clamp(26px, 3vw, 40px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.tsq-faq .tsq-faq-empty a {
  color: var(--color-ess);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 1px solid var(--color-ess-ring);
}

.tsq-faq .tsq-faq-empty a:hover {
  color: var(--primary-dark-2);
}

/* ==========================================================================
   10 · BOTTOM CTA
   ========================================================================== */
.tsq-faq .tsq-faq-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 3.4vw, 46px);
  padding: clamp(28px, 3.4vw, 46px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 320px at 88% 8%, rgba(99, 102, 241, 0.26), transparent 62%),
    radial-gradient(620px 300px at 6% 108%, rgba(16, 185, 129, 0.22), transparent 62%),
    linear-gradient(120deg, #0a2030 0%, #103a4a 58%, #17514f 100%);
  color: #e8f1f4;
  box-shadow: 0 30px 66px rgba(9, 30, 42, 0.26);
}

.tsq-faq .tsq-faq-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 70ch;
}

.tsq-faq .tsq-faq-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.tsq-faq .tsq-faq-cta-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-ess), var(--color-ev));
}

.tsq-faq .tsq-faq-cta h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.018em;
}

.tsq-faq .tsq-faq-cta p {
  margin: 0;
  color: #bcd2da;
  font-size: clamp(12.5px, 1.05vw, 14px);
}

.tsq-faq .tsq-faq-cta-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 15px 26px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--color-ess) 0%, #2ab766 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.32);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              filter var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-cta-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
  transition: transform var(--dur) var(--ease);
}

.tsq-faq .tsq-faq-cta-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.06) brightness(1.03);
  box-shadow: 0 24px 46px rgba(16, 185, 129, 0.38);
}

.tsq-faq .tsq-faq-cta-button:hover::after {
  transform: translate(3px, -1px) rotate(-45deg);
}

.tsq-faq .tsq-faq-cta-button:focus-visible {
  outline: 2px solid #a7f3d0;
  outline-offset: 3px;
}

/* ==========================================================================
   11 · RESPONSIVE
   ========================================================================== */

/* --- large tablet / small desktop -------------------------------------- */
@media (max-width: 1100px) {
  .tsq-faq .tsq-faq-header {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: clamp(28px, 4vw, 44px);
  }

  .tsq-faq .tsq-faq-search {
    max-width: 620px;
  }
}

/* --- tablet ------------------------------------------------------------ */
@media (max-width: 900px) {
  .tsq-faq .tsq-faq-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tsq-faq .tsq-faq-cta-button {
    align-self: stretch;
    justify-content: center;
  }
}

/* --- mobile: tabs become a swipeable pill rail ------------------------- */
@media (max-width: 760px) {
  .tsq-faq .tsq-faq-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* soft fade hint that the rail continues */
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter),
                                #000 calc(100% - var(--gutter)), transparent 100%);
  }

  .tsq-faq .tsq-faq-tabs::-webkit-scrollbar {
    display: none;
  }

  .tsq-faq .tsq-faq-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 10px 15px;
    font-size: 12px;
  }

  .tsq-faq .tsq-faq-question {
    gap: 14px;
    padding: 15px 16px;
    font-size: 14.5px;
  }

  .tsq-faq .tsq-faq-answer {
    padding: 0 16px 16px;
  }

  .tsq-faq .tsq-faq-chevron {
    width: 27px;
    height: 27px;
  }

  .tsq-faq .tsq-badge {
    font-size: 11px;
    padding: 2px 8px;
  }
}

/* --- small phone ------------------------------------------------------- */
@media (max-width: 480px) {
  .tsq-faq {
    --radius-lg: 20px;
    --radius-md: 15px;
  }

  .tsq-faq .tsq-faq-header {
    padding: 24px 20px;
  }

  .tsq-faq .tsq-faq-header h1 {
    font-size: 30px;
  }

  .tsq-faq .tsq-faq-search-field {
    padding-left: 13px;
  }

  .tsq-faq .tsq-faq-search-input {
    font-size: 13.5px;
  }

  .tsq-faq .tsq-faq-item[open] {
    border-left-width: 3px;
  }

  .tsq-faq .tsq-faq-cta {
    padding: 24px 20px;
  }

  .tsq-faq .tsq-faq-cta-button {
    font-size: 12.5px;
    padding: 14px 18px;
  }
}

/* ==========================================================================
   12 · MOTION & ACCESSIBILITY PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .tsq-faq *,
  .tsq-faq *::before,
  .tsq-faq *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .tsq-faq .tsq-faq-item:not([open]):hover,
  .tsq-faq .tsq-faq-tab:hover,
  .tsq-faq .tsq-faq-cta-button:hover {
    transform: none;
  }
}

/* high-contrast / forced-colors safety for the CSS-drawn chevron */
@media (forced-colors: active) {
  .tsq-faq .tsq-faq-chevron::before {
    border-color: ButtonText;
  }

  .tsq-faq .tsq-faq-item[open] {
    border-left-color: Highlight;
  }
}

/* print: no glow, no shadows, everything readable */
@media print {
  .tsq-faq {
    background: #ffffff;
  }

  .tsq-faq .tsq-faq-header,
  .tsq-faq .tsq-faq-cta {
    background: #ffffff;
    color: #000000;
    box-shadow: none;
  }

  .tsq-faq .tsq-faq-header h1,
  .tsq-faq .tsq-faq-cta h2 {
    color: #000000;
  }

  .tsq-faq .tsq-faq-item,
  .tsq-faq .tsq-faq-tab,
  .tsq-faq .tsq-faq-empty {
    box-shadow: none;
  }

  .tsq-faq .tsq-faq-item {
    break-inside: avoid;
  }
}
