/* PYQ Lab — Current Affairs reading-mode overlay
   Loaded after current-affairs.css + pyq-seo.css. Ivory editorial
   surface, 3-column rails, crawler-visible question text. */

.ca-page .ca-eyebrow {
  display: inline-block;
  color: #f0c34f;
  background: rgba(240, 195, 79, 0.1);
  border: 1px solid rgba(240, 195, 79, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ca-page.pyq-page .ca-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #c7d3de;
  font-size: 1.05rem;
  line-height: 1.6;
}

.pyq-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: #8e9cae;
  font-size: 0.82rem;
  font-weight: 600;
}

.pyq-crumbs a {
  color: #f0c34f;
  text-decoration: none;
}

.pyq-crumbs a:hover {
  text-decoration: underline;
}

.pyq-crumbs [aria-current="page"] {
  color: #d1dbe6;
}

/* Undo catalogue experiment: keep reading rails */
.pyq-page #questions .pyq-layout,
.pyq-page .ca-layout-container {
  display: grid !important;
}

.pyq-page #questions .pyq-sidebar,
.pyq-page .ca-sidebar-left {
  display: flex !important;
}

.pyq-page #questions.pyq-card-list,
.pyq-page #questions .pyq-card-list,
.pyq-page .ca-grid.pyq-card-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

/* Compact ivory question cards in the reading column.
   Beat leftover #questions catalogue rules in pyq-seo.css. */
