.pq-pdfbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 20px;
}
.pq-pdfbar a {
  background: #2c2a26;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none !important;
}
.pq-pdfbar a:hover { background: #E6AD38; color: #2c2a26 !important; }
.pq-pdfbar span { color: #64748b; font-size: 13px; }
.pq-qnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f7f5f0;
  padding: 8px 0;
}
.pq-qnav a {
  min-width: 36px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #5c4a1a;
  text-decoration: none;
  padding: 0 6px;
}
.pq-qnav a:hover { background: #E6AD38; color: #2c2a26; }
.pq-passage {
  background: #f8f6f1;
  border: 1px solid #ebe6dc;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
  color: #334155;
  line-height: 1.7;
  white-space: pre-wrap;
}
.pq-passage strong { color: #2c2a26; display: block; margin-bottom: 8px; }
.pq-card {
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 16px;
  padding: 20px 20px 12px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(44,42,38,.05);
}
.pq-card h2 {
  color: #2c2a26;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.pq-stem { color: #334155; line-height: 1.7; margin: 0 0 12px; white-space: pre-wrap; }
.pq-opts { list-style: none; padding: 0; margin: 0 0 14px; }
.pq-opts li {
  border: 1px solid #ebe6dc;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
}
.pq-opts li.is-ans {
  border-color: #E6AD38;
  background: #fff8e8;
  font-weight: 700;
}
.pq-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.pq-chip {
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}
.pq-chip strong { color: #2c2a26; }
.pq-chip a { color: #8a6a14; font-weight: 700; }
.pq-key {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #E6AD38;
  color: #2c2a26;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.pq-expl {
  background: #f8f6f1;
  border-left: 4px solid #E6AD38;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.pq-guide {
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 16px;
  padding: 22px 22px 8px;
  margin: 0 0 22px;
  color: #334155;
  line-height: 1.75;
}
.pq-guide h2 {
  color: #2c2a26;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.pq-guide p { margin: 0 0 12px; }
.pq-dl-h {
  font-size: 1.05rem;
  font-weight: 800;
  color: #2c2a26;
  margin: 16px 0 8px;
}
.sem-page h1 { text-transform: none; }

.pq-prep-link {
  margin: 0 0 18px;
  font-size: 14px;
  color: #64748b;
}
.pq-prep-link a { color: #8a6a14; font-weight: 700; }

.pq-reader {
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(44,42,38,.06);
  margin: 0 0 28px;
  overflow: hidden;
}
.pq-reader-head {
  padding: 20px 20px 8px;
}
.pq-reader-head h2 {
  color: #2c2a26;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
}
.pq-reader-hint,
.pq-reader-status {
  margin: 0 0 6px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}
.pq-reader-hint a { color: #8a6a14; font-weight: 700; }
.pq-reader-status { min-height: 1.2em; color: #8a6a14; font-weight: 600; }

.pq-reader-filters,
.pq-reader-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 12px;
}
.pq-reader-filters { border-bottom: 1px solid #f0ece3; }

.pq-reader-filter,
.pq-reader-tab {
  appearance: none;
  border: 1px solid #ebe6dc;
  background: #f8f6f1;
  color: #2c2a26;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.pq-reader-tab {
  border-radius: 10px;
  white-space: normal;
  text-align: left;
  max-width: 100%;
}
.pq-reader-filter.is-active,
.pq-reader-tab.is-active {
  background: #2c2a26;
  border-color: #2c2a26;
  color: #fff;
}
.pq-reader-tab:hover,
.pq-reader-filter:hover {
  border-color: #E6AD38;
}

.pq-reader-stage {
  background: #efece6;
  padding: 12px 12px 20px;
}
.pq-reader-pages {
  max-width: 920px;
  margin: 0 auto;
}
.pq-reader-page {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(44,42,38,.08);
  margin: 0 0 16px;
  overflow: hidden;
  min-height: 120px;
  position: relative;
}
.pq-reader-page canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.pq-reader-pnum {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a6a14;
  padding: 8px 12px 0;
}
.pq-reader-page.is-error::after {
  content: 'This page could not be drawn.';
  display: block;
  padding: 24px 16px;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 767px) {
  .pq-reader-head { padding: 16px 14px 6px; }
  .pq-reader-head h2 { font-size: 1.15rem; }
  .pq-reader-filters,
  .pq-reader-tabs { padding: 6px 12px 10px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pq-reader-tab { flex: 0 0 auto; max-width: 78vw; }
  .pq-reader-stage { padding: 8px 8px 14px; }
  .pq-reader-page { border-radius: 8px; margin-bottom: 10px; }
}
