/* Interview question bank: role pages (/tools/interview-questions/<slug>/) and the search page
   (/tools/question-bank/). Extends tools.css + questions.css with the same tokens. Light only. */

[hidden] { display: none !important; }

/* ---------- Role pages ---------- */
.qb-role .q-sidebar { position: static; }
.qb-byline { margin: 4px 0 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.qb-search-line { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }
.qb-search-line a, .qb-share-line a { color: var(--accent-ink); font-weight: 600; }
.qb-cat, .qb-cat-title, .q-card, .qb-section, #qb-app { scroll-margin-top: 84px; }
.qb-cat-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 36px 0 16px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.qb-cat:first-of-type .qb-cat-title { margin-top: 28px; }
.qb-cat-n { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink-4); }
.badge.qb-round { background: var(--surface); color: var(--ink-2); border: 1px solid var(--hair-2); }
.badge.qb-level { background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--hair); }

.qb-code { margin-bottom: 14px; }
.qb-code-label, .qb-next-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; }
.qb-code pre { margin: 0; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-sm); overflow-x: auto; max-width: 100%; }
.qb-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; color: var(--ink); white-space: pre; }

.qb-next { border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 14px; background: var(--paper); border: 1px dashed var(--hair-3); }
.qb-next ul { margin: 0; padding-left: 18px; }
.qb-next li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 4px; }
.qb-next li:last-child { margin-bottom: 0; }

.qb-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.qb-actions a.btn-copy { text-decoration: none; }
.qb-save[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }

.qb-share-line { margin: 8px 0 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.qb-share-line span { font-size: 13px; color: var(--ink-3); }

.qb-reports { margin: 8px 0 20px; padding: 20px; background: var(--surface); border: 1px solid var(--warn-line); border-radius: var(--r-md); }
.qb-rep-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }

/* ---------- Shared labels ---------- */
.qb-tag { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.qb-tag-practice { background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--hair-2); }
.qb-tag-reported { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }
.qb-note { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; margin: 0 0 12px; }
.qb-meta { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin: 6px 0 0; }
.qb-rep { list-style: none; padding: 12px 0; border-top: 1px solid var(--hair); }
.qb-rep:first-child { border-top: 0; }
.qb-rep-q { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.qb-recent-list { margin: 0; padding: 0; }

/* ---------- Bank page ---------- */
.qb-wrap { padding-top: 8px; }
.qb-hero { text-align: center; margin: 12px auto 24px; max-width: 760px; }
.qb-hero h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); margin: 12px 0 14px; }
.qb-hero .sub { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-3); line-height: 1.6; margin: 0; }

.qb-labels { display: grid; gap: 8px; max-width: 760px; margin: 0 auto 24px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); }
.qb-labels p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.qb-labels .qb-tag { margin-right: 6px; }

.qb-app { max-width: 860px; margin: 0 auto 40px; padding: 20px; }
.qb-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--hair); }
.qb-tabs button { font: 600 14px var(--sans); color: var(--ink-3); background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px 10px; margin-bottom: -1px; cursor: pointer; }
.qb-tabs button[aria-selected="true"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
.qb-tabs button:focus-visible, .qb-q:focus-visible, .qb-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.qb-search input[type="search"] { width: 100%; font: 400 16px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--hair-2); border-radius: var(--r-sm); padding: 12px 14px; -webkit-appearance: none; appearance: none; }
.qb-search input[type="search"]:focus, .qb-share input:focus, .qb-share textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qb-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.qb-filters select { font-size: 14px; }
.qb-filters > div:nth-child(2) { grid-column: span 2; }
.qb-search-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.qb-status { font-size: 13.5px; color: var(--ink-3); margin: 14px 0 6px; }

.qb-results { list-style: none; margin: 0; padding: 0; }
.qb-item { padding: 14px 0; border-top: 1px solid var(--hair); }
.qb-item:first-child { border-top: 0; }
.qb-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: 600 16px/1.45 var(--sans); color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
button.qb-q::after { content: "+"; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 16px; line-height: 22px; text-align: center; }
button.qb-q[aria-expanded="true"]::after { content: "\2212"; }
.qb-q code, .q-title code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 4px; padding: 0 4px; }
.qb-q:hover { color: var(--accent-ink); }
.qb-q-link { text-decoration: none; }
.qb-item-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.qb-open { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.qb-more { margin-top: 10px; width: 100%; }

.qb-detail { margin-top: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-2); }
.qb-a { margin-bottom: 12px; }
.qb-a p { margin: 0 0 6px; line-height: 1.6; }
.qb-a-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 6px; }
.qb-a-frame .qb-a-label { color: var(--ok); }
.qb-a-sample p { color: var(--ink); }

.qb-section { max-width: 860px; margin: 0 auto 40px; }
.qb-section h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
.qb-section.panel { padding: 20px; }

.qb-share-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.qb-share input[type="text"], .qb-share textarea { font-size: 16px; }
.qb-share-qs { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.qb-share-qs legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.qs-q { margin-bottom: 10px; }
.qs-q label { font-weight: 500; color: var(--ink-3); }
.qb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 16px 0 6px; line-height: 1.5; cursor: pointer; }
.qb-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }

.qb-dir { columns: 1; column-gap: 32px; margin-top: 16px; }
.qb-dir-group { break-inside: avoid; page-break-inside: avoid; margin-bottom: 24px; }
.qb-dir-group h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.qb-dir-total { font-size: 12.5px; font-weight: 600; color: var(--ink-4); }
.qb-dir-group ul { list-style: none; margin: 0; padding: 0; }
.qb-dir-group li { padding: 4px 0; font-size: 14.5px; line-height: 1.45; }
.qb-dir-group a { color: var(--ink); font-weight: 600; text-decoration: none; }
.qb-dir-group a:hover { color: var(--accent-ink); text-decoration: underline; }
.qb-dir-n { display: block; font-size: 12.5px; color: var(--ink-4); }

.qb-print-area { display: none; }

@media (min-width: 700px) {
  .qb-app, .qb-section.panel { padding: 28px; }
  .qb-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .qb-filters > div:nth-child(2) { grid-column: auto; }
  .qb-share-grid { grid-template-columns: 1fr 1fr; }
  .qb-dir { columns: 2; }
}
@media (min-width: 1000px) {
  .qb-dir { columns: 3; }
  #directory { max-width: none; }
}
@media (max-width: 640px) {
  .qb-wrap, .qb-role .wrap { padding-left: 16px; padding-right: 16px; }
  .qb-cat-title { font-size: 19px; }
  .qb-code pre { padding: 12px; }
}

@media print {
  .qb-role .qb-actions, .qb-share-line, #qb-reports { display: none !important; }
  .qb-printing .nav-outer, .qb-printing .wrap > *:not(.qb-print-area), .qb-printing footer { display: none !important; }
  .qb-printing .qb-print-area { display: block; }
  .qb-print-item { break-inside: avoid; page-break-inside: avoid; margin-bottom: 18px; }
  .qb-print-area h2 { font-size: 20px; margin-bottom: 12px; }
  .qb-print-area h3 { font-size: 16px; margin-bottom: 4px; }
}
