/* BOA FAQ & Guides Page */

body.got-faq-page {
  padding-bottom: 48px;
}

.faq-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ── Password Overlay ── */
.faq-password-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 10, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 5000;
  padding: 24px 16px 40px;
  overflow-y: auto;
  animation: faqFadeIn 0.3s ease-out;
}

@keyframes faqFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.faq-gate-stack {
  width: 100%;
  max-width: 440px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-public-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 20px 22px;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(ellipse 80% 70% at 12% 20%, rgba(196, 160, 53, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(42, 48, 32, 0.98) 0%, rgba(22, 26, 18, 0.98) 100%);
  border: 1px solid rgba(196, 160, 53, 0.4);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  animation: faqSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-public-card:hover,
.faq-public-card:focus-visible {
  border-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  outline: none;
}

.faq-public-card-art {
  color: var(--accent-bright);
  display: flex;
  flex-shrink: 0;
}

.faq-public-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  min-width: 0;
}

.faq-public-card-eyebrow {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.faq-public-card-title {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright);
  line-height: 1.2;
}

.faq-public-card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.faq-public-card-cta {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.faq-public-card:hover .faq-public-card-cta,
.faq-public-card:focus-visible .faq-public-card-cta {
  color: var(--accent-bright);
}

.faq-password-modal {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  animation: faqSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-password-icon {
  color: var(--accent-bright);
  margin-bottom: 16px;
  display: inline-flex;
}

.faq-password-modal h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 8px;
}

.faq-password-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 28px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .faq-public-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .faq-public-card-body {
    text-align: center;
    align-items: center;
  }

  .faq-public-card-art svg {
    width: 72px;
    height: 72px;
  }
}

.faq-password-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-password-input-wrap {
  position: relative;
}

.faq-password-input-wrap input {
  width: 100%;
  padding: 14px 52px 14px 16px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-password-input-wrap input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.faq-password-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.faq-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.faq-password-toggle:hover {
  color: var(--accent-bright);
  background: var(--accent-dim);
}

.faq-password-toggle .icon-eye-off {
  display: none;
}

.faq-password-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}

.faq-password-toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}

.faq-password-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.82rem;
  margin: 0;
  text-align: left;
}

.faq-password-error:not([hidden]) {
  display: block;
}

.faq-password-submit {
  margin-top: 6px;
  padding: 14px 24px;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.faq-password-submit:hover {
  background: var(--accent-bright);
}

.faq-password-submit:active {
  transform: scale(0.98);
}

.faq-password-hint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ── FAQ Hero ── */
.faq-hero {
  text-align: center;
  margin-bottom: 32px;
}

.faq-hero .boa-hero-logo {
  max-width: min(180px, 50vw);
  margin: 0 auto 20px;
}

.faq-hero h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 8px;
}

.faq-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Search Section ── */
.faq-search-section {
  margin-bottom: 28px;
}

.faq-search-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.faq-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.faq-search-input {
  width: 100%;
  padding: 14px 52px 14px 48px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-search-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.faq-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.faq-search-clear {
  position: absolute;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.faq-search-clear:hover {
  color: var(--accent-bright);
  background: var(--accent-dim);
}

.faq-search-clear:not([hidden]) {
  display: flex;
}

.faq-search-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.faq-no-results {
  margin: 16px 0 0;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg-deep);
  border: 1px dashed var(--border);
  border-radius: 6px;
  animation: faqFadeIn 0.2s ease-out;
}

.faq-no-results:not([hidden]) {
  display: block;
}

/* ── Toolbar: view buttons + toggle (Nadine's UI refinements 2026-08-13) ── */
.faq-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.faq-view-group {
  display: flex;
  gap: 6px;
  background: var(--bg-deep);
  padding: 3px;
  border-radius: 6px;
}

.faq-view-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.faq-view-btn svg {
  flex-shrink: 0;
}

.faq-view-btn:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.faq-view-btn[aria-checked="true"] {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.faq-view-btn[aria-checked="true"]:hover {
  background: var(--accent-bright);
}

.faq-toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-info-tooltip {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-info-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--border-light);
  color: var(--accent);
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0;
  line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.faq-info-icon:hover {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}

.faq-info-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-tooltip-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.faq-tooltip-content::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--panel-raised);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.faq-tooltip-content[hidden] {
  display: none;
}

.faq-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.faq-toggle-text {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.faq-toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
}

.faq-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.faq-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.faq-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}

