/* Sheet Zip FAQ Answer Library
   Navy search panel, substantial topic tabs, category-colored left edges and labels,
   and two-column desktop answer rows with zero equal-height holes. */

.faq-view-section {
  padding: 48px 0 88px;
}

/* Two-column header: intro on the left, navy search panel on the right */
.faq-header-center {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 440px);
  gap: 48px;
  align-items: end;
  margin: 0 0 40px;
  text-align: left;
}

.faq-intro .kicker {
  margin-bottom: 12px;
}

.faq-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--text);
}

.faq-intro .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  max-width: 480px;
}

/* Navy search panel */
.faq-controls-custom {
  background: linear-gradient(175deg, #162334 0%, #101926 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: 0 16px 36px rgba(4, 8, 14, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.faq-search-label {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.search-field-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--cyan);
  opacity: 0.8;
  pointer-events: none;
}

.faq-page .custom-search {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  font-size: 15px;
  font-family: var(--font);
  background: rgba(13, 20, 29, 0.85);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.faq-page .custom-search:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(13, 20, 29, 0.98);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2), 0 0 16px rgba(34, 211, 238, 0.1);
}

.faq-page .custom-search::placeholder {
  color: var(--text-dim);
  opacity: 0.75;
}

.faq-search-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(43, 59, 78, 0.55);
}

.faq-controls-custom .result-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.faq-search-foot span {
  font-size: 12px;
  color: var(--text-dim);
}

/* Substantial topic filter tabs */
.faq-topic-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.topic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--chrome);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.topic-btn:hover {
  color: var(--text);
  border-color: rgba(142, 203, 255, 0.45);
  background: var(--pane);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.topic-btn[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, #1c324c 0%, #152538 100%);
  border-color: var(--cyan);
  box-shadow: 0 4px 14px rgba(4, 8, 14, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topic-count {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topic-btn[aria-pressed="true"] .topic-count {
  background: rgba(34, 211, 238, 0.2);
  color: var(--cyan);
}

/* Results board & answer library rows */
.faq-results-board {
  margin-top: 0;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

/* Individual answer card / row */
.custom-faq-view .faq-item {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.65fr);
  gap: 40px;
  align-items: start;
  padding: 28px 32px 28px 34px;
  background: var(--chrome);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  scroll-margin-top: 100px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.custom-faq-view .faq-item:first-child {
  padding-top: 28px;
}

/* Category-colored themes: left edge and label */
.custom-faq-view .faq-item[data-faq-category="basics"] {
  --cat-accent: #8ecbff;
  --cat-bg: rgba(142, 203, 255, 0.08);
  --cat-border: rgba(142, 203, 255, 0.22);
  --cat-glow: rgba(142, 203, 255, 0.08);
}

.custom-faq-view .faq-item[data-faq-category="documents"] {
  --cat-accent: #22d3ee;
  --cat-bg: rgba(34, 211, 238, 0.08);
  --cat-border: rgba(34, 211, 238, 0.22);
  --cat-glow: rgba(34, 211, 238, 0.08);
}

.custom-faq-view .faq-item[data-faq-category="zipping"] {
  --cat-accent: #f3bd62;
  --cat-bg: rgba(243, 189, 98, 0.08);
  --cat-border: rgba(243, 189, 98, 0.22);
  --cat-glow: rgba(243, 189, 98, 0.08);
}

.custom-faq-view .faq-item[data-faq-category="privacy"] {
  --cat-accent: #5ccf8e;
  --cat-bg: rgba(92, 207, 142, 0.08);
  --cat-border: rgba(92, 207, 142, 0.22);
  --cat-glow: rgba(92, 207, 142, 0.08);
}

/* Category-colored left edge */
.custom-faq-view .faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cat-accent, var(--line));
  border-radius: 4px 0 0 4px;
}

/* Soft hover borders and glow (no moving text or distracting motion) */
.custom-faq-view .faq-item:hover {
  border-color: rgba(142, 203, 255, 0.3);
  background: #141f2d;
  box-shadow: 0 10px 28px rgba(3, 6, 12, 0.38), 0 0 20px var(--cat-glow, transparent);
}

/* Anchor link target highlight */
.custom-faq-view .faq-item:target {
  border-color: var(--cyan);
  background: #162436;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35), 0 12px 36px rgba(0, 0, 0, 0.45);
}

.custom-faq-view .faq-item:target h2 {
  color: #fff;
}

/* Category-colored badge */
.custom-faq-view .faq-topic-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--cat-accent, var(--sky));
  background: var(--cat-bg, rgba(142, 203, 255, 0.08));
  border: 1px solid var(--cat-border, rgba(142, 203, 255, 0.22));
  line-height: 1;
}

/* Question styling */
.custom-faq-view .faq-question h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}

/* Answer styling */
.custom-faq-view .faq-answer {
  padding-top: 2px;
}

.custom-faq-view .faq-answer p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.68;
  margin: 0 0 14px;
  max-width: none;
}

.custom-faq-view .faq-answer p:last-child {
  margin-bottom: 0;
}

.custom-faq-view .faq-answer a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(142, 203, 255, 0.35);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.custom-faq-view .faq-answer a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.custom-faq-view .faq-answer code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  color: var(--sky);
}

/* Empty state */
.custom-faq-view .empty-state {
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: rgba(17, 26, 37, 0.6);
  margin: 20px 0;
}

.custom-faq-view .empty-state p {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.custom-faq-view .empty-state .btn {
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .faq-header-center {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    margin-bottom: 32px;
  }

  .faq-intro .kicker {
    justify-content: center;
  }

  .faq-intro .lede {
    margin: 0 auto;
  }

  .faq-controls-custom {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
  }

  .faq-topic-filters {
    justify-content: center;
  }

  .custom-faq-view .faq-item,
  .custom-faq-view .faq-item:first-child {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 26px;
  }
}

@media (max-width: 600px) {
  .faq-view-section {
    padding: 36px 0 60px;
  }

  .faq-header-center h1 {
    font-size: 34px;
  }

  .faq-header-center .lede {
    font-size: 16px;
  }

  .faq-controls-custom {
    padding: 20px 18px;
  }

  .faq-search-label {
    font-size: 16.5px;
  }

  .faq-page .custom-search {
    height: 44px;
    font-size: 14.5px;
    padding-left: 42px;
  }

  .search-icon {
    left: 14px;
    width: 16px;
    height: 16px;
  }

  .topic-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .custom-faq-view .faq-item,
  .custom-faq-view .faq-item:first-child {
    padding: 20px 18px 20px 22px;
  }

  .custom-faq-view .faq-question h2 {
    font-size: 18.5px;
  }

  .custom-faq-view .faq-answer {
    font-size: 14.5px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .faq-page .custom-search,
  .topic-btn,
  .topic-count,
  .custom-faq-view .faq-item,
  .custom-faq-view .faq-answer a {
    transition: none;
  }
}
