/* ============================================================
   Mobile compaction for faq.html and policies.html.

   These two pages are self-contained: they load layout.css plus their
   own inline <style> block rather than subpage.css, so they need their
   own selectors (.page-hero / .faq-* / .policy-*) instead of the
   shared .hero--inner / .prose ones.

   Every rule is scoped to body.page-faq / body.page-policies, which also
   keeps it more specific than the inline block regardless of source
   order. Desktop unchanged — all rules are @media (max-width: 768px).

   .page-hero padding-top is left alone on purpose: unlike the
   subpage.css heroes it carries no margin-top, so its padding-top is
   what clears the fixed site header.
   ============================================================ */

@media (max-width: 768px) {

  /* ---------- Shared hero ---------- */

  body.page-faq .page-hero,
  body.page-policies .page-hero {
    padding-right: 18px;
    padding-bottom: 36px;
    padding-left: 18px;
  }

  body.page-faq .page-hero .section-label,
  body.page-policies .page-hero .section-label {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  body.page-faq .page-hero .section-title,
  body.page-policies .page-hero .section-title {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    line-height: 1.18;
    margin-bottom: 10px;
  }

  body.page-faq .page-hero-sub,
  body.page-policies .page-hero-sub {
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 34ch;
    margin-inline: auto;
  }

  body.page-faq .page-hero .hero-actions,
  body.page-policies .page-hero .hero-actions {
    margin-top: 16px;
    align-items: stretch;
    gap: 10px;
  }

  body.page-faq .page-hero .hero-actions .btn,
  body.page-policies .page-hero .hero-actions .btn {
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: 12px 18px;
    font-size: 0.95rem;
    justify-content: center;
  }

  /* ---------- Shared section rhythm ---------- */

  body.page-faq section,
  body.page-policies section {
    padding: 24px 18px 32px;
  }

  body.page-faq .section-title,
  body.page-policies .section-title {
    font-size: 1.3rem;
  }

  /* ---------- FAQ ---------- */

  body.page-faq .faq-section {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  body.page-faq .faq-intro {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  body.page-faq .faq-group {
    margin-top: 24px;
  }

  body.page-faq .faq-group:first-of-type {
    margin-top: 14px;
  }

  body.page-faq .faq-group__title {
    font-size: 1.12rem;
  }

  body.page-faq .faq-item summary {
    padding: 13px 40px 13px 0;
    min-height: 44px;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  body.page-faq .faq-body {
    padding: 0 0 16px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  body.page-faq .faq-price-table {
    font-size: 0.86rem;
  }

  body.page-faq .faq-price-table th,
  body.page-faq .faq-price-table td {
    padding: 6px 7px;
  }

  body.page-faq .faq-help {
    margin-top: 24px;
    padding: 16px;
  }

  body.page-faq .faq-help h2 {
    font-size: 1.12rem;
  }

  body.page-faq .faq-help p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  body.page-faq .faq-help__actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-faq .faq-help .btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
    justify-content: center;
    text-align: center;
  }

  /* ---------- Policies ---------- */

  body.page-policies .policies-section {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  body.page-policies .policy-intro {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  body.page-policies .policy-item {
    padding: 14px 0;
  }

  body.page-policies .policy-item h2 {
    font-size: 1.08rem;
    margin-bottom: 6px;
  }

  body.page-policies .policy-item p,
  body.page-policies .policy-item li {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  body.page-policies .policy-item p {
    margin-bottom: 8px;
  }

  body.page-policies .policy-item ul {
    margin: 6px 0 6px 18px;
  }

  body.page-policies .policy-item li {
    margin: 5px 0;
  }
}