.faq-toggle-switch input:checked + .faq-toggle-slider {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.faq-toggle-switch input:checked + .faq-toggle-slider::before {
  transform: translateX(16px);
  background: var(--accent-bright);
}

.faq-toggle-switch input:focus-visible + .faq-toggle-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Share button (����) — remove white box, blend into design ── */
.faq-post-share {
  background: transparent !important;
  border: none !important;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.15s;
  flex-shrink: 0;
  color: var(--muted);
}

.faq-share-icon {
  stroke: currentColor;
  transition: stroke 0.15s;
  flex-shrink: 0;
}

.faq-post-header:hover .faq-post-share,
.faq-post-header[aria-expanded="true"] .faq-post-share {
  opacity: 1;
}

.faq-post-share:hover {
  background: var(--accent-dim) !important;
  color: var(--accent-bright);
}

.faq-post-share:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ── Pin Button ── */
.faq-post-pin {
  background: transparent !important;
  border: none !important;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.2s, color 0.15s, background 0.15s;
  flex-shrink: 0;
  color: var(--muted);
  order: -1;
}

.faq-post-header:hover .faq-post-pin,
.faq-post-header[aria-expanded="true"] .faq-post-pin {
  opacity: 0.65;
}

.faq-post-pin:hover {
  opacity: 1 !important;
  background: var(--accent-dim);
  color: var(--accent-bright);
}

.faq-post-pin:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  opacity: 1;
}

.faq-post-pin-active {
  opacity: 1 !important;
  color: var(--accent-bright);
}

.faq-post-pin-active:hover {
  color: var(--danger);
  background: rgba(255, 80, 80, 0.12);
}

.faq-pin-icon {
  transition: transform 0.2s;
}

.faq-post-pin-active .faq-pin-icon {
  transform: scale(1.1);
}

.faq-post-pinned {
  transition: border-color 0.2s;
}

.faq-post-pinned .faq-post-header {
  border-left: 3px solid var(--accent-bright);
}

/* ── Pin Separator ── */
.faq-pin-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 8px 0 16px;
  opacity: 0.5;
}

.faq-col-full {
  grid-column: 1 / -1;
}

/* ── Cards View (2-column CSS grid for both sections) ── */
.faq-posts-list[data-view="cards"] {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-fav-grid,
.faq-post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-post-grid {
  margin-top: 0;
}

.faq-posts-list[data-view="cards"] .faq-col {
  min-width: 0;
}

/* Favorited cards separator — only shown when favorited posts exist */
.faq-fav-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 8px 0 16px;
  opacity: 0.5;
}

/* Cards view: fix title truncation — prevent pin/share/chevron from crushing the title */
.faq-posts-list[data-view="cards"] .faq-post-title {
  min-width: 60px;
}

