/* /assets/css/discuss.css — Discussion Forum (GL-16a, TEST-ONLY).
   Loaded only by the *-preview pages. dq- prefix throughout; no existing
   selector is overridden. */

.dq-wrap { max-width: 860px; margin: 0 auto; padding: 4px 2px 40px; font-family: Inter, Arial, sans-serif; }
.dq-note { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 14px; }
.dq-msg  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 13.5px; }
.dq-hint { color: #6b7280; font-size: 12.5px; }
.dq-btn  { background: #4f46e5; color: #fff; border: 0; border-radius: 9px; padding: 9px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; display: inline-block; }
.dq-btn.sm { padding: 6px 12px; font-size: 12.5px; }
.dq-btn.ghost { background: #eef2ff; color: #3730a3; }
.dq-lnk  { background: none; border: 0; color: #4f46e5; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.dq-pick { display: flex; gap: 10px; align-items: center; margin: 14px 0; font-size: 14px; }
.dq-pick input { border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; width: 160px; font-size: 14px; }

/* job header */
.dq-job { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; margin: 12px 0 16px; }
.dq-title { font-size: 20px; font-weight: 800; color: #111827; margin: 0 0 6px; }
.dq-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #4b5563; font-size: 13.5px; }
.dq-job-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: 0 0 auto; }
.dq-pill { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.dq-pill.hot { background: #fee2e2; color: #b91c1c; }
.dq-pill.closed { background: #f3f4f6; color: #6b7280; }

/* ask box */
.dq-ask { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.dq-ask h2 { font-size: 15px; margin: 0 0 10px; color: #111827; }
.dq-ask textarea, .dq-replyform textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box; }
.dq-askrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* questions & replies */
.dq-q { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.dq-q > header, .dq-r > header { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: #6b7280; }
.dq-who { font-weight: 700; color: #111827; font-size: 13px; }
.dq-when { flex: 0 0 auto; }
.dq-report { margin-left: auto; color: #9ca3af; font-size: 12px; text-decoration: none; }
.dq-report:hover { color: #ef4444; text-decoration: underline; }
.dq-body { margin: 6px 0 4px; font-size: 14.5px; color: #1f2937; line-height: 1.55; word-break: break-word; }
.dq-replies { margin-top: 6px; padding-left: 14px; border-left: 3px solid #eef2ff; }
.dq-r { padding: 8px 0 6px; border-bottom: 1px dashed #f3f4f6; }
.dq-r.top { background: #f0fdf4; border-radius: 10px; padding: 8px 10px; border-bottom: 0; }
.dq-topbadge { background: #16a34a; color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; }
.dq-ract { margin-top: 4px; }
.dq-confirm { background: #f3f4f6; border: 1px solid #e5e7eb; color: #374151; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dq-confirm.on { background: #dcfce7; border-color: #86efac; color: #166534; }
.dq-confirm.ro { cursor: default; }
.dq-replyform { margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; }
.dq-empty { background: #fff; border: 1px dashed #d1d5db; border-radius: 14px; padding: 26px; text-align: center; color: #6b7280; font-size: 14px; }
.dq-pages { display: flex; justify-content: space-between; margin-top: 6px; }

/* chip (mock only in GL-16a) */
.dq-chip { display: inline-flex; align-items: center; gap: 6px; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.dq-chip:hover { background: #e0e7ff; }

/* mock section */
.dq-mock { border: 2px dashed #c7d2fe; border-radius: 14px; padding: 16px 18px; margin-top: 22px; background: #fafaff; }
.dq-mock h2 { font-size: 13px; letter-spacing: .06em; color: #4338ca; margin: 0 0 4px; }
.dq-mockcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.dq-mockrow { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 14px; margin: 10px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dq-mocktitle { font-weight: 800; font-size: 15px; color: #111827; }
.dq-mocktitle.sm { font-size: 14px; }
.dq-mockmeta { color: #4b5563; font-size: 13px; margin: 4px 0 8px; }
.dq-mockact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dq-mockbtn { background: #f3f4f6; border-radius: 9px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: #374151; }
.dq-mockbtn.pri { background: #4f46e5; color: #fff; }
.dq-badge { background: #dcfce7; color: #166534; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; }
.dq-mocktag { background: #eef2ff; color: #3730a3; border-radius: 6px; padding: 2px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.dq-mockleft { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 4px 8px; font-size: 11px; font-weight: 800; text-align: center; line-height: 1.15; }
.dq-mocklbl { color: #9ca3af; font-size: 11px; margin-left: auto; }

/* moderation page */
.dq-mod-wrap { max-width: 980px; margin: 30px auto; padding: 0 14px 50px; font-family: Inter, Arial, sans-serif; }
.dq-mod-wrap h1 { font-size: 20px; }
.dq-mod-wrap h2 { font-size: 15px; margin-top: 22px; }
.dq-mod-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.dq-mod-meta { color: #6b7280; font-size: 12.5px; }
.dq-mod-act { margin-top: 8px; }
.dq-mod-tbl { border-collapse: collapse; width: 100%; font-size: 12.5px; background: #fff; }
.dq-mod-tbl th, .dq-mod-tbl td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: left; vertical-align: top; }

@media (max-width: 640px) {
  .dq-job { flex-direction: column; }
  .dq-job-side { align-items: flex-start; flex-direction: row; }
}

/* ===== GL-16a.2 enhancements (approved mock) - additive block ===== */
.dq-stats { display: flex; gap: 14px; color: #6b7280; font-size: 13px; font-weight: 600; margin: -6px 0 14px; padding-left: 2px; flex-wrap: wrap; }
.dq-stats b { color: #111827; }
.dq-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.dq-ava.a1 { background: #6366f1; } .dq-ava.a2 { background: #0ea5e9; } .dq-ava.a3 { background: #10b981; }
.dq-ava.a4 { background: #f59e0b; } .dq-ava.a5 { background: #ec4899; } .dq-ava.a6 { background: #8b5cf6; }
.dq-q > header { align-items: center; gap: 10px; }
.dq-you { background: #eef2ff; color: #4338ca; border-radius: 6px; padding: 1px 7px; font-size: 10.5px; font-weight: 800; }
.dq-acount { background: #f3f4f6; color: #374151; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; flex: none; }
.dq-acount.zero { background: #fff7ed; color: #9a3412; }
.dq-r.top { border: 1px solid #bbf7d0; background: #f0fdf4; }
.dq-more { border: 0; background: #f3f4f6; color: #374151; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; margin: 8px 0 2px; }
.dq-ans { border: 0; background: #eef2ff; color: #3730a3; border-radius: 9px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dq-charhint { margin-left: auto; color: #9ca3af; font-size: 11.5px; flex: none; }
.dq-msg.info { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dq-msg.info a { color: #92400e; font-weight: 800; }
.dq-flash { animation: dqFlash 2.2s ease-out 1; border-color: #fbbf24 !important; }
@keyframes dqFlash { 0% { box-shadow: 0 0 0 4px #fde68a; } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.dq-report svg { vertical-align: -2px; }
/* live-bug fix: display:flex was overriding the hidden attribute, leaving
   every reply composer permanently open - hidden now wins */
.dq-replyform[hidden] { display: none; }
.dq-sortbar { display: flex; gap: 8px; margin: 0 0 12px; }
.dq-sort { border: 1px solid #e5e7eb; background: #fff; color: #3c4560; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.dq-sort.on { background: #4f46e5; border-color: #4f46e5; color: #fff; }
@media (max-width: 640px) {
  .dq-wrap { padding-left: 0; padding-right: 0; }
  .dq-confirm { padding: 7px 14px; }
  .dq-ans, .dq-more { padding: 9px 16px; }
  /* headers wrap instead of pushing Report off the right edge */
  .dq-q > header, .dq-r > header { flex-wrap: wrap; row-gap: 4px; }
}

/* ===== GL-16 admin stage: FJA Team official answers (additive) ===== */
.dq-r.official { border: 1px solid #c7d2fe; background: #eef2ff66; border-radius: 10px; padding: 8px 10px; border-bottom: 0; }
.dq-ava.fja { background: #312e81; flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.dq-obadge { background: #4f46e5; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 800; }

/* ===== GL-16c: Discussions home (/discussions) ===== */
.dq-home .dq-hsearch { display: flex; gap: 8px; margin: 14px 0 18px; }
.dq-home .dq-hsearch input { flex: 1; min-width: 0; border: 1px solid #d7dbe3; border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; background: #fff; }
.dq-home .dq-hsearch input:focus { outline: 2px solid #c7d2fe; border-color: #a5b4fc; }
.dq-hsec { margin: 18px 0 6px; }
.dq-hsec h2 { font-size: 16.5px; font-weight: 800; margin: 0 0 2px; }
.dq-hsec .dq-hint { margin: 0 0 8px; }
.dq-hrow { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-top: 1px solid #eef0f4; }
.dq-hrow:first-of-type { border-top: 0; }
.dq-htag { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-radius: 6px; padding: 3px 8px; background: #e7e5ff; color: #4338ca; }
.dq-hmain { flex: 1; min-width: 0; }
.dq-ht { font-weight: 700; font-size: 14px; color: #111827; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-ht:hover { color: #4338ca; }
.dq-hm { font-size: 12px; color: #6b7280; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-hrow .dq-pill { flex: none; }
.dq-hrow .dq-chip { flex: none; }
/* GL-20 (owner chose mock Option B): solid View Details button - the direct
   job-article link at the right end of the home rows (search results,
   Recently active, Most discussed). */
.dq-vd { flex: none; display: inline-flex; align-items: center; background: #4338ca; color: #fff; border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dq-vd:hover { background: #3730a3; }
/* GL-16d (F-5, owner-approved mock): phone rows read as three lines -
   full-width title, then ONE meta line, then the days pill + chip. */
@media (max-width: 640px) {
  .dq-hrow { flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; padding: 12px 2px; }
  .dq-hrow .du-tc { margin-top: 2px; }
  .dq-hmain { flex: 1 1 calc(100% - 58px); }
  .dq-ht { white-space: normal; }
  .dq-hm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
           margin-top: 4px; margin-left: -52px; }   /* outdent under the tag */
  .dq-hrow .dq-pill { order: 3; }
  .dq-hrow .dq-chip { order: 4; }
  .dq-hrow .dq-chip .dq-lbl { display: none; } /* tight rows: icon + count */
  /* GL-20: View Details joins the SAME action line, pushed to the right end */
  .dq-hrow .dq-vd { order: 5; margin-left: auto; }
}

/* ===== GL-16c.2: typed result tags + Jobs-only filter pills ===== */
.dq-fpills { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; }
.dq-fpill { border: 1px solid #d7dbe3; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; color: #4b5563; text-decoration: none; background: #fff; }
.dq-fpill.on { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.dq-fpill:not(.on):hover { background: #eef2ff; color: #3730a3; }
.tc-other { background: #eef2f7; color: #475569; }

/* ===== GL-16d: public read ===== */
/* Minimal shell for visitors outside the dashboard chrome (anonymous, or
   logged in under another role): slim top bar + centered content column. */
.dqp-top { background: #fff; border-bottom: 1px solid #e6e8ef; position: sticky; top: 0; z-index: 40; }
.dqp-in { max-width: 1060px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-family: Inter, Arial, sans-serif; }
.dqp-logo { font-size: 17px; font-weight: 900; color: #17203a; text-decoration: none; letter-spacing: -.01em; }
.dqp-logo b { color: #4f46e5; }
.dqp-tag { background: #eef2ff; color: #3730a3; border-radius: 6px; padding: 2px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dqp-sp { flex: 1; }
.dqp-btn { background: #4f46e5; color: #fff; border-radius: 9px; padding: 8px 16px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dqp-btn:hover { background: #4338ca; }
.dqp-btn.ghost { background: #fff; color: #3730a3; border: 1px solid #c7d2fe; }
.dqp-btn.ghost:hover { background: #eef2ff; }
.dqp-main { font-family: Inter, Arial, sans-serif; }
.dqp-main .dq-wrap { max-width: 860px; margin: 18px auto 40px; padding: 0 14px; }
@media (max-width: 640px) { .dqp-in { padding: 10px 12px; } .dqp-tag { display: none; } }
/* anonymous sign-in row in the ask box */
.dq-signin { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dq-signin .dq-btn { text-decoration: none; }
/* anon Helpful/Report render as links - keep them looking like the controls */
a.dq-confirm.ro { text-decoration: none; }
a.dq-report { text-decoration: none; }

/* GL-16e: posting-limits line under the composer */
.dq-limits { display: block; margin-top: 7px; }

/* GL-16e.2 (O-10, mock D): login-style lockup in the public-shell header */
.dqp-logo { display: inline-flex; align-items: center; text-decoration: none; }
.dqp-logoimg { display: block; height: 38px; width: auto; border-radius: 4px; }
.dqp-wordmark { font-weight: 900; font-size: 17px; line-height: 1.1; color: #17203a; margin-left: 9px; letter-spacing: -.01em; }
.dqp-wordmark small { display: block; font-weight: 600; font-size: 9.5px; line-height: 1.3; color: #8a93a8; letter-spacing: 0; }
@media (max-width: 379px) { .dqp-wordmark small { display: none; } } /* ultra-narrow guard */

/* SR-1 (12 Oct 2026): search facet chips + latest-jobs fallback */
.dq-facets { margin: 14px 0 0; color: #6b7280; font-size: 13px; }
.dq-fc { display: inline-block; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: 12.5px; margin-left: 6px; }
