.qa-shell {
  --qa-ink: #172033;
  --qa-muted: #5b6577;
  --qa-line: #d9dee8;
  --qa-accent: #9f1239;
  --qa-indigo: #3730a3;
  color: var(--qa-ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.qa-header-subtitle { overflow-wrap: anywhere; }

.qa-stats-grid {
  width: 100%;
  min-width: 0;
}

.qa-stats-grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.qa-tabs {
  display: flex;
  min-width: 0;
  overflow-x: auto;
}

.qa-card {
  border: 1px solid var(--qa-line);
  border-left: 4px solid #4f46e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}

.qa-card[data-new-entry="true"] { border-left-color: #ea580c; }
.qa-card[data-kind="anlam_tanim"] { border-left-color: #0f766e; }

.qa-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #d7dce6;
  border-radius: 999px;
  padding: 2px 9px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.qa-badge-new { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.qa-badge-feature { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; }
.qa-badge-meaning { border-color: #99f6e4; background: #f0fdfa; color: #115e59; }

.qa-question {
  color: #111827;
  font-size: clamp(1.12rem, 1.7vw, 1.38rem);
  font-weight: 850;
  line-height: 1.42;
  letter-spacing: 0;
}

.qa-short-answer {
  border-left: 3px solid #e11d48;
  padding-left: 12px;
  color: #3f1724;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.65;
}

.qa-detail {
  color: #374151;
  font-size: 1rem;
  line-height: 1.75;
}

.qa-definition {
  border-top: 1px solid #ccfbf1;
  border-bottom: 1px solid #ccfbf1;
  padding: 12px 0;
  color: #134e4a;
  line-height: 1.7;
}

.qa-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--qa-line);
  border-bottom: 1px solid var(--qa-line);
}

.qa-evidence-cell { padding: 12px; min-width: 0; }
.qa-evidence-cell + .qa-evidence-cell { border-left: 1px solid var(--qa-line); }
.qa-evidence-label { color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.qa-evidence-value { margin-top: 4px; color: #991b1b; font-size: 1.05rem; font-weight: 900; overflow-wrap: anywhere; }

.qa-context {
  margin: 0;
  padding: 9px 0 9px 18px;
  border-left: 2px solid #cbd5e1;
  color: #475569;
  line-height: 1.65;
}

.qa-context-hit { color: #b91c1c; font-weight: 900; }
.qa-note-label { color: #475569; font-weight: 850; }

.qa-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-bottom: 3px solid transparent;
  padding: 8px 13px;
  color: #64748b;
  font-weight: 800;
}
.qa-tab:hover { color: #312e81; }
.qa-tab-active { border-bottom-color: #4f46e5; color: #312e81; }

.qa-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-weight: 800;
}
.qa-page-link:hover { border-color: #6366f1; color: #3730a3; }
.qa-page-current { border-color: #4338ca; background: #4338ca; color: #fff; }

@media (max-width: 760px) {
  .qa-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .qa-tab {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    text-align: center;
    white-space: normal;
  }
  .qa-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-evidence-cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--qa-line); }
  .qa-evidence-cell:nth-child(4) { border-top: 1px solid var(--qa-line); }
}

@media (max-width: 460px) {
  .qa-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-stats-grid > * { padding: 12px; }
  .qa-evidence-grid { grid-template-columns: 1fr; }
  .qa-evidence-cell + .qa-evidence-cell { border-left: 0; border-top: 1px solid var(--qa-line); }
  .qa-question { font-size: 1.08rem; }
}
