/* ══════════════════════════════════════════════════════════════════════════
   content.css — styling for LetterUp content pages
   (complaint-letter landing pages + /guides articles)
   Loaded AFTER style.css, so it reuses the design tokens defined there.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Page background: content pages sit on the light grey, not pure white ── */
body.content-page { background: var(--c-bg); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  max-width: 860px; margin: 0 auto; padding: 22px 24px 0;
  font-size: 13px; color: var(--c-text-3);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--c-text-2); font-weight: 500; }
.breadcrumb a:hover { color: var(--c-brand); }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--c-border-2); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li[aria-current] { color: var(--c-text-3); }

/* ── Article header ──────────────────────────────────────────────────────── */
.article-head {
  max-width: 860px; margin: 0 auto; padding: 20px 24px 8px;
}
.article-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-brand); margin-bottom: 14px;
}
.article-head h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.1; color: var(--c-text);
}
.article-lead {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--c-text-2);
  line-height: 1.6; margin-top: 18px; max-width: 700px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-top: 20px; font-size: 13px; color: var(--c-text-3);
}
.article-meta .dot { color: var(--c-border-2); }

/* ── Main article body card ──────────────────────────────────────────────── */
.article-wrap {
  max-width: 860px; margin: 26px auto 0; padding: 0 24px 40px;
}
.article-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: 40px clamp(22px, 5vw, 52px);
  box-shadow: var(--shadow-sm);
}

/* ── Prose ───────────────────────────────────────────────────────────────── */
.prose { color: var(--c-text-2); font-size: 17px; line-height: 1.72; }
.prose > h2 {
  font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.5px;
  color: var(--c-text); margin: 40px 0 14px; scroll-margin-top: 90px;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 {
  font-size: 19px; font-weight: 700; color: var(--c-text);
  margin: 28px 0 10px; scroll-margin-top: 90px;
}
.prose p { margin: 0 0 18px; }
.prose a { color: var(--c-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--c-brand-dark); }
/* Button-styled anchors inside prose must NOT inherit the orange link colour/underline —
   otherwise .btn-primary text renders orange-on-orange and disappears (fixed 2026-08-11). */
.prose a.btn-primary,
.prose a.btn-outline,
.prose a.btn-outline-dark { text-decoration: none; font-weight: 700; }
.prose a.btn-primary,
.prose a.btn-primary:hover { color: #fff; }
.prose strong { color: var(--c-text); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 9px; }
.prose ul li::marker { color: var(--c-brand); }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 34px 0; }

/* Nice numbered "checklist" list variant */
.prose ul.ticks { list-style: none; padding-left: 0; }
.prose ul.ticks li { position: relative; padding-left: 30px; }
.prose ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--c-brand); font-weight: 800;
}

/* ── Table of contents ───────────────────────────────────────────────────── */
.toc {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 20px 24px; margin: 0 0 32px;
}
.toc h2 {
  font-size: 12px !important; text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-text-3); font-weight: 700; margin: 0 0 12px !important;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin: 0 0 8px; padding-left: 26px; position: relative; }
.toc li::before {
  counter-increment: toc; content: counter(toc);
  position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: var(--r-full);
  background: var(--c-brand-light); color: var(--c-brand);
  font-size: 11px; font-weight: 700; display: flex;
  align-items: center; justify-content: center;
}
.toc a { color: var(--c-text-2); font-weight: 500; font-size: 15px; text-decoration: none; }
.toc a:hover { color: var(--c-brand); }

