/* /questions v2 — external CSS, cached 1y. Replaces 22 KB inline <style>. */

.qa-hero { background: linear-gradient(135deg,#1a56db 0%,#0e3a99 100%); color:#fff; padding:48px 0 36px; }
.qa-hero-eyebrow { display:inline-block; background:rgba(255,255,255,.15); color:#fff; font-size:12px; font-weight:600; letter-spacing:1px; text-transform:uppercase; padding:6px 14px; border-radius:20px; margin-bottom:18px; }
.qa-hero-title { font-size:36px; line-height:1.15; font-weight:800; margin:0 0 14px; color:#fff; }
.qa-hero-sub { font-size:16px; line-height:1.55; opacity:.92; margin:0 0 22px; max-width:680px; }
.qa-hero-sub strong { color:#fff; }
.qa-search { display:flex; gap:8px; max-width:600px; background:#fff; padding:6px; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.18); }
.qa-search input { flex:1; border:0; outline:0; padding:12px 16px; font-size:16px; color:#111; background:transparent; }
.qa-search button { background:#0e3a99; color:#fff; border:0; padding:12px 22px; border-radius:8px; font-weight:600; cursor:pointer; }
.qa-search button:hover { background:#1a56db; }

.qa-layout { display:grid; grid-template-columns: 1fr 320px; gap:32px; margin:32px auto; }
@media (max-width: 900px) { .qa-layout { grid-template-columns: 1fr; } .qa-aside { order:2; } }

.qa-filterbar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid #e5e7eb; }
.qa-filterbar a { color:#475569; text-decoration:none; padding:8px 14px; border-radius:8px; font-weight:600; font-size:14px; }
.qa-filterbar a:hover { background:#f1f5f9; color:#0e3a99; }
.qa-filterbar a.active { background:#0e3a99; color:#fff; }

.qa-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px; }
.qa-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:18px 20px; min-width:0; }
.qa-card-title { font-size:17px; font-weight:700; line-height:1.35; margin:0 0 6px; }
.qa-card-title a { color:#0f172a; text-decoration:none; }
.qa-card-title a:hover { color:#1a56db; }
.qa-card-excerpt { color:#475569; font-size:14px; line-height:1.55; margin:0 0 10px; }
.qa-card-meta { display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center; font-size:12px; color:#64748b; }
.qa-meta-pill { background:#f1f5f9; color:#475569; padding:3px 10px; border-radius:999px; font-weight:600; }
.qa-meta-pill.qa-meta-cat { background:#dbeafe; color:#1e40af; text-decoration:none; }
.qa-meta-pill.qa-meta-cat:hover { background:#bfdbfe; }
.qa-meta-time { margin-left:auto; color:#94a3b8; }

.qa-empty { background:#f8fafc; border:1px dashed #cbd5e1; border-radius:12px; padding:32px; text-align:center; color:#64748b; }

/* Legacy pagination (kept for snapshot HTML written before sprint-14). */
.qa-pagination { display:flex; gap:6px; margin:24px 0; flex-wrap:wrap; align-items:center; }
.qa-page { display:inline-block; min-width:38px; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; text-decoration:none; color:#475569; font-weight:600; text-align:center; }
.qa-page:hover { background:#f1f5f9; color:#0e3a99; border-color:#cbd5e1; }
.qa-page-current { background:#0e3a99; color:#fff; border-color:#0e3a99; }
.qa-ellipsis { padding:0 4px; color:#94a3b8; }

/* ─────────────────────────────────────────────────────────────
   Enterprise pagination (sprint-14 2026-06-28)
   Minimal · accessible · responsive · SEO-aware
   ───────────────────────────────────────────────────────────── */

/* Status bar: "Showing X-Y of Z" + per-page selector */
.qa-pgr-status {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin: 20px 0 14px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  color: #475569;
}
.qa-pgr-range strong { color: #0f172a; font-weight: 700; }
.qa-pgr-perpage { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.qa-pgr-perpage label {
  font-size: 12.5px; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: .04em;
}
.qa-pgr-perpage select {
  padding: 6px 28px 6px 12px;
  border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff;
  font-size: 13.5px; font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .15s, box-shadow .15s;
}
.qa-pgr-perpage select:hover { border-color: #94a3b8; }
.qa-pgr-perpage select:focus { outline: none; border-color: #0e3a99; box-shadow: 0 0 0 3px rgba(14,58,153,0.15); }

/* Main pager wrapper */
.qa-pgr {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin: 22px 0 32px;
}

/* Desktop page-number list */
.qa-pgr-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 4px;
}
.qa-pgr-list li { display: flex; }

/* Button base */
.qa-pgr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background .15s, color .15s, border-color .15s, transform .08s;
  user-select: none;
}
.qa-pgr-btn:hover {
  background: #f1f5f9; color: #0e3a99; border-color: #cbd5e1;
}
.qa-pgr-btn:active { transform: translateY(1px); }
.qa-pgr-btn:focus-visible {
  outline: none; border-color: #0e3a99;
  box-shadow: 0 0 0 3px rgba(14,58,153,0.18);
}
.qa-pgr-edge { color: #64748b; font-size: 18px; font-weight: 500; }
.qa-pgr-btn.is-current {
  background: #0f172a; color: #fff; border-color: #0f172a;
  cursor: default; pointer-events: none;
  box-shadow: 0 2px 6px -1px rgba(15,23,42,0.35);
}
.qa-pgr-btn.is-disabled {
  color: #cbd5e1; background: #f8fafc; border-color: #e2e8f0;
  cursor: not-allowed; pointer-events: none;
}
.qa-pgr-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 40px;
  color: #94a3b8; font-size: 16px; letter-spacing: 2px;
}

/* Jump-to-page form */
.qa-pgr-jump {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0;
  font-size: 13px; color: #64748b;
}
.qa-pgr-jump label {
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px;
}
.qa-pgr-jump input[type="number"] {
  width: 72px; height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1; border-radius: 7px;
  font-size: 14px; font-weight: 600; color: #0f172a;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
}
.qa-pgr-jump input[type="number"]::-webkit-outer-spin-button,
.qa-pgr-jump input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.qa-pgr-jump input[type="number"]:focus { outline: none; border-color: #0e3a99; box-shadow: 0 0 0 3px rgba(14,58,153,0.15); }
.qa-pgr-go {
  height: 36px;
  padding: 0 14px;
  background: #0f172a; color: #fff;
  border: 0; border-radius: 7px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.qa-pgr-go:hover { background: #1e293b; }
.qa-pgr-go:active { background: #0f172a; }

/* Mobile collapsed pager (hidden on desktop) */
.qa-pgr-mobile { display: none; }

/* Responsive: collapse to Prev · page X of Y · Next under 720px */
@media (max-width: 720px) {
  .qa-pgr-status { padding: 12px 14px; font-size: 12.5px; gap: 8px; }
  .qa-pgr { gap: 12px; }
  .qa-pgr-list { display: none; }
  .qa-pgr-jump { display: none; }
  .qa-pgr-mobile {
    display: flex; align-items: center; gap: 10px;
    width: 100%; justify-content: space-between;
  }
  .qa-pgr-mbtn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 80px; height: 44px;
    padding: 0 16px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; color: #0f172a;
    font-size: 14px; font-weight: 700;
    text-decoration: none;
    transition: background .15s;
  }
  .qa-pgr-mbtn:hover { background: #f1f5f9; }
  .qa-pgr-mbtn.is-disabled {
    color: #cbd5e1; background: #f8fafc; pointer-events: none;
  }
  .qa-pgr-mlbl {
    flex: 1 1 auto; text-align: center;
    font-size: 13px; color: #64748b;
    font-variant-numeric: tabular-nums;
  }
  .qa-pgr-mlbl strong { color: #0f172a; font-weight: 700; }
}

/* Print: hide pager entirely */
@media print {
  .qa-pgr, .qa-pgr-status { display: none; }
}

.qa-aside { display:flex; flex-direction:column; gap:16px; min-width:0; }
.qa-card--side { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:18px 20px; }
.qa-side-title { font-size:15px; font-weight:700; color:#0f172a; margin:0 0 12px; padding-bottom:10px; border-bottom:1px solid #f1f5f9; }
.qa-side-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.qa-side-list li { display:flex; flex-direction:column; gap:2px; }
.qa-side-link { color:#0f172a; text-decoration:none; font-weight:600; font-size:13.5px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qa-side-link:hover { color:#1a56db; }
.qa-side-meta { font-size:11.5px; color:#94a3b8; }
.qa-tag-cloud { display:flex; flex-wrap:wrap; gap:6px; }
.qa-tag { background:#f1f5f9; color:#475569; padding:5px 10px; border-radius:6px; font-size:12px; font-weight:600; text-decoration:none; }
.qa-tag span { color:#94a3b8; font-weight:500; margin-left:2px; }
.qa-tag:hover { background:#dbeafe; color:#1e40af; }