@media (max-width: 800px) {
  .faq-fav-grid,
  .faq-post-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Compact View (tighter spacing) ── */
.faq-posts-list[data-view="compact"] .faq-post {
  margin-bottom: 4px;
}

.faq-posts-list[data-view="compact"] .faq-post-header {
  padding: 10px 14px;
}

.faq-posts-list[data-view="compact"] .faq-post-title {
  font-size: 0.92rem;
}

.faq-posts-list[data-view="compact"] .faq-post-chevron {
  width: 26px;
  height: 26px;
}
.faq-posts-list[data-view="compact"] .faq-post-chevron svg {
  width: 18px;
  height: 18px;
}

.faq-posts-list[data-view="compact"] .faq-post[aria-expanded="true"] .faq-post-content {
  padding: 0 14px 16px;
}

.faq-posts-list[data-view="compact"] .faq-post-body {
  padding: 10px 16px 16px;
}

.faq-posts-list[data-view="compact"] .faq-post-body p,
.faq-posts-list[data-view="compact"] .faq-post-body li {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ── Posts List ── */
.faq-posts-section {
  margin-top: 8px;
}

.faq-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Post Card / Accordion ── */
.faq-post {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-post:hover {
  border-color: var(--border-light);
}

.faq-post[hidden] {
  display: none !important;
}

.faq-post-header {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s;
}

.faq-posts-list > .faq-post:nth-child(odd) .faq-post-header,
.faq-col .faq-post:nth-child(odd) .faq-post-header {
  background-color: #182412;
}

.faq-posts-list > .faq-post:nth-child(even) .faq-post-header,
.faq-col .faq-post:nth-child(even) .faq-post-header {
  background-color: #10180c;
}

.faq-posts-list > .faq-post:nth-child(odd) .faq-post-title,
.faq-col .faq-post:nth-child(odd) .faq-post-title {
  color: var(--accent-bright);
}

.faq-posts-list > .faq-post:nth-child(even) .faq-post-title,
.faq-col .faq-post:nth-child(even) .faq-post-title {
  color: #7d9a4a;
}

.faq-post-header:hover {
  filter: brightness(1.08);
}

.faq-post-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 8px;
}

.faq-post-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  text-align: left;
  /* Always show full title — wraps naturally */
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.faq-post-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.25s ease,
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.faq-post-header[aria-expanded="true"] .faq-post-chevron {
  transform: rotate(180deg);
  color: var(--accent-bright);
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 2px 8px rgba(143,166,82,0.15);
}

.faq-chevron-icon {
  display: block;
}

.faq-post-chevron svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.faq-post-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-post[aria-expanded="true"] .faq-post-content {
  max-height: 5000px;
  padding: 0 20px 24px;
}

.faq-post-body {
  padding: 16px 28px 28px;
  border-top: 1px solid var(--border);
  animation: faqContentFade 0.3s ease-out;
  background-color: #080908;
  background-image: url("/assets/images/faq-answer-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes faqContentFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Markdown Content Styling ── */
.faq-post-body h1,
.faq-post-body h2,
.faq-post-body h3,
.faq-post-body h4 {
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.faq-post-body h1 { font-size: 1.3rem; }
.faq-post-body h2 { font-size: 1.15rem; }
.faq-post-body h3 { font-size: 1.02rem; color: var(--gold); }
.faq-post-body h4 { font-size: 0.95rem; color: var(--text); border-bottom: none; }

.faq-post-body h1:first-child,
.faq-post-body h2:first-child,
.faq-post-body h3:first-child {
  margin-top: 0;
}

.faq-post-body p {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.faq-post-body strong {
  color: var(--accent-bright);
  font-weight: 600;
}

.faq-post-body em {
  color: var(--text);
  font-style: italic;
}

.faq-post-body a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.faq-post-body a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

.faq-post-body ul,
.faq-post-body ol {
  margin: 0 0 14px;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.faq-post-body li {
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.faq-post-body li::marker {
  color: var(--accent);
}

.faq-post-body ol {
  list-style: decimal;
}

.faq-post-body ol li::marker {
  font-family: var(--display);
  font-weight: 600;
}

.faq-post-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 6px 6px 0;
}

.faq-post-body blockquote p {
  margin: 0;
  color: var(--text);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-post-body blockquote p:last-child {
  margin-bottom: 0;
}

.faq-post-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--accent-bright);
}

.faq-post-body pre {
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
}

.faq-post-body pre code {
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}

.faq-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.88rem;
}

.faq-post-body th,
.faq-post-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.faq-post-body th {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}

.faq-post-body td {
  color: var(--text);
}

.faq-post-body tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.faq-post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── Code block with copy button ── */
.faq-post-body .faq-code-block {
  margin: 16px 0;
  position: relative;
}

.faq-post-body .faq-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 14px;
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  position: relative;
}

.faq-post-body .faq-copy-btn:hover {
  background: var(--accent-bright);
}

.faq-post-body .faq-copy-btn:active {
  transform: scale(0.98);
}

.faq-copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  max-width: 90vw;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: pre-wrap;
  text-align: left;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.faq-copy-tooltip[hidden] {
  display: none;
}

.faq-post-body u .faq-media-link {
  color: inherit;
  border-bottom: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.faq-post-body u .faq-media-link:hover {
  color: var(--accent-bright);
  border-bottom: none;
}

.faq-post-body em .faq-media-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: none;
  cursor: pointer;
}

/* ── Available Now Badge ── */
.faq-badge-available {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent-bright);
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.faq-badge-available:hover {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.faq-badge-available:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-badge-icon {
  font-size: 0.7rem;
  opacity: 0.8;
}

.faq-badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: 90vw;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: normal;
  text-align: left;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: normal;
}

.faq-badge-tooltip::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--panel-raised);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.faq-badge-available.faq-badge-copied {
  background: var(--accent-bright);
  color: var(--bg-deep);
  border-color: var(--accent-bright);
}

/* ── Internal link styling ── */
.faq-post-body .faq-internal-link {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dashed var(--link);
  transition: color 0.15s, border-color 0.15s;
}

.faq-post-body .faq-internal-link:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

.faq-post-body .faq-media-link {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dashed var(--link);
}

.faq-post-body .faq-media-link:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* ── Interactive tooltip header (Ticket Mute Role, App Mute) ── */
.faq-tooltip-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--accent-bright);
  cursor: default;
  position: relative;
}

.faq-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: help;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.faq-tooltip-trigger:hover,
.faq-tooltip-trigger:focus-visible {
  background: var(--accent-dim);
  border-color: var(--accent-bright);
  outline: none;
}

.faq-tooltip-icon {
  display: block;
  color: var(--muted);
  width: 14px;
  height: 14px;
}

.faq-tooltip-trigger:hover .faq-tooltip-icon {
  color: var(--accent-bright);
}

.faq-tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  transform: none;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  white-space: normal;
  width: 280px;
  max-width: 90vw;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  z-index: 100;
  pointer-events: none;
}