/* ── Callout boxes ───────────────────────────────────────────────────────── */
.callout {
  border: 1px solid var(--c-border); border-left: 4px solid var(--c-brand);
  background: var(--c-brand-light); border-radius: var(--r-md);
  padding: 18px 20px; margin: 24px 0; font-size: 15.5px; color: var(--c-text-2);
}
.callout strong { color: var(--c-text); }
.callout.law { border-left-color: var(--c-navy); background: #F8FAFC; }
.callout.warn { border-left-color: var(--c-error); background: #FEF2F2; }
.callout .callout-title {
  display: block; font-weight: 700; color: var(--c-text);
  font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px;
}

/* ── Inline CTA band ─────────────────────────────────────────────────────── */
.cta-band {
  background: var(--c-navy); color: #fff; border-radius: var(--r-xl);
  padding: 30px clamp(24px, 4vw, 40px); margin: 34px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band .cta-band-text h3 { font-size: 21px; font-weight: 800; color: #fff; margin: 0 0 6px; letter-spacing: -.3px; }
.cta-band .cta-band-text p { font-size: 15px; color: rgba(255,255,255,.7); margin: 0; max-width: 460px; }
.cta-band .btn-primary { flex-shrink: 0; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { margin-top: 8px; }
.faq-item {
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-card); padding: 20px 22px; margin-bottom: 12px;
}
.faq-item h3 { font-size: 17px; font-weight: 700; color: var(--c-text); margin: 0 0 8px; }
.faq-item p { font-size: 15.5px; color: var(--c-text-2); margin: 0; line-height: 1.65; }

/* ── Related links grid ──────────────────────────────────────────────────── */
.related {
  max-width: 860px; margin: 8px auto 0; padding: 0 24px 60px;
}
.related h2 {
  font-size: 20px; font-weight: 800; color: var(--c-text);
  margin: 0 0 18px; letter-spacing: -.3px;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.related-card {
  display: block; background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 18px 20px; transition: box-shadow .15s, transform .1s, border-color .15s;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--c-border-2); }
.related-card .rc-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-brand); }
.related-card h3 { font-size: 16px; font-weight: 700; color: var(--c-text); margin: 8px 0 4px; }
.related-card p { font-size: 13.5px; color: var(--c-text-3); margin: 0; }

/* ── Landing-page hero (category pages) ──────────────────────────────────── */
.lp-hero {
  background: linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
  padding: 8px 0 44px;
}
.lp-hero-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.lp-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; color: var(--c-text); margin-top: 14px; }
.lp-hero .lp-sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--c-text-2); line-height: 1.6; margin: 18px 0 26px; max-width: 660px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-actions .price-tag { font-size: 14px; color: var(--c-text-3); font-weight: 500; }
.lp-actions .price-tag strong { color: var(--c-text); font-weight: 700; }

/* Chips row under hero */
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lp-chip {
  font-size: 12.5px; font-weight: 600; color: var(--c-text-2);
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-full); padding: 6px 14px;
}

/* Escalation table-ish box */
.escalate-box {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 6px 24px; margin: 20px 0;
}
.escalate-box .escalate-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.escalate-box .escalate-row:last-child { border-bottom: none; }
.escalate-box .escalate-step { flex-shrink: 0; width: 30px; height: 30px; border-radius: var(--r-full); background: var(--c-brand-light); color: var(--c-brand); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.escalate-box .escalate-row div:last-child strong { display: block; color: var(--c-text); font-size: 15.5px; margin-bottom: 3px; }
.escalate-box .escalate-row div:last-child span { font-size: 14px; color: var(--c-text-2); }

/* ── Homepage "popular complaint letters" section ────────────────────────── */
.popular-letters { padding: 80px 0; background: var(--c-bg); }
@media (max-width: 680px) { .popular-letters { padding: 56px 0; } }

/* ── Guides hub grid ─────────────────────────────────────────────────────── */
.hub-hero { max-width: 900px; margin: 0 auto; padding: 30px 24px 10px; text-align: center; }
.hub-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -1px; color: var(--c-text); }
.hub-hero p { font-size: 18px; color: var(--c-text-2); margin: 16px auto 0; max-width: 620px; line-height: 1.6; }
.hub-grid { max-width: 1000px; margin: 34px auto 0; padding: 0 24px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.hub-card {
  display: flex; flex-direction: column; background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: var(--r-xl);
  padding: 26px 26px 24px; transition: box-shadow .15s, transform .1s, border-color .15s;
}
.hub-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--c-brand-muted); }
.hub-card .hub-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-brand); margin-bottom: 12px; }
.hub-card h2 { font-size: 20px; font-weight: 800; color: var(--c-text); letter-spacing: -.3px; margin-bottom: 10px; line-height: 1.25; }
.hub-card p { font-size: 14.5px; color: var(--c-text-2); line-height: 1.6; margin: 0 0 18px; flex-grow: 1; }
.hub-card .hub-more { font-size: 14px; font-weight: 700; color: var(--c-brand); }

/* Group heading in hub */
.hub-section-title { max-width: 1000px; margin: 40px auto 0; padding: 0 24px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-3); }

/* ── Simple back-to-top / author note ────────────────────────────────────── */
.disclaimer-note {
  max-width: 860px; margin: 0 auto; padding: 0 24px 50px;
  font-size: 13px; color: var(--c-text-3); line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .article-card { padding: 28px 20px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .prose { font-size: 16px; }
}
