/* Retired exam page (ce-retired-exams). Palette follows the theme's product template tokens. */
.ce-ret {
  --ret-ink: #2d1684;
  --ret-text: #475569;
  --ret-muted: #64748b;
  --ret-border: #e2e8f0;
  --ret-card: #ffffff;
  --ret-page: #fdfbff;
  --ret-brand: #4338ca;
  --ret-brand-ink: #ffffff;
  --ret-warn: #b45309;
  --ret-warn-bg: #fffbeb;
  --ret-warn-border: #fcd34d;
  --ret-radius: 16px;
  --ret-shadow: 0 4px 12px -2px rgba(15, 23, 42, .06);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ret-page);
  color: var(--ret-text);
  padding: 24px 16px 56px;
}

.ce-ret-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.ce-ret-breadcrumb {
  font-size: 13px;
  color: var(--ret-muted);
}
.ce-ret-breadcrumb a { color: var(--ret-muted); }

/* Header */
.ce-ret-head {
  background: var(--ret-card);
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius);
  box-shadow: var(--ret-shadow);
  padding: 24px;
}
.ce-ret-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ce-ret-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--ret-text);
}
.ce-ret-pill--status {
  background: var(--ret-warn-bg);
  color: var(--ret-warn);
  border: 1px solid var(--ret-warn-border);
}
.ce-ret-title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  line-height: 1.2;
  color: var(--ret-ink);
  font-weight: 700;
}
/* Stat tiles (same look as the product page "Total Questions" tile) */
.ce-ret-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
}
.ce-ret-stat {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--ret-border);
  text-align: center;
}
.ce-ret-stat dt { margin: 0 0 4px; font-size: 13px; color: var(--ret-muted); }
.ce-ret-stat dd { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ret-ink); }
.ce-ret-stat--brand { background: var(--ret-brand); border-color: var(--ret-brand); }
.ce-ret-stat--brand dt { color: #e0e7ff; }
.ce-ret-stat--brand dd { color: #fff; font-size: 1.35rem; }
.ce-ret-stat--warn { background: var(--ret-warn-bg); border-color: var(--ret-warn-border); }
.ce-ret-stat--warn dt, .ce-ret-stat--warn dd { color: var(--ret-warn); }

/* Retirement notice */
.ce-ret-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ret-warn-bg);
  border: 1px solid var(--ret-warn-border);
  border-left: 5px solid #f59e0b;
  border-radius: var(--ret-radius);
  padding: 18px 20px;
}
.ce-ret-notice-icon { color: #d97706; flex: 0 0 auto; margin-top: 2px; }
.ce-ret-notice h2 { margin: 0 0 6px; font-size: 1.1rem; color: #92400e; }
.ce-ret-notice p { margin: 0; line-height: 1.6; color: #78350f; }
.ce-ret-notice .ce-ret-notice-note { margin-top: 8px; }

/* Replacement */
.ce-ret-next {
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 70%);
  border: 1px solid #ddd6fe;
  border-radius: var(--ret-radius);
  box-shadow: var(--ret-shadow);
  padding: 24px;
}
.ce-ret-next-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ret-brand);
}
.ce-ret-next-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ret-ink);
}
.ce-ret-next-code {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--ret-brand);
  color: var(--ret-brand-ink);
  font-size: .95rem;
  vertical-align: middle;
}
.ce-ret-next-text { margin: 0 0 18px; line-height: 1.6; }
.ce-ret-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ce-ret-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s;
}
.ce-ret-btn--primary { background: var(--ret-brand); color: var(--ret-brand-ink) !important; border: 1px solid var(--ret-brand); }
.ce-ret-btn--primary:hover { background: #3730a3; border-color: #3730a3; }
.ce-ret-btn--ghost { background: #fff; color: var(--ret-brand) !important; border: 1px solid #c7d2fe; }
.ce-ret-btn--ghost:hover { border-color: var(--ret-brand); background: #eef2ff; }
.ce-ret-btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

/* Archived questions purchase (secondary to the replacement) */
.ce-ret-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  background: var(--ret-card);
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius);
  padding: 20px 24px;
}
.ce-ret-buy-text { flex: 1 1 360px; }
.ce-ret-buy h2 { margin: 0 0 4px; font-size: 1.05rem; color: var(--ret-ink); }
.ce-ret-buy p { margin: 0; line-height: 1.55; font-size: .95rem; }
.ce-ret-buy-action { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ce-ret-buy-action form { margin: 0; }
.ce-ret-buy-price { font-weight: 700; color: var(--ret-ink); font-size: 1.1rem; }
.ce-ret-buy-price del { color: var(--ret-muted); font-weight: 400; font-size: .9rem; margin-right: 6px; }
.ce-ret-buy-price ins { text-decoration: none; }
.ce-ret-buy .ce-ret-btn { cursor: pointer; font-size: 1rem; font-family: inherit; }

/* Archived description */
.ce-ret-archive {
  background: var(--ret-card);
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius);
  padding: 0;
}
.ce-ret-archive-head {
  margin: 0;
  padding: 18px 24px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ret-ink);
  border-bottom: 1px solid var(--ret-border);
}
.ce-ret-archive-head span { font-weight: 400; font-size: .95rem; color: var(--ret-muted); }
.ce-ret-archive-body { padding: 4px 24px 20px; }
.ce-ret-archive-body h2, .ce-ret-archive-body h3 { color: var(--ret-ink); }

@media (max-width: 600px) {
  .ce-ret { padding: 16px 16px 40px; }
  .ce-ret-head, .ce-ret-next, .ce-ret-buy { padding: 18px; }
  .ce-ret-buy-action { width: 100%; }
  .ce-ret-buy-action form { flex: 1 1 auto; }
  .ce-ret-btn { width: 100%; }
}