.faq-tooltip-trigger:hover .faq-tooltip-text,
.faq-tooltip-trigger:focus-visible .faq-tooltip-text {
  display: block;
}

/* ── On-page FAQ media popup ── */
.faq-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.faq-media-lightbox[hidden] {
  display: none !important;
}

body.got-boa-page > .faq-media-lightbox {
  position: fixed;
  z-index: 5000;
}

.faq-media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 10, 6, 0.78);
  cursor: pointer;
}

.faq-media-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 95vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  padding: 14px 14px 16px;
}

.faq-media-lightbox.is-enlarged .faq-media-lightbox-panel {
  width: min(1200px, 100%);
  max-height: 96vh;
}

.faq-media-lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.faq-media-lightbox-title {
  margin: 0;
  flex: 1;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.faq-media-lightbox-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent-bright);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.faq-media-lightbox-enlarge,
.faq-media-lightbox-close {
  flex-shrink: 0;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent-bright);
  cursor: pointer;
}

.faq-media-lightbox-enlarge {
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq-media-lightbox-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1.35rem;
  line-height: 1;
}

.faq-media-lightbox-back:hover,
.faq-media-lightbox-back:focus-visible,
.faq-media-lightbox-enlarge:hover,
.faq-media-lightbox-close:hover,
.faq-media-lightbox-enlarge:focus-visible,
.faq-media-lightbox-close:focus-visible {
  border-color: var(--accent-bright);
  background: var(--accent-dim);
  outline: none;
}

.faq-media-lightbox-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  min-height: 160px;
}

.faq-media-lightbox-embed {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 720px);
  height: auto;
  border-radius: 4px;
  cursor: zoom-in;
}

.faq-media-lightbox.is-enlarged .faq-media-lightbox-embed {
  max-height: min(88vh, 1100px);
  cursor: zoom-out;
}

video.faq-media-lightbox-embed {
  width: 100%;
  background: #000;
  cursor: default;
}

iframe.faq-media-lightbox-embed {
  width: 100%;
  height: 80vh;
  max-height: 90vh;
  background: #000;
}

/* ── Unlisted media viewer (/faq/media/) ── */
.faq-media-main {
  max-width: 960px;
}

.faq-media-actions {
  margin: 0 0 16px;
}

.faq-media-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent-bright);
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.faq-media-back:hover,
.faq-media-back:focus-visible {
  border-color: var(--accent);
  background: var(--accent-dim);
  outline: none;
}

.faq-media-header h1 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 8px;
}

.faq-media-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.faq-media-stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.faq-media-embed {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

video.faq-media-embed {
  width: 100%;
  max-height: min(72vh, 720px);
  background: #000;
}

.faq-media-missing {
  color: var(--muted);
  margin: 0;
}

/* ── Subtext ── */
.faq-post-body .faq-subtext {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 4px 0 14px;
  line-height: 1.5;
}

/* ── BOA Callout ── */
.faq-post-body .boa-callout {
  background: var(--gold-dim);
  border: 1px solid rgba(196, 160, 53, 0.35);
  border-radius: 4px;
  padding: 12px 14px;
  margin: 16px 0;
  color: var(--text);
  font-size: 0.88rem;
}

/* ── Details ── */
.faq-post-body details {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 12px 0;
}

.faq-post-body summary {
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  user-select: none;
}

.faq-post-body details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-post-body details > *:not(summary) {
  padding: 0 16px 16px;
}

/* ── BOA Hub QNA — hollow bullets for command list ── */
#faq-post-boa-hub-qna .faq-post-body h2 ~ ul {
  list-style: circle;
  padding-left: 2rem;
}
/* Nested list markers — hollow circle for sub-items */
.faq-post-body ul ul li::marker {
  list-style-type: circle;
  color: var(--muted);
}

