/* ==========================================================================
   Guides — shared long-form article styling.

   New, additive stylesheet: it is loaded only by guides.php, the individual
   guide pages and editorial-policy.php. No existing selector is overridden, so
   no existing page can be affected by it.
   ========================================================================== */

.guide-hero {
  padding: 72px 0 48px;
  background: linear-gradient(135deg, rgba(29, 78, 216, .06), rgba(29, 78, 216, .02));
}

.guide-hero .guide-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(29, 78, 216, .09);
  border: 1px solid rgba(29, 78, 216, .18);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.guide-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #0f172a;
  margin-bottom: 18px;
}

.guide-standfirst {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: #475569;
  max-width: 62ch;
}

/* --- Byline ------------------------------------------------------------- */
.mpr-byline {
  margin: 26px 0 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 62ch;
}

.mpr-byline p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: #475569;
}

.mpr-byline-line strong {
  color: #0f172a;
}

.mpr-byline-role {
  color: #64748b;
}

.mpr-byline-dates,
.mpr-byline-note {
  margin-top: 4px !important;
  font-size: .85rem !important;
  color: #64748b !important;
}

.mpr-byline a {
  color: #1d4ed8;
  font-weight: 600;
}

/* --- Article body ------------------------------------------------------- */
.guide-body {
  padding: 52px 0 24px;
}

.guide-body .guide-prose {
  max-width: 70ch;
}

.guide-prose h2 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 700;
  color: #0f172a;
  margin: 46px 0 16px;
  scroll-margin-top: 90px;
}

.guide-prose h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  font-weight: 700;
  color: #1e293b;
  margin: 30px 0 12px;
}

.guide-prose p,
.guide-prose li {
  font-size: 1.02rem;
  line-height: 1.78;
  color: #334155;
}

.guide-prose p {
  margin-bottom: 18px;
}

.guide-prose ul,
.guide-prose ol {
  margin: 0 0 20px;
  padding-left: 1.35rem;
}

.guide-prose li {
  margin-bottom: 9px;
}

.guide-prose strong {
  color: #0f172a;
}

.guide-prose a {
  color: #1d4ed8;
  font-weight: 600;
}

.guide-prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #1d4ed8;
  background: #f8fafc;
  border-radius: 0 10px 10px 0;
}

.guide-prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Comparison / checklist tables */
.guide-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  min-width: 480px;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  line-height: 1.6;
}

.guide-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

/* Callout box */
.guide-callout {
  margin: 26px 0;
  padding: 18px 20px;
  background: #f0f6ff;
  border: 1px solid #cddffd;
  border-radius: 12px;
}

.guide-callout h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.guide-callout p:last-child,
.guide-callout ul:last-child {
  margin-bottom: 0;
}

/* Table of contents */
.guide-toc {
  margin: 0 0 34px;
  padding: 20px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.guide-toc h2 {
  margin: 0 0 12px;
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-toc li {
  margin-bottom: 7px;
  font-size: .97rem;
}

/* --- Inline CTA --------------------------------------------------------- */
.guide-cta {
  margin: 40px 0;
  padding: 26px 24px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  border-radius: 16px;
  color: #fff;
}

.guide-cta h2 {
  color: #fff !important;
  margin: 0 0 10px !important;
  font-size: 1.35rem !important;
}

.guide-cta p {
  color: rgba(255, 255, 255, .9);
  margin-bottom: 18px;
}

.guide-cta .btn-guide {
  display: inline-block;
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
  padding: .65rem 1.5rem;
  border-radius: 999px;
  margin: 0 8px 8px 0;
}

.guide-cta .btn-guide--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .6);
}

/* --- Related guides ----------------------------------------------------- */
.guide-related {
  padding: 20px 0 64px;
}

.guide-related h2 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.guide-card {
  display: block;
  padding: 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c7d7fb;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .09);
}

.guide-card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 9px;
}

.guide-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-card p {
  font-size: .93rem;
  line-height: 1.62;
  color: #475569;
  margin: 0;
}

.guide-card-meta {
  display: block;
  margin-top: 12px;
  font-size: .82rem;
  color: #94a3b8;
}

/* --- FAQ ---------------------------------------------------------------- */
.guide-faq {
  max-width: 70ch;
}

.guide-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.guide-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.5;
}

.guide-faq summary::marker {
  color: #1d4ed8;
}

.guide-faq details[open] summary {
  margin-bottom: 10px;
}

.guide-faq details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .guide-hero {
    padding: 52px 0 36px;
  }

  .guide-body {
    padding: 36px 0 18px;
  }

  .guide-prose h2 {
    margin-top: 36px;
  }
}
