/* ==========================================================================
   Spectrum IT Hub — FAQ
   --------------------------------------------------------------------------
   The FAQ sits on the light band, so the accents are the light-band palette:
   #8A6A1F for gold (the bright #E8B547 is illegible on #F7F6F3) and #D32027
   for the call to action. Cards reuse the site's frosted-paper glass.

   Loaded only by FAQ.dc.html — none of this applies anywhere else.
   ========================================================================== */

/* --- Search --------------------------------------------------------------- */
.faq-search input {
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.faq-search input:focus {
  outline: none;
  border-color: #8A6A1F;
  box-shadow: 0 0 0 3px rgba(138, 106, 31, 0.16);
  background: #FFFFFF;
}

/* --- Category tabs --------------------------------------------------------
   The indicator is one element moved with a transform rather than a border on
   each tab, so it slides between them instead of blinking from one to the
   next. Width and position are measured in JS — the tabs are text, so their
   widths are not knowable up front. */
.faq-tabs { position: relative; }

.faq-tab {
  position: relative;
  cursor: pointer;
  padding: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  transition: color 220ms ease;
}
.faq-tab:hover { color: #0B0C10; }

.faq-tab-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 7px;
  border: 1px solid #E2DFD8;
  color: #5A5F69;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}
.faq-tab[data-on="1"] .faq-tab-count {
  border-color: rgba(138, 106, 31, 0.45);
  background: rgba(138, 106, 31, 0.08);
  color: #8A6A1F;
}

.faq-tab-ind {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  background: #8A6A1F;
  transition: transform 420ms cubic-bezier(.16, 1, .3, 1), width 420ms cubic-bezier(.16, 1, .3, 1);
}

/* --- Question cards ------------------------------------------------------- */
.faq-card {
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1), box-shadow 260ms ease;
}
.faq-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 0 0 1px rgba(138, 106, 31, 0.38),
    0 16px 32px -22px rgba(11, 12, 16, 0.55);
}
.faq-card[data-open="1"] {
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 0 0 1px rgba(138, 106, 31, 0.5),
    0 16px 34px -22px rgba(11, 12, 16, 0.5);
}

.faq-num {
  transition: background 260ms ease, color 260ms ease, border-color 260ms ease;
}
.faq-card[data-open="1"] .faq-num,
.faq-card:hover .faq-num {
  background: #8A6A1F;
  border-color: #8A6A1F;
  color: #FFFFFF;
}

.faq-body { transition: max-height 420ms cubic-bezier(.16, 1, .3, 1), opacity 260ms ease; }

/* --- Reveal ---------------------------------------------------------------
   Rows arrive in a stagger. The delay is set inline per row; this only
   supplies the transition it eases on. faq.js clears the start state so a
   failed script can never leave content invisible. */
.faq-reveal {
  opacity: 0;
  transform: translateY(14px);
  /* box-shadow/background-color are here because this rule loads after
     glass.css and would otherwise suppress the .glass-paper hover on these
     cards, which are also glass tiles. */
  transition: opacity 620ms cubic-bezier(.16, 1, .3, 1), transform 620ms cubic-bezier(.16, 1, .3, 1),
              box-shadow 260ms ease, background-color 260ms ease;
}
/* data attribute, not a class: className is a React-managed prop and would be
   wiped the moment anything re-renders — which on this page is every time a
   card is expanded. React leaves data-* it did not render alone. */
.faq-reveal[data-in="1"] { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .faq-tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .faq-tabs-scroll::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-tab-ind, .faq-card, .faq-num, .faq-body, .faq-search input { transition: none; }
  .faq-reveal { opacity: 1; transform: none; transition: none; }
}