#faq-post-boa-hub-qna .faq-post-body h2 ~ ul li::marker {
  color: var(--accent);
  font-size: 0.9em;
}

/* ── Internal Wiki Forum — gold highlight card ── */
#faq-post-internal-wiki-forum {
  border: 2px solid var(--gold);
  position: relative;
}
#faq-post-internal-wiki-forum::before {
  content: 'PINNED';
  position: absolute;
  top: -1px;
  right: 44px;
  background: var(--gold);
  color: #111;
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 0 0 4px 4px;
  z-index: 1;
}

/* ── FAQ profile buttons (contact cards) ── */
.faq-profile-trigger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.faq-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.faq-profile-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-bright);
}
.faq-profile-btn-name {
  font-weight: 700;
  color: var(--accent-bright);
}
.faq-profile-btn-role {
  font-size: 0.8rem;
  color: var(--muted);
}
.faq-profile-btn:hover .faq-profile-btn-name {
  color: var(--accent-bright);
}

/* ── Footnote ── */
.faq-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.faq-footnote a {
  color: var(--link);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .faq-main {
    padding: 16px 12px 40px;
  }
  
  .faq-password-modal {
    padding: 28px 20px;
    border-radius: 8px;
  }
  
  .faq-hero h1 {
    font-size: 1.35rem;
  }
  
  .faq-search-wrap {
    padding: 16px;
  }
  
  .faq-search-input {
    padding: 12px 48px 12px 42px;
    font-size: 1rem; /* prevents zoom on iOS */
  }
  
  .faq-search-icon {
    left: 12px;
  }
  
  .faq-search-clear {
    right: 8px;
  }
  
  .faq-post-header {
    padding: 16px 16px;
  }
  
  .faq-post-title {
    font-size: 0.98rem;
  }
  
  .faq-post[aria-expanded="true"] .faq-post-content {
    padding: 0 16px 20px;
  }
  
  .faq-post-body {
    padding-top: 12px;
  }
  
  .faq-post-body h1 { font-size: 1.15rem; }
  .faq-post-body h2 { font-size: 1.05rem; }
  .faq-post-body h3 { font-size: 0.95rem; }
  
  .faq-post-body p,
  .faq-post-body li {
    font-size: 0.88rem;
  }
  
  .faq-post-body pre {
    padding: 12px;
    font-size: 0.78rem;
  }
  
  .faq-post-body table {
    font-size: 0.82rem;
  }
  
  .faq-post-body th,
  .faq-post-body td {
    padding: 8px 10px;
  }
  
  /* Toolbar responsiveness */
  .faq-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .faq-view-group {
    justify-content: center;
  }
  
  .faq-view-btn span {
    /* show text on mobile too */
  }
  
  .faq-toggle-group {
    justify-content: flex-end;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .faq-password-overlay,
  .faq-password-modal,
  .faq-post-content,
  .faq-post-body,
  .faq-no-results {
    animation: none !important;
    transition: none !important;
  }

  .faq-post-body {
    background-image: none;
  }
  
  .faq-post[aria-expanded="true"] .faq-post-content {
    max-height: none;
  }
}

/* ── Highlighted / Gold-Bordered Post (Internal Wiki Forum) ── */
#faq-post-internal-wiki-forum .faq-post-header {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(196, 160, 53, 0.15);
}
#faq-post-internal-wiki-forum[aria-expanded="true"] .faq-post-header {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(196, 160, 53, 0.25);
}

/* ── Profile Trigger Buttons (FAQ inline) ── */
.faq-profile-trigger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.faq-profile-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  background: var(--bg-deep);
  border: 1px solid var(--gold);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  min-width: 140px;
}
.faq-profile-btn:hover {
  background: var(--panel);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 160, 53, 0.2);
}
.faq-profile-btn-name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.03em;
}
.faq-profile-btn-role {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Visually Hidden ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}