/* Preparation CPT: single article + archive grid + responsive. */

.preparation-page { padding-top: 8px; }
.preparation-archive { padding-top: 8px; }

/* ---------- Single article hero ---------- */
.prep-article { max-width: 860px; margin: 0 auto; }
.prep-hero { margin: 0 0 22px; }
.prep-hero__type {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(9, 202, 143, .1);
  color: var(--primary-dark, #067A55);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: .2px;
  transition: background .15s;
}
.prep-hero__type:hover { background: rgba(9, 202, 143, .2); }
.prep-hero__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.4px;
  color: #0f172a;
  margin: 12px 0 10px;
}
.prep-hero__lead {
  font-size: 17px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 14px;
  max-width: 720px;
}
.prep-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.prep-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  color: #334155;
}
.prep-hero__chip svg { color: var(--primary-color, #09CA8F); flex-shrink: 0; }
.prep-hero__share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.prep-hero__share:hover {
  border-color: var(--primary-color, #09CA8F);
  color: var(--primary-dark, #067A55);
  background: rgba(9, 202, 143, .06);
}

/* ---------- Figure ---------- */
.prep-figure {
  margin: 0 0 22px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
}
.prep-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* ---------- Content typography ---------- */
.prep-content {
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
}
.prep-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #0f172a;
  letter-spacing: -.2px;
}
.prep-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: #0f172a;
}
.prep-content p { margin: 10px 0 14px; }
.prep-content ul, .prep-content ol {
  margin: 10px 0 14px;
  padding-left: 22px;
}
.prep-content li { margin: 6px 0; }
.prep-content blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: rgba(9, 202, 143, .07);
  border-left: 3px solid var(--primary-color, #09CA8F);
  border-radius: 8px;
  color: #0f172a;
  font-style: normal;
}
.prep-content blockquote p:first-child { margin-top: 0; }
.prep-content blockquote p:last-child { margin-bottom: 0; }
.prep-content strong { color: #0f172a; }
.prep-content a {
  color: var(--primary-dark, #067A55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Bring-list aside ---------- */
.prep-bring {
  margin: 24px 0;
  padding: 18px 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}
.prep-bring h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #92400e;
}
.prep-bring ul { margin: 0; padding-left: 20px; color: #78350f; }
.prep-bring li { margin: 4px 0; }

/* ---------- CTA block ---------- */
.prep-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 0;
  padding: 20px 22px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 14px;
}
.prep-cta__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prep-cta__text strong { font-size: 16px; color: #0f172a; }
.prep-cta__text span { font-size: 14px; color: #475569; }
.prep-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Related ---------- */
.prep-related { margin: 36px 0 0; max-width: 1200px; margin-left: auto; margin-right: auto; }
.prep-related > h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #0f172a;
}
.prep-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.prep-related__card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #0f172a;
  transition: box-shadow .2s, transform .2s;
}
.prep-related__card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}
.prep-related__media {
  aspect-ratio: 16/9;
  background: #f1f5f9;
  overflow: hidden;
}
.prep-related__media img { width: 100%; height: 100%; object-fit: cover; }
.prep-related__body { padding: 14px 16px; }
.prep-related__type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark, #067A55);
  background: rgba(9, 202, 143, .1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.prep-related__title { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: #0f172a; }
.prep-related__excerpt { font-size: 13.5px; color: #475569; margin: 0; line-height: 1.5; }

/* ---------- Archive grid ---------- */
.prep-archive-hero { margin: 0 0 26px; }
.prep-archive-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 12px;
}
.prep-archive-hero__lead {
  font-size: 17px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
  max-width: 760px;
}

.prep-section { margin: 28px 0; }
.prep-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.prep-section__title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.prep-section__all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark, #067A55);
  text-decoration: none;
  white-space: nowrap;
}
.prep-section__all:hover { text-decoration: underline; }

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.prep-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #0f172a;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.prep-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
  border-color: rgba(9, 202, 143, .3);
}
.prep-card__media {
  aspect-ratio: 16/9;
  background: #f1f5f9;
  overflow: hidden;
}
.prep-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prep-card:hover .prep-card__media img { transform: scale(1.04); }
.prep-card__body { padding: 16px 18px; }
.prep-card__title { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: #0f172a; line-height: 1.35; }
.prep-card__excerpt { font-size: 14px; color: #475569; margin: 0 0 10px; line-height: 1.55; }
.prep-card__cta { font-size: 13px; font-weight: 600; color: var(--primary-dark, #067A55); }

.prep-empty {
  padding: 22px;
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
  color: #475569;
  font-size: 15px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .prep-hero__title { font-size: 22px; }
  .prep-hero__lead { font-size: 15px; }
  .prep-hero__share { margin-left: 0; }
  .prep-figure img { max-height: 280px; }
  .prep-content { font-size: 15px; }
  .prep-content h2 { font-size: 19px; margin-top: 22px; }
  .prep-content h3 { font-size: 16px; }
  .prep-cta { flex-direction: column; align-items: stretch; padding: 16px 18px; }
  .prep-cta__actions { width: 100%; }
  .prep-cta__actions .cta-ghost, .prep-cta__actions .cta-primary { flex: 1; justify-content: center; }
  .prep-section__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .prep-archive-hero__title { font-size: 24px; }
  .prep-archive-hero__lead { font-size: 15px; }
}

/* ─────────────────────────────────────────────────────
 * Preparation archive (FAQ-style accordion)
 * Reuses .faq-* primitives but tweaks for prep context.
 * ───────────────────────────────────────────────────── */
.faq-item__lead {
  font-size: 15px;
  color: #475569;
  margin: 0 0 12px;
  font-weight: 500;
}

.faq-item__more {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
.faq-item__more a {
  color: var(--primary-dark, #067A55);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.faq-item__more a:hover { text-decoration: underline; }

.prep-empty {
  padding: 40px 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}
