/* ==========================================================================
   Trader questions: hub, question page, homepage strip, Learn block.

   Loaded on those four only (inc/trader-questions.php). Colours are written
   as values, not style.css tokens, because the homepage does not load
   style.css (page-home-v2.php) and this file must look the same there.
   Obsidian #0A0A0A, panel #131416, Ocean #2785E5 (text, accents), Ocean fill
   #1D6BC0 (behind white text only), Slate #8E9296 / #B4B9BD (muted text).
   ========================================================================== */

.bn-tq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- search box ---------- */
.bn-tq-search { position: relative; display: flex; align-items: center; width: 100%; margin: 0 auto; }
.bn-tq-search-large { max-width: 720px; height: 64px; }
.bn-tq-search-compact { max-width: 560px; height: 48px; margin: 0; }
.bn-tq-search .bn-tq-input {
  width: 100%; height: 100%; margin: 0; box-sizing: border-box;
  background: #131416; color: #FFFFFF;
  border: 1px solid #2A2D30; border-radius: 999px;
  font-family: 'Manrope', sans-serif; font-weight: 400;
  -webkit-appearance: none; appearance: none; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.bn-tq-search-large .bn-tq-input { font-size: 18px; padding: 0 64px 0 60px; }
.bn-tq-search-compact .bn-tq-input { font-size: 15px; padding: 0 48px 0 46px; }
.bn-tq-search .bn-tq-input::placeholder { color: #8E9296; opacity: 1; }
.bn-tq-search .bn-tq-input:focus { border-color: #2785E5; box-shadow: 0 0 0 4px rgba(39,133,229,.16); }
.bn-tq-search .bn-tq-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.bn-tq-search-icon { position: absolute; top: 50%; transform: translateY(-50%); color: #8E9296; pointer-events: none; display: flex; }
.bn-tq-search-large .bn-tq-search-icon { left: 24px; }
.bn-tq-search-compact .bn-tq-search-icon { left: 17px; }
.bn-tq-kbd {
  position: absolute; top: 50%; transform: translateY(-50%); right: 22px;
  min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #2F3236; border-radius: 6px; color: #8E9296;
  font: 500 13px/1 'Manrope', sans-serif; pointer-events: none;
}
.bn-tq-search-compact .bn-tq-kbd { right: 14px; }
@media (hover: none), (max-width: 860px) { .bn-tq-kbd { display: none; } }

.bn-tq-results {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  background: #131416; border: 1px solid #2A2D30; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 8px; text-align: left;
  max-height: min(70vh, 520px); overflow-y: auto;
}
.bn-tq-results[hidden] { display: none; }
.bn-tq-opt { display: block; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: #FFFFFF; }
.bn-tq-opt:hover, .bn-tq-opt.is-active { background: #1B1D20; text-decoration: none; }
.bn-tq-opt-t { display: block; font: 500 16px/1.35 'Manrope', sans-serif; color: #FFFFFF; }
.bn-tq-opt-e { display: block; margin-top: 3px; font: 400 13px/1.45 'Manrope', sans-serif; color: #8E9296; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-tq-hl { background: none; color: #2785E5; padding: 0; }
.bn-tq-none { padding: 14px 16px; font: 400 15px/1.5 'Manrope', sans-serif; color: #B4B9BD; }
.bn-tq-none a { color: #2785E5; font-weight: 600; white-space: nowrap; }

/* ---------- hub ---------- */
.bn-tq-hub .wrap { max-width: 920px; }
.bn-tq-hero { text-align: center; padding: clamp(56px, 12vh, 150px) 0 clamp(40px, 6vh, 64px); }
.bn-tq-kicker {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 12px; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase; color: #8E9296; margin: 0;
}
.bn-tq-h1 {
  font-family: 'Jost', sans-serif; font-weight: 500; color: #FFFFFF;
  font-size: clamp(32px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.015em;
  max-width: 15em; margin: 18px auto clamp(28px, 4vw, 44px);
}
.bn-tq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.bn-tq-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; box-sizing: border-box;
  border: 1px solid #2A2D30; border-radius: 999px; color: #D6D9DB; background: transparent;
  font: 500 14px/1 'Manrope', sans-serif; text-decoration: none; transition: border-color .15s, color .15s;
}
.bn-tq-chip:hover, .bn-tq-chip:focus-visible { border-color: #2785E5; color: #FFFFFF; text-decoration: none; }

.bn-tq-most { max-width: 720px; margin: 0 auto; padding-bottom: clamp(64px, 9vw, 120px); }
.bn-tq-most > .bn-tq-kicker { margin-bottom: 14px; }
.bn-tq-acc { border-top: 1px solid #1F2123; }
.bn-tq-acc-item { border-bottom: 1px solid #1F2123; }
.bn-tq-acc-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px; font: 500 18px/1.35 'Jost', sans-serif; color: #FFFFFF;
}
.bn-tq-acc-item summary::-webkit-details-marker { display: none; }
.bn-tq-acc-item summary:hover { color: #2785E5; }
.bn-tq-acc-plus { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.bn-tq-acc-plus::before, .bn-tq-acc-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: #8E9296; transition: transform .2s; }
.bn-tq-acc-plus::after { transform: rotate(90deg); }
.bn-tq-acc-item[open] .bn-tq-acc-plus::after { transform: rotate(0); }
.bn-tq-acc-body { padding: 0 34px 22px 2px; }
.bn-tq-acc-body p { margin: 0 0 12px; color: #B4B9BD; font-size: 15px; line-height: 1.65; }
.bn-tq-acc-body a { color: #2785E5; font-weight: 600; font-size: 14px; }

.bn-tq-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; box-sizing: border-box;
  border: 1px solid #2A2D30; border-radius: 999px; color: #D6D9DB;
  font: 500 14px/1.2 'Manrope', sans-serif; text-decoration: none; transition: border-color .15s, color .15s;
}
.bn-tq-pill:hover { border-color: #2785E5; color: #FFFFFF; text-decoration: none; }
.bn-tq-pill-go { color: #2785E5; }
.bn-tq-all { margin-top: 28px; }
.bn-tq-all > summary { list-style: none; cursor: pointer; }
.bn-tq-all > summary::-webkit-details-marker { display: none; }
.bn-tq-all[open] > summary { border-color: #2785E5; }
.bn-tq-all-list { margin-top: 28px; display: grid; gap: 28px; }
.bn-tq-all-group h3 { font: 600 12px/1.4 'Manrope', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8E9296; margin: 0 0 8px; }
.bn-tq-empty { text-align: center; color: #B4B9BD; padding-bottom: 96px; }

.bn-tq-linklist { list-style: none; margin: 0; padding: 0; }
.bn-tq-linklist li { border-bottom: 1px solid #1F2123; }
.bn-tq-linklist a { display: block; padding: 12px 0; color: #FFFFFF; font-size: 16px; line-height: 1.45; text-decoration: none; }
.bn-tq-linklist a:hover { color: #2785E5; }

/* ---------- question page ---------- */
.bn-tq-single-search { margin: 0 0 clamp(32px, 4vw, 48px); }
.bn-tq-article .bn-eyebrow { margin-bottom: 14px; }
.bn-tq-fit-head { margin-bottom: 24px; }
.bn-tq-fit-head h2 { margin: 10px 0 0; }
.bn-tq-fit-note { margin-top: 18px; max-width: 96ch; }
.bn-tq-fit-risk { max-width: 96ch; }
.bn-tq-broker .bn-directory-id { margin-bottom: 18px; }
.bn-tq-related { max-width: 760px; }
.bn-tq-related h2 { margin: 10px 0 14px; }

/* ---------- homepage: latest from the desk ---------- */
.bn-tq-desk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; max-width: none !important; }
.bn-tq-desk-all { color: #2785E5; font-weight: 500; font-size: 15px; white-space: nowrap; }
.bn-tq-desk-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.bn-tq-desk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 900px) { .bn-tq-desk-grid { grid-template-columns: 1fr; } }
.bn-tq-desk-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: #131416; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; transition: border-color .15s;
}
.bn-tq-desk-card:hover { border-color: rgba(39,133,229,.55); }
.bn-tq-desk-img { aspect-ratio: 16 / 10; overflow: hidden; background: #17181A; }
.bn-tq-desk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-tq-desk-img.is-empty { background: radial-gradient(circle at 50% 50%, rgba(39,133,229,.18) 0%, transparent 60%), #131416; position: relative; }
/* No featured image: the same placeholder as /blog/'s cards (a soft Ocean glow
   and the wordmark's dot), so it reads as "no image", not as a broken one. */
.bn-tq-desk-img.is-empty::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #2785E5; transform: translate(-50%, -50%); }
.bn-tq-desk-body { padding: clamp(20px, 2vw, 26px); display: flex; flex-direction: column; flex: 1; }
.bn-tq-desk-cat { font: 600 11px/1.4 'Manrope', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #2785E5; margin-bottom: 10px; }
.bn-tq-desk-title { font: 600 20px/1.25 'Jost', sans-serif; letter-spacing: -.01em; color: #FFFFFF; margin: 0 0 16px; }
.bn-tq-desk-meta { margin-top: auto; font-size: 12px; line-height: 1.5; color: #8E9296; }
.bn-tq-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.075); }
.bn-tq-quick-pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- homepage: announcement bar ---------- */
.bn-tq-announce { background: #111213; border-bottom: 1px solid rgba(255,255,255,.075); }
.bn-tq-announce-in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; position: relative; padding-right: 56px !important; padding-left: 56px !important; }
.bn-tq-announce a { color: #D6D9DB; font-size: 14px; line-height: 1.4; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-tq-announce a:hover { color: #FFFFFF; }
.bn-tq-announce-new { color: #2785E5; font-weight: 600; }
.bn-tq-announce-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: #8E9296; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; }
.bn-tq-announce-x:hover { color: #FFFFFF; background: rgba(255,255,255,.06); }
@media (max-width: 560px) { .bn-tq-announce-in { justify-content: flex-start; padding-left: 16px !important; } }

/* ---------- Learn: quick answers ---------- */
.bn-tq-learn .bn-tq-search { margin-bottom: 20px; }
.bn-tq-learn .bn-tq-linklist { max-width: 760px; margin-bottom: 20px; }
