/* ============================================================
   pages.css — page-level layout composition ONLY (D19).
   No new visual vocabulary lives here; components.css owns that.
   ============================================================ */

/* Mobile: fixed bottom tab bar; everything (including the footer) clears it */
body { padding-bottom: 84px; }
.pp-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; }

/* Desktop: nav becomes a static top bar, content column centers at 720px */
@media (min-width: 768px) {
  .pp-nav { position: static; }
  body { padding-bottom: 0; }
  /* center full-bleed chrome content to the 720px column without extra markup */
  .pp-header, .pp-intake__head {
    padding-left: max(var(--gutter-lg), calc((100% - 720px) / 2));
    padding-right: max(var(--gutter-lg), calc((100% - 720px) / 2));
  }
  .pp-nav { padding-left: max(var(--gutter), calc((100% - 720px) / 2)); }
  .pg-section, .pp-intake__body--page { max-width: calc(720px); margin-left: auto; margin-right: auto; }
  .pg-list { max-width: 720px; margin: 0 auto; }
}

/* Sections */
.pg-section { padding: 18px var(--gutter) 0; }
.pg-section--tight { padding-top: 10px; }
.pg-section h2.pp-section__head { margin-bottom: 8px; }

/* Home hero */
.pg-hero { padding: 20px var(--gutter) 4px; }
.pg-hero .pp-btn--block { margin-bottom: 10px; }
.pg-hero__alt { display: flex; gap: 10px; }
.pg-hero__alt .pp-action-btn { padding: 12px 4px; }

/* Home: map beside recent cases on wide screens */
@media (min-width: 1024px) {
  .pg-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: 960px; margin: 0 auto; align-items: start; }
  .pg-home-grid .pp-map { border: 1px solid var(--divider); border-radius: var(--r-input); }
}

/* Case page action row spacing + header meta line (ink on pink per D10) */
.pg-case-actions { padding: 14px var(--gutter) 0; }
.pg-case-meta { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-on-pink); }

/* Alert strip on home */
.pg-alert-strip { margin: 18px var(--gutter) 0; }
.pg-alert-strip .pp-notice { display: flex; flex-direction: column; gap: 10px; }
.pg-alert-strip .pp-btn { align-self: flex-start; }

/* Credibility block (composes card anatomy, D20) */
.pg-cred {
  margin: 22px var(--gutter) 0; background: var(--card);
  border-top: 1px solid var(--pink); padding: var(--pad-card);
  display: flex; gap: 12px; align-items: flex-start;
}
.pg-cred img { width: 44px; height: 44px; border-radius: var(--r-photo); flex-shrink: 0; }
.pg-cred__name { color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.pg-cred__body { color: var(--text-body); font-size: 13px; line-height: 1.5; }
.pg-cred__link { color: var(--pink); font-weight: 700; font-size: 13px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Legal prose pages */
.pg-prose { padding: 20px var(--gutter) 0; color: var(--text-body); font-size: 14px; line-height: 1.6; max-width: 640px; }
.pg-prose h2 { font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 6px; }
.pg-prose p { margin: 0 0 10px; }