.pyq-page #questions a.pyq-card,
.pyq-page a.pyq-card,
.pyq-page .pyq-read-card {
  display: grid;
  gap: 10px;
  padding: 22px 24px 20px;
  min-height: 0;
  border-radius: 20px;
  border: 1px solid rgba(215, 195, 155, 0.5);
  background: linear-gradient(180deg, #fdfbf7, #f6f1e6);
  color: #273746;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pyq-page #questions a.pyq-card:hover,
.pyq-page a.pyq-card:hover,
.pyq-page .pyq-read-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 130, 25, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.pyq-page #questions a.pyq-card:before,
.pyq-page a.pyq-card:before,
.pyq-page .pyq-read-card:before {
  content: none;
}

.pyq-page #questions .pyq-card-text,
.pyq-page .pyq-card-text,
.pyq-page a.pyq-card .pyq-card-text {
  margin: 0;
  color: #0f1722;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.pyq-page #questions .pyq-card-cta,
.pyq-page .pyq-card-cta,
.pyq-page a.pyq-card .pyq-card-cta {
  position: static;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  color: #7c4f0b;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  background: none;
}

.pyq-page #questions a.pyq-card .pyq-card-cta:after,
.pyq-page a.pyq-card .pyq-card-cta:after {
  content: none;
}

.pyq-page #questions .pyq-pill,
.pyq-page .pyq-pill {
  border: 1px solid rgba(185, 145, 65, 0.4);
  background: rgba(220, 180, 100, 0.25);
  color: #7c4f0b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pyq-page #questions .pyq-pill.ghost,
.pyq-page .pyq-pill.ghost {
  border-color: rgba(39, 55, 70, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: #3b5066;
}

/* Attempt surface lives inside the ivory story */
.pyq-page .ca-story .pyq-attempt-hint {
  color: #5a6b7c;
}

.pyq-page .ca-story .pyq-options {
  display: grid;
  gap: 10px;
  margin: 8px 0 6px;
}

.pyq-page .ca-story .pyq-option {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(190, 165, 120, 0.45);
  background: #ffffff;
  color: #1e2e3e;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pyq-page .ca-story .pyq-option:hover:not(:disabled) {
  border-color: #b88219;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pyq-page .ca-story .pyq-option span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(185, 145, 65, 0.45);
  background: rgba(220, 180, 100, 0.22);
  color: #7c4f0b;
  font-weight: 800;
}

.pyq-page .ca-story .pyq-option p {
  margin: 0;
  color: #273746;
  font-size: 1.02rem;
  font-weight: 550;
  line-height: 1.55;
}

.pyq-page .ca-story .pyq-option.correct {
  border-color: rgba(6, 120, 80, 0.55);
  background: #f0fdf6;
}

.pyq-page .ca-story .pyq-option.correct span {
  border-color: rgba(6, 120, 80, 0.55);
  background: #d1fae5;
  color: #047857;
}

.pyq-page .ca-story .pyq-option.wrong {
  border-color: rgba(185, 28, 28, 0.45);
  background: #fef2f2;
}

.pyq-page .ca-story .pyq-option.wrong span {
  border-color: rgba(185, 28, 28, 0.45);
  background: #fee2e2;
  color: #b91c1c;
}

.pyq-page .ca-story .pyq-result-status.ok { color: #047857; }
.pyq-page .ca-story .pyq-result-status.bad { color: #b91c1c; }

.pyq-page .ca-story .pyq-explain {
  padding: 18px 18px 8px;
  border-radius: 14px;
  border: 1px solid rgba(190, 165, 120, 0.4);
  background: #fffdf8;
}

.pyq-page .ca-story .pyq-explain p,
.pyq-page .ca-story .pyq-explain li {
  color: #273746;
  white-space: normal;
}

.pyq-page .ca-story .pyq-syllabus-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3.5px solid #b88219;
  border-radius: 0 10px 10px 0;
  background: rgba(225, 185, 105, 0.28);
  color: #273746;
}

.pyq-page .pyq-related {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pyq-page .pyq-related a {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* Dark rails keep CA chrome; search/filter controls sit in the left card */
.pyq-page .ca-toc-card .pyq-search,
.pyq-page .ca-toc-card .pyq-track-tabs {
  margin: 0;
}

.pyq-page .ca-toc-card .pyq-search input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(240, 195, 79, 0.28);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.65);
  color: #f7f8fb;
  padding: 0 12px;
}

.pyq-page .ca-toc-card .pyq-search input:focus {
  outline: none;
  border-color: #f0c34f;
}

.pyq-page .ca-toc-card .pyq-track-tabs {
  display: flex;
  width: 100%;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.pyq-page .ca-toc-card .pyq-track-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  color: #c9d6e4;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.pyq-page .ca-toc-card .pyq-track-tab.active {
  color: #070a0f;
  background: #f0c34f;
}

.pyq-page .ca-toc-card .pyq-nav-list {
  max-height: 280px;
}

.pyq-page .ca-toc-card .pyq-nav-item {
  color: #c9d6e4;
}

.pyq-page .ca-toc-card .pyq-nav-item.active {
  color: #f0c34f;
}

.pyq-page .ca-toc-card .pyq-year-chip {
  color: #d1dbe6;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.pyq-page .ca-toc-card .pyq-year-chip.active {
  color: #070a0f;
  background: #f0c34f;
  border-color: #f0c34f;
}

.pyq-page .pyq-count-line {
  margin: 0 0 16px;
  color: #c7d3de;
  font-size: 0.92rem;
}

.pyq-page .pyq-count-line strong {
  color: #f0c34f;
}

/* Hub track + rank surfaces */
.pyq-page .pyq-track-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 22px;
}

.pyq-page .pyq-track-card {
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(215, 195, 155, 0.5);
  background: linear-gradient(180deg, #fdfbf7, #f6f1e6);
  color: #273746;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.pyq-page .pyq-track-card-badge {
  color: #7c4f0b;
  background: rgba(220, 180, 100, 0.28);
  border: 1px solid rgba(185, 145, 65, 0.4);
}

.pyq-page .pyq-track-stat,
.pyq-page .pyq-track-count {
  color: #0f1722;
  -webkit-text-fill-color: #0f1722;
  background: none;
}

.pyq-page .pyq-track-years {
  color: #3b5066;
}

.pyq-page .pyq-rank-row {
  border: 1px solid rgba(215, 195, 155, 0.45);
  background: linear-gradient(180deg, #fdfbf7, #f6f1e6);
  color: #0f1722;
}

.pyq-page .pyq-rank-label { color: #0f1722; }
.pyq-page .pyq-rank-count { color: #7c4f0b; }

.pyq-page .pyq-faq dt {
  margin: 18px 0 6px;
  color: #0f1722;
  font-size: 1.05rem;
  font-weight: 800;
}

.pyq-page .pyq-faq dd {
  margin: 0;
  color: #273746;
}

.pyq-page .ca-story .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

.pyq-page .ca-story .btn-primary {
  color: #070a0f !important;
  background: linear-gradient(90deg, #f4d068, #e5c158, #d4af37);
  border: 0;
}

.pyq-page .ca-story .btn-secondary {
  color: #7c4f0b !important;
  background: rgba(220, 180, 100, 0.22);
  border: 1px solid rgba(185, 145, 65, 0.4);
}

.pyq-page .pyq-result-actions {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .pyq-page .pyq-track-split {
    grid-template-columns: 1fr;
  }
  .pyq-page a.pyq-card,
  .pyq-page .pyq-read-card {
    padding: 18px 16px;
  }
}
