/* AP Practice (Tier 2) + stimulus rendering — Slate Emerald, calm, no gamification. */

/* Stimulus: excerpt / image / map */
.stimulus-excerpt {
  margin: 0 0 1.25rem;
  padding: 0;
}

.stimulus-excerpt-text {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--rycal-emerald-500);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--rycal-slate-800);
  background: var(--rycal-slate-50);
}

.stimulus-source {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rycal-slate-500);
}

.stimulus-image {
  margin: 0 0 1.25rem;
  padding: 0;
}

.stimulus-kicker {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rycal-emerald-700);
}

.stimulus-img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rycal-slate-200);
  border-radius: 8px;
}

@media print {
  .stimulus-img {
    max-height: 60vh;
  }
}

/* AP practice session shell */
.ap-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.ap-narrow {
  max-width: 720px;
}

.ap-meta {
  margin-top: 6px;
  font-size: 15px;
  color: var(--rycal-slate-600, #475569);
}

.ap-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
  border-radius: 12px;
  background: var(--rycal-slate-50, #f8fafc);
  color: var(--rycal-slate-700, #334155);
  line-height: 1.6;
}

.ap-intro-copy {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rycal-slate-700, #334155);
  max-width: 62ch;
}

.ap-intro-list {
  margin: 14px 0 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rycal-slate-600, #475569);
}

.ap-session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ap-timer-bar {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 10px 0 8px;
}

.ap-timer-text {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 16px;
  color: var(--rycal-slate-700, #334155);
}

.ap-five-min {
  font-size: 13px;
  color: var(--rycal-slate-600, #475569);
}

.ap-two-pane {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 24px;
  margin-top: 14px;
  align-items: start;
}

@media (max-width: 860px) {
  .ap-two-pane {
    grid-template-columns: 1fr;
  }
}

.ap-stimulus-pane {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
}

@media (max-width: 860px) {
  .ap-stimulus-pane {
    position: static;
    max-height: none;
  }
}

.ap-stimulus-pane-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rycal-slate-500, #64748b);
  margin-bottom: 10px;
}

.ap-stimulus-empty {
  font-size: 14px;
  color: var(--rycal-slate-500, #64748b);
}

.ap-stimulus-fallback-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rycal-slate-700, #334155);
  margin-bottom: 10px;
}

.ap-stimulus-fallback-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rycal-slate-700, #334155);
  white-space: pre-wrap;
}

.ap-stimulus-fallback-img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

.ap-stimulus-fallback-source {
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--rycal-slate-500, #64748b);
}

.ap-nav-label {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rycal-slate-500, #64748b);
}

.ap-nav-count {
  margin-top: 4px;
  font-size: 13px;
  color: var(--rycal-slate-600, #475569);
}

.ap-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ap-nav-sep {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--rycal-slate-500, #64748b);
  margin-top: 8px;
}

.ap-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
  background: #fff;
  color: var(--rycal-slate-700, #334155);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.ap-nav-btn:hover {
  border-color: var(--rycal-slate-300, #cbd5e1);
}

.ap-nav-btn.is-current {
  border: 2px solid var(--rycal-emerald-600, #059669);
}

.ap-nav-btn.is-answered {
  background: var(--rycal-emerald-50, #ecfdf5);
  border-color: var(--rycal-slate-200, #e2e8f0);
  color: var(--rycal-emerald-700, #047857);
}

.ap-question-pane {
  min-width: 0;
}

.ap-set-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rycal-slate-600, #475569);
  margin-bottom: 10px;
}

.ap-question-text {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
  color: var(--rycal-slate-900, #0f172a);
  margin-bottom: 16px;
}

.ap-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ap-confirm {
  margin-top: 18px;
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
  border-left: 4px solid var(--rycal-slate-400, #94a3b8);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
}

.ap-confirm-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--rycal-slate-700, #334155);
  margin-bottom: 12px;
}

.ap-confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ap-results-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--rycal-slate-600, #475569);
}

.ap-results-timer-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--rycal-slate-100, #f1f5f9);
  color: var(--rycal-slate-700, #334155);
  font-size: 15px;
}

.ap-results-overall {
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
}

.ap-results-score {
  font-size: 24px;
  font-weight: 750;
  color: var(--rycal-slate-900, #0f172a);
}

.ap-results-pct {
  margin-top: 4px;
  font-size: 14px;
  color: var(--rycal-slate-600, #475569);
}

.ap-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .ap-results-grid {
    grid-template-columns: 1fr;
  }
}

.ap-results-card {
  background: #fff;
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
}

.ap-results-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--rycal-slate-800, #1e293b);
}

.ap-results-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--rycal-slate-700, #334155);
}

.ap-review-head {
  margin: 32px 0 14px;
  font-size: 20px;
  font-weight: 750;
  color: var(--rycal-slate-900, #0f172a);
}

.ap-review-item {
  background: #fff;
  border: 1px solid var(--rycal-slate-200, #e2e8f0);
  border-left: 4px solid var(--rycal-slate-300, #cbd5e1);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.ap-review-item.is-correct {
  border-left-color: var(--rycal-emerald-600, #059669);
}

.ap-review-item.is-incorrect {
  border-left-color: #dca5a5;
}

/* Per-item header inside a review card (distinct from the page-level .ap-review-head). */
.ap-review-item-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--rycal-slate-500, #64748b);
  margin-bottom: 6px;
}

.ap-skill-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--rycal-slate-100, #f1f5f9);
  color: var(--rycal-slate-600, #475569);
  font-weight: 600;
}

.ap-review-stimulus-ref {
  font-size: 13px;
  font-style: italic;
  color: var(--rycal-slate-500, #64748b);
  margin-bottom: 10px;
}

.ap-review-question {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
  color: var(--rycal-slate-900, #0f172a);
  margin-bottom: 12px;
}

.ap-answer-row {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rycal-slate-700, #334155);
  margin-bottom: 4px;
}

.ap-answer-label {
  font-weight: 700;
  color: var(--rycal-slate-600, #475569);
}

.ap-not-answered {
  color: var(--rycal-slate-500, #64748b);
}

.ap-review-expl {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rycal-slate-100, #f1f5f9);
  font-size: 14px;
  line-height: 1.65;
  color: var(--rycal-slate-700, #334155);
}

.ap-review-expl-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rycal-emerald-700, #047857);
  margin-bottom: 6px;
}
